/* ==========================================================================
   Maps (Leaflet). Loaded only with the Leaflet vendor files
   (stores, single store, contact). WP: enqueue with 'leaflet' as dependency.
   ========================================================================== */
/* Own stacking context: Leaflet panes/controls (z-index 400–1000) must not rise above the sticky header (z-index 50) */
.map-frame { position: relative; z-index: 0; isolation: isolate; background: var(--map-bg); }
.leaflet-container { font-family: var(--font-sans); background: var(--map-bg); }
.leaflet-tile-pane { filter: grayscale(1) sepia(0.3) contrast(0.85) brightness(1.06); }

/* Markers: the sprite symbol reads its colours from these properties */
.pin-marker { --pin-body: var(--navy-900); --pin-dot: var(--gold-500); width: 30px; height: 40px; }
.pin-marker svg { width: 30px; height: 40px; display: block; filter: drop-shadow(0 2px 3px rgba(0, 25, 50, 0.35)); }
.pin-marker.is-active { --pin-body: var(--gold-500); --pin-dot: var(--navy-900); }
/* Active pin: colour swap only (no icon scaling) */

/* Popup */
.leaflet-popup-content-wrapper { border-radius: 0; background: var(--navy-900); color: var(--text-on-navy); box-shadow: 0 8px 24px rgba(0, 25, 50, 0.3); }
.leaflet-popup-tip { background: var(--navy-900); }
.leaflet-popup-content { margin: 14px 18px; font-size: 15px; line-height: 1.4; }
.leaflet-popup-content strong { display: block; font-size: 16px; margin-bottom: 2px; }
.leaflet-popup-content a { color: var(--gold-500); }
.leaflet-container a.leaflet-popup-close-button { color: var(--text-on-navy); }

/* Controls (Leaflet's own selectors are more specific, so match them) */
.leaflet-touch .leaflet-bar a,
.leaflet-bar a { border-radius: 0; color: var(--navy-900); }
.leaflet-control-attribution { font-size: 11px; }
