/* Palette taken from the route itself:
   harrat basalt, desert ochre, Red Sea turquoise, palm green, Madinah dusk navy */
:root {
  --basalt: #1d1a17;
  --ochre: #a8652e;
  --sand: #e9c891;
  --sea: #1f8a8c;
  --palm: #2f5d4a;
  --dusk: #17213a;
  --paper: #fbf5ea;
  --ink: #241b13;
  --muted: #6b5a49;
  --line: rgba(36, 27, 19, 0.14);
  --panel: rgba(251, 245, 234, 0.6);
  --pad-l: clamp(16px, 6vw, 96px);
  --pad-r: clamp(16px, 6vw, 96px);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--basalt); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--basalt);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
}
img { max-width: 100%; }
a { color: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Fixed landscape stage ---------- */
.journey-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.journey-bg .scene {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  transform: scale(1.06);
  transition: transform 9s ease-out;
}
.journey-bg .scene.is-active { opacity: 1; transform: scale(1); }
/* the opening photo and the passengers at the window stay perfectly still (no slow zoom) */
.journey-bg .scene[data-scene="0"], .journey-bg .scene[data-scene="1"] { transform: none; transition: none; }
/* Opening photo: script.js frames it so the train's nose lands in the open
   band right of the stats row and above the search card (desktop only). */
@media (min-width: 860px) {
  .journey-bg .scene-hero { max-width: none; object-fit: fill; }
}
@media (max-width: 859px) {
  .journey-bg .scene-hero { object-position: 30% 50%; }
}
/* "What you see" photo: widen it so the walking figure stands right of the text column */
@media (min-width: 860px) {
  .journey-bg .scene[data-scene="2"] { width: 135%; max-width: none; left: 0; object-position: 50% 28%; }
}
/* Madinah minaret: widened so the tower stands right of the centred FAQ column */
@media (min-width: 860px) {
  .journey-bg .scene-minaret { width: 160%; max-width: none; left: 0; object-position: 50% 18%; }
}
.journey-bg .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20, 15, 10, 0.42) 0%, rgba(20, 15, 10, 0.08) 55%, rgba(20, 15, 10, 0) 100%);
}
/* Light transitions used instead of the sand gust at two points (script.js lightPass):
   a warm band of sunlight that sweeps across, and a soft daylight haze */
.journey-bg .light-veil { position: absolute; z-index: 3; opacity: 0; pointer-events: none; will-change: transform, opacity; }
.journey-bg .light-veil.is-sweep {
  top: -10%; bottom: -10%; left: 0; width: 70vw;
  background: linear-gradient(90deg, rgba(255, 214, 150, 0) 0%, rgba(255, 220, 165, 0.35) 25%, rgba(255, 240, 210, 0.9) 50%, rgba(255, 220, 165, 0.35) 75%, rgba(255, 214, 150, 0) 100%);
}
.journey-bg .light-veil.is-haze {
  inset: 0;
  background: radial-gradient(120% 90% at 50% 35%, rgba(255, 252, 244, 0.98), rgba(250, 240, 222, 0.9) 60%, rgba(240, 225, 200, 0.85));
}
/* the sand gust passes over everything, text blocks included (header stays usable) */
.sand { position: fixed; inset: 0; z-index: 15; width: 100%; height: 100%; pointer-events: none; }

