:root {
  --sand: #f4ebda;
  --ivory: #fffbf2;
  --line: #d9cbb0;
  --ink: #1e2b2f;
  --muted: #566567;
  --teal: #0e6b66;
  --teal-soft: #d6e9e4;
  --coral: #b4442d;
  --coral-soft: #f7ded3;
  --space: clamp(16px, 4vw, 24px);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 64px; scroll-behavior: smooth; }
body { margin: 0; padding-bottom: 170px; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }

/* ---- header ---- */
.top { background: var(--teal); color: #fff; }
.top-inner { max-width: 960px; margin: 0 auto; display: grid; }
.top-photo { width: 100%; height: 150px; object-fit: cover; object-position: 50% 62%; order: -1; }
.top-text { padding: var(--space); }
.when { margin: 0 0 4px; font-size: 1rem; opacity: .92; }
h1 { font-size: clamp(2rem, 8vw, 3.2rem); font-weight: 800; }
.flight { margin: 12px 0 0; font-size: 1rem; }

/* ---- tabs ---- */
/* Labels may wrap to two lines instead of being cut off on narrow phones or with large system text. */
.tabs { position: sticky; top: 0; z-index: 10; display: flex; background: var(--ivory); border-bottom: 2px solid var(--teal); }
.tabs a { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px 3px; min-height: 52px; font-weight: 700; font-size: clamp(.8rem, 3.9vw, 1rem); line-height: 1.15; color: var(--ink); text-decoration: none; border-bottom: 5px solid transparent; margin-bottom: -2px; }
.tabs a[aria-current="page"] { color: var(--teal); border-bottom-color: var(--coral); background: var(--teal-soft); }

/* ---- layout ---- */
main { max-width: 960px; margin: 0 auto; padding: 0 var(--space); }
.panel { padding: var(--space) 0; }
.panel h2 { font-size: 1.7rem; font-weight: 800; margin: 12px 0 8px; }
.panel h2:not(:first-child) { margin-top: 48px; }
.lead { margin: 0 0 20px; max-width: 62ch; color: var(--muted); }
.card, .callout, .poll, .hotel, .scenario { background: var(--ivory); border: 1px solid var(--line); border-radius: 4px; padding: var(--space); }
.plain { margin: 8px 0; padding-left: 1.2em; }
.plain li { margin-bottom: 6px; }
.note { color: var(--muted); max-width: 62ch; }

/* ---- timeline ---- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: 0 14px; position: relative; padding-bottom: 28px; }
.timeline li::before { content: ""; position: absolute; left: calc(5.2rem + 6px); top: 10px; bottom: -4px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: calc(5.2rem + 1px); top: 9px; width: 12px; height: 12px; background: var(--sand); border: 3px solid var(--teal); }
.timeline li.key::after { background: var(--coral); border-color: var(--coral); }
.timeline time, .timeline .slot { font-size: 1.55rem; font-weight: 800; line-height: 1.15; color: var(--teal); font-variant-numeric: tabular-nums; text-align: right; }
.timeline .slot { font-size: 1.3rem; }
.timeline time span, .timeline .slot span { display: block; font-size: .95rem; font-weight: 600; color: var(--muted); }
.timeline .body { padding-left: 22px; }
.timeline h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.timeline p { margin: 6px 0; }
.tip { color: var(--muted); font-size: 1rem; }
.rain { background: var(--coral-soft); border-left: 4px solid var(--coral); padding: 8px 12px; font-size: 1rem; margin-top: 10px !important; }
.rain.strong { border: 2px solid var(--coral); border-left-width: 8px; padding: 12px 14px; font-size: 1.05rem; }
.rain.strong b { display: block; color: var(--coral); font-size: 1.1rem; margin-bottom: 2px; }
.check { display: inline-block; font-size: .95rem; font-weight: 700; color: var(--coral); border: 1px dashed var(--coral); padding: 2px 8px; border-radius: 4px; }
.timeline img.inline { width: 100%; max-width: 600px; aspect-ratio: 3 / 2; object-fit: cover; margin: 8px 0; border-radius: 2px; }

/* ---- day jump ---- */
.daynav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 4px 0 8px; }
.daynav a { display: grid; justify-items: center; padding: 8px 2px; background: var(--ivory); border: 1px solid var(--line); border-radius: 4px; text-decoration: none; color: var(--muted); font-size: .85rem; line-height: 1.25; text-align: center; }
.daynav b { color: var(--teal); font-size: 1rem; font-variant-numeric: tabular-nums; }
.daynav span { font-size: .78rem; color: var(--ink); }
.daynav + h2 { margin-top: 24px !important; }

