

#map {
  position: relative;
  height: 100vh;
  width: 100%;
  background: #d8dcdc;
}


/* ===============================
   Controles superiores (si se usan)
   =============================== */

#controls {
  position: absolute;
  top: 10px;
  left: 50px;
  z-index: 1000;
  background: white;
  padding: 8px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}


/* ===============================
   Slider temporal
   =============================== */

.slider-container {
  position: absolute;
  bottom: 18px;
  left: 20px;
  width: 240px;   
  background: rgba(239, 245, 248, 0.92);
  padding: 10px 12px;      
  border-radius: 10px;     
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12); 
  z-index: 1000;

  backdrop-filter: blur(4px);
}

/* Slider */
#yearSlider {
  width: 100%;
  margin-top: 6px;
  cursor: pointer;
}

/* Etiqueta del año */
#yearLabel {
  text-align: center;
  font-weight: 700;
  margin-top: 7px;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: #2c3e50;
}
/* ===============================
   Botones de navegación temporal
   =============================== */


.controls {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.controls button {
  flex: 1;
  padding: 6px 0; 
  font-size: 13px;  
  border-radius: 8px;   
  border: 1px solid #3e7aa1;
  background: #4190a8;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: 
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.15s ease,
    border-color 0.25s ease;
}

/* Hover elegante */
.controls button:hover:not(:disabled) {
  background: #59afe9;
  border-color: #3498db;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

/* Active */
.controls button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Disabled */
.controls button:disabled {
  opacity: 0.4;
  background: #5ca1cf;
  border-color: #aed6f1;
  cursor: default;
  box-shadow: none;
}



/* ===============================
   Tooltips (mejorados)
   =============================== */

.leaflet-tooltip {
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.4;
  background: white;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.tooltip-content {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  gap: 2px;
  color: #3d3d3d;
}

.tooltip-title {
  font-weight: 700;
  font-size: 14px;
  color: #537291;
  margin-bottom: 4px;
}

.tooltip-content strong {
  font-weight: 700;
  color: #5e5d5d;
}


/* ===============================
   Labels geográficos
   =============================== */

.label-departamento {
  background: transparent;
  opacity: 0.4;
  border: none;
  box-shadow: none;
  font-size: 12px;
  font-weight: 800;
  color: #8f8e8e;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow:
  -2px -2px 0 white,
   2px -2px 0 white,
  -2px  2px 0 white,
   2px  2px 0 white;
  pointer-events: none;
}

.label-ciudad {
  background: transparent;
  border: none;
  box-shadow: none;
  font-size: 10px;
  font-weight: 600;
  color: #707070;
  pointer-events: none;
}