﻿.unv-header {
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    z-index: 3;
}

    .unv-header::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 5px; /* shadow size */
        background: linear-gradient(to bottom, rgba(0,0,0,0.1), transparent);
        border-radius: inherit;
        pointer-events: none;
    }

#map {
    width: 40%;
    height: 100%;
}

#map-section {
    flex-direction: row;
    padding: 0;
    height: calc(100vh - 95px);
}

.park-bar {
    width: 60%;
    height: 100%;
    padding: 0.5rem 1rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 5px #00000026;
    z-index: 4;
}

.park-list {
    padding-top: 1rem !important;
}

.discover__mobile-buttons {
    display: none;
    position: fixed;
    bottom: 0;
    left: 50%;
    margin: 1rem auto;
    z-index: 2;
}

.map-popup-header {
    color: var(--text-dark);
    font-weight: 600;
}

.avail-search__container {
    z-index: 3 !important;
}

.avail-search__menu {
    top: calc(44px + 2rem) !important;
}

.avail-search__divider {
    position: relative;
    border-bottom: 1px solid #00000033;
    margin-left: -1rem;
    margin-right: -1rem;
}

    .avail-search__divider::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 5px; /* shadow size */
        background: linear-gradient(to bottom, rgba(0,0,0,0.1), transparent);
        border-radius: inherit;
        pointer-events: none;
    }

.avail-search__guest-dropdown {
    margin-top: -8px !important;
}

@media (max-width: 850px), (min-width: 1251px) and (max-width: 2300px) {
    .avail-search__menu {
        flex-direction: column;
    }

    .avail-search__menu-section {
        width: 100% !important;
    }

        .avail-search__menu-section:first-of-type {
            border-right: none !important;
            padding-right: 0 !important;
            margin-right: 0 !important;
            border-bottom: 1.5px solid #80808080;
            padding-bottom: 1rem;
            margin-bottom: 1rem;
        }
}

@media (min-width: 1251px) and (max-width: 2000px) {
    /*.park-list {
        grid-template-columns: 1fr !important;
    }*/
}

@media (max-width: 1250px) {
    .park-bar {
        width: 100% !important;
    }

    .park-list {
        padding-bottom: 3rem;
    }

    #map-section[data-mode="map"] .park-bar {
        display: none !important;
    }

    #map {
        width: 100% !important;
    }

    #map-section[data-mode="list"] #map {
        display: none !important;
    }

    #map-section[data-mode="list"] {
        height: 100% !important;
    }

        #map-section[data-mode="list"] .park-list {
            height: 100% !important;
            overflow-y: visible !important;
        }

    .discover__mobile-buttons {
        display: block;
        transform: translate(-50%, 0);
    }

    #map-section[data-mode="list"] #park-list-button {
        display: none;
    }

    #map-section[data-mode="map"] #park-map-button {
        display: none;
    }
}

@media (max-width: 800px) {
    .park-list {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 500px) {
    .avail-search__bar {
        flex-wrap: wrap;
        row-gap: 1rem;
        min-height: calc(88px + 1rem) !important;
        max-height: calc(88px + 1rem) !important;
    }

        .avail-search__bar > button:last-child {
            width: 100%;
        }

    .avail-search__menu {
        top: calc(88px + 3rem) !important;
    }

    .avail-search__menu-section-buttons {
        flex-direction: column;
        row-gap: 1rem;
    }

    .mapboxgl-ctrl-geocoder {
        margin-left: 10px !important;
        width: unset !important;
    }
}