/* IndiaFest Interactive GPS Map Stylesheet - Mobile-First Premium Layout */
:root {
    --map-blue: #3D5561;
    --map-orange: #f97316;
    --map-light-bg: #f8fafc;
    --map-border: #e2e8f0;
    --map-text: #1e293b;
    --map-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --map-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.indiafest-map-container {
    position: relative;
    width: 100%;
    height: 600px;
    max-height: 85vh;
    border: 1px solid var(--map-border);
    border-radius: 16px;
    overflow: hidden;
    background: #f8fafc;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--map-text);
    display: flex;
    flex-direction: column;
    box-shadow: var(--map-shadow);
}

/* --- Search & Filter Controls --- */
.map-controls-wrapper {
    background: #ffffff;
    border-bottom: 1px solid var(--map-border);
    padding: 12px 16px;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.map-search-bar {
    position: relative;
    display: flex;
    align-items: center;
}

#map-search-input {
    width: 100%;
    border: 1.5px solid var(--map-border);
    border-radius: 24px;
    padding: 10px 18px;
    padding-right: 40px;
    font-size: 14px;
    outline: none;
    background: #f8fafc;
    transition: var(--map-transition);
}

#map-search-input:focus {
    border-color: var(--map-orange);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
}

.map-search-bar .btn-clear {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.map-search-bar .btn-clear:hover {
    color: var(--map-text);
}

/* Horizontal scrolling filter chips */
.map-filter-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-top: 10px;
    padding-bottom: 4px;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.map-filter-chips::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.filter-chip {
    white-space: nowrap;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--map-transition);
}

.filter-chip:hover {
    background: #e2e8f0;
    color: var(--map-text);
}

.filter-chip.active {
    background: var(--map-blue);
    border-color: var(--map-blue);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(61, 85, 97, 0.3);
}

/* --- Map Viewport Wrapper --- */
.map-viewport-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
}

#map-leaflet-container {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* GPS Locator Button Style Overlay */
/* GPS Locator & Share Button Style Overlay - Override theme defaults with high specificity */
#map-leaflet-container .gps-btn,
.indiafest-map-container .gps-btn {
    position: absolute !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 44px !important;
    height: 44px !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1000 !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #1e293b !important;
    transition: all 0.2s ease-in-out !important;
    box-sizing: border-box !important;
}

#map-leaflet-container .gps-btn:hover,
.indiafest-map-container .gps-btn:hover {
    background: var(--map-orange) !important;
    color: #ffffff !important;
    transform: scale(1.08) !important;
    border-color: var(--map-orange) !important;
}

#map-leaflet-container .gps-btn .gps-icon,
.indiafest-map-container .gps-btn .gps-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    color: inherit !important;
    width: 20px !important;
    height: 20px !important;
}

#map-leaflet-container .gps-btn .gps-icon svg,
.indiafest-map-container .gps-btn .gps-icon svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
}

/* --- Floating Bottom Sheet Drawer --- */
.map-details-drawer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--map-border);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.12);
    z-index: 1001; /* Must sit above Leaflet map overlays */
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 16px 20px 24px;
    box-sizing: border-box;
}

.map-details-drawer.open {
    transform: translateY(0);
}

.drawer-handle-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
    cursor: pointer;
}

.drawer-handle-pill {
    width: 36px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 2px;
}

.drawer-header-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.booth-badge {
    background: var(--map-blue);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: monospace;
}

.drawer-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
}

.drawer-close-btn:hover {
    color: var(--map-text);
}

.drawer-body-section {
    margin-top: 10px;
}

.drawer-body-section h2 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: var(--map-blue);
}

