/* Leaflet layout fallback. Kept locally so the map remains correctly positioned
   when a browser or privacy extension blocks the CDN stylesheet. */
.leaflet-container {
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  position: relative;
}

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas {
  left: 0;
  position: absolute;
  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-zoom-animated { transform-origin: 0 0; }
.leaflet-tile { visibility: hidden; }
.leaflet-tile-loaded { visibility: inherit; }

.leaflet-container .leaflet-tile,
.leaflet-container .leaflet-marker-icon,
.leaflet-container .leaflet-marker-shadow {
  max-height: none !important;
  max-width: none !important;
}

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

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

.leaflet-control {
  clear: both;
  float: left;
  pointer-events: auto;
  position: relative;
}

.leaflet-right .leaflet-control { float: right; }
.leaflet-top .leaflet-control { margin-top: 10px; }
.leaflet-bottom .leaflet-control { margin-bottom: 10px; }
.leaflet-left .leaflet-control { margin-left: 10px; }
.leaflet-right .leaflet-control { margin-right: 10px; }

.leaflet-bar a {
  display: block;
  height: 30px;
  line-height: 30px;
  text-align: center;
  text-decoration: none;
  width: 30px;
}

.leaflet-bar a + a { border-top: 1px solid #ccc; }
.leaflet-container { cursor: grab; }
.leaflet-dragging .leaflet-container { cursor: grabbing; }

.project-coverage {
  background:
    radial-gradient(circle at 12% 6%, rgba(210, 174, 91, .12), transparent 30%),
    linear-gradient(180deg, #f8faf7 0%, #edf3f0 100%);
  border-top: 1px solid rgba(44, 83, 76, .12);
}

.project-coverage__intro {
  align-items: end;
  display: grid;
  gap: clamp(28px, 6vw, 90px);
  grid-template-columns: minmax(0, .9fr) minmax(320px, .72fr);
  margin-bottom: 34px;
}

.project-coverage__intro h2 {
  font-size: clamp(34px, 4.5vw, 58px);
  letter-spacing: -.035em;
  line-height: 1.05;
  margin: 8px 0 0;
  max-width: 780px;
}

.project-coverage__intro > p {
  color: #52655f;
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 3px;
}

.project-coverage__map {
  background: #dce7e1;
  border: 1px solid rgba(41, 78, 71, .17);
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(28, 57, 52, .16);
  height: clamp(480px, 61vw, 690px);
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

.project-coverage__canvas {
  background: #e4ece7;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
  z-index: 1;
}

.project-coverage__map .leaflet-tile-pane {
  filter: grayscale(.28) sepia(.12) hue-rotate(82deg) saturate(.48) contrast(.82) brightness(1.12);
  opacity: .84;
}

.project-coverage__map .leaflet-tile { mix-blend-mode: multiply; }

.project-coverage__map .leaflet-control-container {
  font-family: 'Roboto Condensed', sans-serif;
}

.project-coverage__map .leaflet-bar {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(20, 48, 43, .24);
  overflow: hidden;
}

.project-coverage__map .leaflet-bar a,
.project-coverage__map .leaflet-bar a:hover {
  background: #214d45;
  border-color: rgba(255, 255, 255, .14);
  color: #fff;
}

.project-coverage__map .leaflet-control-attribution {
  background: rgba(250, 251, 247, .88);
  border-radius: 8px 0 0;
  color: #55665f;
  font-size: 9px;
  margin: 0;
  padding: 4px 8px;
}

.project-coverage__map .leaflet-control-attribution a { color: #315f55; }

.project-coverage__map .leaflet-marker-pane { z-index: 620; }

.hazo-project-pin {
  background: transparent;
  border: 0;
  pointer-events: none;
}

.hazo-project-pin span {
  background: #285b50;
  border: 1.5px solid #fffdf6;
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 2px 6px rgba(16, 49, 43, .36);
  display: block;
  height: 11px;
  transform: rotate(-45deg);
  width: 11px;
}

.hazo-project-pin span::after {
  background: #efc46d;
  border-radius: 50%;
  content: "";
  height: 3px;
  left: 4px;
  position: absolute;
  top: 4px;
  width: 3px;
}

.project-coverage__stat,
.project-coverage__privacy {
  backdrop-filter: blur(14px);
  position: absolute;
  z-index: 500;
}

.project-coverage__stat {
  background: rgba(27, 66, 59, .94);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 19px;
  box-shadow: 0 16px 36px rgba(16, 43, 38, .23);
  color: #fff;
  left: 24px;
  padding: 19px 22px 18px;
  top: 24px;
}

.project-coverage__stat strong,
.project-coverage__stat span,
.project-coverage__stat small { display: block; }

.project-coverage__stat strong {
  color: #efc46d;
  font-family: 'Comfortaa', sans-serif;
  font-size: clamp(40px, 5vw, 62px);
  letter-spacing: -.06em;
  line-height: .95;
}

.project-coverage__stat span {
  font-size: 17px;
  font-weight: 700;
  margin-top: 9px;
}

.project-coverage__stat small {
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  margin-top: 3px;
}

.project-coverage__privacy {
  background: rgba(255, 252, 243, .94);
  border: 1px solid rgba(78, 92, 82, .16);
  border-radius: 14px;
  bottom: 24px;
  box-shadow: 0 13px 32px rgba(23, 52, 47, .14);
  color: #40544e;
  max-width: 390px;
  padding: 12px 16px;
  right: 24px;
}

.project-coverage__privacy strong,
.project-coverage__privacy span { display: block; }

.project-coverage__privacy strong {
  color: #214d45;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project-coverage__privacy span {
  font-size: 11px;
  line-height: 1.45;
  margin-top: 3px;
}

.project-coverage__loading {
  align-items: center;
  background: #e6eee9;
  color: #315d54;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 10px;
  inset: 0;
  justify-content: center;
  position: absolute;
  z-index: 4;
}

.project-coverage__loading span {
  animation: hazo-map-pulse 1.2s ease-in-out infinite;
  background: #c79638;
  border: 3px solid rgba(255, 255, 255, .82);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(41, 78, 71, .18);
  height: 13px;
  width: 13px;
}

.project-coverage__map.is-loaded .project-coverage__loading { display: none; }

.project-coverage__map.has-error .project-coverage__loading span { animation: none; }

.project-coverage__note {
  color: #677772;
  font-size: 12px;
  line-height: 1.55;
  margin: 15px 4px 0;
  text-align: right;
}

@keyframes hazo-map-pulse {
  0%, 100% { opacity: .55; transform: scale(.82); }
  50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 991px) {
  .project-coverage__intro {
    align-items: start;
    gap: 16px;
    grid-template-columns: 1fr;
  }

  .project-coverage__intro > p { max-width: 760px; }
  .project-coverage__map { height: 580px; }
}

@media (max-width: 767px) {
  .project-coverage__intro { margin-bottom: 24px; }
  .project-coverage__intro h2 { font-size: 34px; }
  .project-coverage__intro > p { font-size: 15px; }
  .project-coverage__map { border-radius: 20px; height: 470px; }

  .project-coverage__stat {
    left: 14px;
    padding: 14px 16px 13px;
    top: 14px;
  }

  .project-coverage__stat strong { font-size: 39px; }
  .project-coverage__stat span { font-size: 14px; margin-top: 6px; }
  .project-coverage__stat small { font-size: 10px; }

  .project-coverage__privacy {
    bottom: 16px;
    left: 14px;
    max-width: none;
    padding: 10px 13px;
    right: 14px;
  }

  .project-coverage__privacy span { font-size: 10px; }
  .project-coverage__note { font-size: 11px; text-align: left; }
  .project-coverage__map .leaflet-control-zoom { margin-right: 12px; margin-top: 12px; }
  .project-coverage__map .leaflet-control-attribution { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .project-coverage__loading span { animation: none; }
}
