/* Monaco Made Easy
   Riviera navy and white, with Monaco's flag red marking every lift: the thing the app is about.
   Headings in DM Serif Display for Monaco elegance; body text in Atkinson Hyperlegible,
   a typeface designed for readers with low vision, set large. */
@font-face { font-family: "Atkinson"; src: url(fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url(fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "DM Serif"; src: url(fonts/dm-serif-display-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Serif"; src: url(fonts/dm-serif-display-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --red: #ce1126;
  --red-deep: #a50d1e;
  --white: #ffffff;
  --stone: #f2f4f6;
  --line: #dfe4e9;
  --ink: #0b2545;
  --grey: #4f5b67;
  --gold: #6fbfe3;        /* Riva light blue (kept the old name so older rules follow) */
  --riva: #6fbfe3;
  --riva-pale: #eaf6fc;
  --blush: #c9d6e5;       /* pale blue-grey on navy */
  --serif: "DM Serif", Georgia, serif;
  --sans: "Atkinson", "Segoe UI", Arial, sans-serif;
  --col: 600px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
h1, h2 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.08; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 5px #fff; }
main { max-width: var(--col); margin: 0 auto; outline: none; }

/* Top bar */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) max(16px, calc((100% - var(--col)) / 2 + 16px)) 10px; background: var(--red); color: #fff; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: #fff; }
.mark svg { width: 22px; height: 22px; fill: var(--red); }
.brand-name { font-family: var(--serif); font-size: 21px; letter-spacing: 0.005em; }
.lang { display: flex; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; overflow: hidden; }
.lang button { background: none; border: 0; padding: 5px 11px; font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, 0.55); cursor: pointer; }
.lang button.on { background: #fff; color: var(--red); }
.lang button:disabled { cursor: not-allowed; }

/* Home hero */
.hero { background: var(--red); color: #fff; padding: 22px 16px 26px; box-shadow: inset 0 -6px 0 var(--riva); } /* Monaco red, with a Riva-blue waterline */
@media (min-width: 600px) { .hero { border-radius: 0 0 22px 22px; padding: 28px 24px 30px; } }
.preview { display: inline-block; font-size: 13.5px; font-weight: 700; color: var(--red); background: #fff; border-radius: 999px; padding: 3px 11px; margin-bottom: 16px; }
.hero h1 { font-size: clamp(38px, 10vw, 52px); }
.lede { margin-top: 12px; color: var(--blush); max-width: 34ch; }
.chart-card figcaption { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 0 6px 4px; font-weight: 700; font-size: 15px; }
.key { display: flex; align-items: center; gap: 6px; font-weight: 400; font-size: 13px; color: var(--grey); }
.key i { display: inline-block; width: 16px; height: 0; border-top: 3px solid var(--red); margin-left: 6px; }
.key i.k-st { border-top: 2px dashed var(--navy); }
.hchart { width: 100%; height: auto; display: block; }
.hchart .sea { fill: #d9e8f5; }
.hchart .grid { stroke: var(--line); stroke-width: 1; }
.hchart .gl { font-family: var(--sans); font-size: 10.5px; fill: #7b8792; text-anchor: end; }
.hchart .arc { fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-dasharray: 4 4; opacity: 0.8; }
.hchart .arc.sf { stroke: var(--red); stroke-width: 2.4; stroke-dasharray: none; }
.hchart .arc.dim { opacity: 0.12; }
.hchart .pt { cursor: pointer; }
.hchart .pt .hit { fill: transparent; }
.hchart .pt .dot { fill: #fff; stroke: var(--navy); stroke-width: 2.5; }
.hchart .pt.on .dot { fill: var(--red); stroke: var(--red); }
.hchart .pt text { font-family: var(--sans); font-size: 12.5px; font-weight: 700; fill: var(--navy); paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.hchart .pt:focus-visible { outline: none; }
.hchart .pt:focus-visible .dot { stroke: var(--gold); stroke-width: 4; }
.chart-hint { font-size: 13.5px; color: var(--grey); padding: 2px 6px 0; }

/* Blocks */
.block { padding: 28px 16px 8px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.block h2 { font-size: 30px; }
.link-btn { background: none; border: 0; color: var(--red); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 4px 0; }
.chips { display: flex; gap: 8px; margin: 16px 0 6px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 15px; font-size: 16px; font-weight: 700; cursor: pointer; color: var(--navy); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.rlist { list-style: none; margin: 10px 0 0; padding: 0; }
.rc-title { font-family: var(--serif); font-size: 23px; line-height: 1.15; }
.rc-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 15px; color: var(--grey); align-items: center; }
.sf-pill { background: #fdecee; color: var(--red-deep); font-weight: 700; border-radius: 6px; padding: 1px 8px; }
.some-steps { background: var(--stone); color: var(--grey); font-weight: 700; border-radius: 6px; padding: 1px 8px; }
.empty { padding: 20px 0; color: var(--grey); }

/* Route page */
.route { padding: 16px 16px 8px; }
.back { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-weight: 700; color: var(--red); padding: 6px 0; margin-bottom: 10px; }
.back svg { width: 22px; height: 22px; fill: currentColor; }
.route-from { color: var(--grey); font-size: 15.5px; }
.route h1 { font-size: clamp(34px, 9vw, 44px); margin-top: 4px; }
.facts { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts li { padding: 12px 6px; display: flex; flex-direction: column; }
.facts li + li { border-left: 1px solid var(--line); padding-left: 14px; }
.facts strong { font-size: 19px; }
.facts span { font-size: 14px; color: var(--grey); }
.summary { margin-top: 18px; font-size: 19px; }
.prof-card { margin: 20px 0 0; background: var(--stone); border-radius: 14px; padding: 14px 12px 10px; }
.prof { width: 100%; height: auto; display: block; overflow: visible; }
.prof .base { stroke: #b9cde0; stroke-width: 1.5; stroke-dasharray: 3 3; }
.prof .sea-l { font-size: 10.5px; fill: #7b8792; font-family: var(--sans); }
.prof .seg { stroke-width: 5; stroke-linecap: round; }
.prof .seg-walk { stroke-width: 4; }
.prof .pdot { fill: #fff; stroke: var(--navy); stroke-width: 2; }
.prof .ph { font-family: var(--sans); font-size: 12px; font-weight: 700; fill: var(--navy); }
.legend { display: flex; gap: 16px; font-size: 14px; color: var(--grey); padding: 8px 2px 0; }
.legend i { display: inline-block; width: 14px; height: 5px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.steps-h { font-size: 28px; margin-top: 30px; }
.steps { list-style: none; margin: 16px 0 0; padding: 0; position: relative; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding-bottom: 22px; position: relative; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 2px; width: 2px; background: var(--line); }
.step-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--c); }
.step-ico .ico { width: 24px; height: 24px; fill: #fff; }
.step-type { font-size: 13.5px; font-weight: 700; color: var(--grey); }
.step p { margin-top: 1px; }
.step-lift p { font-weight: 700; }
.note { background: var(--stone); border-left: 4px solid var(--navy); border-radius: 4px 12px 12px 4px; padding: 14px 16px; margin-top: 12px; }
.note strong { display: block; font-size: 15.5px; margin-bottom: 2px; }
.sponsor { margin-top: 12px; border: 1.5px dashed var(--riva); border-radius: 12px; padding: 14px 16px; background: var(--riva-pale); }
.sp-label { display: block; font-size: 12.5px; font-weight: 700; color: #1f6b8e; }
.sponsor strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 21px; margin: 2px 0 4px; }
.sponsor p { font-size: 15.5px; color: var(--grey); }
.actions { display: grid; gap: 10px; margin-top: 22px; }
.btn { display: flex; align-items: center; justify-content: center; min-height: 54px; border-radius: 12px; font-weight: 700; font-size: 18px; text-decoration: none; padding: 12px 18px; text-align: center; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-line { border: 2px solid var(--navy); color: var(--navy); }
.unchecked { margin: 18px 0 8px; font-size: 14.5px; color: #1d4560; background: var(--riva-pale); border-radius: 10px; padding: 10px 14px; }

/* Lifts & info pages */
.page { padding: 22px 16px 8px; }
.page h1 { font-size: clamp(36px, 9vw, 46px); }
.lede-dark { margin-top: 10px; color: var(--grey); }
.area-h { font-size: 26px; margin-top: 28px; }
.area-h span { font-family: var(--sans); font-size: 16px; color: var(--grey); }
.lifts { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); }
.lifts li { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.lifts strong { display: block; }
.lifts span { display: block; font-size: 16px; }
.lifts small { display: block; font-size: 14px; color: var(--grey); }
.map-mini { font-size: 15px; font-weight: 700; color: var(--red); text-decoration: none; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.info { margin: 20px 0 0; border-top: 1px solid var(--line); }
.info div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.info dt { font-family: var(--serif); font-size: 22px; }
.info dd { margin: 4px 0 0; color: #2d3a47; }

/* Bottom tabs */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px 10px; text-decoration: none; font-size: 13.5px; font-weight: 700; color: #6c7884; }
.tabs svg { width: 26px; height: 26px; fill: currentColor; }
.tabs a[aria-current="page"] { color: var(--red); }
@media (min-width: 700px) { .tabs { left: 50%; right: auto; width: var(--col); transform: translateX(-50%); border: 1px solid var(--line); border-bottom: 0; border-radius: 16px 16px 0 0; } }

@media (prefers-reduced-motion: no-preference) {
  main > * { animation: in 0.25s ease-out; }
  @keyframes in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
.lifts span.step-ico { display: grid; font-size: inherit; }

/* ---------- Version 2: where-to, route cards, map, survey ---------- */
.where { margin-top: 22px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 18px; padding: 16px; }
.where-h { font-family: var(--serif); font-size: 24px; line-height: 1.15; }
.dests { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dest { background: #fff; color: var(--navy); border: 0; border-radius: 999px; padding: 9px 15px; font-size: 16px; font-weight: 700; cursor: pointer; }
.dest.on { background: var(--navy); color: #fff; }
.near-btn { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--navy); color: #fff; text-decoration: none; }
.near-btn:hover { background: var(--red-deep); }
.near-btn svg { width: 30px; height: 30px; fill: currentColor; flex: none; }
.near-btn strong { display: block; font-size: 19px; }
.near-btn small { display: block; font-size: 14.5px; opacity: 0.9; }

.rlist { display: grid; gap: 16px; }
.rcard { display: block; text-decoration: none; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(11, 37, 69, 0.05), 0 8px 24px rgba(11, 37, 69, 0.06); transition: transform 0.15s, box-shadow 0.15s; }
.rcard:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(11, 37, 69, 0.06), 0 14px 32px rgba(11, 37, 69, 0.1); }
.rc-art { position: relative; display: block; background: linear-gradient(180deg, #eaf1f8 0%, #f6f9fc 100%); padding: 12px 14px 6px; }
.rc-art .prof { max-height: 120px; }
.rc-ends { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 700; color: var(--grey); padding: 0 2px 4px; }
.rc-photo { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.rc-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.side-on { padding: 26px 16px 8px; }
.chart-card { margin: 0; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 18px; padding: 14px 10px 10px; }

.btn-navy { background: var(--navy); color: #fff; }

/* Map */
body.is-map { padding-bottom: 0; }
.mapscreen { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
.map-wrap { position: relative; }
.map { height: 58vh; min-height: 340px; background: #e8eef3; }
@media (min-width: 600px) { .map { border-radius: 0 0 18px 18px; } }
.find-me { position: absolute; z-index: 500; left: 50%; transform: translateX(-50%); bottom: 18px; display: flex; align-items: center; gap: 8px; background: var(--red); color: #fff; border: 0; border-radius: 999px; padding: 12px 20px; font-size: 17px; font-weight: 700; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); cursor: pointer; }
.find-me svg { width: 22px; height: 22px; fill: currentColor; }
.map-key { position: absolute; z-index: 500; top: 10px; left: 10px; display: flex; gap: 10px; background: rgba(255, 255, 255, 0.94); border-radius: 10px; padding: 6px 10px; font-size: 13px; font-weight: 700; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
.map-key span { display: flex; align-items: center; gap: 5px; }
.mk-k { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.mk-k.mk-lift { background: var(--red); }
.mk-k.mk-escalator { background: #1d6fa5; }
.mk-k.mk-approx-k { border: 2px dashed var(--navy); }
.mk { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); background: var(--red); }
.mk-escalator { background: #1d6fa5; }
.mk .ico { width: 18px; height: 18px; fill: #fff; }
.mk-approx { outline: 2px dashed var(--navy); outline-offset: 2px; }
.mk-place { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--navy); text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; }
.mk-place i { width: 12px; height: 12px; border-radius: 50%; background: var(--navy); border: 2px solid #fff; }
.mk-me { display: block; width: 22px; height: 22px; border-radius: 50%; background: #1a73e8; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(26, 115, 232, 0.25), 0 1px 4px rgba(0, 0, 0, 0.3); }
.leaflet-popup-content { font-family: var(--sans); font-size: 15px; line-height: 1.45; }
.leaflet-popup-content a { color: var(--red); font-weight: 700; }
.pop-approx { color: #1f6b8e; font-size: 13.5px; }
.near { padding: 22px 16px 0; }
.near h1 { font-size: clamp(32px, 8vw, 40px); }
.loc-error { margin-top: 10px; color: var(--red-deep); font-weight: 700; }
button.map-mini { background: #fff; cursor: pointer; }

/* Survey */
.survey { padding: 18px 16px 24px; }
.sv-kicker { display: inline-block; font-size: 13.5px; font-weight: 700; color: var(--navy); background: var(--gold); border-radius: 999px; padding: 3px 11px; margin-bottom: 10px; }
.survey h1 { font-size: clamp(32px, 8vw, 40px); }
.sv-gps { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 12px; border-radius: 10px; background: var(--stone); font-weight: 700; font-size: 15.5px; }
.gps-dot { width: 12px; height: 12px; border-radius: 50%; background: #9aa5b1; flex: none; }
.sv-gps.good .gps-dot { background: #1e9e5a; }
.sv-gps.fair .gps-dot { background: #e0a100; }
.sv-gps.bad .gps-dot { background: var(--red); }
.sv-map-wrap { margin: 12px -16px 0; }
.sv-map { height: 42vh; min-height: 260px; }
.sv-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.sv-actions .btn { width: 100%; border: 0; cursor: pointer; font-family: inherit; }
.sv-actions .btn-line { border: 2px solid var(--navy); background: #fff; }
.sv-h { font-size: 26px; margin-top: 26px; }
.sv-form { margin-top: 18px; border: 2px solid var(--navy); border-radius: 16px; padding: 4px 16px 16px; }
.sv-form .sv-h { margin-top: 14px; }
.sv-pos { margin-top: 6px; font-weight: 700; color: var(--grey); }
.sv-form fieldset { border: 0; padding: 0; margin: 16px 0 0; }
.sv-form legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.sv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sv-chip input { position: absolute; opacity: 0; pointer-events: none; }
.sv-chip span { display: inline-block; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 700; cursor: pointer; }
.sv-chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.sv-chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.sv-field { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; font-weight: 700; }
.sv-field input, .sv-field select, .sv-field textarea { font: inherit; font-weight: 400; font-size: 17px; padding: 12px; border: 1.5px solid #c4ccd5; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.sv-photos { margin-top: 16px; }
.sv-cam { cursor: pointer; }
.sv-previews { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sv-prev { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--stone); display: grid; place-items: center; font-weight: 700; }
.sv-prev img { width: 100%; height: 100%; object-fit: cover; }
.form-err { margin-top: 12px; color: var(--red-deep); font-weight: 700; }
.sv-saved { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #e6f5ec; color: #146c3e; font-weight: 700; }
.sv-rec { margin-top: 18px; border-radius: 16px; background: var(--navy); color: #fff; padding: 16px; }
.sv-rec-top { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; }
.sv-rec-top strong { margin-left: auto; font-size: 26px; font-variant-numeric: tabular-nums; }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: #ff4b5c; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.sv-rec-sub { color: #cfdaea; margin-top: 4px; }
.sv-rec-label { margin-top: 14px; font-weight: 700; }
.sv-marks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sv-mark { background: rgba(255, 255, 255, 0.12); color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.3); border-radius: 999px; padding: 9px 14px; font-weight: 700; cursor: pointer; }
.sv-mark.hit { background: var(--gold); color: var(--navy); }
.sv-rec .btn-line { color: #fff; border-color: #fff !important; background: transparent !important; }
.sv-counts { color: var(--grey); margin-top: 4px; }
.sv-list { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); }
.sv-list li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sv-list li.sv-empty { display: block; color: var(--grey); }
.sv-list small { display: block; color: var(--grey); font-size: 14px; }
.sv-thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--navy); display: grid; place-items: center; }
.sv-thumb .ico { width: 26px; height: 26px; fill: #fff; }
.sv-thumb.walk { background: #1d6fa5; }
.sv-del { background: none; border: 0; color: var(--red-deep); font-weight: 700; cursor: pointer; padding: 8px; }
.sv-export { margin-top: 10px; display: grid; gap: 10px; }
.sv-export .btn { border: 0; cursor: pointer; font-family: inherit; }
.sv-export .btn-line { border: 2px solid var(--navy); background: #fff; }
.sv-status { font-weight: 700; color: var(--navy); }

/* ---------- Planner: From / To ---------- */
.pl-fields { margin-top: 14px; background: #fff; border-radius: 14px; position: relative; }
.pl-field { position: relative; display: grid; grid-template-columns: 22px 52px 1fr; align-items: center; gap: 8px; padding: 6px 12px; }
.pl-field + .pl-field { border-top: 1px solid var(--line); }
.pl-field label { color: var(--grey); font-weight: 700; font-size: 15px; }
.pl-field input { border: 0; font: inherit; font-size: 17.5px; color: var(--ink); padding: 12px 0; width: 100%; min-width: 0; background: transparent; outline: none; }
.pl-field input::placeholder { color: #7b8792; }
.pl-field:focus-within { box-shadow: inset 0 0 0 3px var(--gold); border-radius: 14px; }
.pl-dot { width: 14px; height: 14px; border-radius: 50%; justify-self: center; }
.pl-from { background: #fff; border: 4px solid var(--navy); }
.pl-to { background: var(--red); border: 4px solid #fbd0d5; }
.pl-sugg { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 6px 0; list-style: none; background: #fff; color: var(--ink); border-radius: 14px; box-shadow: 0 12px 32px rgba(11, 37, 69, 0.28); max-height: 52vh; overflow-y: auto; }
.pl-sugg li { padding: 10px 16px; cursor: pointer; }
.pl-sugg li + li { border-top: 1px solid var(--stone); }
.pl-sugg li:hover { background: var(--stone); }
.pl-sugg strong { display: block; }
.pl-sugg small { display: block; color: var(--grey); font-size: 14.5px; }
.pl-sugg .pl-none { color: var(--grey); cursor: default; }
.pl-popular { margin-top: 14px; font-size: 15px; font-weight: 700; color: var(--blush); }
.planner .dests { margin-top: 8px; }
.planner .dest { font-size: 15px; padding: 7px 13px; }
.pl-err { margin-top: 12px; color: #fff; font-weight: 700; background: rgba(11, 37, 69, 0.35); border-radius: 8px; padding: 6px 10px; }
.pl-go { width: 100%; margin-top: 16px; border: 0; cursor: pointer; font-family: inherit; background: var(--navy); }
.pl-go:hover { background: #13315c; }
.near-link { display: block; text-align: center; margin-top: 12px; color: #fff; font-weight: 700; text-underline-offset: 3px; }

/* Plan screen */
.plan { padding: 14px 16px 8px; }
.pl-ends { list-style: none; margin: 0 0 14px; padding: 0; border: 1px solid var(--line); border-radius: 14px; }
.pl-ends li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: center; padding: 10px 14px; }
.pl-ends li + li { border-top: 1px solid var(--line); }
.pl-ends small { display: block; color: var(--grey); font-size: 13.5px; font-weight: 700; }
.pl-ends strong { font-size: 18px; }
.plan-map { height: 42vh; min-height: 260px; border-radius: 14px; margin: 0 -2px; }
.mk-end { display: block; width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); }
.mk-from { background: #fff; border: 7px solid var(--navy); }
.mk-to { background: var(--red); border: 5px solid #fff; }
.pl-route { display: block; margin-top: 12px; padding: 16px; border-radius: 14px; background: #fdecee; text-decoration: none; border-left: 5px solid var(--red); }
.pl-route strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 23px; }
.pl-route span { display: block; margin-top: 4px; }
.pl-route small { display: block; margin-top: 6px; color: var(--grey); font-size: 15px; }

/* Meet me here */
.meet { margin-top: 14px; }
.meet-btn { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: rgba(255, 255, 255, 0.12); color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.45); border-radius: 14px; padding: 14px 16px; cursor: pointer; font: inherit; }
.meet-btn svg { width: 28px; height: 28px; fill: currentColor; flex: none; }
.meet-btn strong { display: block; font-size: 18px; }
.meet-btn small { display: block; font-size: 14.5px; color: var(--blush); }
.meet-panel { margin-top: 10px; display: grid; gap: 8px; }
.meet-panel label { font-weight: 700; font-size: 15px; color: var(--blush); }
.meet-panel input { font: inherit; font-size: 17px; padding: 12px; border-radius: 10px; border: 0; }
.btn-white { background: #fff; color: var(--navy); border: 0; cursor: pointer; font-family: inherit; }
.meet-status { color: #fff; font-weight: 700; overflow-wrap: anywhere; }
.pop-go { background: var(--red); color: #fff; border: 0; border-radius: 10px; padding: 10px 16px; font: inherit; font-weight: 700; cursor: pointer; }

/* Just arrived */
.arrive-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: #fff; color: var(--navy); box-shadow: inset 6px 0 0 var(--riva); text-decoration: none; }
.arrive-btn strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; }
.arrive-btn small { display: block; font-size: 15.5px; font-weight: 700; margin-top: 2px; }
.arrive-btn svg { width: 30px; height: 30px; fill: currentColor; flex: none; }
.arrive { padding: 14px 16px 24px; }
.arrive h1 { font-size: clamp(36px, 9vw, 46px); }
.ar-q { border: 0; padding: 0; margin: 24px 0 0; }
.ar-q legend, .ar-legend { display: block; font-family: var(--serif); font-size: 25px; margin-bottom: 10px; padding: 0; }
.ar-opts { display: grid; gap: 8px; }
.ar-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ar-opt span { display: block; border: 2px solid var(--line); border-radius: 14px; padding: 12px 16px; cursor: pointer; }
.ar-opt strong { display: block; font-size: 18px; }
.ar-opt small { display: block; color: var(--grey); font-size: 15px; }
.ar-opt input:checked + span { border-color: var(--navy); background: #eef3f9; box-shadow: inset 4px 0 0 var(--red); }
.ar-opt input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.ar-search { position: relative; }
.ar-search input { width: 100%; font: inherit; font-size: 18px; padding: 14px; border: 2px solid #c4ccd5; border-radius: 12px; }
.ar-search input:focus { outline: none; border-color: var(--navy); }
.ar-hint { margin-top: 8px; color: var(--grey); font-size: 15.5px; }
.ar-go { width: 100%; margin-top: 22px; border: 0; cursor: pointer; font-family: inherit; }
.note-welcome { border-left-color: var(--riva); background: var(--riva-pale); margin-top: 0; margin-bottom: 14px; }
.alt-btn { display: block; width: 100%; margin-top: 12px; text-align: left; background: #fff; border: 1.5px dashed #9aa5b1; border-radius: 12px; padding: 12px 14px; font: inherit; font-weight: 700; color: var(--navy); cursor: pointer; }
.step-steps p { font-weight: 700; }
.more-note { display: block !important; color: var(--grey); font-size: 15px; }

/* Transport */
.tr-card { display: block; margin-top: 18px; padding: 18px; border-radius: 16px; background: var(--navy); color: #fff; text-decoration: none; }
.tr-card strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 26px; }
.tr-card span { display: block; color: #cfe6f3; margin-top: 2px; }
.tr-card.tr-airport { background: var(--navy); box-shadow: inset 0 -5px 0 var(--riva); }
.bus-badge { display: inline-grid; place-items: center; min-width: 34px; height: 30px; padding: 0 7px; border-radius: 8px; font-family: var(--sans); font-weight: 700; font-size: 16px; vertical-align: middle; }
.lines { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); }
.lines a { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.stop-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-top: 12px; }
.stop-name { font-weight: 700; font-size: 18px; }
.stop-name small { font-weight: 400; color: var(--grey); font-size: 14.5px; }
.deps { list-style: none; margin: 8px 0 0; padding: 0; }
.deps li { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--stone); }
.deps li .bus-badge { grid-row: span 2; }
.deps span { font-size: 16px; }
.deps strong { font-size: 18px; text-align: right; }
.deps small { grid-column: 2 / 4; text-align: right; color: var(--red-deep); font-weight: 700; font-size: 14px; margin-top: -4px; }
.line h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: clamp(28px, 7vw, 36px); }
.line h1 .bus-badge { font-size: 22px; height: 40px; min-width: 46px; }
.line-map { height: 40vh; min-height: 240px; border-radius: 14px; margin-top: 14px; }
.line-stops { list-style: none; margin: 10px 0 0; padding: 0 0 0 18px; border-left: 4px solid var(--line); }
.line-stops li { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.line-stops li::before { content: ""; position: absolute; left: -26px; top: 13px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); }
.line-stops small { color: var(--grey); white-space: nowrap; }
.ways { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.way { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.way-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.way-top strong { font-family: var(--serif); font-weight: 400; font-size: 24px; }
.way-tag { font-size: 13.5px; font-weight: 700; background: var(--stone); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.way p { margin-top: 8px; }
.way-tip { color: var(--grey); font-size: 15.5px; }
.way-next { background: #eef3f9; border-radius: 10px; padding: 8px 12px; }
.bus-opt { display: block; margin-top: 14px; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--navy); }
.bus-opt-top { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.bus-opt p { margin-top: 6px; }
.bus-opt small { display: block; color: var(--grey); margin-top: 6px; font-size: 14.5px; }
.ar-airport { display: block; margin-top: 14px; font-weight: 700; color: var(--red); text-underline-offset: 3px; }
.tr-train { background: #eef3f9; color: var(--ink); }
.tr-train span { color: var(--ink); }

/* Taxis */
.tr-taxi { background: var(--red); }
.tr-taxi span { color: #ffe3e6; }
.taxi-here { margin-top: 16px; }
.taxi-here .btn { width: 100%; }
.taxi-verdict { padding: 14px 16px; border-radius: 12px; background: var(--stone); }
.taxi-verdict.ok { background: #e6f5ec; }
.taxi-verdict.fr { background: var(--riva-pale); }
.taxi-call { margin-top: 16px; }
.taxi-call .btn { width: 100%; }
.taxi-call p { margin-top: 8px; color: var(--grey); }
.note-rule { margin-top: 18px; }
.rule-list, .info-list { margin: 8px 0 0; padding-left: 20px; }
.rule-list li, .info-list li { margin-top: 6px; }

/* Language picker */
.lang-wrap { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 6px; background: #fff; color: var(--red); border: 0; border-radius: 999px; padding: 6px 12px 6px 9px; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.lang-btn svg { width: 20px; height: 20px; fill: currentColor; }
.lang-sheet { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; list-style: none; margin: 0; padding: 6px; background: #fff; border-radius: 14px; box-shadow: 0 12px 32px rgba(11, 37, 69, 0.3); min-width: 180px; }
.lang-sheet button { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 10px; padding: 11px 14px; font: inherit; font-size: 17px; color: var(--ink); cursor: pointer; }
.lang-sheet button:hover { background: var(--stone); }
.lang-sheet button.on { background: var(--riva-pale); font-weight: 700; box-shadow: inset 4px 0 0 var(--red); }
/* Chinese, Japanese and Korean: phone system fonts, a touch more line height */
.cjk body, html.cjk body { font-family: var(--sans), "PingFang SC", "Hiragino Sans", "Noto Sans CJK SC", "Noto Sans JP", "Noto Sans KR", "Apple SD Gothic Neo", "Microsoft YaHei", sans-serif; line-height: 1.65; }
html.cjk h1, html.cjk h2, html.cjk .rc-title, html.cjk .where-h, html.cjk .arrive-btn strong, html.cjk .tr-card strong, html.cjk .way-top strong, html.cjk .info dt, html.cjk .sponsor strong, html.cjk .pl-route strong, html.cjk .ar-q legend, html.cjk .ar-legend { font-family: "PingFang SC", "Hiragino Mincho ProN", "Noto Serif CJK SC", "Noto Serif JP", "Noto Serif KR", serif; font-weight: 700; letter-spacing: 0; }
html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) .arrive-btn strong { word-break: auto-phrase; }
html:lang(ko) body { word-break: keep-all; overflow-wrap: anywhere; }

/* ---------- v10 "Riviera": white and deep Riva navy, Monaco red kept for the Grimaldi lozenges and the main action ---------- */
:root { --navy: #0a1f3c; --navy-2: #12305a; --ink: #0a1f3c; --red: #c8102e; --red-deep: #a00d25; --hair: #e3e7ec;
  --fusil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='14'%3E%3Crect width='10' height='14' fill='%23fff'/%3E%3Cpath d='M5 0L10 7 5 14 0 7z' fill='%23c8102e'/%3E%3C/svg%3E"); }
/* Header: the red-and-white lozenges of the Grimaldi arms run across the very top, then a quiet white bar */
.bar { background: #fff; color: var(--navy); padding-top: calc(24px + env(safe-area-inset-top)); padding-bottom: 12px; border-bottom: 1px solid var(--hair); }
.bar::before { content: ""; position: absolute; left: 0; right: 0; top: env(safe-area-inset-top); height: 14px; background: var(--fusil) center 0 / 10px 14px repeat-x; }
.mark { background: var(--navy); border-radius: 50%; }
.mark svg { fill: #fff; }
.brand-name { font-size: 22px; letter-spacing: 0.01em; }
.lang-btn { background: #fff; color: var(--navy); border: 1px solid var(--hair); }
.lang-btn:hover { border-color: var(--navy); }
/* Home: a deep navy hero, like a Riva hull at night, with a fine light-blue waterline */
.hero { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); box-shadow: inset 0 -3px 0 var(--riva); padding-top: 26px; }
.preview { background: transparent; color: var(--riva); border: 1px solid rgba(111, 191, 227, 0.55); font-weight: 700; }
.lede { color: #c9d6e5; }
.arrive-btn { box-shadow: inset 5px 0 0 var(--red), 0 10px 30px rgba(0, 0, 0, 0.25); }
.where { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); }
.pl-go { background: var(--red); box-shadow: 0 8px 22px rgba(200, 16, 46, 0.35); }
.pl-go:hover { background: var(--red-deep); }
.meet-btn { background: transparent; border-color: rgba(255, 255, 255, 0.3); }
.meet-btn small, .meet-panel label { color: #c9d6e5; }
.near-btn:hover { background: var(--navy-2); }
/* Tabs: navy, with a small red mark over the current one */
.tabs a { position: relative; color: #7a8694; }
.tabs a[aria-current="page"] { color: var(--navy); }
.tabs a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 50%; width: 28px; height: 3px; margin-left: -14px; background: var(--red); border-radius: 0 0 3px 3px; }
.lang-sheet button.on { background: var(--stone); }

/* ---------- v11: home, events, cruise, offline, lift reports ---------- */
.home-btn, .cruise-card { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 16px 18px; border-radius: 16px; text-decoration: none; }
.home-btn { background: var(--riva-pale); color: var(--navy); box-shadow: inset 5px 0 0 var(--riva); }
.home-btn .home-ico { width: 30px; height: 30px; fill: var(--navy); flex: none; }
.home-btn span { flex: 1; min-width: 0; }
.home-btn strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.12; overflow-wrap: anywhere; }
.home-btn small { display: block; font-size: 15px; font-weight: 700; margin-top: 2px; }
.home-btn > svg:last-child, .cr-go svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.cruise-card { flex-direction: column; align-items: stretch; gap: 2px; background: #fff; color: var(--navy); border-top: 5px solid var(--red); }
.cr-top { font-size: 15px; font-weight: 700; color: var(--grey); }
.cr-head { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; }
.cr-head.cr-urgent { color: var(--red); }
.cruise-card small { font-size: 15.5px; color: var(--grey); }
.cr-go { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hair); font-weight: 700; color: var(--red); }
.event-banner { display: grid; gap: 2px; margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.22); color: #fff; }
.event-banner::before { content: ""; height: 8px; margin: -14px -16px 8px; border-radius: 14px 14px 0 0; background: var(--fusil) center 0 / 6px 8px repeat-x; }
.ev-tag { font-size: 13.5px; font-weight: 700; color: var(--riva); }
.event-banner strong { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.15; }
.ev-date { font-weight: 700; font-size: 15px; }
.event-banner p { margin-top: 4px; color: #c9d6e5; font-size: 16px; }
.events-info { margin-top: 26px; }
.events-info h2 { font-size: 28px; }
.ev-list { list-style: none; margin: 10px 0 0; padding: 0; }
.ev-list li { padding: 14px 0 14px 14px; border-bottom: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--red); }
.ev-list strong { display: block; font-size: 18px; }
.ev-list .ev-date { display: block; color: var(--red); }
.ev-list p { color: #2d3a47; margin-top: 4px; }
.note-event { border-left-color: var(--red); background: #fff4f5; }
.note-report { border-left-color: #7a8694; }
.ship-link { margin-top: 12px; min-height: 46px; font-size: 16px; }
.actions { display: grid; gap: 10px; }
.save-home { width: 100%; background: #fff; cursor: pointer; font-family: inherit; }
.off-ok { margin-top: 10px; padding: 10px 14px; border-radius: 10px; background: #e8f6ef; color: #0d5c3c; font-weight: 700; }
/* Good to know: save for offline */
.offline-card { margin: 18px 0 8px; padding: 18px; border-radius: 16px; background: var(--navy); color: #fff; box-shadow: inset 0 -4px 0 var(--riva); }
.offline-card h2 { font-size: 26px; }
.offline-card p { color: #c9d6e5; margin-top: 6px; }
.offline-card .off-ok { background: rgba(255, 255, 255, 0.12); color: #fff; }
.offline-card .off-status { color: #fff; font-weight: 700; min-height: 0; }
.offline-card .form-err { color: #ffd5da; font-weight: 700; }
.offline-card .btn { width: 100%; margin-top: 14px; border: 0; cursor: pointer; font-family: inherit; }
.offline-card .btn-navy { background: var(--red); }
.offline-card .btn-line { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.6); }
.offline-card .btn:disabled { opacity: 0.6; }
.off-bar { height: 6px; margin-top: 10px; border-radius: 3px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.off-bar i { display: block; height: 100%; width: 0; background: var(--riva); transition: width 0.2s; }
/* Cruise screen */
.cr-time { font: inherit; font-size: 28px; font-weight: 700; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; color: var(--navy); background: #fff; }
.cr-end { width: 100%; margin-top: 10px; background: #fff; cursor: pointer; font-family: inherit; }
.tr-card.tr-cruise { background: #fff; color: var(--navy); border: 1.5px solid var(--hair); box-shadow: inset 0 5px 0 var(--red); }
.tr-card.tr-cruise span { color: var(--grey); }
/* Lift reports */
.lift-pop { min-width: 190px; }
.rep { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--hair); }
.rep-open { background: none; border: 0; padding: 4px 0; color: var(--red); font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer; text-decoration: underline; }
.rep-opts { display: grid; gap: 6px; margin-top: 6px; }
.rep-opts button { font: inherit; font-size: 14.5px; font-weight: 700; padding: 8px 10px; border-radius: 8px; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); cursor: pointer; text-align: left; }
.rep-thanks { font-size: 14px; font-weight: 700; color: #0d5c3c; margin-top: 4px; }
.rep-thanks:empty { display: none; }
.rep-down { display: block; color: var(--red); font-weight: 700; font-size: 14.5px; }
.mk.mk-down { background: #7a8694 !important; opacity: 0.85; position: relative; }
.mk.mk-down::after { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 3px; margin-left: -1.5px; background: #fff; transform: rotate(45deg); border-radius: 2px; }
.lifts li.is-down strong { text-decoration: line-through; text-decoration-color: rgba(200, 16, 46, 0.6); }
html.cjk .home-btn strong, html.cjk .cr-head, html.cjk .event-banner strong, html.cjk .offline-card h2, html.cjk .events-info h2 { font-family: "PingFang SC", "Hiragino Mincho ProN", "Noto Serif CJK SC", "Noto Serif JP", "Noto Serif KR", serif; font-weight: 700; letter-spacing: 0; }

/* ---------- v12: know before you go, wheelchair mode ---------- */
.know-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(111, 191, 227, 0.45); color: #fff; text-decoration: none; font-weight: 700; font-size: 16px; }
.know-link svg { width: 22px; height: 22px; fill: var(--riva); flex: none; }
.know { margin-top: 18px; padding: 18px 18px 6px; border-radius: 16px; border: 1.5px solid var(--hair); box-shadow: inset 0 5px 0 var(--red); }
.know h2 { font-size: 26px; }
.know-list { margin: 8px 0 0; }
.know-list div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.know-list div:last-child { border-bottom: 0; }
.know-list dt { font-weight: 700; font-size: 18px; }
.know-list dd { margin: 3px 0 0; color: #2d3a47; }
.wc-toggle { display: flex; align-items: flex-start; gap: 12px; margin: 14px 0 4px; padding: 12px 14px; border-radius: 12px; background: var(--stone); cursor: pointer; }
.wc-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wc-sw { flex: none; position: relative; width: 46px; height: 28px; margin-top: 1px; border-radius: 14px; background: #b9c2cc; transition: background 0.15s; }
.wc-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.15s; }
.wc-toggle input:checked + .wc-sw { background: var(--navy); }
.wc-toggle input:checked + .wc-sw::after { transform: translateX(18px); }
.wc-toggle input:focus-visible + .wc-sw { outline: 3px solid var(--navy); outline-offset: 2px; }
.wc-toggle > span:last-child { font-weight: 700; }
.wc-toggle small { display: block; font-weight: 400; font-size: 15px; color: var(--grey); }
.wc-arrive { margin-top: 22px; }
.note-wc { border-left-color: var(--riva); }
html.cjk .know h2 { font-family: "PingFang SC", "Hiragino Mincho ProN", "Noto Serif CJK SC", "Noto Serif JP", "Noto Serif KR", serif; font-weight: 700; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 15.5px; }
.legal-links a { color: var(--navy); font-weight: 700; }

/* ---------- v15: the harbour photo at the top of the home screen (photo by Nick Hutton) ---------- */
/* The photo is 750 x 671, so at full width it is about 0.9 x the width tall; the fade finishes before it ends. */
.hero {
  background:
    linear-gradient(180deg, rgba(10, 31, 60, 0.12) 0, rgba(10, 31, 60, 0.36) 26vw, rgba(10, 31, 60, 0.82) 58vw, var(--navy) 82vw, var(--navy-2) 100%),
    url(img/harbour-hero.jpg) center top / 100% auto no-repeat,
    var(--navy);
}
.hero h1 { text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5); }
.hero .preview { background: rgba(10, 31, 60, 0.55); border-color: rgba(255, 255, 255, 0.5); color: #fff; }
@media (min-width: 600px) {
  .hero { background:
    linear-gradient(180deg, rgba(10, 31, 60, 0.25) 0, rgba(10, 31, 60, 0.45) 160px, rgba(10, 31, 60, 0.82) 340px, var(--navy) 480px, var(--navy-2) 100%),
    url(img/harbour-hero.jpg) center top / 100% auto no-repeat,
    var(--navy); }
}

/* ---------- v17: essentials on the map ---------- */
.ess-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 4px -16px 14px; padding: 2px 16px; }
.ess-chips::-webkit-scrollbar { display: none; }
.ess-chips .chip { text-decoration: none; white-space: nowrap; }
.mk.mk-ess { width: 30px; height: 30px; border-width: 2.5px; }
.mk.mk-ess svg { width: 18px; height: 18px; fill: #fff; }
.note-ess { margin: 4px 0 12px; border-left-color: var(--navy); }
.ess-quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.ess-quick a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; text-decoration: none; font-weight: 700; font-size: 15.5px; }
.eq-ico { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--c); }
.eq-ico svg { width: 18px; height: 18px; fill: #fff; }

/* ---------- v17: Changing of the Guard and step-free walks ---------- */
.find-me { white-space: nowrap; }
.guard-card { display: grid; gap: 2px; margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: rgba(10, 31, 60, 0.72); border: 1px solid rgba(255, 255, 255, 0.28); color: #fff; text-decoration: none; box-shadow: inset 4px 0 0 var(--red); }
.gd-top { font-size: 13.5px; font-weight: 700; color: var(--riva); }
.guard-card strong { font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.15; }
.guard-card small { font-size: 15px; color: #dbe5f0; }
.walk .guard-card { background: var(--navy); margin: 14px 0 6px; }
.block-lede { color: var(--grey); margin: 4px 0 14px; max-width: 46ch; }
.walk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.walk-card { display: grid; gap: 4px; padding: 18px; border-radius: 18px; text-decoration: none; color: #fff; background: linear-gradient(180deg, rgba(10, 31, 60, 0.55), rgba(10, 31, 60, 0.95)), url(img/harbour-hero.jpg) center 35% / cover; box-shadow: 0 10px 26px rgba(10, 31, 60, 0.18); }
.walk-list li:nth-child(2) .walk-card { background: linear-gradient(180deg, rgba(10, 31, 60, 0.55), rgba(10, 31, 60, 0.95)), url(img/harbour-hero.jpg) right 20% / cover; }
.wk-title { font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.wk-sub { color: #dbe5f0; font-size: 15.5px; }
.wk-stops { margin-top: 6px; font-size: 13.5px; font-weight: 700; color: var(--riva); }
.walk { padding: 14px 16px 24px; }
.walk h1 { font-size: clamp(34px, 9vw, 44px); margin-top: 6px; }
.walk .plan-map { margin: 14px -16px 0; }
.walk-stops { list-style: none; margin: 18px 0 0; padding: 0; }
.walk-stops > li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.walk-stops strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.15; }
.walk-stops p { color: #2d3a47; margin-top: 4px; }
.wk-num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; font-size: 15px; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }
.walk-stops .wk-num { width: 32px; height: 32px; border: 0; box-shadow: none; }
.wk-how { margin-top: 8px; }
.wk-how summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: 15.5px; }
.wk-how .steps { margin-top: 8px; }
.btn-small { margin-top: 10px; font: inherit; font-weight: 700; font-size: 15px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); cursor: pointer; }
html.cjk .wk-title, html.cjk .walk-stops strong, html.cjk .guard-card strong { font-family: "PingFang SC", "Hiragino Mincho ProN", "Noto Serif CJK SC", "Noto Serif JP", "Noto Serif KR", serif; font-weight: 700; }

/* ---------- v18: route feedback ---------- */
a.preview { text-decoration: none; }
.route-fb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: var(--stone); font-weight: 700; }
.route-fb span { flex: 1 1 100%; }
.route-fb .btn-small { margin-top: 0; min-width: 72px; }
@media (min-width: 420px) { .route-fb span { flex: 1 1 auto; } }
