/*
 * Body
 */
body {
    background: white;
}

/*
 * Loading
 */
#loading {
    position: fixed;
    top: 0;
    z-index: 100;
    width: 100%;
    height: 100%;
    display: none;
    background: rgba(0, 0, 0, .5);
}

.cv-spinner {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px #ddd solid;
    border-top: 5px #3f87a6 solid;
    border-radius: 50%;
    animation: sp-anime 0.8s infinite linear;
}

@keyframes sp-anime {
    100% {
        transform: rotate(360deg);
    }
}

/*
* Cookie banner
*/
#cookie-banner {
    position: fixed;
    bottom: 7.5%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background-color: white;
    color: black;
    opacity: .75;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: all 0.3s ease;
}

#cookie-banner:hover {
    opacity: 1;
}

#cookie-banner.minimized {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

#cookie-banner.minimized .full-content {
    display: none;
}

#cookie-banner.minimized .minimized-text {
    display: inline;
}

.minimized-text {
    display: none;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    text-align: justify;
    gap: 1.5rem;
}

.cookie-text {
    flex: 1;
    margin-right: 1rem;
}

#minimize-button {
    font-size: 0.8rem;
}

/*
 * Header
 */
header {
    top: 0;
    flex: 0 0 auto;
    background: white;
}

/*
Nav
*/
.nav-masthead .nav-link {
    color: rgba(0, 0, 0, .5);
    border-bottom: .25rem solid transparent;
}

.nav-masthead .nav-link:hover,
.nav-masthead .nav-link:focus {
    border-bottom-color: rgba(0, 0, 0, .25);
}

.nav-masthead .nav-link:active {
    background: white;
}

.nav-masthead .nav-link+.nav-link {
    margin-left: 1rem;
}

.nav-masthead .active {
    color: #000;
    border-bottom-color: #000;
}

.dropdown-menu {
    background: white;
    color: black;
    border: none;
}

.dropdown-item {
    color: black;
}

.dropdown-item:focus {
    background: rgba(0, 0, 0, .25);
}

.dropdown-item.active {
    background: rgba(0, 0, 0, .25);
}

/*
 * Footer
 */
footer {
    bottom: 0;
    flex: 0 0 auto;
    background: white;
}

/*
* Map
*/
#main {
    display: flex;
    flex: 1 0 auto;
    position: relative;
    max-width: 100vw;
    width: 100vw;
}

#map {
    position: relative;
    z-index: 0;
    width: 100vw;
    height: 100%;
    overflow-x: hidden;
}

.leaflet-overlay-pane svg path {
    transition: all ease .25s;
}

.leaflet-popup-scrolled::-webkit-scrollbar {
    width: 15px;
}

.leaflet-popup-scrolled::-webkit-scrollbar-track {
    background: transparent;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0);
    border-radius: 5px;
}

.leaflet-popup-scrolled::-webkit-scrollbar-thumb {
    background: rgba(200, 200, 200, .75);
    border-radius: 5px;
    transition: all ease .25s;
}

.leaflet-popup-scrolled::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 100, 100, 1);
}

/*
 * Panels
 */
@media (max-width: 767px) {
    #left-panel {
        position: absolute;
        z-index: 1;
        top: 2.75%;
        left: 50%;
        min-width: 80%;
        max-width: 90%;
        height: auto;
        max-height: 40%;
        transform: translate(-50%, 0);
        overflow-y: auto;
        transition: all ease .25s;
        scroll-behavior: smooth;
    }

    #right-panel {
        position: absolute;
        z-index: 1;
        bottom: 2.75%;
        right: 50%;
        width: auto;
        max-width: 80%;
        height: auto;
        /*max-height: 20%;*/
        transform: translate(50%, 0);
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: auto;
        scroll-behavior: smooth;
    }

    #right-panel .card {
        flex: 0 0 auto;
        min-width: 150px;
    }

    #left-panel::-webkit-scrollbar,
    #right-panel::-webkit-scrollbar {
        width: 5px;
    }
}

@media (min-width: 768px) {
    #left-panel {
        position: absolute;
        z-index: 1;
        bottom: 50%;
        left: 5%;
        max-width: 20%;
        height: auto;
        max-height: 80%;
        transform: translate(0, 50%);
        display: flex;
        flex-direction: column;
        overflow-y: scroll;
        transition: all ease .25s;
        scroll-behavior: smooth;
    }

    #right-panel {
        position: absolute;
        z-index: 1;
        bottom: 50%;
        right: 5%;
        width: 20%;
        max-width: 20%;
        height: auto;
        max-height: 80%;
        transform: translate(0, 50%);
        overflow-y: scroll;
        scroll-behavior: smooth;
        transition: all ease .25s;
    }

    #left-panel::-webkit-scrollbar,
    #right-panel::-webkit-scrollbar {
        width: 15px;
    }
}

#left-panel .card,
#right-panel .card {
    opacity: .75;
    border: none;
    cursor: pointer;
    transition: all ease .25s;
}

#left-panel .card:hover {
    opacity: 1;
}

#left-panel::-webkit-scrollbar-track,
#right-panel::-webkit-scrollbar-track {
    background: transparent;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0);
    border-radius: 5px;
}

#left-panel::-webkit-scrollbar-thumb,
#right-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .75);
    border-radius: 5px;
    cursor: pointer;
    transition: all ease .25s;
}

#left-panel::-webkit-scrollbar-thumb:hover,
#right-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 1);
}