@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');


html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Montserrat', sans-serif !important;
}

#map {
    height: 100vh; /* Full height of the viewport */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(0,0,0,0.5);
}

.tr {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1.5;
}

.bl {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 20;
    margin: 0 10px 10px 0;
}

.tc {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 20;
    margin: 10px 0 0 0;
    transform: translateX(-50%);
}

.bc {
    position: absolute;
    bottom: 0;
    left: 50%;
    z-index: 20;
    margin: 0 0 10px 0;
    transform: translateX(-50%);
}

.br {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 20;
    margin: 0 0px 10px 10px;
}

.tr .inline-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tr .inline-container .dropdowns {
    /* Display buttons directly below one another */
    display: flex;
    flex-direction: column;

}

.other .icon-text {
    font-weight: 600;
    color: hsl(221deg, 14%, 21%);
}

.dropdown-menu div a.dropdown-item {
    background-color: #ffffff;
    color: #cfcfcf;
}

.dropdown-menu div a.dropdown-item.is-active{
    background-color: #ffffff;
    color: #000;
}
.dropdown-content {
    /* prevent the dropdown from being too long */
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;

    /* Scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: #cfcfcf #ffffff;

}

.modal-button-info {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}
/* hide the arrows for dropdown-content scrollbar */
.dropdown-content::-webkit-scrollbar-button {
    width: 0px;
}

.tr header {
    background-color: #ffffff;
    color: #c6112d;
    border-radius: 0.25rem;
    box-shadow: 0 0 10px 2px rgba(0,0,0,.1);
    display: flex;
    justify-content: space-between;
    align-items: center; /* Vertically centers the content */
    padding: 10px;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    width: fit-content;
    margin: 10px;
    margin-bottom: 0px;
}

.tr header p {
    margin: 0;
    padding: 0;
    display: inline;
}

.tr header img#sj {
    height: 70px;
    margin: 0;
    padding: 0;
    display: block; /* Ensures the image does not have extra space below it */
}

.tr header.other {
    background-color: unset;
    box-shadow: unset;
    margin: 0;
}

.mapboxgl-popup-content {
    background-color: #ffffff;
    border-radius: 0.25rem;
    box-shadow: 0 0 10px 2px rgba(0,0,0,.1);
}

.mapboxgl-popup-content h4, .mapboxgl-popup-content h5{
    text-align: center;
}
.mapboxgl-popup-content h5 {
    font-weight: 400 !important;
    font-size: small;
}

.legend {
    background-color: #ffffff;
    border-radius: 0.25rem;
    box-shadow: 0 0 10px 2px rgba(0,0,0,.1);
    padding: 10px;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    width: fit-content;
    margin: 10px;
    margin-top: 0px;
    transition: visibility 0s, opacity 0.1s linear;
}

.legend:empty {
    visibility: hidden;
    opacity: 0;
}

.legend-item {
    display: flex;
    align-items: center;
}

.legend-color {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 1px solid #2e333d;
    border-radius: 0.25rem;
}


@media screen and (max-width: 640px) {
    .tr header {
        flex-direction: column;
        align-items: flex-start;
        
    }

    .tr header img {
        height: 50px;
    }

    .tr .inline-container .logo {
        order: 1;
    }

    .tr .inline-container .dropdowns {
        order: 0;
    }
    .tr .inline-container .dropdown-menu {
        text-align: left;
    }
    .tr {
        margin-top: 70px;
        right: 0;
        left: unset;
        display: flex;
        flex-direction: column; /* Stack items vertically in original order */
        align-items: flex-end; /* Align items to the right */
        text-align: right;
    }
    
    .legend {
        max-height: 140px;
        overflow-y: auto;
        overflow-x: hidden;
    
        /* Scrollbar styling */
        scrollbar-width: thin;
        scrollbar-color: #cfcfcf #ffffff;
    }
    .bc {
        display: none;
    }

    .tr > .other {
        float: right;
    }

    .tr > .legend {
        float: right;
    }

    .other {
        display: flex;
        justify-content: flex-end;
    }
}


@media screen and (max-width: 800px) {
    .bc {
        display: none;
    }
}