/* Agos Riverside Resort. Direction: editorial luxury.
 * Misty ivory paper, deep river green, ochre for the main action, sand on dark panels.
 * Signature: the river-current linework in the home hero. Everything else stays quiet.
 * Mobile-first. Contrast checked for WCAG AA in light and dark (tools/contrast.js). */
[hidden] { display: none !important; }

:root {
  --bg: #f3f4ee;
  --surface: #fbfbf8;
  --surface-2: #e9ebe2;
  --fg: #14211d;
  --muted: #55625c;
  --line: #d3d8cb;
  --river: #1d5f55;
  --river-deep: #0d302b;
  --river-soft: #dde8e1;
  --on-river: #f7f6f0;
  --on-deep: #f1efe6;
  --on-deep-muted: #b9c7bf;
  --sand: #d8c49c;
  --sun: #b4823a;
  --sun-fg: #1b1307;
  --star: #87601f;
  --road: #3b4541; --road-dash: #f3f1e8;
  --ok: #2f6b3c;
  --warn: #8a5a10;
  --bad: #a3271f;
  --font-display: "Libre Caslon Display", "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --font-serif: "Libre Caslon Text", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --sh1: 0 1px 2px rgba(13, 48, 43, 0.05), 0 12px 28px -20px rgba(13, 48, 43, 0.35);
  --sh2: 0 2px 6px rgba(13, 48, 43, 0.08), 0 28px 50px -30px rgba(13, 48, 43, 0.55);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1613; --surface: #12201c; --surface-2: #182b26; --fg: #eceee6; --muted: #a5b2ab; --line: #2a3f39;
    --river: #86c9b9; --river-deep: #081a17; --river-soft: #173530; --on-river: #08201b; --on-deep: #eceee6; --on-deep-muted: #a9b9b1;
    --sun: #d2a55a; --sun-fg: #1b1307; --star: #d9b26a; --road: #050d0b; --road-dash: #cfdcd5;
    --ok: #7fcb93; --warn: #e2b15c; --bad: #ff8f85;
    --sh1: 0 1px 2px rgba(0,0,0,0.4), 0 12px 28px -18px rgba(0,0,0,0.75); --sh2: 0 2px 6px rgba(0,0,0,0.5), 0 28px 50px -28px rgba(0,0,0,0.85);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1613; --surface: #12201c; --surface-2: #182b26; --fg: #eceee6; --muted: #a5b2ab; --line: #2a3f39;
  --river: #86c9b9; --river-deep: #081a17; --river-soft: #173530; --on-river: #08201b; --on-deep: #eceee6; --on-deep-muted: #a9b9b1;
  --sun: #d2a55a; --sun-fg: #1b1307; --star: #d9b26a; --road: #050d0b; --road-dash: #cfdcd5;
  --ok: #7fcb93; --warn: #e2b15c; --bad: #ff8f85;
  --sh1: 0 1px 2px rgba(0,0,0,0.4), 0 12px 28px -18px rgba(0,0,0,0.75); --sh2: 0 2px 6px rgba(0,0,0,0.5), 0 28px 50px -28px rgba(0,0,0,0.85);
  color-scheme: dark;
}

