.container {
    display: flex;
    height: 100%;
    width: 100%;
    overflow: hidden;
  }  

.map-container {
    display: flex;
    position: relative;
    justify-content: center;
    width: 100%;
    height: 100%;
    flex: 1;
    background: var(--light-color);
    padding: 0;
    margin: 0;
}

.map {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #dfe6e9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.info.legend {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    line-height: 18px;
    left: 60px;
    min-width: 150px;
    max-width: 200px;
    width: auto;
}

.info.legend i {
    width: 18px;
    height: 18px;
    float: left;
    margin-right: 8px;
    opacity: 0.7;
    margin-top: 2px; /* Centra el icono verticalmente */
}

/* Para limpiar el float de los <i> y que el texto no se parta raro */
.info.legend br {
    clear: both;
}

.leaflet-control-layers {
    background-color: white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.leaflet-control-layers-expanded {
    max-width: 220px;
}

.leaflet-control-layers label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    margin-bottom: 4px;
    border-radius: 6px;
    transition: background-color 0.2s ease-in-out;
    cursor: pointer;
}

.leaflet-control-layers label:hover {
    background-color: #f0f0f0;
}

.leaflet-control-layers input[type="radio"],
.leaflet-control-layers input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* Mapa de fondo en el Admin panel */
#decorative-map {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0; /* Debajo del contenido */
  background-image: url('/static/images/mapamundi.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(5px) brightness(0.9) grayscale(0.3) opacity(0.4);
  pointer-events: none; /* No interactivo */
}

/* Para asegurar que el contenido esté sobre el mapa */
.md-container {
  position: relative;
  z-index: 1;
}
