/* ============================================
   АМИСТ — Tour Detail Page (v2 — Ideal Template)
   New components: quicknav, tariffs, dates,
   highlights, bring, cancel, FAQ, mobile CTA
   ============================================ */

/* ── Hero Enhancements ──────────────────── */

.tour-hero__subtitle {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-5);
  max-width: 600px;
  line-height: var(--leading-relaxed);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .tour-hero__subtitle {
    font-size: var(--text-lg);
  }
}

.tour-hero__actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

/* ── Quick Navigation (tabs) ──────────── */

.tour-quicknav {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border-light);
  z-index: 9;
  transition: box-shadow var(--transition-base);
}

.tour-quicknav--sticky {
  position: sticky;
  top: 72px;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 1024px) {
  .tour-quicknav--sticky {
    top: 80px;
  }
}

.tour-quicknav__inner {
  display: flex;
  gap: var(--space-1);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0;
}

.tour-quicknav__inner::-webkit-scrollbar {
  display: none;
}

.tour-quicknav__link {
  padding: var(--space-4) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-secondary);
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-base), border-color var(--transition-base);
}

.tour-quicknav__link:hover {
  color: var(--color-accent);
}

.tour-quicknav__link--active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* ── Tour Highlights (key selling points) ── */

.tour-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

@media (min-width: 640px) {
  .tour-highlights {
    grid-template-columns: 1fr 1fr;
  }
}

.tour-highlights__item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--color-gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
}

.tour-highlights__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--radius-md);
}

.tour-highlights__icon svg {
  width: 20px;
  height: 20px;
}

.tour-highlights__item strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-primary-800);
  margin-bottom: 2px;
}

.tour-highlights__item span {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ── Tour Program v2 (accordion) ──────── */

.tour-program__day {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-3);
  transition: box-shadow var(--transition-base);
}

.tour-program__day[open] {
  box-shadow: var(--shadow-sm);
}

.tour-program__day-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.tour-program__day-header::-webkit-details-marker {
  display: none;
}

.tour-program__day-header::marker {
  display: none;
  content: '';
}

.tour-program__day-num {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-weight: var(--font-bold);
  font-size: var(--text-sm);
}

.tour-program__day[open] .tour-program__day-num {
  background: var(--color-primary-800);
}

.tour-program__day-info {
  flex: 1;
  min-width: 0;
}

.tour-program__day-title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-primary-800);
  line-height: var(--leading-snug);
  margin: 0;
}

.tour-program__day-route {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  margin-top: 2px;
}

.tour-program__chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-text-secondary);
  transition: transform var(--transition-base);
}

.tour-program__day[open] .tour-program__chevron {
  transform: rotate(180deg);
}

.tour-program__day-body {
  padding: 0 var(--space-5) var(--space-5);
  padding-left: calc(var(--space-5) + 40px + var(--space-4));
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-primary);
}

@media (max-width: 639px) {
  .tour-program__day-body {
    padding-left: var(--space-5);
  }
}

.tour-program__day-body p {
  margin-bottom: var(--space-3);
}

.tour-program__day-note {
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-gray-50);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}

.tour-program__day-note strong {
  color: var(--color-primary-800);
}

/* ── Tour Tariffs ──────────────────────── */

.tour-tariffs {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

@media (min-width: 640px) {
  .tour-tariffs {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tour-tariff {
  padding: var(--space-5);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.tour-tariff:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.tour-tariff--vip {
  border-color: var(--color-gold-300);
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-gold-100, #FAF5E4) 100%);
}

.tour-tariff__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.tour-tariff__name {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-primary-800);
  margin: 0;
}

.tour-tariff__badge {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  padding: 2px var(--space-2);
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--radius-full);
}

.tour-tariff__price {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-primary-800);
  margin-bottom: var(--space-2);
}

.tour-tariff__price span {
  font-size: var(--text-lg);
}

.tour-tariff__desc {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

/* ── Tour Dates ────────────────────────── */

.tour-dates {
  margin-top: var(--space-2);
}

.tour-dates__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-primary-800);
  margin-bottom: var(--space-4);
}

