/* MedinaMecca — palette: Hejaz desert-sunset orange, the Green Dome's green, basalt ink on sand */
:root {
  --orange: #f59a2c;
  --orange-deep: #d97a0c;
  --orange-soft: #fff1de;
  --green: #1f6b4f;
  --green-soft: #e3f1ea;
  --ink: #1d1a17;
  --ink-2: #4c4640;
  --muted: #7d756c;
  --sand: #fbf7f1;
  --card: #ffffff;
  --line: #ece5db;
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(60, 40, 10, .28);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.18; margin: 0 0 .6em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink-2); }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 96px) 0; position: relative; }
.eyebrow { color: var(--orange-deep); font-weight: 700; font-size: .85rem; margin-bottom: .5em; letter-spacing: .02em; }
.accent { color: var(--orange); }
.section-intro { max-width: 760px; }
.btn { display: inline-block; background: var(--orange); color: #fff; text-decoration: none; font-weight: 700; padding: 13px 26px; border-radius: 12px; box-shadow: 0 10px 22px -10px rgba(245, 154, 44, .8); transition: background .2s, transform .2s; }
.btn:hover { background: var(--orange-deep); transform: translateY(-1px); }

/* decorative dashed flight-path doodles from the mockup */
.doodle { position: absolute; width: 120px; color: var(--ink); opacity: .55; pointer-events: none; }
.doodle--hero { right: 4%; top: 18px; }
.doodle--route { right: 6%; top: 40px; }
.doodle--cta-l { left: 5%; top: 30px; }
.doodle--cta-r { right: 5%; bottom: 40px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0, 0, 0, .3); }
.header-grid { display: flex; align-items: center; gap: 28px; height: 70px; }
.logo { font-weight: 800; font-size: 1.15rem; text-decoration: none; color: var(--ink); letter-spacing: -.01em; margin: 0; }
.logo span { color: var(--orange); }
.site-nav { display: flex; gap: 30px; margin-left: auto; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--ink-2); padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.site-nav a:hover, .site-nav a.active { color: var(--ink); border-color: var(--orange); }
.header-search { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: .88rem; color: #fff; background: var(--ink); padding: 10px 16px; border-radius: 999px; }
.header-search:hover { background: var(--orange-deep); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2.5px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-toggle span:nth-child(2) { width: 70%; margin-left: auto; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Placeholder photo scenes (swap for real <img> when assets arrive) ---------- */
.ph { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; min-height: 180px; background: linear-gradient(180deg, #f6d9a6 0%, #fbe7c4 55%, #e9c48d 56%, #d9ab6c 100%); }
.ph::before { content: ""; position: absolute; left: 50%; top: 52%; width: 46%; max-width: 150px; aspect-ratio: 44 / 18; transform: translate(-50%, -60%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 18'%3E%3Cpath d='M3 13h30c5 0 9-2 10-5-2-3-7-5-14-5H7C4.8 3 3 4.8 3 7z' fill='%23fff'/%3E%3Cpath d='M5 10h32' stroke='%23f59a2c' stroke-width='1.6'/%3E%3Crect x='9' y='5.5' width='4' height='2.4' rx='.6' fill='%233a3530'/%3E%3Crect x='15' y='5.5' width='4' height='2.4' rx='.6' fill='%233a3530'/%3E%3Crect x='21' y='5.5' width='4' height='2.4' rx='.6' fill='%233a3530'/%3E%3Crect x='27' y='5.5' width='4' height='2.4' rx='.6' fill='%233a3530'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 4px 6px rgba(80, 50, 10, .25)); }
.ph--dawn { background: linear-gradient(180deg, #f3c78a 0%, #f9e2bb 52%, #e2b878 53%, #c99556 100%); }
.ph--noon { background: linear-gradient(180deg, #a9d3ec 0%, #dbeef7 52%, #ecd3a6 53%, #d8b27a 100%); }
.ph--dusk { background: linear-gradient(180deg, #2d3a5c 0%, #5b5f86 40%, #c48a5c 53%, #8b6142 54%, #6d4a32 100%); }
.ph--coast { background: linear-gradient(180deg, #bfe3f2 0%, #e7f4f8 48%, #4aa3c2 49%, #2f86a6 60%, #e8cf9e 61%, #d6b07a 100%); }
.ph--city { background: linear-gradient(180deg, #f0d6b0 0%, #f8e8cf 45%, #b9b2a8 46%, #9a9188 56%, #d9bd8f 57%, #c7a170 100%); }
.ph--cabin { background: linear-gradient(180deg, #ece6dc 0%, #f6f1ea 40%, #c9b79c 41%, #a68d6b 100%); }
.ph--cabin::before { display: none; }
.ph figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; background: rgba(29, 26, 23, .72); color: #fff; font-size: .78rem; font-weight: 600; padding: 8px 12px; border-radius: 10px; line-height: 1.35; backdrop-filter: blur(4px); }
.ph .tag { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--ink); font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; z-index: 1; }
.ph .tag::first-letter { color: var(--orange); }
.ph--tall { min-height: 420px; }
.ph--photo { background: #d9ab6c; }
.ph--photo::before { display: none; }
.ph--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-collage .c1 img { object-position: 50% 52%; }
.hero-collage .c2 img { object-position: 40% 50%; }
.hero-collage .c3 img { object-position: 30% 68%; }

/* ---------- Hero ---------- */
.hero { padding: clamp(36px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); position: relative; }
/* hero-copy is flattened so the search card can span both columns under the collage */
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto 1fr auto auto; grid-template-areas: "title collage" "lead collage" "search search" "note note"; column-gap: clamp(32px, 5vw, 64px); align-items: start; }
.hero-copy { display: contents; }
.hero h1 { grid-area: title; }
.lead { grid-area: lead; }
.search-card { grid-area: search; }
.hero-note { grid-area: note; }
.hero-collage { grid-area: collage; }
.hero h1 { max-width: 13ch; }
.mark { position: relative; white-space: nowrap; }
.mark::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em; background: var(--orange); border-radius: 3px; }
.lead { font-size: 1.02rem; max-width: 560px; }
.search-card { background: #fff; border-radius: 20px; box-shadow: 0 24px 50px -20px rgba(60, 40, 10, .35), 0 0 0 1px var(--line); padding: 10px 14px; margin: 36px 0 18px; min-height: 96px; scroll-margin-top: 110px; }
/* Trim the widget's own bottom padding (container + redirect note); structural selectors since its classes are hashed */
#firebird-search-widget > div { padding-bottom: 4px !important; }
#firebird-search-widget > div > div:last-child { padding-bottom: 0 !important; margin-bottom: 0 !important; }
.hero-note { font-size: .9rem; color: var(--muted); max-width: 820px; }
.hero-collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 210px 190px; gap: 16px; }
.hero-collage .ph { box-shadow: var(--shadow); min-height: 0; }
.hero-collage .c1 { grid-column: 1; grid-row: 1; }
.hero-collage .c2 { grid-column: 2; grid-row: 1 / span 2; margin-top: 36px; }
.hero-collage .c3 { grid-column: 1; grid-row: 2; }

/* ---------- About ---------- */
.about { background: var(--sand); }
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.about-media { position: relative; padding: 0 0 22px 22px; }
.about-media::before { content: ""; position: absolute; inset: -16px 22px 38px -16px; background: #fff; border-radius: 26px; box-shadow: var(--shadow); }
.ph--video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph--video .play { position: absolute; left: 50%; top: 45%; width: 64px; height: 64px; transform: translate(-50%, -50%); background: #fff; border: 0; border-radius: 50%; box-shadow: 0 10px 24px rgba(0, 0, 0, .18); z-index: 1; cursor: pointer; transition: opacity .25s, transform .25s; }
.ph--video .play::after { content: ""; position: absolute; left: 26px; top: 21px; border-left: 16px solid var(--orange); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.ph--video .play:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
/* While playing, the button shrinks to a corner pause control */
.ph--video.playing .play { left: auto; right: 14px; top: 14px; width: 38px; height: 38px; transform: none; background: rgba(255, 255, 255, .85); }
.ph--video.playing .play::after { left: 13px; top: 12px; width: 4px; height: 14px; border: 0; background: var(--ink); box-shadow: 8px 0 0 var(--ink); }
.ph--video figcaption { right: 150px; }
.speed-badge { position: absolute; right: -10px; bottom: 0; display: flex; align-items: center; gap: 10px; background: #fff; padding: 10px 16px; border-radius: 14px; box-shadow: var(--shadow); font-size: .82rem; line-height: 1.3; }
.speed-ico, .perk-ico { display: grid; place-items: center; flex: none; background: var(--orange-soft); color: var(--orange-deep); border-radius: 10px; }
.speed-ico { width: 36px; height: 36px; }
.perks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 16px; }
.perks li { display: flex; gap: 14px; }
.perk-ico { width: 40px; height: 40px; }
.perk-ico svg { width: 20px; height: 20px; }
.perks h3 { font-size: 1rem; margin: 0 0 2px; }
.perks p { margin: 0; font-size: .92rem; }
.glance { margin-top: clamp(40px, 6vw, 64px); }

/* ---------- Tables ---------- */
.table-title { font-size: 1.25rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; font-size: .93rem; min-width: 460px; }
.data-table th, .data-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { background: var(--ink); color: #fff; font-weight: 700; font-size: .86rem; }
.data-table tbody th { font-weight: 600; color: var(--ink); width: 34%; }
.data-table tbody td { color: var(--ink-2); }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.table-note { font-size: .88rem; color: var(--muted); margin-top: 14px; }

/* ---------- Route map ---------- */
.route-card { position: relative; background: #f5f3ef; border-radius: 24px; padding: 40px 32px 26px; margin-top: 28px; --p: 0; }
.route-line { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.route-line::before, .route-line::after { content: ""; position: absolute; top: 17px; left: 10%; right: 10%; height: 0; border-top: 2.5px dashed #e2c7a2; }
.route-line::after { border-top: 2.5px solid var(--orange); right: auto; width: calc(80% * var(--p)); transition: width .1s linear; }
.route-line li { text-align: center; position: relative; z-index: 1; }
.route-line button { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 4px; border-radius: 12px; }
.route-line button:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.stop { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--orange-deep); border: 2.5px solid var(--orange); font-weight: 800; font-size: .85rem; margin-bottom: 10px; transition: background .25s, color .25s, transform .25s; }
.route-line li:first-child .stop, .route-line li:last-child .stop { background: var(--orange); color: #fff; }
.route-line li.lit .stop, .route-line button:hover .stop { transform: scale(1.12); background: var(--orange); color: #fff; }
.route-line b { font-size: .95rem; }
.route-line small { font-size: .76rem; color: var(--muted); line-height: 1.35; }
.route-train { position: absolute; top: 31px; left: calc(10% + 32px - 22px + (80% - 64px) * var(--p)); width: 44px; height: 18px; z-index: 2; transition: left .1s linear; }
.route-train svg { width: 100%; height: 100%; display: block; }
.route-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 30px; font-size: .86rem; color: var(--muted); }
.route-facts b { color: var(--ink); }

/* ---------- Stations carousel ---------- */
.carousel { position: relative; margin-top: 28px; }
.car-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 4px 18px; scrollbar-width: none; }
.car-track::-webkit-scrollbar { display: none; }
.station-card { scroll-snap-align: start; background: #fff; border-radius: var(--radius); box-shadow: 0 14px 34px -18px rgba(60, 40, 10, .35), 0 0 0 1px var(--line); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .3s, transform .3s; }
.station-card.focus { box-shadow: 0 0 0 2.5px var(--orange), 0 18px 40px -18px rgba(245, 154, 44, .55); transform: translateY(-3px); }
.station-card .ph { border-radius: 0; min-height: 170px; }
.station-card .ph--photo { min-height: 220px; }
.station-card .ph--photo img[src*="sulaymaniyah"] { object-position: 50% 72%; }
.station-card .ph--photo img[src*="madinah"] { object-position: 60% 50%; }
.station-body { padding: 18px 20px 20px; }
.station-body h3 { font-size: 1.02rem; margin-bottom: 4px; }
.station-hl { color: var(--orange-deep); font-weight: 700; font-size: .85rem; margin-bottom: 8px; }
.station-body p { font-size: .9rem; }
.ico { width: 1em; height: 1em; flex: none; }
.chips .ico { width: 13px; height: 13px; color: var(--orange-deep); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.chips span { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; background: var(--sand); border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; color: var(--ink-2); }
.car-btn { position: absolute; top: 120px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--orange); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 18px -8px rgba(245, 154, 44, .9); }
.car-btn:hover { background: var(--orange-deep); }
.car-btn:disabled { opacity: .35; cursor: default; }
.car-btn.prev { left: -21px; }
.car-btn.next { right: -21px; }
.car-dots { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.car-dots i { width: 8px; height: 8px; border-radius: 50%; background: #e7d9c6; transition: width .25s, background .25s; }
.car-dots i.on { background: var(--orange); width: 22px; border-radius: 6px; }

/* ---------- Journey ---------- */
.journey { background: var(--sand); }
.journey-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.journey-table { box-shadow: var(--shadow); border-radius: 14px; }
.day-bar { position: relative; height: 12px; background: linear-gradient(90deg, #2d3a5c 0%, #f3c78a 18%, #a9d3ec 50%, #f3c78a 82%, #2d3a5c 100%); border-radius: 999px; margin: 26px 0 50px; }
.day-fill { position: absolute; top: -5px; bottom: -5px; left: 27.1%; right: 10.4%; border: 2.5px solid var(--orange); border-radius: 999px; background: rgba(255, 255, 255, .25); }
.day-label { position: absolute; top: 20px; font-weight: 800; font-size: .95rem; line-height: 1.1; }
.day-label small { display: block; font-weight: 500; font-size: .74rem; color: var(--muted); }
.day-label.l { left: 27.1%; transform: translateX(-50%); text-align: center; }
.day-label.r { right: 10.4%; transform: translateX(50%); text-align: center; }
.modes { margin-top: clamp(40px, 6vw, 60px); }
.modes > p { max-width: 820px; }
.mode-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; }
.mode { background: #fff; border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 0 0 1px var(--line); }
.mode--win { box-shadow: 0 0 0 2.5px var(--orange), var(--shadow); }
.mode-ico { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 8px; background: var(--orange-soft); color: var(--orange-deep); border-radius: 10px; }
.mode-ico .ico { width: 20px; height: 20px; }
.mode-time { font-weight: 800; font-size: 1.2rem; color: var(--ink); }
.mode--win .mode-time { color: var(--orange-deep); }
.mode small { color: var(--muted); font-size: .8rem; }

/* ---------- Onboard ---------- */
.onboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.coach-strip { display: flex; gap: 3px; margin: 22px 0 8px; }
.cz { flex: 1; height: 34px; display: grid; place-items: center; font-size: .72rem; font-weight: 800; border-radius: 6px; color: #fff; }
.cz:first-child { border-radius: 16px 6px 6px 16px; }
.cz:last-child { border-radius: 6px 16px 16px 6px; }
.cz.b { background: var(--ink); }
.cz.c { background: var(--green); }
.cz .ico { width: 16px; height: 16px; }
.cz.e { background: var(--orange); }
.coach-legend { font-size: .8rem; color: var(--muted); display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.k { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: -8px; }
.k.b { background: var(--ink); } .k.c { background: var(--green); } .k.e { background: var(--orange); }
.list-title { font-weight: 700; color: var(--ink); }
.amenities { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.amenities li { background: var(--sand); border-radius: 14px; padding: 14px 16px 14px 46px; position: relative; color: var(--ink-2); font-size: .94rem; }
.amenities li::before { content: ""; position: absolute; left: 16px; top: 18px; width: 18px; height: 18px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231f6b4f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.amenities b { color: var(--ink); }

/* ---------- Classes ---------- */
.classes { background: var(--sand); }
.classes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.class-panel { display: none; }
.class-panel.on { display: block; animation: fade .35s ease; }
.no-js .class-panel { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 44px; margin: 34px 0 0; }
.stats dt { font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 800; line-height: 1; }
.stats dd { margin: 6px 0 0; font-size: .8rem; color: var(--muted); line-height: 1.35; }
.classes-media { position: relative; padding: 0 0 0 22px; }
.classes-media::before { content: ""; position: absolute; inset: -16px -16px 30px 6px; background: #ece6dc; border-radius: 26px; transform: rotate(2deg); }
.class-switch { position: absolute; left: -10px; top: 55%; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 12px 14px; font-size: .8rem; font-weight: 700; }
.class-switch div { display: flex; gap: 6px; margin-top: 8px; }
.class-switch button { font: inherit; font-size: .78rem; border: 1px solid var(--line); background: #fff; padding: 6px 12px; border-radius: 999px; cursor: pointer; color: var(--ink-2); }
.class-switch button[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #fff; }
.classes-media .ph--cabin { transition: background .4s; }
.classes-media .ph--cabin.biz { background: linear-gradient(180deg, #e6dccb 0%, #f2ebe0 40%, #6b4a33 41%, #4c3423 100%); }
.classes-media .cabin-img { transition: opacity .45s ease; }
.classes-media .cabin-biz { opacity: 0; object-position: 72% 50%; }
.classes-media .ph--cabin.biz .cabin-biz { opacity: 1; }
.classes-media .ph--cabin.biz .cabin-eco { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .classes-media .cabin-img { transition: none; } }

/* ---------- Compare ---------- */
.compare-grid { display: grid; grid-template-columns: 1fr 2.2fr; margin-top: 30px; align-items: center; }
.compare-photo { min-height: 380px; margin-right: -60px; }
.compare-card { position: relative; background: #fff; border-radius: 22px; padding: 26px 26px 18px; box-shadow: 0 30px 60px -24px rgba(60, 40, 10, .35); border-left: 4px solid var(--orange); }
.compare-card h3 { margin-bottom: 2px; }
.compare-card .sub { font-size: .82rem; color: var(--orange-deep); font-weight: 600; }
.compare-table { min-width: 560px; font-size: .88rem; }
.compare-table thead th { background: transparent; color: var(--ink); border-bottom: 2px solid var(--orange); }
.compare-table thead th:nth-child(2), .compare-table thead th:nth-child(3) { color: var(--orange-deep); }
.compare-table tbody th { width: 28%; }
.compare-table tbody tr:nth-child(odd) { background: #fcfaf6; }

/* ---------- Tickets ---------- */
.tickets-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.baggage { background: var(--green-soft); border-radius: 18px; padding: 22px 24px; margin-top: 22px; }
.baggage h3 { color: var(--green); }
.baggage p { margin: 0; }
.know { background: #fff; border-radius: 20px; padding: 26px; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.know-list { margin: 0; padding: 0; list-style: none; counter-reset: k; display: grid; gap: 14px; }
.know-list li { counter-increment: k; position: relative; padding-left: 42px; color: var(--ink-2); font-size: .94rem; }
.know-list li::before { content: counter(k); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--orange-soft); color: var(--orange-deep); font-weight: 800; font-size: .85rem; display: grid; place-items: center; }
.know-list b { color: var(--ink); }

/* ---------- Tips ---------- */
.tips { background: var(--sand); }
.tip-cards { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.tip-cards li { background: #fff; border-radius: 18px; padding: 22px 18px; box-shadow: 0 0 0 1px var(--line); transition: transform .25s, box-shadow .25s; }
.tip-cards li:hover { transform: translateY(-4px); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.tip-n { display: block; font-weight: 800; color: var(--orange); font-size: 1.4rem; margin-bottom: 8px; }
.tip-cards h3 { font-size: .98rem; }
.tip-cards p { font-size: .88rem; margin: 0; }
/* video card filling the spare grid cell: full-width banner at 5 columns, one cell at 3 */
.tip-cards .tip-video { grid-column: 1 / -1; position: relative; overflow: hidden; min-height: 240px; padding: 0; background: #2b2118; display: flex; align-items: flex-end; box-shadow: none; }
.tip-cards .tip-video:hover { transform: none; box-shadow: none; }
.tip-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.tip-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 14, 8, .25) 0%, rgba(20, 14, 8, .62) 55%, rgba(20, 14, 8, .82) 100%); }
.tip-video-body { position: relative; z-index: 1; padding: 22px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; width: 100%; }
.tip-cards .tip-video-body p { color: #fff; font-size: 1.05rem; font-weight: 700; line-height: 1.35; max-width: 30ch; }
.tip-video-btn { background: #ffc83d; color: var(--ink); font-weight: 800; text-decoration: none; padding: 12px 24px; border-radius: 12px; box-shadow: 0 8px 20px -8px rgba(255, 200, 61, .7); transition: background .2s, transform .2s; }
.tip-video-btn:hover { background: #ffd666; transform: translateY(-1px); }
.tip-video-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; margin-top: 26px; align-items: start; }
.faq details { background: #f6f4f1; border-radius: 14px; padding: 0 18px; transition: background .2s; }
.faq details[open] { background: #fff; box-shadow: 0 0 0 1.5px var(--line), var(--shadow); }
.faq summary { list-style: none; cursor: pointer; font-weight: 700; font-size: .95rem; padding: 16px 30px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--orange); font-size: 1.4rem; font-weight: 600; }
.faq details[open] summary::after { content: "–"; }
.faq details p { font-size: .92rem; padding-bottom: 16px; margin: 0; }

/* ---------- CTA ---------- */
.cta-inner { text-align: center; max-width: 680px; }
.cta-inner p { color: var(--muted); }
.cta-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--orange-soft); border-radius: 16px; padding: 8px 8px 8px 22px; margin-top: 26px; text-align: left; }
.cta-bar span { color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.cta-btn { flex: none; background: var(--orange); color: #fff; font-weight: 700; text-decoration: none; padding: 12px 22px; border-radius: 12px; }
.cta-btn:hover { background: var(--orange-deep); }
.cta-btn--lg { display: inline-block; margin-top: 26px; padding: 16px 40px; font-size: 1.05rem; border-radius: 14px; box-shadow: 0 12px 26px -12px rgba(217, 122, 12, .7); transition: background .2s, transform .2s; }
.cta-btn--lg:hover { transform: translateY(-1px); }
.cta-btn--lg:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--orange); color: var(--ink); padding: 56px 0 28px; }
.site-footer p { color: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; font-size: .9rem; }
.logo--footer { color: #fff; margin-bottom: 10px; }
.logo--footer span { color: var(--ink); }
.f-title { font-weight: 800; color: #fff !important; margin-bottom: 10px; letter-spacing: .01em; }
.f-links, .f-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.f-links a { text-decoration: none; }
.f-links a:hover { text-decoration: underline; }
.footer-legal { border-top: 1px solid rgba(29, 26, 23, .2); margin-top: 40px; padding-top: 22px; font-size: .8rem; }
.footer-legal p { color: var(--ink); }
.footer-legal p:last-child { text-align: center; margin: 0; }
.footer-legal a { color: var(--ink); text-decoration: underline; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in, .no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .route-train, .route-line::after { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .car-btn.prev { left: 4px; }
  .car-btn.next { right: 4px; }
}
@media (max-width: 1080px) {
  .tip-cards { grid-template-columns: repeat(3, 1fr); }
  .tip-cards .tip-video { grid-column: auto; min-height: 220px; }
  .tip-video-body { flex-direction: column; align-items: flex-start; }
  .car-track { grid-auto-columns: calc((100% - 24px) / 2); }
}
@media (max-width: 860px) {
  .header-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; height: 64px; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .3); padding: 8px 16px 16px; margin: 0; display: none; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .header-search { padding: 9px 14px; }
  .hero-grid, .about-grid, .journey-grid, .onboard-grid, .classes-grid, .tickets-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .hero-grid { grid-template-areas: "title" "lead" "search" "note" "collage"; grid-template-rows: none; }
  .hero-collage { grid-template-rows: 170px 150px; margin-top: 14px; }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-photo { display: none; }
  .mode-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .classes-media { padding: 0; }
  .classes-media::before { inset: -10px 6px 20px -6px; transform: rotate(1.5deg); }
  .class-switch { left: 12px; top: 16px; }
  .ph--tall { min-height: 300px; }
  .doodle { display: none; }
}
@media (max-width: 640px) {
  .header-search span { display: none; }
  .header-search { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .route-card { padding: 26px 20px 20px; }
  .route-line { grid-template-columns: 1fr; gap: 18px; }
  .route-line::before, .route-line::after { top: 18px; bottom: 18px; left: 17px; right: auto; width: 0; height: auto; border-top: 0; border-left: 2.5px dashed #e2c7a2; }
  .route-line::after { border-left: 2.5px solid var(--orange); bottom: auto; height: calc((100% - 36px) * var(--p)); }
  .route-line li { text-align: left; }
  .route-line button { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; }
  .route-line .stop { margin: 0; }
  .route-line small { flex-basis: 100%; padding-left: 48px; margin-top: -4px; }
  .route-train { display: none; }
  .car-track { grid-auto-columns: 86%; }
  .car-btn { display: none; }
  .tip-cards { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .stats { gap: 12px 24px; }
  .cta-bar { flex-direction: column; align-items: stretch; padding: 16px; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .day-label.r { transform: translateX(30%); }
  .day-label.l { transform: translateX(-40%); }
}

/* keep the rotated backdrop behind the class photo from widening the page */
.classes { overflow-x: clip; }
.compare-photo.ph--video figcaption { right: 12px; }
.compare-photo.ph--video.playing .play { left: 14px; right: auto; }
.compare-photo.ph--video:not(.playing) .play { left: calc(50% - 30px); }
