/* ================= map card ================= */
.map-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; position: relative; }
.map-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 12px 18px 10px; }
.map-card__title { display: grid; gap: 1px; flex: none; }
.map-card__title h1 { font-size: var(--fs-l); font-weight: 650; }
.map-card__title p { font-size: var(--fs-xs); color: var(--ink-3); }
.tabs { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-3); border-radius: var(--r-m); }
.tabs button { border: 0; background: transparent; height: 32px; padding-inline: 14px; border-radius: 6px; font-size: var(--fs-s); color: var(--ink-2); font-weight: 550; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(10, 20, 28, .18); }

/* the legend beside the map title, minimal: two quiet rows (quality, then the asset types), plain dots and words; a
   row scrolls sideways rather than wrapping, so the head stays two lines */
.legend { flex: 1 1 0; min-width: 0; display: grid; gap: 4px; justify-items: end; font-size: var(--fs-xs); color: var(--ink-2); }
.legend__row { max-width: 100%; display: flex; align-items: center; gap: 4px 14px; overflow-x: auto; scrollbar-width: none; }
.legend__row::-webkit-scrollbar { display: none; }
.legend__label { flex: none; font-size: var(--fs-2xs); font-weight: 600; color: var(--ink-3); padding-inline-end: 2px; }
.legend__item { flex: none; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.legend__sw { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.legend__shape svg { width: 14px; height: 14px; color: var(--ink-3); }
.legend__score b { font-weight: 500; }
.legend__score span { color: var(--ink-3); font-size: var(--fs-2xs); font-variant-numeric: tabular-nums; }
/* from red at 0 to green at 100: 0 is first in the reading direction */
.legend__grad { display: inline-block; width: 56px; height: 6px; border-radius: 4px; background: linear-gradient(to left, hsl(0 72% 42%), hsl(60 72% 42%), hsl(120 72% 42%)); }
[dir="ltr"] .legend__grad { background: linear-gradient(to right, hsl(0 72% 42%), hsl(60 72% 42%), hsl(120 72% 42%)); }
.legend__sw[data-cond="Unknown"] { background: repeating-linear-gradient(135deg, var(--c) 0 2.5px, transparent 2.5px 6px); box-shadow: inset 0 0 0 1.5px var(--c); }

.map-body { position: relative; min-height: 180px; background: var(--ground); border-top: 1px solid var(--line); }
.map-scroll { overflow-x: auto; overscroll-behavior-x: contain; direction: ltr; }  /* map orientation is geographic: west is always at the scroll origin */
.corridor__svg, .geo__svg { direction: ltr; width: 100%; min-width: 760px; height: auto; user-select: none; }
.geo { position: relative; height: clamp(300px, 36vw, 420px); }
.geo__svg { position: absolute; inset: 0; z-index: 1; min-width: 0; height: 100%; touch-action: none; cursor: grab; }
.geo--sat .geo__svg { pointer-events: none; cursor: auto; }
.geo--sat .pt { pointer-events: auto; }
.geo--sat .pt__shape { stroke: #fff; }
.geo--sat .pt[data-cond="Unknown"] .pt__shape { fill: rgba(20, 26, 30, .55); stroke: #fff; }
.geo--sat .pt__label { fill: #fff; stroke: rgba(0, 0, 0, .8); font-weight: 700; }
.geo--sat .pt.is-selected .pt__sel { stroke: #fff; }
.geo__svg.is-panning { cursor: grabbing; }

/* corridor drawing */
.road { fill: var(--asphalt); }
.median { fill: var(--asphalt-2); }
.lane-dash { stroke: var(--paint); stroke-width: 1; stroke-dasharray: 10 12; opacity: .16; }
.centre-dash { stroke: var(--paint); stroke-width: 2; stroke-dasharray: 22 16; opacity: .8; }
.edge-line { stroke: var(--paint); stroke-width: 1.5; opacity: .5; }
.row-label { fill: var(--ink-2); font-size: 11.5px; font-family: var(--font); }
.dir-label { fill: var(--ink); font-size: 12.5px; font-weight: 650; font-family: var(--font); }
.axis-line { stroke: var(--line-strong); stroke-width: 1; }
.axis-tick { stroke: var(--line-strong); stroke-width: 1; }
.axis-text { fill: var(--ink-3); font-size: 11px; font-family: var(--font); }
.compass { fill: var(--ink-2); font-size: 11.5px; font-weight: 600; font-family: var(--font); }

.seg { cursor: pointer; outline: none; transition: opacity .15s; }
.seg__body { fill: var(--c); }
.seg[data-cond="Unknown"] .seg__body { fill: var(--asphalt-2); stroke: var(--c); stroke-width: 1.5; stroke-dasharray: 4 3; }
.seg__hatch { fill: url(#hatch); pointer-events: none; }
.seg__label { fill: var(--c-ink); font-size: 10.5px; font-weight: 650; pointer-events: none; font-family: var(--font); letter-spacing: .02em; }
.seg[data-cond="Unknown"] .seg__label { fill: #dfe5e9; }
.seg__ring { fill: none; stroke: transparent; stroke-width: 2.5; pointer-events: none; }
.seg:hover .seg__body, .seg.is-hover .seg__body { filter: brightness(1.12); }
.seg:hover .seg__ring, .seg.is-hover .seg__ring { stroke: var(--paint); stroke-width: 1.5; }
.seg.is-selected .seg__ring { stroke: var(--paint); stroke-width: 3; }
.seg.is-selected .seg__halo { stroke: var(--accent); }
.seg__halo { fill: none; stroke: transparent; stroke-width: 2; pointer-events: none; }
.seg:focus-visible .seg__ring { stroke: #fff; stroke-width: 3; }
.seg:focus-visible .seg__halo { stroke: var(--focus); stroke-width: 3; }
.seg.is-dim { opacity: .17; }

.seg.is-entering { animation: seg-in .5s var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms); transform-box: fill-box; transform-origin: 0 50%; }
@keyframes seg-in { from { opacity: 0; transform: scaleX(.15); } }

/* geo drawing */
.geo-road { fill: none; stroke: var(--asphalt); stroke-linecap: round; stroke-linejoin: round; }
.geo-road-mark { fill: none; stroke: var(--paint); stroke-linecap: butt; stroke-dasharray: 5 4; opacity: .55; }
.geo-grid { stroke: var(--line-strong); opacity: .35; stroke-width: 1; }
.geo-grid-text { fill: var(--ink-3); font-size: 10.5px; font-family: var(--font); }
.pt { cursor: pointer; outline: none; transition: opacity .15s; }
.pt__shape { fill: var(--c); stroke: var(--surface); }
.pt[data-cond="Unknown"] .pt__shape { fill: var(--surface); stroke: var(--c); stroke-dasharray: 3 2; }
.pt__sel { fill: none; stroke: transparent; }
.pt__label { display: none; fill: var(--ink); stroke: var(--surface); paint-order: stroke; font-weight: 650; font-size: 11px; font-family: var(--font); letter-spacing: .02em; pointer-events: none; }
.pt.is-selected .pt__label, .pt.is-hover .pt__label, .geo--labels .pt__label { display: block; }
.pt.is-selected .pt__sel { stroke: var(--accent); }
.pt:hover .pt__shape, .pt.is-hover .pt__shape { filter: brightness(1.15); }
.pt:focus-visible .pt__sel { stroke: var(--focus); }
.pt.is-dim { opacity: .17; }

.geo-controls { position: absolute; inset-block-start: 10px; z-index: 2; inset-inline-end: 10px; display: grid; gap: 4px; z-index: 2; }
.geo-controls button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--ink); }
.geo-controls button:hover { background: var(--surface-2); }
.geo-controls svg { width: 17px; height: 17px; }
.geo-hint { position: absolute; inset-block-end: 8px; inset-inline-start: 12px; font-size: var(--fs-2xs); color: var(--ink-3); pointer-events: none; }
.geo-topbar { position: absolute; inset-block-start: 10px; inset-inline-start: 12px; z-index: 2; display: flex; align-items: center; gap: 12px; }
.geo-north { display: grid; justify-items: center; gap: 0; font-size: var(--fs-2xs); font-weight: 700; color: var(--ink-2); pointer-events: none; }
.geo--sat ~ .geo-topbar .geo-north { color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.8)); }
@keyframes pulse { 50% { transform: scale(.7); } }
.codeblock { display: block; direction: ltr; text-align: left; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; padding: 10px 12px; background: var(--surface-3); border-radius: var(--r-m); overflow-x: auto; }
.geo-north svg { width: 18px; height: 22px; }

/* tooltip */
.tip {
  position: absolute; z-index: 5; pointer-events: none; min-width: 190px; max-width: 260px; padding: 10px 12px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--r-m);
  box-shadow: var(--shadow-pop); display: grid; gap: 5px; font-size: var(--fs-xs);
}
.tip[hidden] { display: none; }
.tip__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tip__id { font-weight: 700; letter-spacing: .02em; font-size: var(--fs-s); }
.tip__name { font-size: var(--fs-s); font-weight: 600; }
.tip__meta { color: var(--ink-3); }

/* keep the OpenStreetMap attribution strip (bottom-right) fully visible */
.geo--sat ~ .geo-scale { inset-block-end: 40px; background: rgba(0,0,0,.5); color: #fff; padding: 3px 8px; border-radius: 6px; }
.geo--sat ~ .geo-scale .geo-scale__bar { border-color: #fff; }
.geo-scale { z-index: 2; position: absolute; inset-block-end: 10px; inset-inline-end: 12px; display: flex; align-items: center; gap: 8px; font-size: var(--fs-2xs); color: var(--ink-2); direction: ltr; pointer-events: none; }
.geo-scale__bar { display: block; height: 7px; border: 1.5px solid var(--ink-2); border-top: 0; }

/* ---- keyless raster basemap (OpenStreetMap) ---- */
.geo__tiles { position: absolute; inset: 0; z-index: 0; isolation: isolate; overflow: hidden; background: #d4dadc; touch-action: none; cursor: grab; }
.geo__tiles.is-panning { cursor: grabbing; }
.tile-layer { position: absolute; inset: 0; }
.tile-layer img { position: absolute; max-width: none; user-select: none; -webkit-user-drag: none; opacity: 0; transition: opacity .18s; }
.tile-layer img.is-in { opacity: 1; }
.tile-attrib { position: absolute; inset-block-end: 0; inset-inline-end: 0; z-index: 3; padding: 2px 8px; font: 11px/1.6 var(--font); background: rgba(255, 255, 255, .85); color: #333; direction: ltr; max-width: 100%; }
.tile-attrib a { color: inherit; }
.geo-topbar { flex-wrap: wrap; row-gap: 6px; max-width: calc(100% - 70px); }

/* ---- logos: every asset carries the small logo of its type (or model) ---- */
.pt__glyph { color: var(--c-ink); stroke-width: 2.1; pointer-events: none; }
.pt[data-cond="Unknown"] .pt__glyph { color: var(--c-text); }
.geo--sat .pt[data-cond="Unknown"] .pt__glyph { color: #fff; }
.seg__glyph { color: var(--c-ink); stroke-width: 2; pointer-events: none; }
.seg[data-cond="Unknown"] .seg__glyph { color: #dfe5e9; }
.row-glyph { color: var(--ink-2); stroke-width: 1.9; pointer-events: none; }

/* ---- assets imported as lines (road segments, markings ...): coloured by condition like everything else ---- */
.ln { fill: none; stroke: var(--c); stroke-width: 3px; stroke-linecap: round; stroke-linejoin: round; cursor: pointer; transition: opacity .15s; }
.ln[data-cond="Unknown"] { stroke: var(--cond-unknown); opacity: .8; }
.geo--sat .ln[data-cond="Unknown"] { stroke: #5b6770; opacity: .9; }
.ln.is-hover { stroke-width: 5px; }
.ln.is-selected { stroke-width: 6px; filter: drop-shadow(0 0 2px var(--accent)) drop-shadow(0 0 1px var(--accent)); opacity: 1; }
.ln.is-dim { opacity: .12; }
/* a line shows the asset already: its badge appears once segments are long on screen, or when hovered / selected */
.pt--line .pt__shape, .pt--line .pt__glyph, .pt--line .pt__sel { display: none; }
.geo--badges .pt--line .pt__shape, .geo--badges .pt--line .pt__glyph,
.pt--line.is-selected .pt__shape, .pt--line.is-selected .pt__glyph,
.pt--line.is-hover .pt__shape, .pt--line.is-hover .pt__glyph,
.geo--badges .pt--line .pt__sel, .pt--line.is-selected .pt__sel { display: inline; }
.pt--line .pt__shape { pointer-events: none; }
.geo--badges .pt--line .pt__shape { pointer-events: auto; }

/* nothing is drawn until a filter is set or an asset is opened */
.geo-empty {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%; max-width: min(80%, 420px); padding: 10px 16px;
  border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
  font-size: var(--fs-s); text-align: center; pointer-events: none; box-shadow: var(--shadow-pop);
}
.geo-empty[hidden] { display: none; }


/* the colours of the road-marking codes, while the map is filtered by them */
.code-legend {
  position: absolute; inset-block-end: 34px; inset-inline-end: 10px; z-index: 3; display: grid; gap: 5px; max-width: min(260px, 60%);
  max-height: 60%; overflow: auto; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface);
  box-shadow: var(--shadow-pop); font-size: var(--fs-xs); color: var(--ink);
}
.code-legend[hidden] { display: none; }
.code-legend strong { font-size: var(--fs-xs); font-weight: 650; color: var(--ink-2); }
.code-legend__item { display: flex; align-items: center; gap: 7px; }
.code-legend .mk-swatch { width: 18px; height: 5px; border-radius: 3px; }

/* ---- map toolbox (map/draw.js): drawings over the map, the floating bar and its menus ---- */
.draw__svg { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; direction: ltr; pointer-events: none; overflow: hidden; }
.draw__svg.is-active { pointer-events: all; cursor: crosshair; touch-action: none; }
.draw__svg[data-tool="eraser"] { cursor: pointer; }
.draw__svg[data-tool="text"] { cursor: text; }
.draw__svg.is-panning { cursor: grabbing; }
.draw__item, .draw__item * { pointer-events: none; }
.draw__svg[data-tool="eraser"] .draw__item * { pointer-events: visiblePainted; }
.draw__item.is-erase { opacity: .4; filter: drop-shadow(0 0 2px var(--danger)); }
.draw__stroke { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.draw__fill { fill-opacity: .16; stroke-linejoin: round; }
.draw__fill--shape { fill-opacity: .1; }
.draw__head { stroke-linejoin: round; stroke-width: 1px; }
.draw__vertex { fill: #fff; stroke-width: 2px; }
.draw__draft .draw__stroke { stroke-dasharray: 7 5; }
.draw__label { font: 600 12px var(--font); fill: #1b1f23; stroke: #fff; stroke-width: 3.5px; stroke-linejoin: round; paint-order: stroke; }
.draw__label--total { font-weight: 800; font-size: 13px; }
.draw__text { font-family: var(--font); font-weight: 750; stroke: #fff; stroke-width: 3.5px; stroke-linejoin: round; paint-order: stroke; }
.draw__text--light { stroke: rgba(20, 24, 28, .85); }
.draw__pin { stroke: #fff; stroke-width: 1.6px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45)); }
.draw__pin-dot { fill: #fff; }
.draw__symbol { filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .35)); }

/* the toolbox button is blue like the site's main buttons (owner's choice 2026-11-04); darker while the bar is open */
.geo-controls .draw-toggle { position: relative; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.geo-controls .draw-toggle:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.geo-controls .draw-toggle.is-on { background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
.draw-toggle.has-items::after { content: ""; position: absolute; inset-block-start: 4px; inset-inline-end: 4px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent-ink); box-shadow: 0 0 0 1.5px var(--accent); }

.draw-bar { position: absolute; inset-block-start: 10px; left: 50%; transform: translateX(-50%); z-index: 4; display: grid; gap: 6px;
  justify-items: center; width: max-content; max-width: calc(100% - 112px); pointer-events: none; }
.draw-bar[hidden] { display: none; }
/* «نقشهٔ حرارتی حوادث و سرقت» (map/heat.js) */
.heat__canvas { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none; }
.heat__canvas[hidden] { display: none; }
.geo--heat .geo-empty { display: none; }
.geo-controls .heat-toggle { background: #c2410c; border-color: #c2410c; color: #fff; }
.geo-controls .heat-toggle:hover { background: #9a3412; border-color: #9a3412; }
.geo-controls .heat-toggle.is-on { background: #9a3412; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
.heat-panel { position: absolute; inset-block-end: 34px; inset-inline-start: 12px; z-index: 4; width: min(290px, calc(100% - 24px)); max-height: calc(100% - 96px);
  overflow: auto; padding: 10px 12px; display: grid; gap: 8px; background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--r-m); box-shadow: 0 10px 28px rgba(0, 0, 0, .22); font-size: var(--fs-xs); }
.heat-panel[hidden] { display: none; }
.heat-panel__head { display: flex; align-items: center; gap: 8px; }
.heat-panel__head > svg { width: 18px; height: 18px; color: #c2410c; }
.heat-panel__head strong { flex: 1; font-size: var(--fs-s); }
.heat-panel__head .icon-btn { width: 28px; height: 28px; }
.heat-seg { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.heat-seg__opt { all: unset; flex: 1; text-align: center; padding: 6px 4px; cursor: pointer; font-weight: 600; }
.heat-seg__opt + .heat-seg__opt { border-inline-start: 1px solid var(--line); }
.heat-seg__opt[aria-pressed="true"] { background: #c2410c; color: #fff; }
.heat-row { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 8px; }
.heat-period { height: 30px; font-size: var(--fs-xs); }
.heat-row input[type="range"] { width: 100%; accent-color: #c2410c; }
.heat-scale { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px; color: var(--ink-3); }
.heat-scale__bar { height: 8px; border-radius: 4px; background: linear-gradient(to left, #2b6cff, #00d0ff, #3ddc4a, #ffe23a, #ff8a1e, #e8141c); }
[dir="ltr"] .heat-scale__bar { background: linear-gradient(to right, #2b6cff, #00d0ff, #3ddc4a, #ffe23a, #ff8a1e, #e8141c); }
.heat-totals { margin: 0; color: var(--ink-2); }
.heat-panel h4 { margin: 4px 0 0; font-size: var(--fs-s); }
.heat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.heat-spot { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: center; padding: 6px; border-radius: 6px; cursor: pointer; }
.heat-spot:hover, .heat-spot:focus-visible { background: var(--surface-2); }
.heat-spot__rank { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); font-weight: 700; }
.heat-spot__rank.is-top { background: #e8141c; color: #fff; }
.heat-spot__text { display: grid; min-width: 0; }
.heat-spot__text small { color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.draw-bar > * { pointer-events: auto; }
.draw-tools, .draw-opts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow-pop); }
.draw-tools { gap: 2px; padding: 4px; }
.draw-opts { gap: 8px; padding: 5px 10px; }
.draw-btn { position: relative; flex: none; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0;
  border-radius: 7px; background: transparent; color: var(--ink); cursor: pointer; transition: background .12s var(--ease); }
.draw-btn:hover:not(:disabled) { background: var(--surface-2); }
.draw-btn.is-on { background: var(--accent-soft); color: var(--accent); }
.draw-btn:disabled { opacity: .35; cursor: default; }
.draw-btn svg { width: 18px; height: 18px; }
.draw-btn__emoji { font-size: 17px; line-height: 1; }
.draw-btn__more { position: absolute; inset-block-end: 4px; inset-inline-end: 3px; width: 0; height: 0; border-inline-start: 3px solid transparent;
  border-inline-end: 3px solid transparent; border-top: 3.5px solid currentColor; opacity: .55; transform: rotate(-45deg); }
.draw-sep { flex: none; width: 1px; height: 20px; margin: 0 3px; background: var(--line); }
.draw-group { position: relative; flex: none; }
.draw-pair { display: flex; gap: 2px; flex: none; }
.draw-menu { position: absolute; inset-block-start: calc(100% + 6px); inset-inline-start: -4px; z-index: 6; display: flex; gap: 2px; padding: 4px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 9px; box-shadow: var(--shadow-pop); }
.draw-menu[hidden] { display: none; }
.draw-menu--grid { display: grid; grid-template-columns: repeat(5, 32px); }
.draw-colors, .draw-widths { display: flex; align-items: center; gap: 5px; }
.draw-swatch { width: 18px; height: 18px; padding: 0; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer; }
.draw-swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--accent); }
.draw-width { width: 28px; height: 22px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent; cursor: pointer; }
.draw-width i { display: block; width: 18px; border-radius: 4px; background: var(--ink); }
.draw-width[aria-checked="true"] { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.draw-hint { max-width: 360px; font-size: var(--fs-2xs); color: var(--ink-2); }
.draw-finish { height: 26px; padding: 0 10px; }
.draw-input { position: absolute; z-index: 5; transform: translate(-50%, -50%); width: 260px; max-width: calc(100% - 24px); height: 34px; padding: 0 10px;
  border: 2px solid var(--accent); border-radius: 8px; background: var(--surface); color: var(--ink); font: 600 14px var(--font); box-shadow: var(--shadow-pop); }
@media (max-width: 640px) {
  .draw-bar { inset-block-start: 54px; max-width: calc(100% - 16px); }
  .draw-btn { width: 30px; height: 30px; }
  .draw-hint { display: none; }
}

/* ---- full screen: the map card fills the screen, the map takes all the height left by the title and legend ---- */
.geo-full { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line-strong);
  border-radius: 6px; background: var(--surface); color: var(--ink); cursor: pointer; }
.geo-full:hover { background: var(--surface-2); }
.geo-full[hidden] { display: none; }
.geo-full svg { width: 17px; height: 17px; }
.map-card:fullscreen, .map-card--full { display: flex; flex-direction: column; width: 100vw; height: 100vh; border: 0; border-radius: 0; }
.map-card--full { position: fixed; inset: 0; z-index: 50; height: 100dvh; }   /* above the header (30) and side panel (40), under toasts (60) */
.map-card:fullscreen .map-body, .map-card--full .map-body { flex: 1; min-height: 0; }
.map-card:fullscreen .geo, .map-card--full .geo { height: 100%; }
html.has-full-map { overflow: hidden; }
.map-card::backdrop { background: var(--bg); }
