/* ===== TOUR PAGE STYLES ===== */
/* Inherits CSS variables from style.css */

/* Breadcrumbs */
.breadcrumb {
  padding: 16px 0;
  font-size: .85rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--sea); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* Tour Hero */
.tour-hero {
  position: relative;
  height: 60vh; min-height: 380px;
  display: flex; align-items: flex-end;
  overflow: hidden; background: var(--navy);
  margin-top: 72px;
}
.tour-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .55;
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom { from{transform:scale(1)} to{transform:scale(1.06)} }
.tour-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,28,68,.90) 0%, rgba(10,28,68,.3) 60%, transparent 100%);
}
.tour-hero-content {
  position: relative; z-index: 2;
  padding: 40px 24px;
  max-width: 1160px; margin: 0 auto; width: 100%;
}
.tour-hero-content h1 {
  color: #fff; font-size: clamp(1.8rem,4vw,3rem);
  margin-bottom: 12px; text-shadow: 0 2px 16px rgba(0,0,0,.4);
}
.tour-hero-meta {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.tour-meta-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff; padding: 6px 14px; border-radius: 20px;
  font-size: .85rem; font-weight: 600;
}

/* Stats bar */
.tour-stats {
  background: var(--navy); color: #fff;
  padding: 20px 0;
}
.tour-stats-inner {
  display: flex; flex-wrap: wrap; gap: 0;
  justify-content: space-around; align-items: center;
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
}
.tour-stat-item {
  text-align: center; padding: 8px 24px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.tour-stat-item:last-child { border-right: none; }
.tour-stat-item strong {
  display: block; font-size: 1.5rem; color: var(--amber);
  line-height: 1;
}
.tour-stat-item span { font-size: .8rem; opacity: .65; margin-top: 4px; display: block; }

/* Main content layout */
.tour-body { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 60px; align-items: start; }
.tour-body > * { min-width: 0; }  /* предотвращает overflow grid-колонок */

/* Sections */
.tour-section { margin-bottom: 48px; overflow-wrap: break-word; word-wrap: break-word; }
.tour-section h2 {
  font-size: 1.5rem; color: var(--navy);
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

/* Highlights grid */
.highlights-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 16px;
}
.highlight-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px; background: var(--bg); border-radius: 12px;
  transition: transform .25s; cursor: default;
}
.highlight-item:hover { transform: translateY(-3px); }
.highlight-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--sea-lt); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.highlight-item strong { display: block; color: var(--navy); font-size: .95rem; }
.highlight-item span   { color: var(--muted); font-size: .82rem; line-height: 1.5; }

/* Program timeline */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ''; position: absolute;
  left: 10px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
}
.timeline-item {
  position: relative; margin-bottom: 28px;
}
.timeline-item::before {
  content: ''; position: absolute;
  left: -26px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%; background: var(--amber);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--amber);
}
.timeline-item h3 { font-size: 1rem; color: var(--navy); margin-bottom: 6px; }
.timeline-item p  { color: var(--muted); font-size: .9rem; line-height: 1.6; }
.timeline-time {
  display: inline-block; font-size: .78rem; font-weight: 700;
  color: var(--sea); background: var(--sea-lt);
  padding: 2px 10px; border-radius: 10px; margin-bottom: 6px;
}

