@font-face { font-family: "Bowlby One"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/bowlby-one-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("assets/fonts/figtree-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("assets/fonts/figtree-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Doe-micile: a Vice City roadside motel at dusk. Night lot, teal sign, neon pink, fry gold, cream lettering. */
:root {
  --bg: #101826;
  --panel: #172235;
  --panel-2: #1f2d44;
  --panel-3: #283a56;
  --line: #34496a;
  --text: #fff3d6;
  --muted: #b4c2d4;
  --sign: #17625e;
  --sign-2: #0f4f4b;
  --pink: #ff4f8b;
  --orange: #ff8a3d;
  --accent: #ffd166;
  --good: #ffd166;
  --bad: #ff4f8b;
  --water: #4fb3e8;
  --land: #8fd694;
  --built: #ff8a3d;
  --display: "Bowlby One", "Figtree", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  font-family: "Figtree", ui-sans-serif, system-ui, sans-serif;
  color-scheme: dark;
  accent-color: var(--pink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
::selection { background: var(--pink); color: var(--bg); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
* { scrollbar-color: var(--panel-3) transparent; scrollbar-width: thin; }
body { margin: 0; background: var(--bg); color: var(--text); height: 100dvh; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; caret-color: var(--pink); }
button, input, select { font: inherit; color: inherit; }
a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--pink); }
h1, h3 { text-wrap: balance; }
h2 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h3 { margin: 0; }
.muted { color: var(--muted); font-size: 0.875rem; }
.note { color: var(--muted); font-size: 0.82rem; line-height: 1.45; margin: 0.5rem 0 0; max-width: 62ch; }
.empty { color: var(--text); padding: 2.5rem 1rem; text-align: center; max-width: 40ch; margin: 0 auto; line-height: 1.5; display: grid; justify-items: center; gap: 0.4rem; }
.empty img { height: 160px; width: auto; animation: doe-bob 2.8s ease-in-out infinite; transform-origin: bottom center; }
.empty .quip { font-family: var(--display); font-size: 1.35rem; color: var(--pink); margin: 0.5rem 0 0; line-height: 1.1; }
.empty p { margin: 0; }
@keyframes doe-bob { 50% { transform: rotate(-3deg) translateY(-4px); } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.brand-h1 { margin: 0; font: inherit; font-size: 2rem; }
.filters input::placeholder { color: #8fa3b8; opacity: 1; }
.skip-link { position: absolute; z-index: 2000; left: 0.75rem; top: 0.75rem; padding: 0.7rem 1rem; background: var(--text); color: var(--bg); font-weight: 800; text-decoration: none; }
.skip-link:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
main:focus { outline: none; }
a, button, summary, select, input, label { touch-action: manipulation; -webkit-tap-highlight-color: rgb(255 79 139 / 0.25); }
.icon { width: 1.05em; height: 1.05em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon.filled { fill: currentColor; }

/* Header: the motel sign */
.top { display: flex; flex-direction: column; background: var(--sign); }
.top-row { display: flex; align-items: center; gap: 1.25rem 2rem; padding: 0.7rem 1.25rem 0.6rem; flex-wrap: wrap; }
.brand { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 0.7rem; align-items: center; text-decoration: none; color: var(--text); }
.brand img { grid-row: 1 / 3; height: 56px; width: auto; transition: transform 300ms var(--ease); }
.brand:hover img { transform: rotate(-6deg); }
.wordmark { font-family: var(--display); font-size: 2rem; line-height: 0.95; letter-spacing: -0.02em; color: var(--text); }
.tagline { font-weight: 700; font-size: 0.9rem; color: var(--accent); }
.wordmark-line { white-space: nowrap; }
.wordmark-sub { font-family: var(--display); font-size: 1rem; letter-spacing: 0.01em; color: var(--accent); }
.wordmark-line .tagline { color: #d7f2ee; font-weight: 600; }
.filters-toggle { display: none; }
.vacancy { display: grid; grid-template-columns: auto auto; column-gap: 0.7rem; align-items: baseline; padding: 0.35rem 0.9rem 0.45rem; background: var(--bg); }
.vacancy-word { font-family: var(--display); font-size: 1.25rem; color: var(--pink); animation: neon-flicker 7s steps(1) infinite; }
.vacancy-num { font-family: var(--display); font-size: 1.25rem; color: var(--text); }
.vacancy-unit { font-family: "Figtree", sans-serif; font-weight: 700; font-size: 0.9rem; color: var(--muted); }
.guide { grid-column: 1 / -1; font-size: 0.82rem; font-weight: 600; color: var(--accent); }
@keyframes neon-flicker { 0%, 61%, 64%, 100% { opacity: 1; } 62% { opacity: 0.35; } 63% { opacity: 0.8; } }
.status-line { margin: 0; padding: 0 1.25rem 0.55rem; font-size: 0.82rem; color: #d7f2ee; }
.status-line.stale { color: var(--accent); }
.sunset { order: 3; display: grid; grid-template-rows: repeat(4, 5px); }
.sunset i:nth-child(1) { background: var(--pink); }
.sunset i:nth-child(2) { background: var(--orange); }
.sunset i:nth-child(3) { background: var(--accent); }
.sunset i:nth-child(4) { background: var(--bg); }
.tabs { display: flex; gap: 0.3rem; margin-left: auto; }
.tab { background: transparent; border: none; border-radius: 0; padding: 0.5rem 0.9rem; cursor: pointer; color: var(--text); font-weight: 700; transition: background-color 160ms, color 160ms; }
.tab:hover { background: var(--sign-2); }
.tab.active { background: var(--text); color: var(--bg); }
.tab:active { transform: translateY(1px); }
.count { background: var(--pink); color: var(--bg); border-radius: 999px; padding: 0 0.45rem; font-size: 0.82rem; margin-left: 0.2rem; font-weight: 800; }

.filters { display: flex; flex-wrap: wrap; gap: 0.6rem 0.9rem; align-items: end; padding: 0.7rem 1.25rem; background: var(--panel); }
.filters label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.filters input[type=number], .filters select { width: 8.5rem; background: var(--bg); border: 1px solid var(--line); border-radius: 0; padding: 0.4rem 0.5rem; }
.filters input:hover, .filters select:hover { border-color: var(--muted); }
#f-surround, #f-sort { width: 12.5rem; }
label.check { flex-direction: row !important; align-items: center; gap: 0.45rem !important; font-size: 0.88rem !important; color: var(--text) !important; }
.more-filters { position: relative; }
.more-filters summary { list-style: none; cursor: pointer; background: var(--panel-3); padding: 0.42rem 0.85rem; font-size: 0.9rem; font-weight: 700; }
.more-filters summary:hover { background: var(--line); }
.more-filters summary::-webkit-details-marker { display: none; }
.more-filters summary::after { content: ""; display: inline-block; width: 0.4em; height: 0.4em; margin-left: 0.5em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-0.15em) rotate(45deg); }
.more-filters[open] summary { background: var(--text); color: var(--bg); }
.more-panel { position: absolute; z-index: 1100; top: calc(100% + 6px); left: 0; display: grid; gap: 0.7rem; min-width: 17rem; padding: 1rem; background: var(--panel-3); }
.more-panel select { width: 100%; }
.result-count { margin-left: auto; align-self: center; }

main { flex: 1; min-height: 0; overflow: auto; padding: 1.25rem; }
.view { display: none; }
.view.active { display: block; }

/* Buttons: square, flat, one fill */
.btn { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--panel-3); border: none; border-radius: 0; padding: 0.42rem 0.75rem; cursor: pointer; text-decoration: none; font-size: 0.86rem; font-weight: 700; color: var(--text); transition: background-color 140ms, color 140ms, transform 140ms var(--ease); }
.btn:hover:not(:disabled) { background: var(--line); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.4; cursor: default; }
.btn.on { background: var(--pink); color: var(--bg); }
.btn.on:hover:not(:disabled) { background: var(--accent); }
.btn.primary-btn { background: var(--accent); color: var(--bg); }
.btn.primary-btn:hover { background: var(--text); }
.icon-btn { padding: 0.45rem; }
.primary { background: var(--pink); color: var(--bg); border: none; border-radius: 0; padding: 0.6rem 1.1rem; font-weight: 800; cursor: pointer; }
.primary:hover { background: var(--accent); }
.linkish { background: none; border: none; padding: 0; cursor: pointer; text-align: left; color: var(--text); font: inherit; text-decoration: underline; text-decoration-color: var(--pink); text-underline-offset: 3px; }
.linkish:hover { color: var(--accent); }
.actions { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
kbd { background: var(--panel-3); padding: 0 0.4rem; font: 700 0.82rem "Figtree", sans-serif; color: var(--text); }
.keys { text-align: center; margin-top: 1rem; }

/* Atlas */
main:has(#view-atlas.active) { padding: 0; overflow: hidden; }
#view-atlas.active { height: 100%; }
.atlas { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(380px, 1fr); height: 100%; }
.atlas-pane { position: relative; display: flex; flex-direction: column; min-height: 0; }
.pane-bar { display: flex; align-items: center; gap: 1rem; padding: 0.55rem 0.9rem; background: var(--panel); flex-wrap: wrap; }
.segmented { display: inline-flex; padding: 3px; background: var(--bg); }
.seg { border: none; background: none; padding: 0.3rem 0.9rem; border-radius: 0; cursor: pointer; color: var(--muted); font-weight: 700; }
.seg:hover { color: var(--text); }
.seg.active { background: var(--accent); color: var(--bg); }
.value-axis { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--muted); }
.value-axis select { background: var(--bg); border: 1px solid var(--line); border-radius: 0; padding: 0.25rem 0.4rem; }
.atlas-map { flex: 1; min-height: 0; background: #1b4f72; }
.leaflet-container { font: inherit; background: #1b4f72; }
.leaflet-tooltip { background: var(--bg); color: var(--text); border: none; border-radius: 0; box-shadow: 0 8px 20px rgba(4, 8, 16, 0.55); font-size: 0.82rem; } /* taste-skill-ignore: floating overlay or map scrim */
.leaflet-tooltip-top::before { border-top-color: var(--bg); }
.leaflet-bar a { background: var(--panel-2); color: var(--text); border-bottom-color: var(--line); }
.leaflet-bar a:hover { background: var(--panel-3); }
.leaflet-bar { border: none !important; border-radius: 0 !important; }
.leaflet-bar a { border-radius: 0 !important; }
.leaflet-control-attribution { background: rgba(16, 24, 38, 0.8) !important; color: var(--muted); }
.leaflet-control-attribution a { color: var(--muted); }

.value-plot { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0.6rem 0.4rem 0.8rem 0.6rem; }
.value-plot canvas { flex: 1; min-height: 0; width: 100%; }
.plot-note { margin: 0.4rem 0.6rem 0; max-width: 72ch; line-height: 1.45; }
.value-tip { position: absolute; z-index: 5; pointer-events: none; display: grid; gap: 0.15rem; max-width: 280px; padding: 0.5rem 0.65rem; background: var(--bg); box-shadow: 0 10px 24px rgba(4, 8, 16, 0.6); font-size: 0.82rem; } /* taste-skill-ignore: floating overlay or map scrim */
.value-tip span { color: var(--muted); }

.results { overflow: auto; min-height: 0; padding: 0.75rem; }
.list { display: flex; flex-direction: column; gap: 0.6rem; }
.row-card { display: grid; grid-template-columns: 116px minmax(0, 1fr) auto; gap: 0.9rem; padding: 0.6rem; background: var(--panel); cursor: pointer; transition: background-color 160ms, transform 220ms var(--ease); animation: card-in 420ms var(--ease) backwards; }
.row-card:nth-child(2) { animation-delay: 60ms; } .row-card:nth-child(3) { animation-delay: 120ms; } .row-card:nth-child(4) { animation-delay: 180ms; } .row-card:nth-child(n+5) { animation-delay: 240ms; }
@keyframes card-in { from { opacity: 0; transform: translateY(14px); } }
.row-card:hover { background: var(--panel-2); transform: translateX(3px); }
.row-card.focused { background: var(--panel-3); outline: 3px solid var(--accent); outline-offset: -3px; }
.row-card.skipped { opacity: 0.62; }
.thumb { position: relative; }
.stamp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-12deg); font-family: var(--display); font-size: 0.9rem; color: var(--bg); background: var(--pink); padding: 0.1rem 0.45rem; pointer-events: none; }

.row-card .thumb .mosaic { overflow: hidden; }
.row-card h3 { font-size: 1rem; font-weight: 800; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info { display: flex; flex-direction: column; gap: 0.22rem; min-width: 0; }
.facts-line { color: var(--muted); font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badges { display: flex; flex-wrap: wrap; gap: 0.35rem 0.6rem; align-items: center; font-size: 0.82rem; }
.view-line { display: flex; align-items: center; gap: 0.45rem; color: var(--muted); font-size: 0.82rem; min-width: 0; }
.view-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-actions { align-self: start; }
.more { display: flex; justify-content: center; padding: 1rem 0; }

.price { font-family: var(--display); font-size: 1.15rem; line-height: 1.1; color: var(--accent); }
.price.big { font-size: 2rem; }
.value { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; font-size: 0.84rem; }
.carton { flex: none; width: 26px; height: 24px; }
.carton .fry { fill: var(--accent); }
.carton .box { fill: var(--pink); }
.carton .stripe { fill: var(--text); }
.tier-good { color: var(--accent); }
.tier-fair { color: var(--orange); }
.tier-high { color: #ff9dc0; }
.tier-unknown { color: var(--muted); font-weight: 600; }
.tier-unknown .carton .box { fill: var(--panel-3); }
.tier-unknown .carton .stripe { fill: var(--line); }
.badge-new { font-size: 0.82rem; font-weight: 800; color: var(--bg); background: var(--accent); border-radius: 999px; padding: 0.02rem 0.5rem; }
.badge-stale { font-size: 0.82rem; font-weight: 800; color: var(--bg); background: var(--orange); border-radius: 999px; padding: 0.02rem 0.5rem; }
.rating-Adult { color: var(--pink); }
.rating-Moderate { color: var(--orange); }
.rating-General { color: var(--land); }

/* Map mosaic: N×N SL map tiles, 1 px = 1 m at native size, parcel outlined on the center tile. */
.mosaic { position: relative; display: grid; aspect-ratio: 1; background: #1b4f72; }
.mosaic img { width: 100%; height: 100%; min-height: 0; display: block; object-fit: cover; }
.mosaic .tile-gap { display: block; }
.mosaic .parcel { position: absolute; border: 2px solid var(--accent); background: rgba(255, 209, 102, 0.2); box-shadow: 0 0 0 9999px rgba(16, 24, 38, 0.3); pointer-events: none; } /* taste-skill-ignore: floating overlay or map scrim */
.mosaic .center-region { position: absolute; border: 1px dashed rgba(255, 255, 255, 0.55); pointer-events: none; }
.mosaic { overflow: hidden; }
.mosaic .nomap { display: none; position: absolute; inset: 0; margin: auto; width: 70%; height: fit-content; text-align: center; background: rgba(16, 24, 38, 0.85); padding: 0.5rem; font-size: 0.82rem; pointer-events: none; }
.mosaic.no-center .nomap { display: block; }
.mosaic .label { position: absolute; left: 0.5rem; bottom: 0.5rem; background: var(--bg); padding: 0.15rem 0.5rem; font-size: 0.82rem; font-weight: 700; }
.mosaic .snap { position: absolute; right: 0.5rem; top: 0.5rem; width: 38%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 3px solid var(--text); }
.mosaic.no-center .snap { width: 70%; right: 15%; top: 8%; }

/* View compass */
.rose { flex: none; overflow: visible; }
.rose .seg-water { fill: var(--water); }
.rose .seg-land { fill: var(--land); }
.rose .seg-built { fill: var(--built); }
.rose .seg-none { fill: var(--panel-3); }
.rose .rose-core { fill: var(--accent); }
.rose text { fill: var(--muted); font-size: 11px; text-anchor: middle; dominant-baseline: middle; }
.compass { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: center; }
.view-facts { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.25rem; line-height: 1.4; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.5rem; margin-top: 0.5rem; font-size: 0.82rem; color: var(--muted); }
.legend .key { width: 0.75rem; height: 0.75rem; display: inline-block; margin-left: 0.3rem; }
.legend .key:first-child { margin-left: 0; }
.key.water { background: var(--water); }
.key.land { background: var(--land); }
.key.built { background: var(--built); }

/* Dossier panel */
.dossier { position: fixed; z-index: 1200; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); overflow: auto; background: var(--panel); box-shadow: -18px 0 44px rgba(4, 8, 16, 0.6); padding: 0 1.25rem 1.5rem; animation: dossier-in 260ms var(--ease); } /* taste-skill-ignore: floating overlay or map scrim */
@keyframes dossier-in { from { transform: translateX(24px); opacity: 0.4; } }
@media (prefers-reduced-motion: reduce) { .dossier { animation: none; } }
.dossier-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; margin-bottom: 0.4rem; background: var(--panel); }
.dossier-head .nav { display: flex; align-items: center; gap: 0.4rem; }
.dossier h2 { margin-top: 0.5rem; font-size: 1.75rem; }
.dossier h2:focus { outline: none; }
.sub { margin: 0.25rem 0 0.9rem; }

.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.4rem 0.9rem; margin: 0.9rem 0 0.7rem; }
.dossier section, .review-body section { margin-top: 1.5rem; }
.dossier section h3, .review-body section h3 { font-size: 1.05rem; font-weight: 800; color: var(--pink); margin-bottom: 0.6rem; }
.vrows { display: grid; gap: 0.35rem; }
.vrow { display: grid; grid-template-columns: 8.5rem 6.5rem minmax(0, 1fr); gap: 0.6rem; align-items: baseline; font-size: 0.9rem; }
.facts-grid { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 0.35rem 0.8rem; margin: 0; font-size: 0.9rem; }
.facts-grid dt { color: var(--muted); }
.facts-grid dd { margin: 0; }
.also-title { margin: 0.9rem 0 0.3rem; font-size: 0.85rem; color: var(--muted); }
.also { margin: 0; padding-left: 1.1rem; font-size: 0.9rem; display: grid; gap: 0.2rem; }
.description { margin: 0; color: var(--text); line-height: 1.5; max-width: 65ch; overflow-wrap: anywhere; }
.dossier .keys { margin-top: 1.5rem; font-size: 0.82rem; }

/* Review */
.review-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 1.5rem; max-width: 1280px; margin: 0 auto; }
.review-map { position: sticky; top: 0; align-self: start; }
.review-body .price.big { font-size: clamp(3rem, 5.5vw, 5.25rem); line-height: 0.9; letter-spacing: -0.02em; }
.review-body h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.review-nav { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; }

/* Shortlist and compare */
#shortlist { max-width: 1200px; margin: 0 auto; display: grid; gap: 2rem; }
#shortlist h2 { margin-bottom: 0.6rem; }
.compare-hint { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.compare-scroll { overflow-x: auto; background: var(--panel); }
.compare { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
.compare th, .compare td { padding: 0.55rem 0.8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { min-width: 210px; vertical-align: top; }
.compare thead th:first-child, .compare tbody th { min-width: 9rem; color: var(--muted); font-weight: 500; }
.compare tbody tr:last-child > * { border-bottom: none; }
.compare td.best { color: var(--accent); font-weight: 800; }
.compare-map { margin: 0.5rem 0; overflow: hidden; width: 180px; }
.compare-actions { display: flex; gap: 0.4rem; margin-top: 0.4rem; }
.visit-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.visit-list { list-style: none; padding: 0; margin: 0.8rem 0 0; display: flex; flex-direction: column; gap: 0.6rem; }
.visit-list li { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 0.9rem; align-items: center; background: var(--panel); padding: 0.5rem; }
.visit-list li.visited { opacity: 0.6; }
.visit-list .thumb { width: 80px; overflow: hidden; }

/* Add listing */
.add-form { max-width: 640px; display: flex; flex-direction: column; gap: 0.75rem; }
.add-form label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; color: var(--muted); flex: 1; }
.add-form input, .add-form select { background: var(--panel); border: 1px solid var(--line); border-radius: 0; padding: 0.45rem 0.55rem; }
.add-form .row { display: flex; gap: 0.75rem; flex-wrap: wrap; }

@media (max-width: 900px) {
  main:has(#view-atlas.active) { overflow: auto; }
  .atlas { grid-template-columns: 1fr; height: auto; }
  .atlas-pane { height: 52vh; }
  .results { overflow: visible; }
  .review-wrap { grid-template-columns: 1fr; }
  .review-map { position: static; }
  .result-count { margin-left: 0; width: 100%; }
  .visit-list li { grid-template-columns: 64px minmax(0, 1fr); }
  .visit-list li .actions { grid-column: 1 / -1; }
  .vrow { grid-template-columns: 7.5rem minmax(0, 1fr); }
  .vrow .muted { grid-column: 2; }
}
@media (max-width: 560px) {
  .top-row { padding: 0.55rem 0.75rem; gap: 0.6rem; }
  .wordmark { font-size: 1.55rem; }
  .brand img { height: 46px; }
  .tagline { font-size: 0.82rem; }
  .vacancy { margin-left: auto; padding: 0.3rem 0.6rem; }
  .vacancy-word, .vacancy-num { font-size: 1rem; }
  .guide { display: none; }
  .status-line { display: none; }
  .tabs { width: 100%; justify-content: space-between; margin-left: 0; }
  .tab { flex: 1 1 0; min-width: max-content; min-height: 44px; padding: 0 0.45rem; font-size: 0.95rem; }
  .icon-btn { min-width: 44px; min-height: 44px; justify-content: center; }
  .wordmark-line .tagline { display: none; }
  .filters { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.45rem 0.5rem; padding: 0.5rem 0.75rem; }
  .filters.open { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; align-self: end; min-height: 44px; padding: 0 1.1rem; background: var(--pink); color: var(--bg); border: none; border-radius: 0; font: 800 1rem "Figtree", sans-serif; cursor: pointer; }
  .filters-toggle::after { content: ""; width: 0.45em; height: 0.45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-0.15em) rotate(45deg); transition: transform 180ms var(--ease); }
  .filters.open .filters-toggle { grid-column: 1 / -1; justify-self: start; }
  .filters.open .filters-toggle::after { transform: translateY(0.1em) rotate(-135deg); }
  .filters-toggle .count { background: var(--bg); color: var(--text); margin-left: 0; }
  .filters:not(.open) > label:not(.sort-field), .filters:not(.open) > .more-filters { display: none; }
  .filters label { font-size: 0.82rem; }
  .filters input[type=number], .filters select, #f-surround, #f-sort { width: 100%; min-height: 44px; padding: 0.3rem 0.4rem; font-size: 16px; }
  .more-filters { align-self: end; }
  .more-filters summary { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 0.5rem; }
  .more-panel select { min-height: 44px; font-size: 16px; }
  .seg { min-height: 44px; }
  .more-panel { left: auto; right: 0; }
  .result-count { grid-column: 1 / -1; font-size: 0.82rem; }
  .atlas-pane { height: 45vh; }
  .row-card { grid-template-columns: 84px minmax(0, 1fr) auto; }
  .compass { grid-template-columns: 1fr; justify-items: start; }
}

@media (max-width: 900px) and (min-width: 561px) { .tabs { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) {
  .row-card, .empty img, .vacancy-word { animation: none; }
  .row-card:hover { transform: none; }
}
.leaflet-container .leaflet-control-zoom a { font: 800 18px "Figtree", sans-serif; }
.price .basis { display: inline-block; margin-left: 0.4rem; font: 700 0.82rem "Figtree", sans-serif; color: var(--muted); vertical-align: middle; letter-spacing: 0; }
.price.big .basis { display: block; margin: 0.35rem 0 0; }
.price-row .value { font-size: 1rem; }
.price-row .carton { width: 40px; height: 37px; }
