#map {
    position: relative;
}

.map-container {
    position: relative;
    display: grid;
    grid-template-columns: 0% 0% auto;
    height: 87vh;
    overflow: hidden;
    padding-bottom: 3vh;
    margin-top: 5px;
    padding-top: 0;
    width: 100%;
    border-radius: 10px !important;
    transition: 400ms;
}

.map-container--openSidebar {
    grid-template-columns: 23% 0% auto;
}

.map-full,
.map-reshaped {
    height: 100%;
    transition: width 0.55s ease-in-out;
    position: relative;
}

.map-full {
    width: 100%;
}

.map-reshaped {
    width: 70%;
}

.distance-toggle-button {
    position: absolute;
    top: 5px;
    right: 270px;
    z-index: 10;
    border-radius: 0.375rem;
    height: 40px;
    font-weight: 700;
    /* box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3); */
}

.distance-options-dropdown {
    background-color: #f3f4f6;
    border-width: 0px;
    border-color: #d1d5db;
    font-size: 0.875rem;
    border-radius: 5px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    /* outline: none; */
    /* all: unset; */
    
}




.paging-button {
    color: #8c012c;
    font-size: 1.75rem;
    margin: 0 0.5rem;
}

.paging-text {
    font-size: 20px;
    margin-top: 0.2rem;
}

.pagination-controls {
    display: flex;
    justify-content: flex-end;
    margin-left: auto;
}


.button-container {
    border: 4px solid #8c012c;
    color: #000;
    font-weight: 500;
    padding: 0.2rem 0.2rem;
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.toggle-map-button {
    border-radius: 0.5rem;
    border: 4px solid #8c012c;
    color: #000;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.toggle-map-button:hover {
    background-color: rgba(140, 1, 44, 0.2);
    color: #8c012c;
}

.controls-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}


.popup-school-name {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-last-updated {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
}

/* Centering text within p */
.text-bottom {
    width: 100%;
    text-align: center;
}

.popup-content {
    position: relative;
    padding-top: 4px; /* Adjust as needed */
    padding-right: 4px; /* Adjust as needed */
    padding-left: 4px; /* Adjust as needed */
    background-color: #4e6051;
    text-align: center;
}

.popup-close-school {
    position: absolute;
    top: 6px;
    right: 8px;
    background-color: white;
    border: none;
    font-size: 10px;
    cursor: pointer;
    color: #4e6051;
}

.popup-close-resource {
    position: absolute;
    top: 6px;
    right: 6px;
    border: none;
    font-size: 10px;
    cursor: pointer;
    color: white;
}

.popup-close:hover {
    color: red; /* Example: Change color on hover */
}

.map-show-sidebar-btn {
    position: absolute;
    background-color: #8c012c;
    transition: background-color 0.3s ease;
    top: 5px; 
    left: 5px;
    z-index: 2;
    font-size: 1.5rem;
    color: #f9f6f6;
    border-radius: 10px;
    padding-top: 0;
    padding-bottom: .28rem;
    padding-left: .6rem;
    padding-right: .6rem;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    font-weight: bold;
}

.marker-image {
    width: 20px;
}

.marker-image.special {
    box-shadow: 0 0 15px 4px rgb(255, 255, 0), 0 0 25px 8px rgba(255, 255, 51, 0.7);
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2) 25%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0.2) 75%);
    z-index: 10;
} 

.school-searchbar-location {
    position: absolute;
    top: 5px;
    right: 10px;
    left: auto;
    transform: translate(0%, 0%);
    z-index: 1;
}

.search-container {
    display: flex;
    align-items: center;
    position: relative;
}

.search-icon {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-grow: 0;
}

.search-input {
    flex-grow: 1;
    background-color: white;
    all: unset;
    
}



@media (max-width: 1000px) {
    .toggle-map-button {
        margin-top: 0.5rem;
        padding: 0.5rem 1rem;
        font-size: 1rem;
        text-align: center;
    }
    
    .distance-toggle-button {
        position:inherit;
        top: 0;
        right: 0;
        z-index: 0;
    }

    /* AL */
    .switch-school-button {
        display: none;
    }

    .slider-button {
        position: absolute;
        z-index: 10;
        top: 8.5%;
        right: 3%;
        color: white;
        border: 4px solid white;
        background: white;
        width: 80px;
        height: 34px;
        border-radius: 15px;
        border: none;
        transition: background 0.3s ease-in-out;
    }

    .slider-button:hover {
        background: white;
    }
    .slider-button.active {
        background: #4CAF50;
    }
      
    .slider-button::before {
        content: var(--before-content, "Map");
        position: absolute;
        top: 50%;
        left: 5px;
        width: 40px;
        height: 26px;
        border-radius: 12px;
        background: var(--before-color, #4CAF50);
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: bold;
        color: black;
        transition: left 0.6s ease-in-out;
    }

    .slider-button.active::before { 
        left: 35px;
    }

}

@media (max-width: 600px) {
    .map-container {
        border-radius: 0px !important;
        height: 100vh;
    }


}