/* ============================================
   Yurt on Wheels — Design Tokens + Base
   Airbnb-style system, warm gold accent #E5B473
   ============================================ */

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Italic.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Brand */
  --primary: #E5B473;
  --primary-ink: #B7853E;       /* deeper gold for hover/active text */
  --primary-soft: #F7E7CD;       /* very light sand tint */
  --on-primary: #ffffff;

  /* Surface */
  --canvas: #ffffff;
  --surface-soft: #f7f7f7;
  --surface-strong: #f2f2f2;
  --surface-sand: #FAF3E8;       /* steppe-sand tint, used when accent_intensity = sand */

  /* Hairlines */
  --hairline: #dddddd;
  --hairline-soft: #ebebeb;
  --border-strong: #c1c1c1;

  /* Text */
  --ink: #222222;
  --body: #3f3f3f;
  --muted: #6a6a6a;
  --muted-soft: #929292;
  --error: #c13515;

  /* Spacing (4px base) */
  --s-xxs: 2px;
  --s-xs:  4px;
  --s-sm:  8px;
  --s-md:  12px;
  --s-base:16px;
  --s-lg:  24px;
  --s-xl:  32px;
  --s-xxl: 48px;
  --s-section: 64px;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 32px;
  --r-full: 9999px;

  /* Shadows (single tier) */
  --shadow-1: rgba(0,0,0,0.02) 0 0 0 1px,
              rgba(0,0,0,0.04) 0 2px 6px 0,
              rgba(0,0,0,0.10) 0 4px 8px 0;

  /* Layout */
  --max-w: 1280px;
  --nav-h: 80px;

  /* Tweakable */
  --tw-card-radius: 14px;
}

/* Dark-mode (used only when the Tweaks panel forces it; off by default) */
[data-theme="dark"] {
  --canvas: #0e0e0f;
  --surface-soft: #181818;
  --surface-strong: #202021;
  --surface-sand: #1a1611;
  --hairline: #2b2b2c;
  --hairline-soft: #232324;
  --border-strong: #3a3a3b;
  --ink: #f5f3ee;
  --body: #d6d3cb;
  --muted: #9a9893;
  --muted-soft: #6c6a66;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { min-height: 100vh; overflow-x: clip; }

img { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
}

/* Locale-aware font tweaks */
html[lang="zh"] body, html[lang="kz"] body, html[lang="ru"] body {
  font-feature-settings: "kern", "liga";
}

/* ===== Typography ===== */
.t-rating-display { font-size: 64px; font-weight: 700; line-height: 1.1; letter-spacing: -1px; }
.t-display-xl    { font-size: 56px; font-weight: 600; line-height: 1.08; letter-spacing: -1.4px; }
.t-display-lg    { font-size: 36px; font-weight: 600; line-height: 1.15; letter-spacing: -0.6px; }
.t-display-md    { font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -0.25px; }
.t-display-sm    { font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -0.18px; }
.t-title-md      { font-size: 16px; font-weight: 600; line-height: 1.25; }
.t-title-sm      { font-size: 16px; font-weight: 500; line-height: 1.25; }
.t-body-md       { font-size: 16px; font-weight: 400; line-height: 1.5; color: var(--body); }
.t-body-sm       { font-size: 14px; font-weight: 400; line-height: 1.43; }
.t-caption       { font-size: 14px; font-weight: 500; line-height: 1.29; }
.t-caption-sm    { font-size: 13px; font-weight: 400; line-height: 1.23; color: var(--muted); }
.t-badge         { font-size: 11px; font-weight: 600; line-height: 1.18; }
.t-micro-label   { font-size: 12px; font-weight: 700; line-height: 1.33; }
.t-uppercase-tag { font-size: 10px; font-weight: 700; line-height: 1.25; letter-spacing: 0.6px; text-transform: uppercase; }
.t-link          { font-size: 14px; font-weight: 500; line-height: 1.43; }
.t-nav-link      { font-size: 16px; font-weight: 600; line-height: 1.25; }

.t-muted    { color: var(--muted); }
.t-ink      { color: var(--ink); }
.t-body-col { color: var(--body); }

@media (max-width: 900px) {
  .t-display-xl { font-size: 36px; letter-spacing: -0.8px; }
  .t-display-lg { font-size: 28px; letter-spacing: -0.4px; }
  .t-display-md { font-size: 20px; }
}

/* ===== Layout ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-lg);
}
@media (max-width: 900px) {
  .container { padding: 0 var(--s-base); }
}

.section { padding: var(--s-section) 0; }
.section-sm { padding: var(--s-xxl) 0; }
.section-tight { padding: var(--s-xl) 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-sm);
  height: 48px;
  padding: 0 var(--s-lg);
  font-size: 16px;
  font-weight: 500;
  border-radius: var(--r-sm);
  transition: background-color 120ms ease, transform 80ms ease, color 120ms ease, border-color 120ms ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn-primary:hover { background: var(--primary-ink); }

.btn-secondary {
  background: var(--canvas);
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-secondary:hover { background: var(--surface-soft); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline);
}
.btn-ghost:hover { background: var(--surface-soft); }

.btn-tertiary {
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  height: auto;
  padding: 0;
}

.btn-sm { height: 40px; padding: 0 var(--s-base); font-size: 14px; }

.btn-pill {
  border-radius: var(--r-full);
  height: 40px;
  padding: 0 var(--s-base);
  font-size: 14px;
}

/* ===== Hairline / Card primitives ===== */
.hairline { background: var(--hairline); height: 1px; width: 100%; }
.card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  border-radius: var(--tw-card-radius);
  overflow: hidden;
}

