/*
 * Shared Leaflet layout fallback for SSC map products.
 * Keeps maps usable when the external Leaflet stylesheet is unavailable and
 * prevents global responsive-image rules from resizing map tiles or overlays.
 */
.leaflet-container {
  overflow: hidden;
  position: relative;
  outline: 0;
  font: 12px/1.5 Arial, sans-serif;
}

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  position: absolute;
  left: 0;
  top: 0;
}

.leaflet-map-pane { z-index: 400; }
.leaflet-tile-pane { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane { z-index: 500; }
.leaflet-marker-pane { z-index: 600; }
.leaflet-tooltip-pane { z-index: 650; }
.leaflet-popup-pane { z-index: 700; }

.leaflet-tile {
  width: 256px !important;
  height: 256px !important;
  max-width: none !important;
  max-height: none !important;
  visibility: hidden;
  user-select: none;
}

.leaflet-tile-loaded { visibility: inherit; }
.leaflet-fade-anim .leaflet-tile { will-change: opacity; }

.leaflet-container .leaflet-overlay-pane svg,
.leaflet-container .leaflet-overlay-pane canvas {
  max-width: none !important;
  max-height: none !important;
}

.leaflet-control {
  position: relative;
  z-index: 800;
  pointer-events: auto;
}

.leaflet-top,
.leaflet-bottom {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}

.leaflet-top { top: 0; }
.leaflet-right { right: 0; }
.leaflet-bottom { bottom: 0; }
.leaflet-left { left: 0; }

.leaflet-control-zoom {
  margin: 10px;
  border: 2px solid rgba(0, 0, 0, .2);
  border-radius: 4px;
  overflow: hidden;
}

.leaflet-control-zoom a {
  display: block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  background: #fff;
  color: #222;
  text-decoration: none;
  font: bold 18px Arial, sans-serif;
  border-bottom: 1px solid #ccc;
}

.leaflet-control-zoom a:last-child { border-bottom: 0; }

.leaflet-control-attribution {
  margin: 0;
  padding: 0 5px;
  background: rgba(255, 255, 255, .82);
  font-size: 10px;
}

.leaflet-control-attribution a { color: #075985; }
.leaflet-interactive { cursor: pointer; }

.leaflet-popup {
  position: absolute;
  text-align: center;
  margin-bottom: 20px;
}

.leaflet-popup-content-wrapper {
  padding: 1px;
  text-align: left;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(0, 0, 0, .35);
}

.leaflet-popup-content {
  margin: 12px 15px;
  line-height: 1.45;
}

.leaflet-popup-content b { color: #182738; }

.leaflet-popup-tip-container {
  width: 40px;
  height: 20px;
  position: absolute;
  left: 50%;
  margin-left: -20px;
  overflow: hidden;
  pointer-events: none;
}

.leaflet-popup-tip {
  width: 17px;
  height: 17px;
  padding: 1px;
  margin: -10px auto 0;
  transform: rotate(45deg);
  background: #fff;
  box-shadow: 3px 3px 15px rgba(0, 0, 0, .2);
}
