/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #FFE5D9, #D0F4DE); /* Light Orange to Light Blue */
    overflow: hidden;
}

/* Variables */
:root {
    --primary-color: #0073e6;
    --secondary-color: #FF6600;
    --hover-primary: #005bb5;
    --hover-secondary: #cc5200;
    --white: #fff;
    --black: #000;
    --gray: #6c757d;
    --light-gray: #f4f4f4;
    --light-hover: #e9e9e9;
}

/* Navbar */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

/* Navbar Buttons */
nav {
    display: flex;
    gap: 10px;
}

nav button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color)); /* Matches the navbar color */
    border: none;
    color: var(--white);
    font-size: 16px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
}

nav button:hover {
    background: linear-gradient(135deg, var(--hover-primary), var(--hover-primary)); /* Slightly darker on hover */
    transform: scale(1.05);
    box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.2);
}

nav button:active {
    transform: scale(0.95);
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Logout Button - Unique Style */
#logout-btn {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-color)); /* Matches logout button */
    font-size: 16px;
    font-weight: bold;
    color: var(--white);
    border-radius: 8px;
    padding: 10px 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
}

#logout-btn:hover {
    background: linear-gradient(135deg, var(--hover-secondary), var(--hover-secondary)); /* Slightly darker hover */
    transform: scale(1.05);
    box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.2);
}

#logout-btn:active {
    transform: scale(0.95);
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Map */
#map {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    z-index: 1;
}

/* Toolbar */
#toolbar {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    gap: 10px;
    z-index: 10;
    background-color: var(--white);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

#searchInput {
    flex-grow: 1;
    padding: 8px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
}



.mapbox-directions-inputs {
    display: none;
}



/* Dropdown List */
#dropdownList {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: var(--white);
    border: 1px solid var(--gray);
    border-radius: 8px;
    z-index: 999;
    display: none;
}

.dropdown-item {
    padding: 8px 12px;
    font-size: 16px;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: var(--light-hover);
}

/* Favorites Modal */
#favoritesModal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: var(--white);
    margin: 15% auto;
    padding: 20px;
    width: 60%; 
    max-width: 500px; 
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}


.modal-content ul {
    list-style: none;
    padding: 0;
}

.modal-content ul li {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
}

.modal-content ul li button {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.modal-content ul li button:hover {
    background: var(--hover-secondary);
}

    /* Responsive Design for Mobile */
@media (max-width: 430px) {
    body, html {
        overflow: hidden;
    }

    header {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    header h1 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    nav {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
        margin-bottom: 10px;
    }

    nav button {
        flex: 1 1 22%;
        max-width: 100px;
        padding: 8px;
        font-size: 12px;
    }

    #toolbar {
        position: relative;
        margin: 0 auto;
        margin-top: 67px;
        width: 90%;
        display: flex;
        flex-direction: row;
        gap: 10px;
        background-color: var(--white);
        padding: 10px;
        left:180px;
        border-radius: 10px;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    }

    #searchInput {
        flex-grow: 1;
        padding: 8px 12px;
        font-size: 14px;
        border: 1px solid #ccc;
        border-radius: 8px;
    }

    #searchButton {
        font-size: 14px;
        padding: 8px;
        background: var(--primary-color);
        color: var(--white);
        border: none;
        border-radius: 8px;
        cursor: pointer;
        text-align: center;
        transition: background-color 0.3s ease;
    }

    #map {
        position: fixed;
        top: 100px;
        bottom: 10px;
        width: 100%;
        height: calc(100vh - 100px); 
    }

    .mapboxgl-ctrl-directions {
        position: absolute;
        top: 100px; 
        left: 0px; 
        z-index: 10; 
    }

    /* Zoom and rotation controls */
    .mapboxgl-ctrl-group {
        position: absolute; 
        top: 100px; 
        right: 0px; 
        z-index: 10; 
    }

    /* Geolocation control */
    .mapboxgl-ctrl-geolocate {
        position: absolute;
        top: 100px; 
        right: 0px; 
        z-index: 10;
        background: var(--white)
    }
    /* Favorites Modal - Mobile */
    #favoritesModal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5); 
    }

    #favoritesModal .modal-content {
        background: var(--white);
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); 
        padding: 20px;
        width: 90%;
        max-width: 400px; 
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%); 
        animation: fadeIn 0.3s ease-in-out; 
    }

    #favoritesModal .modal-title {
        font-size: 1.3rem;
        font-weight: bold;
        margin-bottom: 20px;
        text-align: center;
        color: var(--primary-color); 
    }

    #favoritesModal ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    #favoritesModal ul li {
        display: flex;
        justify-content: space-between;
        padding: 10px 0;
        border-bottom: 1px solid var(--light-gray);
    }

    #favoritesModal ul li button {
        background: var(--secondary-color);
        color: var(--white);
        border: none;
        padding: 5px 10px;
        border-radius: 5px;
        font-size: 0.9rem;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    #favoritesModal ul li button:hover {
        background: var(--hover-secondary);
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translate(-50%, -45%);
        }
        to {
            opacity: 1;
            transform: translate(-50%, -50%);
        }
    }
    /* Contact Us Form Styling */
.modal-input, .modal-textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 1rem;
    border: 1px solid #dddddd;
    border-radius: 5px;
    background: #f9f9f9;
    color: #333;
    outline: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.modal-button {
    width: 100%;
    padding: 10px;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: #f9f9f9;
}

.fa-bookmark {
    color: white; /* Neutral gray before user clicks */
    transition: color 0.3s ease;
}

.fa-bookmark:hover {
    color: #aaa; /* Slightly darker on hover */
}

.fa-bookmark.bookmarked {
    color: #007bff; /* Highlighted when bookmarked */
}

.fa-bookmark.bookmarked:hover {
    color: #0056b3; /* Darker highlight on hover when bookmarked */
}

/* Favorites list styles remain the same */
#favoritesList li {
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#favoritesList button {
    margin-left: 10px;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
    background-color: #007BFF;
    color: white;
    border-radius: 5px;
}

#favoritesList button:hover {
    background-color: #0056b3;
}

 



}