/* blocks of the next stretch wait for the sand to clear */
.hero, .panel, .feature, .plan, .trail, .site-footer { transition: opacity 0.7s ease, transform 0.7s ease; }
.is-waiting { opacity: 0; transform: translateY(28px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 16px clamp(16px, 4vw, 48px);
  color: var(--paper);
  background: linear-gradient(180deg, rgba(20, 15, 10, 0.55), rgba(20, 15, 10, 0));
  transition: background 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(20, 15, 10, 0.72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.logo {
  font-family: var(--display); font-size: 22px; font-weight: 600;
  text-decoration: none; white-space: nowrap; letter-spacing: 0.01em;
}
.logo span { color: var(--sand); padding: 0 2px; }
.site-nav { display: flex; gap: 24px; margin-left: auto; }
.site-nav a { color: rgba(251, 245, 234, 0.88); text-decoration: none; font-weight: 500; font-size: 15px; }
.site-nav a:hover { color: #fff; }
.header-cta {
  order: 3;
  padding: 9px 18px; border-radius: 999px;
  background: var(--paper); color: var(--ink);
  font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap;
}
.nav-toggle { display: none; }

@media (max-width: 859px) {
  .site-header {
    display: grid; grid-template-columns: 1fr auto auto; gap: 12px;
    padding: 12px 16px;
    background: rgba(20, 15, 10, 0.72);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .logo { font-size: 19px; }
  .header-cta { order: 0; padding: 8px 14px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 0 10px;
    border: 1px solid rgba(251, 245, 234, 0.35); border-radius: 12px;
    background: transparent; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--paper); border-radius: 2px; }
  .site-nav {
    grid-column: 1 / -1;
    display: none; flex-direction: column; gap: 0; margin: 4px 0 6px;
  }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav a { padding: 12px 2px; border-top: 1px solid rgba(251, 245, 234, 0.14); font-size: 17px; }
}

/* ---------- Content column ---------- */
main { position: relative; z-index: 2; padding: 0 var(--pad-r) 0 var(--pad-l); }

/* ---------- First screen: landscape, H1, search ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 3.5vh, 40px);
  padding: 96px 0 clamp(24px, 4vh, 48px);
  color: var(--paper);
}
.hero::before {
  /* local scrim so white type and the search card read on any frame */
  content: ""; position: absolute; z-index: -1;
  inset: 0 calc(-1 * var(--pad-r)) 0 calc(-1 * var(--pad-l));
  background:
    linear-gradient(180deg, rgba(20, 15, 10, 0.45) 0%, rgba(20, 15, 10, 0.18) 35%, rgba(20, 15, 10, 0.1) 55%, rgba(20, 15, 10, 0.4) 85%, rgba(20, 15, 10, 0) 100%),
    linear-gradient(90deg, rgba(20, 15, 10, 0.55) 0%, rgba(20, 15, 10, 0.25) 55%, rgba(20, 15, 10, 0) 80%);
  pointer-events: none;
}
.hero-copy {
  max-width: 1180px;
  /* tight shadow for crisp edges + soft halo against the bright sunset */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 2px 12px rgba(0, 0, 0, 0.45), 0 4px 34px rgba(0, 0, 0, 0.55);
}
.eyebrow {
  margin: 0 0 14px; font-size: 14px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--sand);
}
.hero h1 {
  margin: 0; font-family: var(--display); font-weight: 600;
  font-size: clamp(2.8rem, 7.4vw, 6.4rem); line-height: 0.95; letter-spacing: -0.01em;
}
.hero .h1-sub {
  /* same voice as the line above the H1: one display face (H1) + one text face */
  display: block; margin-top: 18px;
  font-family: var(--body); font-weight: 600; font-style: normal;
  font-size: clamp(15px, 1.5vw, 19px); line-height: 1.3;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper);
}
/* key numbers as a row of stats: big value, small label, thin dividers */
.hero-stats {
  display: flex; flex-wrap: wrap; margin: 28px 0 0; padding: 0; list-style: none;
}
.hero-stats li {
  display: flex; flex-direction: column; gap: 8px;
  padding: 2px clamp(18px, 2.4vw, 36px);
  border-left: 1px solid rgba(251, 245, 234, 0.35);
}
.hero-stats li:first-child { padding-left: 0; border-left: 0; }
.hero-stats strong {
  font-size: clamp(24px, 2.6vw, 36px); font-weight: 700; line-height: 1;
  letter-spacing: -0.01em; color: var(--paper); white-space: nowrap;
}
.hero-stats span {
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sand);
}
.hero-search {
  width: 100%; max-width: 1180px;
  padding: clamp(14px, 2vw, 22px);
  border-radius: 22px;
  background: rgba(251, 245, 234, 0.94);
  box-shadow: 0 30px 70px rgba(20, 15, 10, 0.35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
}
.hero-search #firebird-search-widget { margin: 0; min-height: 96px; }
/* the widget ships with 64px of transparent padding; our card already frames it */
.hero-search #firebird-search-widget > div { padding: 0 !important; }
.hero-sub { max-width: 1180px; margin-top: 22px; }
.hero-sub p { margin: 0 0 10px; font-size: 17px; line-height: 1.55; color: rgba(251, 245, 234, 0.92); }
.hero-sub p:last-child { margin-bottom: 0; }

.panel {
  position: relative;
  max-width: 680px;
  margin: 0 0 18vh;
  padding: clamp(22px, 4vw, 40px);
  background: var(--panel);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(20, 15, 10, 0.14); border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
/* extra open landscape where the journey moves to a new stretch */
.panel.scene-start { margin-top: 6vh; }
.panel h2 {
  margin: 0 0 14px; font-family: var(--display); font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.08; letter-spacing: -0.005em;
}
.panel h3 { margin: 26px 0 6px; font-family: var(--display); font-weight: 600; font-size: 1.35rem; line-height: 1.2; }
.panel h3:first-child { margin-top: 0; }
.panel p { margin: 0 0 14px; }
.panel p:last-child { margin-bottom: 0; }

/* The widget switches to a one-row layout on wide screens and needs ~900px;
   the hero search card (max 1180px) gives it that room. */
#firebird-search-widget { width: 100%; max-width: 100%; overflow: visible; }

.cta-row a {
  display: inline-block; margin: 6px 10px 0 0; padding: 11px 20px; border-radius: 999px;
  background: var(--ochre); color: #fff; font-weight: 700; text-decoration: none;
}
.cta-row a[href^="#"] { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.cta-row a:hover { filter: brightness(1.06); }

.glance { width: 100%; border-collapse: collapse; font-size: 16px; }
.glance th, .glance td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.glance th { width: 38%; padding-right: 16px; font-weight: 700; color: var(--muted); }
.glance tr:last-child th, .glance tr:last-child td { border-bottom: 0; }

.route-map { margin: 22px 0 8px; }
.route-map svg { width: 100%; max-width: 340px; height: auto; display: block; margin: 0 auto; }
.route-map .coast { fill: none; stroke: var(--sea); stroke-width: 2; stroke-dasharray: 4 5; opacity: 0.7; }
.route-map .sea { fill: var(--sea); font-size: 13px; font-style: italic; opacity: 0.8; }
.route-map .line { fill: none; stroke: var(--ochre); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.route-map .stop circle { fill: var(--paper); stroke: var(--ink); stroke-width: 3; }
.route-map .stop text { fill: var(--ink); font-size: 14px; font-weight: 700; font-family: var(--body); }
.route-map figcaption { text-align: center; font-size: 14px; color: var(--muted); margin-top: 6px; }

/* ---------- Route: all five stations on one screen ---------- */
.panel-route { max-width: 1180px; }
.route-head { display: grid; grid-template-columns: 1fr 220px; gap: 28px; align-items: center; }
.route-head .route-map { margin: 0; }
.route-head .route-map svg { max-width: 220px; }
.route-head .route-map figcaption { font-size: 12px; }

.stop-cards {
  display: flex; gap: 12px; margin-top: 24px;
  height: clamp(340px, 50vh, 440px);
}
.stop-card {
  position: relative; flex: 1 1 0; min-width: 0;
  border-radius: 18px; overflow: hidden; cursor: pointer;
  background: var(--basalt); color: var(--paper);
  transition: flex-grow 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
  outline: none;
}
.stop-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s ease;
}
.stop-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 15, 10, 0) 25%, rgba(20, 15, 10, 0.88) 100%);
}
/* frosted dark plate behind number + name, so they read on bright photos */
.stop-card-title {
  display: inline-block; max-width: 100%;
  padding: 10px 12px; border-radius: 12px;
  background: rgba(20, 15, 10, 0.6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.panel .stop-card h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.panel .stop-card p { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
/* open card: darker wash so the longer text stays readable on bright photos */
.stop-card.is-open::after { background: linear-gradient(180deg, rgba(20, 15, 10, 0.1) 0%, rgba(20, 15, 10, 0.55) 45%, rgba(20, 15, 10, 0.92) 100%); }
@media (hover: hover) and (min-width: 1200px) {
  .stop-cards .stop-card:hover::after { background: linear-gradient(180deg, rgba(20, 15, 10, 0.1) 0%, rgba(20, 15, 10, 0.55) 45%, rgba(20, 15, 10, 0.92) 100%); }
}
.stop-card-body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 18px; }
.stop-card-num { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; color: var(--sand); }
.panel .stop-card h3 { margin: 6px 0 0; color: var(--paper); font-size: 1.15rem; line-height: 1.2; }
.panel .stop-card p {
  margin: 0; max-height: 0; opacity: 0; overflow: hidden;
  font-size: 15px; line-height: 1.5; color: rgba(251, 245, 234, 0.9);
  transition: max-height 0.5s ease, opacity 0.35s ease, margin 0.5s ease;
}
.stop-card:focus-visible { box-shadow: 0 0 0 3px var(--sand); }

/* Aligned layout on desktop: number and name sit at the top of every card,
   so their first lines match across cards whatever the name length.
   The description of the open card sits at the bottom over a dark wash. */
@media (min-width: 1200px) {
  .stop-card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 55%; z-index: 0;
    background: linear-gradient(180deg, rgba(20, 15, 10, 0.78) 0%, rgba(20, 15, 10, 0.35) 55%, rgba(20, 15, 10, 0) 100%);
  }
  .stop-card-body { top: 0; padding: 14px; }
  .stop-card-num { display: block; }
  /* the title plate keeps the width of a closed card (set by script.js), so its lines
     never re-wrap while the cards grow and shrink; the type shrinks to fit the longest word */
  .stop-card-title { width: var(--title-w, auto); max-width: none; }
  .panel .stop-card h3 {
    margin-top: 6px; line-height: 1.2; hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal;
    font-size: max(13px, min(1.1rem, calc((var(--title-w, 200px) - 24px) / 7.8)));
  }
  .panel .stop-card p { left: 14px; right: 14px; bottom: 14px; padding: 12px 14px; border-radius: 12px;
    background: rgba(20, 15, 10, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  /* like the title, the description keeps the width of an open card (set by script.js),
     so its lines never re-wrap while the card grows or shrinks */
  .panel .stop-card p { position: absolute; left: 20px; right: auto; bottom: 20px; width: var(--desc-w, auto); }
  .panel .stop-card.is-open p { margin-top: 0; }
}
@media (hover: hover) and (min-width: 1200px) {
  .panel .stop-cards .stop-card:hover p { margin-top: 0; }
}

/* the open card grows and shows its text; on desktop hover opens the card under the pointer */
.stop-card.is-open { flex-grow: 2.2; }
.panel .stop-card.is-open p { max-height: 220px; opacity: 1; margin-top: 10px; }
.stop-card.is-open img { transform: scale(1.04); }
@media (hover: hover) and (min-width: 1200px) {
  .stop-cards:hover .stop-card.is-open { flex-grow: 1; }
  .stop-cards:hover .stop-card.is-open p { max-height: 0; opacity: 0; margin-top: 0; }
  .stop-cards .stop-card:hover { flex-grow: 2.2; }
  .panel .stop-cards .stop-card:hover p { max-height: 220px; opacity: 1; margin-top: 10px; }
  .stop-cards .stop-card:hover img { transform: scale(1.04); }
}

/* phones: stacked rows, tap a station to open it */
@media (max-width: 859px) {
  .route-head { grid-template-columns: 1fr; }
  .route-head .route-map svg { max-width: 260px; }
}
@media (max-width: 1199px) {
  .stop-cards { flex-direction: column; height: auto; gap: 10px; }
  .stop-card { flex: none; height: 86px; transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
  .stop-card.is-open { height: 300px; }
  .stop-card-body { padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .stop-card, .stop-card img, .panel .stop-card p { transition: none; }
}

/* ---------- Pilgrim essentials: three steps joined by a dashed trail ---------- */
.trail { position: relative; max-width: 680px; margin: 6vh 0 18vh; padding-left: 40px; display: grid; gap: 14px; }
.trail::before {
  content: ""; position: absolute; left: 11px; top: 30px; bottom: 30px; width: 2px;
  background: repeating-linear-gradient(180deg, rgba(251, 245, 234, 0.85) 0 8px, transparent 8px 14px);
}
.trail .panel { margin: 0; }
.trail-step::before {
  /* the stop on the trail, level with the step label */
  content: ""; position: absolute; left: -36px; top: clamp(24px, 4vw, 42px); width: 16px; height: 16px; border-radius: 50%;
  background: var(--ochre); box-shadow: 0 0 0 4px rgba(251, 245, 234, 0.85);
}
.trail-label {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ochre);
}
.trail-label b {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(168, 101, 46, 0.14); font-size: 11px; letter-spacing: 0;
}
.trail .panel h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
@media (max-width: 640px) {
  .trail { margin-bottom: 12vh; padding-left: 28px; }
  .trail::before { left: 7px; }
  .trail-step::before { left: -27px; width: 12px; height: 12px; }
}

/* ---------- Train vs bus, car and flight: one compact comparison table ---------- */
.compare { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 15px; }
.compare thead th {
  padding: 0 12px 10px 0; text-align: left; font-size: 12px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.compare tbody th, .compare tbody td { padding: 12px 12px 12px 0; border-top: 1px solid rgba(36, 27, 19, 0.12); text-align: left; vertical-align: middle; }
.compare tbody th { font-weight: 700; }
.compare td:last-child { color: var(--muted); }
.compare td b { display: block; font-weight: 700; white-space: nowrap; }
/* time as a bar, so the gap between train and road is visible at a glance */
.compare td i { display: block; width: var(--w); max-width: 140px; height: 6px; margin-top: 6px; border-radius: 99px; background: rgba(36, 27, 19, 0.2); }
.compare td i.is-unknown { width: 140px; background: repeating-linear-gradient(90deg, rgba(36, 27, 19, 0.2) 0 6px, transparent 6px 12px); }
.compare .is-best th, .compare .is-best td b { color: var(--ochre); }
.compare .is-best i { background: var(--ochre); }
.compare-badge {
  display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; vertical-align: 2px;
  background: var(--ochre); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.04em;
}
@media (max-width: 640px) {
  .compare thead { display: none; }
  .compare tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-top: 1px solid rgba(36, 27, 19, 0.12); }
  .compare tbody th, .compare tbody td { padding: 0; border: 0; }
  .compare td:last-child { grid-column: 1 / -1; font-size: 14px; }
  .compare td i { display: none; }
}

/* ---------- Book: the closing banner, a caravan photo with the copy on a soft sand fade ---------- */
.panel-book {
  position: relative; overflow: hidden; max-width: none; margin-bottom: 8vh;
  display: flex; align-items: center;
  padding: clamp(24px, 3vw, 40px) clamp(28px, 4.4vw, 64px); background: var(--sand); border: 0;
}
.book-photo { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.panel-book::before {
  /* warm sand fade so dark type reads on the left and the camels stay clear on the right */
  content: ""; position: absolute; z-index: 1; inset: 0;
  background: linear-gradient(90deg, rgba(251, 240, 220, 0.94) 0%, rgba(251, 240, 220, 0.82) 38%, rgba(251, 240, 220, 0) 62%);
}
.book-copy { position: relative; z-index: 2; max-width: 540px; }
.panel-book h2 { margin-bottom: 12px; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.05; }
.panel-book p { color: var(--ink); }
.book-route {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 12px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ochre);
}
.book-route i {
  width: 56px; height: 2px; position: relative;
  background: repeating-linear-gradient(90deg, var(--ochre) 0 6px, transparent 6px 10px);
}
.book-route i::after { content: ""; position: absolute; right: -2px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--ochre); }
.book-route em { flex-basis: 100%; font-style: normal; font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 14px; color: var(--muted); }
.panel-book .book-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 0; }
.book-actions a {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none;
}
.book-primary { background: var(--ochre); color: #fff; box-shadow: 0 10px 24px rgba(168, 101, 46, 0.35); }
.book-primary:hover { filter: brightness(1.08); }
.book-secondary { background: rgba(255, 255, 255, 0.55); color: var(--ink); border: 1px solid rgba(36, 27, 19, 0.15); }
.book-secondary:hover { background: rgba(255, 255, 255, 0.8); }
@media (max-width: 859px) {
  .panel-book { min-height: 0; align-items: flex-end; padding-top: 220px; }
  .book-photo { height: 260px; object-position: 75% 50%; }
  .panel-book::before { background: linear-gradient(180deg, rgba(251, 240, 220, 0) 0, rgba(251, 240, 220, 0) 160px, rgba(251, 240, 220, 0.96) 250px); }
}

/* ---------- What you see: full-screen photo, text on the image ---------- */
.feature {
  position: relative; min-height: 100vh; min-height: 100svh; margin: 0 0 6vh;
  display: flex; flex-direction: column; justify-content: center; gap: 6vh;
  padding: 110px 0 40px; color: var(--paper);
}
.feature::before {
  /* soft local shade on the left and along the bottom; fades out at the top and bottom edges */
  content: ""; position: absolute; z-index: -1; inset: 0 calc(-1 * var(--pad-r)) 0 calc(-1 * var(--pad-l));
  background:
    linear-gradient(90deg, rgba(20, 15, 10, 0.62) 0%, rgba(20, 15, 10, 0.35) 32%, rgba(20, 15, 10, 0) 55%),
    linear-gradient(180deg, rgba(20, 15, 10, 0) 0%, rgba(20, 15, 10, 0) 62%, rgba(20, 15, 10, 0.55) 88%, rgba(20, 15, 10, 0) 100%);
  -webkit-mask: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  pointer-events: none;
}
.feature-copy { max-width: 500px; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 2px 18px rgba(0, 0, 0, 0.4); }
.feature-eyebrow {
  display: inline-block; margin-bottom: 14px; font-size: 13px; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--sand);
}
.feature h2 {
  margin: 0 0 22px; font-family: var(--display); font-weight: 600;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.02; letter-spacing: -0.01em;
}
.feature p { margin: 0 0 14px; font-size: 17px; line-height: 1.65; color: rgba(251, 245, 234, 0.94); }
/* the six views in order, joined by a dashed track */
.view-line {
  list-style: none; margin: 0; padding: 0; counter-reset: view;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px;
}
.view-line li { position: relative; counter-increment: view; padding-top: 30px; display: grid; gap: 2px; line-height: 1.25; }
.view-line li::before {
  content: counter(view, decimal-leading-zero); position: absolute; top: 0; left: 0; z-index: 1;
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--sand); color: var(--basalt); font-size: 10px; font-weight: 800;
}
.view-line li::after {
  content: ""; position: absolute; top: 10px; left: 26px; right: -10px; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(233, 200, 145, 0.7) 0 8px, transparent 8px 14px);
}
.view-line li:last-child::after { display: none; }
.view-line b { font-size: 15px; font-weight: 800; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.view-line small { font-size: 13px; color: rgba(251, 245, 234, 0.75); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
@media (max-width: 859px) {
  .feature { justify-content: flex-end; gap: 28px; }
  .feature::before {
    background: linear-gradient(180deg, rgba(20, 15, 10, 0) 0%, rgba(20, 15, 10, 0.25) 30%, rgba(20, 15, 10, 0.7) 75%, rgba(20, 15, 10, 0) 100%);
  }
  .view-line { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .view-line li::after { display: none; }
}

/* ---------- Planning the ride: a full-screen glass panel, three steps switched by tabs ---------- */
.plan {
  display: flex; flex-direction: column;
  min-height: calc(100vh - 120px); min-height: calc(100svh - 120px);
  margin: 6vh 0 18vh; overflow: hidden;
  background: rgba(251, 245, 234, 0.5); border-radius: 26px; border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 24px 70px rgba(20, 15, 10, 0.16);
  backdrop-filter: blur(22px) saturate(1.25); -webkit-backdrop-filter: blur(22px) saturate(1.25);
}
/* tabs: a quiet row of labels, the active one underlined */
.plan-tabs { display: flex; gap: 10px; padding: 0 clamp(24px, 4.4vw, 64px); border-bottom: 1px solid rgba(36, 27, 19, 0.12); }
.plan-tab {
  position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 24px 16px 22px;
  border: 0; background: none; color: var(--muted); font: inherit; font-size: 17px; font-weight: 700;
  cursor: pointer; transition: color 0.2s ease;
}
.plan-tab:first-child { padding-left: 0; }
.plan-tab::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0;
  background: var(--ochre); transform: scaleX(0); transition: transform 0.3s ease;
}
.plan-tab:first-child::after { left: 0; }
.plan-tab:hover, .plan-tab.is-active { color: var(--ink); }
.plan-tab.is-active::after { transform: scaleX(1); }
.plan-tab:focus { outline: none; }
.plan-tab:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; border-radius: 6px; }
.plan-tab-icon { display: inline-flex; }
.plan-tab-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.plan-tab.is-active .plan-tab-icon svg { stroke: var(--ochre); }

.plan-pane {
  flex: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center;
  gap: clamp(32px, 5vw, 88px); padding: clamp(28px, 4.4vw, 64px);
}
.js .plan-pane { display: none; }
.js .plan-pane.is-active { display: grid; animation: pane-in 0.4s ease both; }
@keyframes pane-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.plan-visual { display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.plan-text { display: flex; flex-direction: column; }
.plan-text h2 {
  margin: 0 0 18px; font-family: var(--display); font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.08;
}
.plan-text p { margin: 0 0 14px; font-size: 17px; line-height: 1.65; }
.plan-actions { padding-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.plan-link {
  display: inline-block; padding: 13px 24px; border-radius: 999px;
  background: var(--ochre); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none;
}
.plan-link:hover { filter: brightness(1.06); }
.plan-next {
  padding: 0; border: 0; background: none; font: inherit; font-size: 16px; font-weight: 700;
  color: var(--ochre); cursor: pointer;
}
.plan-next:hover { color: var(--ochre); }

/* 01 · travel time */
.time-hero { display: grid; gap: 4px; }
.time-hero strong { font-family: var(--display); font-weight: 600; font-size: clamp(4rem, 8vw, 7.5rem); line-height: 0.95; letter-spacing: -0.02em; color: var(--ochre); }
.time-hero span { font-size: 16px; color: var(--muted); }
.time-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.time-bars li { display: grid; grid-template-columns: 110px 1fr 86px; align-items: center; gap: 14px; font-size: 16px; }
.time-bars span { color: var(--muted); }
.time-bars b { font-weight: 700; text-align: right; white-space: nowrap; }
.time-bars i { position: relative; height: 10px; border-radius: 99px; background: rgba(36, 27, 19, 0.08); }
.time-bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--ochre); }
.time-bars .is-road i::after { background: rgba(36, 27, 19, 0.2); }
.time-bars .is-road b { color: var(--muted); font-weight: 400; }
.time-note { margin: 0; font-size: 15px; color: var(--muted); }

/* 02 · real seat photos, one per class */
.seat-photos { display: grid; gap: 12px; }
.seat-photo { position: relative; margin: 0; overflow: hidden; border-radius: 14px; aspect-ratio: 16 / 9; }
.seat-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.seat-photo figcaption {
  position: absolute; left: 10px; bottom: 10px; padding: 5px 12px; border-radius: 999px;
  background: rgba(251, 245, 234, 0.92); font-size: 13px; color: var(--muted);
}
.seat-photo figcaption b { color: var(--ink); font-weight: 800; }
.visual-note { margin: 0; font-size: 15px; color: var(--muted); }
.classes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.plan .class-card h3 { margin: 0 0 6px; font-family: var(--body); font-weight: 800; font-size: 17px; }
.plan .class-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* 03 · onboard: six glass tiles that fill the column, as tall as the text beside them */
#pane-onboard { align-content: center; align-items: stretch; }
#pane-onboard .plan-visual { justify-content: stretch; }
.amenities {
  list-style: none; margin: 0; padding: 0; flex: 1;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 14px;
}
.amenities li {
  display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 20px 22px;
  border-radius: 18px; background: rgba(255, 255, 255, 0.38); border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 17px; font-weight: 700; line-height: 1.3;
}
.amenities svg { flex-shrink: 0; width: 34px; height: 34px; fill: none; stroke: var(--ochre); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 859px) {
  .plan { margin-top: 4vh; min-height: 0; }
  .plan-tabs { justify-content: space-between; gap: 0; }
  .plan-tab { padding: 16px 0 14px; font-size: 15px; }
  .plan-tab::after { left: 0; right: 0; }
  .plan-pane, .js .plan-pane.is-active { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 640px) {
  .plan { margin-bottom: 12vh; border-radius: 18px; }
  .plan-tab-icon { display: none; }
  .classes { grid-template-columns: 1fr; gap: 14px; }
  .time-bars li { grid-template-columns: 84px 1fr 72px; font-size: 14px; }
  .plan-text p { font-size: 16px; }
  .amenities li { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .plan-pane.is-active { animation: none; }
}

.tips { margin: 0; padding-left: 20px; }
.tips li { margin-bottom: 10px; }

/* FAQ sits on the dark lava fields */
/* FAQ: a familiar centred accordion inside the wide panel */
/* FAQ over the white Madinah photo: light frosted glass throughout, no text shadows */
.panel-faq {
  max-width: none; padding: clamp(16px, 3vw, 40px) 0; color: var(--ink);
  background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.faq-head {
  max-width: 820px; margin: 0 auto 12px; padding: 26px 32px 24px; text-align: center; border-radius: 18px;
  background: rgba(251, 245, 234, 0.82); border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 10px 30px rgba(20, 15, 10, 0.1);
}
.panel-faq h2 { margin: 0 0 8px; color: var(--ink); }
.faq-note { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.faq-note a { color: var(--ochre); font-weight: 700; text-underline-offset: 3px; }
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.panel-faq details {
  border-radius: 14px; background: rgba(251, 245, 234, 0.72); border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 8px 24px rgba(20, 15, 10, 0.08);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.panel-faq details:hover { background: rgba(251, 245, 234, 0.85); }
.panel-faq details[open] { background: rgba(251, 245, 234, 0.92); border-color: rgba(168, 101, 46, 0.45); }
.panel-faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px 18px 24px; font-size: 17px; font-weight: 700; color: var(--ink);
}
.panel-faq summary::-webkit-details-marker { display: none; }
.panel-faq summary::after {
  content: "+"; flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(168, 101, 46, 0.12); color: var(--ochre); font-size: 20px; font-weight: 600; line-height: 1;
}
.panel-faq details[open] summary::after { content: "–"; background: var(--ochre); color: #fff; }
.panel-faq summary:focus-visible { outline: 2px solid var(--ochre); outline-offset: -2px; border-radius: 14px; }
.panel-faq details p { margin: 0; padding: 0 24px 20px; font-size: 16px; line-height: 1.65; color: var(--muted); }

/* ---------- Footer: a quiet dark strip, set apart from the page ---------- */
.site-footer { position: relative; z-index: 2; padding: 0 clamp(16px, 6vw, 96px); font-size: 14px; }
/* the footer proper: dark, small, set apart from the page */
.footer-main, .footer-bottom { position: relative; margin: 0 calc(-1 * clamp(16px, 6vw, 96px)); padding-left: clamp(16px, 6vw, 96px); padding-right: clamp(16px, 6vw, 96px); background: var(--basalt); color: rgba(251, 245, 234, 0.7); }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px 64px; padding-top: 48px; padding-bottom: 32px; }
.footer-brand .logo { display: inline-block; margin-bottom: 14px; color: var(--paper); text-decoration: none; }
.footer-brand p { max-width: 520px; margin: 0; font-size: 13px; line-height: 1.65; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; align-content: start; }
.footer-links a { color: rgba(251, 245, 234, 0.85); text-decoration: none; font-size: 14px; font-weight: 600; }
.footer-links a:hover { color: var(--sand); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; padding-top: 18px; padding-bottom: 28px; border-top: 1px solid rgba(251, 245, 234, 0.1); font-size: 12px; }
.footer-bottom p { max-width: 640px; margin: 0; line-height: 1.6; }
.footer-bottom p:last-child { white-space: nowrap; }
.footer-brand p a, .footer-bottom a { color: var(--sand); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 859px) {
  .footer-main { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom p:last-child { white-space: normal; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .panel { margin-bottom: 12vh; border-radius: 18px; }
  .panel.scene-start { margin-top: 4vh; }
  .hero { padding-top: 96px; justify-content: flex-end; }
  /* phones: search comes right after the intro, key numbers follow it */
  .hero { gap: 0; }
  .hero-copy { display: contents; }
  .hero-search { order: 1; margin-top: 24px; }
  .hero-stats { order: 2; margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .hero-stats li, .hero-stats li:first-child { padding: 0 0 0 14px; border-left: 1px solid rgba(251, 245, 234, 0.35); }
  .hero-stats strong { font-size: 24px; }
  .hero-sub p { font-size: 15px; }
  .site-header { gap: 8px; }
  .logo { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .journey-bg .scene { transition: opacity 0.6s ease; transform: none; }
  .journey-bg .scene.is-active { transform: none; }
  .hero, .panel, .feature, .plan, .trail, .site-footer { transition: opacity 0.4s ease; }
  .is-waiting { transform: none; }
}

/* ---------- Where am I on the page ---------- */
/* Desktop: a slim vertical rail with one dot per section. The fill grows with
   scroll, the current section's dot lights up and shows its name. */
.page-progress {
  position: fixed; z-index: 16; right: clamp(14px, 1.6vw, 28px); top: 50%;
  transform: translateY(-50%);
  display: flex; align-items: stretch;
}
.pp-track {
  position: absolute; right: 5px; top: 6px; bottom: 6px; width: 2px;
  background: rgba(251, 245, 234, 0.28); border-radius: 2px; overflow: hidden;
}
.pp-fill {
  display: block; width: 100%; height: 100%; background: var(--sand);
  transform-origin: top; transform: scaleY(0);
}
.page-progress ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(14px, 2.6vh, 26px); }
.page-progress a {
  position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  text-decoration: none; color: var(--paper);
}
.page-progress a::after {
  content: ""; width: 12px; height: 12px; border-radius: 50%; flex: none;
  background: rgba(20, 15, 10, 0.55); border: 2px solid rgba(251, 245, 234, 0.75);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  transition: background 0.25s ease, transform 0.25s ease;
}
/* every section is always labelled; the current one stands out */
.page-progress a span {
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; white-space: nowrap;
  padding: 3px 10px; border-radius: 999px; background: rgba(20, 15, 10, 0.45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: rgba(251, 245, 234, 0.85); transition: background 0.25s ease, color 0.25s ease;
}
.page-progress a:hover span, .page-progress a:focus-visible span { background: rgba(20, 15, 10, 0.7); color: var(--paper); }
.page-progress a.is-passed::after { background: var(--sand); border-color: var(--sand); }
.page-progress a.is-current::after { background: var(--sand); border-color: #fff; transform: scale(1.25); }
.page-progress a.is-current span { background: var(--sand); color: var(--basalt); font-weight: 800; }
/* keep page content clear of the labelled rail */
@media (min-width: 860px) {
  :root { --pad-r: clamp(150px, 12vw, 190px); }
}

/* Phones: a thin bar under the header that fills as you read */
.page-progress-bar { display: none; }
@media (max-width: 859px) {
  .page-progress { display: none; }
  .page-progress-bar {
    display: block; position: fixed; z-index: 21; left: 0; right: 0; top: 0; height: 3px;
    background: rgba(251, 245, 234, 0.15);
  }
  .page-progress-bar span {
    display: block; height: 100%; background: var(--sand);
    transform-origin: left; transform: scaleX(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .page-progress a::after, .page-progress a span { transition: none; }
}