/* Included/excluded */
.include-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.include-item, .exclude-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .9rem; line-height: 1.5;
}
.include-item::before { content: '✓'; color: #16a34a; font-weight: 800; flex-shrink:0; }
.exclude-item::before { content: '✗'; color: #dc2626; font-weight: 800; flex-shrink:0; }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.faq-q {
  font-weight: 700; color: var(--navy);
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 12px; font-size: .95rem;
  background: none; border: none; width: 100%; text-align: left;
  padding: 0;
}
.faq-q::after { content: '+'; font-size: 1.4rem; color: var(--sea); flex-shrink: 0; transition: transform .25s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  color: var(--muted); font-size: .9rem; line-height: 1.65;
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s;
}
.faq-item.open .faq-a { max-height: 300px; padding-top: 12px; }

/* Sticky booking card */
.booking-card {
  background: var(--white); border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 28px; position: sticky; top: 90px;
  border: 2px solid var(--border);
}
.booking-card-price {
  font-size: 2rem; font-weight: 800; color: var(--navy); margin-bottom: 4px;
}
.booking-card-price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.booking-card-note { color: var(--muted); font-size: .83rem; margin-bottom: 20px; }

.booking-mini-form { display: flex; flex-direction: column; gap: 12px; }
.booking-mini-form input,
.booking-mini-form select {
  padding: 12px 16px; border: 2px solid var(--border);
  border-radius: 10px; font-size: .93rem; font-family: inherit;
  transition: border-color .2s; background: var(--bg);
}
.booking-mini-form input:focus,
.booking-mini-form select:focus { outline: none; border-color: var(--sea); background: #fff; }

.booking-card-btn {
  width: 100%; padding: 15px;
  background: linear-gradient(135deg, var(--amber), #e8a020);
  color: var(--navy); border: none; border-radius: 50px;
  font-size: 1rem; font-weight: 800; cursor: pointer;
  transition: all .25s; box-shadow: 0 4px 16px rgba(212,168,67,.35);
}
.booking-card-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,168,67,.5); }
.booking-card-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.booking-card-divider {
  text-align: center; color: var(--muted); font-size: .8rem;
  margin: 12px 0; position: relative;
}
.booking-card-divider::before, .booking-card-divider::after {
  content: ''; position: absolute; top: 50%;
  width: 38%; height: 1px; background: var(--border);
}
.booking-card-divider::before { left: 0; }
.booking-card-divider::after  { right: 0; }

.booking-card-phone {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; color: var(--navy); font-weight: 700; font-size: 1rem;
  text-decoration: none; transition: color .2s;
}
.booking-card-phone:hover { color: var(--sea); }

.booking-card-mini-msg {
  display: none; padding: 10px; border-radius: 8px; text-align: center;
  font-size: .85rem; font-weight: 600; margin-top: 8px;
}
.booking-card-mini-msg.success { background: #e8f8ef; color: #16a34a; display: block; }
.booking-card-mini-msg.error   { background: #fde8e8; color: #dc2626; display: block; }

/* Gallery */
.tour-gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 16px; }
.tour-gallery-item { overflow: hidden; border-radius: 10px; aspect-ratio: 4/3; }
.tour-gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  cursor: zoom-in; transition: transform .4s;
}
.tour-gallery-item:hover img { transform: scale(1.07); }

/* Related tours */
.related-tours { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.related-card {
  background: var(--white); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none; color: inherit;
  transition: transform .3s, box-shadow .3s;
}
.related-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.related-card img { width: 100%; height: 160px; object-fit: cover; }
.related-card-body { padding: 16px; }
.related-card-body h3 { font-size: 1rem; color: var(--navy); margin-bottom: 6px; }
.related-card-body p  { font-size: .82rem; color: var(--muted); }
.related-card-price   { font-weight: 800; color: var(--sea); font-size: .95rem; margin-top: 8px; }

/* Responsive */
@media (max-width: 960px) {
  .tour-body { grid-template-columns: minmax(0,1fr); }
  .booking-card { position: static; }
}
@media (max-width: 640px) {
  .tour-hero { height: 52vh; min-height: 340px; }
  .tour-hero-content h1 { font-size: 1.6rem; }
  .highlights-grid { grid-template-columns: 1fr; }
  .include-grid { grid-template-columns: 1fr; }
  .related-tours { grid-template-columns: 1fr; }
  .tour-gallery { grid-template-columns: repeat(2,1fr); }

  /* Ровная сетка статистики 2 колонки */
  .tour-stats { padding: 24px 0; }
  .tour-stats-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
    padding: 0 20px;
  }
  .tour-stat-item {
    border-right: none;
    padding: 0;
    text-align: center;
  }
  .tour-stat-item strong { font-size: 1.35rem; }
  /* Последний (оценка) — по центру на всю ширину */
  .tour-stat-item:nth-child(5) { grid-column: 1 / -1; }

  .tour-section h2 { font-size: 1.3rem; }
  .timeline { padding-left: 26px; }
}

/* Метки полей в mini-form на странице тура */
.booking-mini-label {
  display: block;
  font-size: .78rem;
  color: var(--navy);
  font-weight: 600;
  margin: 4px 0 -4px;
  letter-spacing: .01em;
}

/* ═════ CTA: Задать вопрос гиду ═════ */
.ask-guide-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, #0a1c3e 0%, #16305e 100%);
  border-radius: 18px;
  padding: 26px 28px;
  margin: 40px 0;
  color: #fff;
  box-shadow: 0 10px 32px rgba(10,28,62,.25);
  position: relative;
  overflow: hidden;
  flex-wrap: wrap;
}
.ask-guide-cta::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(245,158,11,.18) 0%, transparent 70%);
  pointer-events: none;
}
.ask-guide-cta__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(245,158,11,.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f59e0b;
}
.ask-guide-cta__body {
  flex: 1 1 260px;
  min-width: 0;
}
.ask-guide-cta__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: #fff;
  line-height: 1.3;
}
.ask-guide-cta__sub {
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  line-height: 1.5;
  margin: 0;
}
.ask-guide-cta__btn {
  flex-shrink: 0;
  background: #f59e0b;
  color: #1a1a2e;
  border: none;
  border-radius: 30px;
  padding: 13px 26px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform .18s, box-shadow .18s, background .18s;
  box-shadow: 0 6px 18px rgba(245,158,11,.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.ask-guide-cta__btn:hover {
  background: #fbb03b;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(245,158,11,.5);
}
.ask-guide-cta__btn::after { content: "→"; font-size: 1.1em; transition: transform .18s; }
.ask-guide-cta__btn:hover::after { transform: translateX(4px); }

@media (max-width: 640px) {
  .ask-guide-cta { padding: 22px 20px; gap: 16px; margin: 28px 0; }
  .ask-guide-cta__icon { width: 46px; height: 46px; }
  .ask-guide-cta__title { font-size: 1.05rem; }
  .ask-guide-cta__btn { width: 100%; justify-content: center; padding: 12px 20px; }
}
.booking-mini-label:first-of-type { margin-top: 6px; }
