.neighborhood-map-module {
  color: var(--ink, #2b2420);
  background: var(--bg, #f7f1e8);
  border: 1px solid color-mix(in srgb, var(--ink, #2b2420) 18%, transparent);
  border-radius: 1rem;
  overflow: hidden;
  font: 400 1rem/1.45 system-ui, sans-serif;
}
.neighborhood-map-toolbar { padding: 1rem; }
.neighborhood-map-toolbar h2 { margin: 0 0 .25rem; font-size: clamp(1.25rem, 3vw, 1.7rem); }
.neighborhood-map-toolbar p { margin: 0 0 .75rem; }
.neighborhood-map-controls { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.neighborhood-map-label { font-weight: 700; margin-right: .25rem; }
.neighborhood-map-chip {
  color: var(--ink, #2b2420); background: transparent; border: 1px solid currentColor;
  border-radius: 999px; cursor: pointer; padding: .42rem .72rem; min-height: 2.25rem;
}
.neighborhood-map-chip:hover, .neighborhood-map-chip:focus-visible { border-color: var(--brick, #a84936); outline: 3px solid color-mix(in srgb, var(--brick, #a84936) 28%, transparent); outline-offset: 2px; }
.neighborhood-map-chip[aria-pressed="true"] { background: var(--brick, #a84936); color: #fff; border-color: var(--brick, #a84936); }
.neighborhood-map-legend { display: flex; flex-wrap: wrap; gap: .45rem .8rem; padding: 0 1rem .75rem; font-size: .84rem; }
.neighborhood-map-legend span { display: inline-flex; align-items: center; gap: .3rem; }
.neighborhood-map-swatch { display: inline-block; width: .75rem; height: .75rem; border-radius: 50%; background: var(--map-muted); border: 1px solid rgba(0,0,0,.25); }
.neighborhood-map-canvas { min-height: 31rem; background: #dce8e8; }
.neighborhood-map-canvas .leaflet-control-zoom a { color: var(--ink, #2b2420); }
.neighborhood-map-popup h3 { margin: 0 0 .25rem; font-size: 1rem; }
.neighborhood-map-popup p { margin: .25rem 0; }
.neighborhood-map-popup a { color: var(--river, #2e7183); font-weight: 700; }
.neighborhood-map-status { padding: .75rem 1rem; font-size: .9rem; }
.stl-map-highlight { filter: drop-shadow(0 0 5px rgba(168, 73, 54, .72)); }
@media (max-width: 500px) {
  .neighborhood-map-toolbar { padding: .8rem; }
  .neighborhood-map-canvas { min-height: 25rem; }
  .neighborhood-map-chip { padding: .38rem .58rem; font-size: .92rem; }
}
@media (prefers-color-scheme: dark) {
  .neighborhood-map-module { --bg: #211d1a; --ink: #f5ede1; --map-muted: #55504b; }
  .neighborhood-map-canvas { background: #243638; }
}

.leaflet-container .leaflet-control-attribution{background:rgba(26,20,18,.88);color:#e4e0d5;font:500 11px/1.5 "IBM Plex Mono",monospace;padding:2px 8px}
.leaflet-container .leaflet-control-attribution a{color:#f6c453}
