/* ============================================
   Tarabezty - Main Stylesheet
   Theme: WhatsApp Green (#25D366) & Dark Charcoal (#1e293b)
   ============================================ */

/* --- CSS Variables / Theme Colors --- */
:root {
    --whatsapp-green: #25D366;
    --whatsapp-green-dark: #1DA851;
    --whatsapp-green-light: #DCF8C6;
    --dark-charcoal: #1e293b;
    --dark-charcoal-light: #334155;
    --dark-charcoal-lighter: #475569;
    --dark-charcoal-bg: #f1f5f9;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
}

/* --- Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: clip;
    width: 100%;
    max-width: 100vw;
}

/* --- RTL / Arabic Typography --- */
html[lang="ar"],
body[dir="rtl"],
[dir="rtl"] * {
    font-family: 'Cairo', sans-serif !important;
}
html[lang="ar"] {
    direction: rtl;
    text-align: right;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    overflow-x: hidden;
}

/* --- Header --- */
.header {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.95), rgba(29, 168, 81, 0.95));
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    /* CRITICAL: never clip floating dropdown/flyout menus below the header */
    overflow: visible;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* CRITICAL: override .container overflow-x:hidden so dropdowns can
       extend past the header boundary without scrollbars/clipping. */
    overflow: visible;
    position: relative;
    z-index: 120;
}

.header-logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.header-logo span {
    color: var(--white);
}

.header-nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header-nav a:hover {
    color: var(--white);
}

