/* Trust — Booking.com preview modal */
.trust__item {
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.trust__item:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.trust__item-hint {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 0.35rem;
  letter-spacing: 0.01em;
}

.trust-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.trust-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.trust-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(4px);
}
.trust-modal__dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: min(90vh, 860px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
}
.trust-modal.is-open .trust-modal__dialog {
  transform: translateY(0) scale(1);
}
.trust-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1e293b;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.15);
}
.trust-modal__close:hover { background: #fff; }

.trust-preview__gallery {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #e2e8f0;
  overflow: hidden;
}
.trust-preview__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.trust-preview__gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, #003580 0%, #0071c2 100%);
  color: #fff;
}
.trust-preview__gallery-placeholder svg {
  width: 2.5rem;
  height: 2.5rem;
  opacity: 0.9;
}
.trust-preview__gallery-placeholder span {
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0.95;
}
.trust-preview__gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1e293b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}
.trust-preview__gallery-nav--prev { left: 0.75rem; }
.trust-preview__gallery-nav--next { right: 0.75rem; }
.trust-preview__gallery-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.35rem;
}
.trust-preview__gallery-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}
.trust-preview__gallery-dot.is-active {
  background: #fff;
  width: 1.1rem;
}

.trust-preview__brand--instagram {
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
}
.trust-preview__btn--instagram {
  background: linear-gradient(135deg, #833ab4 0%, #c13584 100%);
  color: #fff;
}
.trust-preview__btn--instagram:hover { opacity: 0.92; color: #fff; }
.trust-preview__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: #003580;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.trust-preview__brand-badge {
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.6875rem;
  text-transform: uppercase;
}

.trust-preview__body { padding: 1.25rem 1.25rem 1rem; }
.trust-preview__head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}
.trust-preview__title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #1e293b;
  margin: 0 0 0.35rem;
}
.trust-preview__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: #64748b;
}
.trust-preview__stars {
  color: #febb02;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}
.trust-preview__score {
  flex-shrink: 0;
  min-width: 3.25rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px 8px 8px 0;
  background: #003580;
  color: #fff;
  text-align: center;
}
.trust-preview__score b {
  display: block;
  font-size: 1.125rem;
  line-height: 1.1;
}
.trust-preview__score span {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  opacity: 0.9;
  margin-top: 0.1rem;
}
.trust-preview__reviews {
  font-size: 0.8125rem;
  color: #64748b;
  margin-top: 0.35rem;
}
.trust-preview__note {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #475569;
}
.trust-preview__note strong { color: #1e293b; }

.trust-preview__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0 1.25rem 1.25rem;
}
.trust-preview__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.15rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s;
}
.trust-preview__btn--primary {
  flex: 1;
  min-width: 200px;
  background: #0071c2;
  color: #fff;
}
.trust-preview__btn--primary:hover {
  background: #0064ad;
  color: #fff;
}
.trust-preview__btn--ghost {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.trust-preview__btn--ghost:hover { background: #f1f5f9; }

@media (max-width: 640px) {
  .trust-modal { padding: 0; align-items: flex-end; }
  .trust-modal__dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
  }
  .trust-preview__head { flex-direction: column; }
  .trust-preview__score { align-self: flex-start; }
  .trust-preview__actions { flex-direction: column; }
  .trust-preview__btn--primary { min-width: 0; width: 100%; }
}
