/*
* Style de la légende de la carte
* Auteur: Loïc PAPAZIAN
* Date: 2024-09-13
* Update: 2024-09-16
*/

#btnLegend {
    Background-color: #FFFFFF;
    color: #000000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 40px 10px;
}

#btnLegend:after {
    content: "\F586";
    color: #ffc958;
    font-family: bootstrap-icons, serif;
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

.btn-legend-close {
    background: none;
    width: 50px;
    height: 50px;
    font-weight: bolder;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
}

#map-legend {
    position: fixed;
    display: none;
    bottom: 10px;
    right: 10px;
    z-index: 999999999999999999;
    transition: all 0.5s ease;
    padding: 10px;
    background-color: #FFFFFF;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
}

#map-legend.expanded {
    display: block;
    transition: all 0.5s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
!important;
    width: 100vw;
!important;
    right: 0;
    height: 100%;
    cursor: auto;
}

#map-legend-list {
    overflow-y: auto;
    height: 80vh;
    padding-bottom: 3rem;
}

/* ######################
# CONTENU LEGENDS
*/

#map-legend-container h2 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

#map-legend ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    overflow: auto;
}

#map-legend ul li {
    margin-bottom: 5px;
}

#map-legend ul li span {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 5px;
    border-radius: 50%;
}

.li-legend {
    cursor: pointer;
}

/*
* Format tablette & desktop
*/
@media screen and (min-width: 768px ) and (min-height: 900px ) {
    #map-legend.expanded {
        max-height: 50%;
        right: 20px;
        bottom: 20px;
        width: 40% !important;
        height: 50%;
    }

    #map-legend-list {
        height: 35vh !important;
    }
}
