/*
 * Leaflet 1.9.x local layout fallback.
 * Ensures tile and overlay positioning even when the optional CDN Leaflet
 * stylesheet is blocked by a content filter or unavailable.
 * The main Leaflet stylesheet remains linked for its complete UI styling.
 */
#map.leaflet-container {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}
#map .leaflet-map-pane,
#map .leaflet-pane,
#map .leaflet-tile-pane,
#map .leaflet-overlay-pane,
#map .leaflet-shadow-pane,
#map .leaflet-marker-pane,
#map .leaflet-tooltip-pane,
#map .leaflet-popup-pane,
#map .leaflet-tile-container,
#map .leaflet-layer,
#map .leaflet-tile,
#map .leaflet-marker-icon,
#map .leaflet-marker-shadow,
#map .leaflet-image-layer,
#map .leaflet-zoom-box,
#map .leaflet-pane > svg,
#map .leaflet-pane > canvas {
  position: absolute;
  left: 0;
  top: 0;
}
#map .leaflet-pane { z-index: 400; }
#map .leaflet-tile-pane { z-index: 200; }
#map .leaflet-overlay-pane { z-index: 400; }
#map .leaflet-shadow-pane { z-index: 500; }
#map .leaflet-marker-pane { z-index: 600; }
#map .leaflet-tooltip-pane { z-index: 650; }
#map .leaflet-popup-pane { z-index: 700; }
#map .leaflet-tile {
  display: block;
  max-width: none !important;
  max-height: none !important;
  padding: 0;
  border: 0;
  visibility: hidden;
}
#map .leaflet-tile-loaded { visibility: inherit; }
#map .leaflet-tile-container { pointer-events: none; }
#map .leaflet-zoom-animated { transform-origin: 0 0; }
#map .leaflet-zoom-anim .leaflet-zoom-animated {
  transition: transform .25s cubic-bezier(0, 0, .25, 1);
}
#map .leaflet-zoom-hide { visibility: hidden; }
#map.leaflet-container .leaflet-control-container .leaflet-top,
#map.leaflet-container .leaflet-control-container .leaflet-bottom {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}
#map .leaflet-control-container .leaflet-top { top: 0; }
#map .leaflet-control-container .leaflet-bottom { bottom: 0; }
#map .leaflet-control-container .leaflet-left { left: 0; }
#map .leaflet-control-container .leaflet-right { right: 0; }
#map .leaflet-control { position: relative; z-index: 800; pointer-events: auto; float: left; clear: both; }
#map .leaflet-right .leaflet-control { float: right; }
#map .leaflet-top .leaflet-control { margin-top: 10px; }
#map .leaflet-bottom .leaflet-control { margin-bottom: 10px; }
#map .leaflet-left .leaflet-control { margin-left: 10px; }
#map .leaflet-right .leaflet-control { margin-right: 10px; }
#map .leaflet-bar {
  border: 2px solid rgba(0,0,0,.15);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0,0,0,.18);
}
#map .leaflet-bar a {
  display: block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  background: #fff;
  color: #174c3a;
  font: bold 22px/30px Arial, sans-serif;
  text-decoration: none;
  border-bottom: 1px solid #dce5dd;
}
#map .leaflet-bar a:last-child { border-bottom: 0; }
#map .leaflet-bar a:first-child { border-radius: 3px 3px 0 0; }
#map .leaflet-bar a:last-child { border-radius: 0 0 3px 3px; }
#map .leaflet-bar a.leaflet-disabled { color: #aabcb2; background: #f2f5f1; }
#map .leaflet-control-attribution {
  font: 10px/1.4 Arial, sans-serif;
  padding: 0 5px;
  background: rgba(255,255,255,.82);
  color: #556c61;
}
#map .leaflet-control-attribution a { color: #21644c; }
#map .leaflet-popup { position: absolute; text-align: center; margin-bottom: 20px; }
#map .leaflet-popup-content-wrapper {
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 4px 23px rgba(0,0,0,.2);
  text-align: left;
}
#map .leaflet-popup-content { margin: 14px 17px; min-width: 160px; }
#map .leaflet-popup-tip-container {
  position: absolute;
  left: 50%;
  bottom: -20px;
  margin-left: -20px;
  width: 40px;
  height: 20px;
  overflow: hidden;
  pointer-events: none;
}
#map .leaflet-popup-tip {
  background: #fff;
  box-shadow: 0 3px 14px rgba(0,0,0,.15);
  width: 17px;
  height: 17px;
  padding: 1px;
  margin: -10px auto 0;
  transform: rotate(45deg);
}
#map .leaflet-popup-close-button {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  padding: 4px 6px;
  color: #4b6557;
  font-size: 18px;
  text-decoration: none;
}
#map .leaflet-interactive { cursor: pointer; }
#map .leaflet-container a { cursor: pointer; }
@media (prefers-reduced-motion: reduce) {
  #map .leaflet-zoom-anim .leaflet-zoom-animated { transition: none; }
}
