/* Store maps and the home-page national choropleth. Loaded only on pages that have a map. */
.store-map-section { margin: 1.5rem 0 2rem; }
.store-map-section h2 { font-family: var(--font-display); font-size: 1.45rem; margin: 0 0 0.6rem; }
.map-filters { display: flex; flex-wrap: wrap; gap: 0.45rem 1rem; margin: 0 0 0.7rem; font-size: 0.92rem; }
.map-filters label { display: inline-flex; align-items: center; gap: 0.35rem; cursor: pointer; color: var(--sand-2); }
.map-filters input { accent-color: var(--gold); }
.map-swatch { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 50%; border: 1px solid var(--line-strong); }
.map-swatch.mso { background: var(--mso); }
.map-swatch.chain { background: var(--chain); }
.map-swatch.small { background: var(--small); }
.map-swatch.unknown { background: var(--unknown); }
.store-map {
  width: 100%;
  height: 22rem;
  max-height: 70vh;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #1b1916;
  z-index: 0;
}
@media (min-width: 800px) { .store-map { height: 26rem; } }
.store-map .leaflet-container { background: #1b1916; font: 15px/1.4 var(--font-body); }
.store-map .leaflet-popup-content-wrapper, .store-map .leaflet-popup-tip { background: var(--bg-2); color: var(--sand); box-shadow: var(--shadow); }
.store-map .leaflet-popup-content { margin: 0.7rem 0.85rem; }
.store-map .leaflet-popup-content a { color: var(--gold-2); }
.store-map .leaflet-control-attribution { background: rgba(12,10,9,0.8); color: var(--muted); font-size: 11px; }
.store-map .leaflet-control-attribution a { color: var(--sand-2); }
.store-map .leaflet-control-zoom a { background: var(--bg-3); color: var(--sand); border-color: var(--line); }
.store-map .marker-cluster-small, .store-map .marker-cluster-medium, .store-map .marker-cluster-large {
  background: rgba(212, 161, 90, 0.35);
}
.store-map .marker-cluster-small div, .store-map .marker-cluster-medium div, .store-map .marker-cluster-large div {
  background: var(--gold); color: #1a1207; font-family: var(--font-display); font-weight: 700;
}
.map-note { margin: 0.6rem 0 0; color: var(--muted); font-size: 0.88rem; }
.map-missed { margin: 0.5rem 0 0; font-size: 0.9rem; }
.map-missed summary { cursor: pointer; color: var(--sand-2); }
.map-missed ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }

.national-map { margin: 1.25rem 0 1.5rem; }
.national-map svg { width: 100%; height: auto; max-width: 52rem; display: block; }
.national-map path { stroke: #0c0a09; stroke-width: 1; transition: fill 0.15s, stroke 0.15s; }
.national-map a:hover path, .national-map a:focus-visible path { stroke: var(--gold-2); stroke-width: 2; }
.national-map a:focus-visible { outline: none; }
.national-map figcaption { color: var(--muted); font-size: 0.88rem; margin: 0.55rem 0 0; max-width: 46rem; }
.national-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem; margin: 0.6rem 0 0; font-size: 0.82rem; color: var(--sand-2); }
.national-legend .ramp { display: inline-flex; height: 0.7rem; width: 7.5rem; border-radius: 3px; overflow: hidden; border: 1px solid var(--line); }
.national-legend .ramp i { flex: 1; display: block; }