/* ===== Header / Top Nav ===== */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: var(--nav-h);
}
.topnav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  gap: var(--s-base);
}
.topnav-logo {
  display: flex;
  align-items: center;
  height: 36px;
}
.topnav-logo svg { height: 28px; width: auto; }

.topnav-links {
  display: flex;
  align-items: center;
  gap: var(--s-xl);
}
.topnav-link {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
  padding: 8px 0;
  transition: color 120ms ease;
}
.topnav-link:hover { color: var(--ink); }
.topnav-link.is-active { color: var(--ink); }
.topnav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--ink);
}

.topnav-right {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  justify-self: end;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  height: 40px;
  padding: 0 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--hairline);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: var(--canvas);
  transition: box-shadow 120ms ease, background-color 120ms ease;
}
.lang-pill:hover { background: var(--surface-soft); }
.lang-pill svg { width: 16px; height: 16px; }

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  border: 1px solid var(--hairline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--canvas);
  transition: background-color 120ms ease;
}
.icon-btn:hover { background: var(--surface-soft); }

.menu-btn { display: none; }
@media (max-width: 900px) {
  .topnav-links { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ===== Lang menu dropdown ===== */
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--canvas);
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-1);
  min-width: 220px;
  padding: var(--s-sm);
  z-index: 60;
}
.lang-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--ink);
  text-align: left;
}
.lang-menu-item:hover { background: var(--surface-soft); }
.lang-menu-item .meta { font-size: 12px; color: var(--muted); }
.lang-menu-item.is-active { background: var(--surface-strong); }

.lang-wrap { position: relative; }

/* ===== Mobile menu drawer ===== */
.drawer-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.drawer-scrim.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(420px, 100%);
  height: 100vh;
  background: var(--canvas);
  z-index: 71;
  transform: translateX(100%);
  transition: transform 240ms ease;
  display: flex;
  flex-direction: column;
}
.drawer.is-open { transform: translateX(0); }
.drawer-head {
  height: var(--nav-h);
  padding: 0 var(--s-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--hairline);
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--s-lg);
}
.drawer-link {
  display: block;
  padding: 14px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline-soft);
}
.drawer-link.is-active { color: var(--primary-ink); }
.drawer-section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  margin: var(--s-lg) 0 var(--s-sm);
}