/* Login button in the header navigation */
.nav-login-btn {
    background: var(--white);
    color: var(--whatsapp-green-dark) !important;
    font-weight: 700 !important;
    padding: 0.4rem 1.4rem;
    border-radius: 50px;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-login-btn:hover {
    background: var(--whatsapp-green-light);
    color: var(--whatsapp-green-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Create Event CTA button in the header navigation */
.nav-create-event-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--white);
    color: var(--whatsapp-green-dark) !important;
    font-weight: 800 !important;
    font-size: 0.85rem;
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}
.nav-create-event-btn:hover {
    background: var(--whatsapp-green-light);
    color: var(--whatsapp-green-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.nav-create-event-btn svg { flex-shrink: 0; }

/* Compact "Create Event" circle button for the mobile header */
.mobile-create-event-btn:hover { background: #DCF8C6 !important; }
.mobile-create-event-btn svg { flex-shrink: 0; }

/* Prominent "Create Event" tile at the top of the mobile side drawer */
.side-drawer-create {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff !important;
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
    margin-bottom: 0.25rem;
}
.side-drawer-create:hover {
    background: linear-gradient(135deg, #1DA851, #0f6b5f) !important;
    color: #fff !important;
}
.side-drawer-create svg { flex-shrink: 0; }

/* Narrower desktop widths: show only the + icon on the header CTA */
@media (max-width: 1000px) {
    .nav-create-event-btn span { display: none; }
    .nav-create-event-btn { padding: 0.45rem 0.6rem; }
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, var(--dark-charcoal) 0%, var(--gray-900) 50%, #0f172a 100%);
    color: var(--white);
    text-align: center;
    padding: 5rem 1rem 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2325D366' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    position: relative;
}

.hero h2 .highlight {
    color: var(--whatsapp-green);
}

.hero p {
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto 1.5rem;
    opacity: 0.95;
    position: relative;
}

/* --- OpenTable-Style Search Bar --- */
.search-bar {
    background: var(--white);
    border-radius: 60px;
    padding: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 10;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

.search-bar .search-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-right: 1px solid var(--gray-200);
    position: relative;
}

.search-bar .search-item:last-of-type {
    border-right: none;
}

.search-bar .search-item .search-icon {
    font-size: 1.1rem;
    color: var(--gray-400);
}

/* --- Search Query Wrapper (for autocomplete positioning) --- */
.search-query-wrapper {
    position: relative;
}

/* --- Autocomplete Dropdown (Booking.com Style) --- */
.autocomplete-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    min-width: 320px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
    z-index: 1000;
    padding: 0.5rem 0;
    max-height: 380px;
    overflow-y: auto;
}

.autocomplete-dropdown.active {
    display: block;
    animation: autocompleteFadeIn 0.15s ease-out;
}

@keyframes autocompleteFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section title (category badge) */
.autocomplete-section-title {
    padding: 0.5rem 1rem 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-500);
}

/* Divider between sections */
.autocomplete-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 0.25rem 0.75rem;
}

/* Individual suggestion item */
.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 1rem;
    cursor: pointer;
    transition: background-color 0.12s ease;
    border-left: 3px solid transparent;
}

.autocomplete-item:hover {
    background-color: var(--gray-50);
    border-left-color: var(--whatsapp-green);
}

.autocomplete-item:active {
    background-color: var(--whatsapp-green-light);
}

.autocomplete-item-emoji {
    font-size: 1.15rem;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.autocomplete-item-text {
    font-size: 0.9rem;
    color: var(--gray-700);
    font-weight: 500;
    line-height: 1.3;
}

/* Scrollbar styling for dropdown */
.autocomplete-dropdown::-webkit-scrollbar {
    width: 6px;
}

.autocomplete-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* Responsive: full-width dropdown on mobile */
@media (max-width: 768px) {
    .autocomplete-dropdown {
        position: fixed;
        top: auto;
        left: 1rem;
        right: 1rem;
        min-width: unset;
        max-height: 50vh;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        border-radius: 12px 12px 0 0;
        bottom: 0;
    }
}


.search-bar select,
.search-bar input[type="date"],
.search-bar input[type="text"] {
    border: none;
    outline: none;
    font-size: 0.9rem;
    color: var(--gray-700);
    background: transparent;
    font-family: inherit;
    min-width: 100px;
    cursor: pointer;
    padding: 0.2rem 0;
}

.search-bar select {
    min-width: 110px;
}

.search-bar input[type="date"] {
    min-width: 120px;
}

.search-bar input[type="text"] {
    min-width: 140px;
}

.search-bar .search-item label {
    display: none;
}

.btn-letsgo {
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-green-dark));
    color: var(--white);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-letsgo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* ============================================
   TOP CATEGORIES BAR (Eventbrite style)
   ============================================ */
.top-categories {
    padding: 3.5rem 0 1.5rem;
    background: var(--gray-50, #f9fafb);
    border-bottom: 1px solid var(--gray-100, #f3f4f6);
    overflow: hidden;
}

/* Centered container for the 6 category items (max-w-6xl mx-auto px-4) */
.categories-container {
    width: 100% !important;
    max-width: 72rem !important; /* max-w-6xl */
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1rem;
    padding-right: 1rem;
    overflow: visible;
}

@media (min-width: 768px) {
    .categories-container {
        max-width: 72rem !important;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .categories-container {
        max-width: 72rem !important; /* max-w-6xl */
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.top-categories-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-800, #1f2937);
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.categories-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* grid-cols-3: 3 items per row on mobile */
    gap: 1rem; /* gap-4 on mobile */
    justify-items: center;
    align-items: start;
}

@media (min-width: 768px) {
    .categories-row {
        grid-template-columns: repeat(6, minmax(0, 1fr)); /* md:grid-cols-6: single row on desktop */
        gap: 2rem; /* md:gap-8 */
    }
}

/* Compact mobile sizing retained (w-16 h-16) */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--gray-700, #374151);
    transition: transform 0.2s ease, opacity 0.2s ease;
    width: 100%;
    max-width: 110px;
    text-align: center;
    flex: 0 0 auto;
}

@media (min-width: 1024px) {
    .category-card {
        max-width: 160px;
    }
}

.category-card:hover {
    transform: translateY(-4px);
}

.category-card:hover .category-icon-circle {
    border-color: #25D366;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.2);
}

/* Default (mobile/tablet): 68px circle with 26px icons
   Desktop (lg): doubled to 136px circle with 52px icons */
.category-icon-circle {
    width: 64px; /* w-16 */
    height: 64px; /* h-16 */
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--gray-200, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.category-icon-circle svg {
    width: 26px;
    height: 26px;
    /* Keep the stroke visually thin even when the SVG is scaled up on desktop */
    vector-effect: non-scaling-stroke;
}

@media (min-width: 1024px) {
    .category-icon-circle {
        width: 128px; /* lg:w-32 h-32 */
        height: 128px;
        border-width: 3px;
    }

    .category-icon-circle svg {
        width: 52px; /* lg:w-14 h-14 */
        height: 52px;
    }
}

.category-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray-700, #374151);
    line-height: 1.3;
}

@media (min-width: 1024px) {
    .category-label {
        font-size: 1.125rem; /* md:text-lg */
        font-weight: 500; /* font-medium */
        margin-top: 0.25rem;
    }
}

/* ============================================
   CATEGORY PAGE (Eventbrite style)
   ============================================ */
.category-page {
    padding-bottom: 5rem;
    background: var(--gray-50, #f9fafb);
    min-height: 70vh;
}

.category-hero {
    position: relative;
    color: #fff;
    padding: 5rem 0 3.5rem;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background: linear-gradient(135deg, rgba(15,23,42,0.85), rgba(30,41,59,0.7)), url('/images/Zamalek/Pier 88.webp');
}

.category-hero h1 {
    font-size: 2.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.category-hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    max-width: 640px;
    margin: 0 auto;
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.category-filter-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 2.5rem auto 0;
    max-width: 720px;
}

.category-filter-pill {
    display: inline-block;
    padding: 0.55rem 1.5rem;
    border-radius: 50px;
    background: #fff;
    border: 1.5px solid var(--gray-200, #e5e7eb);
    color: var(--gray-600, #4b5563);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-filter-pill:hover {
    border-color: #25D366;
    color: #128C7E;
}

.category-filter-pill.active {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.category-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2.5rem 0 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-results-header h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--gray-800, #1f2937);
    margin: 0;
}

.category-results-count {
    color: var(--gray-500, #6b7280);
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

/* Results count badge — pill-style counter on events.html and category pages.
   Rendered by resultsCountBadgeHtml() in main.js. */
.events-count-badge {
    display: inline-flex;
    align-items: center;
    background: var(--gray-100, #f3f4f6);
    color: var(--gray-700, #374151);
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--gray-800);
}

.feature-card p {
    color: var(--gray-500);
    line-height: 1.7;
}

/* --- Restaurants Section --- */
.restaurants {
    padding: 5rem 0;
    background-color: var(--gray-50);
}

/* Homepage events section: tightened top spacing so the "Events Near You"
   heading connects with the categories bar above it (no large blank gap). */
#events.restaurants {
    padding-top: 1.5rem;
}

.restaurants h3 {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: 3rem;
}

.restaurants-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .restaurants-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Restaurant Card (Horizontal Booking.com Style) --- */
.restaurant-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: row; /* ALWAYS horizontal, even on mobile */
    align-items: stretch;
    cursor: pointer;
}

.restaurant-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--whatsapp-green);
}

.restaurant-card-img {
    width: 33.333%; /* w-1/3 */
    flex-shrink: 0;
    flex-grow: 0;
    align-self: stretch; /* fill the card's full height — no bottom gap */
    height: 100%;
    background: linear-gradient(135deg, var(--whatsapp-green-light), var(--dark-charcoal-bg));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    position: relative;
    overflow: hidden;
    /* Smooth outer corners (start side = left in LTR, right in RTL) */
    border-start-start-radius: inherit;
    border-end-start-radius: inherit;
}

/* Full-height thumbnails: cover-fit the image edge-to-edge, centered */
.restaurant-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (min-width: 768px) {
    .restaurant-card {
        min-height: 200px; /* uniform desktop card height */
        max-height: 200px;
    }

    .restaurant-card-img {
        width: 200px; /* fixed square desktop thumbnail → uniform card height */
        height: 200px;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        object-position: center;
        flex-shrink: 0;
        flex-grow: 0;
        font-size: 4rem;
    }
}

.restaurant-card-fav {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--gray-400);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.restaurant-card-fav:hover {
    color: #ef4444;
    background: #fff;
}

.restaurant-card-body {
    width: 66.666%; /* w-2/3 */
    padding: 0.5rem; /* p-2 */
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.4rem;
    min-width: 0;
}

/* Header block: title + rating side by side */
.restaurant-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.restaurant-card-info {
    flex: 1;
    min-width: 0;
}

.restaurant-card-body h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.2rem;
    line-height: 1.3;
    min-height: 2.6em; /* reserve exactly 2 lines → uniform card height */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* line-clamp-2 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Details block: tags, stars, location, description grouped vertically */
.restaurant-card-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.restaurant-card-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.restaurant-card-body .cuisine {
    display: inline-block;
    background-color: var(--whatsapp-green-light);
    color: var(--whatsapp-green-dark);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
    border-radius: 50px;
}

.restaurant-card-stars {
    color: #F59E0B;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.restaurant-card-stars span {
    color: var(--gray-500);
    font-weight: 400;
    font-size: 0.75rem;
}

.restaurant-card-location {
    font-size: 0.8rem;
    color: var(--gray-500);
    display: block;
    max-width: 100%;
    white-space: nowrap; /* truncate / line-clamp-1 */
    overflow: hidden;
    text-overflow: ellipsis;
}

.restaurant-card-location svg {
    vertical-align: middle;
    margin-right: 3px;
}

.restaurant-card-body .resto-desc {
    color: var(--gray-500);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0;
    min-height: 2.8em; /* exactly two lines → uniform card height */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* line-clamp-2 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   Event Image Lightbox (full-size preview modal)
   ============================================ */
.event-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.event-lightbox.event-lightbox-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.25s ease;
}

.event-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: zoom-out;
}

.event-lightbox-img {
    position: relative;
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.96);
    transition: transform 0.25s ease;
    object-fit: contain;
}

.event-lightbox.event-lightbox-open .event-lightbox-img {
    transform: scale(1);
}

.event-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    font-family: inherit;
}

.event-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.08);
}

/* Rating block (blue badge + label) */
.restaurant-card-rating-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    flex-shrink: 0;
}

