/**
* Informe de nieve
*/

    .map-tooltip {
        font-weight: bold;
        background-color: rgba(255, 255, 255, 0.8);
        border: 1px solid #337ab7;
        border-radius: 3px;
        padding: 2px 5px;
    }
    .leaflet-popup-content-wrapper{
        font-weight: bold;
        background-color: rgba(255, 255, 255, 0.8);
        border-radius: 3px;
    }
    
    .panel-heading h5 {
        margin: 0;
        font-size: 16px;
    }
    
    table.table-condensed th, 
    table.table-condensed td {
        padding: 5px;
    }
    
    #graficaNieve {
        width: 100%;
        max-width: 100%;
        height:  100% 
    }
    
    .legend {
        background-color: rgba(255, 255, 255, 0.9);
        padding: 10px;
        border-radius: 5px;
        box-shadow: 0 0 10px rgba(0,0,0,0.2);
        width: 300px;
    }
    
    .legend h5 {
        margin-top: 0;
        font-size: 12px;
    }
    
    .legend div span {
        display: inline-block;
        width: 20px;
        height: 20px;
        margin-right: 2px;
        margin-left: 8px;
        vertical-align: middle;
    }
    
    #layer-controls {
        border-top: none;
        border-radius: 0 0 4px 4px;
    }
    
    #snow-layers-group {
        width: 100%;
    }
    
    #snow-layers-group .btn {
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .loading-control .alert {
        margin-bottom: 0;
    }
    
    .error-control .alert {
        margin-bottom: 0;
    }
    
    /* Estilos para los botones de capa base */
    .btn-group .btn.active {
        background-color: #337ab7;
        color: white;
    }
    
    /* Ajustes para la leyenda en 3 columnas */
    .legend .row {
        margin-bottom: 5px;
        margin-left: 5px;
        margin-right: 5px;
    }
    
    .legend .col-xs-4 {
        padding-left: 5px;
        padding-right: 5px;
    }
    #snow-layers-container ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#snow-layers-container li {
    background-color: #f1f1f1;
    padding: 5px 5px;
    border-radius: 5px;
    cursor: pointer;
}

#snow-layers-container li.active {
    background-color: #337ab7;
    color: white;
}
  /* Estilos para el control de capas de Leaflet */
  .leaflet-control-layers {
        border: 2px solid rgba(0,0,0,0.2);
        background-clip: padding-box;
        background: white;
        padding: 1px;
    }
    
    .leaflet-control-layers-expanded {
        padding: 10px;
    }
    
    .leaflet-control-layers label {
        display: block;
        margin-bottom: 1px;
    }
    
    .leaflet-control-layers-selector {
        margin-right: 5px;
    }
    /* Estilos para la lista de capas de nieve */
#snow-layers-container {
    max-height: 200px;
    overflow-y: auto;
    padding: 5px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#snow-layers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#snow-layers-list li {
    padding: 5px 10px;
    background-color: #f1f1f1;
    border-radius: 3px;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: all 0.2s;
    font-size: 13px;
}

#snow-layers-list li:hover {
    background-color: #e1e1e1;
}

#snow-layers-list li.active {
    background-color: #337ab7;
    color: white;
    border-color: #2a6496;
    font-weight: bold;
}

/* Asegurar que la leyenda se vea bien */
.legend .row {
    margin: 0 -5px;
}

.legend .col-xs-3 {
    padding: 0 5px;
}

.legend div span {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 5px;
    vertical-align: middle;
}

/* Estilos para el display de fecha en el mapa */
#snow-date-display {
    position: absolute;
    top: 80px; /* Ajusta esta posición según necesites */
    right: 30px; /* Ajusta esta posición según necesites */
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-weight: bold;
    box-shadow: 0 1px 5px rgba(0,0,0,0.2);
    pointer-events: none; /* Para que no interfiera con los clicks en el mapa */
}

/* Asegúrate de que el contenedor del mapa tenga posición relativa */
#mapa-leyenda {
    position: relative;
}

/**
* Informe de escasez y sequía
*/
  .drought-container h1 {
    font-size: 2.1rem;         /* antes 1.9rem */
    font-weight: 600;
    margin-bottom: 1rem;
    color: #004d7a;
  }

  .drought-container .lead-intro {
    font-size: 1.5rem;        /* antes 0.95rem */
    color: #444;
    max-width: 100%;
  }

  .drought-card p {
    font-size: 1.5rem;           /* antes 0.95rem */
    line-height: 1.6;
    margin-left: 1rem;
    margin-right: 1rem;
    text-align: justify;
    color: #333;
  }

  .drought-link {
    font-size: 1.3rem;        /* un pelín más grande */
    text-decoration: none;
  }

  .drought-link:hover {
    text-decoration: underline;
  }

  .drought-scenarios .scenario-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 1.4rem;         /* antes 0.8rem */
    font-weight: 600;
    margin-bottom: 4px;
  }

  .drought-scenarios .scenario-badge .dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 6px;
  }

  .drought-scenarios .scenario-text {
    font-size: 1.5rem;        /* antes ~0.9rem */
    margin-top: 4px;
    color: #444;
    line-height: 1.5;
  }

  .drought-side-card {
    font-size: 1.3rem;        /* subimos también la columna derecha */
  }

  .drought-side-card .small {
    font-size: 1.4rem;
    margin-top: 10px;
    margin-bottom: 2px;
  }

  @media (max-width: 768px) {
    .drought-container h1 {
      font-size: 1.8rem;
    }
    .drought-card, .drought-side-card {
      margin-top: 10px;
    }
  }
