/* ============================================
   ODEVAET — Tour Pages Styles
   ============================================ */

/* --- Tour Hero --- */
.tour-hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem var(--space-md) var(--space-xl);
  overflow: hidden;
}

.tour-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.tour-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.7) brightness(0.35) contrast(1.1);
  transform: scale(1.03);
}

.tour-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 10, 15, 0.4) 0%, rgba(10, 10, 15, 0.2) 40%, rgba(10, 10, 15, 0.8) 100%),
    radial-gradient(ellipse at 50% 30%, rgba(124, 92, 191, 0.15) 0%, transparent 60%);
}

.tour-hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.tour-hero__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f0eee6;
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  margin-bottom: var(--space-md);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.08);
}

.tour-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #f0eee6;
  margin-bottom: var(--space-sm);
}

.tour-hero__title em {
  background: var(--gradient-aurora);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tour-hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.tour-hero__meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: rgba(240, 238, 230, 0.7);
}

.tour-hero__meta-item svg {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

.tour-hero__meta-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(240, 238, 230, 0.3);
}

/* --- Tour Reasons --- */
.tour-reasons {
  padding: var(--space-2xl) 0;
}

.tour-reasons__photo {
  width: 100%;
  height: 340px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-xl);
  position: relative;
}

.tour-reasons__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
}

.tour-reasons__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, var(--bg) 100%);
  pointer-events: none;
}

.tour-reasons__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.tour-reasons__grid > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 50%;
  justify-self: center;
}

.reason-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.reason-card:hover {
  border-color: rgba(124, 92, 191, 0.2);
  transform: translateY(-3px);
}

.reason-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: var(--space-sm);
  transition: all 0.3s;
}

.reason-card:hover .reason-card__icon {
  background: var(--gradient-aurora);
  border-color: transparent;
  color: #fff;
}

[data-theme="dark"] .reason-card:hover .reason-card__icon {
  color: #0a0a0f;
}

.reason-card__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.reason-card__text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Tour Program (Timeline) --- */
.tour-program {
  padding: var(--space-2xl) 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.tour-timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 3rem;
}

.tour-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.75rem;
  width: 2px;
  background: var(--glass-border);
}

.timeline-day {
  position: relative;
  padding-bottom: var(--space-lg);
}

.timeline-day:last-child {
  padding-bottom: 0;
}

.timeline-day__marker {
  position: absolute;
  left: -2.35rem;
  top: 0.15rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gradient-aurora);
  box-shadow: 0 0 0 4px var(--bg-elevated);
}

.timeline-day__date {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.timeline-day__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}

.timeline-day__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Tour Includes --- */
.tour-includes {
  padding: var(--space-2xl) 0;
}

.tour-includes__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.tour-includes__col {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.tour-includes__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tour-includes__title svg {
  width: 22px;
  height: 22px;
}

.tour-includes__title--yes svg {
  color: var(--accent-2);
}

.tour-includes__title--no svg {
  color: var(--text-dim);
}

.tour-includes__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tour-includes__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.tour-includes__item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.tour-includes__item--yes svg {
  color: var(--accent-2);
}

.tour-includes__item--no svg {
  color: var(--text-dim);
}

/* --- Tour Team --- */
.tour-team {
  padding: var(--space-2xl) 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.tour-team__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
}

.team-card__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto var(--space-md);
  background: var(--gradient-aurora);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: #fff;
  font-weight: 400;
}

[data-theme="dark"] .team-card__avatar {
  color: #0a0a0f;
}

.team-card__name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.team-card__role {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.team-card__bio {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.team-card__placeholder {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
}

/* --- Tour Form --- */
.tour-form-section {
  padding: var(--space-2xl) 0;
}

.tour-form {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
}

.tour-form__group {
  margin-bottom: var(--space-md);
}

.tour-form__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.tour-form__input {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.tour-form__input::placeholder {
  color: var(--text-dim);
}

.tour-form__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 92, 191, 0.1);
}

[data-theme="dark"] .tour-form__input:focus {
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}

.tour-form__input--error {
  border-color: #e53e3e;
}

.tour-form__error {
  font-size: 0.75rem;
  color: #e53e3e;
  margin-top: 0.3rem;
  display: none;
}

.tour-form__input--error ~ .tour-form__error {
  display: block;
}

/* Contact method pills */
.tour-form__pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tour-form__pill {
  display: none;
}

.tour-form__pill-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s;
}

.tour-form__pill-label:hover {
  border-color: var(--accent);
  color: var(--text);
}

.tour-form__pill:checked + .tour-form__pill-label {
  background: var(--gradient-aurora);
  color: #fff;
  border-color: transparent;
}

[data-theme="dark"] .tour-form__pill:checked + .tour-form__pill-label {
  color: #0a0a0f;
}

/* Consent checkbox */
.tour-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: var(--space-md);
}

.tour-form__checkbox {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 0.1rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.tour-form__consent-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.tour-form__consent-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Submit */
.tour-form__submit {
  width: 100%;
  justify-content: center;
}

/* Form states */
.tour-form__status {
  text-align: center;
  padding: var(--space-md);
  border-radius: var(--radius);
  margin-top: var(--space-md);
  display: none;
}

.tour-form__status--success {
  display: block;
  background: rgba(59, 165, 133, 0.08);
  border: 1px solid rgba(59, 165, 133, 0.2);
  color: var(--accent-2);
}

.tour-form__status--error {
  display: block;
  background: rgba(229, 62, 62, 0.08);
  border: 1px solid rgba(229, 62, 62, 0.2);
  color: #e53e3e;
}

.tour-form__status--loading {
  display: block;
  color: var(--text-muted);
}

/* --- Privacy link in form --- */
.privacy-link {
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.3s;
}

.privacy-link:hover {
  opacity: 0.7;
}

/* --- Privacy Popup --- */
.privacy-popup {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.privacy-popup.active {
  opacity: 1;
  visibility: visible;
}

.privacy-popup__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  max-height: 80vh;
  background: var(--bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.privacy-popup.active .privacy-popup__panel {
  transform: translateY(0) scale(1);
}

.privacy-popup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.privacy-popup__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
}

.privacy-popup__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  border-radius: 8px;
  transition: color 0.3s, background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.privacy-popup__close:hover {
  color: var(--text);
  background: var(--glass);
}

.privacy-popup__body {
  padding: var(--space-lg);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.privacy-popup__body h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  margin: var(--space-md) 0 0.4rem;
}

.privacy-popup__body h4:first-child {
  margin-top: 0;
}

.privacy-popup__body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.privacy-popup__footer {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  flex-shrink: 0;
}

/* --- Tour Responsive --- */
@media (max-width: 768px) {
  .tour-hero {
    height: auto;
    min-height: auto;
    padding: 6rem var(--space-md) var(--space-lg);
  }

  .tour-hero__title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .tour-reasons__photo {
    height: 200px;
  }

  .tour-reasons__grid {
    grid-template-columns: 1fr;
  }

  .tour-reasons__grid > :last-child:nth-child(odd) {
    max-width: 100%;
  }

  .tour-includes__grid {
    grid-template-columns: 1fr;
  }

  .tour-team__grid {
    grid-template-columns: 1fr;
  }

  .tour-timeline {
    padding-left: 2.5rem;
  }

  .tour-form {
    padding: var(--space-md);
  }
}

@media (max-width: 375px) {
  .tour-hero__meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .tour-hero__meta-divider {
    display: none;
  }

  .tour-form__pills {
    flex-direction: column;
  }

  .tour-form__pill-label {
    width: 100%;
    justify-content: center;
  }

  .reason-card {
    padding: var(--space-md);
  }
}