.drawer-meta-line {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.meta-tag {
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.sponsor-tag {
    background: #fef3c7 !important;
    color: #d97706 !important;
    border: 1px solid #fde68a;
}

.drawer-body-section p {
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    color: #475569;
}

/* --- Deployed Leaflet Marker Customizations --- */
.custom-marker {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--map-blue);
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    font-size: 8px;
    font-weight: bold;
    color: var(--map-blue);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-marker:hover {
    transform: scale(1.2);
    z-index: 99999 !important;
}

/* Category Specific Color Overrides for Markers */
.marker-food { border-color: #ca8a04 !important; background: #fef08a !important; color: #854d0e !important; }
.marker-sponsor { border-color: #a855f7 !important; background: #f3e8ff !important; color: #581c87 !important; }
.marker-community { border-color: #2563eb !important; background: #bfdbfe !important; color: #1e3a8a !important; }
.marker-bazaar { border-color: #db2777 !important; background: #fbcfe8 !important; color: #831843 !important; }
.marker-activities { border-color: #4f46e5 !important; background: #c7d2fe !important; color: #312e81 !important; }
.marker-emergency { border-color: #dc2626 !important; background: #fecaca !important; color: #7f1d1d !important; }

/* Active marker highlighted animation */
.custom-marker.active-highlight {
    border-color: #ffffff !important;
    background: var(--map-orange) !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px var(--map-orange) !important;
    animation: pulseMarker 1.5s infinite alternate ease-in-out;
}

/* Hover highlight style when corresponding directory card is hovered */
.custom-marker.hover-highlight {
    transform: scale(1.3) !important;
    z-index: 99999 !important;
    box-shadow: 0 0 14px var(--map-orange) !important;
    border-color: #ffffff !important;
}

@keyframes pulseMarker {
    from {
        transform: scale(1);
        box-shadow: 0 0 6px var(--map-orange);
    }
    to {
        transform: scale(1.3);
        box-shadow: 0 0 18px var(--map-orange);
    }
}

/* --- GPS pulsing dot styles ("You are here") --- */
.user-gps-marker {
    width: 14px;
    height: 14px;
    background: #3b82f6;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 8px #3b82f6;
    position: relative;
}

.user-gps-marker::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.3);
    animation: pulseGps 1.8s infinite ease-out;
}

@keyframes pulseGps {
    0% {
        transform: scale(0.6);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.0);
        opacity: 0;
    }
}

/* Hide route when dimmed */
.leaflet-interactive {
    transition: opacity 0.3s;
}

/* Mobile landscape adjustments */
@media (max-height: 500px) {
    .indiafest-map-container {
        height: 350px;
    }
    .map-details-drawer {
        padding-bottom: 12px;
    }
}

/* --- Action Buttons in Bottom Drawer --- */
.drawer-action-buttons {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.drawer-external-links {
    display: flex;
    gap: 8px;
    width: 100%;
}

.drawer-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: var(--map-transition);
    border: none;
    text-align: center;
}

/* Walk navigation button (Compass/Radar) */
.btn-start-nav {
    background: var(--map-orange);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
    flex: 1;
}

.btn-start-nav:hover {
    background: #ea580c;
    box-shadow: 0 4px 16px rgba(234, 88, 12, 0.35);
}

/* Google Maps button (Primary) */
.btn-gmaps {
    background: #0f9d58;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 157, 88, 0.2);
    width: 100%;
}

.btn-gmaps:hover {
    background: #0b8043;
    box-shadow: 0 4px 16px rgba(11, 128, 67, 0.3);
}

/* Apple Maps button (Primary) */
.btn-applemaps {
    background: #1e293b;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.2);
    width: 100%;
}

.btn-applemaps:hover {
    background: #0f172a;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.3);
}

/* Street View button (Secondary) */
.btn-streetview {
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    flex: 1;
}

.btn-streetview:hover {
    background: #2563eb;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.drawer-secondary-actions {
    display: flex;
    gap: 8px;
    width: 100%;
}

.drawer-tip-text {
    margin-top: 10px;
    font-size: 11px;
    color: #64748b;
    text-align: center;
}

/* --- Floating Navigation HUD Overlay --- */
.map-hud-overlay {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 440px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #ffffff;
    padding: 12px 16px;
    z-index: 1002; /* Float above map overlays and drawer handle */
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box;
    font-family: inherit;
}

.hud-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.hud-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 8px #ef4444;
    animation: hudPulse 1.2s infinite alternate ease-in-out;
}

@keyframes hudPulse {
    from { opacity: 0.4; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1.2); }
}

.hud-title {
    font-weight: 500;
}

.hud-title strong {
    color: var(--map-orange);
}

.hud-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 8px;
}

.hud-info strong {
    color: #3b82f6;
}

.hud-close-btn {
    background: #dc2626;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--map-transition);
}

.hud-close-btn:hover {
    background: #b91c1c;
}

/* --- Event Companion App Container & Layout --- */
.indiafest-app-container {
    width: 100vw;
    position: relative;
    z-index: 1; /* Establishes a local stacking context to prevent z-index leakage to the header */
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 0 40px;
    box-sizing: border-box;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--map-text);
}

/* Page-specific overrides for the IndiaFest map page (page-id-848) */
.page-id-848 .page-content {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.page-id-848 .indiafest-app-container {
    margin-top: 24px;
}

@media (max-width: 768px) {
    .indiafest-app-container {
        padding: 0 16px;
    }
}

.indiafest-app-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

/* Mobile: wrapper divs are invisible so panels flow normally */
.indiafest-map-sticky-panel,
.indiafest-sidebar-panel {
    display: contents;
}

/* ============================================================
   FLOATING BOTTOM ACTION BAR (Mobile)
   Always visible at bottom of map, opens slide-up sheets
   ============================================================ */
.app-tab-navigation {
    display: none; /* Hidden by default; shown on mobile below */
}

/* Mobile: show as a floating bar pinned to bottom of page */
@media (max-width: 991px) {
    .app-tab-navigation {
        display: flex;
        position: fixed;
        bottom: 16px;
        left: 16px;
        right: 16px;
        z-index: 1200;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid var(--map-border);
        border-radius: 20px;
        padding: 8px 12px;
        gap: 12px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.12);
        box-sizing: border-box;
    }

    .app-tab-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 8px 10px;
        border: none;
        background: transparent;
        color: #64748b;
        font-weight: 700;
        border-radius: 14px;
        cursor: pointer;
        transition: var(--map-transition);
        min-height: 52px;
        box-sizing: border-box;
    }

    .app-tab-btn .tab-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        color: #64748b;
        transition: var(--map-transition);
    }

    .app-tab-btn .tab-icon svg {
        width: 22px;
        height: 22px;
        stroke-width: 2.2;
    }

    .app-tab-btn .tab-label {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.02em;
    }

    .app-tab-btn.active {
        color: var(--map-blue);
        background: rgba(30, 64, 175, 0.08);
    }

    .app-tab-btn.active .tab-icon {
        color: var(--map-blue);
    }

    /* Push app layout container slightly to avoid visual overlap */
    .indiafest-app-layout {
        padding-bottom: 90px;
    }

    /* Raise popular floating chatbot/widget wrappers to clear our bottom bar */
    #hubspot-messages-iframe-container,
    .hubspot-messages-iframe-container,
    #tawkchat-container,
    .tawk-minified,
    #fc_widget,
    #chat-widget-container,
    div[id^="tidio-chat"],
    iframe[id^="tidio-chat-iframe"],
    #wp-live-chat-header,
    #social-chat,
    .wa-chat-box,
    .social-chat-button {
        bottom: 96px !important;
    }
}

