/* ==== 1. IMPORTAR EL CSS DE LEAFLET ==== */
@import "leaflet/dist/leaflet.css";

/* ==== 2. DEFINIR LA ANIMACIÓN “PULSING” ==== */
@keyframes pulsing {
  0% {
    transform: scale(0.8);
    opacity: 0.7;
    box-shadow: 0 0 0 0px rgba(0, 123, 255, 0.7);
  }
  70% {
    transform: scale(1.4);
    opacity: 0;
    box-shadow: 0 0 0 20px rgba(0, 123, 255, 0);
  }
  100% {
    transform: scale(0.8);
    opacity: 0.7;
    box-shadow: 0 0 0 0px rgba(0, 123, 255, 0);
  }
}

/* ==== 3. CLASE PARA EL ICONO “PULSANTE” ==== */
.pulse-marker {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 123, 255, 1);
  position: relative;
  /* Centrar el círculo en la coordenada (el anchor del Marker lo compensa) */
  transform: translate(-6px, -6px);
  animation: pulsing 1.8s ease-out infinite;
}

/* Círculo interno para dar contraste (opcional) */
.pulse-marker::after {
  content: "";
  width: 6px;
  height: 6px;
  background: white;
  border: 2px solid rgba(0, 123, 255, 1);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ==== 4. OPCIONAL: DIMENSIONES DEL CONTENEDOR #map ==== */
#map {
  width: 100%;
  height: 600px; /* Ajusta esto si quieres otro alto */
  margin: 0 auto;
}

.blinking-marker {
  width: 20px;
  height: 20px;
  background-color: red;
  border: 3px solid white;
  border-radius: 50%;
  animation: blink 1s infinite;
  box-shadow: 0 0 5px rgba(255, 0, 0, 0.8);
}

@keyframes blink {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.3); }
  100% { opacity: 1; transform: scale(1); }
}