.tour-dates__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.tour-dates__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  min-width: 60px;
  transition: border-color var(--transition-base), background var(--transition-base);
  cursor: default;
}

.tour-dates__item:hover {
  border-color: var(--color-accent);
  background: var(--color-gray-50);
}

.tour-dates__month {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.tour-dates__day {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-primary-800);
}

/* ── Included / Excluded Grid ──────────── */

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

@media (min-width: 640px) {
  .tour-included-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.tour-included-col__title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid;
}

.tour-included-col__title--yes {
  color: var(--color-success);
  border-color: var(--color-success);
}

.tour-included-col__title--no {
  color: var(--color-error);
  border-color: var(--color-error);
}

/* ── What to Bring ─────────────────────── */

.tour-bring {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .tour-bring {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .tour-bring {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tour-bring__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--color-gray-50);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  color: var(--color-text-primary);
  line-height: var(--leading-snug);
}

.tour-bring__emoji {
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ── Cancellation Table ───────────────── */

.tour-cancel__intro {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.tour-cancel__table {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.tour-cancel__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  background: var(--color-gray-50);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

.tour-cancel__period {
  color: var(--color-text-primary);
}

.tour-cancel__percent {
  font-weight: var(--font-bold);
  color: var(--color-primary-800);
  min-width: 40px;
  text-align: right;
}

/* ── FAQ ───────────────────────────────── */

.tour-faq {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.tour-faq__item {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition-base);
}

.tour-faq__item[open] {
  box-shadow: var(--shadow-sm);
}

.tour-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  color: var(--color-primary-800);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.tour-faq__question::-webkit-details-marker {
  display: none;
}

.tour-faq__question::marker {
  display: none;
  content: '';
}

.tour-faq__question::after {
  content: '+';
  font-size: var(--text-lg);
  font-weight: var(--font-normal);
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.tour-faq__item[open] .tour-faq__question::after {
  content: '\2212';
}

.tour-faq__answer {
  padding: 0 var(--space-5) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.tour-faq__answer p {
  margin: 0;
}

/* ── CTA Banner ────────────────────────── */

.tour-cta-banner {
  background: var(--color-primary-800);
  padding: var(--space-12) 0;
}

.tour-cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.tour-cta-banner__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

@media (min-width: 768px) {
  .tour-cta-banner__title {
    font-size: var(--text-2xl);
  }
}

.tour-cta-banner__text p {
  color: var(--color-primary-300);
  font-size: var(--text-sm);
}

.tour-cta-banner__actions {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* ── Booking Card Enhancements ─────────── */

.tour-booking__price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  margin-bottom: var(--space-1);
}

.tour-booking__price-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
}

.tour-booking__price-value {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-white);
}

.tour-booking__price-per {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
}

.tour-booking__alt {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
}

.tour-booking__alt span {
  display: block;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-2);
}

.tour-booking__phone {
  display: block;
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-white);
  text-decoration: none;
  margin-bottom: var(--space-3);
}

.tour-booking__phone:hover {
  color: var(--color-gold-400);
}

.tour-booking__messengers {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
}

.tour-booking__messenger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: #FFFFFF;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-md);
  transition: background var(--transition-base), border-color var(--transition-base);
}

.tour-booking__messenger:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
}

.tour-booking__messenger svg {
  width: 16px;
  height: 16px;
}

/* ── Mobile Sticky CTA ────────────────── */

.tour-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--color-white);
  box-shadow: 0 -2px 16px rgba(0,0,0,0.12);
  transform: translateY(100%);
  transition: transform var(--transition-base);
}

.tour-mobile-cta--visible {
  transform: translateY(0);
}

@media (min-width: 1024px) {
  .tour-mobile-cta {
    display: none;
  }
}

.tour-mobile-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  max-width: var(--container-max);
  margin: 0 auto;
}

.tour-mobile-cta__from {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  display: block;
}

.tour-mobile-cta__amount {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-primary-800);
}

/* ── Sidebar sticky on desktop ─────────── */

@media (min-width: 1024px) {
  .tour-content__sidebar {
    position: sticky;
    top: 140px;
    align-self: start;
  }
}

/* ── Reduced motion ─────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