/* ============================================================
   SLIDE-UP BOTTOM SHEET SYSTEM
   ============================================================ */

/* Backdrop overlay */
.sheet-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1300;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sheet-backdrop.open {
    display: block;
    opacity: 1;
}

/* Bottom sheet base */
.bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1400;
    background: #ffffff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.18);
    transform: translateY(100%);
    transition: transform 0.38s cubic-bezier(0.34, 1.2, 0.64, 1);
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-sheet.open {
    transform: translateY(0);
}

/* Sheet drag handle */
.sheet-handle-wrap {
    display: flex;
    justify-content: center;
    padding: 12px 0 6px;
    flex-shrink: 0;
}
.sheet-handle {
    width: 40px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 2px;
}

/* Sheet header row */
.sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 12px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--map-border);
}

.sheet-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--map-blue);
    margin: 0;
}

.sheet-close-btn {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--map-transition);
    flex-shrink: 0;
}
.sheet-close-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Prevent page scroll when any sheet is open */
body.sheet-open {
    overflow: hidden;
}

/* Scrollable content area */
.sheet-body {
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 16px 20px 24px;
}

/* Sheet schedule content mirrors the main schedule list */
.sheet-schedule-content .live-event-billboard {
    margin: -16px -20px 16px;
    border-radius: 0;
}

/* Sheet directory uses a compact single-column layout */
.sheet-directory-content .directory-grid {
    grid-template-columns: 1fr;
    gap: 12px;
}

/* Desktop: bottom sheets are hidden; sidebar handles these panels */
@media (min-width: 992px) {
    .app-tab-navigation {
        display: none !important;
    }
    .bottom-sheet,
    .sheet-backdrop {
        display: none !important;
    }
}


.app-tab-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 700;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--map-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.app-tab-btn.active {
    background: #ffffff;
    color: var(--map-blue);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Panel toggling — mobile panels hidden by default */
.app-panel {
    display: none;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--map-shadow);
    background: #ffffff;
    border: 1px solid var(--map-border);
}

.app-panel.active {
    display: flex;
    flex-direction: column;
}

/* Mobile: map panel always shown with a scroll-safe height */
@media (max-width: 991px) {
    .app-panel.panel-map {
        display: flex !important;
        flex-direction: column;
        height: 520px;
        border-radius: 16px;
        box-shadow: var(--map-shadow);
        border: 1px solid var(--map-border);
    }
}


/* Live billboard styles */
.live-event-billboard {
    background: linear-gradient(135deg, var(--map-blue) 0%, #1e293b 100%);
    color: #ffffff;
    padding: 20px 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
    border-bottom: 3px solid var(--map-orange);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #38bdf8;
    margin-bottom: 6px;
}

.live-indicator-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: livePulse 1.2s infinite alternate ease-in-out;
}

@keyframes livePulse {
    from { opacity: 0.4; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1.2); }
}

#live-billboard-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 4px;
    color: #ffffff;
    line-height: 1.3;
}

#live-billboard-meta {
    font-size: 12px;
    margin: 0;
    color: #cbd5e1;
}

/* Timeline Wrapper */
.schedule-timeline-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 24px;
    overflow-y: auto;
}

.timeline-header {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--map-blue);
}

.schedule-timeline-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    padding-left: 20px;
    border-left: 2px solid #e2e8f0;
}

/* Event card styles */
.timeline-event-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    position: relative;
    transition: var(--map-transition);
    cursor: pointer;
}

.timeline-event-card::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 24px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px #e2e8f0;
    transition: var(--map-transition);
}

.timeline-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: #cbd5e1;
}

/* Time Badge inside card */
.event-time-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.time-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--map-orange);
    background: rgba(249, 115, 22, 0.08);
    padding: 3px 8px;
    border-radius: 6px;
}

.live-status-tag {
    font-size: 10px;
    font-weight: 800;
    color: #ffffff;
    background: #10b981;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.02em;
    animation: pulseLiveText 1.5s infinite alternate ease-in-out;
}

@keyframes pulseLiveText {
    from { opacity: 0.7; }
    to { opacity: 1; }
}

.event-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px;
    line-height: 1.4;
}

.event-performer {
    font-size: 12px;
    font-weight: 700;
    color: var(--map-blue);
    margin-bottom: 6px;
}

.event-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* Locate Booth Button */
.btn-locate-booth {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--map-blue);
    padding: 8px 10px;
    border-radius: 8px;
    margin-top: 10px;
    cursor: pointer;
    transition: var(--map-transition);
    min-height: 48px;
    text-align: center;
}

