/* Existing CSS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
}

header {
    background-color: #333;
    color: white;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    height: 70px;
    top: 0;
    left: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header .logo img {
    height: 50px;
    margin-top: 2px;
}

header nav {
    flex: 1;
    display: flex;
    justify-content: center;
    margin-top: 2px;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

header nav ul li {
    margin: 0;
}

header nav ul li a {
    color: white;
    text-decoration: none; /* Remove underline */
}

header nav ul li a:hover {
    color: #ddd; /* Change text color on hover */
    background-color: rgba(
        255,
        255,
        255,
        0.1
    ); /* Add subtle background color on hover */
}

header nav ul li a.login-button {
    background-color: #007bff; /* Blue background for the login button */
    border-radius: 4px; /* Rounded corners */
    padding: 5px 10px; /* Add some padding */
}

header nav ul li a.login-button:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

/* Ensure header space is accounted for */
main {
    margin-top: 0px; /* Adjust based on the header height */
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    header nav ul {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    header nav {
        display: flex;
        flex-direction: column;
        width: 100%;
        background-color: #333;
        position: absolute;
        top: 40px; /* Adjust based on the header height */
        left: 0;
        display: none; /* Initially hidden */
    }

    header nav.active {
        display: flex; /* Display when active */
    }

    header nav ul {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    header nav ul li {
        border-bottom: 1px solid #444;
    }

    header nav ul li:last-child {
        border-bottom: none;
    }

    header nav ul li a {
        display: block;
        padding: 10px;
        color: white;
        text-align: center;
        text-decoration: none; /* Remove underline */
    }

    header nav ul li a:hover {
        color: #ddd;
        background-color: rgba(255, 255, 255, 0.1);
    }

    header nav ul li a.login-button {
        background-color: #007bff;
        border-radius: 4px;
        padding: 10px;
    }

    header nav ul li a.login-button:hover {
        background-color: #0056b3;
    }

    .filter-form {
        height: auto;
        box-shadow: none;
        max-width: 100%;
    }
}