.resto-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: var(--white);
    padding: 0.15rem 0.5rem;
    border-radius: 6px 6px 6px 0;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.3;
}

.resto-rating-label {
    font-size: 0.625rem; /* text-[10px] on mobile */
    color: var(--gray-500);
    font-weight: 500;
    text-align: right;
    white-space: nowrap;
}

/* Action block: book button bottom-right */
.restaurant-card-cta {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 0.4rem;
}

.restaurant-card-body .btn-book {
    display: inline-block;
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-green-dark));
    color: var(--white);
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.25);
    white-space: nowrap;
}

.restaurant-card-body .btn-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.35);
}

/* --- Dashboard Section --- */
.dashboard {
    padding: 5rem 0;
    background-color: var(--white);
}

.dashboard h3 {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: 3rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card .stat-label {
    color: var(--gray-500);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 800;
}

.stat-card .stat-value.green {
    color: var(--whatsapp-green);
}

.stat-card .stat-value.red {
    color: var(--dark-charcoal);
}

.stat-card .stat-value.blue {
    color: #3B82F6;
}

.stat-card .stat-value.yellow {
    color: #EAB308;
}

.chart-container {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-200);
    margin-bottom: 2rem;
}

.reservations-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-200);
}

.reservations-table thead {
    background-color: var(--gray-100);
}

.reservations-table th {
    padding: 1rem;
    text-align: left;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    font-weight: 600;
}

.reservations-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-600);
}

.reservations-table tbody tr:hover {
    background-color: var(--gray-50);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.confirmed {
    background-color: var(--whatsapp-green-light);
    color: var(--whatsapp-green-dark);
}

.status-badge.pending {
    background-color: #FEF3C7;
    color: #D97706;
}

.status-badge.cancelled {
    background-color: #e2e8f0;
    color: var(--dark-charcoal);
}

/* --- Contact Section --- */
.contact {
    background: linear-gradient(135deg, var(--dark-charcoal), var(--dark-charcoal-light));
    color: var(--white);
    text-align: center;
    padding: 5rem 1rem;
}

.contact h3 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.contact p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.btn-contact {
    display: inline-block;
    background-color: var(--white);
    color: var(--dark-charcoal);
    font-weight: 700;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background-color: var(--gray-100);
}

/* --- Footer --- */
.footer {
    background-color: var(--gray-800);
    color: var(--gray-400);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
}

/* --- AI Chatbot Widget --- */
.chatbot-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-green-dark));
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.chatbot-toggle .close-icon {
    display: none;
}

