/**
**  MAP FILTER
**/

#map {
    filter: #ff4f9b85;
}


/**
**  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-wrapper,
.leaflet-popup-tip {
    background-color: var(--e-global-color-primary);
}

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

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

#map .popup_content div {
    display: flex;
    flex-direction: row;
}

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

#map .leaflet-popup-content a h4 {
    font-size: 26px;
    font-weight: 600;
    font-family: 'Montserrat';
    letter-spacing: -1px;
    margin-bottom: 13px;
    margin-top: 0;
    color: #fff;
}

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

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

#map .leaflet-popup-content img {
    border: 2px solid var(--e-global-color-accent);
    border-radius: 3px;
}

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

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

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

#map .leaflet-popup-content-wrapper .leaflet-popup-content p {
    color: #fff;
}


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

#map .leaflet-popup-close-button span {
    color: #fff;
}

/**
**  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;
    margin: 0;
}

#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);
    }
}

/* Scritta avvertimento touch mappa */
#map::after {
    font-size: 14px !important;
}

