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

:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --success-color: #51cf66;
    --warning-color: #ffd93d;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: var(--shadow);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Main Content */
main {
    padding: 2rem 0;
    min-height: calc(100vh - 250px);
}

/* Search Section */
.search-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

#searchInput {
    flex: 1;
    min-width: 250px;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

#searchInput:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #ee5a5a;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #45b8b0;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-special {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

.btn-special:hover {
    background: linear-gradient(135deg, #5568d3 0%, #63408a 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-watchlist {
    background-color: var(--warning-color);
    color: var(--dark-color);
    font-weight: 500;
}

.btn-watchlist:hover {
    background-color: #ffc107;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn .icon {
    margin-right: 0.5rem;
}

/* Filters */
.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.filters label {
    font-weight: 500;
    color: var(--dark-color);
}

.filters select {
    padding: 0.5rem;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 0.95rem;
    cursor: pointer;
}

.filters select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.btn-toggle {
    background-color: white;
    color: var(--dark-color);
    border: 2px solid #e9ecef;
}

.btn-toggle.active {
    background-color: var(--dark-color);
    color: white;
    border-color: var(--dark-color);
}

.btn-toggle:hover {
    border-color: var(--dark-color);
}

/* Results Section */
.results-count {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--gray-color);
}

/* List View */
.list-view {
    display: none;
}

.list-view.active {
    display: block;
}

.restaurant-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.restaurant-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.restaurant-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.restaurant-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
}

.restaurant-info {
    padding: 1.5rem;
}

.restaurant-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.restaurant-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.restaurant-cuisine {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-left: 0.5rem;
    margin-bottom: 0.5rem;
}