/* ===== Editorial split hero ===== */
.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s-xxl);
  padding: var(--s-xxl) 0 var(--s-section);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: var(--s-xl); padding-bottom: var(--s-xxl); }
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary-ink);
  margin-bottom: var(--s-base);
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(229,180,115,0.20);
}
.hero-h1 {
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -1.6px;
  margin: 0 0 var(--s-lg);
  text-wrap: balance;
}
.hero-h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--primary-ink);
}
.hero-lead {
  font-size: 18px;
  line-height: 1.5;
  color: var(--body);
  max-width: 52ch;
  margin: 0 0 var(--s-xl);
}
.hero-ctas {
  display: flex;
  gap: var(--s-base);
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: var(--s-xl);
  margin-top: var(--s-xxl);
  flex-wrap: wrap;
}
.hero-stat-val { font-size: 28px; font-weight: 600; letter-spacing: -0.4px; }
.hero-stat-lbl { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* Hero illustration column */
.hero-illus {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #1a1410;
}
.hero-illus svg { width: 100%; height: 100%; display: block; }
.hero-illus .caption {
  position: absolute;
  left: var(--s-base); bottom: var(--s-base);
  padding: 6px 12px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-illus .caption .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }

/* ===== Trust strip ===== */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-base);
  padding: var(--s-xl) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
@media (max-width: 900px) {
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
}
.trust-item {
  display: flex;
  gap: var(--s-md);
  align-items: flex-start;
}
.trust-item .ico {
  flex: 0 0 36px;
  width: 36px; height: 36px;
  border-radius: var(--r-full);
  background: var(--primary-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-ink);
}
.trust-item .ttl { font-size: 14px; font-weight: 600; color: var(--ink); }
.trust-item .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ===== Photo placeholders (honest, labeled) ===== */
.photo-ph {
  position: relative;
  background: var(--surface-strong);
  border-radius: var(--tw-card-radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-ph[data-aspect="1"]    { aspect-ratio: 1 / 1; }
.photo-ph[data-aspect="45"]   { aspect-ratio: 4 / 5; }
.photo-ph[data-aspect="169"]  { aspect-ratio: 16 / 9; }
.photo-ph[data-aspect="3-2"]  { aspect-ratio: 3 / 2; }

.photo-ph .ph-grid {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 100%, rgba(229,180,115,0.12), transparent 60%),
    repeating-linear-gradient(45deg, rgba(0,0,0,0.025) 0 12px, transparent 12px 24px);
  pointer-events: none;
}
.photo-ph .ph-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s-xs);
  align-items: center;
  text-align: center;
  padding: var(--s-base);
}
.photo-ph .ph-loc {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink);
}
.photo-ph .ph-sub {
  font-size: 11px;
  color: var(--muted);
}
.photo-ph .ph-icon {
  width: 32px; height: 32px;
  color: var(--muted);
  margin-bottom: 4px;
  opacity: 0.55;
}
.photo-ph[data-tone="warm"]   { background: linear-gradient(180deg, #F0E0C2 0%, #DDC59A 100%); }
.photo-ph[data-tone="warm"] .ph-icon, .photo-ph[data-tone="warm"] .ph-sub { color: #6e5230; }
.photo-ph[data-tone="warm"] .ph-loc { color: #3a2a14; }
.photo-ph[data-tone="cool"]   { background: linear-gradient(180deg, #E7E2DC 0%, #C9C3BC 100%); }
.photo-ph[data-tone="dusk"]   { background: linear-gradient(180deg, #2a2620 0%, #4a3d2c 100%); }
.photo-ph[data-tone="dusk"] .ph-loc, .photo-ph[data-tone="dusk"] .ph-sub, .photo-ph[data-tone="dusk"] .ph-icon { color: #f3e6cf; }

/* ===== Section heads ===== */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-lg);
  margin-bottom: var(--s-xl);
}
.section-head h2 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.6px;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
.section-head .sub { color: var(--muted); font-size: 16px; margin-top: var(--s-sm); max-width: 60ch; }
.section-head .see-all { white-space: nowrap; color: var(--ink); text-decoration: underline; font-size: 14px; font-weight: 500; }

/* ===== Tour cards (catalog grid) ===== */
.tour-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-lg) var(--s-base);
}
@media (max-width: 1100px) { .tour-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px)  { .tour-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .tour-grid { grid-template-columns: 1fr; } }

.tour-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
  transition: transform 200ms ease;
}
.tour-card:hover { transform: translateY(-2px); }
.tour-card .pic-wrap {
  position: relative;
  border-radius: var(--tw-card-radius);
  overflow: hidden;
}
.tour-card .pic-wrap .photo-ph { border-radius: 0; }
.tour-card .favbadge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255,255,255,0.96);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--r-full);
  box-shadow: var(--shadow-1);
}
.tour-card .heart {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  border-radius: var(--r-full);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}
.tour-card .heart svg { width: 22px; height: 22px; }
.tour-card .heart.is-saved { color: var(--primary); }
.tour-card .meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-sm);
}
.tour-card .ttl { font-size: 16px; font-weight: 600; color: var(--ink); }
.tour-card .sub { font-size: 14px; color: var(--muted); line-height: 1.4; }
.tour-card .rating { font-size: 14px; color: var(--ink); display: inline-flex; align-items: center; gap: 4px; }
.tour-card .price-row { font-size: 14px; color: var(--ink); }
.tour-card .price-row b { font-weight: 600; }
.tour-card .price-row .sub { color: var(--muted); }

