/* Fareflap. Dusk outside a terminal window, a lit departures board, airport-sign type. */

@font-face { font-family: "Big Shoulders"; src: url("/fonts/BigShoulders.woff2") format("woff2"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "Atkinson Next"; src: url("/fonts/AtkinsonNext.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --night: #070e26;
  --navy: #17233f;
  --navy-2: #1e2d50;
  --navy-line: #33467a;
  --sky: #a9bbdc;
  --marigold: #f2a30f;
  --marigold-hi: #ffb92e;
  --amber: #ffc94a;
  --gate: #ffcc1a;
  --paper: #ffffff;
  --mist: #eef2f8;
  --mist-2: #e3e9f3;
  --line: #d6dde9;
  --ink: #111a2e;
  --slate: #4f5a72;
  --focus: #2f6bff;
  --sign: "Big Shoulders", "Arial Narrow", sans-serif;
  --text: "Atkinson Next", "Segoe UI", system-ui, sans-serif;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.55 var(--text); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--marigold); color: var(--navy); padding: 10px 14px; border-radius: 6px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.top { position: relative; z-index: 20; background: var(--navy); color: #fff; }
.has-scene .top { position: absolute; inset: 0 0 auto; background: transparent; }
.top__in { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.mark { font: 800 1.875rem/1 var(--sign); text-decoration: none; letter-spacing: .01em; display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.mark__img { display: block; height: 32px; width: auto; }
.foot .mark__img { height: 26px; }
.top__nav { display: flex; gap: 26px; margin-left: auto; }
.top__nav a { color: #d3dcf0; text-decoration: none; font-size: 1rem; }
.top__nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.market {
  background: rgba(7, 14, 38, .55); border: 1px solid rgba(169, 187, 220, .35); color: #fff; border-radius: 999px;
  padding: 8px 15px; font-size: .9375rem; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.market:hover { border-color: var(--amber); }
.market svg { width: 16px; height: 16px; }

/* ---------- hero scene ---------- */
.hero { position: relative; color: #fff; background: var(--night); overflow: hidden; isolation: isolate; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__in {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(24px, 4vw, 64px);
  align-items: start; padding-top: clamp(112px, 12vw, 150px); padding-bottom: clamp(150px, 15vw, 200px); min-height: min(820px, 92vh);
}
.hero__copy { padding-top: clamp(4px, 2vw, 30px); }
.hero__title { font: 800 clamp(2.5rem, 4.7vw, 4.25rem)/.95 var(--sign); letter-spacing: .004em; margin: 0; max-width: 12ch; text-wrap: balance; }
.hero__sub { color: #d3dcf0; margin: 20px 0 0; max-width: 38ch; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); }
.crumbs { color: var(--sky); font-size: .9375rem; margin: 0 0 14px; }
.crumbs a { color: #d3dcf0; }

/* scene motion: a plane crosses the sky, lights blink, a few stars twinkle */
.scene .beacon, .jet .beacon-p, .jet .strobe { opacity: .25; }
@media (prefers-reduced-motion: no-preference) {
  .scene .beacon, .jet .beacon-p { animation: blink 1.6s steps(1) infinite; }
  .jet .strobe { animation: strobe 1.3s steps(1) infinite; }
  .scene .tw { animation: twinkle 4.5s ease-in-out infinite alternate; }
  .scene .rb { animation: rabbit 1.2s steps(1) infinite; opacity: 0; }
  .scene .rb1 { animation-delay: .12s; } .scene .rb2 { animation-delay: .24s; } .scene .rb3 { animation-delay: .36s; }
  .scene .rb4 { animation-delay: .48s; } .scene .rb5 { animation-delay: .6s; } .scene .rb6 { animation-delay: .72s; }
}
@keyframes blink { 0%, 60% { opacity: .25; } 61%, 100% { opacity: 1; } }
@keyframes strobe { 0%, 88% { opacity: 0; } 89%, 100% { opacity: 1; } }
@keyframes twinkle { from { opacity: .2; } to { opacity: .9; } }
@keyframes rabbit { 0% { opacity: 1; } 10%, 100% { opacity: 0; } }

/* The plane crosses the open sky: between the menu and the headline on wide screens, just above the board on
   narrow ones. It's placed against the page, not the scene drawing, so it shows on every screen size. */
.jet { position: absolute; left: 0; z-index: 1; width: 66px; height: 25px; pointer-events: none; transform: translateX(58vw); }
.hero__in > .jet { top: clamp(56px, 6vw, 80px); }
.hang > .jet { display: none; top: -40px; }
@media (prefers-reduced-motion: no-preference) {
  .jet { opacity: 0; animation: fly 32s linear 1s infinite; }
}
@keyframes fly {
  0% { transform: translate(104vw, 14px); opacity: 0; }
  3%, 90% { opacity: 1; }
  100% { transform: translate(-16vw, -12px); opacity: 0; }
}

/* ---------- the departures board ---------- */
.hang { position: relative; padding-top: 6px; }
.hang::before, .hang::after {
  content: ""; position: absolute; top: calc(-1 * clamp(112px, 12vw, 150px)); height: calc(clamp(112px, 12vw, 150px) + 8px); width: 2px;
  background: linear-gradient(#0b1430, #2b3a66);
}
.hang::before { left: 18%; } .hang::after { right: 18%; }
.fb {
  position: relative; background: #0a1124; border: 1px solid #263559; border-radius: 14px; padding: 14px 16px 10px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 6px rgba(10, 17, 36, .55), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.fb::after { /* the warm light the board throws onto the glass below it */
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -60px; height: 60px; pointer-events: none;
  background: radial-gradient(50% 100% at 50% 0, rgba(255, 201, 74, .16), transparent 70%);
}
.fb__head { display: flex; align-items: baseline; justify-content: space-between; padding: 2px 4px 10px; border-bottom: 1px solid #1d2a4b; }
.fb__title { font: 800 1.75rem/1 var(--sign); color: var(--amber); letter-spacing: .02em; }
.fb__clock { font: 700 1.5rem/1 var(--sign); color: #fff; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.fb__cols, .fb__btn { display: grid; grid-template-columns: 4.6em 4.6em minmax(0, 1fr) 7.2em; gap: 12px; align-items: center; }
.fb__cols { color: #7f8fb5; font-size: .8125rem; padding: 9px 6px 5px; }
.fb__rows { list-style: none; margin: 0; padding: 0; }
.fb__row + .fb__row { border-top: 1px solid #141e3a; }
.fb__btn { width: 100%; background: none; border: 0; padding: 8px 6px; color: #fff; text-align: left; border-radius: 8px; }
button.fb__btn:hover { background: #121b36; }
button.fb__btn:hover .fb__rem { color: var(--marigold-hi); }
.fb__row.is-you .fb__btn { cursor: default; background: #111a33; }
.fb__dest, .fb__rem { font: 700 1.3125rem/1 var(--sign); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.fb__rem { color: var(--amber); }
.fb__row.is-you .fb__rem { color: var(--marigold); }

/* split-flap tiles */
.mini { display: flex; gap: 3px; font: 800 1.5rem/1 var(--sign); }
.flap {
  position: relative; display: grid; place-items: center; width: 1.02em; height: 1.32em; border-radius: 4px; overflow: hidden;
  background: linear-gradient(180deg, #1f2c4f 0 50%, #19243f 50% 100%); color: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: calc(50% - .5px); height: 1px; background: #0a1124; }
.flap i { font-style: normal; display: block; padding-top: .04em; }
.flap.tick i { animation: tick 80ms ease-out; }
@keyframes tick { from { transform: translateY(-24%) scaleY(.55); opacity: .5; } to { transform: none; opacity: 1; } }
.code--empty .flap { background: linear-gradient(180deg, #172243 0 50%, #131d39 50% 100%); }

/* ---------- search card ---------- */
.searchwrap { position: relative; z-index: 10; margin-top: clamp(-150px, -11vw, -112px); }
.card {
  background: #fff; color: var(--ink); border-radius: 20px; padding: 10px clamp(12px, 1.6vw, 20px) 16px;
  box-shadow: 0 2px 0 rgba(255, 255, 255, .5) inset, 0 40px 80px -30px rgba(7, 14, 38, .55), 0 12px 30px -12px rgba(7, 14, 38, .25);
}
.tabs { display: flex; gap: 4px; padding: 4px 0 12px; border-bottom: 1px solid var(--line); }
.tab {
  background: none; border: 0; color: var(--slate); padding: 10px 16px; font-size: 1.0625rem; font-weight: 700; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; flex: none;
}
.tab svg { width: 20px; height: 20px; }
.tab:hover { background: var(--mist); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--navy); color: #fff; }
.panel { padding-top: 12px; }

.seg { border: 0; margin: 0 0 10px; padding: 0; display: flex; gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--slate); font-size: .9375rem; font-weight: 700; }
.seg input:checked + span { border-color: var(--navy); color: var(--navy); background: var(--mist); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.same-drop { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--ink); font-size: 1rem; font-weight: 600; cursor: pointer; }
.same-drop input { width: 20px; height: 20px; accent-color: var(--navy); margin: 0; }

.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: stretch; }
.bar { display: grid; align-items: stretch; border: 1.5px solid var(--line); border-radius: 16px; padding: 4px; background: #fff; }
.bar--flights { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.65fr) minmax(0, 1.05fr); }
.bar--hotels { grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr) minmax(0, 1.1fr); }
.bar--cars { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(0, .62fr); }
/* thin dividers between the parts of the bar */
.bar > * + *, .pair > .f + .f, .half + .half { position: relative; }
.bar > * + *::before, .pair > .f[data-pick="to"]::before, .pair > .f[data-pick="dropoff"]::before, .half + .half::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--line);
}
.pair { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.pair--cars { grid-template-columns: 1fr; }
.pair--cars:has(> .f[data-pick="dropoff"]:not([hidden])) { grid-template-columns: 1fr 1fr; }

.f {
  position: relative; display: block; min-width: 0; background: transparent; border: 0; border-radius: 12px;
  padding: 11px 16px 10px; text-align: left; min-height: 70px; transition: background .15s;
}
button.f, .f__btn { cursor: pointer; }
.f:hover, .half:hover { background: var(--mist); }
.f:focus-within, button.f:focus-visible, .half:focus-within { background: var(--mist); outline: 2px solid var(--navy); outline-offset: -2px; }
.f--dates:hover, .f--dates:focus-within { background: transparent; outline: 0; }
.f__label { display: block; color: var(--slate); font-size: .875rem; font-weight: 600; }
.f__value { display: block; font-weight: 800; font-size: 1.125rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.f__value b { font: 800 1.125rem/1 var(--sign); letter-spacing: .04em; color: var(--slate); margin-left: 4px; }
.f__value.is-empty { color: #8a94ab; font-weight: 700; }
.f__sub { display: block; color: var(--slate); font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f--place { width: 100%; font: inherit; color: inherit; }
.swap {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--line); background: #fff; color: var(--navy); display: grid; place-items: center; transition: transform .35s ease, border-color .2s;
}
.swap svg { width: 18px; height: 18px; }
.swap:hover { border-color: var(--navy); }
.swap.is-turned { transform: translate(-50%, -50%) rotate(180deg); }

.f--dates { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
.f--when { grid-template-columns: 1.35fr 1fr; }
.half { position: relative; display: block; padding: 11px 13px 10px 15px; min-width: 0; cursor: pointer; border-radius: 12px; }
.half .f__value { font-size: 1.0625rem; }

.half input {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; margin: 0; -webkit-appearance: none; appearance: none;
}
.half.is-off .f__value { color: #8a94ab; }
.half.is-off { cursor: default; }
.f--dest input {
  display: block; width: 100%; border: 0; background: none; padding: 0; margin-top: 1px; font-weight: 800; font-size: 1.125rem; line-height: 1.6; color: var(--ink);
}
.f--dest input::placeholder { color: #8a94ab; font-weight: 700; }
.f--dest input:focus { outline: none; }
.f--age select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; }
.f--pax { padding: 0; }
.f__btn { display: block; width: 100%; height: 100%; background: none; border: 0; padding: 12px 16px 11px; text-align: left; border-radius: 14px; }
.f__btn:focus-visible { outline: none; }

.go {
  background: var(--marigold); color: var(--navy); border: 0; border-radius: 16px; padding: 0 30px; min-height: 80px;
  font-size: 1.125rem; font-weight: 800; white-space: nowrap; transition: background .2s, transform .1s;
}
.go:hover { background: var(--marigold-hi); }
.go:active { transform: translateY(1px); }
.fine { color: var(--slate); font-size: .9375rem; margin: 12px 4px 0; }
.err { color: #b42318; font-size: 1rem; margin: 10px 4px 0; font-weight: 700; }

/* pop-over for travellers and guests */
.pop {
  position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; width: min(380px, calc(100vw - 2 * var(--gut)));
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 8px 18px 16px;
  box-shadow: 0 24px 60px -16px rgba(8, 14, 30, .4);
}
.pop__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pop__name { font-weight: 700; display: block; }
.pop__hint { color: var(--slate); font-size: .9375rem; display: block; }
.pop__cabin select { border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; }
.step { display: inline-flex; align-items: center; gap: 12px; }
.step button { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); display: grid; place-items: center; font-size: 1.25rem; line-height: 1; }
.step button:disabled { border-color: var(--line); color: var(--line); cursor: default; }
.step output { min-width: 1.5ch; text-align: center; font-weight: 700; font-size: 1.125rem; }
.ages { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.ages:not(:empty) { padding: 10px 0 12px; border-bottom: 1px solid var(--line); }
.ages label { font-size: .9375rem; color: var(--slate); display: grid; gap: 4px; }
.ages select { border: 1.5px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fff; }
.pop__done { width: 100%; margin-top: 12px; background: var(--navy); color: #fff; border: 0; border-radius: 10px; padding: 12px; font-weight: 700; }

/* ---------- results ---------- */
.results { padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); scroll-margin-top: 12px; }
.results__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 40px; flex-wrap: wrap; }
.results h2 { font: 800 clamp(2rem, 4vw, 3rem)/1 var(--sign); margin: 0; }
.results h2:focus { outline: none; }
.results__sum { color: var(--slate); margin: 10px 0 0; max-width: 70ch; }
.meter { display: grid; gap: 8px; min-width: 220px; }
.meter__bar { display: block; height: 8px; border-radius: 99px; background: var(--mist-2); overflow: hidden; }
.meter__fill { display: block; height: 100%; width: 0; background: var(--marigold); border-radius: 99px; transition: width .4s ease; }
.meter__text { color: var(--slate); font-size: .9375rem; font-weight: 600; }
.sites { list-style: none; margin: clamp(22px, 3vw, 34px) 0 0; padding: 0; border-top: 1px solid var(--line); }
.site { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 32px; align-items: center; padding: 20px 2px; border-bottom: 1px solid var(--line); }
.site__top { min-width: 0; }
.site__name { font: 800 1.625rem/1.05 var(--sign); display: block; }
.site__what { color: var(--slate); font-size: 1rem; display: block; margin-top: 4px; }
.site__warn { display: block; margin-top: 6px; font-size: .9375rem; color: #8a5300; }
.site__go {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; background: var(--navy); color: #fff;
  border-radius: 12px; padding: 13px 18px; font-weight: 800; font-size: 1rem; transition: background .2s;
}
.site__go:hover { background: #24365f; }
.site__go svg { width: 16px; height: 16px; }
.site.is-opened .site__go { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.site__done { display: none; align-items: center; gap: 6px; color: #1f7a3d; font-weight: 700; font-size: .9375rem; }
.site.is-opened .site__done { display: inline-flex; }
.site__done svg { width: 18px; height: 18px; }
.site__foot { display: flex; align-items: center; gap: 16px; flex-direction: row-reverse; }
.checklist { margin-top: clamp(28px, 4vw, 44px); }
.checklist h3 { font: 800 1.5rem/1.1 var(--sign); margin: 0 0 10px; }
.checklist ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 8px 24px; }
.checklist li { position: relative; padding-left: 18px; color: var(--ink); font-size: 1rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--marigold); }
@media (prefers-reduced-motion: no-preference) {
  .sites.is-in .site { animation: rowin .5s cubic-bezier(.2, .7, .2, 1) both; }
  .sites.is-in .site:nth-child(2) { animation-delay: .05s; } .sites.is-in .site:nth-child(3) { animation-delay: .1s; }
  .sites.is-in .site:nth-child(4) { animation-delay: .15s; } .sites.is-in .site:nth-child(5) { animation-delay: .2s; }
  .sites.is-in .site:nth-child(6) { animation-delay: .25s; } .sites.is-in .site:nth-child(n+7) { animation-delay: .3s; }
}
@keyframes rowin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- reading sections ---------- */
.band { padding: clamp(56px, 8vw, 112px) 0; }
.band--mist { background: var(--mist); }
.band--night { background: var(--navy); color: #fff; }
.band h2 { font: 800 clamp(2.25rem, 4.8vw, 4rem)/.98 var(--sign); margin: 0; letter-spacing: .004em; max-width: 16ch; text-wrap: balance; }
.band__lede { color: var(--slate); margin: 16px 0 0; max-width: 58ch; font-size: 1.1875rem; }
.band--night .band__lede { color: #c9d4ec; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 40px; flex-wrap: wrap; }

/* How it works: one ticket, every gate */
.gates__in { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.steps { list-style: none; margin: clamp(26px, 4vw, 40px) 0 0; padding: 0; counter-reset: s; display: grid; gap: 18px; }
.steps li { counter-increment: s; color: #c9d4ec; }
.steps strong { display: block; color: #fff; font-size: 1.1875rem; }
.steps strong::before { content: counter(s) ". "; }
.route-art { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1.2fr); align-items: stretch; }
.route-art .ticket, .route-art .gatelist { align-self: center; }
.ticket {
  position: relative; z-index: 1; background: #fff; color: var(--ink); border-radius: 16px; padding: 18px 18px 16px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6);
}
.ticket::before, .ticket::after { content: ""; position: absolute; top: 58%; width: 18px; height: 18px; border-radius: 50%; background: var(--navy); }
.ticket::before { left: -9px; } .ticket::after { right: -9px; }
.ticket__label { font-size: .8125rem; color: var(--slate); display: block; }
.ticket__codes { display: flex; align-items: center; gap: 10px; font: 800 2.5rem/1 var(--sign); margin: 4px 0 12px; }
.ticket__codes svg { width: 22px; height: 22px; color: var(--marigold); }
.ticket__meta { border-top: 1.5px dashed var(--line); padding-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: .9375rem; }
.ticket__meta b { display: block; font-size: 1rem; }
.wires { width: 100%; height: 100%; overflow: visible; }
.wires path { fill: none; stroke: var(--amber); stroke-width: 2; stroke-dasharray: 3 7; vector-effect: non-scaling-stroke; opacity: .85; }
.gatelist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gatelist { gap: 0; }
.gatesign { display: flex; align-items: center; gap: 12px; color: #fff; height: 48px; font: 700 1.5rem/1 var(--sign); letter-spacing: .01em; }
.gatesign::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; margin-left: -4px; }
@media (prefers-reduced-motion: no-preference) {
  .route-art .wires path { stroke-dashoffset: 120; transition: stroke-dashoffset 1.6s ease, opacity .6s; opacity: 0; }
  .route-art.is-on .wires path { stroke-dashoffset: 0; opacity: .85; }
  .route-art .gatesign { opacity: 0; transform: translateX(14px); transition: opacity .5s ease, transform .5s ease; }
  .route-art.is-on .gatesign { opacity: 1; transform: none; }
  .route-art.is-on .gatesign:nth-child(2) { transition-delay: .08s; } .route-art.is-on .gatesign:nth-child(3) { transition-delay: .16s; }
  .route-art.is-on .gatesign:nth-child(4) { transition-delay: .24s; } .route-art.is-on .gatesign:nth-child(5) { transition-delay: .32s; }
  .route-art.is-on .gatesign:nth-child(6) { transition-delay: .4s; } .route-art.is-on .gatesign:nth-child(7) { transition-delay: .48s; }
}

/* Places: photo cards */
.places { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 210px; gap: 14px; margin-top: clamp(26px, 4vw, 44px); }
.place-card { position: relative; border-radius: 18px; overflow: hidden; background: var(--navy); color: #fff; grid-column: span 3; grid-row: span 2; isolation: isolate; }
.place-card:nth-child(1) { grid-column: span 6; }
.place-card:nth-child(6) { grid-column: span 6; }
.place-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2, .7, .2, 1), opacity .5s ease; }
.place-card img[data-src] { opacity: 0; }
.place-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 14, 38, .05) 30%, rgba(7, 14, 38, .82) 100%); }
.place-card:hover img { transform: scale(1.04); }
.place-card__in { position: absolute; inset: auto 0 0 0; padding: 18px; display: grid; gap: 10px; }
.place-card__name { font: 800 clamp(1.75rem, 2.6vw, 2.5rem)/1 var(--sign); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.place-card .mini { font-size: 1.125rem; }
.place-card .flap { background: rgba(7, 14, 38, .72); }
.place-card .flap::after { background: rgba(255, 255, 255, .12); }
.place-card__acts { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: .9375rem;
  background: rgba(255, 255, 255, .94); color: var(--navy); text-decoration: none;
}
.chip:hover { background: var(--amber); }

/* Ways to pay less */
.tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); margin-top: clamp(28px, 4vw, 48px); }
.tipcard { min-width: 0; }
.tipcard h3 { font: 800 1.875rem/1 var(--sign); margin: 0 0 4px; padding-top: 18px; border-top: 3px solid var(--navy); }
.tipcard ul { margin: 0; padding: 0; list-style: none; }
.tipcard li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 1rem; color: var(--slate); }
.tipcard li:first-child { border-top: 0; }
.tipcard li strong { display: block; color: var(--ink); font-size: 1.0625rem; margin-bottom: 2px; }

/* How we make money: the receipt */
.money { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.money p { margin: 0 0 14px; max-width: 58ch; }
.receipt {
  position: relative; background: #fff; border-radius: 6px 6px 0 0; padding: 26px 26px 34px; color: var(--ink); max-width: 380px; justify-self: center; width: 100%;
  box-shadow: 0 30px 60px -28px rgba(7, 14, 38, .45); transform: rotate(-1.5deg);
}
.receipt::after { /* torn edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 12px;
  background: linear-gradient(-45deg, transparent 8px, #fff 0) 0 0 / 16px 12px repeat-x, linear-gradient(45deg, transparent 8px, #fff 0) 0 0 / 16px 12px repeat-x;
}
.receipt__head { text-align: center; font: 800 1.75rem/1 var(--sign); margin-bottom: 4px; }
.receipt__sub { text-align: center; color: var(--slate); font-size: .875rem; margin-bottom: 18px; }
.receipt dl { margin: 0; display: grid; gap: 10px; }
.receipt dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 1rem; border-bottom: 1.5px dashed var(--line); padding-bottom: 10px; }
.receipt dt { color: var(--slate); }
.receipt dd { margin: 0; font-weight: 800; text-align: right; }
.receipt__total { margin-top: 14px; display: flex; justify-content: space-between; font: 800 1.5rem/1 var(--sign); }

/* Guides board (shared by the home page and /guides/) */
.fids { margin-top: clamp(26px, 4vw, 44px); background: #0a1124; color: #fff; border-radius: 16px; padding: 8px clamp(14px, 2.4vw, 28px) 10px; border: 1px solid #263559; }
.fids__head, .fids__row a { display: grid; grid-template-columns: 11.5em minmax(0, 1fr) minmax(0, 1.25fr) auto; gap: 18px; align-items: center; }
.fids__head { color: #7f8fb5; font-size: .875rem; padding: 14px 4px 10px; border-bottom: 1px solid #1d2a4b; }
.fids__list { list-style: none; margin: 0; padding: 0; }
.fids__row a { padding: 12px 4px; border-bottom: 1px solid #141e3a; text-decoration: none; color: inherit; border-radius: 6px; }
.fids__row:last-child a { border-bottom: 0; }
.fids__row a:hover { background: #121b36; }
.fids__row a:hover .fids__more { color: var(--marigold-hi); }
.fids__codes { display: flex; align-items: center; gap: 8px; }
.fids__to { color: #7f8fb5; font-size: .875rem; }
.fids .mini { font-size: 1.375rem; }
.fids__name { font-weight: 700; font-size: 1.0625rem; }
.fids__remark { color: var(--amber); font-weight: 600; font-size: 1rem; }
.fids__more { color: #fff; font-weight: 700; font-size: .9375rem; white-space: nowrap; }

/* Questions */
.qa { margin-top: clamp(24px, 4vw, 40px); border-top: 1px solid var(--line); max-width: 880px; }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-weight: 700; font-size: 1.1875rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy); transform: rotate(45deg); transition: transform .25s; }
.qa details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.qa details p { margin: 0 0 20px; color: var(--slate); max-width: 68ch; }

/* Route guide pages */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(28px, 5vw, 72px); margin-top: clamp(26px, 4vw, 44px); }
.factcard { border-top: 3px solid var(--navy); padding-top: 18px; }
.factcard h3 { font: 800 1.75rem/1 var(--sign); margin: 0 0 12px; }
.factcard ul { padding-left: 1.1em; margin: 0; }
.factcard li { margin: 0 0 10px; }
.factcard.wide { grid-column: 1 / -1; }
.src { color: var(--slate); font-size: .9375rem; margin-top: 24px; }
.src a { color: var(--slate); }
.srclist { margin: 22px 0 0; padding-left: 1.1em; max-width: 80ch; }
.srclist li { margin: 0 0 8px; color: var(--slate); font-size: 1rem; }
.srclist a { color: var(--navy); }

/* Plain pages */
.pagehead { background: var(--navy); color: #fff; padding: clamp(36px, 6vw, 72px) 0 clamp(36px, 5vw, 60px); }
.pagehead .hero__title { max-width: 18ch; }
.pagehead .hero__sub { color: #c9d4ec; }
.prose { max-width: 70ch; }
.prose h2 { font: 800 2rem/1.1 var(--sign); margin: 36px 0 10px; }
a.go { display: inline-flex; align-items: center; text-decoration: none; min-height: 56px; margin-top: 24px; }

/* Footer */
.foot { background: #0a1124; color: var(--sky); padding: 48px 0 40px; font-size: 1rem; }
.foot__in { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: flex-start; justify-content: space-between; }
.foot .mark { font-size: 1.625rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.foot a { color: var(--sky); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot__fine { flex-basis: 100%; margin: 6px 0 0; font-size: .9375rem; max-width: 80ch; }

/* Dialogs */
dialog { border: 0; padding: 0; color: var(--ink); background: #fff; border-radius: 18px; box-shadow: 0 30px 80px rgba(8, 14, 30, .45); }
dialog::backdrop { background: rgba(7, 12, 30, .62); }
.picker { width: min(580px, calc(100vw - 32px)); max-height: min(660px, calc(100dvh - 48px)); }
.picker__in { display: flex; flex-direction: column; max-height: inherit; }
.picker__head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 12px 20px; border-bottom: 1px solid var(--line); }
.picker__head label { font: 800 1.625rem/1 var(--sign); }
.x { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--mist); display: grid; place-items: center; }
.x svg { width: 18px; height: 18px; }
.picker__q { margin: 14px 16px 6px; border: 2px solid var(--navy); border-radius: 12px; padding: 13px 14px; font-size: 1.125rem; width: calc(100% - 32px); }
.picker__q:focus { outline: none; box-shadow: 0 0 0 3px rgba(47, 107, 255, .35); }
.picker__list { list-style: none; margin: 0; padding: 6px 8px 12px; overflow-y: auto; }
.picker__group { color: var(--slate); font-size: .875rem; font-weight: 700; padding: 12px 12px 4px; }
.opt { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); gap: 2px 14px; align-items: center; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.opt[aria-selected="true"], .opt:hover { background: var(--mist); }
.opt__code { font: 800 1.625rem/1 var(--sign); color: var(--navy); grid-row: span 2; }
.opt__city { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt__apt { color: var(--slate); font-size: .9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker__empty { padding: 18px 20px; color: var(--slate); }
.marketbox { width: min(440px, calc(100vw - 32px)); }
.marketbox form { padding: 20px 22px 22px; display: grid; gap: 16px; }
.marketbox h2 { font: 800 1.75rem/1 var(--sign); margin: 0; display: flex; align-items: center; }
.marketbox label { display: grid; gap: 6px; font-weight: 700; }
.marketbox select { border: 1.5px solid var(--line); border-radius: 10px; padding: 12px; background: #fff; font-weight: 400; }
.marketbox p { margin: 0; color: var(--slate); font-size: .9375rem; }
.marketbox .go { justify-self: start; min-height: 52px; padding: 0 26px; font-size: 1.0625rem; }

/* ---------- smaller screens ---------- */
@media (max-width: 1120px) {
  .row { grid-template-columns: 1fr; }
  .row .go { min-height: 60px; }
  .bar--flights, .bar--hotels, .bar--cars { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bar--flights .pair, .bar--hotels .f--dest, .bar--cars .pair, .bar--cars .f--age { grid-column: 1 / -1; }
  /* rows of the bar on tablets: a line between rows instead of a stray divider at the start of a row */
  .bar--flights > .f--dates::before, .bar--hotels > .f--dates::before, .bar--cars > .f--when:nth-child(2)::before, .bar--cars > .f--age::before { display: none; }
  .bar--flights > .f--dates, .bar--flights > .f--pax, .bar--hotels > .f--dates, .bar--hotels > .f--pax, .bar--cars > .f--when, .bar--cars > .f--age { box-shadow: inset 0 1px 0 var(--line); border-radius: 0; }
  .hero__in { grid-template-columns: 1fr; gap: 34px; padding-bottom: 150px; min-height: 0; }
  .hero__title { max-width: 14ch; }
  .hang::before, .hang::after { display: none; }
  .hero__in > .jet { display: none; }
  .hang > .jet { display: block; }
  .hero__in { gap: 52px; }
  .gates__in, .money { grid-template-columns: 1fr; }
  .tips { grid-template-columns: 1fr; }
  .fids__head { display: none; }
  .fids__row a { grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; }
  .fids__codes { grid-row: span 2; }
  .fids__remark { grid-column: 2; }
  .fids__more { display: none; }
  .places { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 260px; }
  .place-card, .place-card:nth-child(1), .place-card:nth-child(6) { grid-column: span 1; grid-row: span 1; }
  .place-card:nth-child(1) { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 1.0625rem; }
  .top__nav { display: none; }
  .market { margin-left: auto; }
  .hero__in { padding-top: 96px; padding-bottom: 128px; gap: 52px; }
  .jet { width: 56px; height: 21px; }
  @media (prefers-reduced-motion: no-preference) { .jet { animation-duration: 18s; } }
  .hero__copy { padding-top: 6px; }
  .fb { padding: 10px 10px 6px; border-radius: 12px; }
  .fb__title { font-size: 1.375rem; }
  .fb__clock { font-size: 1.25rem; }
  .fb__cols { display: none; }
  .fb__btn { grid-template-columns: auto auto minmax(0, 1fr); gap: 8px; padding: 7px 4px; }
  .fb__rem { display: none; }
  .fb__dest { font-size: 1.125rem; }
  .mini { font-size: 1.125rem; }
  .fb__row:nth-child(n+5) { display: none; }
  .searchwrap { margin-top: -104px; }
  .card { border-radius: 18px; padding: 8px 10px 12px; }
  .tabs { overflow-x: auto; }
  .tab { padding: 8px 11px; font-size: .9375rem; gap: 6px; }
  .tab svg { width: 17px; height: 17px; }
  .row, .bar--flights, .bar--hotels, .bar--cars { grid-template-columns: 1fr; }
  .pair { grid-template-columns: 1fr; }
  .bar > * + *::before, .pair > .f[data-pick="to"]::before, .pair > .f[data-pick="dropoff"]::before { display: block; left: 14px; right: 14px; top: 0; bottom: auto; width: auto; height: 1px; }
  .bar--flights > .f--dates, .bar--flights > .f--pax, .bar--hotels > .f--dates, .bar--hotels > .f--pax, .bar--cars > .f--when, .bar--cars > .f--age { box-shadow: none; }
  .bar--flights .pair, .bar--hotels .f--dest, .bar--cars .pair, .bar--cars .f--age { grid-column: auto; }
  .pair--cars:has(> .f[data-pick="dropoff"]:not([hidden])) { grid-template-columns: 1fr; }
  .swap { left: auto; right: 14px; transform: translateY(-50%); }
  .swap.is-turned { transform: translateY(-50%) rotate(180deg); }
  .places { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .place-card:nth-child(1) { grid-column: auto; }
  .route-art { grid-template-columns: 1fr; gap: 18px; }
  .wires { display: none; }
  .gatelist { grid-template-columns: 1fr 1fr; }
  .fids__row a { grid-template-columns: 1fr; }
  .fids__codes { grid-row: auto; }
  .fids__remark { grid-column: auto; }
  .facts { grid-template-columns: 1fr; }
  .picker { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; }
  .receipt { transform: none; }
  .results__head { align-items: flex-start; }
}

/* where each photo's subject sits, so the crops keep it */
.place-card--cancun img { object-position: 50% 40%; }
.place-card--london img { object-position: 35% 40%; }
.place-card--delhi img { object-position: 50% 55%; }
.place-card--tokyo img { object-position: 50% 55%; }
.place-card--dubai img { object-position: 57% 50%; }
.place-card--paris img { object-position: 50% 40%; }
.places { list-style: none; padding: 0; }
.credit { color: var(--slate); font-size: .875rem; margin: 14px 0 0; }
.credit a { color: var(--slate); }
.band--tight { padding-top: clamp(28px, 4vw, 48px); }
.band--tight .wrap > .fids:first-child { margin-top: 0; }
