/* District map — light Voyager basemap with readable contrast */

.mg-dmodal__district-map-wrap--district-blur,
.mg-district-places__map-wrap--district-blur {
  overflow: hidden;
  background: #c5dce8;
}

.mg-district-leaflet--caged.leaflet-container {
  background: #dceaf2;
}

/* Carto fallback tiles only — Google Mutant is unfiltered native roadmap */
.mg-district-leaflet--caged:not(.mg-district-leaflet--google) .mg-map-theme-base {
  filter: contrast(1.06) saturate(1.08);
}

.mg-app--aqua .mg-district-leaflet--caged:not(.mg-district-leaflet--google) .mg-map-theme-base {
  filter: contrast(1.08) saturate(1.1);
}

.mg-district-leaflet--caged:not(.mg-district-leaflet--google) .mg-map-theme-labels {
  filter: contrast(1.15);
  opacity: 1;
}

.mg-district-leaflet--caged.mg-district-leaflet--google.leaflet-container {
  background: #e5e3df;
}

.mg-district-leaflet--caged .leaflet-tile-pane {
  opacity: 1;
}

/* Hard clip: Google/OSM tiles only inside district polygon (per viewbox) */
.mg-district-leaflet--clipped.leaflet-container {
  background: #dceaf2 !important;
}

.mg-district-leaflet--clipped .leaflet-control-container {
  z-index: 850;
  pointer-events: auto;
}

.mg-dmodal__district-map-stage .mg-district-leaflet--clipped,
.mg-district-places__map-wrap--district-blur .mg-district-leaflet--clipped {
  filter: drop-shadow(0 0 12px rgba(62, 224, 208, 0.35));
}

.mg-district-leaflet--caged .leaflet-control-zoom a {
  color: #0d3545;
  font-weight: 700;
  border-color: rgba(13, 53, 69, 0.25);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 4px rgba(13, 53, 69, 0.18);
}

.mg-district-leaflet--caged .leaflet-control-zoom a:hover {
  color: #062430;
  background: #ffffff;
}

.mg-district-leaflet--caged .leaflet-control-attribution {
  color: rgba(13, 53, 69, 0.9);
  background: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

.mg-district-leaflet--caged .leaflet-control-attribution a {
  color: #1a6578;
}

.mg-district-places__map-wrap--district-blur {
  min-height: clamp(210px, 42dvh, 320px);
}

.mg-district-places__map-wrap--district-blur .mg-district-places__map,
.mg-dmodal__district-map-wrap--district-blur .mg-dmodal__district-map {
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.mg-district-places__map-wrap--district-blur .mg-district-places__map-label {
  z-index: 700;
  color: #0d3545;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.95), 0 1px 2px rgba(255, 255, 255, 0.9);
}

body.mg-dmodal-scroll-lock {
  overflow: hidden;
  overscroll-behavior: none;
}