/* Card variants (Tweaks → card_style) */
[data-card-style="editorial"] .tour-card .pic-wrap { border-radius: var(--tw-card-radius); }
[data-card-style="editorial"] .tour-card .meta { padding-top: 4px; }
[data-card-style="editorial"] .tour-card .ttl { font-size: 18px; font-weight: 500; letter-spacing: -0.2px; }
[data-card-style="editorial"] .tour-card .pic-wrap .photo-ph { aspect-ratio: 3 / 4; }

[data-card-style="minimal"] .tour-card .heart,
[data-card-style="minimal"] .tour-card .favbadge { display: none; }
[data-card-style="minimal"] .tour-card .pic-wrap .photo-ph { aspect-ratio: 16 / 11; }
[data-card-style="minimal"] .tour-card .ttl { font-size: 15px; }
[data-card-style="minimal"] .tour-card .sub { font-size: 13px; }

/* ===== Filter chips ===== */
.chips {
  display: flex;
  gap: var(--s-sm);
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--hairline);
  background: var(--canvas);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 120ms, border-color 120ms;
}
.chip:hover { background: var(--surface-soft); }
.chip.is-active {
  background: var(--ink);
  color: var(--canvas);
  border-color: var(--ink);
}

/* ===== Tour detail ===== */
.detail-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-base);
  margin-top: var(--s-lg);
}
.detail-hero .main { grid-column: 1 / 2; }
.detail-hero .main .photo-ph {
  aspect-ratio: 4 / 3;
  height: auto;
  min-height: 0;
  border-radius: var(--tw-card-radius);
}
.detail-hero .side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: var(--s-base);
  align-self: stretch;
}
.detail-hero .side .photo-ph {
  height: 100%;
  aspect-ratio: auto;
  min-height: 0;
  border-radius: var(--tw-card-radius);
}
@media (max-width: 800px) {
  .detail-hero { grid-template-columns: 1fr; gap: 8px; }
  .detail-hero .main .photo-ph { aspect-ratio: 16 / 9; }
  .detail-hero .side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    align-self: auto;
  }
  .detail-hero .side .photo-ph { aspect-ratio: 1 / 1; height: auto; }
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); text-decoration: underline; }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .now { color: var(--ink); }

.detail-title { margin: var(--s-xl) 0 var(--s-sm); font-size: clamp(28px, 3.4vw, 44px); font-weight: 600; letter-spacing: -0.8px; line-height: 1.1; text-wrap: balance; }
.detail-sub { color: var(--muted); font-size: 16px; max-width: 64ch; margin: 0; }

