﻿/* ============================================================
   CYMPLY SUPER-APP MOBILE CSS (v5.4 - Scroll Hint & Boundaries)
   Premium Mobile-First Experience
   ============================================================ */

:root {
    --mobile-primary: #00B4DB;
    --mobile-primary-gradient: linear-gradient(135deg, #00B4DB 0%, #0083B0 100%);
    --mobile-bg: #f8fafc;
    --mobile-card-bg: #ffffff;
    --mobile-text-main: #1e293b;
    --mobile-text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-premium: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --radius-app: 20px;
}

@media (max-width: 768px) {

    /* HIDE LEGACY CONTENT */
    .header,
    .hero,
    .carousel-section,
    .business-results,
    .category-showcase,
    .city-selector,
    .ambient-bg,
    .results-container,
    .filters-sidebar,
    .business-grid,
    #featured,
    .stats-section,
    .contact-section,
    .footer {
        display: none !important;
    }

    /* v870: GLOBAL TAP HIGHLIGHT REMOVAL */
    * {
        -webkit-tap-highlight-color: transparent !important;
    }

    html,
    body {
        overflow-x: clip;
        /* Modern way to prevent horizontal scroll without breaking sticky */
        width: 100%;
        margin: 0;
        padding: 0;
        position: relative;
    }

    body {
        background: linear-gradient(-45deg, #1e1b4b, #312e81, #4338ca, #3730a3, #1e1b4b) !important;
        background-size: 400% 400%;
        animation: gradientShift 15s ease infinite;
        color: #fff;
        padding-bottom: 100px;
        -webkit-font-smoothing: antialiased;
    }

    /* v834: Ensure Cookie Popup is Visible */
    /* v837: Force Cookie Popup Fixed */
    /* v839: Correct ID for Cookie Popup */
    #cookieBanner,
    .cookie-banner {
        position: fixed !important;
        z-index: 99999 !important;
        bottom: 90px !important;
        /* Sweet spot */
        left: 5px !important;
        right: 5px !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        margin: 0 !important;
        /* transform: translateZ(0); Removed to fix click issues */
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1) !important;
        pointer-events: auto !important;
    }



    @keyframes gradientShift {
        0% {
            background-position: 0% 50%;
        }

        50% {
            background-position: 100% 50%;
        }

        100% {
            background-position: 0% 50%;
        }
    }

    /* APP CONTAINER */
    .super-app-mobile {
        display: block !important;
        min-height: 100vh;
        padding-top: 135px;
        /* Shrunk for tighter fit */
        /* Account for fixed header height */
    }

    /* v899: More Visible Row Boundary */
    .children-container {
        display: none !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        flex-wrap: nowrap !important;
        padding: 15px 20px 22px 20px !important;
        -webkit-overflow-scrolling: touch;
        gap: 15px !important;
        scrollbar-width: none;
        margin-top: 2px !important;
        scroll-snap-type: x mandatory;
        /* v899: Darker shade for better definition */
        background: rgba(0, 0, 0, 0.22) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        position: relative;
    }

    /* v899: Scroll Hint with Arrow & Auto-Hide */
    .children-container::after {
        content: 'SCROLL FOR MORE \A ➔';
        white-space: pre;
        position: sticky;
        right: 15px;
        bottom: 5px;
        font-size: 11px;
        line-height: 1.3;
        font-weight: 900;
        color: #fff;
        text-transform: uppercase;
        letter-spacing: 1.2px;
        display: flex;
        flex-direction: column;
        align-items: center;
        opacity: 0;
        pointer-events: none;
        background: var(--mobile-primary);
        padding: 6px 12px;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 180, 219, 0.4);
        /* Animation: Show, then hide after 3 seconds */
        animation: hintReveal 3s forwards;
        z-index: 10;
        text-align: center;
    }

    @keyframes hintReveal {
        0% {
            opacity: 0;
            transform: translateY(10px);
        }

        15% {
            opacity: 1;
            transform: translateY(0);
        }

        80% {
            opacity: 1;
            transform: translateY(0);
        }

        100% {
            opacity: 0;
            transform: translateY(-5px);
            visibility: hidden;
        }
    }

    .children-container::-webkit-scrollbar {
        display: none;
    }

    .children-container.expanded {
        display: flex !important;
    }

    .child-category {
        scroll-snap-align: start;
        flex: 0 0 auto !important;
        min-width: fit-content !important;
        background: transparent !important;
        /* v898: Removed background */
        border: none !important;
        /* v898: Cleaner look */
        box-shadow: none !important;
        padding: 5px 10px !important;
        transition: transform 0.2s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
    }

    .child-category:active {
        transform: scale(0.92);
        opacity: 0.7;
    }

    .child-category h4 {
        color: white !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        margin: 0 !important;
        opacity: 0.9;
    }

    .child-category i {
        width: 48px !important;
        height: 48px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        color: var(--mobile-primary) !important;
        border-radius: 16px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px !important;
        transition: all 0.3s ease;
    }

    .child-category:active i {
        background: var(--mobile-primary) !important;
        color: white !important;
        border-color: transparent !important;
    }




    /* HEADER & SEARCH */
    .mobile-app-header {
        position: fixed !important;
        top: 0 !important;
        left: 0;
        right: 0;
        z-index: 2000;
        background: rgba(15, 23, 42, 0.9);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        padding: 10px 20px 8px;
        /* Tighter padding */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform, padding, background;
    }

    /* v859: Minimalist Shrunk State */
    .mobile-app-header.header-shrunk {
        padding: 8px 20px 10px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    }

    .mobile-header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 1;
        max-height: 50px;
        overflow: hidden;
    }

    .mobile-app-header.header-shrunk .mobile-header-top {
        max-height: 0;
        margin-bottom: 4px;
        /* Small gap for search box */
        opacity: 0;
        pointer-events: none;
        transform: translateY(-5px);
    }

    .mobile-logo {
        /* v827: Restricted Width */
        max-width: 120px;
        height: auto;
        display: flex;
        align-items: center;
    }

    .mobile-logo img {
        height: 32px;
        /* Fixed height for logo */
        width: auto;
        object-fit: contain;
        border-radius: 8px;
        /* v828: Rounded Corners */
    }

    /* v828: Clear Search Button */
    /* v828: Clear Search Button (Duplicate Removed) */

    /* ============================================================
       SCRATCH-BUILT SEARCH UI (v852)
       ============================================================ */
    .mob-search-container {
        position: relative;
        width: 100%;
        margin-top: 10px;
        /* Reduced gap */
        display: flex;
        align-items: center;
        background: #f8fafc;
        border-radius: 18px;
        /* More rounded */
        border: 2px solid transparent;
        /* Ready for glow */
        height: 54px;
        /* Slightly taller for premium feel */
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        /* Soft base shadow */
    }

    .mob-search-container:focus-within {
        background: white;
        border-color: var(--mobile-primary);
        box-shadow: 0 8px 25px rgba(0, 180, 219, 0.15);
        transform: translateY(-1px);
    }

    .mob-search-icon {
        padding: 0 12px 0 18px;
        color: #94a3b8;
        font-size: 18px !important;
        transition: color 0.3s ease;
    }

    .mob-search-container:focus-within .mob-search-icon {
        color: var(--mobile-primary);
    }

    .mob-scratch-input {
        flex: 1 !important;
        border: none !important;
        background: transparent !important;
        height: 100% !important;
        font-size: 16px !important;
        color: #0f172a !important;
        outline: none !important;
        padding: 0 50px 0 0 !important;
        -webkit-appearance: none !important;
        appearance: none !important;
        font-weight: 500 !important;
    }

    .mob-scratch-input::placeholder {
        color: #94a3b8;
        font-weight: 400;
    }

    /* Hide standard X again */
    .mob-scratch-input::-webkit-search-cancel-button,
    .mob-scratch-input::-webkit-search-results-button,
    .mob-scratch-input::-webkit-search-decoration,
    .mob-scratch-input::-webkit-search-results-decoration {
        display: none !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }

    .mob-scratch-clear {
        position: absolute;
        right: 8px;
        width: 38px;
        height: 38px;
        display: none;
        align-items: center;
        justify-content: center;
        background: #e2e8f0;
        color: #475569;
        border-radius: 50%;
        cursor: pointer;
        z-index: 10;
    }

    .mob-scratch-clear i {
        font-size: 14px;
    }

    /* Scratch Autocomplete */
    .mob-scratch-ac {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        z-index: 2000;
        border-radius: 0 0 18px 18px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        border: 2px solid var(--mobile-primary);
        border-top: 1px solid #f1f5f9;
        overflow-y: auto;
        max-height: 320px;
        display: none;
        -webkit-overflow-scrolling: touch;
    }

    @keyframes acFadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mob-ac-section-header {
        padding: 12px 18px 6px;
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        color: #94a3b8;
        letter-spacing: 0.05em;
    }

    .mob-ac-item {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 12px 18px;
        border-bottom: 1px solid #f1f5f9;
        cursor: pointer;
        transition: background 0.2s;
    }

    .mob-ac-item:active {
        background: #f8fafc;
    }

    .mob-ac-item-icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
        background: #f1f5f9;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--mobile-primary);
        font-size: 14px;
    }

    .mob-ac-img {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        object-fit: cover;
    }

    .mob-ac-info {
        flex: 1;
    }

    .mob-ac-name {
        font-weight: 600;
        font-size: 15px;
        color: #1e293b;
    }

    .mob-ac-cat {
        font-size: 12px;
        color: #64748b;
    }

    .mob-ac-badge {
        font-size: 10px;
        padding: 2px 8px;
        background: #e0f2fe;
        color: #0369a1;
        border-radius: 10px;
        font-weight: 700;
    }

    /* END SCRATCH SEARCH */

    /* v870: VISUAL CATEGORIES */
    .main-categories-scroll {
        position: relative;
        z-index: 1000;
        background: transparent;
        padding: 5px 0 5px;
        /* Shrunk padding */
        margin-top: -10px;
        /* Pull up closer */
    }


    .category-pills-container {
        display: flex;
        overflow-x: auto;
        padding: 0 1.25rem;
        gap: 16px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        align-items: center;
    }

    .category-pills-container::-webkit-scrollbar {
        display: none;
    }

    .visual-pill {
        flex: 0 0 70px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        outline: none;
    }


    .pill-image-wrapper {
        width: 65px;
        height: 65px;
        border-radius: 50%;
        padding: 3px;
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
        overflow: hidden;
    }

    .visual-pill.active .pill-image-wrapper {
        background: white;
        border-color: var(--mobile-primary);
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(0, 180, 219, 0.4);
    }

    .pill-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

    .pill-label {
        font-size: 11px;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.85);
        text-align: center;
        transition: all 0.2s;
        white-space: nowrap;
    }

    .visual-pill.active .pill-label {
        color: white;
        font-weight: 800;
    }

    .sub-categories-wrapper {
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        /* v873: More visible â€” vivid accent background */
        background: linear-gradient(180deg,
                rgba(99, 102, 241, 0.25) 0%,
                rgba(15, 23, 42, 0.98) 100%) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        margin: 0;
        padding: 0;
        opacity: 0;
        border-top: 2px solid rgba(99, 102, 241, 0.6);
        /* vivid top accent */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        position: relative;
    }

    .sub-categories-wrapper.active {
        height: auto;
        min-height: 100px;
        padding: 10px 0 12px;
        margin-bottom: 6px;
        opacity: 1;
        overflow: visible !important;
        border-bottom-width: 1px;
        max-height: 200px;
    }

    /* v875: sub-cats-label is now a div above the scroll, not inside flex */

    /* v873: Bigger sub-pills for visibility */
    .sub-pill {
        flex: 0 0 82px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        transition: all 0.3s ease;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .sub-pill-image-wrapper {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        padding: 3px;
        background: rgba(255, 255, 255, 0.12);
        border: 2px solid rgba(255, 255, 255, 0.2);
        overflow: hidden;
        transition: all 0.25s;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .sub-pill.active .sub-pill-image-wrapper {
        background: white;
        border-color: #6366f1;
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.6), 0 4px 12px rgba(0, 0, 0, 0.2);
        transform: scale(1.08);
    }

    .sub-pill-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

    .sub-pill-label {
        font-size: 11px;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.95) !important;
        text-align: center;
        width: 100%;
        white-space: normal;
        line-height: 1.2;
        display: block;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }

    .sub-pill.active .sub-pill-label {
        color: #a5b4fc !important;
        /* light indigo when active */
        font-weight: 800;
    }


    .horizontal-scroll {
        display: flex;
        overflow-x: auto;
        padding: 0 1.25rem;
        gap: 12px;
        scrollbar-width: none;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        /* Force horizontal Layout */
    }

    .horizontal-scroll::-webkit-scrollbar {
        display: none;
    }

    .category-pill {
        flex: 0 0 auto;
        padding: 8px 18px;
        border-radius: 20px;
        background: #f1f5f9;
        font-weight: 600;
        font-size: 14px;
        white-space: nowrap;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: all 0.2s;
    }

    .category-pill.active {
        background: var(--mobile-primary-gradient);
        color: white;
        box-shadow: 0 4px 10px rgba(0, 180, 219, 0.3);
    }


    /* CLEANUP: Removing unused components */


    .mobile-load-more {
        margin: 20px;
        padding: 16px;
        background: var(--mobile-primary-gradient);
        border: none;
        border-radius: 12px;
        color: white;
        font-weight: 700;
        width: calc(100% - 40px);
    }




    /* SECTION STYLES */
    .mobile-section {
        margin-top: 0;
    }

    .mobile-section-header {
        padding: 0 1.25rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 6px;
    }

    .mobile-section-header h2 {
        font-size: 1.25rem;
        font-weight: 800;
        color: #fff;
        /* v828: Bright White for contrast */
        margin: 0;
        letter-spacing: -0.3px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        /* v828: Shadow for readability */
        padding-left: 0;
        /* Align with content */
    }

    .see-all {
        font-size: 13px;
        font-weight: 700;
        color: var(--mobile-primary);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* CARDS */
    .featured-card {
        flex: 0 0 300px;
        background: white;
        border-radius: 22px;
        box-shadow: var(--shadow-premium);
        overflow: hidden;
        position: relative;
        transition: transform 0.2s;
    }

    .standard-card {
        flex: 0 0 180px;
        background: white;
        border-radius: 18px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
        overflow: hidden;
        position: relative;
    }

    .featured-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }

    .standard-card img {
        width: 100%;
        height: 100px;
        object-fit: cover;
    }

    .featured-badge {
        position: absolute;
        top: 8px;
        left: 8px;
        background: linear-gradient(135deg, #f59e0b, #d97706);
        /* Gold Premium */
        color: white;
        padding: 3px 8px;
        border-radius: 6px;
        font-size: 10px;
        font-weight: 800;
        text-transform: uppercase;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 2;
    }

    /* v828: Open/Closed Status Badge (Bottom Left) */
    .status-badge {
        position: absolute;
        bottom: 8px;
        left: 8px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(4px);
        padding: 3px 8px;
        border-radius: 12px;
        font-size: 10px;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 4px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        z-index: 2;
        color: #334155;
    }

    .status-badge .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
    }

    .status-badge .dot.open {
        background: #10b981;
    }

    .status-badge .dot.closed {
        background: #ef4444;
    }

    /* v980: TIERS & STATUS BADGES (Top Left Image Overlay) */
    .tier-badge {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        padding: 3px 8px !important;
        border-radius: 6px !important;
        font-size: 10px !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
    }

    .tier-premium {
        background: #1e293b !important;
        color: #fbbf24 !important;
        border: 1px solid rgba(251, 191, 36, 0.4) !important;
    }

    .tier-basic {
        background: #eff6ff !important;
        color: #1d4ed8 !important;
        border: 1px solid #dbeafe !important;
    }

    .tier-free {
        background: #f0fdf4 !important;
        color: #15803d !important;
        border: 1px solid #dcfce7 !important;
    }

    .status-badge-inline {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(4px) !important;
        padding: 3px 8px !important;
        border-radius: 6px !important;
        font-size: 10px !important;
        font-weight: 800 !important;
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
        color: #1e293b !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
        text-transform: uppercase !important;
    }

    .status-badge-inline .dot {
        width: 7px !important;
        height: 7px !important;
        border-radius: 50% !important;
    }

    .status-badge-inline .dot.open {
        background: #10b981 !important;
        box-shadow: 0 0 6px #10b981 !important;
    }

    .status-badge-inline .dot.closed {
        background: #ef4444 !important;
        box-shadow: 0 0 6px #ef4444 !important;
    }

    .distance-tag {
        position: absolute;
        bottom: 8px;
        right: 8px;
        background: rgba(255, 255, 255, 0.9);
        padding: 4px 8px;
        border-radius: 10px;
        font-size: 11px;
        font-weight: 700;
        color: var(--mobile-primary);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .card-info {
        padding: 12px;
    }

    .card-info h3 {
        font-size: 15px;
        font-weight: 700;
        margin: 0 0 6px 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .card-meta {
        display: flex;
        justify-content: space-between;
        font-size: 12px;
        color: var(--mobile-text-muted);
        font-weight: 600;
    }

    .card-rating {
        color: #f59e0b;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    /* BOTTOM NAV */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 75px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        display: flex;
        justify-content: space-around;
        align-items: center;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        z-index: 2000;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: #94a3b8;
        font-size: 10px;
        font-weight: 700;
        text-decoration: none !important;
        flex: 1;
    }

    .nav-item i {
        font-size: 22px;
        transition: all 0.3s;
    }

    .nav-item.active {
        color: var(--mobile-primary);
    }

    .nav-item.active i {
        transform: translateY(-3px) scale(1.1);
    }

    /* STATUS DOTS */
    .status-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        display: inline-block;
        margin-right: 4px;
    }

    .status-dot.open {
        background: #10b981;
    }

    .status-dot.closed {
        background: #ef4444;
    }

    /* CATEGORY OVERLAY */
    #categoryExploreOverlay {
        position: fixed;
        inset: 0;
        background: var(--mobile-bg);
        /* Use light bg for overlay */
        z-index: 3000;
        display: none;
        overflow-y: auto;
        padding: 20px;
        color: var(--mobile-text-main);
    }

    /* v823: Mobile Sidebar Menu */
    .mobile-sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 4000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        backdrop-filter: blur(5px);
    }

    .mobile-sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-sidebar {
        position: fixed;
        top: 0;
        right: -280px;
        bottom: 0;
        width: 280px;
        background: var(--mobile-card-bg);
        z-index: 4001;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .mobile-sidebar.active {
        transform: translateX(-280px);
    }

    .sidebar-btn {
        padding: 12px;
        border-radius: 12px;
        background: #f1f5f9;
        color: var(--mobile-text-main);
        text-decoration: none;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 10px;
    }

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

    /* v823: Mobile City Selector */
    .mobile-city-trigger {
        font-size: 13px;
        font-weight: 600;
        color: white;
        background: rgba(255, 255, 255, 0.2);
        padding: 6px 12px;
        border-radius: 20px;
        display: flex;
        align-items: center;
        gap: 6px;
        backdrop-filter: blur(10px);
    }

    /* v823: Quick Filters */
    .quick-filters-scroll {
        padding: 0 1.25rem 10px;
        display: flex;
        gap: 10px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .quick-filter-pill {
        background: #ffffff !important;
        color: #1e293b !important;
        padding: 8px 18px;
        border-radius: 24px;
        font-size: 13px;
        white-space: nowrap;
        border: none;
        font-weight: 700;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        text-shadow: none;
        flex: 0 0 auto;
    }

    .quick-filter-pill.active {
        background: white;
        color: var(--mobile-primary);
        text-shadow: none;
    }

    /* v825: Horizontal Feed Layout (Default) */
    .horizontal-feed {
        display: flex;
        overflow-x: auto;
        padding: 0 1.25rem 10px;
        margin: 0 -1.25rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        gap: 12px;
        scrollbar-width: none;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    .horizontal-feed::-webkit-scrollbar {
        display: none;
    }

    /* v833: Results Count Flex */
    .mobile-results-count {
        padding: 0 1.25rem;
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 8px;
        font-weight: 600;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* v833: See More Card */
    /* v834: See More Card */
    .see-more-card {
        flex: 0 0 180px;
        /* Match standard card width */
        height: 120px;
        /* Match standard card image height roughly but smaller */
        background: #f1f5f9;
        border-radius: 18px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--mobile-primary);
        font-weight: 700;
        font-size: 13px;
        box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
        cursor: pointer;
        text-align: center;
        padding: 10px;
    }


    /* v875: Featured header should match results title alignment exactly */
    .mobile-carousel-section .mobile-section-header {
        padding: 0;
    }

    /* v826: Auto-Rotating Carousel */
    .mobile-carousel-section {
        padding: 4px 1.25rem 10px;
        position: relative;
        overflow: visible;
    }

    .carousel-track {
        display: flex;
        gap: 15px;
        overflow-x: auto;
        /* v831: Full Width Scroll Fix */
        margin: 0 -1.25rem;
        padding: 0 1.25rem;
        scrollbar-width: none;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    .carousel-card {
        flex: 0 0 180px;
        /* v829: Dimensions exactly match standard-card */
        width: 180px;
        background: white;
        border-radius: 18px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
        overflow: hidden;
        position: relative;
        /* Height auto to match content */
    }

    .carousel-card img {
        width: 100%;
        height: 105px;
        object-fit: cover;
    }

    .carousel-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
        padding: 40px 15px 15px;
        color: white;
    }

    /* v826: Sort & Filter Bar */
    /* v829: Sort Bar Redesign */
    /* v831: Sort Bar - Segmented Control Style */
    .mobile-sort-bar {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 4px 1.25rem 8px;
        background: transparent;
        position: relative;
        z-index: 50;
    }

    .sort-segmented-control {
        display: flex;
        background: rgba(255, 255, 255, 0.15);
        /* More transparent but glowing */
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-radius: 30px;
        padding: 5px;
        flex: 1;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .segment-option {
        flex: 1;
        text-align: center;
        padding: 10px 0;
        font-size: 13px;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.7);
        /* Muted white when inactive */
        border-radius: 26px;
        transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        cursor: pointer;
    }

    .segment-option.active {
        background: white;
        color: var(--mobile-primary);
        /* Blue text */
        box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
        /* colored glow */
        transform: scale(1.04);
        font-weight: 900;
        letter-spacing: -0.2px;
    }

    /* v870: Rating Link Styles */
    .card-rating a {
        transition: opacity 0.2s;
    }

    .card-rating a:active {
        opacity: 0.6;
    }

    .review-count {
        font-weight: 500;
    }

    .sort-more-btn {
        flex: 0 0 42px;
        height: 42px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        color: var(--mobile-text-main);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        font-size: 16px;
        position: relative;
        border: 1px solid rgba(255, 255, 255, 0.2);
        /* Fixed Clean */
    }

    .sort-chip {
        background: rgba(255, 255, 255, 0.9);
        color: #334155;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 600;
        white-space: nowrap;
        display: flex;
        align-items: center;
        gap: 6px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.5);
    }

    .sort-chip.active {
        background: var(--mobile-primary);
        color: white;
        border-color: transparent;
    }

    .sort-chip i {
        font-size: 12px;
    }

    /* v827: Custom Dropdown for Sorting */
    .mobile-sort-dropdown {
        position: absolute;
        top: 100%;
        right: 0;
        background: white;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        min-width: 180px;
        z-index: 2500;
        display: none;
        flex-direction: column;
        padding: 5px;
    }

    .mobile-sort-dropdown.show {
        display: flex;
    }

    .sort-option {
        padding: 10px 15px;
        font-size: 13px;
        font-weight: 600;
        color: #334155;
        border-radius: 8px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .sort-option:active {
        background: #f1f5f9;
        color: var(--mobile-primary);
    }

    /* v873: Shimmer animation for skeleton loading */
    @keyframes shimmer {
        0% {
            background-position: -200% 0;
        }

        100% {
            background-position: 200% 0;
        }
    }

    /* v897: Results Area Seperation */
    .mob-results-area {
        background: rgba(15, 23, 42, 0.4);
        backdrop-filter: blur(10px);
        margin: 15px 0 0;
        padding: 5px 0 25px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        min-height: 300px;
    }

    /* v897: View All Pill Improvement */
    .mob-view-all-pill {
        flex: 0 0 110px;
        min-height: 185px;
        border-radius: 24px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 15px;
        cursor: pointer;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: linear-gradient(135deg, rgba(0, 180, 219, 0.15), rgba(0, 131, 176, 0.15));
        transition: all 0.3s ease;
    }

    .mob-view-all-pill:active {
        transform: scale(0.95);
        background: rgba(0, 180, 219, 0.25);
    }

    .mob-view-all-pill .icon-circle {
        width: 44px;
        height: 44px;
        background: var(--mobile-primary);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        box-shadow: 0 4px 15px rgba(0, 180, 219, 0.4);
    }

    .mob-view-all-pill span {
        font-size: 13px;
        font-weight: 800;
        color: #fff;
        text-align: center;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        line-height: 1.3;
    }

    .horizontal-feed {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        padding: 5px 1.25rem 20px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        /* Visual hint: fade out on the right */
        mask-image: linear-gradient(to right, black 92%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, black 92%, transparent 100%);
    }
}