/* CEDM Blue Overlay Fix - Simple and Effective */

/* Remove Leaflet's default blue color specifically */
.cedm-map [fill="#3388ff"] {
  fill: transparent !important;
}

.cedm-map [stroke="#3388ff"] {
  stroke: transparent !important;
}

/* Hide tile layers that might cause blue background */
.cedm-map .leaflet-tile-pane {
  display: none !important;
}

/* Ensure map background is transparent */
.cedm-map .leaflet-container {
  background: transparent !important;
}

/* Hide attribution */
.cedm-map .leaflet-control-attribution {
  display: none !important;
}

/* REMOVE ALL SELECTION EFFECTS BUT PRESERVE REGION FILLS */
.cedm-map .leaflet-interactive {
  outline: none !important;
  cursor: pointer !important;
}

.cedm-map .leaflet-interactive:focus {
  outline: none !important;
  box-shadow: none !important;
}

.cedm-map .leaflet-interactive:active {
  outline: none !important;
  box-shadow: none !important;
}

/* Prevent any selection highlighting */
.cedm-map svg path {
  outline: none !important;
}

.cedm-map svg path:focus {
  outline: none !important;
  box-shadow: none !important;
}

.cedm-map svg path:active {
  outline: none !important;
  box-shadow: none !important;
}

/* Only remove outline on hover, but preserve stroke AND fill */
.cedm-map .leaflet-interactive:hover {
  outline: none !important;
}

/* STATIC MAP MODE - Disable all interactions when zoom is disabled */
.cedm-map.cedm-static {
  overflow: hidden !important;
}

.cedm-map.cedm-static .leaflet-container {
  cursor: default !important;
}

.cedm-map.cedm-static .leaflet-interactive {
  cursor: default !important;
}

.cedm-map.cedm-static .leaflet-control-zoom {
  display: none !important;
}

/* Prevent scroll on static maps */
.cedm-map.cedm-static .leaflet-container {
  overflow: hidden !important;
}

/* Disable touch/pointer events for static maps */
.cedm-map.cedm-static .leaflet-map-pane {
  pointer-events: none !important;
}

/* Re-enable hover effects on regions even in static mode */
.cedm-map.cedm-static .leaflet-interactive {
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* Hide any map attribution or other overlays */
.cedm-map .leaflet-control-container,
.cedm-map .leaflet-control-attribution {
  display: none !important;
}

/* Force transparency on all map layers */
.cedm-map .leaflet-map-pane {
  background: transparent !important;
}

.cedm-map .leaflet-overlay-pane {
  background: transparent !important;
}

/* Debug mode to identify problem elements */
.cedm-debug .cedm-map svg path:not([data-region-id]) {
  outline: 2px solid red !important;
}

.cedm-debug .cedm-map [fill="#3388ff"] {
  outline: 3px solid orange !important;
}