.chatbot-toggle.active .chat-icon {
    display: none;
}

.chatbot-toggle.active .close-icon {
    display: inline;
}

.chatbot-panel {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 350px;
    height: 520px;
    max-height: 80vh;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: none;
    flex-direction: column;
    border: 1px solid var(--gray-200);
}

.chatbot-panel.active {
    display: flex;
}

.chatbot-header {
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-green-dark));
    color: var(--white);
    padding: 1rem 1.25rem;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.chatbot-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background-color: var(--gray-50);
    min-height: 0;
}

.chatbot-message {
    margin-bottom: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    max-width: 85%;
    font-size: 0.9rem;
    line-height: 1.5;
    animation: messageIn 0.3s ease;
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-message.bot {
    background-color: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.chatbot-message.user {
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-green-dark));
    color: var(--white);
    border-bottom-right-radius: 4px;
    margin-left: auto;
}

/* --- Chat Actions / Bottom Footer Area --- */
.chatbot-buttons,
.chatbot-input-area {
    flex-shrink: 0;
}

.chatbot-input-area {
    display: flex;
    padding: 0.75rem;
    border-top: 1px solid var(--gray-200);
    background: var(--white);
    gap: 0.5rem;
}

.chatbot-input-area input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 50px;
    outline: none;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.chatbot-input-area input:focus {
    border-color: var(--whatsapp-green);
}

.chatbot-input-area button {
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-green-dark));
    color: var(--white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-input-area button:hover {
    transform: scale(1.05);
}

/* Personal Info Form (Name + Phone combined) */
.personal-info-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 4px 0;
}

.personal-info-form input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    outline: none;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.personal-info-form input:focus {
    border-color: var(--whatsapp-green);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.btn-pi-submit {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-green-dark));
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-pi-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* Chatbot Quick-Reply Buttons */
.chatbot-buttons {
    display: none;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px 12px;
    background: var(--white);
    border-top: 1px solid var(--gray-100);
}

.chatbot-btn {
    display: inline-block;
    padding: 8px 14px;
    border: 2px solid var(--whatsapp-green);
    background: var(--white);
    color: var(--whatsapp-green-dark);
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0;
    transform: translateY(8px);
    white-space: nowrap;
    font-family: inherit;
    line-height: 1.3;
}

.chatbot-btn.show {
    opacity: 1;
    transform: translateY(0);
}

.chatbot-btn:hover {
    background: var(--whatsapp-green-light);
    border-color: var(--whatsapp-green-dark);
}

.chatbot-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.chatbot-btn small {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--gray-500);
    margin-top: 1px;
}

.chatbot-btn:disabled small {
    color: var(--gray-400);
}

/* ============================================
   Restaurant Detail Page
   ============================================ */
.restaurant-detail {
    padding: 2rem 0 5rem;
    background-color: var(--gray-50);
    min-height: 60vh;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.restaurant-detail-loading {
    text-align: center;
    padding: 4rem 0;
    font-size: 1.2rem;
    color: var(--gray-500);
}

.btn-back {
    display: inline-block;
    color: var(--whatsapp-green-dark);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.btn-back:hover {
    background-color: var(--whatsapp-green-light);
}

.restaurant-detail-header {
    display: flex;
    gap: 2.5rem;
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
    margin-bottom: 2rem;
}

.restaurant-detail-img {
    width: 200px;
    height: 200px;
    min-width: 200px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--whatsapp-green-light), var(--dark-charcoal-bg));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.restaurant-detail-info {
    flex: 1;
}

.restaurant-detail-info h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.restaurant-detail-info .cuisine {
    display: inline-block;
    background-color: var(--whatsapp-green-light);
    color: var(--whatsapp-green-dark);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

.restaurant-detail-info .rating {
    color: #F59E0B;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.restaurant-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.meta-item {
    background-color: var(--gray-50);
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
}

.restaurant-detail-desc {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.btn-proceed-checkout {
    display: inline-block;
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-green-dark));
    color: var(--white);
    font-weight: 700;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.btn-proceed-checkout:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* --- Menu Section --- */
.menu-section {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
}

.menu-section h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: 1.5rem;
}

.menu-category {
    margin-bottom: 2rem;
}

.menu-category:last-child {
    margin-bottom: 0;
}

.menu-category h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-charcoal);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--dark-charcoal-bg);
}

.menu-items {
    display: grid;
    gap: 0.75rem;
}

.menu-item-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background-color: var(--gray-50);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.menu-item-card:hover {
    border-color: var(--whatsapp-green);
    background-color: var(--white);
}

.menu-item-emoji {
    font-size: 1.75rem;
    width: 44px;
    text-align: center;
}

.menu-item-info {
    flex: 1;
}

.menu-item-name {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 1rem;
}

.menu-item-desc {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin-top: 0.15rem;
}

.menu-item-price {
    font-weight: 700;
    color: var(--whatsapp-green-dark);
    font-size: 1.05rem;
    white-space: nowrap;
}

/* ============================================
   Checkout Page
   ============================================ */
.checkout-page {
    padding: 2rem 0 5rem;
    background-color: var(--gray-50);
    min-height: 60vh;
}

.checkout-page h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: 2rem;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

.checkout-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
}

.checkout-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.checkout-subtitle {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Checkout Restaurant Info */
.checkout-restaurant-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--gray-50);
    border-radius: 10px;
    border: 1px solid var(--gray-200);
}

