:root {
    --primary-color: #db3a00; 
    --secondary-color: #00930c;
    --tertiary-color: #b83200; /* Darker shade of orange */
    --background-color: #f8f9fa;
    --card-color: #ffffff;
    --text-color: #333333;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

header {
    width: 100%;
    display: flex;
    padding: 10px 20px;
    height: 70px;
    background-color: var(--primary-color);
    z-index: 1000;
    align-items: center;
    box-shadow: var(--shadow);
}

.logo-container {
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.user-container {
    display: flex;
    align-items: center;
    width: 50%;
    height: 100%;
    justify-content: flex-end;
}

#logo {
    font-family: 'Pacifico', cursive;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

header a {
    color: white;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s;
}

header a:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

#map-container {
    flex: 1;
    width: 100%;
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

.search-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 600px;
    display: flex;
    background: white;
    border-radius: 25px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

#quickSearch-bar {
    flex: 1;
    padding: 15px 20px;
    border: none;
    outline: none;
    font-size: 1rem;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.no-results i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.no-results h3 {
    color: #333;
    margin-bottom: 1rem;
}

.no-results ul {
    text-align: left;
    max-width: 300px;
    margin: 1rem auto;
}

.no-results li {
    margin-bottom: 0.5rem;
}

.budget-summary {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #007bff;
}

.within-budget {
    color: #28a745;
    background: #d4edda;
    padding: 0.5rem;
    border-radius: 4px;
    margin: 0.5rem 0;
}

.over-budget {
    color: #dc3545;
    background: #f8d7da;
    padding: 0.5rem;
    border-radius: 4px;
    margin: 0.5rem 0;
}

.search-container button {
    padding: 0 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-container button:hover {
    background: var(--tertiary-color);
}

.filters-container {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    gap: 10px;
    padding: 10px;
    background: white;
    border-radius: 50px;
    box-shadow: var(--shadow);
}

.quickBtn {
    padding: 10px 20px;
    border-radius: 25px;
    border: none;
    background: var(--card-color);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.quickBtn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.quickBtn.active {
    background: var(--primary-color);
    color: white;
}

/* UPDATED Bottom Navigation with anchor links */
#navigation-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: white;
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 0 10px;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 16px;
    position: relative;
    text-decoration: none;
}

.nav-link i {
    font-size: 1.4rem;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(219, 58, 0, 0.1);
}

.nav-link.active i {
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link.active::after {
    width: 20px;
}

/* Floating reload button */
.reload-location {
    position: absolute;
    bottom: 100px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s;
}

.reload-location:hover {
    background-color: var(--primary-color);
    color: white;
    transform: rotate(30deg);
}

/* Map type selector - Only OpenStreetMap */
.map-type-selector {
    position: absolute;
    top: 80px;
    right: 20px;
    z-index: 1000;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.map-type-btn {
    padding: 10px 15px;
    border: none;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.map-type-btn:hover {
    background: #f0f0f0;
}

.map-type-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Loading spinner */
.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    width: 50px;
    height: 50px;
    border: 5px solid rgba(219, 58, 0, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Location error message */
.location-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    z-index: 1001;
    max-width: 80%;
    display: none;
}

.location-error button {
    margin-top: 15px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
}

/* Toggle button for search panel */
.search-toggle-btn {
    position: fixed;
    bottom: 100px;
    left: 20px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 1.5rem;
}

.search-toggle-btn:hover {
    background-color: var(--tertiary-color);
    transform: scale(1.05);
}

.search-toggle-btn.active {
    background-color: var(--tertiary-color);
    transform: rotate(90deg);
}

/* Advanced search panel */
.search-panel {
    position: fixed;
    bottom: 80px; /* Positioned 80px from bottom */
    left: 0;
    width: 100%;
    height: calc(100% - 80px); /* Full height minus navigation */
    background: white;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000; /* Below toggle button */
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    padding: 25px 20px 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.search-panel.open {
    transform: translateY(0);
}

.search-panel-handle {
    width: 60px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 10px;
    margin: 0 auto 25px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-panel-handle:hover {
    background: #ccc;
}

.search-panel h2 {
    margin-bottom: 25px;
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(219, 58, 0, 0.2);
}

/* Budget slider improvements */
#budget {
    width: 100%;
    margin: 15px 0;
    -webkit-appearance: none;
    height: 8px;
    border-radius: 4px;
    background: #e0e0e0;
    outline: none;
}

#budget::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

#budget-value {
    display: block;
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 5px;
    font-size: 1.1rem;
}

.search-submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(219, 58, 0, 0.3);
}

.search-submit:hover {
    background: var(--tertiary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(219, 58, 0, 0.4);
}

.search-submit:active {
    transform: translateY(0);
}

/* Close button for search panel */
.close-search {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: #666;
    transition: all 0.3s;
}

.close-search:hover {
    background: #e0e0e0;
    color: #333;
}

/* Results Container */
.results-container {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100% - 150px);
    background: white;
    z-index: 1500;
    padding: 20px;
    overflow-y: auto;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.back-to-map {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s;
}

.back-to-map:hover {
    background: rgba(219, 58, 0, 0.1);
}

.restaurant-card {
    display: flex;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    background: white;
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.restaurant-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.restaurant-image {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    margin-right: 20px;
}

.restaurant-info {
    flex: 1;
}

.restaurant-name {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.2rem;
    color: #333;
}

.restaurant-details {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.restaurant-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    padding: 10px 18px;
    border-radius: 25px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.view-menu {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 3px 8px rgba(219, 58, 0, 0.3);
}

.view-menu:hover {
    background: var(--tertiary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(219, 58, 0, 0.4);
}

.view-map {
    background: #f5f5f5;
    color: #555;
}

.view-map:hover {
    background: #e8e8e8;
    transform: translateY(-2px);
}

/* Restaurant popup styling */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    padding: 1px;
}

.leaflet-popup-content {
    margin: 12px;
}

.restaurant-popup h3 {
    margin: 0 0 8px 0;
    color: var(--primary-color);
}

.restaurant-popup p {
    margin: 4px 0;
}

.restaurant-popup button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

/* AJAX Loading Indicator */
.ajax-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1002;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    display: none;
}

.ajax-loading p {
    margin-top: 10px;
    font-weight: 500;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-form input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.modal-form button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.modal-form button:hover {
    background-color: var(--tertiary-color);
}

.modal-footer {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.modal-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

/* Intro slides */
.intro-slide {
    display: none;
    text-align: center;
}

.intro-slide.active {
    display: block;
}

.slide-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.slide-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.slide-description {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.slide-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.slide-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
}

.slide-indicator.active {
    background-color: var(--primary-color);
}

/* Preferences modal */
.preference-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s;
}

.preference-item:hover {
    border-color: var(--primary-color);
    background-color: rgba(219, 58, 0, 0.05);
}

.preference-item input {
    margin-right: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filters-container {
        bottom: 90px;
        width: 90%;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 8px;
    }
    
    .filters-container::-webkit-scrollbar {
        display: none;
    }
    
    .quickBtn {
        white-space: nowrap;
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    #logo {
        font-size: 1.5rem;
    }

    .map-type-selector {
        top: 70px;
        right: 10px;
    }

    .map-type-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .search-panel {
        height: calc(100% - 80px);
        padding: 20px 15px 25px;
        display: flex;
        justify-content: space-around;
    }

    #navigation-bottom {
        height: 75px;
        border-top-left-radius: 18px;
        border-top-right-radius: 18px;
    }

    .nav-link {
        font-size: 0.7rem;
        padding: 6px 10px;
    }

    .nav-link i {
        font-size: 1.2rem;
    }

    .search-toggle-btn {
        bottom: 90px;
        left: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .restaurant-card {
        flex-direction: column;
    }

    .restaurant-image {
        width: 100%;
        height: 160px;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .restaurant-actions {
        flex-direction: column;
        gap: 10px;
    }

    .action-btn {
        justify-content: center;
    }

    .modal-content {
        padding: 20px;
    }

    .slide-icon {
        font-size: 3rem;
    }

    .slide-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-link {
        font-size: 0.65rem;
        padding: 5px 8px;
    }

    .nav-link i {
        font-size: 1.1rem;
    }

    .nav-link::after {
        bottom: -6px;
        height: 2px;
    }

    .reload-location{
        border:1px solid var(--primary-color);
    }

    .nav-link.active::after {
        width: 15px;
    }

    .search-toggle-btn {
        bottom: 140px;
        left: 10px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        border:1px solid white;

    }
}


/* Additional styles for signup form */
.avatar-selection {
    margin: 20px 0;
}

.avatar-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.avatar-option {
    position: relative;
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ddd;
    transition: all 0.3s ease;
}

.avatar-option.selected {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.avatar-option img {
    width: 100%;
    height: auto;
    display: block;
}

.avatar-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.password-strength {
    margin-top: 5px;
    font-size: 0.9rem;
    font-weight: 500;
}

.strength-weak {
    color: #e74c3c;
}

.strength-medium {
    color: #f39c12;
}

.strength-strong {
    color: #27ae60;
}

.input-error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2) !important;
}

.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.error-message {
    color: #e74c3c;
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
}