.quick-facts {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-base);
  padding: var(--s-lg) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin: var(--s-xl) 0;
}
@media (max-width: 900px) { .quick-facts { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .quick-facts { grid-template-columns: repeat(2, 1fr); } }
.qfact .lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; font-weight: 600; margin-bottom: 4px; overflow-wrap: break-word; }
.qfact .val { font-size: 15px; color: var(--ink); font-weight: 500; overflow-wrap: break-word; }

/* Layout for detail page columns */
.detail-cols {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--s-xxl);
  align-items: start;
}
@media (max-width: 900px) {
  .detail-cols { grid-template-columns: 1fr; }
  .booking-card { position: static !important; }
}
.detail-cols .main-col > section { padding: var(--s-xxl) 0; border-top: 1px solid var(--hairline-soft); }
.detail-cols .main-col > section:first-child { border-top: 0; padding-top: 0; }

/* Route options — tabs (desktop) */
.route-tabs {
  display: flex;
  gap: var(--s-xs);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: var(--s-xl);
  overflow-x: auto;
}
.route-tab {
  position: relative;
  padding: var(--s-md) var(--s-base);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.route-tab.is-active {
  color: var(--ink);
}
.route-tab.is-active::after {
  content: "";
  position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px;
  background: var(--ink);
  border-radius: 1px;
}
@media (max-width: 800px) { .route-tabs { display: none; } }

/* Accordion (mobile) */
.route-accordion {
  display: none;
  flex-direction: column;
  gap: var(--s-sm);
  margin-bottom: var(--s-xl);
}
@media (max-width: 800px) { .route-accordion { display: flex; } }
.acc-item { border: 1px solid var(--hairline); border-radius: var(--r-md); overflow: hidden; }
.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-base);
  padding: var(--s-base);
  background: var(--canvas);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}
.acc-head .price-tag { font-size: 13px; color: var(--muted); font-weight: 500; }
.acc-head .chev { transition: transform 200ms ease; color: var(--muted); }
.acc-item.is-open .acc-head .chev { transform: rotate(180deg); }
.acc-body {
  display: none;
  padding: 0 var(--s-base) var(--s-base);
  border-top: 1px solid var(--hairline-soft);
}
.acc-item.is-open .acc-body { display: block; }

/* Timeline */
.tline {
  display: grid;
  grid-template-columns: 80px 16px 1fr;
  row-gap: var(--s-sm);
  column-gap: var(--s-base);
  margin: 0;
  padding: 0;
}
.tline .time { font-size: 14px; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.tline .line {
  position: relative;
  display: flex;
  justify-content: center;
}
.tline .line::before {
  content: "";
  position: absolute; top: 6px; bottom: -10px;
  width: 1px;
  background: var(--hairline);
}
.tline .row:last-child .line::before { display: none; }
.tline .dot {
  position: relative;
  z-index: 1;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--canvas);
  border: 2px solid var(--primary);
  margin-top: 4px;
}
.tline .row.is-stop .dot { background: var(--primary); }
.tline .label { font-size: 14px; color: var(--body); }
.tline .label strong { color: var(--ink); font-weight: 600; }

/* Price block */
.price-row-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 15px;
}
.price-row-line:last-child { border-bottom: 0; }
.price-row-line .lbl { color: var(--body); }
.price-row-line .val { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Included list */
.incl-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-sm) var(--s-lg);
  padding: 0; margin: 0;
  list-style: none;
}
@media (max-width: 600px) { .incl-list { grid-template-columns: 1fr; } }
.incl-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-sm);
  padding: 6px 0;
  font-size: 15px;
  color: var(--ink);
}
.incl-list li .ico {
  flex: 0 0 18px;
  width: 18px; height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  color: var(--primary);
}
.incl-list li.excl .ico { color: var(--muted-soft); }
.incl-list li.excl { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--muted-soft); }

