/* Editorial, photo-first layout. One accent color (indigo), one seasonal color (vermilion). */
:root {
  --paper: #f8f6f1;
  --ink: #1c1c1a;
  --ink-2: #4a4a46;
  --muted: #85837c;
  --rule: #dedad0;
  --indigo: #24395a;
  --vermilion: #b4442e;
  --tile: #e9e3d6;
  --sea: #dfe8ee; --land: #fbfaf6; --border: #c9c4b6; --day: #2f7d4a; --night: #cf8a1c; --far: #9b988f; --hubc: #1c1c1a;
  --fill-day: #cfe8c9; --fill-night: #f8e2a8; --fill-far: #e4e0d8; --land-edge: #ffffff; --wave: #c4d8e4;
  --r1: #dfe9d3; --r2: #e8e3cc; --r3: #f2dccf; --r4: #dbe5d9; --r5: #efd9dc; --r6: #e1dceb; --r7: #d6e6e4; --r8: #ece0cc;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", "Noto Sans JP", "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #151513;
    --ink: #ecebe6;
    --ink-2: #c4c2bb;
    --muted: #8f8d86;
    --rule: #33322e;
    --indigo: #9fb6dc;
    --vermilion: #e58a72;
    --tile: #23221f;
  --sea: #1b2329; --land: #2a2a26; --border: #4a4943; --day: #5fbf7d; --night: #e6a54a; --far: #6f6d66; --hubc: #ecebe6;
  --fill-day: #36513a; --fill-night: #5b4a25; --fill-far: #34332f; --land-edge: #1b1b19; --wave: #2a3640;
  --r1: #34402f; --r2: #403c2c; --r3: #463630; --r4: #2f3b30; --r5: #45343a; --r6: #3a3546; --r7: #2e403d; --r8: #43392b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #151513;
  --ink: #ecebe6;
  --ink-2: #c4c2bb;
  --muted: #8f8d86;
  --rule: #33322e;
  --indigo: #9fb6dc;
  --vermilion: #e58a72;
  --tile: #23221f;
  --sea: #1b2329; --land: #2a2a26; --border: #4a4943; --day: #5fbf7d; --night: #e6a54a; --far: #6f6d66; --hubc: #ecebe6;
  --fill-day: #36513a; --fill-night: #5b4a25; --fill-far: #34332f; --land-edge: #1b1b19; --wave: #2a3640;
  --r1: #34402f; --r2: #403c2c; --r3: #463630; --r4: #2f3b30; --r5: #45343a; --r6: #3a3546; --r7: #2e403d; --r8: #43392b;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
}
html:lang(ja) body { line-height: 1.75; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.loading { color: var(--muted); padding-top: 40px; padding-bottom: 40px; }

/* Top bar */
.topbar { border-bottom: 1px solid var(--rule); background: var(--paper); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; text-decoration: none; letter-spacing: .02em; }
.brand span { font-size: .95rem; color: var(--muted); margin-left: 4px; font-weight: 500; }
.lang { display: flex; gap: 14px; font-size: .85rem; }
.lang select { font: inherit; color: var(--ink); background: transparent; border: 1px solid var(--rule); border-radius: 6px; padding: 4px 6px; }
.mt-note { font-size: .8rem; color: var(--muted); }
.static-lang { flex-wrap: wrap; gap: 4px 12px; justify-content: flex-end; }
.static-lang a { color: var(--muted); }
.static-lang a[aria-current] { color: var(--ink); font-weight: 600; }

/* Hero */
.hero { position: relative; height: min(62vh, 520px); min-height: 340px; overflow: hidden; background: #2b3a33; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.62) 0%, rgba(0,0,0,.12) 55%, rgba(0,0,0,0) 100%); }
.hero-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; color: #fff; padding-bottom: 28px; }
.hero-kicker { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; opacity: .9; margin: 0 0 6px; }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(2.2rem, 8vw, 3.6rem); line-height: 1.1; margin: 0; }
.hero p.lede { margin: 10px 0 0; max-width: 34em; font-size: 1rem; opacity: .95; }
.hero-credit { position: absolute; right: 8px; top: 8px; z-index: 1; font-size: .65rem; color: rgba(255,255,255,.75); }
.hero-credit a { color: inherit; }

/* Season picker: a calendar strip that stays on top */
.picker { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); border-bottom: 1px solid var(--rule); }
.picker-inner { display: flex; align-items: center; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.picker-label { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.months { display: flex; overflow-x: auto; scrollbar-width: none; gap: 2px; flex: 1; }
.months::-webkit-scrollbar { display: none; }
.month {
  flex: 0 0 auto; min-width: 44px; min-height: 44px; padding: 8px 8px 7px; text-align: center;
  font-size: .9rem; color: var(--ink-2); border-bottom: 2px solid transparent;
}
.month[aria-pressed="true"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--vermilion); }
.month.any { padding-right: 14px; margin-right: 6px; border-right: 1px solid var(--rule); }
@media (max-width: 560px) { .picker-label { display: none; } }

/* Area tabs */
.tabs { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--rule); margin-top: 24px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 0 0 auto; min-height: 44px; padding: 10px 0 12px; font-size: .95rem; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }

.wrap.wide { max-width: 1240px; }
.count-line { margin-top: 8px; margin-bottom: 0; font-size: .85rem; color: var(--muted); }
/* Filters: one folded box (summary = button + the count), three groups inside */
.filters { margin-top: 10px; border-bottom: 1px solid var(--rule); }
.filters summary { list-style: none; cursor: pointer; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; min-height: 44px; padding: 2px 0; }
.filters summary::-webkit-details-marker { display: none; }
.f-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink-2); border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--ink); background: var(--paper); }
.f-btn::after { content: ""; width: 6px; height: 6px; border: solid var(--ink-2); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); }
.filters[open] .f-btn::after { transform: rotate(-135deg) translate(-1px, -1px); }
.f-count { font-size: .88rem; color: var(--ink-2); }
.f-body { padding: 4px 0 14px; }
.f-sec { padding: 10px 0 4px; }
.f-sec + .f-sec { border-top: 1px solid var(--rule); }
.f-sec h3 { margin: 0 0 4px; font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.f-sec .tabs { margin-top: 0; }
.f-row .pref-select { min-height: 44px; }
.f-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.seg-btn { min-height: 44px; padding: 8px 16px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); color: var(--ink-2); font-size: .9rem; line-height: 1.25; text-align: left; }
.seg-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 600; }
.pref-select {
  font: inherit; font-size: .9rem; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--ink-2); border-radius: 0; padding: 4px 22px 4px 0;
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: right 6px top 55%, right 1px top 55%; background-size: 5px 5px; background-repeat: no-repeat;
}
.pref-select option { color: #1c1c1a; }
.list-head { margin: 16px 0 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; }
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink-2); }
.list-head h1, .list-head h2 { font-family: var(--serif); font-weight: 700; font-size: 1.45rem; margin: 0; line-height: 1.3; }
.list-head .sub { color: var(--muted); font-size: .9rem; margin: 2px 0 0; }
.toggle { font-size: .88rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: 10px; padding: 4px 0; min-height: 44px; text-align: left; }
.toggle .box { width: 20px; height: 20px; flex: none; border: 1.5px solid var(--ink-2); border-radius: 3px; display: inline-grid; place-items: center; }
.toggle[aria-pressed="true"] .box { background: var(--ink); border-color: var(--ink); }
.toggle[aria-pressed="true"] .box::after { content: ""; width: 8px; height: 4px; border: 2px solid var(--paper); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }

/* Grid of spots */
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 36px 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (min-width: 1200px) { .grid-list { grid-template-columns: repeat(4, 1fr); } }
.spot { display: block; text-decoration: none; color: inherit; }
.spot:hover h3 { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.photo { aspect-ratio: 3 / 2; border-radius: 4px; overflow: hidden; background: var(--tile); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.spot:hover .photo img { transform: scale(1.03); }
/* No photo: a picture of the kind of place on a soft background */
.photo.no-photo { display: grid; place-items: center; }
.photo.no-photo svg { width: 34%; height: auto; opacity: .85; }
.np-nature { background: var(--fill-day); } .np-town { background: var(--r3); } .np-culture { background: var(--r6); }
.spot-area { margin: 14px 0 2px; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
html:lang(ja) .spot-area { letter-spacing: .04em; }
.spot h3 { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; line-height: 1.35; margin: 0; }
.spot .alt { font-size: .82rem; color: var(--muted); margin-top: 1px; }
.spot p { margin: 8px 0 0; color: var(--ink-2); font-size: .95rem; }
.facts-line { margin-top: 10px; font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 0; }
.facts-line span + span::before { content: "·"; margin: 0 8px; color: var(--muted); }
.facts-line .season { color: var(--vermilion); font-weight: 600; }
.facts-line .warn { color: var(--ink); }

.notice.ny { margin: -4px 0 28px; border-left-color: var(--ink); }
.closed-list { margin: 40px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); font-size: .88rem; color: var(--muted); }
.empty { color: var(--muted); padding: 32px 0; }
.closed-more { margin: 14px 0 0; font-size: .9rem; }
.closed-more a { color: var(--indigo); font-weight: 600; text-decoration: none; }
.closed-more a:hover { text-decoration: underline; }
.ad-cell { list-style: none; }
.ad-slot { min-height: 120px; border: 1px dashed var(--rule); display: grid; place-items: center; margin-top: 24px; }
.ad-slot span { font-size: .7rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

/* Detail */
.detail { padding-bottom: 20px; }
.crumbs { font-size: .82rem; color: var(--muted); margin: 18px 0 10px; }
.crumbs a { color: var(--muted); }
.detail h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.9rem, 6vw, 2.6rem); line-height: 1.2; margin: 0; }
.detail .alt { color: var(--muted); margin-top: 4px; }
.detail-photo { margin: 22px -20px 0; }
.detail-photo .photo { aspect-ratio: 16 / 10; border-radius: 0; }
.detail-photo figcaption { font-size: .7rem; color: var(--muted); padding: 6px 20px 0; }
.detail-photo figcaption a { color: inherit; }
@media (min-width: 720px) {
  .detail-photo { margin-left: 0; margin-right: 0; }
  .detail-photo .photo { border-radius: 4px; aspect-ratio: auto; height: min(62vh, 560px); }
  .detail-photo figcaption { padding-left: 0; }
}
.detail-body { display: grid; gap: 0 56px; margin-top: 28px; }
@media (min-width: 880px) { .detail-body { grid-template-columns: 1.4fr 1fr; } }
.lead { font-size: 1.12rem; line-height: 1.75; margin: 0 0 20px; }
.notice { border-left: 3px solid var(--vermilion); padding: 2px 0 2px 14px; margin: 0 0 18px; }
.notice.closed { border-left-color: var(--ink); }
.notice b { display: block; font-size: .85rem; }
.notice span { color: var(--ink-2); font-size: .95rem; }
.designation { font-size: .88rem; color: var(--muted); margin: 0 0 24px; }

.h-small { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 8px 0 12px; }
html:lang(ja) .h-small { letter-spacing: .05em; }
.calendar { display: grid; grid-template-columns: repeat(12, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.calendar div { text-align: center; padding: 8px 0 7px; font-size: .75rem; color: var(--muted); border-right: 1px solid var(--rule); position: relative; }
.calendar div:last-child { border-right: 0; }
.calendar .best { color: var(--vermilion); font-weight: 700; background: color-mix(in srgb, var(--vermilion) 10%, transparent); }
.calendar .limited { color: var(--ink); }
.calendar .limited::after { content: ""; position: absolute; left: 25%; right: 25%; bottom: 3px; border-bottom: 1.5px dotted var(--ink-2); }
.calendar .closed { text-decoration: line-through; opacity: .55; }
.calendar .usual { background: color-mix(in srgb, var(--day) 7%, transparent); }
.calendar .sel { box-shadow: inset 0 -2px 0 var(--ink); color: var(--ink); }
.cal-note { font-size: .8rem; color: var(--muted); margin: 8px 0 28px; }

.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.facts div:first-child { border-top: 1px solid var(--rule); }
.facts dt { color: var(--muted); font-size: .88rem; }
.facts dd { margin: 0; }
.facts .bk-bad { border-left: 3px solid var(--vermilion); padding-left: 10px; }
.facts .bk-warn { border-left: 3px solid var(--night); padding-left: 10px; }
.facts .g-src { font-size: .8rem; white-space: nowrap; }
.actions { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.btn { display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none; padding: 12px 20px; border-radius: 2px; font-weight: 600; font-size: .95rem; }
.link-arrow { color: var(--indigo); font-weight: 600; text-decoration: none; font-size: .95rem; }
.link-arrow:hover { text-decoration: underline; }
.checked { font-size: .75rem; color: var(--muted); margin-top: 20px; }
/* Age of the "checked" date (app only; the words say the same, so colour is never the only signal). */
.checked.fresh, .checked.aging, .checked.stale, .checked.none { padding-left: 10px; border-left: 3px solid var(--far); }
.checked.fresh { border-left-color: var(--day); }
.checked.aging { border-left-color: var(--night); }
.checked.stale { border-left-color: var(--vermilion); }
.checked.none { border-left-color: var(--far); }
.checked .report-old { margin-left: .5em; color: var(--indigo); white-space: nowrap; }
/* "Open by month": twelve short lines, one per month (closed / partly closed / at its best). Colours reuse the At a glance ones. */
.open-months { margin: 0 0 22px; }
.open-months p { margin: 0; padding: 3px 0 3px 10px; font-size: .85rem; color: var(--ink-2); border-left: 3px solid var(--rule); scroll-margin-top: 16px; }
.open-months p.best { border-left-color: var(--day); }
.open-months p.limited { border-left-color: var(--night); }
.open-months p.closed { border-left-color: var(--vermilion); color: var(--ink); }
.open-months p.sel { color: var(--ink); font-weight: 600; }
.open-months details { margin: 4px 0; }
.open-months summary { cursor: pointer; font-size: .8rem; color: var(--muted); padding: 6px 0; min-height: 32px; }
.open-months details[open] > summary { margin-bottom: 2px; }
.open-months p:target { background: color-mix(in srgb, var(--night) 14%, transparent); }
.open-months p.checked { border-left-color: transparent; margin-top: 6px; font-size: .75rem; color: var(--muted); font-weight: 400; }
.alts { font-size: .92rem; margin: 0 0 12px; }
.alts b { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.alts a { color: var(--indigo); }
.book-official { margin-top: 18px; }
.book-official + .affiliate { margin-top: 10px; }
.affiliate { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.pr { font-size: .68rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); border: 1px solid var(--muted); padding: 0 4px; border-radius: 2px; }
.pr-note { flex-basis: 100%; margin: 0; font-size: .75rem; color: var(--muted); }
.pr-note a { color: inherit; }

/* Text pages: credits, closed list, about, privacy, terms */
.page { max-width: 760px; }
.page h1 { font-family: var(--serif); font-size: 1.8rem; line-height: 1.3; margin: 8px 0 12px; }
.page h2 { font-size: 1rem; margin: 26px 0 4px; }
.page p { margin: 6px 0; color: var(--ink-2); }
.page .intro { color: var(--muted); font-size: .9rem; }
.page ul { padding-left: 1.2em; }
.page li { margin: 6px 0; font-size: .92rem; }
.page a { color: var(--indigo); }
.page .h-region { font-family: var(--serif); font-size: 1.2rem; margin-top: 32px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
.region-fold > summary { cursor: pointer; list-style: none; }
.region-fold > summary::-webkit-details-marker { display: none; }
.region-fold > summary .h-region::before { content: "▸ "; color: var(--muted); }
.region-fold[open] > summary .h-region::before { content: "▾ "; }
.region-fold .count { color: var(--muted); font-family: var(--sans, inherit); font-size: .85rem; font-weight: 400; }
p.more { text-align: center; margin: 8px 0 24px; }
.more-btn { font: inherit; padding: 10px 22px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper, transparent); color: var(--ink); cursor: pointer; }
.more-btn:hover { border-color: var(--ink-2); }
.closed-items { list-style: none; padding: 0 !important; }
.closed-items li { padding: 10px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.closed-items li > a { font-weight: 600; text-decoration: none; color: var(--ink); font-size: 1rem; }
.closed-items .where { color: var(--muted); font-size: .8rem; margin-left: 8px; }
.closed-items .why { color: var(--ink-2); font-size: .88rem; }

/* Footer */
.footer { border-top: 1px solid var(--rule); margin-top: 64px; padding: 24px 0 40px; font-size: .8rem; color: var(--muted); }
.footer p { margin: 4px 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 10px 0; }
.footer-links a { color: var(--ink-2); }
.view-switch .link-btn { font-size: .9rem; color: var(--ink-2); }

/* Nearby places and "My day" */
.nearby { list-style: none; padding: 0; margin: 0 0 6px; }
.nearby li { padding: 9px 0; border-bottom: 1px solid var(--rule); }
.nearby li > a { font-weight: 600; text-decoration: none; }
.nearby .where, .day-list .where { color: var(--muted); font-size: .8rem; margin-left: 8px; }
.nearby .why { color: var(--ink-2); font-size: .85rem; }
.nearby .why a, .page .stop a { color: var(--indigo); }
.day-btn { margin-top: 18px; font-size: .9rem; font-weight: 600; color: var(--ink); border: 1px solid var(--ink); padding: 10px 16px; border-radius: 2px; }
.day-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.day-btn:focus-visible, .stop-btns button:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
.day-link { color: var(--muted); text-decoration: none; padding: 4px 0; margin-right: 6px; }
.day-total { display: flex; flex-direction: column; gap: 2px; border-left: 3px solid var(--vermilion); padding: 4px 0 4px 14px; margin: 18px 0; }
.day-total.over { border-left-color: var(--ink); }
.day-total b { font-family: var(--serif); font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.day-total span { color: var(--ink-2); font-size: .9rem; }
.day-list { list-style: none; padding: 0 !important; margin: 0 0 18px; }
.day-list .stop { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); margin: 0 !important; }
.day-list > li:first-child { border-top: 1px solid var(--rule); }
.day-list .stop > div:first-child { min-width: 0; }
.day-list .stop a { font-weight: 600; text-decoration: none; }
.day-list .leg { color: var(--muted); font-size: .82rem; padding: 6px 0 6px 6px; margin: 0 !important; font-variant-numeric: tabular-nums; }
.stop-btns { display: flex; gap: 4px; flex: 0 0 auto; }
.stop-btns button { width: 32px; height: 32px; border: 1px solid var(--rule); border-radius: 2px; color: var(--ink-2); }
.stop-btns button:disabled { opacity: .35; cursor: default; }

/* My trip */
.trip-add { margin: 0 0 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.trip-add label { font-size: .88rem; color: var(--ink-2); }
.trip-add .day-btn { margin-top: 0; }
.trip-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 14px 0 6px; }
.trip-head label { font-size: .88rem; color: var(--ink-2); }
.trip-head input { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); padding: 6px 8px; border-radius: 2px; }
.trip-head .sub { flex-basis: 100%; margin: 0; color: var(--muted); font-size: .9rem; }
.trip-day { border-top: 2px solid var(--ink); margin-top: 26px; padding-top: 4px; }
.trip-day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.trip-day-head h2 { font-family: var(--serif); font-size: 1.25rem; margin: 6px 0 0 !important; }
.link-btn { font-size: .8rem; color: var(--muted); text-decoration: underline; }
.day-notes { list-style: none; padding: 0 !important; margin: 0 0 10px; font-size: .85rem; }
.day-notes li { margin: 2px 0 !important; }
.day-notes .warn { color: var(--ink); }
.day-notes .warn::before { content: "! "; font-weight: 700; }
.day-notes .season { color: var(--vermilion); }
.stop-btns select { width: auto; height: 32px; font: inherit; font-size: .78rem; color: var(--ink-2); background: var(--paper); border: 1px solid var(--rule); border-radius: 2px; }
.trip-keep { border-top: 1px solid var(--rule); margin-top: 34px; padding-top: 8px; }
.trip-keep p { font-size: .9rem; }
.trip-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.trip-actions .day-btn { margin-top: 6px; }
.day-btn:disabled { opacity: .4; cursor: default; }
.copy-out input { width: 100%; font: inherit; font-size: .8rem; padding: 6px; margin-top: 4px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); }

/* Extra photos under the main photo */
.thumbs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding: 8px 20px 2px; scroll-snap-type: x mandatory; }
@media (min-width: 720px) { .thumbs { padding-left: 0; padding-right: 0; } }
.thumbs button { flex: 0 0 auto; width: 88px; height: 60px; border-radius: 3px; overflow: hidden; opacity: .65; scroll-snap-align: start; border: 2px solid transparent; }
.thumbs button[aria-pressed="true"] { opacity: 1; border-color: var(--ink); }
.thumbs button:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.notice.backup { border-left-color: var(--vermilion); margin-top: 14px; }
.notice.backup .trip-actions { margin-top: 6px; }
a.day-btn, .page a.day-btn { display: inline-block; text-decoration: none; color: var(--ink); }
a.day-btn.is-off { opacity: .4; pointer-events: none; }
.home-tip { margin-top: 14px; }
.restore { margin-top: 18px; font-size: .9rem; }
.restore summary { cursor: pointer; color: var(--indigo); font-weight: 600; }
.restore input { flex: 1 1 220px; min-width: 0; font: inherit; font-size: .85rem; padding: 8px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); border-radius: 2px; }
.restore .day-btn { margin-top: 0; }

/* Trip code */
.trip-code { border-top: 1px solid var(--rule); margin-top: 34px; padding-top: 8px; }
.trip-code .code-label { margin: 6px 0 0; font-size: .85rem; color: var(--ink-2); }
.trip-code .code-value { margin: 2px 0 4px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.trip-code .code-value b { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 1.45rem; letter-spacing: .06em; color: var(--ink); user-select: all; }
.trip-code input { flex: 1 1 200px; min-width: 0; font: inherit; font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .05em; padding: 8px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); border-radius: 2px; text-transform: uppercase; }
.code-manage { font-size: .8rem; color: var(--muted); }

/* Before you go, stay near, partner slots */
.prep { border-top: 1px solid var(--rule); padding-top: 4px; margin-top: 18px; }
.prep h2 { font-family: var(--serif); font-size: 1.15rem !important; }
.prep .affiliate { margin-top: 8px; }
.prep-links { font-size: .88rem; }
.stay-box { margin-top: 12px; }
.stay-box .h-small { margin: 0 0 4px; }
.stay-near { margin: 0; font-size: .9rem; }
.stay-dates { margin: 0 0 6px; font-size: .85rem; color: var(--ink-2); }
.stay-box .stay-near { margin-top: 6px; }
.trip-prepare { margin-top: 26px; }
.trip-tickets { margin-top: 18px; }

/* Onsen & ryokan by month */
.feature-link { margin: 14px 0 0; font-size: .95rem; }
.onsen-title { font-family: var(--serif); font-size: clamp(1.6rem, 5vw, 2.2rem); line-height: 1.25; margin: 6px 0 0; }
.onsen-intro { max-width: 46em; color: var(--ink-2); margin: 0 0 22px; }
.onsen-card .onsen-now { margin: 8px 0 0; font-size: .9rem; color: var(--ink-2); }
.onsen-card .onsen-now b { color: var(--vermilion); font-weight: 600; }
.onsen-card .stay-near, .onsen-card .affiliate { margin-top: 8px; }
.onsen-guide { margin-top: 44px; max-width: 760px; }
.onsen-guide .facts div { grid-template-columns: 9em 1fr; }
@media (max-width: 480px) { .onsen-guide .facts div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- map: how far from where you stay (illustrated) ---------- */
.feature-link { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.filters .base select { max-width: 11em; }
.reach { font-weight: 600; }
.reach.day { color: var(--day); } .reach.night { color: var(--night); } .reach.far { color: var(--far); }
.reach-box { border-left: 3px solid var(--rule); padding: 8px 12px; background: var(--tile); border-radius: 4px; margin: 0 0 14px; font-size: .92rem; }
.reach-box.day { border-color: var(--day); } .reach-box.night { border-color: var(--night); } .reach-box.far { border-color: var(--far); }
.base-tabs { align-items: center; border-bottom: 0; margin-bottom: 4px; }
.tabs-label { font-size: .85rem; color: var(--muted); margin-right: 6px; white-space: nowrap; }
.map-wrap { margin: 8px 0 6px; border-radius: 18px; overflow: hidden; background: var(--sea); box-shadow: inset 0 0 0 1px var(--rule); }
.jmap { display: block; width: 100%; height: auto; max-height: 80vh; touch-action: manipulation; font-family: var(--sans); }
.jmap .sea { fill: var(--sea); }
.jmap .wave { fill: none; stroke: var(--wave); stroke-width: 1.2; stroke-linecap: round; }
.jmap .inset { fill: none; stroke: var(--wave); stroke-width: 1.5; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.jmap .pref { stroke: var(--land-edge); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; cursor: pointer; transition: filter .15s; }
.jmap .pref:hover { filter: brightness(.96); }
.jmap .pref.on { stroke: var(--vermilion); stroke-width: 2.5; }
.jmap .band-day { fill: var(--fill-day); } .jmap .band-night { fill: var(--fill-night); } .jmap .band-far { fill: var(--fill-far); }
.jmap .reg-hokkaido { fill: var(--r1); } .jmap .reg-tohoku { fill: var(--r2); } .jmap .reg-kanto { fill: var(--r3); } .jmap .reg-chubu { fill: var(--r4); }
.jmap .reg-kinki { fill: var(--r5); } .jmap .reg-chugoku { fill: var(--r6); } .jmap .reg-shikoku { fill: var(--r7); } .jmap .reg-kyushu { fill: var(--r8); }
.jmap .icon { cursor: pointer; }
.jmap .icon .badge { fill: #fffdf8; stroke: rgba(0,0,0,.18); stroke-width: .8; }
.jmap .icon:hover .badge, .jmap .icon:focus .badge, .jmap .icon.sel .badge { stroke: var(--vermilion); stroke-width: 2; }
.jmap .icon:focus { outline: none; }
.jmap .city { cursor: pointer; }
.jmap .city polygon { fill: var(--ink-2); stroke: var(--land-edge); stroke-width: 1; vector-effect: non-scaling-stroke; }
.jmap .city text { fill: var(--ink); font-weight: 700; paint-order: stroke; stroke: var(--land-edge); stroke-width: 4px; stroke-linejoin: round; }
.jmap .city.me polygon { fill: var(--vermilion); }
.jmap .city.me text { fill: var(--vermilion); }
.jmap .stay-pin { fill: var(--vermilion); stroke: var(--land-edge); stroke-width: 1; vector-effect: non-scaling-stroke; }
.map-under { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px; }
.map-under .zoom-tabs { border-bottom: 0; margin: 0; font-size: .85rem; }
.map-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .82rem; color: var(--ink-2); }
.key { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 5px; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.key.band-day { background: var(--fill-day); } .key.band-night { background: var(--fill-night); } .key.band-far { background: var(--fill-far); }
.map-info { min-height: 3.2em; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.map-info .info-name { font-weight: 700; color: var(--ink); margin-right: 8px; }
.map-info p { margin: 4px 0 0; font-size: .9rem; color: var(--ink-2); }
.stay-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 14px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .9rem; background: var(--paper); }
.chip:hover { border-color: var(--ink-2); }
.brand, .day-link, .lang button { white-space: nowrap; }
@media (max-width: 440px) {
  .brand { font-size: 1.1rem; }
  .lang { gap: 10px; font-size: .8rem; }
  .day-link { margin-right: 0; }
}

/* ---------- main menu: top on wide screens, a bar at the bottom on phones ---------- */
.mainnav { display: flex; align-items: center; gap: 4px; margin-left: auto; margin-right: 14px; }
.mainnav a { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: .88rem; white-space: nowrap; }
.mainnav a:hover { background: var(--tile); color: var(--ink); }
.mainnav a[aria-current] { background: var(--ink); color: var(--paper); }
.mainnav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.back { display: inline-flex; align-items: center; gap: 4px; margin: 4px 0 6px; padding: 7px 14px 7px 10px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; font-size: .9rem; cursor: pointer; }
.back:hover { border-color: var(--ink-2); }
.detail .alt-label { font-size: .75rem; color: var(--muted); margin-right: 4px; }
@media (max-width: 760px) {
  .mainnav { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; margin: 0; gap: 0; justify-content: space-around;
    background: var(--paper); border-top: 1px solid var(--rule); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .mainnav a { flex: 1; flex-direction: column; gap: 2px; padding: 4px 2px; border-radius: 10px; font-size: .68rem; text-align: center; }
  .mainnav a > span { white-space: normal; line-height: 1.15; }
  .mainnav a { min-width: 0; }
  .mainnav [data-daycount] { display: block; font-size: .9em; }
  .mainnav a[aria-current] { background: none; color: var(--vermilion); font-weight: 700; }
  .mainnav svg { width: 22px; height: 22px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}

/* "Check before you go" on the trip page */
.trip-checks { margin: 22px 0 10px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 12px; background: var(--tile); }
.trip-checks ul { list-style: none; padding: 0; margin: 8px 0 0; }
.trip-checks li { padding: 9px 0; border-top: 1px solid var(--rule); display: grid; gap: 2px; font-size: .92rem; }
.trip-checks li b { font-size: .95rem; }
.trip-checks li span { color: var(--ink-2); }
.trip-checks a { white-space: nowrap; font-size: .85rem; }

/* Long train ride between two days, and "Is a JR Pass worth it?" */
.day-move { margin: 8px 0 10px; padding: 10px 12px; border-left: 3px solid var(--night); background: var(--tile); border-radius: 4px; display: grid; gap: 2px; font-size: .9rem; }
.day-move span { color: var(--ink-2); }
.day-move .on-way b { color: var(--ink); }
.day-move .on-way small { color: var(--muted); }
.day-move .move-long { font-size: .85rem; }
/* "Staying in" per day, the cities summary, and the warning for a place too far from the day's city */
.trip-day-head { flex-wrap: wrap; row-gap: 4px; }
.day-head-r { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-left: auto; }
.day-base { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--ink-2); }
.day-base .pref-select { max-width: 11rem; font-size: .85rem; padding: 4px 6px; }
.trip-head .trip-bases { display: grid; gap: 2px; color: var(--ink); }
.trip-far { flex-basis: 100%; margin: 0; color: var(--vermilion); font-size: .88rem; font-weight: 600; }
.jr-pass { margin: 22px 0 10px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 12px; background: var(--tile); }
.jr-pass p { margin: 6px 0 0; }
.jr-pass a { white-space: nowrap; }

/* "Avoid the crowds" on a place page */
.crowd-box { margin: 16px 0; padding: 12px 14px; border-left: 3px solid var(--night); background: var(--tile); border-radius: 4px; font-size: .92rem; }
.crowd-box p { margin: 6px 0 0; color: var(--ink-2); }
.crowd-box .crowd-tip { color: var(--ink); font-weight: 600; }
.crowd-box .alts { margin-top: 8px; }

/* ---------- home pages ---------- */
.home-sec { margin: 28px 0 8px; }
.home-sec h2 { font-family: var(--serif); font-size: 1.45rem; margin: 0 0 4px; }
.home-sec .sub { margin: 0 0 14px; }
.area-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; }
.area-card { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--tile); text-decoration: none; color: #fff; }
.area-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.area-card:hover img { transform: scale(1.04); }
.area-card .area-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; background: linear-gradient(transparent, rgba(0,0,0,.72)); display: grid; gap: 1px; }
.area-card b { font-size: 1rem; line-height: 1.2; }
.area-card small { font-size: .74rem; opacity: .9; }
.area-card:not(:has(img)) { color: var(--ink); }
.area-card:not(:has(img)) .area-text { background: none; }
.all-btn { text-align: center; margin: 22px 0 30px; }
.pref-index { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 22px; }
.pref-block h3 { font-size: .95rem; margin: 12px 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--rule); }
.pref-block h3 a { color: var(--ink); text-decoration: none; }
.pref-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pref-links a { display: inline-flex; align-items: baseline; gap: 5px; padding: 5px 11px; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .9rem; background: var(--paper); }
.pref-links a:hover { border-color: var(--ink-2); }
.pref-links small { color: var(--muted); font-size: .75rem; }
/* "At a glance" on a place page */
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 12px 0 12px; align-items: start; }
.glance .g { padding: 8px 11px; border-radius: 8px; background: var(--tile); border-left: 3px solid var(--rule); display: grid; gap: 2px; }
.glance .g span { font-size: .72rem; color: var(--muted); letter-spacing: .03em; }
.glance .g b { font-size: .92rem; font-weight: 600; }
.glance .g.good { border-color: var(--day); } .glance .g.warn { border-color: var(--night); } .glance .g.bad { border-color: var(--vermilion); }
.glance .g.wide { grid-column: span 2; }
.glance .g.book { grid-column: 1 / -1; }
.glance .g.tour { grid-column: 1 / -1; }
.glance .g.tour b { font-size: .88rem; }
.glance .g.tour .affiliate { margin-top: 6px; }
.airport-lines { margin: 2px 0 10px; }
.airport-line { margin: 2px 0; font-size: .85rem; color: var(--muted); }
.airport-line .g-src { font-size: .8rem; white-space: nowrap; }
.glance .g.wide b, .glance .g.book b { font-size: .88rem; }
.glance .g { min-width: 0; overflow-wrap: anywhere; }
.glance .g.from label { display: grid; gap: 3px; }
.glance .g.from select { width: 100%; }
@media (min-width: 640px) { .glance .g.from { grid-column: span 2; } }
.glance .g.from select { font: inherit; font-size: .85rem; padding: 3px 6px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); color: var(--ink); max-width: 100%; }
.glance .g-tip { grid-column: 1 / -1; margin: 0; font-size: .85rem; }
.glance .g-src { font-size: .75rem; font-weight: 400; white-space: nowrap; }

/* "Why Wayfinder Atlas": three short lines on the English home page */
.why { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.why li { padding: 12px 14px; border: 1px solid var(--rule); border-radius: 10px; display: grid; gap: 3px; }
.why b { font-size: .95rem; }
.why span { font-size: .88rem; color: var(--ink-2); }
/* Month pages (static, for search): "Japan in November" */
.month-page .month-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 14px 0 18px; }
.month-notes { padding: 12px 16px; border-left: 3px solid var(--night); background: var(--tile); border-radius: 4px; margin: 0 0 18px; }
.month-notes ul { margin: 6px 0 0; padding-left: 1.1em; }
.month-notes li { margin: 4px 0; font-size: .92rem; }
.mg-head { font-size: 1.02rem; margin: 18px 0 8px; }
.mg-head small { color: var(--muted); font-weight: 400; font-size: .8rem; }
.mcards { list-style: none; padding: 0 !important; margin: 0 0 6px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.mcards li { margin: 0; }
.mcards a { display: grid; grid-template-columns: 84px 1fr; gap: 10px; align-items: start; text-decoration: none; color: var(--ink); padding: 6px; border: 1px solid var(--rule); border-radius: 8px; }
.mcards a:hover { border-color: var(--ink-2); }
.mcards img, .mcards .mc-noimg { width: 84px; height: 64px; object-fit: cover; border-radius: 5px; background: var(--tile); display: block; }
.mcards span { display: grid; gap: 1px; min-width: 0; }
.mcards b { font-size: .92rem; line-height: 1.3; }
.mcards small { color: var(--muted); font-size: .75rem; }
.mcards em { font-style: normal; font-size: .8rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.page a.btn, .page a.btn:visited { color: var(--paper); }

/* "3 questions" on the home page */
.quiz { margin: 18px 0 24px; padding: 16px 18px; border: 1px solid var(--rule); border-radius: 14px; background: var(--tile); }
.quiz h2 { margin: 0 0 10px; font-size: 1.15rem; }
.quiz ol { margin: 0 0 14px; padding-left: 1.3em; display: grid; gap: 10px; }
.quiz li b { margin-right: 6px; }
.quiz .quiz-val { font-weight: 600; }
.quiz select { font: inherit; padding: 4px 8px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); color: var(--ink); }
.chip-row { margin-top: 8px; }
.chip-label { display: block; font-size: .8rem; color: var(--muted); }
.chip-row .chips { margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { font: inherit; font-size: .88rem; min-height: 44px; padding: 5px 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); color: var(--ink-2); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* One-line verdict */
.verdict { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 6px 0 10px; font-size: .9rem; }
.verdict a { color: inherit; text-underline-offset: 3px; }
.verdict span { padding: 2px 9px; border-radius: 999px; background: var(--tile); border: 1px solid var(--rule); }
.verdict .good { border-color: var(--day); }
.verdict .warn { border-color: var(--night); }
.verdict .bad { border-color: var(--vermilion); color: var(--vermilion); }
.spot .verdict { font-size: .78rem; margin: 6px 0 0; }

/* Picks page */
.why-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 4px; }
.why-tags span { font-size: .72rem; padding: 1px 7px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.course-days { padding-left: 1.2em; display: grid; gap: 10px; margin: 8px 0 14px; }
.course-days div { margin-top: 2px; }

/* Trip timeline and "today" */
.timeline ol { list-style: none; padding: 0; margin: 10px 0 0; border-left: 2px solid var(--rule); }
.timeline > ol > li { position: relative; padding: 4px 0 12px 16px; }
.timeline > ol > li::before { content: ""; position: absolute; left: -7px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--rule); }
.timeline > ol > li.now::before { background: var(--vermilion); border-color: var(--vermilion); }
.timeline > ol > li.done { opacity: .55; }
.tl-when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.tl-when small { color: var(--muted); }
.tl-when em { font-style: normal; font-size: .75rem; padding: 1px 7px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.timeline li.now .tl-when em { background: var(--vermilion); }
.timeline ul { list-style: disc; padding-left: 1.2em; margin: 4px 0 0; border: 0; }
.timeline ul li { display: list-item; padding: 2px 0; border: 0; }
.notice.today { border-left-color: var(--vermilion); }
.picks .grid { padding: 0; list-style: none; }
.city-link { margin: .2rem 0 .8rem; font-weight: 600; }
.cmap { overflow: hidden; display: block; margin: 0 auto; width: 100%; height: auto; max-height: 85vh; font-family: var(--sans); border-radius: 14px; }
.cmap .paper { fill: #fbf8f1; }
.cmap .rail-edge { fill: none; stroke: #fff; stroke-linejoin: round; stroke-linecap: round; }
.cmap .rail { fill: none; stroke-linejoin: round; stroke-linecap: round; opacity: .9; }
.cmap .stn { fill: #fff; stroke: #555; stroke-width: 1; vector-effect: non-scaling-stroke; }
.cmap .stn.major { stroke: #222; stroke-width: 2; }
.cmap .stay-ring { fill: rgba(200,60,40,.12); stroke: var(--vermilion); stroke-width: 1.2; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.cmap .stn-name { fill: #222; font-weight: 700; paint-order: stroke; stroke: #fbf8f1; stroke-width: 3.5px; stroke-linejoin: round; pointer-events: none; }
.cmap .spot-name { fill: #5a4a3a; font-weight: 500; paint-order: stroke; stroke: #fbf8f1; stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.cmap .spot-name.must { fill: var(--vermilion); font-weight: 700; }
.cmap .art { cursor: pointer; }
.cmap .art .shadow { fill: rgba(0,0,0,.12); }
.cmap .art:hover, .cmap .art:focus, .cmap .art.sel { filter: drop-shadow(0 0 3px var(--vermilion)); outline: none; }
.cmap .stn-sk { fill: #fff; stroke: #1d4fa0; stroke-width: 2.4; vector-effect: non-scaling-stroke; }
.cmap .air-link { stroke: #2f6fb0; stroke-width: 1.6; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.cmap .air-name { fill: #2f6fb0; font-weight: 700; paint-order: stroke; stroke: #fbf8f1; stroke-width: 3px; stroke-linejoin: round; }
.cmap .air-sub { fill: #2f6fb0; paint-order: stroke; stroke: #fbf8f1; stroke-width: 3px; stroke-linejoin: round; }
.cmap .map-tag rect { fill: #fff; stroke: #c9b9a0; stroke-width: 1; vector-effect: non-scaling-stroke; }
.cmap .map-tag text { fill: #6b5b4b; font-weight: 600; }
.city-warn { margin: .6rem 0; font-size: .9rem; }
.city-warn a { white-space: nowrap; }
.city-view { margin: .4rem 0; }
.city-legend .line-key.sk { box-shadow: inset 0 0 0 1.5px #1d4fa0; height: .5em; }
.city-legend .sk-key { display: inline-block; width: .9em; height: .9em; border-radius: 50%; border: 2.4px solid #1d4fa0; background: #fff; vertical-align: middle; margin-right: .35em; box-sizing: border-box; }
.city-legend .air-key { display: inline-block; width: 1.4em; border-top: 2px dashed #2f6fb0; vertical-align: middle; margin-right: .35em; }
.city-legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: .6rem 0; font-size: .85rem; }
.city-legend .line-key { display: inline-block; width: 1.4em; height: .35em; border-radius: 3px; vertical-align: middle; margin-right: .35em; }
.city-legend .ring-key { display: inline-block; width: .9em; height: .9em; border-radius: 50%; border: 1.2px dashed var(--vermilion); background: rgba(200,60,40,.12); vertical-align: middle; margin-right: .35em; }
.cmap .edge-city circle { fill: #3b3b3b; stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.cmap .edge-city path { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.cmap .exit-name { fill: #3b3b3b; font-weight: 700; paint-order: stroke; stroke: #fbf8f1; stroke-width: 3px; stroke-linejoin: round; }
.air-list { list-style: none; padding: 0; margin: .2rem 0 .8rem; font-size: .85rem; color: #2f6fb0; }
.air-list li { margin: .15rem 0; }
.air-list li::before { content: "✈ "; }
.city-page .map-wrap { background: #fbf8f1; }
.cmap .paper.sea { fill: #d7e9f2; }
.cmap .ward { stroke: #fff; stroke-width: 1.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.cmap .ward-name { fill: #a89c88; font-weight: 600; letter-spacing: .04em; pointer-events: none; }
.reach-box .reach-how { font-size: .9rem; }
.glance .g.from .g-how { display: block; margin-top: .3rem; font-size: .82rem; color: var(--muted); font-weight: 400; line-height: 1.45; }

/* Three buttons under "At a glance": official site, map, add to trip. On phones they are fixed above the bottom menu. */
.cta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.cta .btn { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 11px 10px; font-size: .9rem; line-height: 1.25; border-radius: 6px; cursor: pointer; }
.cta .btn-line { background: var(--paper); }
.cta [data-addtrip], .cta [data-unday] { flex-grow: 1.4; }
.cta .btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
@media (max-width: 760px) {
  .cta { position: fixed; z-index: 30; left: 0; right: 0; bottom: calc(var(--nav-h, 62px) + env(safe-area-inset-bottom)); margin: 0; flex-wrap: nowrap;
    padding: 8px 16px; background: var(--paper); border-top: 1px solid var(--rule); }
  .detail { padding-bottom: 72px; }
}

/* Trip check: warnings from every day, at the top of the trip page */
.trip-warn { margin: 14px 0 6px; padding: 10px 14px; border: 1px solid var(--rule); border-left: 3px solid var(--vermilion); border-radius: 8px; background: var(--tile); }
.trip-warn.ok { border-left-color: var(--day); }
.trip-warn h2 { margin: 0 0 4px; }
.trip-warn h2 span { font-family: inherit; font-size: .8rem; color: var(--vermilion); margin-left: 4px; }
.trip-warn .ok-line { margin: 0; color: var(--day); font-weight: 600; font-size: .92rem; }
.trip-warn ul { list-style: none; padding: 0; margin: 4px 0 0; }
.trip-warn li { padding: 6px 0; border-top: 1px solid var(--rule); font-size: .9rem; color: var(--vermilion); }
.trip-warn li:first-child { border-top: 0; }
.trip-warn li.info { color: var(--ink-2); }
.day-loop { margin: 6px 0 0; font-size: .9rem; color: var(--ink-2); }

/* Been here / Hide places I've been / Compare */
.glance .g.been { grid-column: 1 / -1; background: none; border-left-color: transparent; padding: 0 2px; }
.glance .g.been .toggle { min-height: 36px; padding: 2px 0; font-size: .85rem; }
.hide-row { margin: 10px 0 14px; }
.hide-row .chip { min-height: 38px; font-size: .85rem; }
.hide-row .chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.grid > li { position: relative; }
.cmp-btn { position: absolute; top: 8px; right: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 5px 11px 5px 9px;
  border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: .8rem; font-weight: 600; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.cmp-btn .box { width: 16px; height: 16px; flex: none; border: 1.5px solid var(--ink-2); border-radius: 3px; display: inline-grid; place-items: center; }
.cmp-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cmp-btn[aria-pressed="true"] .box { background: var(--paper); border-color: var(--paper); }
.cmp-btn[aria-pressed="true"] .box::after { content: ""; width: 7px; height: 3px; border: 2px solid var(--ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.cmp-btn:focus-visible, .cmpbar a:focus-visible, .cmpbar button:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }

/* The bar at the bottom: "Compare 3 →". On phones it sits right above the bottom menu. */
.cmpbar { position: fixed; z-index: 35; left: 50%; transform: translateX(-50%); bottom: 16px; display: flex; align-items: center; gap: 4px;
  max-width: calc(100% - 24px); padding: 4px 6px 4px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); box-shadow: 0 2px 12px rgba(0,0,0,.3); }
.cmpbar[hidden] { display: none; }
.cmpbar .cmp-go { color: var(--paper); text-decoration: none; font-weight: 700; font-size: .95rem; padding: 10px 6px; white-space: nowrap; }
.cmpbar .cmp-msg { font-size: .78rem; opacity: .85; padding: 0 4px; }
.cmpbar .cmp-clear { color: var(--paper); font-size: 1.3rem; line-height: 1; width: 40px; height: 40px; border-radius: 50%; opacity: .8; }
@media (max-width: 760px) {
  .cmpbar { bottom: calc(var(--nav-h, 62px) + env(safe-area-inset-bottom) + 10px); }
  body.has-cmpbar { padding-bottom: calc(68px + 64px + env(safe-area-inset-bottom)); }
}

.cmp-tools { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 14px 0 12px; }
.cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--rule); }
.cmp { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 100%; table-layout: fixed; }
.cmp thead td, .cmp thead th { width: 150px; vertical-align: top; text-align: left; padding: 12px 8px 12px 0; }
.cmp thead td:first-child { width: 84px; }
.cmp .cmp-name { display: block; text-decoration: none; color: inherit; }
.cmp .cmp-name b { display: block; margin-top: 6px; font-family: var(--serif); font-size: 1rem; line-height: 1.3; }
.cmp .cmp-name:hover b { text-decoration: underline; }
.cmp .photo { border-radius: 4px; }
.cmp .where { display: block; margin: 2px 0 6px; font-size: .75rem; }
.cmp .cmp-add { margin-top: 4px; width: 100%; padding: 8px 6px; font-size: .82rem; }
.cmp .cmp-add[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.cmp .link-btn { display: block; margin-top: 6px; font-size: .75rem; }
.cmp tbody th, .cmp tbody td { padding: 10px 8px 10px 0; border-top: 1px solid var(--rule); vertical-align: top; text-align: left; font-size: .88rem; line-height: 1.5; font-weight: 400; }
.cmp tbody th { position: sticky; left: 0; z-index: 1; background: var(--paper); width: 84px; font-size: .74rem; color: var(--muted); letter-spacing: .03em; padding-right: 8px; }
.cmp td.good { color: var(--day); font-weight: 600; }
.cmp td.warn { color: var(--ink); border-left: 0; }
.cmp td.bad { color: var(--vermilion); font-weight: 600; }
.cmp .none { color: var(--muted); }
.cmp-decide { margin: 22px 0 8px; display: grid; gap: 8px; justify-items: start; }
.cmp-decide .btn { border: 0; cursor: pointer; }
.cmp-decide .btn[aria-disabled="true"] { opacity: .55; }

/* "Decide": the hotel box of the day just filled stands out for a moment. */
.stay-box { transition: background .4s, box-shadow .4s; border-radius: 10px; }
.stay-box.flash { background: var(--tile); box-shadow: 0 0 0 3px var(--vermilion); padding: 10px 12px; }

/* Where to stay: compare cities by how many matching day trips they have. */
.quiz .where-link { display: inline-block; margin-left: 8px; font-size: .88rem; }
.where-sec { margin-top: 18px; }
.where-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--rule); margin-top: 10px; }
.where-table { border-collapse: collapse; width: 100%; }
.where-table th, .where-table td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: middle; font-size: .9rem; font-weight: 400; }
.where-table thead th { font-size: .74rem; color: var(--muted); letter-spacing: .03em; vertical-align: bottom; }
.where-table tbody th { font-family: var(--serif); font-size: 1.02rem; font-weight: 600; }
.where-table .btn { border: 0; cursor: pointer; padding: 8px 12px; font-size: .85rem; white-space: nowrap; }
.where-note, .where-two, .where-more { margin: 10px 0 0; }
.where-note { font-size: .78rem; }
@media (max-width: 640px) {
  .where-wrap { overflow: visible; }
  .where-table, .where-table tbody, .where-table tr, .where-table th, .where-table td { display: block; }
  .where-table thead { display: none; }
  .where-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .where-table th, .where-table td { border: 0; padding: 0; }
  .where-table tbody th { grid-column: 1 / -1; margin-bottom: 2px; }
  .where-table td[data-l]::before { content: attr(data-l); display: block; font-size: .72rem; color: var(--muted); line-height: 1.3; }
  .where-table td.where-go { grid-column: 1 / -1; margin-top: 8px; }
  .where-table td.where-go .btn { width: 100%; }
}

/* City hub pages: /stay/<city>/ (static) and ?page=hub&base=<city> (app) */
.stay-areas { list-style: none; padding: 0 !important; margin: 0 0 8px; }
.stay-areas li { padding: 12px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.stay-areas b { font-size: 1.02rem; }
.stay-areas .why { color: var(--ink-2); font-size: .88rem; margin-top: 2px; }
.stay-act { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.stay-act .affiliate { margin-top: 0; }
.routes li { line-height: 1.7; }
.routes .where { margin-left: 2px; }
.hub-page .hub-use { margin: 14px 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.hub-page .hub-use select { max-width: 100%; }
.hub-page .detail-photo { margin-top: 10px; }
.hub-page .detail-photo .photo { aspect-ratio: 16 / 7; border-radius: 6px; }
.hub-page .mcards .near-min { color: var(--ink-2); font-size: .78rem; }
.hub-page .mcards .season { color: var(--ink); font-weight: 600; font-size: .78rem; }
.area-grid li { position: relative; }
.area-hub { display: block; margin-top: 4px; font-size: .78rem; color: var(--indigo); text-decoration: none; font-weight: 600; }
.area-hub:hover { text-decoration: underline; }
.facts .tour-tip { font-weight: 600; font-size: .9em; }
.pref-table { border-collapse: collapse; width: 100%; max-width: 420px; font-size: .9rem; }
.pref-table th, .pref-table td { text-align: left; padding: 6px 10px 6px 0; border-bottom: 1px solid var(--rule); font-weight: 400; }
.pref-table thead th { color: var(--muted); font-size: .78rem; font-weight: 600; }
.pref-table td { text-align: right; font-variant-numeric: tabular-nums; }
.pref-table thead th:not(:first-child) { text-align: right; }
.pref-table tbody th a { font-weight: 600; color: var(--ink); text-decoration: none; }
.pref-total th, .pref-total td { font-weight: 600; }
.closed-items .pref-head { border-bottom: 0; padding-bottom: 0; }
.closed-items .pref-head .mg-head { margin: 10px 0 0; }
.hol-list { padding-left: 1.2em; }

/* ---------- model itineraries (cards on the home and trip pages) ---------- */
.model-sec { margin: 18px 0 22px; }
.model-sec > summary { cursor: pointer; font-family: var(--serif); font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.model-sec .sub { margin: 0 0 12px; }
.model-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.model-card { display: grid; gap: 4px; height: 100%; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 12px; background: var(--tile); color: var(--ink); text-decoration: none; }
.model-card:hover { border-color: var(--ink); }
.model-card b { font-size: 1rem; line-height: 1.3; }
.model-meta { color: var(--ink-2); font-size: .85rem; }
.model-open { color: var(--indigo); font-size: .85rem; font-weight: 600; }
.model-note { margin: 10px 0 0; }

/* Trip code: one button on the trip page opens a pop-up with the code, copy, restore and delete */
.code-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 14px 0; padding: 10px 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--tile); }
.code-bar span { font-size: .88rem; color: var(--ink-2); }
.code-dialog { border: 0; border-radius: 14px; padding: 22px 22px 18px; width: min(92vw, 520px); max-height: 88vh; overflow: auto; background: var(--paper); color: var(--ink); box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.code-dialog::backdrop { background: rgba(0,0,0,.5); }
.code-dialog .trip-code { margin: 0; padding: 0; border: 0; }
.code-dialog .code-value b { font-size: 1.35rem; letter-spacing: .04em; word-break: break-all; }
.code-close { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; background: transparent; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink-2); }
.code-bar .day-btn { margin-top: 0; }
