/*** Interactive map ***/

:root {
    --dark-blue: #212851;
    --clear-blue: #79c7c3;
    --yellow: #e8d000;
}

.site-header,
.site-footer {
    display: none;
}

/* [] CONTAINER */

.map-container {
    display: flex;
    position: absolute;
    height: 100vh;
    width: 100vw;
    top: 0;
    left: 0;
    z-index: 100;
}

/* [] MAP */

#map-interactive {
    height: 100vh;
    width: 100%;
}

.leaflet-bottom.leaflet-right {
    display: none;
}

/* || MAP LOADER */

#map-loading {
    inset: 0;
    z-index: 701;
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
}

#map-loading.is-show {
    display: flex;
}

.lds-dual-ring {
    display: inline-block;
    width: 80px;
    height: 80px;
}

.lds-dual-ring:after {
    content: " ";
    display: block;
    width: 64px;
    height: 64px;
    margin: 8px;
    border-radius: 50%;
    border: 6px solid red;
    border-color: transparent #22aae5 transparent #22aae5;
    animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* || BACK BUTTON */

.map-close {
    position: absolute;
    top: 50px;
    right: 50px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    z-index: 1000;
    border: 1px solid var(--dark-blue);
    background: var(--dark-blue);
    border-radius: 100px;
}

.map-close .fa-solid {
    font-size: 4rem;
    color: var(--clear-blue);
}

/* [] FILTERS SIDEBAR */

.map-filters {
    background: var(--dark-blue);
    padding: 3rem;
    overflow-y: auto;
}

.map-filters-title {
    margin: 0;
    margin-bottom: 3rem;
    color: var(--clear-blue);
    text-transform: uppercase;
}

.map-filters-search {
    margin-bottom: 3rem;
}

.map-search-submit {
    text-transform: uppercase;
    background: none;
    color: white;
    border: 1px solid white;
    padding: 0.5rem 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    margin: 1.5rem 0;
}

.map-search-submit .fa-solid {
    margin-right: 1rem;
}

.map-search-input {
    margin-bottom: 1.5rem;
}

.map-filters-subtitle {
    margin: 0;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: var(--clear-blue);
    border-top: 1px solid;
    color: var(--clear-blue);
    padding-top: 1.5rem;
}

.map-filters-checkboxes {
    margin-bottom: 3rem;
}

.map-filter-label {
    font-weight: 400;
    color: white;
    transition: color .5s;
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

@media (hover: hover) {
    .map-filter-label:hover {
        color: var(--yellow);
        transition: color .5s;
    }
}

.map-filter-checkbox:checked~.map-filter-label {
    font-weight: 700;
    color: var(--yellow);
}

.map-filter-checkbox:checked~.map-filter-label::before {
    content: '- ';
}

.map-filters-reset {
    padding: 1.6rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    background-color: transparent;
    border: 1px solid var(--yellow);
    color: var(--yellow);
    letter-spacing: .5px;
    transition: color .5s, background-color .5s;
    cursor: pointer;
}

@media (hover: hover) {
    .map-filters-reset:hover {
        color: var(--dark-blue);
        background-color: var(--yellow);
        transition: color .5s, background-color .5s;
    }
}

.map-filters-toggle-label {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--clear-blue);
    color: var(--dark-blue);
    z-index: 1002;
    text-align: left;
    padding-left: 1.5rem;
    font-size: 2rem;
    height: 50px;
    border: 1px solid white;
    cursor: pointer;
    display: none;
    align-items: center;
    margin: 0;
    border: none;
}

.map-filters-toggle-show-text.hidden {
    display: none;
}

.map-filters-toggle-hide-text {
    display: none;
}

.map-filters-toggle-show-text.hidden~.map-filters-toggle-hide-text {
    display: inline;
}

.map-filters-toggle-label .fa-solid {
    margin-right: 1rem;
}

.map-no-results {
    color: var(--yellow);
    font-size: 1.5rem;
    text-align: center;
    font-weight: 700;
}

/* [] MARKER POPUP */

.leaflet-popup-content-wrapper {
    background-color: var(--dark-blue) !important;
    color: white !important;
    font-size: 1.5rem;
}

.marker-pop-title {
    text-align: center;
    margin-bottom: 1rem;
}

.marker-pop-function {
    text-align: center;
    margin-top: 0 !important;
}

.marker-pop-img {
    width: 100%;
}

.leaflet-popup-content-wrapper a {
    color: white !important;
    text-decoration: underline;
}

@media (hover: hover) {
    .leaflet-popup-content-wrapper a:hover,
    .marker-pop-more:hover::before {
        color: var(--yellow) !important;
        text-decoration: none;
    }
    
}

.marker-pop-more-wrap {
    text-align: center;
    padding: 1rem 0;
}

.marker-pop-more {
    color: var(--yellow) !important;
    border: 1px solid;
    padding: 1rem;
}

.marker-pop-more::before {
    color: white !important;
}

.leaflet-popup-content-wrapper .fa-solid,
.leaflet-popup-content-wrapper .fa-brands {
    margin-right: 1rem;
}

.marker-pop-address-wrap {
    display: flex;
    align-content: baseline;
}

/* [] CLUSTERS */

.marker-cluster-small,
.marker-cluster-large {
    background-color: rgba(241, 211, 87, 0.6) !important;
}

.marker-cluster-small div,
.marker-cluster-large div {
    background-color: rgba(240, 194, 12, 0.6) !important;
}

/* [] RESPONSIVE */

@media screen and (max-width: 800px) {
    .map-filters {
        height: calc(100vh - 50px);
        width: 100%;
        transform: translateX(-100%);
        transition: transform .3s;
        position: absolute;
        z-index: 1001;
        padding-bottom: 100px;
    }

    .map-filters.expanded {
        transform: translateX(0);
        transition: transform .3s;
    }

    .map-filters-toggle-label {
        display: flex;
    }

    .page-template-map-v2-php #onesignal-bell-container.onesignal-reset.onesignal-bell-container-bottom-right {
        bottom: 50px;
    }

    .page-template-map-v2-php #axeptio_main_button {
        bottom: 73px !important;
    }

    #map-filters-reset {
        display: block;
        margin: auto;
    }
    .map-filter-label:hover {
        color: white;
        transition: color .5s;
    }
}
