
#fg-map{
    width: 100%;
    height: 100%;
    z-index: 1;
}
/**************** ***** *******************/
/**************** POPUP *******************/
/**************** ***** *******************/

#fg-map .structure-presentation{
    max-height: 5em;
    overflow: hidden;
}

#fg-map .structure-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#fg-map .structure-logo{
    width: 40%;
    max-width: 150px;
    object-fit: contain;
}
#fg-map .structure-name{
    width: 40%;
    font-size: 1.2em;
    font-weight: bold;
}
.leaflet-popup-content p.structure-contact {
    margin : 0.5rem 0;
}

/**************** ***** *******************/
/**************** MARKERS *******************/
/**************** ***** *******************/

.fg-div-marker {
    background: transparent;
    border: none;
}

.fg-marker {
    display: block;
    width: 15px;
    height: 15px;
    background: var(--fg-blue);
}

/* Rond */
.fg-marker--circle {
    border-radius: 50%;
}

/* Triangle */
.fg-marker--triangle {
    width: 22px;
    height: 22px;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
.marker-cluster{
    background-color: var(--fg-blue);
}
.marker-cluster-small div {
    background-color: var(--fg-blue);
    color: white;
}
/**************** ***** *******************/
/**************** FILTERS *****************/
/**************** ***** *******************/

.fg-structure__filter-bar{
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.fg-structure__filter-bar .fg-map__filter-element{
    border: 1px solid black;
    border-radius: 5px;
    padding: 0.25rem 1rem;
    transition: all .3s;

}

select.fg-map__select,
select.fg-map__select::picker(select) {
  appearance: base-select;
}

.fg-structure__filter-bar select.fg-map__select{
    position:relative;
    width: 32%;
    max-width: 220px;
    background-color: white;
    line-height: 1em;
    font-size : clamp(14px, 1vw, 1rem);

    &::picker-icon {
        position: absolute;
        right: 10px;
        top: 50%;
        content: url('/wp-content/uploads/2026/06/Fleche-Slider-Bleu.svg');
        width:10px;
        height: 10px;
        transform: translateY(-50%) rotate(90deg);
        margin: 0;

    }
    option::checkmark {
        display:none;
    }
    &::picker(select) {
        background-color: white;
        border: 1px solid black;
        border-radius: 5px;
        padding: 20px;
    }

    &.active,
    &:hover{
        background-color: var(--fg-blue);
        border: 1px solid var(--fg-blue);
        color: white;

        &::picker-icon {
            content: url('/wp-content/uploads/2026/06/Fleche-Slider-Blanc.svg');
        }
    }
}
.fg-map__search{
    width: 100%;
}
/**************** ***** *******************/
/**************** FILTERS *****************/
/**************** ***** *******************/

.fg-map__details-container{
    position: absolute;
    display:flex;
    flex-direction: column;
    gap: 1rem;
    top: 0;
    left: 0;
    padding: 40px;
    overflow-y: scroll;
    height: 100%;
    width: clamp(250px, 100%, 500px);
    background-color: var(--fg-light-blue);
    z-index: 0;
    transform:translateX(0);
    transition: 0.4s ease-out;

    &.active{
        transform:translateX(-100%);
    }
}



.card-structure{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 5px;
    font-family: var(--fg-primary-font);

    .structure-presentation{
        max-height: 5.5em;
        line-height: 1.1em;
        font-size: 1rem;
        overflow: hidden;
        font-weight: 300;
    }

    .structure-header{
        display: flex;
        gap : 1rem;
        align-items: center;
    }
     .structure-logo{
        width:30%;
        max-width: 100px;
        max-height: 60px;
        object-fit: contain;
    }
    .structure-name{
        width: auto;
        font-size: 1.2em;
        font-weight: bold;
        text-transform: uppercase;
    }
}