/* 
======================================
EAT LOCAL KOSHER - MAIN STYLES
======================================
Color Palette:
- Dandelion (Main): #f2ba11
- Red (Main): #ff002f
- Yellow: #e7f211
- Blue: #3a8ff0
- White: #ffffff
- Light Gray: #c7c5bf
- Dark Gray: #30302f
- Black: #1f1f1f

Fonts: Gabarito (body), Calistoga (headers)
====================================== 
*/

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Gabarito', sans-serif;
    background-color: #ffffff;
    color: #1f1f1f;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Calistoga', serif;
    color: #1f1f1f;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==================== NAVIGATION ==================== */
.navbar {
    background-color: #f2ba11;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo h1 {
    font-size: 1.5rem;
    color: #1f1f1f;
    font-family: 'Calistoga', serif;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #1f1f1f;
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ff002f;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #1f1f1f;
    transition: all 0.3s ease;
}

/* ==================== CONTAINERS ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 25px;
    font-family: 'Gabarito', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: #ff002f;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #d10028;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 47, 0.3);
}

.btn-secondary {
    background-color: #3a8ff0;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #2a7fd0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 143, 240, 0.3);
}

/* ==================== HERO SECTION ==================== */
.hero {
    background: linear-gradient(135deg, #f2ba11 0%, #e7f211 100%);
    padding: 6rem 2rem;
    text-align: center;
}

.hero-content h2 {
    font-size: 3rem;
    color: #1f1f1f;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: #30302f;
    margin-bottom: 2rem;
}

/* ==================== FEATURES SECTION ==================== */
.features {
    padding: 4rem 2rem;
    background-color: #ffffff;
}

.features h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1f1f1f;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ff002f;
}

.feature-card p {
    color: #30302f;
    line-height: 1.6;
}

/* ==================== EXPLORE PAGE ==================== */
.explore-page {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.explore-page h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1f1f1f;
}