.checkout-restaurant-emoji {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--whatsapp-green-light), var(--dark-charcoal-bg));
    border-radius: 10px;
}

.checkout-restaurant-details h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
}

.checkout-restaurant-details .cuisine {
    font-size: 0.8rem;
}

.checkout-restaurant-details .rating {
    color: #F59E0B;
    font-size: 0.9rem;
}

/* Table Grid */
.table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.table-option {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 1rem 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.table-option:hover {
    border-color: var(--whatsapp-green);
    background-color: var(--whatsapp-green-light);
}

.table-option.selected {
    border-color: var(--whatsapp-green);
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-green-dark));
    color: var(--white);
}

.table-option.selected .table-label,
.table-option.selected .table-desc {
    color: var(--white);
}

.table-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.table-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--gray-700);
}

.table-desc {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 0.2rem;
}

/* Date/Time Picker */
.datetime-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 0.4rem;
}

.form-input {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-input:focus {
    border-color: var(--whatsapp-green);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Checkout Summary */
.checkout-summary {
    position: sticky;
    top: 100px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.95rem;
}

.summary-row:last-of-type {
    border-bottom: none;
}

.summary-row span:first-child {
    color: var(--gray-500);
}

.summary-row span:last-child {
    font-weight: 600;
    color: var(--gray-800);
}

.btn-confirm-booking {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-green-dark));
    color: var(--white);
    font-weight: 700;
    padding: 0.9rem;
    border-radius: 50px;
    border: none;
    font-size: 1.05rem;
    cursor: pointer;
    margin-top: 1.25rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.btn-confirm-booking:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.booking-result {
    margin-top: 1rem;
}

.booking-result .success {
    background-color: var(--whatsapp-green-light);
    color: var(--whatsapp-green-dark);
    padding: 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.booking-result .error {
    background-color: #fee2e2;
    color: var(--dark-charcoal);
    padding: 0.85rem;
    border-radius: 10px;
    font-size: 0.95rem;
}

.booking-result .loading {
    color: var(--gray-500);
    text-align: center;
    font-size: 0.95rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .search-bar {
        border-radius: 20px;
        padding: 0.75rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .search-bar .search-item {
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
        padding: 0.5rem 0.75rem;
    }

    .search-bar .search-item:last-of-type {
        border-bottom: none;
    }

    .search-bar select,
    .search-bar input[type="date"],
    .search-bar input[type="text"] {
        width: 100%;
        min-width: unset;
    }

    .btn-letsgo {
        width: 100%;
        text-align: center;
    }

    .restaurant-detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .restaurant-detail-img {
        width: 150px;
        height: 150px;
        min-width: 150px;
        font-size: 4rem;
    }

    .restaurant-meta {
        justify-content: center;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }

    .datetime-picker {
        grid-template-columns: 1fr;
    }

    .table-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-nav a {
        margin-left: 1rem;
        font-size: 0.9rem;
    }
}

/* ============================================
   Admin Dashboard Styles
   ============================================ */
.admin-dashboard {
    padding: 2rem 0 5rem;
    background-color: var(--gray-50);
    min-height: 60vh;
}

.admin-dashboard h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.admin-subtitle {
    color: var(--gray-500);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.admin-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
}

.admin-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-100);
}

.admin-card-desc {
    color: var(--gray-500);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.admin-card-desc code {
    background-color: var(--gray-100);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--dark-charcoal);
}

/* Form Layout */
.admin-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.form-status {
    font-size: 0.9rem;
    font-weight: 500;
}

.form-status.success {
    color: var(--whatsapp-green-dark);
}

.form-status.error {
    color: #dc2626;
}

/* Admin Buttons */
.btn-admin-primary {
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-green-dark));
    color: var(--white);
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-admin-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-admin-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-admin-secondary {
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-admin-secondary:hover {
    background-color: var(--gray-50);
    border-color: var(--gray-400);
}

.btn-admin-refresh {
    background: transparent;
    color: var(--gray-500);
    border: 1px solid var(--gray-200);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-admin-refresh:hover {
    background-color: var(--gray-50);
    color: var(--gray-700);
}

/* CSV Upload Zone */
.csv-upload-zone {
    border: 2px dashed var(--gray-300);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--gray-50);
    margin-bottom: 1rem;
}

.csv-upload-zone:hover,
.csv-upload-zone.drag-over {
    border-color: var(--whatsapp-green);
    background-color: var(--whatsapp-green-light);
}

.csv-upload-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.csv-upload-text {
    font-size: 1.05rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.csv-upload-text strong {
    color: var(--whatsapp-green-dark);
}

.csv-upload-hint {
    font-size: 0.85rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.csv-upload-zone .btn-admin-secondary {
    margin: 0.25rem;
}

.csv-status {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.csv-status .success {
    color: var(--whatsapp-green-dark);
    font-weight: 500;
}

.csv-status .error {
    color: #dc2626;
    font-weight: 500;
}

.csv-preview {
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--gray-50);
    border-radius: 10px;
    border: 1px solid var(--gray-200);
}

.csv-preview h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
}

.csv-preview .btn-admin-primary {
    margin-top: 1rem;
}

/* Admin Table */
.admin-table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.table-count {
    font-size: 0.9rem;
    color: var(--gray-500);
    font-weight: 500;
}

.table-count.success {
    color: var(--whatsapp-green-dark);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.admin-table thead {
    background-color: var(--gray-100);
}

.admin-table th {
    padding: 0.85rem 1rem;
    text-align: left;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    font-weight: 600;
}

.admin-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-600);
    font-size: 0.95rem;
}

.admin-table tbody tr:hover {
    background-color: var(--gray-50);
}

.admin-table .table-empty {
    text-align: center;
    color: var(--gray-400);
    padding: 2rem;
    font-style: italic;
}

.resto-emoji {
    font-size: 1.25rem;
    margin-right: 0.35rem;
}

.cuisine-badge {
    display: inline-block;
    background-color: var(--whatsapp-green-light);
    color: var(--whatsapp-green-dark);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
}

.rating-stars {
    color: #F59E0B;
}

.btn-delete {
    background: none;
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    background-color: #fee2e2;
    border-color: #dc2626;
}

/* CSV Preview Table */
.csv-preview-table {
    font-size: 0.9rem;
}

.csv-preview-table th {
    padding: 0.6rem 0.75rem;
}

.csv-preview-table td {
    padding: 0.5rem 0.75rem;
}

/* Responsive Admin */
@media (max-width: 768px) {
    .admin-form .form-row {
        grid-template-columns: 1fr;
    }

    .admin-table {
        font-size: 0.85rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.5rem 0.6rem;
    }

    .csv-upload-zone {
        padding: 1.5rem 1rem;
    }
}

/* ============================================
   Mobile Navigation & Side Drawer
   ============================================ */

/* Hamburger Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    z-index: 110;
    transition: transform 0.2s ease;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

/* Mobile header actions: compact language switcher + hamburger grouped together */
.mobile-header-actions {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.mobile-lang-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
}

/* Side Drawer Overlay */
.side-drawer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.side-drawer-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* Side Drawer */
.side-drawer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 80vw;
    background: var(--white);
    z-index: 9999;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    flex-direction: column;
    padding: 1.5rem;
}

