
#map-container {
    display: grid;
}

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

#map-container .filters-toggle {
    position: fixed;
    z-index: 2000;
    padding: 1rem;
    background: teal;
    bottom: 0;
    right: 0;
    left: 0;
    color: #fff;
}

#map-container .map-filters {
    position: fixed;
    inset: 0;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 300ms ease-in-out;
}

#map-container #filters-toggle {
    display: none;
}

#map-container #filters-toggle:checked ~ .map-filters {
    transform: translateX(0);
}

#map-container .filters-toggle span.burger {
    margin-right: 10px;
}

#map-container .filters-toggle span.burger,
#map-container .filters-toggle span.burger::before,
#map-container .filters-toggle span.burger::after {
    display: inline-block;
    background: #fff;
    width: 2rem;
    height: 2px;
    transition: all 300ms ease-in-out;
    line-height: 2px;
    vertical-align: middle;
}

#map-container .filters-toggle span.burger::before {
    bottom: 0.85rem;
}

#map-container .filters-toggle span.burger::after {
    top: 0.85rem;
}

#map-container .filters-toggle span.burger::before,
#map-container .filters-toggle span.burger::after {
    content: "";
    position: absolute;
}

.leaflet-popup-content {
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
}

.leaflet-popup-content .title {
    font-weight: bold;
    font-size: 0.9rem;
}

.leaflet-popup-content i {
    color: #667085;
}

@media (max-width: 747px) {
    .galleries-filter .galleries-filter-header {
        flex-direction: column;
    }

    .btn-close {
        width: 40px;
        height: 40px;
        right: 20px;
        top: 60px;
    }

    .btn-close .icon-cross {
        width: 30px;
        height: 30px;
    }

    .btn-close .icon-cross::before,
    .btn-close .icon-cross::after {
        width: 25px;
        top: 13px;
    }

    #form-search-location input[type="submit"].form-search-location-submit {
        display: block;
    }
}

@media (min-width: 748px) {
    #map-container {
        grid-template-columns: 1fr;
    }

    #map-container .map-filters {
        position: initial;
        transform: unset;
    }

    #map-container .filters-toggle {
        display: none;
    }
}

#map-loading {
    inset: 0;
    z-index: 1000;
    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);
    }
}
