html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    overflow: hidden;
    font-size: 16px;
}

.toilet-icon {
    border-radius: 50%;
    box-shadow: 0 0 5px #000;
    background-color: green; /* Set background color to green for toilets */
}

.toilet-no-icon {
    border-radius: 50%;
    box-shadow: 0 0 5px #000;
    background-color: red; /* Set background color to red for toilets with no */
}

.toilet-customers-icon {
    border-radius: 50%;
    box-shadow: 0 0 5px #000;
    background-color: orange; /* Set background color to orange for toilets with access: customers */
}

.gas-station-icon {
    border-radius: 50%;
    box-shadow: 0 0 5px #000;
    background-color: blue; /* Set background color to blue for gas stations */
}

.restaurant-icon {
    border-radius: 50%;
    box-shadow: 0 0 5px #000;
    background-color: orange; /* Set background color to orange for restaurants */
}

.unknown-icon {
    border-radius: 50%;
    box-shadow: 0 0 5px #000;
    background-color: red; /* Set background color to red for unknown */
}


#mapid {
    width: 100vw;
    height: 100vh;
}

#title {
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 1000;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    margin: 0;
    padding: 10px;
    font-size: 20px;
    font-weight: bold;
}

#instructions-container {
    position: absolute;
    width: 30%;
    top: 50px;
    right: 10px;
    z-index: 1000;
}

#toggle-instructions {
    background: #007aff;
    border: none;
    color: white;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 10px;
}

#instructions {
    background: rgba(255, 255, 255, 0.9);
    margin: 0;
    padding: 10px;
    border-radius: 5px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: none;
}

.step-instruction {
    margin: 10px 0;
    padding: 10px;
    border-left: 4px solid #007aff;
    background: #f9f9f9;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.3s, border-left-color 0.3s;
}

.step-instruction:hover {
    background: #f0f0f0;
    border-left-color: #005bb5;
}

.popup-content {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.edit-link {
    color: #007aff;
    text-decoration: none;
    font-weight: 500;
    margin-top: 10px;
    display: inline-block;
}

.edit-link:hover {
    text-decoration: underline;
    color: #005bb5;
}

.route-button {
    background-color: #007aff;
    border: none;
    color: white;
    padding: 8px 12px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.route-button:hover {
    background-color: #005bb5;
}

@media (max-width: 768px) {
    html, body {
        font-size: 18px;
    }

    #instructions-container {
        width: 90%;
        right: 5%;
        top: 60px;
    }

    #toggle-instructions {
        font-size: 16px;
        padding: 10px;
    }

    #instructions {
        max-height: 50vh;
    }

    .step-instruction {
        font-size: 16px;
        padding: 10px;
        margin: 5px 0;
    }

    #title {
        font-size: 24px;
    }

    .popup-content {
        font-size: 16px;
    }

    .route-button {
        font-size: 16px;
        padding: 10px 14px;
    }
}

.leaflet-control-custom button {
    background-color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.leaflet-control-custom button .fas {
    font-size: 16px;
}

.leaflet-control-custom button:hover {
    background-color: #f4f4f4;
}

#project-info-container {
    position: absolute;
    width: 30%;
    bottom: 10px;
    left: 10px;
    z-index: 1000;
}

#toggle-project-info {
    background: #007aff;
    border: none;
    color: white;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 10px;
}

#project-info {
    background: rgba(255, 255, 255, 0.9);
    margin: 0;
    padding: 10px;
    border-radius: 5px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: none;
}

#project-info h2, #project-info h3 {
    margin: 0 0 10px;
}

#project-info p, #project-info ol {
    margin: 10px 0;
    padding: 0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 5px;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#search-filter-container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

#search-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

.search-input {
    padding: 10px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #ccc;
    outline: none;
}

.search-button {
    background: #007aff;
    border: none;
    color: white;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
}

.search-button:hover {
    background: #005bb5;
}

#filter-container {
    max-width: 250px;
    position: relative;
}

#toggle-filters {
    background: #007aff;
    border: none;
    color: white;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

#filters-content {
    display: none;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 40px;
    right: 0;
    width: 250%;
}

#filters-content h3 {
    margin-top: 0;
    font-size: 16px;
    font-weight: bold;
}

#filters {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 10px;
}

#filters div {
    margin-bottom: 5px;
}

#apply-filters, #clear-filters {
    background: #007aff;
    border: none;
    color: white;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    margin-top: 5px;
}

#apply-filters:hover, #clear-filters:hover {
    background: #005bb5;
}

#geolocate-container {
    position: absolute;
    top: 100px;
    right: 10px;
    z-index: 1100;
}

.leaflet-control-custom button {
    background-color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.leaflet-control-custom button:hover {
    background-color: #f4f4f4;
}

.leaflet-control-custom i {
    font-size: 16px;
}