.side-drawer.active {
    display: flex;
    transform: translateX(0);
}

.side-drawer-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.side-drawer-close:hover {
    color: var(--gray-800);
}

.side-drawer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--whatsapp-green);
    margin: 1rem 0 2rem;
    letter-spacing: -0.5px;
}

.side-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.side-drawer-nav a {
    display: block;
    padding: 0.85rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.side-drawer-nav a:hover {
    background-color: var(--whatsapp-green-light);
    color: var(--whatsapp-green-dark);
}

/* ============================================
   Mobile Responsive Styles (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    /* Hide standard nav links */
    .header-nav {
        display: none !important;
    }

    /* Show hamburger button */
    .mobile-menu-btn {
        display: block;
    }

    /* Show the mobile header actions group (language toggle + hamburger) */
    .mobile-header-actions {
        display: flex;
    }

    /* Hero Search Form - Mobile Layout */
    .search-bar {
        width: 90%;
        max-width: 400px;
        margin: 0 auto;
        overflow: visible;
        z-index: 10;
        border-radius: 16px;
        padding: 0.75rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .search-bar .search-item {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
        padding: 0.5rem 0.75rem;
    }

    .search-bar .search-item:last-of-type {
        border-bottom: none;
    }

    .search-bar select,
    .search-bar input[type="date"],
    .search-bar input[type="text"] {
        width: 100%;
        min-width: 0;
        padding: 0.4rem 0;
    }

    .search-bar .btn-letsgo {
        width: 100%;
        padding: 0.75rem 1.5rem;
        margin-top: 0.25rem;
    }

    /* Hero section padding adjustment */
    .hero {
        padding: 2.5rem 1rem 3rem;
    }

    .hero h2 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* ============================================
   Redesigned Restaurant Detail Page (Modern UI)
   ============================================ */

/* Hero Image Section */
.resto-hero {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
}

.resto-hero-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-charcoal) 0%, var(--gray-900) 50%, #0f172a 100%);
    position: relative;
}

.resto-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2325D366' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.resto-hero-emoji {
    font-size: 8rem;
    opacity: 0.3;
    filter: grayscale(0.5);
}

.resto-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 2rem 0 1.5rem;
    color: var(--white);
}

.resto-back-btn {
    display: inline-block;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

.resto-back-btn:hover {
    color: var(--white);
}

.resto-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.resto-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.resto-badge {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.resto-badge.cuisine-badge {
    background: rgba(37, 211, 102, 0.85);
    color: var(--white);
}

.resto-badge.price-badge {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    backdrop-filter: blur(4px);
}

.resto-badge.rating-badge {
    background: rgba(245, 158, 11, 0.85);
    color: var(--white);
}

/* Content Layout */
.resto-content {
    padding: 2rem 1rem 4rem;
}

.resto-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
}

.resto-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
}

.resto-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-100);
}

.resto-desc {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.resto-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.resto-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: 10px;
    border: 1px solid var(--gray-200);
}

.resto-meta-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.resto-meta-item div strong {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.resto-meta-item div p {
    font-size: 0.95rem;
    color: var(--gray-700);
    font-weight: 500;
}

/* Menu Section */
.resto-menu-category {
    margin-bottom: 1.5rem;
}

.resto-menu-category:last-child {
    margin-bottom: 0;
}

.resto-menu-category h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark-charcoal);
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--whatsapp-green-light);
}

.resto-menu-grid {
    display: grid;
    gap: 0.6rem;
}

.resto-menu-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease;
}

.resto-menu-item:hover {
    border-color: var(--whatsapp-green);
    background: var(--white);
}

.resto-menu-item-emoji {
    font-size: 1.5rem;
    width: 36px;
    text-align: center;
    flex-shrink: 0;
}