.locate-btn-label {
    font-size: 9px;
    text-transform: uppercase;
    opacity: 0.85;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.locate-btn-val {
    font-size: 12px;
    font-weight: 800;
}

.btn-locate-booth:hover {
    background: var(--map-blue);
    color: #ffffff;
    border-color: var(--map-blue);
}

/* Active Live Performance highlight */
.timeline-event-card.live-active {
    border-left: 4px solid #10b981;
    background: #f0fdf4 !important;
    border-color: #bbf7d0;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
    animation: livePulseBorder 2.5s infinite ease-in-out;
    transform: scale(1.01);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@keyframes livePulseBorder {
    0% { box-shadow: 0 4px 15px rgba(16, 185, 129, 0.08), inset 3px 0 0 #10b981; }
    50% { box-shadow: 0 4px 25px rgba(16, 185, 129, 0.25), inset 6px 0 0 #10b981; border-color: #34d399; }
    100% { box-shadow: 0 4px 15px rgba(16, 185, 129, 0.08), inset 3px 0 0 #10b981; }
}

.timeline-event-card.live-active::before {
    background: #10b981;
    box-shadow: 0 0 0 2px #bbf7d0, 0 0 10px #10b981;
    animation: liveMarkerPulse 1.5s infinite ease-in-out;
}

@keyframes liveMarkerPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Pulsing Red Dot for Live Status Tag */
.timeline-event-card.live-active .live-status-tag {
    background: #ef4444;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.timeline-event-card.live-active .live-status-tag::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 50%;
    animation: liveDotPulse 1.2s infinite ease-in-out;
}

@keyframes liveDotPulse {
    0% { transform: scale(0.8); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.6; }
}

/* Up Next highlights */
.timeline-event-card.next-up {
    border-left: 4px solid var(--map-orange);
    background: #fffbeb;
    border-color: #fde68a;
}

.timeline-event-card.next-up::before {
    background: var(--map-orange);
    box-shadow: 0 0 0 2px #fde68a;
}

/* Empty State */
.timeline-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}

/* Facilities markers override */
.marker-facilities {
    border-color: var(--map-blue) !important;
    background: #e2e8f0 !important;
    color: var(--map-blue) !important;
}

/* ============================================
   DESKTOP SPLIT-SCREEN DASHBOARD (>= 992px)
   ============================================ */
@media (min-width: 992px) {

    /* Main outer layout: side-by-side, fixed height */
    .indiafest-app-layout {
        display: flex;
        flex-direction: row;
        gap: 0;
        height: 750px;
        margin-top: 16px;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: var(--map-shadow);
        border: 1px solid var(--map-border);
    }

    /* Wrapper divs now become real columns */
    .indiafest-map-sticky-panel,
    .indiafest-sidebar-panel {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    /* LEFT: Sticky map — 55% width */
    .indiafest-map-sticky-panel {
        flex: 0 0 55%;
        position: relative;
        border-right: 1px solid var(--map-border);
        overflow: hidden;
    }

    /* Map panel fills the entire left column */
    .indiafest-map-sticky-panel .app-panel.panel-map {
        display: flex !important;
        flex-direction: column;
        flex: 1;
        height: 100% !important;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }

    /* RIGHT: Sidebar — remaining 45% */
    .indiafest-sidebar-panel {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        background: #ffffff;
        position: relative;
    }

    /* Tab bar sits at the top of the sidebar, never scrolls */
    .indiafest-sidebar-panel .app-tab-navigation {
        display: flex !important;
        flex-shrink: 0;
        flex-direction: row;
        margin-bottom: 0;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid var(--map-border);
        background: #f8fafc;
        padding: 4px 12px 0;
        gap: 2px;
        height: 48px;
        align-items: flex-end;
    }

    /* Hide the map tab button — map is always visible */
    .indiafest-sidebar-panel .app-tab-navigation .app-tab-btn[data-tab="map"] {
        display: none;
    }

    /* Underline-style tab buttons on desktop */
    .indiafest-sidebar-panel .app-tab-navigation .app-tab-btn {
        flex: none;
        border-radius: 8px 8px 0 0;
        padding: 8px 14px;
        font-size: 12px;
        border-bottom: 2px solid transparent;
        background: transparent;
        color: #64748b;
        box-shadow: none;
    }

    .indiafest-sidebar-panel .app-tab-navigation .app-tab-btn.active {
        background: #ffffff;
        color: var(--map-blue);
        border-bottom: 2px solid var(--map-blue);
        box-shadow: none;
    }

    /* Sidebar content area — fills remaining height, independently scrollable */
    .indiafest-sidebar-panel .app-panel {
        display: none;
        position: absolute;
        top: 48px; /* height of tab bar */
        left: 0;
        right: 0;
        bottom: 0;
        overflow-y: auto;
        border-radius: 0;
        box-shadow: none;
        border: none;
        background: #ffffff;
        height: auto !important;
    }

    .indiafest-sidebar-panel .app-panel.active {
        display: flex !important;
        flex-direction: column;
    }

    /* Accessibility panel resets */
    .indiafest-sidebar-panel .app-panel.panel-accessibility {
        grid-column: unset;
        height: auto;
    }

    /* On desktop sidebar, Schedule tab is default active on load */
    .indiafest-sidebar-panel .app-panel.panel-schedule {
        /* handled by JS */
    }

}

/* --- Directory Section Styles --- */
/* Break out of the container padding to use full viewport width */
.directory-section {
    margin-top: 40px;
    border-top: 1px solid var(--map-border);
    padding-top: 32px;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding-left: 40px;
    padding-right: 40px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .directory-section {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.directory-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--map-blue);
    margin: 0 0 6px;
}

.directory-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 24px;
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.directory-card {
    background: #ffffff;
    border: 1px solid var(--map-border);
    border-radius: 12px;
    padding: 16px;
    transition: var(--map-transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.directory-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.directory-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.directory-booth-badge {
    font-size: 12px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: monospace;
}

/* Category Badge Colors */
.badge-food { background: #fef08a; color: #854d0e; }
.badge-sponsor { background: #f3e8ff; color: #581c87; }
.badge-community { background: #bfdbfe; color: #1e3a8a; }
.badge-bazaar { background: #fbcfe8; color: #831843; }
.badge-activities { background: #c7d2fe; color: #312e81; }
.badge-emergency { background: #fecaca; color: #7f1d1d; }
.badge-facilities { background: #e2e8f0; color: #475569; }

.directory-cat-tag {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 700;
}

.directory-vendor-name {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px;
}

.directory-sponsor-level {
    font-size: 11px;
    font-weight: 700;
    color: #d97706;
    margin-bottom: 8px;
}

.directory-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 16px;
    flex-grow: 1;
}

.btn-locate-directory {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: var(--map-blue);
    font-size: 12px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--map-transition);
    width: 100%;
    text-align: center;
}

.btn-locate-directory:hover {
    background: var(--map-blue);
    color: #ffffff;
    border-color: var(--map-blue);
}

/* --- Floating St. Paul Weather HUD Widget --- */
.weather-hud-widget {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 6px 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
    font-family: inherit;
    transition: var(--map-transition);
}

.weather-hud-widget:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.weather-icon {
    font-size: 20px;
}

.weather-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.weather-temp {
    font-size: 13px;
    font-weight: 800;
    color: var(--map-text);
}

.weather-desc {
    font-size: 10px;
    color: #64748b;
    font-weight: 600;
}

/* --- Floating GPS and Location Sharing Buttons --- */
#map-leaflet-container .share-gps-btn,
.indiafest-map-container .share-gps-btn {
    bottom: 74px !important;
}

/* --- Clipboard Copy Toast Notification --- */
.map-toast-notification {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translate(-50%, 40px);
    background: rgba(15, 23, 42, 0.95);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 280px;
    max-width: 90%;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-toast-notification.show {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}

.toast-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.toast-message {
    font-weight: 700;
    font-size: 13px;
    line-height: 1.3;
}

.toast-share-options {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.toast-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none !important;
    transition: transform 0.2s, opacity 0.2s;
    color: #ffffff !important;
}

.toast-share-btn svg {
    flex-shrink: 0;
}

.toast-share-btn:active {
    transform: scale(0.95);
}

.toast-share-btn.btn-wa {
    background: #22c55e;
}

.toast-share-btn.btn-wa:hover {
    background: #16a34a;
}

.toast-share-btn.btn-sms {
    background: #0ea5e9;
}

.toast-share-btn.btn-sms:hover {
    background: #0284c7;
}

.toast-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    font-weight: 300;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    margin-top: -2px;
    transition: color 0.2s;
}

.toast-close-btn:hover {
    color: #ffffff;
}

/* --- Pulsing Purple Friend GPS Marker --- */
.friend-gps-marker {
    width: 20px;
    height: 20px;
    background: #a855f7;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px #a855f7;
    position: relative;
}

.friend-gps-marker::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.3);
    animation: pulseFriend 1.8s infinite ease-out;
}

@keyframes pulseFriend {
    0% {
        transform: scale(0.6);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.0);
        opacity: 0;
    }
}

.friend-label-tag {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    background: #a855f7;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* --- Dietary Filter Chips Layout --- */
.dietary-filter-wrapper {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1.5px dashed var(--map-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dietary-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dietary-chips {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.dietary-chips::-webkit-scrollbar {
    display: none;
}

.dietary-chip {
    white-space: nowrap;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--map-transition);
}

.dietary-chip:hover {
    background: #f1f5f9;
    color: var(--map-text);
}

.dietary-chip.active {
    background: #ca8a04;
    border-color: #ca8a04;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(202, 138, 4, 0.25);
}

/* --- Dietary Tags & Badges in Directory Cards and Drawer --- */
.directory-dietary-tags {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.dietary-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
}

.badge-v { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.badge-vg { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.badge-gf { background: #fef9c3; color: #a16207; border: 1px solid #fef08a; }
.badge-halal { background: #f0fdfa; color: #0f766e; border: 1px solid #ccfbf1; }

/* --- Stage Performance Actions & Reminders --- */
.event-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.event-actions .btn-locate-booth {
    margin-top: 0;
    flex: 1;
}

.btn-remind-show {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--map-transition);
    flex: 1;
    min-height: 48px;
    text-align: center;
}

.remind-btn-label {
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-remind-show:hover {
    background: #f1f5f9;
    color: var(--map-text);
}

.btn-remind-show.btn-remind-active {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
    font-weight: 800;
}

.btn-remind-show.btn-remind-active:hover {
    background: #dbeafe;
}

/* --- FAQs Accordion Section --- */
.faq-section {
    margin-top: 40px;
    border-top: 1px solid var(--map-border);
    padding-top: 32px;
    padding-bottom: 40px;
}

.faq-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--map-blue);
    margin: 0 0 6px;
}

.faq-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 24px;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    border-bottom: 1px solid var(--map-border) !important;
    overflow: hidden;
    transition: none !important;
}

.faq-item:hover {
    border-color: var(--map-border) !important;
    box-shadow: none !important;
}

.faq-question {
    width: 100%;
    background: none !important;
    border: none !important;
    padding: 16px 0 !important;
    text-align: left;
    font-size: 15px !important;
    font-weight: 800 !important;
    color: var(--map-blue) !important;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--map-transition);
}

.faq-question:hover {
    color: var(--map-orange) !important;
}

.faq-icon-arrow {
    font-size: 10px;
    color: #94a3b8;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0;
    box-sizing: border-box;
}

.faq-item.open .faq-answer {
    max-height: 250px;
    padding: 0 0 20px 0 !important;
}

.faq-answer p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: #475569;
}

/* --- Visual & Glassmorphism Upgrades for Sections --- */
.directory-section {
    margin-top: 40px;
    padding: 32px 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.8) 100%);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.faq-section {
    margin-top: 40px;
    padding: 32px 24px 40px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.directory-title, .faq-title {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--map-blue) 0%, #1e293b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 8px;
}

/* --- Search Results count pill --- */
.search-results-badge {
    position: absolute;
    right: 40px;
    background: var(--map-blue);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 12px;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(61, 85, 97, 0.2);
    animation: badgePop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badgePop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* --- Stage Performance Card Visual Progress Bar --- */
.event-progress-bar-container {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin-top: 8px;
    margin-bottom: 8px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.event-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 4px rgba(16, 185, 129, 0.3);
}

/* Share Booth Location button */
.btn-share-booth {
    background: #0ea5e9;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
    width: 100%;
}

.btn-share-booth:hover {
    background: #0284c7;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.3);
}

/* --- Interactive Food Menu in Details Drawer --- */
.drawer-section-title {
    font-size: 14px;
    font-weight: 700;
    margin-top: 5px;
    margin-bottom: 12px;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.drawer-menu-disclaimer {
    font-size: 10px;
    color: #94a3b8;
    font-style: italic;
    margin-top: 10px;
    margin-bottom: 0;
}

.menu-item-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.menu-item-row:last-child {
    border-bottom: none;
}

.menu-item-info {
    flex: 1;
    padding-right: 12px;
}

.menu-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
}

.menu-item-dietary {
    font-size: 11px;
    margin-right: 2px;
}

.menu-item-desc {
    font-size: 11px;
    color: #64748b;
    margin: 4px 0 0 20px;
    line-height: 1.4;
}

.menu-item-price {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.menu-item-soon {
    font-size: 12px;
    color: #94a3b8;
    font-style: italic;
    text-align: center;
    margin: 10px 0;
}

/* --- Accessibility Panel Styles --- */
.app-panel.panel-accessibility {
    height: 600px;
    background: #ffffff;
    overflow-y: auto;
}

.accessibility-container {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.accessibility-header {
    border-bottom: 2px solid var(--map-border);
    padding-bottom: 16px;
    margin-bottom: 8px;
}

.accessibility-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--map-blue);
    margin: 0 0 6px;
}

.accessibility-header p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.accessibility-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .accessibility-grid {
        grid-template-columns: 1fr;
    }
}

.accessibility-section {
    background: #f8fafc;
    border: 1.5px solid var(--map-border);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accessibility-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.access-icon {
    font-size: 20px;
}

.accessibility-section-title h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--map-blue);
    margin: 0;
}

.accessibility-section p {
    font-size: 12.5px;
    line-height: 1.5;
    color: #475569;
    margin: 0;
}

.accessibility-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.access-locate-btn {
    width: 100%;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    text-align: left;
    transition: var(--map-transition);
}

.access-locate-btn:hover {
    border-color: var(--map-orange);
    color: var(--map-orange);
    background: #fffaf7;
}

.accessibility-footer-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 20px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.accessibility-footer-box h4 {
    font-size: 14px;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0;
}

.accessibility-footer-box p {
    font-size: 12.5px;
    line-height: 1.6;
    color: #1e40af;
    margin: 0;
}

.access-locate-btn.secondary {
    align-self: flex-start;
    background: #1e40af;
    color: #ffffff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
}

.access-locate-btn.secondary:hover {
    background: #1d4ed8;
    color: #ffffff;
}

/* Bottom Sheet Directory Search & Filter Chips Styling */
.sheet-directory-search-wrapper {
    background: #ffffff;
    padding-bottom: 4px;
}

.sheet-filter-chips {
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}
.sheet-filter-chips::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.sheet-filter-chips .filter-chip {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--map-transition);
}

.sheet-filter-chips .filter-chip.active {
    background: var(--map-blue);
    color: #ffffff;
    border-color: var(--map-blue);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}




/* ============================================================
   NEW RESPONSIVE TABS & STACKED SECTION VISUAL REDESIGN
   ============================================================ */

/* 1. Relative Context for Mobile Details Drawer */
.app-panel.panel-map {
    position: relative !important;
}

/* 2. Details Drawer Scrolling & Height Restriction */
.map-details-drawer {
    max-height: 85% !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}
.drawer-body-section {
    padding-bottom: 24px;
}

/* 3. Unified Tab Navigation Bar */
html body .indiafest-tabs-nav {
    display: flex;
    background: #ffffff;
    border-radius: 30px;
    border: 1px solid var(--map-border);
    margin-bottom: 16px;
    padding: 4px;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

html body .tab-nav-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    background: #f1f5f9;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--map-transition);
    outline: none;
    line-height: 1.4;
}

html body .tab-nav-btn:hover {
    background: var(--map-light-bg);
    color: var(--map-blue);
}

html body .tab-nav-btn.active {
    background: var(--map-blue);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(61, 85, 97, 0.25);
}

/* 4. Hide Map Tab on Desktop (Map is always on left) */
@media (min-width: 992px) {
    .tab-nav-btn[data-tab="map"] {
        display: none !important;
    }
}

/* 5. Mobile Layout & Swipe Navigation Settings (max-width: 991px) */
@media (max-width: 991px) {
    .indiafest-tabs-nav {
        gap: 8px;
        padding: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        scrollbar-width: none;
    }
    
    .indiafest-tabs-nav::-webkit-scrollbar {
        display: none;
    }
    
    .tab-nav-btn {
        padding: 10px 14px;
        font-size: 13px;
        flex-direction: column;
        gap: 4px;
        flex: 0 0 auto;
        min-width: 76px;
        box-sizing: border-box;
    }

    .indiafest-app-layout {
        position: relative;
        padding-bottom: 20px !important;
    }

    /* Columns act as full container swap blocks */
    .indiafest-map-sticky-panel,
    .indiafest-sidebar-panel {
        display: none !important;
        width: 100% !important;
    }

    /* Show only the active column */
    .indiafest-map-sticky-panel.active,
    .indiafest-sidebar-panel.active {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Fixed Map Viewport height on Mobile to resolve touch scroll trap */
    .app-panel.panel-map {
        height: 500px !important;
        border-radius: 12px !important;
        overflow: hidden;
    }

    #tab-panel-directory .directory-grid {
        max-height: none !important; /* normal document flow scrolling */
        overflow-y: visible !important;
    }
}

/* 6. Sidebar Panels & Content Headers */
.app-panel {
    display: none;
    flex-direction: column;
    height: 100%;
}

.app-panel.active {
    display: flex !important;
}

/* Desktop absolute positioning fix (remove top 48px gap) */
@media (min-width: 992px) {
    .indiafest-sidebar-panel .app-panel {
        position: absolute;
        top: 0 !important;
        left: 0;
        right: 0;
        bottom: 0;
    }
    
    #tab-panel-directory .directory-grid {
        max-height: 600px; /* scrolling inside sidebar list */
    }
}

.panel-header {
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
}

#tab-panel-directory {
    padding: 4px;
}

#tab-panel-directory .directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    overflow-y: auto;
    padding: 4px;
    -webkit-overflow-scrolling: touch;
}

/* 7. Bottom stacked full-width information sections (Accessibility & FAQs) */
.indiafest-bottom-sections {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0 40px; /* large desktop side margins matching full bleed layout */
    box-sizing: border-box;
    width: 100%;
}

@media (max-width: 991px) {
    .indiafest-bottom-sections {
        padding: 0 16px; /* standard mobile margins */
    }
}

.accessibility-full-section,
.faq-full-section {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    width: 100%;
    box-sizing: border-box;
    margin-top: 40px !important;
    margin-bottom: 40px !important;
}

.accessibility-container,
.faq-container {
    max-width: 100%; /* utilize the complete available space */
    width: 100%;
    margin: 0;
}

.accessibility-header h2,
.faq-title {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: var(--map-blue) !important;
    margin-bottom: 12px !important;
    padding-left: 0 !important;
}

.accessibility-header p,
.faq-subtitle {
    font-size: 15px !important;
    color: #64748b !important;
    margin-bottom: 24px !important;
    padding-left: 0 !important;
}

.accessibility-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.accessibility-section {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 20px 0 !important;
    border-bottom: 1px solid var(--map-border) !important;
}

.accessibility-section:last-child {
    border-bottom: none !important;
}

.accessibility-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.accessibility-section-title h3 {
    margin: 0;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--map-blue) !important;
}

.access-icon {
    font-size: 20px;
}

.accessibility-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.access-locate-btn {
    text-align: left !important;
    width: 100% !important;
    font-size: 12px !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    border: 1px solid var(--map-border) !important;
    color: #475569 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
}

.access-locate-btn:hover {
    background: var(--map-light-bg) !important;
    color: var(--map-blue) !important;
}

.access-locate-btn.secondary {
    background: var(--map-orange) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
}

.accessibility-footer-box {
    margin-top: 24px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 20px;
}

.accessibility-footer-box h4 {
    margin: 0 0 8px;
    color: #166534;
    font-weight: 700;
    font-size: 16px;
}

.accessibility-footer-box p {
    margin: 0;
    color: #166534;
    font-size: 14px;
    line-height: 1.5;
}

/* 8. Accessibility Detail List Styling */
.accessibility-detail-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accessibility-detail-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--map-border);
    border-radius: 10px;
    padding: 12px 16px;
    gap: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.01);
}

.accessibility-detail-list li .list-item-content {
    flex: 1;
}

.accessibility-detail-list li .list-item-content strong {
    display: block;
    font-size: 14px;
    color: var(--map-blue);
    margin-bottom: 2px;
}

.accessibility-detail-list li .list-item-content p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.accessibility-detail-list li .access-locate-btn {
    flex: 0 0 auto;
    width: auto !important;
    min-width: 90px;
    text-align: center !important;
    padding: 8px 14px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
    cursor: pointer;
    box-shadow: none !important;
    transition: var(--map-transition);
}

.accessibility-detail-list li .access-locate-btn:hover {
    background: var(--map-blue) !important;
    color: #ffffff !important;
    border-color: var(--map-blue) !important;
}

.accessibility-detail-list li .access-locate-btn.secondary {
    background: var(--map-orange) !important;
    color: #ffffff !important;
    border-color: var(--map-orange) !important;
}
.accessibility-detail-list li .access-locate-btn.secondary:hover {
    background: #ea580c !important;
    border-color: #ea580c !important;
}

@media (max-width: 576px) {
    .accessibility-detail-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .accessibility-detail-list li .access-locate-btn {
        width: 100% !important;
    }
}

/* --- Premium Full-Screen Detail Overlay --- */
.vendor-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 110px 20px 40px 20px; /* clear desktop sticky header */
    box-sizing: border-box;
    overflow-y: auto;
}

