html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

#map {
    width: 100%;
    height: 100%;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.leaflet-bottom.leaflet-left {
    width: 90%; /* Adjust as needed */
    bottom: 20px; /* Add a default bottom offset */
}

@media (max-width: 768px) { /* Adjust this breakpoint as needed */
    .leaflet-bottom.leaflet-left {
        bottom: 40px; /* Increase bottom offset on smaller screens */
    }
}

.leaflet-control-container .leaflet-bottom {
    display: flex;
    /* Removed justify-content: space-between; */
}

.leaflet-control-container .leaflet-bottom button {
    margin-right: 5px; /* Add some spacing between buttons */
}

/* Remove custom directions panel styles */
.directions-panel, .directions-panel.open, .directions-panel-header, .directions-panel-header .close-button {
  display: none;
}

/* Style adjustments for LRM */
.leaflet-routing-container {
    background-color: white; /* Ensure the routing container has a background */
    z-index: 1000; /* Make sure it's above other elements */
    height: 100%; /* Full height */
    max-height: none; /* Override max-height */
    top: 0; /* Ensure it starts at the top */
    bottom: 0; /* Ensure it extends to the bottom */
}
.leaflet-routing-alt {
    overflow-y: auto;
    max-height: calc(100% - 60px); /* Adjust for the top bar height if needed */
    height: auto;
}

.leaflet-routing-geocoders, .leaflet-routing-error {
    height: auto;
    max-height: 60px;
}

#loading-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white */
    padding: 5px;
    text-align: center;
    z-index: 1001; /* Above the map, below popups */
    display: none; /* Hidden by default */
}

