/**
**  MAP CONTROLS
**/

.leaflet-control-layers-overlays span {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

#map .leaflet-control-zoom,
.leaflet-control-layers.leaflet-control,
.leaflet-control-geocoder.leaflet-bar.leaflet-control {
    border: 1px solid var(--e-global-color-primary);
    border-radius: 0;
}

#map .leaflet-bottom.leaflet-right {
    height: 15px;
}

#map .leaflet-bottom.leaflet-right a{
    font-size: 10px;
}

/**
**  MAP POPUP
**/

.leaflet-popup-content {
    min-width: 200px;
    min-height: 150px;
    display: flex;
}

#map .popup_content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#map .popup_content div {
    display: flex;
    flex-direction: row;
    padding-left: 10px;
}

#map .popup_content div p:first-child {
    font-weight: 700;
}

#map .leaflet-popup-content a h4{
    padding-top: 20px;
    padding-bottom: 20px;
}

#map .leaflet-popup-close-button span {
    color: var(--e-global-color-primary);
}

#map .leaflet-popup-content {
    display: flex;
    flex-direction: column;
}

#map .leaflet-popup-content .bottone_dettagli {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 15px 0;
    padding-left: -10px;
}

#map .leaflet-popup-content div button{
    background-color: #fff;
    border: 1px solid var(--e-global-color-primary);
    padding: 11px 12px;
    color: var(--e-global-color-primary);
    font-weight: 600;
    font-size: 14px;
    line-height: 14px;
    cursor: pointer;
}

#map .leaflet-popup-content div button:hover{
    background-color: var(--e-global-color-primary);
    border: 1px solid var(--e-global-color-primary);
    color: #fff;
}

#map .leaflet-popup-content-wrapper .leaflet-popup-content p,
#map .leaflet-popup-content-wrapper .leaflet-popup-content a h4 {
    margin: 0;
    font-family: inherit;
}

/**
**  MAP CLUSTER MARKER
**/

#map .cluster_marker_inner {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--e-global-color-primary);
    border: 2px solid #ffffff00;
    animation: fade_less 2s infinite;
}

#map .cluster_marker {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #ffffff00;
    margin-top: -6px;
    margin-left: -6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#map .cluster_marker_outer {
    position: absolute;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #ffffff00;
    border: 2px solid var(--e-global-color-primary);
    opacity: 1;
    animation: fade 2s infinite;
}

#map .cluster_marker p {
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    z-index: 3;
}

#map .leaflet-div-icon {
    width: 0 !important;
    height: 0 !important;
    border: none !important;
}

@keyframes fade {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0
    }
}

@keyframes fade_less {

    0%,
    100% {
        border-color: #ffffff
    }

    50% {
        border-color: var(--e-global-color-primary);
    }
}