.resto-menu-item-info {
    flex: 1;
    min-width: 0;
}

.resto-menu-item-name {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.95rem;
}

.resto-menu-item-desc {
    color: var(--gray-500);
    font-size: 0.8rem;
    margin-top: 0.1rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.resto-menu-item-price {
    font-weight: 700;
    color: var(--whatsapp-green-dark);
    font-size: 1rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Booking Widget (Sticky Sidebar) */
.resto-sidebar {
    position: sticky;
    top: 90px;
}

.resto-booking-widget {
    background: var(--white);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid var(--gray-200);
}

.resto-booking-widget h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.resto-booking-sub {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.resto-booking-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.resto-form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-bottom: 0.3rem;
}

.resto-form-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
    background: var(--white);
}

.resto-form-input:focus {
    border-color: var(--whatsapp-green);
    box-shadow: 0 0 0 3px rgba(37,211,102,0.1);
}

.resto-book-btn {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-green-dark));
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37,211,102,0.3);
    margin-top: 0.5rem;
}

.resto-book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,211,102,0.4);
}

/* ============================================
   Interactive Button-based Chatbot Styles
   ============================================ */

.chatbot-options {
    display: none;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px 12px;
    background: var(--white);
    border-top: 1px solid var(--gray-100);
    flex-shrink: 0;
}

.chatbot-option-btn {
    display: inline-block;
    padding: 8px 14px;
    border: 2px solid var(--whatsapp-green);
    background: var(--white);
    color: var(--whatsapp-green-dark);
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    line-height: 1.3;
    white-space: nowrap;
}

.chatbot-option-btn:hover {
    background: var(--whatsapp-green-light);
    border-color: var(--whatsapp-green-dark);
}

.chatbot-date-input,
.chatbot-text-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-300);
    border-radius: 10px;
    outline: none;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.chatbot-date-input:focus,
.chatbot-text-input:focus {
    border-color: var(--whatsapp-green);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

/* Responsive: Restaurant Detail Page */
@media (max-width: 768px) {
    .resto-hero {
        height: 260px;
    }

    .resto-hero-title {
        font-size: 1.75rem;
        word-break: break-word;
    }

    .resto-layout {
        grid-template-columns: 1fr;
    }

    .resto-meta-grid {
        grid-template-columns: 1fr;
    }

    .resto-card {
        padding: 1.25rem;
    }

    .resto-card h3 {
        font-size: 1.15rem;
    }

    .resto-menu-item {
        padding: 0.65rem 0.75rem;
        gap: 0.6rem;
    }

    .resto-menu-item-emoji {
        font-size: 1.2rem;
        width: 28px;
    }

    .resto-menu-item-name {
        font-size: 0.85rem;
    }

    .resto-menu-item-desc {
        font-size: 0.75rem;
    }

    .resto-menu-item-price {
        font-size: 0.85rem;
    }

    .resto-booking-widget {
        padding: 1.25rem;
    }

    .resto-hero-overlay {
        padding: 1.25rem 0 1rem;
    }

    .resto-hero-badges {
        gap: 0.35rem;
    }

    .resto-badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.65rem;
    }
}

/* ============================================
   About Company Section
   ============================================ */
.about-company-section {
    padding: 4rem 0;
    background: var(--white);
}

.about-company-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-company-text {
    text-align: center;
    margin-bottom: 3rem;
}

.about-company-text h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-charcoal);
    margin-bottom: 0.5rem;
}

.about-company-tagline {
    font-size: 1.1rem;
    color: var(--whatsapp-green-dark);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.about-company-text p {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.about-stat {
    text-align: center;
}

.about-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--whatsapp-green-dark);
}

.about-stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
    margin-top: 0.25rem;
}

.about-company-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.about-value-card {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--gray-200);
}

.about-value-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.about-value-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark-charcoal);
    margin-bottom: 0.5rem;
}

.about-value-card p {
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ============================================
   Responsive: About Sections
   ============================================ */
@media (max-width: 768px) {
    .about-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .about-company-values {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Unified Filter Bar - Responsive Grid Layout
   Mobile: 1 col | Tablet: 3 cols | Desktop: 7 cols
   All controls share identical h-11 (2.75rem) height
   and rounded-xl (0.75rem) radius with emerald focus ring
   ============================================ */
.filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2-col mobile grid */
    gap: 0.75rem;
    align-items: center;
    background: var(--white);
    border-radius: 1rem;
    padding: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
    position: relative;
}

.filter-col {
    min-width: 0;
    position: relative;
    width: 100%;
}

.filter-col-name {
    grid-column: span 1;
}

.filter-input-wrap,
.filter-select-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.85rem;
    height: 2.75rem; /* h-11 */
    width: 100%;
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem; /* rounded-xl */
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-input-wrap:focus-within,
.filter-select-wrap:focus-within {
    border-color: #10B981; /* emerald-500 */
    box-shadow: 0 0 0 2px #10B981; /* ring-2 ring-emerald-500 */
    outline: none;
}

.filter-icon {
    flex-shrink: 0;
}

.filter-input {
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: var(--gray-700);
    background: transparent;
    font-family: inherit;
    width: 100%;
    height: 100%;
}

.filter-input::placeholder {
    color: var(--gray-400);
}

/* --- Date inputs: perfect fit inside wrap + clickable anywhere --- */
.filter-date-input {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: 100%;
    cursor: pointer;
    font-size: 0.85rem; /* slightly smaller so mm/dd/yyyy + icon fit the 1/7 desktop column */
    padding-right: 0.35rem; /* small gap before the picker indicator */
    color-scheme: light;
    white-space: nowrap;
    overflow: hidden;
}

.filter-date-input::-webkit-calendar-picker-indicator {
    position: static; /* keep in-flow -- never overflows the border */
    transform: none;
    width: 16px;
    height: 16px;
    margin: 0 0 0 auto; /* push to the right edge, inside the border */
    padding: 0;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.filter-date-input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Firefox fallback: keep the native controls subtle */
.filter-date-input::-moz-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
}

.filter-select {
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: var(--gray-700);
    background: transparent;
    font-family: inherit;
    width: 100%;
    height: 100%;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 1.25rem;
}

.filter-chevron {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    flex-shrink: 0;
}

.filter-btn-col {
    width: 100%;
}

.filter-btn {
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-green-dark));
    color: var(--white);
    border: none;
    padding: 0 1.75rem;
    height: 2.75rem; /* h-11 - matches input fields */
    width: 100%;
    border-radius: 0.75rem; /* rounded-xl */
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filter-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.filter-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px #10B981; /* ring-2 ring-emerald-500 */
}

