/* ===========================
   Estilo del mapa de proyectos
   =========================== */

#map {
  height: 650px;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  z-index: 0;
  background: #f9f9f9;
}

/* Popup de información */
.leaflet-popup-content {
  font-size: 14px;
  line-height: 1.4;
  padding: 0;
  margin: 0;
}

.leaflet-popup-content h6 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 6px;
  color: #134563;
}

.leaflet-popup-content img {
  border-radius: 6px;
  margin-bottom: 8px;
  width: 100%;
  height: 160px;
  object-fit: cover;
}

/* Botón de cerrar el popup */
.leaflet-popup-close-button {
  color: #999;
  font-size: 22px;
  font-weight: bold;
}

/* Contenedor del popup */
.leaflet-popup-content-wrapper {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 12px;
  background-color: #fff;
}

/* Mejor accesibilidad general */
.leaflet-container {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-size: 14px;
  color: #333;
}

/* Zoom buttons */
.leaflet-control-zoom {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(0,0,0,0.3);
}
.leaflet-control-zoom a {
  font-size: 18px;
  padding: 6px 10px;
}

/* Estilo para clusters (círculo con número) */
.marker-cluster {
  background-color: rgba(57, 142, 222, 0.6);
  border-radius: 50%;
  border: 3px solid #fff;
  color: #fff;
  font-weight: bold;
  text-align: center;
  line-height: 40px;
}

.marker-cluster div {
  width: 40px;
  height: 40px;
}

/* Estilo botón Show All */
#fitAllBtn {
  white-space: nowrap;
  font-weight: 500;
  font-size: 14px;
}

/* Responsive en pantallas pequeñas */
@media (max-width: 576px) {
  #map {
    height: 450px;
  }

  .leaflet-popup-content {
    font-size: 13px;
  }

  .leaflet-popup-content img {
    height: 120px;
  }

  .leaflet-popup-content h6 {
    font-size: 14px;
  }
}