/* Filter Styles */
.filters-container {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

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

.filter-group label {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    color: #1f1f1f;
    margin-bottom: 0.75rem;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border: 2px solid #c7c5bf;
    background-color: #ffffff;
    border-radius: 20px;
    font-family: 'Gabarito', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #1f1f1f;
}

.filter-btn:hover {
    border-color: #f2ba11;
    background-color: #fffef8;
}

.filter-btn.active {
    background-color: #ff002f;
    color: #ffffff;
    border-color: #ff002f;
}

.clear-filters-btn {
    padding: 0.75rem 1.5rem;
    background-color: #3a8ff0;
    color: #ffffff;
    border: none;
    border-radius: 25px;
    font-family: 'Gabarito', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.clear-filters-btn:hover {
    background-color: #2a7fd0;
}

/* New Restaurants Filter */
.new-filter-container {
    background-color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.new-filter-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
}

.new-filter-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.new-filter-label span {
    color: #1f1f1f;
}

/* Results Info */
.results-info {
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #30302f;
}

/* Restaurant Cards Grid */
.restaurant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.restaurant-card {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.restaurant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.favorite-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 10;
}

.favorite-btn:hover {
    transform: scale(1.2);
}

.favorite-btn.favorited {
    color: #ff002f;
}

.favorite-btn.not-favorited {
    color: #c7c5bf;
}

.restaurant-card h3 {
    font-size: 1.5rem;
    color: #1f1f1f;
    margin-bottom: 0.5rem;
    padding-right: 2rem;
}

.restaurant-card .address {
    color: #30302f;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.badge {
    padding: 0.35rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
}

.badge-type {
    background-color: #ff002f;
}

.badge-price {
    background-color: #f2ba11;
    color: #1f1f1f;
}

.badge-time {
    background-color: #3a8ff0;
}

.badge-location {
    background-color: #30302f;
}

/* Icon Styling */
.icon {
    display: inline-block;
    vertical-align: middle;
    width: 1em;
    height: 1em;
    object-fit: contain;
}

.favorite-icon {
    width: 1.75rem;
    height: 1.75rem;
}

.favorite-icon.filled {
    filter: brightness(0) saturate(100%) invert(16%) sepia(97%) saturate(7471%) hue-rotate(351deg) brightness(98%) contrast(116%);
}

.favorite-btn.not-favorited .favorite-icon {
    filter: brightness(0) saturate(100%) invert(83%) sepia(3%) saturate(274%) hue-rotate(26deg) brightness(93%) contrast(90%);
}

.type-icon {
    width: 1.1em;
    height: 1.1em;
    margin-right: 0.25em;
    filter: brightness(0) saturate(100%) invert(100%);
}

.star-icon {
    width: 1.2em;
    height: 1.2em;
    margin: 0 0.1em;
}

.popup-info-icon .icon {
    width: 1.5em;
    height: 1.5em;
}

.btn-icon {
    width: 1.2em;
    height: 1.2em;
    margin-right: 0.5em;
    filter: brightness(0) saturate(100%) invert(100%);
}

.status-icon {
    width: 1em;
    height: 1em;
    margin-right: 0.4em;
    filter: brightness(0) saturate(100%) invert(100%);
}

.no-image-icon {
    width: 4em;
    height: 4em;
    filter: brightness(0) saturate(100%) invert(83%) sepia(3%) saturate(274%) hue-rotate(26deg) brightness(93%) contrast(90%);
}

.info-icon {
    width: 1.2em;
    height: 1.2em;
    margin-right: 0.3em;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #30302f;
}

.no-results p:first-child {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ==================== ADD PAGE ==================== */
.add-page {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.add-page h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1f1f1f;
}

.subtitle {
    text-align: center;
    color: #30302f;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.suggestion-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f1f1f;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #c7c5bf;
    border-radius: 10px;
    font-family: 'Gabarito', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f2ba11;
}

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

.error-message {
    color: #ff002f;
    font-size: 0.9rem;
    margin-top: 0.25rem;
    display: block;
}

.char-count {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    color: #30302f;
    margin-top: 0.25rem;
}

.suggestion-form .btn {
    width: 100%;
    margin-top: 1rem;
}

/* Success Message */
.success-message {
    max-width: 600px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: #3a8ff0;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1.5rem;
}

.success-content h3 {
    font-size: 2rem;
    color: #1f1f1f;
    margin-bottom: 1rem;
}

.success-content p {
    color: #30302f;
    margin-bottom: 0.5rem;
}

/* ==================== ADMIN PANEL ==================== */
.admin-panel {
    margin-top: 4rem;
}

.admin-divider {
    height: 3px;
    background: linear-gradient(to right, #f2ba11, #ff002f, #3a8ff0);
    margin: 3rem 0;
    border-radius: 2px;
}

.admin-section {
    margin-bottom: 3rem;
}

.admin-section h2 {
    color: #ff002f;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.suggestion-card {
    background-color: #ffffff;
    border: 2px solid #c7c5bf;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.suggestion-card h4 {
    color: #1f1f1f;
    margin-bottom: 0.5rem;
}

.suggestion-details {
    color: #30302f;
    margin-bottom: 1rem;
}

.suggestion-details p {
    margin-bottom: 0.25rem;
}

.suggestion-meta {
    font-size: 0.85rem;
    color: #30302f;
    font-style: italic;
    margin-bottom: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid #c7c5bf;
}

.suggestion-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-approve {
    background-color: #3a8ff0;
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 20px;
    font-family: 'Gabarito', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-approve:hover {
    background-color: #2a7fd0;
    transform: translateY(-2px);
}

.btn-reject {
    background-color: #c7c5bf;
    color: #1f1f1f;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 20px;
    font-family: 'Gabarito', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reject:hover {
    background-color: #ff002f;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Approval Form (appears when approving a suggestion) */
.approval-form {
    background-color: #fffef8;
    border: 2px solid #f2ba11;
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
}

.approval-form .form-group {
    margin-bottom: 1rem;
}

.approval-form label {
    font-size: 0.9rem;
}

.approval-form input,
.approval-form select {
    font-size: 0.9rem;
    padding: 0.5rem;
}

/* ==================== FEATURED PAGE (COMING SOON) ==================== */
.featured-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.coming-soon-container {
    max-width: 800px;
    width: 100%;
    position: relative;
}

.construction-tape {
    background: repeating-linear-gradient(
        45deg,
        #f2ba11,
        #f2ba11 40px,
        #1f1f1f 40px,
        #1f1f1f 80px
    );
    padding: 1rem;
    overflow: hidden;
}

.construction-tape-top {
    border-radius: 15px 15px 0 0;
    transform: rotate(-1deg);
}

.construction-tape-bottom {
    border-radius: 0 0 15px 15px;
    transform: rotate(1deg);
}

.tape-pattern {
    color: #1f1f1f;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    animation: scroll-tape 20s linear infinite;
}

@keyframes scroll-tape {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.coming-soon-content {
    background-color: #ffffff;
    padding: 4rem 2rem;
    text-align: center;
}

.construction-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.coming-soon-content h2 {
    font-size: 2.5rem;
    color: #1f1f1f;
    margin-bottom: 0.5rem;
}

.coming-soon-content h3 {
    font-size: 2rem;
    color: #ff002f;
    margin-bottom: 1.5rem;
}

.coming-soon-content p {
    color: #30302f;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* ==================== PROFILE PAGE ==================== */
.profile-page {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

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

.profile-header h2 {
    font-size: 2.5rem;
    color: #1f1f1f;
    margin-bottom: 1rem;
}

.user-info {
    margin-bottom: 1rem;
    color: #30302f;
    font-weight: 500;
}

#logoutBtn {
    margin-top: 1rem;
}

/* Profile Settings */
.profile-settings {
    max-width: 600px;
    margin: 0 auto 3rem;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.profile-settings h3 {
    font-size: 1.75rem;
    color: #1f1f1f;
    margin-bottom: 1.5rem;
}

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

.settings-form input[type="email"]:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    color: #30302f;
}

.toggle-label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
}

.toggle-label input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    cursor: pointer;
}

.toggle-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.toggle-text strong {
    font-size: 1rem;
    color: #1f1f1f;
}

.toggle-text small {
    color: #30302f;
    font-size: 0.875rem;
}

.success-text {
    color: #3a8ff0;
    font-weight: 600;
    margin-top: 1rem;
    text-align: center;
}

.profile-divider {
    height: 2px;
    background: linear-gradient(to right, #f2ba11, #ff002f, #3a8ff0);
    margin: 3rem 0;
    border-radius: 2px;
}

/* ==================== LOGIN PAGE ==================== */
.login-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-container {
    max-width: 500px;
    width: 100%;
}

.auth-form {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.auth-form h2 {
    text-align: center;
    font-size: 2rem;
    color: #1f1f1f;
    margin-bottom: 0.5rem;
}

.auth-form .subtitle {
    text-align: center;
    color: #30302f;
    margin-bottom: 2rem;
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-form small {
    display: block;
    color: #30302f;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.auth-form .btn {
    width: 100%;
    margin-top: 1rem;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: #30302f;
}

.auth-switch a {
    color: #ff002f;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: #30302f;
    color: #ffffff;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

.footer p {
    margin: 0;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    /* Navigation */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #f2ba11;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Hero */
    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* Feature Grid */
    .feature-grid {
        grid-template-columns: 1fr;
    }

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

    /* Filter Options */
    .filter-options {
        gap: 0.5rem;
    }

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

    /* Forms */
    .suggestion-form,
    .auth-form {
        padding: 1.5rem;
    }

    /* Container Padding */
    .container {
        padding: 1rem;
    }

    /* Coming Soon */
    .coming-soon-content {
        padding: 2rem 1rem;
    }

    .construction-icon {
        font-size: 3rem;
    }

    .coming-soon-content h2 {
        font-size: 1.75rem;
    }

    .coming-soon-content h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.2rem;
    }

    .hero {
        padding: 4rem 1rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .features h3,
    .explore-page h2,
    .add-page h2,
    .profile-header h2 {
        font-size: 1.75rem;
    }

    .filter-group label {
        font-size: 1rem;
    }

    .restaurant-card h3 {
        font-size: 1.25rem;
    }
}

/* ==================== LOADING SPINNER ==================== */
.loading {
    text-align: center;
    padding: 3rem;
}

.spinner {
    border: 4px solid #c7c5bf;
    border-top: 4px solid #ff002f;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* ==================== UTILITY CLASSES ==================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.hidden {
    display: none !important;
}

/* ==================== RESTAURANT DETAIL POPUP ==================== */
.restaurant-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(31, 31, 31, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 1rem;
    overflow-y: auto;
}

.restaurant-popup {
    background: #ffffff;
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.popup-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ffffff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.popup-close-btn:hover {
    transform: scale(1.1);
    background: #f2ba11;
}

.popup-images {
    width: 100%;
    min-height: 300px;
    max-height: 450px;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    position: relative;
}

.popup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-image.single {
    height: 300px;
}

.popup-no-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #f2ba11 0%, #ff002f 50%, #3a8ff0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

/* Multi-photo grid layouts */
.popup-photo-grid {
    display: grid;
    gap: 4px;
    height: 100%;
    min-height: 300px;
}

/* Two photos side by side */
.popup-photo-grid.two-photos {
    grid-template-columns: 1fr 1fr;
    height: 350px;
}

.popup-photo-grid.two-photos .popup-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* Portrait layout: large photo left, two stacked right */
.popup-photo-grid.portrait-layout {
    grid-template-columns: 2fr 1fr;
    height: 400px;
}

.popup-photo-grid.portrait-layout .popup-image.large {
    height: 100%;
    width: 100%;
    object-fit: cover;
    grid-row: 1 / 2;
}

.popup-photo-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
}

.popup-photo-stack .popup-image.small {
    height: 50%;
    flex: 1;
    width: 100%;
    object-fit: cover;
}

/* Landscape layout: large on top, two smaller below */
.popup-photo-grid.landscape-layout {
    grid-template-rows: 2fr 1fr;
    height: 400px;
}

.popup-photo-grid.landscape-layout .popup-image.large {
    width: 100%;
    height: 100%;
    object-fit: cover;
    grid-column: 1 / -1;
}

.popup-photo-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    height: 100%;
}

.popup-photo-row .popup-image.small {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.popup-content {
    padding: 2rem;
}

.popup-header {
    margin-bottom: 1.5rem;
}

.popup-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #1f1f1f;
}

.popup-status {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.popup-status.open {
    background-color: #4caf50;
    color: #ffffff;
}

.popup-status.closed {
    background-color: #ff002f;
    color: #ffffff;
}

.popup-status.unknown {
    background-color: #c7c5bf;
    color: #1f1f1f;
}

.popup-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.popup-info-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.popup-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.popup-info-icon {
    font-size: 1.5rem;
    min-width: 30px;
}

.popup-info-text h4 {
    font-size: 0.9rem;
    color: #30302f;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.popup-info-text p {
    color: #1f1f1f;
    font-size: 1rem;
}

.popup-info-text a {
    color: #3a8ff0;
    text-decoration: none;
}

.popup-info-text a:hover {
    text-decoration: underline;
}

.popup-hours-list {
    list-style: none;
    padding: 0;
}

.popup-hours-list li {
    padding: 0.25rem 0;
    font-size: 0.95rem;
}

.popup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #c7c5bf;
}

.popup-action-btn {
    flex: 1;
    min-width: 200px;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-family: 'Gabarito', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.popup-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.popup-action-btn.primary {
    background: linear-gradient(135deg, #f2ba11 0%, #ff002f 100%);
    color: #ffffff;
}

.popup-action-btn.secondary {
    background: #3a8ff0;
    color: #ffffff;
}

.popup-action-btn.tertiary {
    background: #ffffff;
    color: #1f1f1f;
    border: 2px solid #c7c5bf;
}

.popup-action-btn.order {
    background: #4caf50;
    color: #ffffff;
}

.popup-action-btn.order.disabled {
    background: #c7c5bf;
    color: #30302f;
    opacity: 0.6;
    cursor: not-allowed;
}

.popup-action-btn.order.disabled:hover {
    transform: none;
    box-shadow: none;
}

.popup-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.popup-action-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.popup-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.popup-stars {
    color: #f2ba11;
    font-size: 1.2rem;
}

.popup-rating-text {
    color: #30302f;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .restaurant-popup {
        max-height: 95vh;
        margin: 0;
        border-radius: 15px;
    }

    .popup-images {
        height: 200px;
        border-radius: 15px 15px 0 0;
    }

    .popup-content {
        padding: 1.5rem;
    }

    .popup-header h2 {
        font-size: 1.5rem;
    }

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

    .popup-action-btn {
        min-width: 100%;
    }
}