/* --- Compact 2-column mobile grid (per design spec) ---
   Row 1: search input (full width)
   Row 2: city + district (side by side)
   Row 3: from-date + to-date (side by side)
   Row 4: category (full width)
   Row 5: search button (full width) */
.filter-col-name,
.filter-col-category,
.filter-btn-col {
    grid-column: 1 / -1;
}

/* Custom dropdown polish: subtler arrow, clean interaction */
.filter-select-wrap .filter-chevron {
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.filter-select-wrap:hover .filter-chevron,
.filter-select-wrap:focus-within .filter-chevron {
    opacity: 0.9;
}

/* Desktop: 4-column layout (search full-width, filters + button in 2 rows) */
@media (min-width: 1024px) {
    .filter-bar {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .filter-col-name {
        grid-column: 1 / -1; /* search full width */
        grid-row: 1;
    }

    .filter-col-city { grid-column: 1; grid-row: 2; }
    .filter-col-district { grid-column: 2; grid-row: 2; }
    .filter-col-start { grid-column: 3; grid-row: 2; }
    .filter-col-end { grid-column: 4; grid-row: 2; }

    .filter-col-category { grid-column: span 3; grid-row: 3; }
    .filter-btn-col { grid-column: 4; grid-row: 3; }
}

/* Autocomplete dropdown - modern redesigned UI */
.filter-autocomplete {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    z-index: 50;
    background: #ffffff;
    border: 1px solid #f1f5f9; /* border-slate-100 */
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1); /* shadow-xl */
    margin-top: 0.25rem; /* mt-1 */
    padding: 0.5rem; /* p-2 */
    max-height: 240px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Slim scrollbar for the dropdown */
.filter-autocomplete::-webkit-scrollbar {
    width: 6px;
}

.filter-autocomplete::-webkit-scrollbar-track {
    background: transparent;
}

.filter-autocomplete::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 9999px;
}

.filter-autocomplete::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

.filter-autocomplete-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500;
    line-height: 1.15rem; /* reduced line height */
    color: var(--gray-700);
    cursor: pointer;
    border-radius: 0.5rem; /* rounded-lg */
    transition: background-color 0.15s ease, color 0.15s ease;
    min-width: 0;
}

.filter-autocomplete-emoji {
    flex-shrink: 0;
    font-size: 0.875rem;
    line-height: 1;
}

.filter-autocomplete-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* truncate / line-clamp-1 */
}

.filter-autocomplete-item:hover {
    background: #f8fafc; /* hover:bg-slate-50 */
    color: var(--gray-800);
}

.filter-autocomplete-empty {
    padding: 0.75rem 0.85rem;
    color: var(--gray-400);
    font-size: 0.875rem;
}


/* ============================================
   Bilingual event creation form (client dashboard + organizer portal)
   Sections group English & Arabic field pairs so both languages are always
   visible regardless of the active UI language.
   ============================================ */
.cd-form-section {
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    background: var(--white, #fff);
}

.cd-form-section-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--gray-800, #1f2937);
    margin: 0 0 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-100, #f3f4f6);
}

.cd-req-label {
    font-weight: 700;
}

/* Gated primary action — disabled look until the terms checkbox is accepted.
   Uses opacity/grayscale so it works over inline-styled buttons; clicks still
   fire so we can show a "please accept the terms" toast. */
.event-action-btn-disabled {
    opacity: 0.55;
    filter: grayscale(0.6);
    cursor: not-allowed !important;
}



/* ============================================
   Load More button (pagination) — centered below event grids.
   Shared by the /events catalog and ALL category pages (design system).
   ============================================ */
.load-more-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 2.5rem 0;
}

.load-more-wrap[hidden] {
    display: none;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--whatsapp-green), var(--whatsapp-green-dark));
    color: var(--white);
    border: none;
    padding: 0.8rem 2.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.load-more-btn:hover:not(:disabled) {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.load-more-btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

/* Inline spinner shown while the next batch is being fetched */
.load-more-btn.loading::after {
    content: '';
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Anti-FOUC i18n guard — hides the static default-locale [data-i18n] fallback
   text until client i18n has applied the ACTIVE locale. main.js adds the
   .i18n-applied class to <html> inside applyLanguage(); visibility keeps the
   layout stable (no reflow) while the text is swapped.
   ============================================ */
html:not(.i18n-applied) [data-i18n] {
    visibility: hidden;
}
