:root {
  --bg: #f4f3ef;
  --panel: #ffffff;
  --ink: #1d2126;
  --ink-2: #545b64;
  --ink-3: #646b74;
  --line: #e3e1db;
  --accent: #23466b;
  --accent-soft: #e6edf4;
  --warn: #a3321f;
  --warn-soft: #f8e6e2;
  --ok: #2f6b45;
  --ok-soft: #e4f0e7;
  --hl: #fff6d6;
  --radius: 10px;
  --side-w: 420px;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181c; --panel: #1d2126; --ink: #e8e9eb; --ink-2: #b2b7be; --ink-3: #959ca5;
    --line: #2d3238; --accent: #8fb4dc; --accent-soft: #23303d; --warn: #f08a76; --warn-soft: #3a2420;
    --ok: #86c49b; --ok-soft: #1f3226; --hl: #35301c; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); display: flex; flex-direction: column; font-size: 14px; }
button, input, select { font: inherit; color: inherit; }

/* Header */
.top { display: flex; align-items: center; gap: 20px; padding: 12px 20px; background: var(--panel); border-bottom: 1px solid var(--line); flex-wrap: wrap; position: relative; z-index: 1100; }
.brand { display: flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; flex: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--accent); position: relative; flex: none; }
.brand-mark::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--accent); }
.brand-text { font-size: 19px; letter-spacing: -0.02em; font-weight: 500; white-space: nowrap; }
.brand-text b { font-weight: 800; color: var(--accent); }
.brand-text .tld { color: var(--ink-3); font-weight: 500; }
.search { display: flex; gap: 10px; align-items: center; flex: 1; justify-content: flex-end; flex-wrap: wrap; min-width: 0; }
.searchbox { position: relative; flex: 1 1 340px; max-width: 560px; min-width: 0; }
.searchbox .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: none; stroke: var(--ink-3); stroke-width: 2; pointer-events: none; }
.searchbox input { width: 100%; height: 42px; padding: 0 46px 0 40px; border: 1.5px solid var(--line); border-radius: 21px; background: var(--bg); font-size: 15px; }
.searchbox input:focus { outline: none; border-color: var(--accent); background: var(--panel); }
.locate { position: absolute; right: 5px; top: 5px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.locate svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2; }
.locate:hover { background: var(--accent-soft); }
.locate.busy svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.radius { display: flex; background: var(--bg); border: 1.5px solid var(--line); border-radius: 21px; padding: 3px; flex: none; }
.radius button { border: 0; background: transparent; height: 34px; padding: 0 12px; border-radius: 17px; cursor: pointer; color: var(--ink-2); font-weight: 600; font-size: 13px; white-space: nowrap; }
.radius button.on { background: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .radius button.on { color: #11161c; } }
.go { height: 42px; border-radius: 21px; padding: 0 22px; font-size: 15px; }
.tools input[type=search], .tools select { height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); min-width: 0; }
.tools input[type=search]:focus, .tools select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.btn { white-space: nowrap; height: 36px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; }
.btn.small { height: 30px; padding: 0 12px; font-size: 13px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
@media (prefers-color-scheme: dark) { .btn.primary { color: #11161c; } }
.btn.ghost { background: transparent; }
.btn:hover:not(:disabled) { filter: brightness(1.05); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Layout */
.layout { flex: 1; display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 0; position: relative; }
.side { display: flex; flex-direction: column; min-height: 0; background: var(--panel); border-right: 1px solid var(--line); overflow-y: auto; overscroll-behavior: contain; }
.mapwrap { position: relative; min-height: 0; }
#map { position: absolute; inset: 0; background: var(--bg); }

.summary { padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.count { font-size: 15px; }
.count strong { font-size: 26px; font-variant-numeric: tabular-nums; margin-right: 2px; }
.meta { color: var(--ink-3); font-size: 12px; margin-top: 2px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.meta button { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 0; font-size: 12px; text-decoration: underline; }
.meta .warn { color: var(--warn); }

.tools { display: flex; flex-direction: column; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; background: var(--panel); }
.tools-row { display: flex; gap: 8px; }
.tools-row input[type=search] { flex: 1; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--line); background: var(--panel); border-radius: 999px; height: 30px; padding: 0 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.chip.on::before { content: "✓ "; }

/* List */
.list { list-style: none; margin: 0; padding: 0; flex: none; outline: none; }
.item { display: grid; grid-template-columns: 26px 56px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); cursor: pointer; align-items: start; }
.item:hover, .item.hover { background: var(--accent-soft); }
.item.active { background: var(--hl); }
.rank { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; margin-top: 2px; }
@media (prefers-color-scheme: dark) { .rank { color: #11161c; } }
.item.nc .rank { background: var(--warn); }
.thumb { width: 56px; height: 70px; border-radius: 6px; object-fit: cover; background: var(--line); display: block; }
.info { min-width: 0; }
.name-row { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; }
.name { font-weight: 650; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dist { color: var(--accent); font-weight: 600; font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sub { color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.addr { color: var(--ink-2); font-size: 13px; }
.crime { color: var(--ink-3); font-size: 12px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 1px; }
.badge.nc { background: var(--warn-soft); color: var(--warn); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.new { background: var(--accent); color: var(--panel); }
.badge.child { background: var(--accent-soft); color: var(--accent); }
.group-head { padding: 14px 16px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); background: var(--bg); border-bottom: 1px solid var(--line); }
.group-head small { display: block; text-transform: none; letter-spacing: 0; font-size: 12px; margin-top: 2px; }
.item.unplaced .rank { background: var(--ink-3); }
.progress { margin-top: 8px; }
.progress .bar { height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress .bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .4s; }
.progress-text { font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.progress-text .warn { color: var(--warn); }
.nodata { padding: 28px 22px; color: var(--ink-2); line-height: 1.5; }
.nodata h2 { font-size: 16px; color: var(--ink); margin: 0 0 6px; }
/* import dialog */
.dlg { border: 0; border-radius: 14px; padding: 0; width: min(520px, 92vw); background: var(--panel); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.dlg::backdrop { background: rgba(10,14,20,.45); }
.dlg-inner { padding: 22px 24px 18px; }
.dlg h2 { margin: 0 0 12px; font-size: 18px; }
.steps { margin: 0 0 16px; padding-left: 20px; line-height: 1.55; }
.steps a { color: var(--accent); }
.steps code, .dlg-note code { background: var(--bg); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.drop { display: grid; place-items: center; min-height: 110px; border: 2px dashed var(--line); border-radius: 10px; cursor: pointer; color: var(--ink-2); text-align: center; padding: 16px; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.dlg-note { color: var(--ink-3); font-size: 12px; line-height: 1.45; margin: 12px 0 0; }
.dlg-actions { display: flex; justify-content: flex-end; margin-top: 14px; }
.dropveil { position: fixed; inset: 0; background: rgba(35,70,107,.85); color: #fff; display: none; place-items: center; font-size: 22px; font-weight: 600; z-index: 3000; pointer-events: none; }
.dropveil.on { display: grid; }
.empty { padding: 40px 24px; text-align: center; color: var(--ink-3); }
.skeleton .thumb, .skeleton .bar { background: linear-gradient(90deg, var(--line), var(--bg), var(--line)); background-size: 200% 100%; animation: sh 1.2s infinite linear; }
.skeleton .bar { height: 10px; border-radius: 4px; margin: 6px 0; }
@keyframes sh { to { background-position: -200% 0; } }

.side-foot { display: flex; flex-direction: column; gap: 6px; padding: 10px 16px 12px; border-top: 1px solid var(--line); margin-top: auto; }
.side-foot .foot-note { margin: 0; }
.foot-admin { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.foot-links { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; }
.foot-links a { color: var(--accent); text-decoration: none; font-weight: 600; }
.foot-links a:hover { text-decoration: underline; }
.foot-note { color: var(--ink-3); font-size: 11px; line-height: 1.3; }

/* Detail panel */
.detail { position: absolute; top: 0; bottom: 0; left: 0; width: var(--side-w); background: var(--panel); border-right: 1px solid var(--line); transform: translateX(-100%); transition: transform .18s ease; display: flex; flex-direction: column; z-index: 1000; visibility: hidden; }
.detail.open { transform: none; visibility: visible; }
.detail-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.detail-body { overflow-y: auto; padding: 16px; flex: 1; }
.d-hero { display: flex; gap: 14px; }
.d-photo { width: 120px; height: 150px; object-fit: cover; border-radius: 8px; background: var(--line); flex: none; }
.d-name { font-size: 18px; font-weight: 700; margin: 0 0 4px; line-height: 1.2; }
.d-tag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); margin: 2px 4px 2px 0; }
.d-tag.warn { background: var(--warn-soft); color: var(--warn); }
.d-addr { margin-top: 6px; color: var(--ink-2); }
.gallery { display: flex; gap: 6px; margin: 12px 0 4px; overflow-x: auto; }
.gallery img { width: 52px; height: 64px; object-fit: cover; border-radius: 5px; cursor: pointer; opacity: .7; border: 2px solid transparent; }
.gallery img.on { opacity: 1; border-color: var(--accent); }
.d-section { margin-top: 18px; }
.d-section h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); margin: 0 0 8px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; margin: 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }
.crime-card { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.crime-card .c-title { font-weight: 600; }
.crime-card .c-meta { color: var(--ink-2); font-size: 13px; margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 14px; }

/* Map markers: photo + name */
.pin-wrap { background: none; border: 0; }
.pin { position: relative; width: 44px; height: 44px; transition: transform .12s; transform-origin: 50% 50%; }
.pin-photo { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; border: 3px solid var(--accent); background: var(--line); box-shadow: 0 2px 6px rgba(0,0,0,.4); position: relative; }
.pin-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pin.nc .pin-photo { border-color: var(--warn); }
.pin-rank { position: absolute; left: -6px; top: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #fff; font: 700 10px/18px "Segoe UI", system-ui, sans-serif; text-align: center; border: 1.5px solid #fff; }
.pin.nc .pin-rank { background: var(--warn); }
@media (prefers-color-scheme: dark) { .pin-rank { color: #11161c; } }
.pin-photo { overflow: visible; } .pin-photo img { border-radius: 50%; }
.pin-count { position: absolute; right: -8px; top: -6px; background: #111; color: #fff; font: 700 10px/16px "Segoe UI", system-ui, sans-serif; padding: 0 5px; border-radius: 8px; border: 1.5px solid #fff; }
.pin-name { position: absolute; top: 47px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 600 11px/1.2 "Segoe UI", system-ui, sans-serif; color: #111; background: rgba(255,255,255,.92); padding: 1px 5px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.25); pointer-events: none; }
#map.far .pin-name { display: none; }
#map.far .pin, #map.far .pin-photo { width: 30px; height: 30px; }
#map.far .pin-wrap { margin-left: -15px !important; margin-top: -15px !important; }
.pin.hl { transform: scale(1.35); }
.pin.hl .pin-photo { box-shadow: 0 0 0 4px rgba(255,200,40,.75), 0 2px 6px rgba(0,0,0,.4); }
.pin.hl .pin-name { background: #ffe58a; }
.home-pin { width: 18px; height: 18px; border-radius: 4px; background: #111; border: 3px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.4); transform: rotate(45deg); }
.leaflet-popup-content { margin: 10px 12px; font: 13px/1.4 "Segoe UI", system-ui, sans-serif; }
.pop-item { cursor: pointer; padding: 3px 0; }
.pop-item:hover { text-decoration: underline; }

.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%) translateY(20px); background: #222; color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 13px; opacity: 0; pointer-events: none; transition: .2s; z-index: 2000; max-width: 90vw; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* Narrow screens: map on top, list below */
@media (max-width: 1100px) { .search { flex-basis: 100%; justify-content: flex-start; } .searchbox { max-width: none; } }
@media (max-width: 860px) {
  .top { padding: 10px 12px; gap: 10px; }
  .searchbox { flex-basis: 100%; }
  .radius { flex: 1; } .radius button { flex: 1; padding: 0 6px; }
  .map-hint { font-size: 12px; }
  /* phones: the map fills the screen and the list slides in from the left over it */
  .layout { display: block; position: relative; }
  .mapwrap { position: absolute; inset: 0; }
  .side { position: absolute; top: 0; bottom: 0; left: 0; width: min(92vw, 420px); z-index: 1001; border-right: 1px solid var(--line);
    box-shadow: 6px 0 28px rgba(0,0,0,.22); transform: translateX(0); transition: transform .22s ease, box-shadow .22s ease; }
  body.list-min .side { transform: translateX(calc(-100% - 12px)); box-shadow: none; visibility: hidden; transition: transform .22s ease, visibility 0s .22s; }
  .side .list { padding-bottom: 76px; }
  .detail { position: fixed; inset: 0; width: 100%; z-index: 1200; }
}

[hidden] { display: none !important; }
.dlg-note a { color: var(--accent); }

.thumb.nophoto, .d-photo.nophoto { visibility: hidden; }
.item.skeleton { grid-template-columns: 26px 1fr; }

/* Welcome + map hint */
.welcome { padding: 36px 24px; color: var(--ink-2); line-height: 1.55; }
.welcome h2 { color: var(--ink); font-size: 20px; margin: 0 0 8px; letter-spacing: -0.01em; }
.inline-ico { color: var(--accent); font-weight: 700; }
.map-hint { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 900; background: rgba(20,26,34,.82); color: #fff; padding: 7px 14px; border-radius: 999px; font-size: 13px; pointer-events: none; white-space: nowrap; transition: opacity .3s; }
.map-hint.fade { opacity: 0; }
#map { cursor: crosshair; }
#map .leaflet-marker-icon { cursor: pointer; }
.leaflet-dragging #map, .leaflet-dragging .leaflet-grab { cursor: grabbing; }
.click-ring { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--accent); animation: ring .6s ease-out forwards; }
@keyframes ring { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.d-source { color: var(--ink-3); font-size: 12px; line-height: 1.45; margin-top: 22px; border-top: 1px solid var(--line); padding-top: 12px; }

/* First-visit agreement */
.gate { position: fixed; inset: 0; z-index: 5000; background: rgba(12,16,22,.6); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; }
.gate-card { background: var(--panel); color: var(--ink); border-radius: 16px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 26px 28px 22px; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.gate-brand { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.gate h2 { margin: 0 0 8px; font-size: 21px; }
.gate p { color: var(--ink-2); line-height: 1.5; margin: 0 0 14px; }
.agree { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; margin-bottom: 10px; cursor: pointer; line-height: 1.45; }
.agree:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.agree input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.gate-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.gate-actions .btn { height: 42px; }
.gate-declined { color: var(--warn) !important; margin: 12px 0 0 !important; font-weight: 600; }

.asof { color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.stale { margin-top: 8px; background: var(--warn-soft); color: var(--warn); font-size: 12.5px; padding: 8px 10px; border-radius: 8px; line-height: 1.4; }
.stale a { color: inherit; font-weight: 700; }
.official { color: var(--accent); font-size: 13px; text-decoration: none; font-weight: 600; padding-right: 6px; }
.map-note { position: absolute; left: 10px; bottom: 10px; z-index: 900; background: rgba(255,255,255,.9); color: #333; font-size: 11px; padding: 3px 8px; border-radius: 6px; pointer-events: none; }
.d-verified { margin-top: 20px; font-size: 13px; color: var(--ink-2); background: var(--bg); border-radius: 8px; padding: 8px 12px; }
.d-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.d-actions .btn { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.d-source a { color: var(--accent); }
.gate-small { font-size: 12.5px !important; color: var(--ink-3) !important; margin: 6px 0 0 !important; }
.gate-small a { color: var(--accent); }
.dlg-lead { color: var(--ink-2); font-size: 13px; margin: -4px 0 12px; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field small { font-weight: 400; color: var(--ink-3); }
.field select, .field textarea, .field input { font: inherit; font-weight: 400; color: var(--ink); border: 1.5px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--bg); resize: vertical; }
.field select:focus, .field textarea:focus, .field input:focus { outline: none; border-color: var(--accent); }
.dlg-note a { color: var(--accent); }
/* name labels hidden when there's no room for them; shown on hover */
.pin.nolabel .pin-name { display: none; }
.pin.nolabel:hover .pin-name, .pin.hl .pin-name { display: block; z-index: 2; }
.pin.lab-above .pin-name { top: -20px; }

/* logo mark (inline SVG, follows the accent colour in light and dark mode) */
.brand-logo { width: 30px; height: 32px; color: var(--accent); flex: none; display: block; }
.gate-brand .brand-logo { width: 28px; height: 30px; }
.sync-note { flex-basis: 100%; }
.sync-note.warn { color: var(--warn); }

/* calls to action */
.cta-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.cta-row .btn.small { height: 32px; }
.agree.small { padding: 10px 12px; font-size: 13px; margin: 4px 0 8px; }
.agree.small a { color: var(--accent); }
fieldset.field { border: 0; padding: 0; margin: 0 0 12px; }
fieldset.field legend { padding: 0; margin-bottom: 6px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; font-weight: 400; color: var(--ink); }
.checks label { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.checks input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.field-row { display: flex; gap: 10px; } .field-row .field { flex: 1; } .field-row .small-field { flex: 0 0 90px; }
/* places overlay */
.map-toggle { position: absolute; top: 12px; right: 12px; z-index: 900; border: 1.5px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 999px; height: 34px; padding: 0 14px; font-weight: 600; font-size: 13px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.map-toggle.on { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .map-toggle.on { color: #11161c; } }
.places-legend { position: absolute; top: 52px; right: 12px; z-index: 900; background: rgba(255,255,255,.95); color: #333; border-radius: 8px; padding: 6px 10px; font-size: 12px; display: flex; flex-direction: column; gap: 3px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.places-legend span { display: flex; gap: 6px; align-items: center; }
#placesMsg { color: #777; font-size: 11px; }
i.pl { display: inline-block; width: 12px; height: 12px; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
i.pl.school { background: #e0a100; border-radius: 2px; }
i.pl.childcare { background: #c2410c; border-radius: 2px; transform: rotate(45deg); }
i.pl.park { background: #2f8f4e; border-radius: 50%; }
@media (max-width: 860px) { .map-toggle { top: auto; bottom: 34px; right: 10px; } .places-legend { top: auto; bottom: 74px; } .map-hint { display: none; } }

/* seasonal note at the top of the results panel */
.season { position: relative; margin: 10px 12px 0; padding: 9px 30px 9px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--ink); font-size: 13px; line-height: 1.4; }
.season a { color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.season a:hover { text-decoration: underline; }
.season-x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border: 0; background: none; color: var(--ink-3); font-size: 18px; line-height: 1; cursor: pointer; border-radius: 6px; }
.season-x:hover { background: rgba(0,0,0,.06); }

.city-link { display: inline-block; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--accent); text-decoration: none; } .city-link:hover { text-decoration: underline; }

/* phone view controls (hidden on wide screens) */
.side-min { display: none; position: absolute; top: 10px; right: 10px; z-index: 6; height: 30px; padding: 0 12px; align-items: center; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); color: var(--accent); font-weight: 600; font-size: 13px; line-height: 1; font-family: inherit; cursor: pointer; }
.summary { position: relative; }
.view-pill { display: none; position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 1002; height: 44px; padding: 0 20px; align-items: center; gap: 6px; border: 0; border-radius: 22px; background: var(--ink); color: var(--panel); font-weight: 600; font-size: 14px; line-height: 1; font-family: inherit; white-space: nowrap; box-shadow: 0 6px 20px rgba(0,0,0,.3); cursor: pointer; }
.view-pill:active { transform: translateX(-50%) scale(.97); }
.onmap { margin-top: 6px; padding: 4px 10px 4px 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--accent); font-weight: 600; font-size: 12px; line-height: 1.2; font-family: inherit; cursor: pointer; }
.onmap:hover { border-color: var(--accent); }
@media (min-width: 861px) { .onmap { opacity: 0; transition: opacity .12s; } .item:hover .onmap, .item.active .onmap, .onmap:focus-visible { opacity: 1; } }
@media (max-width: 860px) { .side-min, .view-pill { display: inline-flex; } .summary .count, .summary .meta { padding-right: 64px; } .map-toggle { bottom: 84px; } .places-legend { bottom: 124px; } .map-note { bottom: 84px; } }