.restaurant-address {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.restaurant-rating {
    color: var(--warning-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.restaurant-description {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-top: 0.75rem;
    line-height: 1.4;
}

.restaurant-phone {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.restaurant-distance {
    display: inline-block;
    background-color: var(--success-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.restaurant-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.btn-directions {
    background-color: var(--secondary-color);
    color: white;
    flex: 1 1 100%;
    min-width: 140px;
}

.btn-directions:hover {
    background-color: #45b8b0;
}

.btn-favorite,
.btn-watchlist {
    flex: 1;
    min-width: 120px;
}

/* Map View */
.map-view {
    display: none;
}

.map-view.active {
    display: block;
}

#map {
    height: 600px;
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.leaflet-popup-content {
    margin: 0.75rem;
}

.popup-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.popup-category {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.popup-address {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.popup-rating {
    color: var(--warning-color);
    font-weight: 600;
}

/* Loading Indicator */
.loading {
    text-align: center;
    padding: 3rem;
}

.loading.hidden {
    display: none;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
    background-color: #ffe0e0;
    color: #c92a2a;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    margin: 2rem 0;
}

.error-message.hidden {
    display: none;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Show hamburger menu on mobile */
    .hamburger-menu {
        display: flex;
    }

    /* Header adjustments */
    header {
        padding: 1rem 0;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 0.9rem;
    }

    .header-content {
        position: relative;
    }

    #hamburgerBtn {
        display: flex;
    }

    .brand {
        flex: 1;
    }

    /* Mobile navigation - hidden by default */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px 0 20px 0;
        gap: 0;
        transition: right 0.3s ease;
        overflow-y: auto;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }

    .main-nav.active {
        right: 0;
    }

    .nav-link {
        padding: 1rem 1.5rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link:hover,
    .nav-link.active {
        background-color: rgba(255, 255, 255, 0.15);
    }

    .user-menu {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.5rem;
        gap: 0.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .auth-buttons {
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 0.5rem;
    }

    .auth-buttons .btn {
        width: 100%;
    }

    /* Compact search section */
    .search-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .search-box {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    #searchInput {
        width: 100%;
        padding: 0.6rem 0.8rem;
        font-size: 0.95rem;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .btn .icon {
        margin-right: 0.3rem;
    }

    /* Compact filters */
    .filters {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .filters label {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }

    .filters select {
        width: 100%;
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    /* Restaurant grid */
    .restaurant-list {
        grid-template-columns: 1fr;
    }

    /* Map adjustments */
    #map {
        height: 400px;
    }

    /* View toggle */
    .view-toggle {
        margin-bottom: 1rem;
    }

    .btn-toggle {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    header h1 {
        font-size: 1.3rem;
    }

    .tagline {
        font-size: 0.85rem;
    }

    .search-section {
        padding: 0.75rem;
    }

    .btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }

    /* Even more compact filters on very small screens */
    .filters {
        gap: 0.5rem;
    }

    .main-nav {
        width: 250px;
    }

    .restaurant-card {
        font-size: 0.95rem;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--gray-color);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state-text {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.empty-state-subtext {
    font-size: 0.95rem;
}
/* =============================================================================
   Authentication & Navigation Styles
   ============================================================================= */

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.brand {
    text-align: left;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.auth-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

/* =============================================================================
   Hamburger Menu Styles
   ============================================================================= */

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* =============================================================================
   Modal Styles
   ============================================================================= */

.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--gray-color);
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea,
.form-group select,
.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-footer {
    margin-top: 1rem;
    text-align: center;
    color: var(--gray-color);
}

.modal-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* =============================================================================
   Favorites Button
   ============================================================================= */

.btn-favorite {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    /*margin-top: 0.5rem;*/
    transition: background-color 0.3s;
}

.btn-favorite:hover {
    background-color: #ff5252;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* =============================================================================
   Lists Page Styles
   ============================================================================= */

.lists-page {
    padding: 2rem 0;
}

.lists-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.lists-header h2 {
    color: var(--dark-color);
    font-size: 2rem;
}

.lists-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.lists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.list-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.list-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.list-card h3 {
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.list-card p {
    color: var(--gray-color);
    margin-bottom: 0.5rem;
}

.list-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.list-share {
    margin: 1rem 0;
    padding: 1rem;
    background-color: var(--light-color);
    border-radius: 5px;
}

.share-url-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* =============================================================================
   List Detail Page
   ============================================================================= */

.list-detail-page {
    padding: 2rem 0;
}

.list-header {
    margin-bottom: 2rem;
}

.list-header h2 {
    color: var(--dark-color);
    font-size: 2rem;
    margin: 1rem 0 0.5rem 0;
}

.list-header p {
    color: var(--gray-color);
}

.list-item-notes {
    background-color: var(--light-color);
    padding: 0.75rem;
    border-radius: 5px;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.page-loading {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: var(--gray-color);
}

/* =============================================================================
   Decide For Me - Random Picker Styles
   ============================================================================= */

.random-result {
    margin-top: 1.5rem;
}

.random-restaurant-card {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.random-restaurant-image {
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.random-restaurant-image img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}

.random-restaurant-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.random-restaurant-card .restaurant-category,
.random-restaurant-card .restaurant-cuisine {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    margin: 0.5rem 0.25rem;
}

.random-restaurant-card .restaurant-address {
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--gray-color);
}

.random-restaurant-card .restaurant-rating {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.random-restaurant-card .restaurant-description {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--dark-color);
    line-height: 1.6;
}

.random-restaurant-card .restaurant-phone {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: var(--gray-color);
}

.random-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.random-actions .btn {
    min-width: 150px;
}

/* =============================================================================
   Neighborhood Guides Styles
   ============================================================================= */

.guides-page,
.guide-detail-page {
    padding: 2rem 0;
}

.page-header {
    margin-bottom: 2rem;
    text-align: center;
}

.page-header h2 {
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.subheader {
    color: var(--gray-color);
    font-size: 1.1rem;
}

.guides-grid,
.routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.guide-card,
.route-card {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.guide-card:hover,
.route-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.guide-image,
.guide-image-placeholder {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.guide-content,
.route-card {
    padding: 1.5rem;
}

.guide-card h3,
.route-card h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.guide-neighborhood {
    color: var(--secondary-color);
    font-weight: 500;
    margin: 0.5rem 0;
}

.guide-description {
    color: var(--gray-color);
    margin: 1rem 0;
    line-height: 1.6;
}

.guide-meta,
.route-meta {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: 0.5rem;
    background-color: var(--gray-color);
    color: white;
}

.badge-official {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.badge-success {
    background-color: var(--success-color);
}

.guide-detail-header,
.route-detail-header {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.guide-detail-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.guide-restaurants,
.route-stops {
    display: grid;
    gap: 1.5rem;
}

.order-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
}

.guide-restaurant-note,
.route-stop-note {
    font-style: italic;
    color: var(--gray-color);
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: var(--light-color);
    border-left: 3px solid var(--secondary-color);
}

.route-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.route-date {
    color: var(--gray-color);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Create forms */
.create-guide-modal,
.create-route-modal,
.add-stop-modal,
.add-restaurant-modal {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.add-restaurant-modal {
    max-width: 1000px;
}

.create-guide-modal h2,
.create-route-modal h2,
.add-stop-modal h2,
.add-restaurant-modal h2 {
    margin-bottom: 1.5rem;
}

.add-restaurant-modal p {
    margin-bottom: 1rem;
    color: var(--gray-color);
}

/* Modal Filters */
.modal-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-color);
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.modal-filters .filter-group {
    flex: 1;
    min-width: 180px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* =============================================================================
   Responsive Updates
   ============================================================================= */

@media (max-width: 768px) {
    .lists-grid,
    .guides-grid,
    .routes-grid {
        grid-template-columns: 1fr;
    }

    .lists-header {
        flex-direction: column;
        text-align: center;
    }

    .route-actions {
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column;
    }
}

/* ============= HASHTAG STYLES ============= */

.tags-container {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 8px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.tag-remove {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.tag-remove:hover {
    background: rgba(255, 255, 255, 0.5);
}

.tag-input-section {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.tag-input {
    flex: 1;
    padding: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.tag-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.tag-input::placeholder {
    color: #999;
}

/* Tag filter input */
.tag-filter {
    width: 100%;
    padding: 0.6rem;
    margin-bottom: 1rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
}

.tag-filter:focus {
    outline: none;
    border-color: var(--secondary-color);
}

@media (max-width: 768px) {
    .tags-list {
        gap: 0.4rem;
    }

    .tag {
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
    }

    .tag-input-section {
        flex-direction: column;
        width: 100%;
    }

    .tag-input {
        width: 100%;
    }
}

/* =============================================================================
   Hide Cuisine Filter
   ============================================================================= */

/* Hide cuisine filter in main search section */
.filters label[for="cuisineFilter"],
#cuisineFilter {
    display: none !important;
}

/* Hide cuisine filter in Decide For Me modal */
.form-group label[for="randomCuisineFilter"],
#randomCuisineFilter {
    display: none !important;
}

/* Hide cuisine filter in Add Restaurant to Guide modal */
.filter-group:has(#guideCuisineFilter),
#guideCuisineFilter {
    display: none !important;
}