/* ---- base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  padding-inline: 16px; padding-block: 0 104px; overflow-x: clip;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--river); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }
.wrap { max-width: 1120px; margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--river-deep); color: var(--on-deep); padding: 12px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--river); }

/* ---- header: wordmark and quiet navigation ---- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 18px 14px; }
a.brand { color: var(--fg); text-decoration: none; display: inline-flex; align-items: baseline; gap: 10px; min-width: 0; padding-block: 7px; }
.brand-mark { font-family: var(--font-display); font-size: 30px; line-height: 1; letter-spacing: 0.01em; }
.brand-sub { font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.top nav { display: flex; gap: 28px; }
.top nav a { position: relative; padding: 10px 0; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; font-size: 14px; font-weight: 500; letter-spacing: 0.04em; color: var(--muted); text-decoration: none; }
.top nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--fg); }
.top nav a:hover::after { transform: scaleX(0.5); }
.top nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (max-width: 760px) {
  .top { flex-wrap: wrap; row-gap: 0; }
  .top nav { order: 3; flex-basis: 100%; overflow-x: auto; gap: 24px; scrollbar-width: none; border-top: 1px solid var(--line); margin-top: 12px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); padding-inline-end: 28px; }
  .top nav::-webkit-scrollbar { display: none; }
}

/* ---- hero: full-bleed river panel with the current linework ---- */
.hero { position: relative; isolation: isolate; overflow: hidden; margin-inline: calc(50% - 50vw); background: var(--river-deep); color: var(--on-deep); }
.hero-art { position: absolute; inset: 0; z-index: -1; }
.hero-art svg, .hero-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.hero-art img { position: absolute; inset: 0; }
.hero-art svg { position: relative; }
/* Scrim: keeps the hero text readable on any photo. Strong on the text side, lighter on the right. */
/* Phones: the text covers most of the photo, so the scrim is even. Measured in tests/photos.test.js (WCAG AA on a pure white photo). */
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 26, 23, 0.8) 0%, rgba(8, 26, 23, 0.86) 100%); }
@media (min-width: 760px) { .hero-art::after { background: linear-gradient(90deg, rgba(8, 26, 23, 0.9) 0%, rgba(8, 26, 23, 0.82) 45%, rgba(8, 26, 23, 0.5) 72%, rgba(8, 26, 23, 0.22) 100%), linear-gradient(0deg, rgba(8, 26, 23, 0.85) 0%, rgba(8, 26, 23, 0) 34%); } }
.hero-art img ~ svg .cur path { stroke-opacity: 0.16; }
.hero-art img ~ svg .rock, .hero-art img ~ svg .rock-hi { display: none; }
.hero-art .cur path { fill: none; stroke: #e9e4d4; stroke-opacity: 0.26; stroke-width: 1; vector-effect: non-scaling-stroke; }
.hero-art .flow path { fill: none; stroke: var(--sand); stroke-opacity: 0.85; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1.5 140; vector-effect: non-scaling-stroke; }
.hero-art .rock { fill: #123a34; stroke: var(--sand); stroke-opacity: 0.4; vector-effect: non-scaling-stroke; }
.hero-art .rock-hi { fill: #1d4d45; }
.hero-body { max-width: 1152px; margin-inline: auto; padding: clamp(56px, 12vw, 132px) 16px clamp(40px, 7vw, 72px); display: grid; gap: 22px; }
.hero-body > * { max-width: 760px; }
.hero .eyebrow { color: var(--sand); }
.hero h1 { font-size: clamp(40px, 8.4vw, 84px); line-height: 1.02; letter-spacing: -0.015em; }
.hero h1 em { display: block; font-family: var(--font-serif); font-style: italic; font-size: 0.62em; line-height: 1.2; color: var(--sand); margin-top: 0.35em; letter-spacing: 0; }
.hero p.lead { font-size: clamp(17px, 2.1vw, 19px); max-width: 48ch; color: var(--on-deep-muted); }
.hero .btn.ghost { color: var(--on-deep); border-color: rgba(241, 239, 230, 0.45); }
.facts { max-width: 1120px; margin-inline: max(16px, calc(50% - 560px)); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgba(216, 196, 156, 0.28); }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts div { padding: 18px 16px 18px 20px; min-width: 0; border-left: 1px solid rgba(216, 196, 156, 0.18); }
.facts div:nth-child(odd) { border-left: 0; padding-left: 0; }
@media (min-width: 720px) { .facts div:nth-child(odd) { border-left: 1px solid rgba(216, 196, 156, 0.18); padding-left: 20px; } .facts div:first-child { border-left: 0; padding-left: 0; } }
.facts b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.1; }
.facts span { font-size: 13px; color: var(--on-deep-muted); }
.rstatus { max-width: 1120px; margin-inline: max(16px, calc(50% - 560px)); display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; padding: 14px 0 18px; color: var(--on-deep-muted); font-size: 14px; border-top: 1px solid rgba(216, 196, 156, 0.18); }
.rstatus .dot { width: 9px; height: 9px; border-radius: 50%; background: #9bb2aa; flex: none; }
.rstatus[data-state="safe"] .dot { background: #7fcb93; }
.rstatus[data-state="caution"] .dot { background: #e2b15c; }
.rstatus[data-state="closed"] .dot { background: #ff8f85; }
.rstatus b { color: var(--on-deep); font-weight: 600; }
.rstatus .rs-sub { font-size: 13px; }
.rstatus .rs-demo { font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sand); border: 1px solid rgba(216, 196, 156, 0.45); border-radius: 999px; padding: 1px 9px; }

/* ---- buttons ---- */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 15px; letter-spacing: 0.02em; text-decoration: none; cursor: pointer; background: var(--river); color: var(--on-river); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 24px -16px rgba(13, 48, 43, 0.7); }
.btn:active { transform: none; }
.btn.sun { background: var(--sun); color: var(--sun-fg); }
.btn.ghost { background: transparent; border-color: currentColor; }
.btn.ghost:hover { box-shadow: none; background: color-mix(in srgb, currentColor 7%, transparent); }
.btn.small { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---- sections ---- */
section { padding-block: clamp(56px, 9vw, 104px) 0; scroll-margin-top: 12px; }
main > section:first-child { padding-block-start: clamp(32px, 6vw, 64px); }
.sec-head { display: grid; gap: 12px; margin-bottom: clamp(24px, 4vw, 40px); max-width: 62ch; }
.sec-head h1 { font-size: clamp(36px, 6.4vw, 64px); line-height: 1.04; }
.sec-head h2 { font-size: clamp(30px, 5vw, 48px); }
.sec-head p { color: var(--muted); font-size: 17px; }
.sec-head .eyebrow { display: flex; align-items: center; gap: 12px; }
.sec-head .eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ---- booking flow ---- */
.book-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 920px) { .book-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 32px; } }
.steps { display: grid; gap: 20px; min-width: 0; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: clamp(20px, 3.4vw, 32px); display: grid; gap: 18px; min-width: 0; }
.step-title { display: flex; align-items: baseline; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.step-title .n { flex: none; font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--sun); font-variant-numeric: lining-nums; }
.step-title h2 { font-size: clamp(22px, 3vw, 26px); }
.hint { font-size: 14px; color: var(--muted); }

.cal { display: grid; gap: 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal-head b { font-family: var(--font-display); font-weight: 400; font-size: 22px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; display: grid; place-items: center; transition: border-color 0.2s; }
.icon-btn:hover:not(:disabled) { border-color: var(--fg); }
.icon-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.dow { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; text-align: center; color: var(--muted); padding-block: 6px; }
.day { aspect-ratio: 1 / 0.92; min-height: 44px; border-radius: 4px; border: 1px solid transparent; background: transparent; cursor: pointer; font-size: 15px; position: relative; font-variant-numeric: tabular-nums; padding: 0; transition: background-color 0.15s, border-color 0.15s; }
.day:hover:not(:disabled):not(.edge) { border-color: var(--river); }
.day.empty { cursor: default; }
.day.past, .day.full { color: var(--muted); cursor: not-allowed; opacity: 0.55; }
.day.full { text-decoration: line-through; opacity: 0.7; }
.day.peak::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--sun); }
.day.inrange { background: var(--river-soft); border-radius: 0; }
.day.edge { background: var(--river); color: var(--on-river); font-weight: 600; }
.day.edge.peak::after { background: var(--on-river); }
.day.today { border-color: var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.date-pills { display: grid; grid-template-columns: 1fr 1fr 0.7fr; border: 1px solid var(--line); border-radius: 4px; }
.pill { padding: 12px 14px; min-width: 0; border-left: 1px solid var(--line); }
.pill:first-child { border-left: 0; }
.pill small { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.pill b { font-family: var(--font-display); font-weight: 400; font-size: 18px; }

.stays { display: grid; gap: 0; border-top: 1px solid var(--line); }
.stay { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; position: relative; transition: background-color 0.2s; }
@media (min-width: 560px) { .stay { grid-template-columns: 120px minmax(0, 1fr); gap: 20px; } }
.stay.sel::before { content: ""; position: absolute; left: -14px; top: 18px; bottom: 18px; width: 2px; background: var(--sun); }
.stay.na { opacity: 0.55; }
.ph { border-radius: 2px; aspect-ratio: 1; background: linear-gradient(160deg, var(--river-soft), var(--surface-2)); display: grid; place-items: center; color: var(--river); position: relative; overflow: hidden; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ph:has(img)::after { content: none; }
.ph::after { content: "Photo"; position: absolute; bottom: 6px; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.stay .ph { aspect-ratio: 4 / 5; }
.stay h3 { font-size: 22px; margin-bottom: 4px; }
.stay .meta { font-size: 14px; color: var(--muted); }
.stay .price { display: block; margin-top: 8px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stay .price small { font-weight: 400; color: var(--muted); }
.stay-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tag.bad { color: var(--bad); }
.tag.low { color: var(--warn); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--surface); }
.stepper button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--fg); cursor: pointer; font-size: 20px; line-height: 1; transition: background-color 0.15s; }
.stepper button:hover:not(:disabled) { background: var(--river-soft); }
.stepper button:disabled { opacity: 0.4; cursor: not-allowed; }
.stepper output { min-width: 34px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

.extras { display: grid; border-top: 1px solid var(--line); }
.extra { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid var(--line); }
.extra b { display: block; font-weight: 600; }
.extra span { font-size: 14px; color: var(--muted); }
.extra > div:first-child { min-width: 0; flex: 1 1 200px; }

.fields { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .fields.two { grid-template-columns: 1fr 1fr; } }
label.f { display: grid; gap: 8px; font-weight: 500; font-size: 14px; min-width: 0; }
.f input, .f select, .f textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 4px; border: 1px solid var(--line); background: var(--bg); transition: border-color 0.15s, box-shadow 0.15s; }
.f input:hover, .f select:hover, .f textarea:hover { border-color: var(--muted); }
.f input:focus-visible, .f select:focus-visible, .f textarea:focus-visible { outline: none; border-color: var(--river); box-shadow: 0 0 0 3px color-mix(in srgb, var(--river) 22%, transparent); }
.f textarea { min-height: 96px; resize: vertical; }
.f .err { color: var(--bad); font-weight: 500; font-size: 13px; }
.f input[aria-invalid="true"] { border-color: var(--bad); }

/* summary: a folio in river green */
.summary { background: var(--river-deep); color: var(--on-deep); border-radius: 4px; padding: 28px 24px; display: grid; gap: 16px; min-width: 0; box-shadow: var(--sh2); }
@media (min-width: 920px) { .summary { position: sticky; top: 20px; } }
.summary h2 { font-size: 26px; padding-bottom: 14px; border-bottom: 1px solid rgba(216, 196, 156, 0.3); }
.sum-lines { display: grid; gap: 10px; font-size: 14px; }
.sum-lines div { display: flex; justify-content: space-between; gap: 12px; }
.sum-lines span:first-child { color: var(--on-deep-muted); min-width: 0; }
.sum-lines span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sum-empty { font-size: 14px; color: var(--on-deep-muted); font-family: var(--font-serif); font-style: italic; }
.total { border-top: 1px solid rgba(216, 196, 156, 0.3); padding-top: 14px; display: grid; gap: 6px; }
.total .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.total .big { font-family: var(--font-display); font-size: 38px; line-height: 1; font-variant-numeric: tabular-nums; }
.deposit { border: 1px solid rgba(216, 196, 156, 0.45); border-radius: 4px; padding: 14px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.deposit b { color: var(--sand); font-size: 26px; font-weight: 400; font-variant-numeric: tabular-nums; font-family: var(--font-display); }
.dtxt { display: grid; gap: 2px; text-align: right; margin-left: auto; font-size: 13px; color: var(--on-deep-muted); }
.note { font-size: 13px; color: var(--on-deep-muted); }
.warn { background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); border-radius: 4px; padding: 10px 14px; font-size: 14px; font-weight: 500; }
.warn.bad { background: color-mix(in srgb, var(--bad) 10%, transparent); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.warn[hidden] { display: none; }

.ring { width: 56px; height: 56px; flex: none; }
.ring circle { fill: none; stroke-width: 3; }
.ring .track { stroke: rgba(216, 196, 156, 0.2); }
.ring .arc { stroke: var(--sand); stroke-linecap: round; stroke-dasharray: 138.2; stroke-dashoffset: 138.2; transition: stroke-dashoffset 0.8s var(--ease); }
.ring.full .arc { stroke-dashoffset: 96.7; }
.ring text { fill: var(--sand); font: 500 12px var(--font-body); text-anchor: middle; }
.ring.lt .track { stroke: var(--line); }
.ring.lt .arc { stroke: var(--river); }
.ring.lt text { fill: var(--fg); }
.est-row { display: flex; gap: 16px; align-items: center; }
.est-row > div { min-width: 0; flex: 1; }

/* result after sending */
.result { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: clamp(22px, 4vw, 36px); display: grid; gap: 20px; margin-top: 24px; scroll-margin-top: 16px; box-shadow: var(--sh1); }
.result h2 { font-size: clamp(26px, 4vw, 34px); }
.ref { font-family: var(--font-display); font-size: 34px; letter-spacing: 0.06em; color: var(--river); overflow-wrap: anywhere; }
.demo-flag { background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); border-radius: 4px; padding: 10px 14px; font-size: 14px; font-weight: 500; }
.pay-box { background: var(--surface-2); border-radius: 4px; padding: 20px; display: grid; gap: 14px; }
.pay-box > b:first-child { font-family: var(--font-display); font-weight: 400; font-size: 21px; }
.pay-box .num { font-family: var(--font-display); font-size: 30px; letter-spacing: 0.04em; overflow-wrap: anywhere; }
.qr { width: 136px; height: 136px; border-radius: 4px; border: 1px dashed var(--muted); display: grid; place-items: center; text-align: center; font-size: 12px; color: var(--muted); padding: 10px; background: var(--surface); }
.pay-row { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.pay-row > div { min-width: 0; }
.steps-list { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.steps-list li::marker { font-family: var(--font-display); color: var(--sun); }
pre.sms { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 14px; font-size: 13px; font-family: ui-monospace, Menlo, Consolas, monospace; }

/* ---- home: four ways in, as an editorial index ---- */
.cards3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 24px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.card h2, .card h3 { font-size: 26px; }
.card p { color: var(--muted); font-size: 15px; }
.card .ico { width: 44px; height: 44px; color: var(--river); display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.cards3.tiles { gap: 0; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
@media (min-width: 760px) { .cards3.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
a.tile { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 28px 0; grid-template-columns: 52px minmax(0, 1fr); column-gap: 18px; row-gap: 6px; color: var(--fg); text-decoration: none; }
@media (min-width: 760px) { a.tile { padding: 36px 28px 36px 0; } a.tile:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); } }
a.tile .ico { grid-row: span 3; transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
a.tile h3 { font-size: clamp(26px, 3.2vw, 32px); }
a.tile p { font-size: 15px; max-width: 40ch; }
a.tile .go { color: var(--river); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; margin-top: 6px; transition: transform 0.25s var(--ease); justify-self: start; }
a.tile:hover .ico { background: var(--river); color: var(--on-river); border-color: var(--river); }
a.tile:hover .go { transform: translateX(4px); }

/* reviews: serif quotes on a slow drift */
.rev-wrap { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.rev-track { display: flex; width: max-content; }
.rev { width: 300px; margin-right: 18px; flex: none; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 24px; display: grid; gap: 14px; align-content: start; }
.rev .stars { color: var(--star); letter-spacing: 3px; font-size: 13px; }
.rev p { font-family: var(--font-serif); font-style: italic; font-size: 17px; line-height: 1.5; }
.rev .who { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.rev .av { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); color: var(--river); display: grid; place-items: center; font-family: var(--font-display); flex: none; }

/* ---- events planner ---- */
.planner { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: clamp(20px, 3.4vw, 32px); display: grid; gap: 16px; margin-bottom: 24px; }
.planner h2 { font-size: 26px; }
.occ-row { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 6px; margin-inline: -2px; scrollbar-width: none; }
.occ-row::-webkit-scrollbar { display: none; }
.occ { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-weight: 500; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.occ svg { color: var(--river); transition: color 0.2s; }
.occ:hover:not(.on) { border-color: var(--fg); }
.occ.on { background: var(--river-deep); border-color: var(--river-deep); color: var(--on-deep); }
.occ.on svg { color: var(--sand); }
.occ-tip { border-left: 2px solid var(--sun); padding: 6px 0 6px 18px; display: grid; gap: 8px; }
.occ-tip b { font-family: var(--font-display); font-weight: 400; font-size: 24px; }
.occ-tip p { font-size: 15px; color: var(--muted); }
.occ-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.occ-tags span { font-size: 12px; font-weight: 500; border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; color: var(--fg); }
.occ-tip .meta { font-size: 13px; color: var(--muted); }
.pl-count { display: flex; align-items: baseline; gap: 10px; }
.pl-count output { font-family: var(--font-display); font-size: 64px; line-height: 1; color: var(--river); font-variant-numeric: tabular-nums; }
.pl-count span { color: var(--muted); font-family: var(--font-serif); font-style: italic; font-size: 18px; }
#plRange { width: 100%; accent-color: var(--river); height: 44px; }
.pl-tiles { display: flex; flex-wrap: wrap; gap: 10px; min-height: 84px; }
.pl-tile { border: 1px solid var(--line); border-radius: 4px; padding: 12px 16px; display: grid; gap: 2px; min-width: 128px; }
.pl-tile b { font-family: var(--font-display); font-weight: 400; font-size: 28px; color: var(--river); }
.pl-tile span { font-weight: 600; font-size: 14px; }
.pl-tile small { color: var(--muted); font-size: 12px; }
.pl-note { font-size: 14px; color: var(--muted); }

/* ---- facilities ---- */
.fac { display: grid; gap: 18px; }
.fac-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fac-photo { overflow: hidden; aspect-ratio: 16/8; border-radius: 2px; background: linear-gradient(135deg, var(--river-soft), var(--surface-2)); display: grid; place-items: center; color: var(--muted); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.fac-add { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.fac-add .lbl { font-size: 14px; font-weight: 600; }
.fac-add .lbl small { display: block; font-weight: 400; color: var(--muted); }
.fac-free { font-weight: 600; color: var(--ok); font-size: 14px; }
.gal { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .gal { grid-template-columns: repeat(3, minmax(0, 1fr)); } .gal .ph:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; } }
.gal .ph { aspect-ratio: 4/3; }
.gal .ph { margin: 0; }
.gal figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #f1efe6; background: linear-gradient(0deg, rgba(8, 26, 23, 0.85), rgba(8, 26, 23, 0)); }
.wide-photo { margin: 0 0 24px; position: relative; overflow: hidden; border-radius: 2px; aspect-ratio: 16 / 9; background: var(--surface-2); }
@media (min-width: 760px) { .wide-photo { aspect-ratio: 21 / 8; } }
.wide-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wide-photo figcaption { position: absolute; left: 0; bottom: 0; right: 0; padding: 40px 18px 14px; font-family: var(--font-serif); font-style: italic; font-size: 17px; color: #f1efe6; background: linear-gradient(0deg, rgba(8, 26, 23, 0.85), rgba(8, 26, 23, 0)); }

/* ---- directions: policies, FAQ ---- */
.policy { display: grid; gap: 0; border-top: 1px solid var(--line); }
.policy div { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .policy div { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; } }
.policy b { font-family: var(--font-display); font-weight: 400; font-size: 20px; }
.policy span { color: var(--muted); font-size: 15px; }
details { border-bottom: 1px solid var(--line); padding: 0; }
#faq details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-family: var(--font-display); font-size: 20px; padding-block: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--font-body); font-size: 22px; color: var(--river); transition: transform 0.25s var(--ease); flex: none; }
details[open] > summary::after { transform: rotate(45deg); }
details p { padding-bottom: 18px; color: var(--muted); max-width: 65ch; }
.result details { background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 0 16px; }
.result summary { font-size: 17px; }

/* ---- route map ---- */
.rmap { position: relative; max-width: 760px; margin-inline: auto; margin-top: 8px; }
.rmap-now { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 10px); z-index: 5; width: fit-content; max-width: 100%; margin: 0 auto 10px; background: var(--river-deep); color: var(--on-deep); border-radius: 999px; padding: 9px 18px; font-weight: 500; font-size: 14px; display: flex; gap: 10px; align-items: center; box-shadow: var(--sh2); }
.rmap-now .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--sand); flex: none; }
.rmap-svg { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; overflow: visible; }
.rmap-svg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rmap-svg .edge { stroke: var(--bg); stroke-width: 44px; }
.rmap-svg .asphalt { stroke: var(--road); stroke-width: 36px; }
.rmap-svg .done { stroke: var(--river); stroke-width: 36px; }
.rmap-svg .dash { stroke: var(--road-dash); stroke-width: 2px; stroke-dasharray: 10 14; stroke-linecap: butt; }
.rmap-svg .pin path { fill: var(--surface); stroke: var(--muted); stroke-width: 1.5; transition: fill 0.3s, stroke 0.3s; }
.rmap-svg .pin text { fill: var(--muted); font: 600 12px var(--font-body); text-anchor: middle; transition: fill 0.3s; }
.rmap-svg .pin.on path { fill: var(--river); stroke: var(--surface); }
.rmap-svg .pin.on text { fill: var(--on-river); }
.rmap-svg .pin.end.on path { fill: var(--sun); }
.rmap-svg .pin.end.on text { fill: var(--sun-fg); }
.rmap-svg .carbody { fill: var(--sun); stroke: var(--surface); stroke-width: 3; }
.rmap-svg .cararrow { fill: var(--sun-fg); }
.rstops { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }
.stop { position: relative; height: 290px; }
.stop .anchor { position: absolute; top: 50%; width: 1px; height: 1px; }
.stop.l .anchor { left: 15%; }
.stop.r .anchor { left: 85%; }
.stop .sc { position: absolute; top: 50%; transform: translateY(-50%); width: 50%; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; min-width: 0; display: grid; gap: 4px; transition: border-color 0.3s; box-shadow: var(--sh1); }
.stop.l .sc { right: 0; }
.stop.r .sc { left: 0; }
.stop.on .sc { border-color: var(--river); }
.stop .meta { font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--river); }
.stop h2 { font-size: 19px; line-height: 1.15; }
.stop p { color: var(--muted); font-size: 13px; line-height: 1.45; }
.stop.end .sc { background: var(--river-deep); border-color: var(--river-deep); color: var(--on-deep); }
.stop.end .sc p { color: var(--on-deep-muted); }
.stop.end .meta { color: var(--sand); }
@media (min-width: 720px) {
  .rmap-svg .edge { stroke-width: 56px; }
  .rmap-svg .asphalt, .rmap-svg .done { stroke-width: 46px; }
  .rmap-svg .dash { stroke-width: 3px; stroke-dasharray: 14 16; }
  .stop { height: 270px; }
  .stop .sc { width: 44%; padding: 18px 20px; }
  .stop h2 { font-size: 23px; }
  .stop p { font-size: 14px; }
}

.pagelinks { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* ---- footer ---- */
footer { margin-top: clamp(72px, 10vw, 120px); padding-block: 36px 28px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
footer b { font-family: var(--font-display); font-weight: 400; font-size: 26px; color: var(--fg); margin-bottom: 6px; }

/* ---- bottom bar and toast ---- */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--surface) 90%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1); border-top: 1px solid var(--line); }
.bar-in { max-width: 1120px; margin-inline: auto; display: flex; align-items: center; gap: 10px; }
.bar-txt { flex: 1; min-width: 0; line-height: 1.2; }
.bar-txt small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-txt b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-display); font-weight: 400; font-size: clamp(18px, 4.6vw, 22px); font-variant-numeric: tabular-nums; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 92px; background: var(--fg); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-weight: 500; font-size: 14px; z-index: 30; max-width: calc(100% - 32px); box-shadow: var(--sh2); }
.toast[hidden] { display: none; }

/* ---- motion: only for people who have not asked for less ---- */
@media (prefers-reduced-motion: no-preference) {
  .hero-art .flow path { animation: flow 14s linear infinite; }
  .hero-body > * { animation: rise 0.9s var(--ease) both; }
  .hero-body > :nth-child(2) { animation-delay: 0.08s; }
  .hero-body > :nth-child(3) { animation-delay: 0.18s; }
  .hero-body > :nth-child(4) { animation-delay: 0.28s; }
  .rstatus[data-state="safe"] .dot { animation: pulse 2.4s ease-out infinite; }
  .rev-track { animation: marq 60s linear infinite; }
  .rev-wrap:hover .rev-track, .rev-wrap:focus-within .rev-track, .rev-wrap.paused .rev-track { animation-play-state: paused; }
  .pl-tile { animation: pop 0.45s var(--ease) both; }
  .ring.anim .arc { animation: ringfill 0.9s var(--ease) both; }
  .occ-tip.swap { animation: pop 0.35s var(--ease) both; }
}
@keyframes flow { to { stroke-dashoffset: -1414; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(127, 203, 147, 0.55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(127, 203, 147, 0); } }
@keyframes marq { to { transform: translateX(-50%); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ringfill { from { stroke-dashoffset: 138.2; } to { stroke-dashoffset: 96.7; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .btn:hover, a.tile:hover .go { transform: none; }
  .rev-wrap { overflow-x: auto; }
  .rev-set2 { display: none; }
}
@media (max-width: 420px) { .bar .chat { width: 44px; padding: 0; } .bar .chat .lbl { display: none; } }
