:root {
  --ink: #1f2430;
  --muted: #5d6472;
  --line: #e3e5e9;
  --bg: #f7f7f5;
  --card: #fff;
  --accent: #c2410c;
  --warn: #9a5b00;
  --panel-w: min(440px, 45vw);
  --top: 52px;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); }
body { overflow: hidden; }
a { color: #1d4e89; }
h1, h2, h3, h4 { margin: 0; }
button { font: inherit; }
[hidden] { display: none !important; }

.topbar { position: fixed; inset: 0 0 auto 0; height: var(--top); display: flex; align-items: center; gap: 12px; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--line); z-index: 5; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand-mark { flex: none; display: block; }
.tagline { color: var(--muted); font-size: 14px; }

.layout { position: fixed; inset: var(--top) 0 0 0; }
.map { position: absolute; inset: 0; }
.map-error { padding: 24px; color: var(--muted); }

.map-ctl { position: absolute; top: 12px; left: 56px; z-index: 3; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; max-width: calc(100% - var(--panel-w) - 90px); }
.chk { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; box-shadow: 0 1px 3px rgb(0 0 0 / 0.08); cursor: pointer; }
.layers { display: contents; }
.layers-btn { display: none; }
.legend { flex-basis: 100%; max-width: 330px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 13px; box-shadow: 0 1px 3px rgb(0 0 0 / 0.08); }

/* Panel: desktop side panel */
.panel { position: absolute; top: 0; right: 0; bottom: 0; width: var(--panel-w); background: var(--bg); border-left: 1px solid var(--line); display: flex; flex-direction: column; z-index: 4; }
.sheet-handle { display: none; }
.panel-nav { display: flex; justify-content: space-between; padding: 8px 12px 0; min-height: 8px; }
.panel:not(.is-area) [data-act="back"] { visibility: hidden; }
.panel-body { flex: 1; overflow-y: auto; padding: 4px 16px 16px; -webkit-overflow-scrolling: touch; }
.panel-foot { padding: 8px 16px 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.sources summary { cursor: pointer; }
.sources ul { padding-left: 18px; margin: 6px 0; }

.eyebrow { text-transform: uppercase; font-size: 11.5px; letter-spacing: 0.08em; color: var(--muted); margin: 8px 0 4px; font-weight: 650; }
.area-h h1, .intro h1 { font-size: 26px; line-height: 1.15; letter-spacing: -0.015em; }
.local { color: var(--muted); font-weight: 400; font-size: 0.8em; }
.summary { font-size: 15.5px; line-height: 1.5; }
.intro p { line-height: 1.5; }
.area[data-area="asakusa"] .area-h h1 { color: #5b4fc0; }
.area[data-area="kuramae"] .area-h h1 { color: #0f7465; }
.area[data-area="asakusabashi"] .area-h h1 { color: #b65a1c; }

.btn { border: 1px solid #c9ccd2; background: #fff; color: var(--ink); padding: 7px 12px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.btn:hover:not(:disabled) { border-color: #9aa0aa; }
.btn-ghost { border-color: transparent; background: none; color: #1d4e89; padding: 6px 4px; }
.btn-pin[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-disabled { margin-top: 10px; width: 100%; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 14px 12px; margin: 0 0 12px; }
.card-h { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; margin-bottom: 8px; }
.card h3 { font-size: 15.5px; }
.card h4 { font-size: 13px; margin: 12px 0 6px; color: var(--muted); font-weight: 650; }
.card p { margin: 6px 0; line-height: 1.45; font-size: 14.5px; }
.status { font-size: 11.5px; white-space: nowrap; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.status-none { background: #f1f2f4; color: var(--muted); }
.status-partial { background: #fff4e0; color: var(--warn); }
.status-draft { background: #fde9df; color: #9a3412; }
.status-thin { background: #eceafb; color: #4c3fb0; }
.meta { color: var(--muted); font-size: 12.5px !important; }
.meta.warn { color: var(--warn); }
.muted { color: var(--muted); }
.tag { font-size: 11px; padding: 1px 6px; border-radius: 4px; background: #eef4ee; color: #2f6b3a; margin-left: 4px; white-space: nowrap; }
.tag-warn { background: #fff4e0; color: var(--warn); }

.hl-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.hl { padding: 10px 8px; border-radius: 8px; cursor: pointer; border-bottom: 1px solid #f0f1f3; }
.hl:last-child { border-bottom: 0; }
.hl:hover, .hl:focus { background: #fbf4ef; outline: none; }
.hl.flash { background: #fde4d3; transition: background 0.3s; }
.hl-top { display: flex; gap: 4px; align-items: center; margin-bottom: 3px; flex-wrap: wrap; }
.hl-kind { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); font-weight: 700; margin-right: 2px; }
.hl p { font-size: 14px; }
.hl .seasonal { color: var(--warn); font-size: 13px; }
.hl-more-list { margin-top: 4px; }
.hl-more-list > summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--accent); padding: 8px; list-style-position: inside; }
.fav { padding: 10px 8px; border-bottom: 1px solid #f0f1f3; }
.fav:last-child { border-bottom: 0; }
.fav p { font-size: 14px; }
.fav .fav-meta { font-size: 13px; color: var(--muted); }
.src { font-size: 12px; color: var(--muted); }

.price-placeholder { background: #f6f7f9; border: 1px dashed #c9ccd2; border-radius: 8px; padding: 10px 12px; font-size: 14px; line-height: 1.45; }
.price-placeholder strong { display: block; }
.trail-label { margin-top: 0 !important; }
.toggle { display: flex; gap: 6px; align-items: center; font-size: 13.5px; margin-top: 10px; color: var(--muted); }

.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 6px 6px; border-bottom: 1px solid #f0f1f3; vertical-align: top; }
.tbl thead th { font-size: 12px; color: var(--muted); font-weight: 650; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; }

.tt-form { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.tt-form label { display: flex; flex-direction: column; gap: 3px; flex: 1 1 140px; }
select { font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid #c9ccd2; border-radius: 8px; background: #fff; color: var(--ink); }
.tt { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 2px; }
.tt-num { font-size: 34px; font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tt-unit { color: var(--muted); }
.eats-line { margin: 8px 0 4px; }
.stations { list-style: none; padding: 0; margin: 10px 0 4px; font-size: 13.5px; display: grid; gap: 4px; }
.stations .nocov { color: var(--muted); }
.boundary { margin: 4px 2px 12px; }

/* Compare drawer */
.compare { position: absolute; left: 12px; right: calc(var(--panel-w) + 12px); bottom: 12px; z-index: 3; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 6px 24px rgb(0 0 0 / 0.12); max-height: 46%; overflow: auto; }
.compare.flash { box-shadow: 0 0 0 3px #1d4e89; }
.cmp-inner { padding: 12px 14px; }
.cmp-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.cmp-h h2 { font-size: 16px; }
.cmp-actions { display: flex; gap: 6px; }
.cmp th[scope="row"] { color: var(--muted); font-weight: 500; width: 30%; }
.cmp thead th { font-size: 14px; color: var(--ink); }
.cmp .x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 16px; padding: 0 4px; }
.cmp-scroll { overflow-x: auto; }
.compare { display: none; }
.compare.open { display: block; }

.pop strong { display: inline; }
.pop p { margin: 4px 0 0; font-size: 13px; line-height: 1.4; }
.maplibregl-popup-content { border-radius: 10px; padding: 10px 26px 10px 12px; }

.toast { position: absolute; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; font-size: 14px; opacity: 0; pointer-events: none; transition: 0.2s; z-index: 10; max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Mobile: bottom sheet */
@media (max-width: 760px) {
  :root { --top: 46px; }
  .tagline { display: none; }
  .map-ctl { left: 10px; right: 10px; top: 10px; max-width: none; }
  .maplibregl-ctrl-top-left { top: 96px; }
  .chk { font-size: 13px; padding: 4px 8px; }
  /* Phone: the three layer toggles live behind one small button, so the map keeps its space. */
  .map-ctl { padding-right: 46px; }
  .layers-btn { display: flex; align-items: center; justify-content: center; position: absolute; top: 0; right: 0; width: 38px; height: 34px; padding: 0; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 1px 3px rgb(0 0 0 / 0.08); cursor: pointer; }
  .layers-btn[aria-expanded="true"] { background: var(--ink); color: #fff; }
  .layers { display: none; }
  .map-ctl.layers-open .layers { display: flex; flex-direction: column; position: absolute; top: 40px; right: 0; z-index: 4; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 4px; box-shadow: 0 4px 14px rgb(0 0 0 / 0.14); }
  .layers .chk { border: 0; box-shadow: none; font-size: 15px; padding: 9px 12px; }
  .panel { top: auto; left: 0; width: 100%; height: 40%; border-left: 0; border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; box-shadow: 0 -6px 24px rgb(0 0 0 / 0.12); transition: height 0.25s ease; }
  .panel.dragging { transition: none; }
  .panel[data-sheet="peek"] { height: 150px; }
  .panel[data-sheet="half"] { height: 52%; }
  .panel[data-sheet="full"] { height: calc(100% - 8px); }
  /* Until the sheet is fully up, vertical swipes on its content move the sheet (app.js); sideways scrollers still scroll. */
  .panel:not([data-sheet="full"]) .panel-body { touch-action: pan-x; }
  .panel[data-sheet="full"] .panel-body { overscroll-behavior-y: contain; }
  .panel-nav { touch-action: none; }
  .sheet-handle { display: flex; justify-content: center; align-items: center; width: 100%; height: 26px; border: 0; background: none; cursor: grab; touch-action: none; flex: none; }
  .sheet-handle span { width: 40px; height: 5px; border-radius: 3px; background: #c9ccd2; }
  .panel-nav { padding-top: 0; }
  .panel-foot { display: none; }
  .panel[data-sheet="full"] .panel-foot { display: block; }
  .area-h h1, .intro h1 { font-size: 22px; }
  .compare { left: 8px; right: 8px; top: 8px; bottom: auto; max-height: 70%; z-index: 6; }
  .cmp th[scope="row"] { width: 26%; font-size: 13px; }
  .cmp td { font-size: 13px; }
  .legend { max-width: 100%; padding: 6px 8px 6px 10px; }
  /* Phones: one slim row (the colour ramp); the role swatches open from Key, so the small map above the sheet stays clear. */
  .legend .lg-key { display: inline-block; border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 3px 8px; font: inherit; font-size: 12px; color: var(--ink); cursor: pointer; }
  .legend .lg-key[aria-expanded="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
  .legend:not(.key-open) .lg-roles { display: none; }
  .legend .lg-roles { margin-top: 6px; }
}
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 6px 0; }
.chip { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #eef0f3; border: 1px solid var(--line); }
.chip-sep { color: var(--muted); font-size: 12px; }

/* Discovery first */
.status-local { background: #e7f5ee; color: #14532d; }
.trail-plain { font-weight: 650; margin: 0 0 8px; }
.local-head { font-size: 17px; font-weight: 700; margin: 4px 0 6px; }
.local-list { margin: 0 0 8px; padding-left: 18px; }
.local-list li { margin: 0 0 6px; line-height: 1.45; }
.local-list sup a { color: var(--muted); text-decoration: none; font-size: 11px; margin-left: 1px; }
.local-src { font-size: 12.5px; color: var(--muted); padding-left: 18px; margin: 4px 0; }
.local-src a { color: var(--muted); }
.card-bases { background: #eef6f1; border-color: #cfe4d7; }
.card-bases .near-list { border-color: #cfe4d7; }
.near-list { margin: 0; }
.ir-meta .tag-base { margin-left: 0; background: #0d6b3d; color: #fff; font-weight: 650; }
.near-list li + li .ir-txt { border-top: 1px solid var(--line); }
.hl-map { border: 0; padding: 0; background: none; font: inherit; color: var(--accent); font-weight: 600; cursor: pointer; }
details.how { margin-top: 8px; font-size: 13px; color: var(--muted); }
details.how summary { cursor: pointer; font-weight: 600; }
.why-h { margin: 10px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
details.why { margin-top: 12px; }

/* Local-feel meter */
.feel { margin: 6px 0 10px; }
.feel-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.feel-k { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.feel-chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; color: var(--ink, #fff); background: var(--c); box-shadow: inset 0 0 0 1px var(--l, transparent); white-space: nowrap; vertical-align: 2px; }
.sig-v { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; flex: 1; min-width: 0; }
.adj-chip { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; color: var(--muted); background: #f1f2f4; border: 1px dashed #c3c7ce; white-space: nowrap; vertical-align: 2px; cursor: help; }
.pick-chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; color: #0d6b3d; background: #fff; box-shadow: inset 0 0 0 1.5px #0d6b3d; white-space: nowrap; vertical-align: 2px; }
.feel-scale { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.feel-step { font-size: 11px; text-align: center; padding: 5px 2px; border-radius: 4px; background: #eef0f3; color: var(--muted); }
.feel-step.on { background: var(--c); color: var(--ink, #fff); font-weight: 700; }
.feel-text { font-size: 13.5px; color: var(--muted); margin: 6px 0 0; }
.lg-feel { display: grid; gap: 4px; font-size: 12.5px; }
.lg-feel span { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; background: var(--c); }


.sig { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; color: inherit; text-decoration: none; }
.sig-k { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; width: 108px; flex: none; }
.feel-bar { display: inline-grid; grid-template-columns: repeat(3, 14px); gap: 3px; }
.feel-seg { height: 10px; border-radius: 2px; background: #e5e7eb; }
.feel-seg.on { background: var(--c); }
.beds { display: inline-flex; gap: 4px; color: #0d6b3d; }
.beds svg { opacity: 0.18; }
.beds svg.on { opacity: 1; }
.stay-c { display: inline-flex; align-items: center; gap: 6px; }
.stay-label { font-weight: 700; font-size: 13.5px; }
.stay-tag { font-size: 11.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; }
.stay-lead { margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* Area photos and best-base roles */
.area-photo { margin: 0 0 12px; border-radius: 10px; overflow: hidden; background: #e5e7eb; }
.area-photo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.area-photo { position: relative; }
/* Photo credit sits behind a small "i" on the photo: tap or click to show it. */
.credit-i { position: absolute; right: 8px; bottom: 8px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: rgb(0 0 0 / 0.45); color: #fff; font: italic 600 13px/22px Georgia, serif; cursor: pointer; }
.area-photo .credit { display: none; position: absolute; right: 36px; bottom: 8px; max-width: calc(100% - 52px); font-size: 11px; color: #fff; background: rgb(0 0 0 / 0.6); padding: 3px 8px; border-radius: 6px; }
.area-photo.credit-open .credit { display: block; }
.area-photo .credit a { color: inherit; }
.photo-credits { margin: 10px 0 0 !important; font-size: 11px !important; line-height: 1.4; color: var(--muted); }
.photo-credits a { color: inherit; }
.eyebrow.role-base { color: #0d6b3d; }
.eyebrow.role-visit { color: #8a5a00; }
.crowdnote { margin: 0 0 12px; padding: 8px 10px; border-radius: 8px; background: #fdf1e4; border: 1px solid #efcfa6; font-size: 14px; }
.hubwarn { margin: 0 0 12px; padding: 8px 10px; border-radius: 8px; background: #fbe6e0; border: 1px solid #eab3a4; color: #6b2416; font-size: 14px; }
.daytrip { margin: 0 0 12px; padding: 8px 10px; border-radius: 8px; background: #fff7e6; border: 1px solid #f1dcae; font-size: 14px; }
.excursions { list-style: none; margin: 0; padding: 0; }
.nearby-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.nearby-list a { font-weight: 600; }
.nearby-list .muted { display: block; font-size: 12.5px; }
.excursion { margin: 0 0 8px; font-size: 14px; line-height: 1.45; }
.excursion a { font-weight: 650; }
.map-note { font-size: 13.5px; margin: 6px 0; display: flex; align-items: center; gap: 6px; }
.dot-key { width: 12px; height: 12px; border-radius: 3px; background: #6b7280; flex: none; }
.feel-mini { display: inline-flex; align-items: center; gap: 6px; }
.feel-mini .feel-bar { grid-template-columns: repeat(3, 10px); gap: 2px; }
.feel-mini .feel-seg { height: 7px; }
.lg-key { display: none; }
.lg-feel-ramp { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.lg-feel-ramp i { height: 10px; border-radius: 3px; background: linear-gradient(90deg, #d65f48, #eea866 16%, #e9dcc6 30%, #cfe6d6 40%, #a9d6b8 48%, #4fa676 62%, #17703f 82%, #0b5a31); }
.lg-roles { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 12px; }
.lg-roles .sw { display: inline-block; width: 14px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; background: #4fa676; box-shadow: inset 0 0 0 1px #2f8a5a; }
.lg-roles .sw-hub { background: #d65f48; box-shadow: inset 0 0 0 1px #8f3a28; }
.area-tag .area-tag-go { margin-top: 5px; font-weight: 600; }
.lg-roles .sw-visit { background: rgb(79 166 118); box-shadow: none; border: 2px dashed #0d6b3d; }
.lg-fade .sw { position: relative; }
.lg-fade .sw-visit { background: rgb(79 166 118 / 0.28); box-shadow: none; }
.lg-fade .sw-bed { position: absolute; inset: 1px 2px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 12V4M3 9h10v3M6 7.6a1.1 1.1 0 1 0 0-.01M8 7h4a1 1 0 0 1 1 1v1' stroke='%23fff' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.daytrip-lead { margin: 0 0 4px; }
.lchips { list-style: none; padding: 0; margin: 4px 0 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.lchip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 999px; background: #eef6f1; color: #174d31; font-size: 13px; font-weight: 600; }
.ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.voice { margin: 0 0 8px; padding: 8px 12px; border-left: 3px solid #4fa676; background: #f7faf8; border-radius: 0 8px 8px 0; }
.voice figcaption { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; }
.voice p { margin: 3px 0 0; font-size: 14px; }
.voice a { font-size: 12px; color: var(--muted); }
.local-more summary { cursor: pointer; font-size: 13px; color: var(--muted); margin: 4px 0; }
.hl { display: grid; grid-template-columns: 1fr; }
.hl.has-thumb { grid-template-columns: 72px 1fr; gap: 10px; }
.hl-thumb { width: 72px; height: 72px; border-radius: 8px; background: #eef0f2 center / cover no-repeat; display: none; }
.hl.has-thumb .hl-thumb { display: block; }
.hl-links { font-size: 12px; margin: 4px 0 0 !important; }
.hl-links a { color: var(--muted); }
.hl-famous { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.hl-credit { font-size: 11px !important; color: var(--muted); margin: 2px 0 0 !important; }
.hl-credit a { color: var(--muted); }

/* Hotel prices (only rendered when a price provider is on) */
.price-band { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: #0d4f2e; background: #eaf5ee; border-radius: 999px; padding: 1px 9px; }
.price-band b { font-variant-numeric: tabular-nums; }
.tag-sample { background: #fde8e8; color: #9b1c1c; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 10px; }
.sample-note { margin: 0 0 8px; padding: 6px 10px; border-radius: 8px; background: #fdf2f2; border: 1px dashed #e8a5a5; color: #7f1d1d; font-size: 13px; }
.price-sum .tt { margin-top: 4px; }
.price-sum .tt-num { font-size: 28px; }
.price-sum p { margin: 0 0 8px; font-size: 13px; }
.hotel-list { list-style: none; padding: 0; margin: 0 0 10px; border-top: 1px solid var(--line); }
.hotel { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.hotel.flash { background: #fff7e6; }
.hotel-name { border: 0; background: none; padding: 0; text-align: left; color: #1d4e89; cursor: pointer; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hotel-price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.btn-book { padding: 5px 12px; font-weight: 600; background: #0d6b3d; border-color: #0d6b3d; color: #fff; text-decoration: none; font-size: 13px; }
.btn-book:disabled { background: #e5e7eb; border-color: #e5e7eb; color: #6b7280; cursor: not-allowed; }
.pop .pop-price { margin: 4px 0 6px; font-size: 14px; }
.pop .btn-book { display: inline-block; }
[data-slot="prices"] { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
[data-slot="prices"] .how { margin-top: 6px; }

/* Price spread histogram (same bands and y-scale for every area) */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hist { margin: 10px 0 8px; }
/* price level: ¥ to ¥¥¥¥, like the bed icons for hotel options */
.yens { display: inline-flex; gap: 1px; font-weight: 750; font-size: 14px; color: #0d6b3d; letter-spacing: 0; }
.yens span { opacity: 0.2; }
.yens span.on { opacity: 1; }
.price-c { display: inline-flex; align-items: center; gap: 6px; }
.price-label { font-weight: 700; font-size: 13.5px; }
.ir-meta .price-label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ir-meta .yens { font-size: 12.5px; }
.price-level .price-label, .price-level b { font-size: 14px; }
.price-level { margin: 0 0 4px; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.price-level .yens { font-size: 16px; }
.hist-lead { margin: 0 0 8px; font-size: 13.5px; line-height: 1.5; }
.hist-plot { display: grid; grid-template-columns: repeat(8, 1fr); height: 88px; align-items: end; border-bottom: 1px solid #c9ccd2;
  background: linear-gradient(#eef0f3, #eef0f3) 0 50% / 100% 1px no-repeat; }
.hb { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; padding: 0 1px; cursor: default; }
.hb-bar { display: block; width: 100%; min-height: 0; background: #2f8a5a; border-radius: 4px 4px 0 0; }
/* the whole city's share of the same band: a grey cap across the bar */
.hb-city { position: absolute; left: 3px; right: 3px; height: 0; border-top: 2px solid #6b7079; box-shadow: 0 -1px 0 #fff, 0 1px 0 #fff; }
.hb-clip { border-top: 3px dashed #fff; }
.hb:hover .hb-bar { filter: brightness(0.92); }
.hist-x { position: relative; height: 16px; margin-top: 3px; font-size: 10.5px; color: #5d626b; font-variant-numeric: tabular-nums; }
.hist-x span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.hist-x span:last-child { transform: translateX(-30%); }
.hist-key { margin: 6px 0 2px; font-size: 11.5px; color: #5d626b; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.hist-key > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.hist-key .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: #b7d9c5; }
.hist-key .sw-in { background: #2f8a5a; }
.hist-key .sw-city { display: inline-block; width: 12px; height: 0; border-top: 2px solid #6b7079; }
.hist-note { margin: 0; font-size: 12px; }
.hist-table { border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.hist-table th, .hist-table td { padding: 2px 10px 2px 0; text-align: left; }

/* Getting around: every place visitors head for, no inputs */
.trips { list-style: none; padding: 0; margin: 10px 0 4px; display: grid; gap: 2px; }
.trip { display: grid; grid-template-columns: minmax(0, 1fr) 70px 58px; grid-template-areas: "to bar min" "how how how"; column-gap: 8px; align-items: center; padding: 5px 6px; border-radius: 6px; font-size: 14px; }
.trip-to { grid-area: to; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trip-bar { grid-area: bar; background: #f1f2f4; height: 8px; border-radius: 4px; overflow: hidden; }
.trip-bar i { display: block; height: 100%; background: #7fb0dc; border-radius: 4px; }
.trip-near .trip-bar i { background: #1d4e89; }
.trip-min { grid-area: min; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.trip-min b { color: var(--ink); font-size: 15px; }
.trip-how { grid-area: how; font-size: 12px; }
.trip-here .trip-bar, .trip-none .trip-bar { background: transparent; }
.trip-here .trip-min { color: #0d6b3d; font-weight: 650; }
.trip-none { opacity: 0.6; }
.trips-miss { font-size: 12.5px; margin: 4px 6px 0; }
.trip { padding: 4px 6px; }

/* ---------- Cities ---------- */
.book-out { display: grid; gap: 8px; margin: 14px 0 10px; }
.book-h { font-weight: 700; font-size: 16px; margin: 0 0 2px; }
.book-out .btn-book { display: block; text-align: center; padding: 11px 14px; font-size: 16px; border-radius: 10px; }
.btn-book-alt { background: #fff; color: #0d6b3d; border: 1.5px solid #0d6b3d; }
.price-when { font-size: 12px; margin: 6px 0 0; }
.intro-note { font-size: 13px; color: var(--muted); background: #f6f7f8; border-radius: 8px; padding: 8px 10px; }
.yt-line { margin: 0 0 8px; font-size: 14px; }
.yt-line.yt-touristy { padding: 6px 10px; background: #fbf6ec; border-left: 3px solid #d9a441; border-radius: 0 8px 8px 0; }

/* Front page ("/"): the promise and its sources, featured neighbourhoods, then the cities by region */
body.landing { overflow: auto; height: auto; }
.lp { max-width: 1100px; margin: 0 auto; padding: calc(var(--top) + 36px) 20px 48px; }
.lp-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: stretch; margin-bottom: 36px; }
.lp-hero h1 { font-size: 44px; line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 14px; }
.lp-hero h1 span { color: var(--accent); display: block; }
.lp-hero p { font-size: 17px; line-height: 1.5; color: var(--muted); margin: 0; }
.lp-hero .lp-for { color: var(--ink); font-weight: 500; margin-bottom: 10px; }
.lp-hero .lp-src { font-size: 15.5px; }
.lp-badge { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 14px !important; padding: 4px 12px; border-radius: 999px; background: #e3f1e8; color: #0d6b3d !important; font-size: 13.5px !important; font-weight: 650; }
.lp-badge span { font-size: 9px; }
.lp-hero-art { display: flex; flex-direction: column; justify-content: center; }
.lp-hero-txt .lp-proof { margin-top: 20px; }
.lp-strip { list-style: none; padding: 0 0 0 10px; margin: 0; display: flex; height: 340px; }
.lp-strip li { position: relative; flex: 1; margin-left: -14px; border-radius: 14px; overflow: hidden; border: 3px solid #fff; box-shadow: 0 4px 16px rgb(0 0 0 / 0.14); background: #dfe3e0; transform: rotate(-2.5deg); }
.lp-strip li:nth-child(2) { transform: rotate(1.5deg) translateY(10px); z-index: 1; }
.lp-strip li:nth-child(3) { transform: rotate(-1deg); }
.lp-strip a { display: block; height: 100%; }
.lp-strip img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lp-strip-cap { position: absolute; left: 8px; bottom: 8px; font-size: 12px; font-weight: 650; color: #fff; background: rgb(0 0 0 / 0.5); padding: 2px 8px; border-radius: 6px; }
.lp-strip-credit { position: absolute; right: 6px; top: 6px; font-size: 9.5px; color: #fff; background: rgb(0 0 0 / 0.4); padding: 0 5px; border-radius: 3px; max-width: 85%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-proof { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.lp-proof h2 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 10px; }
.lp-nums { display: flex; gap: 24px; margin: 0 0 12px; }
.lp-nums div { display: flex; flex-direction: column-reverse; }
.lp-nums dd { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.lp-nums dt { font-size: 13px; color: var(--muted); }
.lp-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lp-langs { margin: 0 0 6px; font-size: 12.5px; color: var(--muted); }
.lp-chips li { font-size: 14px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; background: #fafaf8; }
.lp-sec { margin-bottom: 40px; }
.lp-sec > h2 { font-size: 22px; letter-spacing: -0.01em; margin-bottom: 14px; }
.lp-404 { max-width: 560px; padding-top: 40px; }
.lp-404 h1 { font-size: 30px; letter-spacing: -0.015em; margin-bottom: 10px; }
.lp-404-list { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0; margin: 16px 0; list-style: none; font-weight: 600; }
.lp-feats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-feat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.lp-feat-body { display: flex; flex-direction: column; flex: 1; }
.lp-ph { position: relative; margin: 0; aspect-ratio: 16 / 9; background: #dfe3e0; }
.lp-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lp-credit { position: absolute; right: 6px; bottom: 5px; font-size: 10.5px; color: #fff; background: rgb(0 0 0 / 0.45); padding: 1px 6px; border-radius: 4px; max-width: 90%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-credit a { color: #fff; }
.lp-feat-body { padding: 12px 14px 14px; }
.lp-city { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }
.lp-feat h3 { font-size: 19px; margin: 3px 0 6px; }
.lp-feat h3 a { color: var(--ink); text-decoration: none; }
.lp-feat h3 .local { font-weight: 400; color: var(--muted); font-size: 0.8em; }
.lp-sum { margin: 0 0 8px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.lp-feat .lp-signals { padding-top: 10px; margin: auto 0 10px; border-top: 1px solid var(--line); gap: 6px; }
.lp-signals .sig-k { width: 100px; font-size: 11px; }
.lp-signals .stay-tag { display: none; }
.lp-more { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.lp-more:hover { text-decoration: underline; }
.lp-ccs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-cc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.lp-cc:hover { border-color: #c9ced6; box-shadow: 0 2px 8px rgb(0 0 0 / 0.06); }
.lp-cc-map { position: relative; display: block; background: #eef1ee; border-bottom: 1px solid var(--line); overflow: hidden; }
.lp-cc-photo, .lp-cc-cap { position: absolute; opacity: 0; transition: opacity 0.25s ease; pointer-events: none; }
.lp-cc-photo { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-cc-cap { left: 8px; bottom: 8px; right: 8px; font-size: 11px; color: #fff; background: rgb(0 0 0 / 0.5); padding: 2px 7px; border-radius: 4px; width: fit-content; max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) { .lp-cc-map:hover .lp-cc-photo, .lp-cc-map:hover .lp-cc-cap { opacity: 1; } }
.lp-bases { flex-direction: column; align-items: flex-start; gap: 6px; }
.lp-bases .lp-k { width: auto; align-self: flex-start; text-align: left; }
.lp-base-list { display: flex; flex-wrap: wrap; gap: 5px; flex: 1; min-width: 0; }
.lp-base { white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; background: #fff; }
.lp-base:hover { border-color: #0d6b3d; }
.lp-base .yens { font-size: 11.5px; }
.lp-map { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; }
.lp-rail { fill: none; stroke: #b9bfc6; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.lp-cc-body { padding: 12px 16px 14px; }
.lp-cc .lp-city { margin-bottom: 2px; }
.lp-cc h3 { font-size: 22px; letter-spacing: -0.015em; }
.lp-cc-name { color: var(--ink); text-decoration: none; }
.lp-cc h3 .local { font-weight: 400; color: var(--muted); font-size: 0.7em; }
.lp-hook { color: var(--muted); font-size: 14px; line-height: 1.4; margin: 3px 0 8px; }
.lp-range, .lp-bases { display: flex; align-items: center; gap: 6px; margin: 0; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: inherit; text-decoration: none; flex-wrap: wrap; }
.lp-range b { font-size: 16px; }
.lp-range .muted { font-size: 13px; }
.lp-k { width: 100px; flex: none; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.lp-helps { list-style: none; padding: 18px 0 0; margin: 0 0 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; border-top: 1px solid var(--line); }
.lp-helps li { display: flex; gap: 12px; align-items: flex-start; }
.lp-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #fbe9df; color: var(--accent); }
.lp-helps li:nth-child(2) .lp-icon { background: #e3f1e8; color: #0d6b3d; }
.lp-helps li:nth-child(3) .lp-icon { background: #e6eef8; color: #1d4e89; }
.lp-helps li:nth-child(4) .lp-icon { background: #f1e8f6; color: #7a3d99; }
.lp-helps h3 { font-size: 16px; margin-bottom: 4px; }
.lp-helps p { margin: 0; color: var(--muted); line-height: 1.45; font-size: 14px; }
/* Top-bar city menu on the front page, grouped by region, so it holds any number of cities. */
.city-menu { position: relative; }
.city-menu summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 8px; padding: 4px 12px; font-size: 14px; font-weight: 600; background: #fff; }
.city-menu summary::-webkit-details-marker { display: none; }
.city-menu summary::after { content: '▾'; color: var(--muted); margin-left: 6px; }
@media (max-width: 760px) {
  .lp { padding: calc(var(--top) + 20px) 14px 32px; }
  .lp-hero { grid-template-columns: 1fr; gap: 18px; margin-bottom: 28px; }
  .lp-strip { height: 110px; }
  .lp-strip-credit { font-size: 8.5px; max-width: 90%; }
  .lp-strip-cap { font-size: 11px; left: 6px; bottom: 6px; }
  .lp-hero h1 { font-size: 32px; }
  .lp-hero p { font-size: 16px; }
  .lp-feats { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .lp-feat { scroll-snap-align: start; }
  .lp-ccs { grid-template-columns: 1fr; gap: 10px; }
  .lp-cc { display: grid; grid-template-columns: 96px 1fr; }
  .lp-cc-map { border-bottom: 0; border-right: 1px solid var(--line); }
  .lp-cc-map .lp-map { height: 100%; aspect-ratio: auto; }
  .lp-cc-body { padding: 10px 12px; }
  .lp-cc h3 { font-size: 19px; }
  .lp-range, .lp-bases { flex-wrap: wrap; white-space: normal; gap: 2px 6px; padding: 5px 0; }
  .lp-k { width: 100%; }
  .lp-hook { margin-bottom: 4px; }
  .lp-helps { grid-template-columns: 1fr; gap: 12px; margin-bottom: 28px; }
  .lp-icon { width: 36px; height: 36px; border-radius: 10px; }
  .lp-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .lp-nums dd { font-size: 23px; }
  .lp-nums dt { font-size: 12px; white-space: nowrap; }
  .lp-helps h3 { font-size: 15px; }
  .lp-helps p { font-size: 13px; }
  .landing .tagline { display: none; }
}

/* Train line badges: official colour with the line's letter or number. */
.lb { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box; border-radius: 4px; font-size: 11px; font-weight: 750; line-height: 1; letter-spacing: 0; vertical-align: -3px; }
.lb-plain { background: #e5e7eb; color: #374151; font-weight: 600; }
.lbs { display: inline-flex; flex-wrap: wrap; gap: 3px; vertical-align: -3px; }
.lbs .lb { vertical-align: 0; }
.trip-how .lb { min-width: 16px; height: 16px; font-size: 10px; vertical-align: -2px; }

/* Highlight kinds share their map pin's colour. */
.hl-temple, .hl-shrine { color: #b91c1c; }
.hl-market, .hl-food-street { color: #c2410c; }
.hl-park, .hl-garden, .hl-riverside-walk, .hl-walk, .hl-riverside-quarter { color: #15803d; }
.hl-shopping, .hl-shop, .hl-street, .hl-lane, .hl-district { color: #7c3aed; }
.hl-museum, .hl-theatre, .hl-historic-site, .hl-landmark { color: #1e40af; }

/* Hover and tap tags on the map */
.map-tag .maplibregl-popup-content { padding: 6px 9px; border-radius: 8px; font-size: 13px; box-shadow: 0 2px 8px rgb(0 0 0 / 0.18); pointer-events: none; }
.map-tag .maplibregl-popup-tip { display: none; }
.map-tag strong { font-weight: 700; }
.map-tag .lbs { margin-left: 4px; }
.area-tag { min-width: 250px; max-width: 270px; }
.area-tag p { margin: 3px 0 0; line-height: 1.35; }
.area-tag .muted { font-size: 12px; }
.area-tag-sig { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 5px; font-size: 12px; }
/* Hover card hotel block: hotel count, the hotel card's level scale (shrunk) and the "most hotels" range. */
.area-tag-hotels { margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--line); font-size: 12.5px; }
.area-tag .area-tag-hotels p { margin: 0; }
.area-tag .area-tag-hotels .muted { font-size: 12.5px; }
.area-tag-hotels .lvl-scale { margin: 6px 0 5px; gap: 2px; }
.area-tag-hotels .lvl-step { font-size: 11px; padding: 2px 0; }
.area-tag-hotels .lvl-step:first-child { border-radius: 4px 0 0 4px; }
.area-tag-hotels .lvl-step:last-child { border-radius: 0 4px 4px 0; }

/* Area list: tabs by role, then one grouped list with hairline rows */
/* top: -4px cancels .panel-body's 4px top padding, or scrolled text shows in a strip above the stuck tabs. */
.itabs { position: sticky; top: -4px; z-index: 1; display: flex; gap: 2px; margin: 18px -16px 0; padding: 8px 16px; background: var(--bg); }
.itabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 8px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.itabs button:hover { color: var(--ink); background: #eeefec; }
.itabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.itab-n { font-size: 12px; font-weight: 600; opacity: 0.6; font-variant-numeric: tabular-nums; }
.intro-sub { margin: 4px 2px 10px; font-size: 13px; color: var(--muted); }
.intro-list { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.intro-list li + li .ir-txt { border-top: 1px solid var(--line); }
.ir { display: flex; align-items: stretch; gap: 12px; padding: 0 12px; text-decoration: none; color: var(--ink); }
.ir:hover, .ir:focus-visible { background: #f6f7f5; }
.ir .thumb { flex: none; align-self: center; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: #e8e9e6; }
.ir-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 11px 0; }
.ir-name strong { font-size: 15px; }
.ir-line { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ir-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 3px; font-size: 12.5px; }
.ir-meta .beds svg { width: 15px; height: 15px; }
.ir-meta .stay-label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ir-meta .stay-tag { display: none; }
.ir-meta .feel-chip { font-size: 11px; padding: 1px 7px; vertical-align: 0; }
.ir-pick { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; color: #0d6b3d; }
.ir-pick::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #0d6b3d; }
.ir-stay { color: var(--muted); }
.ir-stay b { color: var(--ink); font-weight: 600; }
.ir-go { flex: none; align-self: center; width: 18px; height: 18px; fill: none; stroke: #b3b7bf; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ir:hover .ir-go { stroke: var(--ink); }
@media (max-width: 760px) {
  .itabs button { font-size: 13.5px; padding: 0 6px; gap: 4px; }
  .ir .thumb { width: 52px; height: 52px; }
}

/* Area header: role and name, one line on why, three fact tiles, one action box, then the photo (phone) and summary. */
.area-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0 2px; }
.area-top .eyebrow { margin: 0; display: flex; align-items: center; gap: 8px; }
.area-top .pick-chip { font-size: 10.5px; letter-spacing: 0.02em; padding: 1px 8px; text-transform: none; vertical-align: 0; }
.btn-pin-s { font-size: 13px; padding: 4px 11px; border-radius: 999px; flex: none; }
.verdict { margin: 4px 0 0; font-size: 16px; line-height: 1.35; font-weight: 650; color: var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; margin: 12px 0 0; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 9px 9px; color: inherit; text-decoration: none; }
a.tile:hover { border-color: #b9bec6; }
.tile-k { font-size: 10.5px; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; }
.tile-v { font-size: 13.5px; font-weight: 700; line-height: 1.2; }
.tile-none { color: var(--muted); }
.tile-s { font-size: 12px; color: var(--muted); line-height: 1.2; margin-top: -2px; }
.tile .adj-chip { font-size: 11px; white-space: normal; }
.area-h .area-photo { margin: 0; }
.tile .beds svg { width: 16px; height: 16px; }
.act { margin: 12px 0 0; border-radius: 12px; padding: 12px; background: #fff; border: 1px solid var(--line); }
.act-stay { background: #f3f9f5; border-color: #cfe3d7; }
.act-k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; color: #0d6b3d; }
.act-k-muted { color: var(--muted); }
.act p { margin: 0; }
.act-range { margin-top: 0 !important; font-size: 13.5px; }
.act-range b { font-size: 22px; letter-spacing: -0.01em; color: #0d6b3d; margin-right: 2px; }
.act-name { margin-top: 3px !important; font-size: 15.5px; font-weight: 700; }
.act-base { color: var(--ink); text-decoration: none; }
.act-base:hover { text-decoration: underline; }
.act-base .local { font-weight: 400; color: var(--muted); font-size: 14px; }
.act-sub { margin-top: 2px !important; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.act-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.act-btns .btn-book { padding: 8px 14px; font-size: 14px; border-radius: 8px; }
.act-more { font-size: 14px; }
.act-btns-only { margin-top: 0; }
.act-minor { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 10px; padding-top: 9px; border-top: 1px solid #dde9e1; font-size: 13px; color: var(--muted); }
.act-minor .btn-book { padding: 4px 12px; font-size: 13px; }
.area-h .crowdnote { margin: 12px 0 0; }
.summary-w { margin: 12px 0 0; }
.summary-w .summary { margin: 0; }
.summary-more { border: 0; background: none; padding: 2px 0 0; color: #1d4e89; font-size: 14px; cursor: pointer; }
.living { margin: 12px 0 0; padding: 10px 12px 10px; background: #f7f5f0; border-radius: 8px; }
.living-h { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.living ul { margin: 0; padding: 0 0 0 16px; font-size: 14px; line-height: 1.45; }
.living li + li { margin-top: 4px; }
.living-src { font-size: 12px; color: #1d4e89; white-space: nowrap; }
.area-cov { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 10px 0 14px; font-size: 13.5px; color: var(--muted); }
.cov-n { font-weight: 700; color: var(--ink); }
.sticky-book { display: none; }
@media (max-width: 760px) {
  .sticky-book { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: sticky; bottom: -16px; margin: 0 -16px -16px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgb(0 0 0 / 0.08); transform: translateY(110%); opacity: 0; pointer-events: none; transition: transform 0.2s ease, opacity 0.2s ease; z-index: 2; }
  .sticky-book.on { transform: none; opacity: 1; pointer-events: auto; }
  .sb-range { font-size: 14px; color: var(--ink); line-height: 1.25; white-space: nowrap; }
  .sb-unit { display: block; font-size: 12px; color: var(--muted); }
  .sticky-book .btn-book { padding: 9px 14px; font-size: 14px; border-radius: 8px; white-space: nowrap; }
  .area-h { display: flex; flex-direction: column; }
  .area-h > * { order: 0; }
  .area-h .area-photo { order: 1; margin-top: 12px; }
  .area-h .area-photo img { aspect-ratio: 16 / 8; }
  .area-h .summary-w, .area-h .living, .area-h .area-cov { order: 2; }
  .area-h .area-top { margin-top: 2px; }
  .area-h .verdict { font-size: 15px; }
  .tiles { margin-top: 10px; }
  .tile { padding: 7px 8px 8px; gap: 3px; }
  .act { margin-top: 10px; padding: 10px 12px; }
  .summary-w.clamp .summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  /* Keep every city, and the selected one, fully on screen. */
  .topbar { gap: 8px; padding: 0 10px; }
  .brand { font-size: 16px; flex: none; }
}
.near-note { margin: 8px 2px 0; font-size: 13px; color: var(--muted); }
.ir-line.ir-route { white-space: normal; color: var(--ink); }

/* Price verdict: the level on a four-step scale, then one plain line */
.lvl-scale { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin: 6px 0 6px; }
.lvl-step { text-align: center; font-size: 12px; padding: 5px 0; background: #eef2ef; color: #6b7280; }
.lvl-step:first-child { border-radius: 6px 0 0 6px; }
.lvl-step:last-child { border-radius: 0 6px 6px 0; }
.lvl-step.on { background: #0d6b3d; color: #fff; font-weight: 700; }
.lvl-line { margin: 0 0 4px; font-size: 14px; }
.price-sum .lvl-line { font-size: 14px; color: inherit; }
.price-more { margin: 8px 0 4px; }
.price-more summary { cursor: pointer; color: #1d5fa8; font-size: 14px; }
.price-more > p { font-size: 13px; margin: 8px 0; }

/* Range chart: most hotels here against the whole city, on one price scale */
.rc { margin: 12px 0 6px; display: grid; gap: 12px; }
.rc-h { margin: 0; font-size: 13px; color: var(--muted); }
.rc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.rc-label { font-weight: 700; font-size: 16px; }
.rc-val { font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc-city .rc-label { font-weight: 600; }
.rc-track { position: relative; height: 10px; border-radius: 5px; background: #eceef0; }
.rc-bar { position: absolute; top: 0; height: 10px; border-radius: 5px; background: #0d6b3d; }
.rc-city .rc-bar { background: #9ca3af; }
.rc-note { margin: 0; font-size: 14px; }
.rc-how { font-size: 14px; color: var(--muted); text-decoration: none; }
.rc-how:hover { text-decoration: underline; }
.price-sum .price-level { display: block; }

/* Life round the hotel, inside the "Staying in" card: one line per fact. */
.stay-facts { list-style: none; margin: 12px 0 4px; padding: 0; display: grid; gap: 8px; }
.stay-facts li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 14.5px; line-height: 1.4; }
.stay-facts .ico { width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: #0d6b3d; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Flags: small images beside a country or city name (decorative; the name is always written). */
.flag { display: inline-block; width: 16px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.12); vertical-align: -1px; margin-right: 6px; object-fit: cover; }
.lp-city .flag { vertical-align: -1px; }

/* City menu (every page): a panel of countries, each city with its local name, best bases and hotel prices. */
.city-menu summary { display: inline-flex; align-items: center; white-space: nowrap; }
.city-menu summary .flag { margin-right: 6px; }
.city-menu-list { position: absolute; top: calc(100% + 8px); left: 0; z-index: 10; width: min(680px, calc(100vw - 24px)); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 40px rgb(0 0 0 / 0.16); padding: 16px 18px 12px; }
.cm-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 18px; }
.cm-country { display: flex; align-items: center; margin: 0 0 4px; font-size: 11.5px; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.cm-city { display: block; margin: 0 -8px; padding: 6px 8px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.cm-city:hover, .cm-city:focus-visible { background: #f4f1ec; }
.cm-city[aria-current="page"] { background: #fbeee6; }
.cm-name { display: block; font-size: 15px; font-weight: 650; }
.cm-local { font-weight: 400; font-size: 13px; color: var(--muted); margin-left: 2px; }
.cm-facts { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.cm-all { display: block; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.cm-all:hover { text-decoration: underline; }

/* Footer (front page and other plain pages). */
.site-foot { margin-top: 24px; background: #fff; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.5; }
.sf-cols { max-width: 1120px; margin: 0 auto; padding: 32px 24px 8px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px 40px; }
.site-foot h2 { font-size: 12px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 10px; color: var(--ink); }
.site-foot p { margin: 0 0 8px; }
.site-foot a { color: var(--ink); }
.sf-cities ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; }
.sf-cities li { white-space: nowrap; }
.sf-cities .flag { margin-right: 8px; vertical-align: -1px; }
.sf-country { font-size: 12.5px; }
.sf-small { font-size: 12.5px; }
.site-foot .sf-bottom { max-width: 1120px; margin: 0 auto; padding: 12px 24px 28px; font-size: 12.5px; }
@media (max-width: 760px) {
  .city-menu-list { position: fixed; top: calc(var(--top) + 6px); left: 8px; right: 8px; width: auto; max-height: calc(100vh - var(--top) - 20px); overflow-y: auto; padding: 14px 14px 10px; }
  .cm-groups { grid-template-columns: repeat(2, 1fr); gap: 10px 12px; }
  .cm-city { padding: 7px 8px; }
  .sf-cols { grid-template-columns: 1fr; gap: 20px; padding: 24px 16px 4px; }
  .site-foot .sf-bottom { padding: 10px 16px 24px; }
}

/* Currency picker (top bar, right). A form of buttons: /currency keeps the choice and comes back. */
.cur-menu { position: relative; margin-left: auto; }
.cur-menu summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-size: 14px; font-weight: 600; background: #fff; white-space: nowrap; }
.cur-menu summary::-webkit-details-marker { display: none; }
.cur-menu summary::after { content: '▾'; color: var(--muted); margin-left: 6px; }
.cur-list { position: absolute; top: calc(100% + 8px); right: 0; z-index: 10; width: 250px; max-height: min(70vh, 520px); overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 40px rgb(0 0 0 / 0.16); padding: 10px 8px; margin: 0; }
.cur-k { margin: 2px 8px 6px; font-size: 11.5px; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.cur-opt { display: flex; gap: 8px; align-items: center; width: 100%; text-align: left; border: 0; background: none; padding: 6px 8px; border-radius: 8px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.cur-opt b { min-width: 40px; font-weight: 650; }
.cur-opt .flag, .cur-menu summary .flag { margin-right: 0; flex: none; }
.cur-menu summary { display: inline-flex; align-items: center; gap: 6px; }
.flag-globe { box-shadow: none; color: var(--muted); }
.cur-opt:hover, .cur-opt:focus-visible { background: #f4f1ec; }
.cur-opt[aria-current="true"] { background: #fbeee6; }
.cur-opt:first-of-type { margin-bottom: 4px; }

/* City cards: how much we've researched, in the proof panel's number style, and the language the sources are in. */
.lp-cstats { display: flex; gap: 18px; margin: 8px 0 6px; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-cstats div { display: flex; flex-direction: column-reverse; }
.lp-cstats dd { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.lp-cstats dt { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.lp-src { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.lp-src span { color: var(--ink); font-weight: 600; }
/* Neighbourhood cards: "Local pick" as a badge on the photo; signal labels on one line. */
.lp-pick { position: absolute; top: 10px; left: 10px; font-size: 13px; padding: 4px 11px; color: #fff; background: #0d6b3d; box-shadow: 0 1px 6px rgb(0 0 0 / 0.35); }
.lp-signals .sig-k { white-space: nowrap; }
@media (max-width: 760px) {
  .lp-cstats { gap: 14px; margin: 6px 0 4px; padding: 6px 0; }
  .lp-cstats dd { font-size: 17px; }
  .lp-nums { grid-template-columns: repeat(2, 1fr); }
  /* City cards on phones: the outline map as a short strip across the top, not a narrow column beside the text. */
  .lp-cc { display: block; }
  .lp-cc-map { border-right: 0; border-bottom: 1px solid var(--line); }
  .lp-cc-map .lp-map { width: 100%; height: 130px; aspect-ratio: auto; }
}
