/* Retain pale roads/buildings while improving labels; never filter overlays. */
.pw-detail-tiles { filter: brightness(0.94) contrast(1.12); }
.pw-map-context { margin: 12px 0; font-size: .875rem; line-height: 1.5; }
.pw-map-context p { margin: 0 0 8px; }
.pw-map-context a { white-space: normal; }
#detail-map.pw-rich-map { min-height: 320px; }
.pw-rich-map .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; }
.pw-rich-map .leaflet-popup-content { overflow-wrap: anywhere; }
.map-detail-toolbar { position: absolute; top: 80px; left: 10px; z-index: 1001; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 20px); padding: 8px; background: var(--color-surface, white); border-radius: 8px; box-shadow: 0 2px 10px #0002; }
.map-detail-toolbar button { min-height: 44px; padding: 6px 12px; background: var(--color-surface, white); color: var(--color-text, #172b3a); border: 1px solid var(--color-border, #ccd); border-radius: 6px; cursor: pointer; }
.map-detail-toolbar button:focus-visible { outline: 3px solid #155e75; }
.map-detail-toolbar .map-detail-hint { flex-basis: 100%; font-size: .8rem; color: var(--color-text-muted, #475569); }
.map-controls[hidden] { display: none; }
.map-page .map-controls { top: 185px; max-height: calc(100dvh - 205px); overflow-y: auto; }
.map-page .stats-panel { top: 190px; pointer-events: none; }
@media (max-width: 600px) {
    .map-page .stats-panel { top: auto; bottom: 28px; left: 10px; right: auto; }
    .map-page .stats-panel .stat-row ~ .stat-row { display: none; }
    .map-page .leaflet-control-scale { margin-bottom: 105px; }
    .map-detail-toolbar button { padding: 6px 8px; }
}
@media (max-width: 360px) {
    .map-page .map-controls { top: 245px; max-height: calc(100dvh - 265px); }
}