/* ---- heritage train ---- */
.train { margin: 10px 0; padding: 14px; background: var(--ivory); border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 4px; }
.seatmap { display: grid; grid-template-columns: 1fr 44px 1.5fr; border: 2px solid var(--teal); border-radius: 4px; overflow: hidden; margin-bottom: 14px; }
.seatmap .side { padding: 10px; font-weight: 700; font-size: 1rem; line-height: 1.3; color: var(--muted); }
.seatmap .side span { display: block; font-weight: 400; font-size: .9rem; margin-top: 2px; }
.seatmap .sea { background: var(--teal); color: #fff; }
.seatmap .dir { display: grid; place-content: center; text-align: center; font-size: .75rem; font-weight: 700; color: var(--teal); background: var(--teal-soft); border-inline: 2px dashed var(--teal); }
.seatmap .dir span { font-size: 1.4rem; line-height: 1; }
.facts { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.facts dt { font-weight: 800; font-size: .95rem; color: var(--teal); }
.facts dd { margin: 0; font-size: 1rem; overflow-wrap: break-word; }
.facts .warn { display: block; margin-top: 4px; font-weight: 700; color: var(--coral); }
.train img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin: 14px 0 8px; border-radius: 2px; }
.train .tip { margin: 0; }
/* On phones the timeline's text column is ~200px; let the train block use the full width, over the timeline line. */
@media (max-width: 759px) { .train { position: relative; margin-left: calc(-5.2rem - 36px); } }
.callout.wet { margin: 8px 0 0; border: 2px solid var(--coral); border-left-width: 8px; background: var(--coral-soft); }


/* ---- polls ---- */
.poll { margin-top: 28px; border-top: 4px solid var(--teal); }
.poll h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 4px; }
.poll .sub { margin: 0 0 14px; color: var(--muted); font-size: 1rem; }
.poll label { display: block; font-weight: 700; margin-bottom: 4px; }
.poll input { width: 100%; font: inherit; padding: 10px 12px; min-height: 48px; border: 2px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); }
.poll .opts { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.opt { position: relative; width: 100%; text-align: left; font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 4px; padding: 12px 14px; min-height: 64px; cursor: pointer; overflow: hidden; }
.opt .bar { position: absolute; inset: 0 auto 0 0; background: var(--teal-soft); width: 0; transition: width .5s ease; }
.opt > span { position: relative; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.opt .name { font-weight: 700; }
.opt .pct { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.opt .who { position: relative; display: block; font-size: .95rem; color: var(--muted); margin-top: 2px; }
.opt[aria-pressed="true"] { border-color: var(--teal); border-width: 3px; padding: 11px 13px; }
.opt[aria-pressed="true"] .bar { background: #b9dad2; }
.opt .mine { position: relative; display: inline-block; margin-top: 4px; font-size: .95rem; font-weight: 700; color: var(--teal); }
.msg { min-height: 1.6em; margin: 12px 0 0; font-weight: 600; }
.msg.err { color: var(--coral); }
.msg.ok { color: var(--teal); }

/* ---- hotels ---- */
.hotels { display: grid; gap: 16px; margin: 24px 0 12px; }
.hotel h3 { font-size: 1.35rem; font-weight: 800; }
.hotel .price { font-size: 1.6rem; font-weight: 800; color: var(--teal); margin: 6px 0 0; }
.hotel .price small { display: block; font-size: .95rem; font-weight: 600; color: var(--muted); }
.hotel dl { margin: 14px 0; display: grid; gap: 8px; }
.hotel dt { font-weight: 700; font-size: 1rem; }
.hotel dd { margin: 0; }
.hotel .tradeoff { background: var(--coral-soft); border-left: 4px solid var(--coral); padding: 8px 12px; font-size: 1rem; }
.hotel .tradeoff b { display: block; }
.callout { border-left: 6px solid var(--coral); }
.callout h3 { font-size: 1.25rem; margin-bottom: 8px; }
.callout p { margin: 6px 0; }

/* ---- gallery ---- */
.gallery { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 16px; }
.gallery figure { margin: 0; background: var(--ivory); border: 1px solid var(--line); border-radius: 4px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px 3px 0 0; background: var(--teal-soft); }
.gallery figcaption { padding: 10px 14px 14px; font-size: 1rem; }

/* ---- costs ---- */
.scenario { margin-bottom: 24px; }
.scenario h3 { font-size: 1.35rem; font-weight: 800; }
.scenario .sub { color: var(--muted); margin: 4px 0 14px; font-size: 1rem; }
.rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.row { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.row .what { font-weight: 700; }
.row .amt { font-weight: 800; color: var(--teal); font-variant-numeric: tabular-nums; }
.row .amt.none { color: var(--coral); }
.row .calc { color: var(--muted); font-size: 1rem; }
.row ul.calc { margin: 2px 0; padding-left: 1.2em; }
.row .confirm { font-size: 1rem; }
.row .confirm b { color: var(--coral); }
.total { margin-top: 16px; background: var(--teal); color: #fff; padding: 14px 16px; border-radius: 4px; }
.total .big { font-size: 1.5rem; font-weight: 800; display: block; font-variant-numeric: tabular-nums; }
.total small { display: block; font-size: 1rem; opacity: .95; margin-top: 4px; }
.optional { margin-top: 16px; padding: 12px 16px; border: 2px dashed var(--teal); border-radius: 4px; }
.optional .amt { color: var(--teal); font-weight: 800; }

/* ---- footer ---- */
footer { max-width: 960px; margin: 24px auto 0; padding: 20px var(--space); border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
footer p { margin: 4px 0; }
.credit { font-size: .85rem; }
.credit a { color: var(--muted); }

/* ---- desktop ---- */
@media (min-width: 760px) {
  .top-inner { grid-template-columns: 1fr 220px; align-items: stretch; }
  .top-photo { order: 0; height: 100%; min-height: 220px; }
  .top-text { align-self: end; padding: 32px var(--space); }
  .tabs { justify-content: center; }
  .tabs a { flex: 0 1 160px; }
  .hotels { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .opt .bar { transition: none; }
}

/* ---- weather ---- */
.callout.honest { border-left-color: var(--teal); background: var(--teal-soft); font-size: 1.1rem; }
.compare p { margin: 0 0 10px; }
.compare p:last-child { margin: 0; }
.wx-days { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.wx-day { background: var(--ivory); border: 1px solid var(--line); border-radius: 4px; padding: 12px; }
.wx-day.here { border: 2px solid var(--teal); }
.wx-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; }
.wx-date { font-size: 1rem; color: var(--muted); }
.wx-date b { font-size: 1.25rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.wx-temp { font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.here-tag { display: inline-block; margin-top: 4px; font-size: .85rem; font-weight: 700; color: var(--teal); background: var(--teal-soft); padding: 1px 8px; border-radius: 4px; }
.wx-bar { height: 8px; margin: 10px 0 8px; background: var(--sand); border-radius: 4px; overflow: hidden; }
.wx-bar i { display: block; height: 100%; background: var(--teal); }
.wx-stats { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.wx-stats dt { font-size: .82rem; line-height: 1.25; color: var(--muted); }
.wx-stats dd { margin: 2px 0 0; font-size: 1.05rem; white-space: nowrap; font-weight: 800; font-variant-numeric: tabular-nums; }
.wx-stats dd small { font-size: .78rem; font-weight: 700; }
.wx-stats .extreme dd { color: var(--coral); }
.city { font-size: 1.15rem; margin: 4px 0 2px; }
.city:not(:first-child) { margin-top: 16px; }
@media (min-width: 760px) { .wx-days { grid-template-columns: repeat(5, minmax(0, 1fr)); } .wx-stats { grid-template-columns: 1fr; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