/* Insurance block */
.insurance-block {
  background: var(--surface-soft);
  border-radius: var(--r-md);
  padding: var(--s-lg);
}
.insurance-block h3 {
  margin: 0 0 var(--s-sm);
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--s-sm);
}
.insurance-block h3 .ico { color: var(--primary-ink); }
.insurance-block p { margin: 0 0 var(--s-sm); color: var(--body); font-size: 14px; line-height: 1.55; }
.insurance-block ul { margin: 6px 0 var(--s-base) 18px; padding: 0; color: var(--body); font-size: 14px; }
.insurance-block ul li { padding: 2px 0; }

/* Booking card */
.booking-card {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: var(--s-lg);
  box-shadow: var(--shadow-1);
}
.booking-card .price {
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.4px;
}
.booking-card .price small { font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.booking-card .sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.booking-card .row { display: flex; gap: var(--s-sm); margin-top: var(--s-base); }
.booking-card .row .btn { flex: 1; }
.booking-card .row-stack { display: flex; flex-direction: column; gap: var(--s-sm); margin-top: var(--s-base); }
.booking-card .row-stack .btn { width: 100%; }
.booking-card .legal { font-size: 12px; color: var(--muted); margin-top: var(--s-base); text-align: center; }
.booking-card .form-row {
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  margin-top: var(--s-md);
}
.booking-card .form-row .lbl { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
.booking-card .form-row .val { font-size: 14px; color: var(--ink); }

/* ===== Carousel ===== */
.carousel {
  position: relative;
}
.carousel-track {
  display: grid;
  grid-template-columns: repeat(var(--n, 1), 100%);
  transform: translateX(calc(var(--idx, 0) * -100%));
  transition: transform 300ms ease;
  width: 100%;
}
.carousel-mask { overflow: hidden; border-radius: var(--tw-card-radius); }
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--hairline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-1);
  color: var(--ink);
  z-index: 2;
}
.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }
.carousel-dots {
  position: absolute;
  bottom: 12px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
  z-index: 2;
}
.carousel-dots .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  transition: background 200ms, transform 200ms;
}
.carousel-dots .dot.is-active { background: white; transform: scale(1.2); }

/* ===== Footer ===== */
footer.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: var(--s-section) 0 var(--s-xl);
  margin-top: var(--s-section);
}
[data-accent-mode="sand"] footer.site-footer { background: var(--surface-sand); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-xxl);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-xl); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: var(--s-lg); } }
.footer-grid h4 { font-size: 14px; font-weight: 600; margin: 0 0 var(--s-base); color: var(--ink); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid ul li a { color: var(--body); font-size: 14px; }
.footer-grid ul li a:hover { color: var(--ink); text-decoration: underline; }

/* Yurt-light strip in footer (metaphor moment #2) */
.yurt-strip {
  display: flex;
  align-items: center;
  gap: var(--s-base);
  padding: var(--s-base);
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  background:
    linear-gradient(90deg, transparent 0%, rgba(229,180,115,0.18) 50%, transparent 100%),
    var(--canvas);
  margin-top: var(--s-base);
  font-size: 13px;
  color: var(--body);
}
.yurt-strip .yurt-ico {
  flex: 0 0 36px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 55%, #FFE9C7 0%, #E5B473 40%, transparent 75%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.legal-band {
  margin-top: var(--s-xxl);
  padding-top: var(--s-base);
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-base);
  font-size: 13px;
  color: var(--muted);
}
.legal-band .socials { display: flex; gap: var(--s-base); }
.legal-band a { color: var(--muted); }
.legal-band a:hover { color: var(--ink); }

/* ===== Sand accent mode ===== */
[data-accent-mode="sand"] {
  --canvas: #FBF7F0;
  --surface-soft: #F4ECDD;
  --surface-strong: #ECDFC6;
}

/* ===== Misc ===== */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-full);
  background: var(--primary-soft);
  color: var(--primary-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.kicker.gold-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }

.divider { height: 1px; background: var(--hairline); margin: var(--s-xxl) 0; }

/* Sticky mobile CTA bar */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 10px var(--s-base);
  display: none;
  gap: var(--s-sm);
  align-items: center;
  box-shadow: var(--shadow-1);
}
.sticky-cta .price { font-size: 16px; font-weight: 600; flex: 1; }
.sticky-cta .price small { font-size: 12px; color: var(--muted); margin-left: 4px; }
@media (max-width: 900px) { .sticky-cta.is-on { display: flex; } }

