/* Contenedor principal del mapa */
.mapa-container {
  display: flex;
  height: 600px;
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Panel lateral de información */
#info-sidebar {
  width: 30%;
  background: #2a569f;
  color: white;
  padding: 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-y: auto;
}

/* Controles de navegación */
.navigation-controls {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
  gap: 10px;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-btn:active {
  transform: scale(0.95);
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Información del municipio */
.municipio-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#municipio-titulo {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 20px 0;
  line-height: 1.3;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: -0.5px;
}

#municipio-descripcion {
  font-size: 15px;
  line-height: 1.7;
  flex: 1;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 400;
}

#municipio-descripcion h3 {
  font-size: 16px;
  margin: 25px 0 10px 0;
  color: #ffd700;
  border-bottom: 2px solid rgba(42, 86, 159, 0.5);
  padding-bottom: 5px;
  font-weight: 600;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

#municipio-descripcion ul {
  margin: 10px 0;
  padding-left: 20px;
}

#municipio-descripcion li {
  margin: 6px 0;
  list-style-type: none;
  position: relative;
  font-weight: 400;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
}

#municipio-descripcion li::before {
  content: "•";
  color: #ee4338;
  font-weight: bold;
  position: absolute;
  left: -15px;
}

#municipio-descripcion p {
  margin: 10px 0;
  font-weight: 400;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Contenedor del mapa */
#map-canvas {
  width: 70%;
  height: 100%;
  position: relative;
}

/* Estilos para los marcadores personalizados */
.custom-marker {
  background: #667eea;
  border: 3px solid white;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Popup personalizado */
.leaflet-popup-content-wrapper {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.leaflet-popup-content {
  margin: 15px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.leaflet-popup-content h3 {
  margin: 0 0 10px 0;
  color: #667eea;
  font-size: 18px;
}

.leaflet-popup-content p {
  margin: 5px 0;
  color: #555;
}

/* Loading state */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 18px;
  color: #667eea;
}

/* Responsive design */
@media (max-width: 768px) {
  .mapa-container {
    flex-direction: column;
    height: 800px;
  }

  #info-sidebar {
    width: 100%;
    height: 40%;
    padding: 20px;
  }

  #map-canvas {
    width: 100%;
    height: 60%;
  }

  #municipio-titulo {
    font-size: 24px;
  }

  #municipio-descripcion {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .mapa-container {
    height: 700px;
  }

  #info-sidebar {
    padding: 15px;
  }

  .navigation-controls {
    margin-bottom: 15px;
  }

  .nav-btn {
    width: 40px;
    height: 40px;
  }
}
#municipio-titulo {
  font-size: 20px;
  font-weight: 600;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: -0.3px;
}

#municipio-descripcion {
  font-size: 13px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Animaciones y transiciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

/* Scrollbar personalizado para el sidebar */
#info-sidebar::-webkit-scrollbar {
  width: 8px;
}

#info-sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

#info-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

#info-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}