.overlay-container {
    background: #ffffff;
    width: 100%;
    max-width: 1200px; /* utilize the page width fully */
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
    position: relative;
    padding: 32px;
    box-sizing: border-box;
    animation: overlayFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.overlay-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.overlay-close-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: rotate(90deg);
}

.overlay-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 35px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .vendor-detail-overlay {
        padding: 85px 12px 24px 12px; /* clear mobile header */
    }
    .overlay-content-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .overlay-container {
        padding: 24px;
    }
}

.overlay-left-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vendor-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #f8fafc;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    overflow: hidden;
    border: 3px solid #ffffff;
}

.vendor-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vendor-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 28px;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
}

.vendor-header-info {
    text-align: left;
}

.vendor-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}

.booth-badge-large {
    background: var(--map-blue);
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 6px;
    font-family: monospace;
}

.category-badge {
    background: #e2e8f0;
    color: #475569;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 6px;
}

.sponsor-badge {
    background: #fef08a;
    color: #854d0e;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 6px;
}

.vendor-title {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}

.vendor-description-box {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    text-align: left;
}

.navigation-actions-panel {
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
    text-align: left;
}

.navigation-actions-panel h3 {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
}

.overlay-routing-line {
    background: #fff8f1;
    border: 1px solid #ffedd5;
    padding: 8px 12px;
    border-radius: 8px;
    color: #ea580c;
    font-weight: 700;
    font-size: 12.5px;
    margin-bottom: 12px;
}

.actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.action-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none !important;
    color: #334155 !important;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.action-card:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.04);
}

.action-card:active {
    transform: translateY(0);
}

.action-icon {
    font-size: 18px;
}

.action-text {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
}

.share-action-btn {
    width: 100%;
    background: #3b82f6;
    color: #ffffff !important;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(59,130,246,0.25);
}

.share-action-btn:hover {
    background: #2563eb;
    box-shadow: 0 6px 14px rgba(59,130,246,0.35);
}

.overlay-right-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.menu-card-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 20px;
    text-align: left;
    box-sizing: border-box;
}

.panel-section-header {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.panel-section-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.menu-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-item-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e2e8f0;
    gap: 15px;
}

.menu-item-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.menu-item-info {
    flex: 1;
}

.menu-item-name {
    font-weight: 700;
    font-size: 13.5px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.menu-item-dietary {
    font-size: 11px;
}

.menu-item-desc {
    margin: 4px 0 0 0;
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.4;
}

.menu-item-price {
    background: #e2e8f0;
    color: #334155;
    font-weight: 800;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.menu-disclaimer {
    margin: 15px 0 0 0;
    font-size: 11px;
    font-style: italic;
    color: #94a3b8;
}

.menu-item-soon {
    color: #94a3b8;
    font-style: italic;
    font-size: 13px;
    margin: 10px 0;
}

/* --- Stacking Context Overrides to prevent Leaflet overlapping site menu/dropdowns --- */
header,
.site-header,
nav.navbar,
.navbar-collapse,
.dropdown-menu,
.sub-menu,
.account-dropdown,
.navbar-nav {
    z-index: 9999 !important; /* Force theme menus to render above Leaflet layers (z-index 400-1000) */
}

/* Specific overrides for sticky and active menus */
.top-bar-cc {
    position: relative;
    z-index: 10000 !important;
}

/* Ensure detail overlay is still topmost */
.vendor-detail-overlay {
    z-index: 99999999 !important;
}

/* Mobile View specific header and menu styling */
@media (max-width: 991px) {
    /* 1. Make the site header non-sticky so it scrolls away naturally, freeing up viewport height */
    .site-header-wrap {
        position: relative !important;
        top: auto !important;
        z-index: 9999 !important;
    }

    /* 2. Clear intermediate relative position roots so absolute child menu can reference .site-header-wrap */
    header,
    .site-header,
    nav.navbar {
        position: static !important;
    }

    /* 3. Position the expanded dropdown menu absolutely so it starts directly below the header logo bar */
    #navbarScroll.navbar-collapse.show {
        position: absolute !important;
        top: 100% !important; /* Starts exactly at the bottom of the header wrap */
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-height: calc(100vh - 120px) !important;
        margin-top: 0 !important;
        border-radius: 0 0 12px 12px !important;
        border-top: 3px solid #E3A14C !important;
        box-shadow: 0 12px 32px rgba(0,0,0,0.15) !important;
        z-index: 99999 !important;
        background: #ffffff !important;
        overflow-y: auto !important;
        padding: 10px 20px !important;
        box-sizing: border-box !important;
    }

    /* 4. Make sure the dropdown submenus (like More) also render cleanly */
    #navbarScroll .nav-submenu,
    #navbarScroll .dropdown-menu {
        position: static !important;
        z-index: 99999 !important;
        background: #f8f9fa !important;
        box-shadow: none !important;
        border-radius: 6px !important;
        padding: 8px 15px !important;
    }
}