/* Nature page */
.nat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-lg);
}
@media (max-width: 800px) { .nat-cards { grid-template-columns: 1fr; } }
.nat-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-base);
}
.nat-card .photo-ph { aspect-ratio: 4/5; }
.nat-card h3 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.3px; }
.nat-card p { margin: 0; color: var(--body); font-size: 15px; line-height: 1.5; }
.nat-card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.nat-card .tag {
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-xxl);
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--surface-soft);
  border-radius: var(--r-md);
  padding: var(--s-lg);
  display: flex;
  flex-direction: column;
  gap: var(--s-base);
}
.contact-row {
  display: flex;
  gap: var(--s-base);
  align-items: center;
  padding: var(--s-md) 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.contact-row:last-child { border-bottom: 0; }
.contact-row .ico {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  background: var(--primary-soft);
  color: var(--primary-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.contact-row .lbl { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.contact-row .val { font-size: 15px; color: var(--ink); font-weight: 500; }

/* Jeep tour list (2-column compact) */
.jeep-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--s-xxl);
  align-items: start;
}
@media (max-width: 900px) {
  .jeep-layout { grid-template-columns: 1fr; gap: var(--s-lg); }
}
.jeep-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
}
@media (max-width: 900px) {
  .jeep-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
}
.jeep-sidebar-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-xs);
}
@media (max-width: 900px) { .jeep-sidebar-label { width: 100%; } }

.jeep-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-base);
}
@media (max-width: 700px) { .jeep-list { grid-template-columns: 1fr; } }
.jeep-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-base);
  padding: var(--s-base);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--canvas);
  align-items: center;
  transition: border-color 120ms ease, transform 120ms ease;
}
.jeep-row:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.jeep-row .route { font-size: 15px; font-weight: 500; color: var(--ink); line-height: 1.4; }
.jeep-row .meta-row { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.jeep-row .meta-row .pill {
  font-size: 11px; padding: 2px 8px; border-radius: var(--r-full);
  background: var(--surface-soft); color: var(--muted); font-weight: 600;
}
.jeep-row .price { font-size: 15px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.jeep-row .price small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); }

/* Generic content prose for body pages */
.prose p { font-size: 16px; line-height: 1.6; color: var(--body); }
.prose h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.4px; margin: var(--s-xl) 0 var(--s-base); color: var(--ink); }
.prose h3 { font-size: 20px; font-weight: 600; margin: var(--s-lg) 0 var(--s-sm); color: var(--ink); }
.prose ul { padding-left: 20px; color: var(--body); }
.prose ul li { padding: 4px 0; }

/* What you'll see grid */
.wys-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-base);
}
@media (max-width: 800px) { .wys-grid { grid-template-columns: repeat(2, 1fr); } }
.wys-item {
  padding: var(--s-base);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  display: flex;
  align-items: flex-start;
  gap: var(--s-sm);
}
.wys-item .ico { color: var(--primary-ink); flex: 0 0 22px; }
.wys-item .ttl { font-size: 14px; font-weight: 600; color: var(--ink); }
.wys-item .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* Steppe horizon decorative band */
.horizon-band {
  height: 1px;
  background: linear-gradient(90deg, transparent 0, var(--hairline) 20%, var(--hairline) 80%, transparent 100%);
}

/* Section divider with star/dot like Airbnb */
.mini-laurel {
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  font-size: 13px;
  color: var(--muted);
}
.mini-laurel .leaf { width: 14px; height: 18px; color: var(--primary-ink); }

