.centre-map-surface{position:relative;isolation:isolate;overflow:hidden;height:clamp(285px,40svh,425px);margin-block:.65rem .3rem;border:1px solid var(--line);border-radius:15px;background:#eae9df}
.centre-map-base,.centre-map-markers{position:absolute;inset:0;width:100%;height:100%}
.centre-map-base{touch-action:none;cursor:grab}.centre-map-base:active{cursor:grabbing}
.centre-map-base path{stroke-linecap:round;stroke-linejoin:round}
.centre-green{fill:#c9d8b6}.centre-square{fill:#e4d7c5}.centre-street,.centre-walk,.centre-avenue{fill:none}
.centre-street{stroke:#fffcf3;stroke-width:2}.centre-walk{stroke:#d1bb9c;stroke-width:1.3}.centre-avenue{stroke:#fae1a2;stroke-width:3.8}
.centre-map-names{fill:#4d5947;paint-order:stroke;stroke:#faf9f1;stroke-width:2px;stroke-linejoin:round}.centre-map-names text{font-family:inherit;font-weight:650;vector-effect:non-scaling-stroke}
.centre-map-markers{pointer-events:none}
.centre-map-pin{border:2px solid var(--surface);border-radius:50%;width:32px;height:32px;background:var(--accent);color:var(--on-accent);font:700 13px/1 system-ui;box-shadow:0 1px 4px #173b3650;position:absolute;transform:translate(-50%,-50%);cursor:pointer;pointer-events:auto}
.centre-map-pin::after{content:"";position:absolute;inset:-5px;border-radius:50%}.centre-map-pin.single{width:19px;height:19px;background:var(--accent)}.centre-map-pin.single::after{inset:-11px}
.centre-map-pin:hover,.centre-map-pin:focus-visible{outline:3px solid var(--focus);z-index:1}
.centre-map-nav{position:absolute;top:8px;left:8px;display:flex;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--surface);box-shadow:0 1px 6px #203c2915}
.centre-map-nav button,.centre-map-choices button{border:0;cursor:pointer;background:var(--surface);color:var(--ink);font:inherit}
.centre-map-nav button{min-width:44px;min-height:44px;font-weight:700;padding:4px 9px}.centre-map-nav button:disabled{color:var(--muted);opacity:.65}
.centre-map-attribution{position:absolute;bottom:0;right:0;background:var(--surface);padding:3px 6px;color:var(--muted);font-size:10px}
.centre-map-caption{color:var(--muted);font-size:.82rem;margin:.35rem .2rem .8rem}
.centre-map-choices{position:absolute;top:8px;right:8px;width:min(230px,74%);max-height:85%;overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:0 3px 16px #253a2426}
.centre-map-choice-head{display:flex;align-items:center;justify-content:space-between;padding:4px 9px;font-size:13px}.centre-map-choice-head button{width:36px;height:36px}
.centre-map-choices>button{display:block;width:100%;min-height:42px;padding:8px 10px;border-top:1px solid var(--line);text-align:left}

.coast-map-surface{background:#b7d8dc}.centre-land{fill:#eeeadd;stroke:#b1b5a2;stroke-width:1.3}.coast-map-tiles{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.coast-map-tiles img{position:absolute;max-width:none;user-select:none}.coast-map-natural{position:absolute;bottom:0;left:0;background:var(--surface);padding:3px 6px;color:var(--muted);font-size:10px}
.centre-map-nav button[aria-pressed=true]{background:var(--accent);color:var(--on-accent)}

.centre-map-surface:focus-visible { outline:3px solid var(--focus); outline-offset:2px; }
.centre-map-nav button:focus-visible, .centre-map-choices button:focus-visible { outline:2px solid currentColor; outline-offset:-3px; }
@media (hover:hover) {
  .centre-map-nav button:not(:disabled):not([aria-pressed="true"]):hover,
  .centre-map-choices button:hover { background:var(--selected-surface); color:var(--accent); }
}

/* Keep the map key distinct as roads, water and parks change with the theme. */
html[data-theme="dark"] .centre-map-surface { background:#26343a; }
html[data-theme="dark"] .coast-map-surface { background:#183447; }
html[data-theme="dark"] .centre-land { fill:#303b3c; stroke:#4b6167; }
html[data-theme="dark"] .centre-green { fill:#374c43; }
html[data-theme="dark"] .centre-square { fill:#52483f; }
html[data-theme="dark"] .centre-street { stroke:#566168; }
html[data-theme="dark"] .centre-walk { stroke:#8c7e6c; }
html[data-theme="dark"] .centre-avenue { stroke:#9b845b; }
html[data-theme="dark"] .centre-map-names { fill:#e2e8e6; stroke:#27333a; }
html[data-theme="dark"] .coast-map-tiles { filter:invert(.92) hue-rotate(170deg) saturate(.65); }
