/* Homepage Leaflet map — Tailwind img max-width breaks map tiles. */

.clinic-map-wrap {
  position: relative;
}

[data-map-focus] {
  cursor: pointer;
}

.clinic-map.leaflet-container {
  font-family: inherit;
  background: #e8eadf;
  z-index: 0;
}

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

.clinic-map .leaflet-control-zoom a {
  width: 32px;
  height: 32px;
  line-height: 30px;
  color: #2f3618;
  border-bottom-color: #e4e6d8;
}

.clinic-map .leaflet-control-zoom a:hover {
  background: #f8daaf;
  color: #2f3618;
}

.clinic-map .leaflet-control-attribution {
  font-size: 10px;
  background: rgba(249, 247, 242, 0.92);
}

.clinic-map-pin {
  position: relative;
  filter: drop-shadow(0 4px 6px rgba(47, 54, 24, 0.28));
}

.clinic-map-pin__pulse {
  position: absolute;
  left: 50%;
  top: 14px;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.28);
  animation: clinic-map-pulse 2s ease-out infinite;
}

.clinic-map-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(47, 54, 24, 0.22);
}

.clinic-map-badge--parking {
  background: #1d4ed8;
}

.clinic-map-badge--bus {
  background: #ea580c;
}

.clinic-map-badge--train {
  background: #0369a1;
}

.clinic-map-popup .leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(47, 54, 24, 0.12);
}

.clinic-map-popup .leaflet-popup-content {
  margin: 12px 14px;
  font-family: "Anek Gujarati", system-ui, sans-serif;
  color: #2f3618;
}

.clinic-map-popup__kicker {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b6b6b;
}

.clinic-map-popup__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.clinic-map-popup__link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #2f3618;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.clinic-map__legend {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(249, 247, 242, 0.96);
  box-shadow: 0 8px 30px rgba(47, 54, 24, 0.1);
  color: #2f3618;
  font-family: "Anek Gujarati", system-ui, sans-serif;
  line-height: 1.2;
}

.clinic-map__legend-title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.clinic-map__legend-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.clinic-map__legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 3px 0;
  font-size: 13px;
  font-weight: 600;
}

.clinic-map__legend-swatch {
  flex: none;
  width: 18px;
  height: 18px;
}

.clinic-map__legend-swatch--clinic {
  color: #dc2626;
}

@keyframes clinic-map-pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .clinic-map-pin__pulse {
    animation: none;
    display: none;
  }
}