/* ===== Full-bleed hero ===== */
.hero-fullbleed {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 24px;
  margin-bottom: 48px;
}
.hero-fullbleed-inner {
  position: relative;
  height: 560px;
}
.hero-fullbleed-inner .hero-illus {
  position: absolute;
  inset: 0;
  aspect-ratio: unset;
  border-radius: 0;
  height: 100%;
  width: 100%;
}
.hero-fullbleed-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 48px 40px 40px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.72) 100%);
  color: white;
}
.hero-fullbleed-eyebrow { color: #FFE2B4; }
.hero-fullbleed-h1 { color: white; max-width: 18ch; }
.hero-fullbleed-em { color: #FFE2B4; }
.hero-fullbleed-ctas { margin-top: 24px; }

.btn-white {
  background: rgba(255,255,255,0.95);
  color: #222;
}
.btn-white:hover { background: white; }

@media (max-width: 900px) {
  .hero-fullbleed-inner { height: 480px; }
  .hero-fullbleed-overlay { padding: 36px 28px 32px; }
}
@media (max-width: 540px) {
  .hero-fullbleed { border-radius: var(--r-md); margin-top: 12px; margin-bottom: 28px; }
  .hero-fullbleed-inner { height: 420px; }
  .hero-fullbleed-overlay { padding: 20px 20px 24px; }
  .hero-fullbleed-h1 { font-size: clamp(26px, 8vw, 36px); letter-spacing: -0.5px; margin-bottom: 12px; }
  .hero-fullbleed-ctas { margin-top: 16px; gap: 8px; }
  .hero-fullbleed-ctas .btn { height: 42px; padding: 0 16px; font-size: 14px; }
}

/* ===== Homepage grid layouts (responsive) ===== */
.mangystau-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-xxl);
  align-items: center;
}
.mangystau-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-base);
}
@media (max-width: 800px) {
  .mangystau-row { grid-template-columns: 1fr; gap: var(--s-xl); }
}

.two-col-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-xxl);
  align-items: center;
}
@media (max-width: 800px) {
  .two-col-stack { grid-template-columns: 1fr; gap: var(--s-xl); }
}

.private-photo-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--s-base);
  aspect-ratio: 5 / 4;
}
.private-photo-grid .span-2-rows { grid-row: 1 / 3; }

@media (max-width: 800px) {
  .private-photo-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    aspect-ratio: auto;
    gap: 8px;
  }
  .private-photo-grid .span-2-rows {
    grid-row: auto;
    grid-column: 1 / 3;
  }
}

.city-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-base);
}
@media (max-width: 900px) {
  .city-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 540px) {
  .city-strip { grid-template-columns: repeat(2, 1fr); }
}

.quiet-hero-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 40px;
}
@media (max-width: 640px) {
  .quiet-hero-strip { grid-template-columns: repeat(2, 1fr); }
}

.opt-body-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--s-xxl);
}
@media (max-width: 700px) {
  .opt-body-grid { grid-template-columns: 1fr; gap: var(--s-xl); }
}

/* ===== Closing CTA block ===== */
.closing-cta-block {
  padding: 56px 48px;
  background: var(--surface-soft);
  border-radius: var(--r-md);
  text-align: center;
}
.closing-cta-btns {
  margin-top: 28px;
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
@media (max-width: 540px) {
  .closing-cta-block { padding: 36px 20px; }
  .closing-cta-btns { display: flex; flex-direction: column; align-items: stretch; }
  .closing-cta-btns .btn { width: 100%; justify-content: center; }
}

/* ===== Mobile hero-stats ===== */
@media (max-width: 540px) {
  .hero-stats { gap: var(--s-lg); margin-top: var(--s-xl); }
  .hero-stat-val { font-size: 22px; }
}

/* ===== Section-head on mobile ===== */
@media (max-width: 540px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section-head .see-all { margin-left: 0; }
}

/* ===== Trust strip single-col on very small screens ===== */
@media (max-width: 380px) {
  .trust-strip { grid-template-columns: 1fr; }
}

/* ===== Booking card mobile ===== */
@media (max-width: 540px) {
  .booking-card { padding: var(--s-base); }
  .booking-card .price { font-size: 22px; }
}

/* ===== Detail hero mobile ===== */
@media (max-width: 540px) {
  .detail-title { font-size: clamp(24px, 6vw, 36px); }
  .detail-hero { gap: 8px; }
}
