:root {
    /* Theme Variables - Light Mode (Primary) */
    --mobile-bg: #FFFFFF;
    --mobile-card-bg: rgba(255, 255, 255, 0.95);
    --mobile-glass: rgba(255, 255, 255, 0.5);
    --mobile-border: rgba(0, 0, 0, 0.08);
    --mobile-primary: #ff5e00;
    --mobile-active-tab: linear-gradient(135deg, #FFD700 0%, #ff5e00 100%);
    --mobile-explore-btn: linear-gradient(135deg, #FFD700 0%, #ff5e00 100%);
    
    /* Text Colors */
    --text-white: #1D1D1F;
    --text-muted: #86868B;
    --text-on-light: #1D1D1F;
    
    /* Input & Modal */
    --modal-bg: #FFFFFF;
    --modal-inner-bg: rgba(0, 0, 0, 0.03);
    --input-bg: #F2F2F7;
    --input-border: rgba(0, 0, 0, 0.1);
    --input-text: #000000;
    
    /* Utility */
    --gold-glow-warm: var(--category-accent-1, rgba(255, 94, 0, 0.2));
    --anima-speed: 4.5s;
    --category-radius: 18px;
    
    /* Category Accent Gradients */
    --ctg-event: linear-gradient(135deg, #3bcfd4, #fc9305, #f20094);
    --ctg-shopping: linear-gradient(135deg, #ede342, #ff51eb);
    --ctg-learning: linear-gradient(135deg, #ffce06, #6c960d);
    --ctg-service: linear-gradient(135deg, #00C6FF, #0072FF);
    --ctg-realestate: linear-gradient(135deg, #F093FB, #F5576C);
    --ctg-restaurant: linear-gradient(135deg, #2a8d08, #f2e713, #f71e06);
    --ctg-grocery: linear-gradient(135deg, #00F260, #0575E6);
    --ctg-temple: linear-gradient(135deg, #e62314, #f19e18);
    --ctg-organization: linear-gradient(135deg, #58efec, #e85c90, #fcc9ba);
}

body.dark-mode {
    /* Premium Dark Mode Variables */
    --mobile-bg: #111113;
    --mobile-card-bg: rgba(28, 28, 30, 0.98);
    --mobile-glass: rgba(0, 0, 0, 0.6);
    --mobile-border: rgba(255, 255, 255, 0.1);
    
    /* Text Colors */
    --text-white: #F5F5F7;
    --text-muted: #8E8E93;
    --text-on-light: #F5F5F7;
    
    /* Input & Modal */
    --modal-bg: #1C1C1E;
    --modal-inner-bg: rgba(255, 255, 255, 0.03);
    --input-bg: #2C2C2E;
    --input-border: rgba(255, 255, 255, 0.15);
    --input-text: #FFFFFF;
    
    /* Premium Touches */
    --card-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    --accent-glow: rgba(255, 94, 0, 0.1);
}

body.light-mode .glass-sub-inner {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

body.light-mode .nav-tab {
    color: #1d1d1f;
}

body.light-mode .glass-nav-inner {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

body.light-mode .nav-tab i {
    color: #48484A;
}

body.dark-mode .listing-card {
    background: linear-gradient(145deg, #1C1C1E, #111113) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: var(--card-shadow) !important;
}

body.dark-mode .listing-card:hover {
    border-color: rgba(255, 94, 0, 0.3) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.9), 0 0 20px var(--accent-glow) !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--mobile-bg);
    color: var(--text-white);
    line-height: 1.47;
    overflow-x: hidden;
}

/* Header */
.glass-sub-nav {
    position: relative;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: center;
    padding: 0 12px;
    margin-top: 2rem;
    pointer-events: none;
}

.glass-sub-inner {
    display: flex;
    align-items: center;
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px; /* Proportionally increased */
    padding: 14px 10px; /* Increased by ~15% */
    pointer-events: auto;
    overflow: visible;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    max-width: 100%;
}

.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.2rem;
    background: rgba(0, 0, 0, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 1000;
    transition: background 0.3s;
}

body.light-mode .mobile-header {
    background: #FFFFFF;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.logo {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 800;
    font-size: 1.85rem;
    letter-spacing: -1.2px;
}

.logo-chicago { color: var(--text-white); }
.logo-desi { 
    background: linear-gradient(135deg, #FF6E00 0%, #FF0000 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-left {
    position: absolute;
    left: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

#menuBtn {
    position: relative;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.3rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.icon-btn:hover {
    opacity: 0.7;
}

body.light-mode .icon-btn,
body.light-mode .icon-btn i {
    color: #1D1D1F !important;
}

body.light-mode .nav-icon-btn {
    color: #1D1D1F;
}


.round-btn {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-right: 10px;
    color: var(--text-white);
    transition: background 0.2s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.round-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.round-btn:active {
    transform: scale(1.25);
}

#themeToggle i {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.light-mode #themeToggle {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1D1D1F;
}

body.light-mode #themeToggle i {
    transform: rotate(360deg) scale(1);
    color: #1D1D1F;
}


body.dark-mode #themeToggle i {
    transform: rotate(0deg) scale(1);
}

.header-right {
    position: absolute;
    right: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-search-trigger {
    display: none;
    z-index: 1005;
    background: none;
    border: none;
    color: var(--text-white);
    padding: 8px;
}


/* Centered Search System */
.header-search-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 400px;
    z-index: 10;
    pointer-events: none;
    display: flex;
    justify-content: center;
}

/* Global Search Search Bar */
.header-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    height: 38px;
    padding: 0 16px 0 40px;
    width: 100%;
    max-width: 320px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.header-search-wrapper:focus-within {
    width: 320px;
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--mobile-primary);
    box-shadow: 0 0 20px rgba(255, 94, 0, 0.15);
}

.search-icon {
    position: absolute;
    left: 14px;
    font-size: 0.9rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.3s;
}

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

.header-search-input {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 0.9rem;
    width: 100%;
    outline: none;
    padding: 0;
}

.header-search-input::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

body.light-mode .header-search-wrapper {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .header-search-input {
    color: #1D1D1F;
}

/* Consolidated into main media block above */

.nav-icon-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    font-weight: 300 !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon-btn:hover {
    color: var(--text-white);
    transform: translateY(-2px);
}

/* Premium Form Styling */
.premium-form .form-group {
    margin-bottom: 30px;
}


.premium-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
    line-height: 1.2;
}


.premium-form .input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.premium-form .input-with-icon i {
    position: absolute;
    left: 1.25rem;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    transition: color 0.3s ease;
}

.premium-form .input-with-icon input,
.premium-form .input-with-icon select,
.premium-form .input-with-icon textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px 14px 3.2rem;
    color: white;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-form .input-with-icon textarea {
    padding-top: 16px;
    resize: none;
}

.premium-form .input-with-icon input:focus,
.premium-form .input-with-icon select:focus,
.premium-form .input-with-icon textarea:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.premium-form .input-with-icon input:focus + i,
.premium-form .input-with-icon select:focus + i,
.premium-form .input-with-icon textarea:focus + i {
    color: white;
}

.premium-submit-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.premium-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1);
}

.premium-submit-btn:active {
    transform: translateY(0);
}

.header-divider {
    width: 1.5px;
    height: 18px;
    margin: 0 4px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}


.header-location-wrapper {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 40px;
    padding: 0 10px 0 14px;
    height: 38px;
    display: flex;
    align-items: center;
    min-width: 140px;
    max-width: 220px;
    position: relative;
    transition: all 0.3s ease;
}

.header-location-wrapper:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.location-icon {
    font-size: 0.85rem;
    color: var(--mobile-primary);
    margin-right: -8px;
    z-index: 2;
}

.location-select {
    background: none !important;
    border: none !important;
    color: var(--text-white);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0 25px 0 14px !important;
    width: 100%;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none !important;
}

body.light-mode .location-select {
    color: #1D1D1F;
}

/* Safari / General Select Normalization */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 35px 10px 15px;
    color: var(--text-white);
    font-size: 0.9rem;
    cursor: pointer;
    background-position: right 12px center;
    transition: all 0.3s ease;
}

option {
    font-family: inherit !important;
    background: #1c1c1e;
    color: var(--text-white);
}

body.light-mode option {
    background: var(--modal-bg);
    color: #333;
}

select:focus {
    border-color: #ff5e00;
    box-shadow: 0 0 0 2px rgba(255, 94, 0, 0.2);
    outline: none;
}

/* Pagination Controls Styling */
.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 50px 0;
    padding-bottom: 40px;
}

.pag-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pag-btn:hover:not(:disabled) {
    background: #ff5e00;
    border-color: #ff5e00;
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(255, 94, 0, 0.3);
}

.pag-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}
/* Side Menu Location Selector */
.menu-location-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.menu-location-wrapper .location-select {
    width: 100%;
    padding: 12px 25px 12px 35px !important;
    font-size: 0.95rem;
}

.menu-location-wrapper i:first-child {
    position: absolute;
    left: 15px;
    color: var(--mobile-primary);
    font-size: 0.9rem;
}

.menu-location-wrapper i:last-child {
    position: absolute;
    right: 15px;
    font-size: 0.7rem;
    color: var(--text-muted);
    pointer-events: none;
}


.page-numbers {
    display: flex;
    gap: 10px;
}

.page-num {
    min-width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-white);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-num.active {
    background: linear-gradient(135deg, #FFD700 0%, #ff5e00 100%);
    border-color: transparent;
    box-shadow: 0 8px 15px rgba(255, 94, 0, 0.2);
    transform: scale(1.05);
}

.page-num:hover:not(.active) {
    background: rgba(255,255,255,0.1);
}




body.light-mode .header-location-wrapper {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1D1D1F;
}

body.light-mode .header-divider {
    background: rgba(0, 0, 0, 0.1);
}


body.light-mode .header-location-wrapper {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .header-location-wrapper select {
    color: #1D1D1F;
}

.promote-btn-sm {
    background: #ff5e00;
    color: #000;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
}

/* ========================================= */
/* FLOATING GLASS NAVIGATION BAR              */
/* ========================================= */
.glass-nav-bar {
    position: fixed;
    top: 98px;
    left: 0;
    width: 100%;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 12px;
    pointer-events: none;
}

.glass-arrow {
    position: absolute;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.glass-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.glass-arrow:active {
    transform: scale(0.95);
}

.glass-arrow.left { left: 12px; }
.glass-arrow.right { right: 12px; }

.glass-arrow.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

body.light-mode .glass-arrow {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1D1D1F;
}

.glass-nav-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 15, 15, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 60px;
    padding: 8px 12px;
    pointer-events: auto;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    max-width: 100%;
}

.glass-nav-inner::-webkit-scrollbar {
    display: none;
}

.glass-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    border-radius: 50px;
    padding: 12px 21px; /* Increased by ~15% */
    color: rgba(255, 255, 255, 1); /* Changed from 0.55 for user request */
    font-size: 0.98rem; /* Increased by ~15% */
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    flex-shrink: 0;
    letter-spacing: 0.2px;
}

.glass-pill i {
    font-size: 0.98rem; /* Increased by ~15% */
    transition: transform 0.3s ease;
}

.glass-pill:hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
}

/* Per-category active gradients - High Impact & Vibrant */
/* Consolidating Category Gradients into the Liquid Nebula Section */

.glass-pill.active {
    position: relative;
    overflow: hidden;
    padding: 12px 21px; /* Synchronized with normal state boost */
    z-index: 1;
    font-weight: 800;
    background-size: 200% 200% !important;
    animation: nebulaFlow 2.5s ease-in-out infinite alternate, 
               nebulaBreathe 3s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #FFFFFF !important;
}

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

@keyframes nebulaBreathe {
    0%, 100% { transform: scale(1.05); box-shadow: 0 8px 18px rgba(0,0,0,0.4); }
    50% { transform: scale(1.12); box-shadow: 0 15px 45px var(--category-glow, rgba(255,140,0,0.6)); }
}


/* Layer 1: Categorical Aura Shadows & Base Liquid Gradients */
.glass-pill[data-category="event"].active { --category-glow: rgba(59, 207, 212, 0.5); background: linear-gradient(135deg, #3bcfd4, #fc9305, #f20094, #3bcfd4); }


.glass-pill[data-category="shopping"].active { --category-glow: rgba(237, 227, 66, 0.5); background: linear-gradient(135deg, #ede342, #ff51eb, #ede342); }

.glass-pill[data-category="learning"].active { --category-glow: rgba(255, 206, 6, 0.5); background: linear-gradient(135deg, #ffce06, #6c960d, #ffce06); }

.glass-pill[data-category="service"].active { --category-glow: rgba(0, 198, 255, 0.5); background: linear-gradient(135deg, #00C6FF, #0072FF, #00C6FF); }
.glass-pill[data-category="realestate"].active { --category-glow: rgba(240, 147, 251, 0.5); background: linear-gradient(135deg, #F093FB, #F5576C, #F093FB); }
.glass-pill[data-category="restaurant"].active { --category-glow: rgba(42, 141, 8, 0.5); background: linear-gradient(135deg, #2a8d08, #f2e713, #f71e06, #2a8d08); }

.glass-pill[data-category="grocery"].active { --category-glow: rgba(0, 242, 96, 0.5); background: linear-gradient(135deg, #00F260, #0575E6, #00F260); }
.glass-pill[data-category="temple"].active { --category-glow: rgba(230, 35, 20, 0.5); background: linear-gradient(135deg, #e62314, #f19e18, #e62314); }

.glass-pill[data-category="organization"].active { --category-glow: rgba(88, 239, 236, 0.5); background: linear-gradient(135deg, #58efec, #e85c90, #fcc9ba, #58efec); }
.glass-pill[data-category="owners"].active { --category-glow: rgba(33, 212, 253, 0.5); background: linear-gradient(135deg, #1e3c72, #2a5298, #21d4fd, #1e3c72); }
.glass-pill[data-category="cinema"].active { --category-glow: rgba(255, 0, 204, 0.5); background: linear-gradient(135deg, #FF00CC, #3333FF, #FF9900, #FF00CC); }







.glass-pill.active i {
    transform: scale(1.1);
}

/* Hero Section */
.mobile-hero {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 60vh;
    padding-top: 160px; /* header(64) + spacing + glass bar(~56) */
    padding-bottom: 2.5rem;
    overflow: hidden;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0.4) 30%, 
        rgba(0, 0, 0, 0.7) 70%,
        rgba(0, 0, 0, 0.95) 100%);

    z-index: 2;
}

/* Force Light Text in Hero regardless of theme */
.mobile-hero h1,
.mobile-hero p,
/* Modal titles inside banners stay white */
.modal-content.premium-modal .modal-title {
    color: var(--text-white);
}
.modal-content.premium-modal .modal-subtitle {
    color: var(--text-muted);
}
.mobile-hero .stats-badge span {
    color: #F5F5F7 !important;
}

.mobile-hero .stats-badge {
    border-color: rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 2rem 1.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.stats-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease;
}

.stats-badge i {
    color: var(--mobile-primary);
    font-size: 0.9rem;
}

.stats-badge span {
    font-size: 0.8rem;
    font-weight: 600;
}

h1 {
    font-size: 2.2rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 0.8rem;
    letter-spacing: -1.5px;
}

.highlight {
    background: linear-gradient(135deg, #ff5e00 0%, #FF0000 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 90%;
    margin: 0 auto 2.5rem;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sub-Category Grid Container */
.glass-sub-nav {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.select-wrapper select {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1.4rem 0.5rem 0;
    -webkit-appearance: none;
    appearance: none;
}

.select-wrapper i {
    position: absolute;
    right: 4px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.explore-btn {
    background: var(--mobile-explore-btn);
    color: var(--text-white);
    border: none;
    padding: 0.7rem 1.6rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.explore-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(255, 94, 0, 0.35);
}

.mobile-sub-grid-container {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.category-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 200;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.category-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.category-arrow.left { left: -10px; }
.category-arrow.right { right: -10px; }
.category-arrow.hidden { opacity: 0; pointer-events: none; transform: translateY(-50%) scale(0.8); }

.mobile-sub-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 0.8rem;
    padding: 20px 12px;
    width: 100%;
    justify-content: flex-start;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.mobile-sub-grid::-webkit-scrollbar {
    display: none;
}

.sub-cat-btn {
    width: 280px; /* Wider for desktop discoverability */
    height: 180px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08); /* Minimal border for cleaner look */
    background: #000;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    flex-shrink: 0;
    padding: 0;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.sub-cat-btn .card-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.sub-cat-btn:hover .card-bg-img {
    transform: scale(1.1);
}





.sub-cat-btn.active {
    border-color: var(--category-accent-1, #ff5e00);
    box-shadow: 0 0 25px var(--category-accent-1, rgba(255, 94, 0, 0.4));
    transform: translateY(-5px);
}

.card-action-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    z-index: 2;
    padding: 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 35%);
}

.xyz-action-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.xyz-action-btn:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.sub-cat-btn.active .xyz-action-btn {
    background: linear-gradient(135deg, var(--category-accent-1, #ff5e00), var(--category-accent-2, #f19e18));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px var(--category-accent-1, rgba(255, 94, 0, 0.4));
}



/* Ambient Radial Glow & Film Grain Noise Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(200, 160, 100, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    mix-blend-mode: soft-light;
    pointer-events: none;
    z-index: 10000;
}

/* No-image special handling: Matches the Golden Ring Pattern */

















/* Side Menu Drawer */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.side-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: var(--mobile-bg);
    border-right: 1px solid var(--mobile-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 3000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.side-menu.active {
    left: 0;
}

.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--mobile-border);
    flex-shrink: 0;
}

.side-menu-content {
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 2rem;
}

.side-menu-header .logo {
    font-size: 1.4rem;
}

.menu-section h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 0.6rem;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: none;
    border: none;
    color: var(--text-white);
    opacity: 0.8;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 1rem 0;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.menu-link:hover {
    color: #ff5e00;
    transform: translateX(10px);
}

.menu-link i {
    width: 24px;
    text-align: center;
    color: var(--mobile-primary);
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.menu-link:hover i {
    transform: scale(1.1);
    color: #FFFFFF; /* High-contrast white in dark-mode hover */
}

body.light-mode .menu-link:hover i {
    color: #000000; /* High-contrast black in light-mode hover */
}

.add-listing-btn-menu,
.promote-btn-menu {
    width: 95%;
    margin: 0.5rem auto;
    border: none;
    padding: 0.65rem 1rem;
    border-radius: 9px;
    font-weight: 800;
    font-size: 1.02rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #FFFFFF;
    position: relative;
}



.add-listing-btn-menu {
    background: linear-gradient(135deg, #2a8d08 0%, #f2e713 100%);
    box-shadow: 0 4px 15px rgba(42, 141, 8, 0.25);
    margin-bottom: 0.8rem;
    margin-top: 0.5rem;
}



.promote-btn-menu {
    background: linear-gradient(135deg, #f20094 0%, #fc9305 100%);
    box-shadow: 0 4px 15px rgba(242, 0, 148, 0.25);
}





.add-listing-btn-menu:hover,
.promote-btn-menu:hover {
    transform: translateY(-2px);
}

/* Results Section */
.mobile-results {
    padding: 2rem 1.2rem 3rem;
    background: var(--mobile-bg);
}

.results-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem; /* Increased spacing for luxury look */
    padding-top: 40px; /* Space for items to 'lift' */
}


/* Web UI / Desktop Grid: 3 results per row */
@media (min-width: 1024px) {
    .results-list {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
        margin: 0 auto;
    }

    .results-list.cinema-mode {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1400px;
        gap: 2rem 1.5rem;
    }
    
    .results-list.cinema-mode .cinema-card {
        height: 100%;
    }

    .results-list.cinema-mode .card-info {
        padding: 15px 12px !important;
    }

    .results-list.cinema-mode h3 {
        font-size: 1rem !important;
        margin-bottom: 0.5rem;
    }

    .results-list.cinema-mode .contact-stack {
        display: none; /* Hide details on main gallery for cleaner look */
    }

    .results-list.cinema-mode .card-type-badge {
        top: auto;
        bottom: 15px;
        left: 15px;
        background: #FF5E00 !important;
        font-size: 0.9rem !important;
        font-weight: 900 !important;
        padding: 8px 18px !important;
        border-radius: 8px !important;
        box-shadow: 0 8px 25px rgba(255, 94, 0, 0.4) !important;
        border: 1px solid rgba(255,255,255,0.4) !important;
        letter-spacing: 1.2px !important;
        z-index: 10;
    }
}

/* Tablet Grid: 2 results per row */
@media (min-width: 768px) and (max-width: 1023px) {
    .results-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* ADDED: Intermediate grid for featured cards to prevent them becoming too large */
    .featured-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
    }
    
    .featured-card-flyer {
        max-width: 450px;
        margin: 0 auto;
    }
}

.listing-card {
    background: rgba(22, 22, 24, 0.45);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    position: relative;
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.5s ease,
                padding 0.4s ease;
}


/* Layer 3: Rotating conic-gradient border (Only on hover) */
.listing-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250%; /* Large enough to cover rectangle corners */
    height: 250%;
    transform: translate(-50%, -50%) rotate(0deg);
    background: conic-gradient(
        from 0deg,
        var(--category-accent-1, #FF5E00) 0%,
        var(--category-accent-2, #FF9B05) 25%,
        #FF3131 50%,    /* Performance Red Hotspot */
        var(--category-accent-2, #FF9B05) 75%,
        var(--category-accent-1, #FF5E00) 100%
    );
    animation: rotateGoldenRing 6s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    pointer-events: none;
}

.listing-card:hover::before {
    opacity: 1;
}

/* Layer 4: Inner plate to ensure ring is only 2px border */
.listing-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: rgba(22, 22, 24, 0.95); /* Solid backdrop for dark mode */
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Light Mode Overrides for the Inner Plate */
body.light-mode .listing-card::after {
    background: #FFFFFF; /* High-contrast white for light mode */
}


.listing-card:hover::after {
    opacity: 1;
}

/* Base card background should be transparent on hover to let the plate/ring shine */
.listing-card:hover {
    background: transparent !important;
    padding: 2.5px; /* Shrink content slightly to reveal the rotating border beneath */
}


/* Ensure the card content stays above the hidden layers */
.listing-card .card-image,
.listing-card .card-info {
    position: relative;
    z-index: 10;
}

.listing-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 45px 85px -25px rgba(0, 0, 0, 0.9), 
                0 0 35px var(--category-accent-1, rgba(255,140,0,0.3)); 
    border-color: transparent; 
    z-index: 100;
}








body.light-mode .listing-card {
    background: #FFFFFF;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

body.light-mode .card-info h3 {
    color: #1a1a1b !important;
}

body.light-mode .contact-link {
    background: rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .contact-text label {
    color: rgba(0, 0, 0, 0.45) !important;
}

body.light-mode .contact-text span {
    color: #2d2e2f !important;
}

body.light-mode .contact-link i {
    color: var(--mobile-primary) !important;
    filter: drop-shadow(0 2px 4px rgba(255, 94, 0, 0.2));
}

body.light-mode .contact-link:hover i {
    background: rgba(255, 94, 0, 0.15) !important;
    color: var(--mobile-primary) !important;
    border-color: var(--mobile-primary) !important;
}

body.light-mode .distance-tag {
    background: rgba(0, 0, 0, 0.04) !important;
    color: #444 !important;
}

/* =========================================
   ROBUST COMPONENT SYSTEM (THEME-AWARE)
   ========================================= */

/* Modals */
.modal-content {
    background: var(--modal-bg) !important;
    color: var(--text-white) !important;
    border: 1px solid var(--mobile-border) !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5) !important;
    border-radius: 24px;
}

/* 25% Larger 'Card-style' Modal for Listing Details */
.modal-content.listing-card-vibe {
    width: 600px; /* Base card is ~400px in the grid, so 600px is ~1.5x, giving a premium expanded feel */
    max-width: 90vw;
    border-radius: 28px;
    padding: 0;
    overflow: hidden;
    background: var(--mobile-card-bg) !important;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-content.listing-card-vibe .details-header {
    height: 250px; /* Exactly 1.25x the 200px result card image */
    width: 100%;
}

body.light-mode .modal-content.listing-card-vibe {
    background: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.12) !important;
}

body.light-mode .modal-content.listing-card-vibe .details-header-overlay {
    background: linear-gradient(to top, #FFFFFF, transparent);
}

.modal-content.listing-card-vibe .details-body {
    padding: 2rem 2.2rem 2.4rem;
    margin-top: -60px; /* Deeper overlap into gradients */
}

.modal-content.listing-card-vibe #detailsModalTitle {
    font-size: 2.1rem; /* Proportional to its 1.5x width expand */
    font-weight: 700;
    margin: 1.2rem 0; /* Create space for the divider */
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Divider matching the card's contact-info border */
}

body.light-mode .modal-content.listing-card-vibe #detailsModalTitle {
    border-bottom-color: rgba(0, 0, 0, 0.05); /* Lighter divider for light mode */
}

.modal-content.listing-card-vibe .modal-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.modal-content.listing-card-vibe .details-contact-column {
    display: flex;
    flex-direction: column;
    gap: 0; /* Resetting gap to use card-style border-bottoms */
    margin-top: 1.5rem;
}

body.light-mode .modal-content {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1) !important;
}

.details-body {
    background: transparent !important;
    color: var(--text-white) !important;
}

.modal-title {
    color: var(--text-white) !important;
    font-weight: 800;
}

.modal-subtitle {
    color: var(--text-muted) !important;
}

/* Forms & Inputs */
.form-group label {
    color: var(--text-muted) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
}

.input-with-icon input, 
.input-with-icon select, 
.input-with-icon textarea {
    background: var(--input-bg) !important;
    border: 1.5px solid var(--input-border) !important;
    color: var(--input-text) !important;
    border-radius: 12px !important;
    transition: all 0.3s ease;
}

.input-with-icon input:focus, 
.input-with-icon select:focus, 
.input-with-icon textarea:focus {
    border-color: var(--mobile-primary) !important;
    background: var(--modal-inner-bg) !important;
}

.input-with-icon i {
    color: var(--text-muted) !important;
}

/* Result Cards */
.listing-card {
    background: var(--mobile-card-bg) !important;
    border: 1px solid var(--mobile-border) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.listing-card h3 {
    color: var(--text-white) !important;
}

.card-footer {
    border-top: 1px solid var(--mobile-border) !important;
}

.footer-right, .card-distance {
    color: var(--text-muted) !important;
}

/* Contact Links */
.contact-link {
    color: var(--text-white) !important;
    background: var(--modal-inner-bg) !important;
    border-radius: 16px !important;
    border: 1px solid var(--mobile-border) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.contact-link i {
    background: rgba(255, 94, 0, 0.1) !important;
    color: var(--mobile-primary) !important;
    border: 1px solid rgba(255, 94, 0, 0.2) !important;
    border-radius: 12px;
}

.contact-text label {
    color: var(--text-muted) !important;
    opacity: 0.8;
}

.contact-text span {
    color: var(--text-white) !important;
    font-weight: 600;
}

/* Hover States (WEB ONLY) */
@media (hover: hover) {
    .contact-link:hover {
        background: rgba(255, 94, 0, 0.08) !important;
        border-color: var(--mobile-primary) !important;
        transform: translateY(-2px);
    }
    
    .contact-link:hover i {
        background: var(--mobile-primary) !important;
        color: white !important;
        box-shadow: 0 0 20px rgba(255, 94, 0, 0.4);
    }

    .listing-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    body.light-mode .listing-card:hover {
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
        border-color: rgba(0, 0, 0, 0.1);
    }
}

/* Active States (MOBILE FOCUS) */
.contact-link:active, .listing-card:active {
    transform: scale(0.97);
    background: rgba(255, 94, 0, 0.15) !important;
}

/* Privacy Modal Specifics */
.privacy-content p, .privacy-content li {
    color: var(--text-white) !important;
    opacity: 0.95;
    line-height: 1.7;
}

.privacy-content h3 {
    color: var(--mobile-primary) !important;
    margin-top: 1.5rem;
}

/* Event Highlights */
.contact-link.event-highlight label {
    color: #ff5e00 !important;
    font-weight: 800 !important;
}

.contact-link.event-highlight span {
    color: var(--text-white);
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    text-shadow: 0 0 10px rgba(255, 94, 0, 0.3);
}

body.light-mode .contact-link.event-highlight span {
    color: #FF4500 !important;
}

.listing-card:active {
    transform: scale(0.98);
}

.card-image {
    position: relative;
    height: 200px;
}

.cinema-card .card-image {
    height: auto;
    aspect-ratio: 2 / 3;
}

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

.card-type-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 5px 14px;
    border-radius: 12px;
    font-size: 0.62rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.card-info {
    padding: 1.25rem 1.4rem 1.4rem;
}

.cinema-card .card-info {
    padding-top: 0.4rem;
}

.cinema-card .card-top-row {
    margin-bottom: 0.2rem;
    min-height: 0;
}

.card-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
    min-height: 24px; /* Ensure row has consistent height */
}

.verified-column {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.rating-column {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #1B5E20 !important; /* Dark Green */
    color: #ffffff !important;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
}

.verified-badge i {
    color: #ffffff !important;
}

.unverified-badge {
    background: rgba(142, 142, 147, 0.15);
    color: #8E8E93;
    border: 1px solid rgba(142, 142, 147, 0.2);
    font-weight: 600;
}

.listing-card.card-stale {
    opacity: 0.85;
    filter: saturate(0.85);
}

.listing-card.card-stale:hover {
    opacity: 1;
    filter: saturate(1);
}

.card-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0.2rem 0;
    display: flex;
    align-items: center;
    min-height: 2.8rem;
    line-height: 1.2;
}

.card-rating-row {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
}

.card-rating-row i {
    color: #ff5e00;
    font-size: 0.75rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Consistent with details-contact-list */
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}


/* Event Date/Time (Result Cards) */
.card-event-datetime {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin: 1rem 0;
    font-size: 1.05rem;
    color: var(--mobile-primary);
    font-weight: 800;
}

.card-event-datetime i {
    margin-right: 4px;
}

/* Event Date/Time (Details Modal) */

.modal-event-datetime {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(255, 94, 0, 0.1);
    border-radius: 12px;
    border-left: 4px solid var(--mobile-primary);
}

.modal-event-datetime span {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-white);
}

.modal-event-datetime i {
    color: var(--mobile-primary);
    margin-right: 8px;
    font-size: 1.1rem;
}

.modal-event-datetime.hidden {
    display: none;
}

body.light-mode .contact-info {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-row-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.web-link-right {
    margin-left: 0;
    text-align: left;
}

.address-row-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
}

.address-link-full {
    flex: 1;
}

.distance-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--mobile-primary);
    white-space: nowrap;
    background: rgba(255, 94, 0, 0.08);
    padding: 2px 8px;
    border-radius: 6px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 10px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 100%;
    box-sizing: border-box;
}

.contact-link:last-child {
    border-bottom: none;
}

.contact-link i {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 94, 0, 0.08);
    border: 1px solid rgba(255, 94, 0, 0.15);
    border-radius: 12px;
    color: var(--mobile-primary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    overflow: hidden;
}

.contact-text label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 700;
}

.contact-text span {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.03);
    padding-left: 14px;
    color: var(--text-white);
}

.contact-link:hover i {
    background: var(--mobile-primary);
    color: var(--text-white);
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 0 20px rgba(255, 94, 0, 0.4);
}

.contact-link:active {
    transform: scale(0.98);
}



.loading, .no-results, .error {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-muted);
    font-style: italic;
}

.fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Designer Premium Modal System */
.details-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Deepest blur for priority */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.details-modal.active {
    opacity: 1;
    visibility: visible;
}

.premium-modal {
    width: 92%;
    max-width: 500px;
    background: #121214;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8);
    max-height: 90vh;
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.details-modal.active .premium-modal {
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-white);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.close-modal:hover {
    background: var(--mobile-primary);
    transform: rotate(90deg);
}

.details-header {
    width: 100%;
    height: 260px;
    position: relative;
}

#detailsModalImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.details-header-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, #121214, transparent);
}

.details-body {
    padding: 0 28px 32px;
    margin-top: -40px; /* Pull content into the gradient overlay */
    position: relative;
    z-index: 5;
    overflow-y: auto;
    max-height: calc(90vh - 220px);
}

.details-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.verified-badge-pill, .type-badge-pill {
    display: none; /* Replaced by card-style shared badges */
}

#detailsModalTitle {
    font-size: 1.9rem;
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: -0.8px;
    color: var(--text-white);
    line-height: 1.1;
}

.modal-rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    color: var(--mobile-primary);
    font-weight: 700;
    font-size: 0.95rem;
}

.privacy-body .modal-title, .contact-body .modal-title {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.privacy-body .modal-subtitle, .contact-body .modal-subtitle {
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    display: block;
}

.details-contact-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.modal-event-datetime {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(255, 94, 0, 0.1);
    border-radius: 18px;
    border-left: 4px solid var(--mobile-primary);
}

.modal-event-datetime .dt-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--mobile-primary);
}


/* Light Mode Overrides for Premium Modal */
body.light-mode .premium-modal {
    background: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.15);
}

body.light-mode .details-header-overlay {
    background: linear-gradient(to top, #FFFFFF, transparent);
}

body.light-mode .type-badge-pill {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.6);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode #detailsModalTitle {
    color: #1D1D1F;
}

body.light-mode .modal-event-datetime {
    background: rgba(255, 94, 0, 0.05);
}

body.light-mode .details-contact-column {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.05);
}


.details-contact-list .contact-link {
    width: 100%; /* Force full width in modal just like the cards */
    word-break: break-all;
}


.details-modal .modal-content {
    max-height: 90vh; /* Prevent overspill */
    overflow-y: auto; /* Enable scrollability */
    display: flex;
    flex-direction: column;
}

.details-modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    font-size: 1.8rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-modal-header {
    height: 140px;
    position: relative;
}

.premium-header-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.premium-header-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.premium-header-overlay h2 {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
}

.premium-header-overlay p {
    font-size: 0.85rem;
    opacity: 0.8;
}

.promote-modal-body {
    padding: 1.5rem;
}

.promote-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
}

.input-with-icon input, .input-with-icon select, .input-with-icon textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    border-radius: 10px;
    outline: none;
    font-size: 0.95rem;
}

body.light-mode .input-with-icon input, 
body.light-mode .input-with-icon select, 
body.light-mode .input-with-icon textarea {
    background: #F2F2F7;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    color: #000000;
}

body.light-mode .input-with-icon input::placeholder,
body.light-mode .input-with-icon textarea::placeholder {
    color: #888;
}

body.light-mode .form-group label, 
body.light-mode .input-with-icon i {
    color: #1D1D1F;
    font-weight: 700;
}

.input-with-icon textarea {
    padding-top: 1rem;
}

.premium-submit-btn {
    background: var(--mobile-explore-btn);
    color: #000;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

.form-message {
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    text-align: center;
}

.form-message.success {
    background: rgba(56, 239, 125, 0.15);
    color: #38ef7d;
}

.form-message.error {
    background: rgba(255, 0, 0, 0.15);
    color: #ff4d4d;
}

/* Modal Headers & Theming */
.modal-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    text-align: center;
}

.modal-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* Modal Specific Layouts */
.privacy-header {
    background: linear-gradient(135deg, #10b981, #3b82f6);
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.privacy-header-icon {
    font-size: 3.5rem;
    color: white;
    filter: drop-shadow(0 0 20px rgba(0,0,0,0.2));
}

.privacy-body {
    padding: 2rem 2.5rem 3rem !important;
    margin-top: 0 !important;
}

.privacy-content {
    line-height: 1.6;
    color: var(--text-white);
    font-size: 0.95rem;
}

.privacy-content h3 {
    margin: 2rem 0 0.8rem;
    color: var(--mobile-primary);
}

.contact-header {
    background: linear-gradient(135deg, #ff5e00, #FF5200);
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-body {
    padding: 2rem 2.5rem 3rem !important;
    margin-top: 0 !important;
    background: transparent !important;
}

.contact-header-icon {
    font-size: 3.2rem;
    color: white;
    filter: drop-shadow(0 0 20px rgba(0,0,0,0.2));
}

/* Size Optimization */
.desktop-compact {
    max-width: 420px !important;
}

.privacy-modal {
    max-width: 480px !important;
}

.privacy-content p {
    margin-bottom: 1.2rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.privacy-content h3 {
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Removed light mode modal title override to maintain white text on colored banners */
body.light-mode .modal-subtitle { color: #48484A; }
body.light-mode .contact-body, body.light-mode .privacy-body { background: #FFFFFF !important; }

.hidden { display: none !important; }

/* ========================================= */
/* FEATURED GRID DESIGN SYSTEM (GLOBAL)      */
/* ========================================= */
.featured-section {
    padding: 4rem 2rem;
    background: linear-gradient(to bottom, #000, #080808);
    overflow: hidden;
}
body.light-mode .featured-section {
    background: #ffffff;
}
.featured-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default to 1 col for mobile center control */
    gap: 3rem;
    margin-top: 3rem;
}
.featured-card-flyer {
    position: relative;
    aspect-ratio: 4 / 5.5;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    background: #111;
    box-shadow: 0 16px 32px rgba(0,0,0,0.4);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}
.featured-card-flyer:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 94, 0, 0.3);
}
.flyer-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}
.featured-card-flyer:hover .flyer-image {
    transform: scale(1.1);
}
.flyer-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.flyer-tag {
    align-self: flex-start;
    padding: 5px 12px;
    background: var(--mobile-primary);
    color: #fff;
    font-weight: 800;
    font-size: 0.75rem;
    border-radius: 6px;
    letter-spacing: 0.5px;
}
.featured-main-title { font-size: 2.2rem; letter-spacing: -1px; text-align: center; }

/* ========================================= */
/* PREMIUM DESKTOP UPGRADES (> 1024px)       */
/* ========================================= */
@media (min-width: 1024px) {
    /* --- Main Desktop Layout & Centering --- */
    .hero-content, 
    .featured-content-container, 
    .results-list,
    .results-controls-bar {
        max-width: 1400px;
        margin: 0 auto;
        padding-left: 2rem;
        padding-right: 2rem;
        width: 100%;
    }

    /* --- Header & Navigation --- */
    .mobile-header {
        justify-content: space-between;
        padding: 0 3rem;
        height: 72px;
        background: rgba(0, 0, 0, 0.92);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .header-left, .header-right {
        position: static;
        display: flex;
        align-items: center;
    }

    .header-left { gap: 2rem; }
    .header-right { gap: 1.5rem; }

    .logo { font-size: 1.9rem; }

    .glass-nav-bar {
        top: 72px;
        padding: 1rem 0;
        pointer-events: none;
    }

    .glass-nav-inner {
        pointer-events: auto;
        padding: 8px 16px;
        background: rgba(15, 15, 15, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
        max-width: 90vw;
    }

    .glass-pill {
        padding: 12px 24px;
        font-size: 0.95rem;
        font-weight: 700;
    }

    /* --- Hero Section & Sub-Category Grid --- */
    .mobile-hero {
        min-height: 85vh;
        padding-top: 180px;
        padding-bottom: 5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .mobile-hero h1 {
        font-size: 4.8rem;
        letter-spacing: -3px;
        margin-bottom: 1.5rem;
        line-height: 1;
    }

    .mobile-hero p {
        font-size: 1.3rem;
        max-width: 800px !important;
        margin-bottom: 4rem !important;
        opacity: 0.8;
    }

    /* Sub-Category Navigation: Fixed Scroll & Centering */
    .glass-sub-nav {
        width: 100%;
        max-width: 1180px;
        margin: 0 auto;
        padding: 0 1rem;
        display: flex;
        justify-content: center;
        position: relative;
    }

    .glass-sub-inner {
        width: fit-content;
        max-width: 1180px;
        margin: 0 auto 2rem auto;
        padding: 5px 40px;
        background: rgba(22, 12, 15, 0.9);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .mobile-sub-grid {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .sub-categories-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 15px;
        padding: 5px 0;
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        width: max-content;
        min-width: 100%;
        margin: 0 auto; /* Accurate centering without left-cropping */
    }

    /* Arrows Positioning */
    .glass-sub-inner .category-arrow {
        position: absolute;
        z-index: 100;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        top: 50%;
        transform: translateY(-50%);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

    .glass-sub-inner .category-arrow.left { left: 8px; }
    .glass-sub-inner .category-arrow.right { right: 8px; }

    /* Sub-Category Cards */
    .sub-cat-btn {
        width: 230px;
        height: 155px;
        border-radius: 20px;
        position: relative;
        overflow: hidden;
    }

    /* --- Featured Grid --- */
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1400px;
        margin: 3rem auto 0;
    }
    .featured-card-flyer {
        max-width: none; /* Let grid control width */
    }
    .featured-main-title { font-size: 2.8rem; letter-spacing: -1.5px; text-align: left; }

    /* --- Results Section --- */
    .mobile-results {
        padding: 5rem 0;
    }

    .listing-card {
        border-radius: 22px;
    }

    .listing-card:hover {
        transform: translateY(-8px) scale(1.01);
        border-color: var(--category-accent-1);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    }

    .results-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 2rem;
    }

    /* --- Modals for Desktop --- */
    .premium-modal {
        max-width: 900px !important;
        border-radius: 32px;
    }

    .promote-modal.desktop-wide {
        max-width: 1000px !important;
    }
}

/* Results Controls & Pagination Styles */
.results-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.results-info {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
    letter-spacing: -0.2px;
}

body.light-mode .results-info {
    color: rgba(0,0,0,0.5);
}

.results-info span {
    color: var(--text-white);
    font-weight: 800;
    font-family: inherit;
}

body.light-mode .results-info span {
    color: #000;
}

.results-filters {
    display: flex;
    gap: 12px;
}

.filter-group {
    background: var(--mobile-card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--mobile-border);
    border-radius: 12px;
    padding: 0 10px 0 12px;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.filter-group:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-group label {
    font-size: 0.85rem;
    color: var(--mobile-primary);
}

.filter-group select {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 0.85rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    padding-right: 4px;
}

.filter-group select option {
    background: #1c1c1e;
    color: var(--text-white);
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 3rem;
    padding-bottom: 2rem;
}

.pag-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--mobile-card-bg);
    border: 1px solid var(--mobile-border);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pag-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.pag-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 8px;
}

.page-num {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mobile-card-bg);
    border: 1px solid var(--mobile-border);
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-num.active {
    background: var(--mobile-active-tab);
    border-color: transparent;
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(255, 94, 0, 0.3);
}

.page-num:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
}

body.light-mode .page-num, 
body.light-mode .pag-btn {
    background: #fff;
    border-color: rgba(0,0,0,0.1);
    color: #1a1a1b;
}

body.light-mode .page-num.active {
    background: var(--mobile-active-tab);
    color: #fff;
}

/* Mobile scaling for featured cards to keep them professional */
@media (max-width: 1023px) {
    .featured-grid {
        gap: 2rem;
    }
    .featured-card-flyer {
        max-width: 380px;
    }
}

@media (max-width: 600px) {
    .results-controls-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .results-filters {
        width: 100%;
        justify-content: space-between;
    }
    .filter-group {
        flex: 1;
    }
    .filter-group select {
        flex: 1;
        width: 100%;
    }
}

/* ========================================= */
/* PREMIUM PROMOTE MODAL V2 (DESKTOP)        */
/* ========================================= */
.promote-modal.desktop-wide {
    width: 1000px !important;
    max-width: 95vw;
    background: var(--modal-bg) !important;
    border: 1px solid var(--mobile-border) !important;
    padding: 0 !important;
    overflow: hidden;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
}

.promote-header-new {
    position: relative;
    padding: 32px 48px;
    background: var(--modal-inner-bg);
    overflow: hidden;
}

.promote-header-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 94, 0, 0.08) 0%, transparent 100%);
    z-index: 1;
}

.promote-header-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.promote-icon-container {
    width: 64px;
    height: 64px;
    background: var(--mobile-active-tab);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #FFFFFF;
    box-shadow: 0 12px 32px rgba(255, 94, 0, 0.3);
    flex-shrink: 0;
}

.promote-modal .modal-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -1.5px;
    color: var(--text-white);
}

.promote-modal .modal-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin: 8px 0 0;
    width: 100%;
}

.details-body.promote-body {
    padding: 48px 80px 64px 80px;
}

.premium-form-new {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.form-grid-single-column {
    display: flex;
    flex-direction: column;
    gap: 56px;
    width: 100%;
}

.section-header-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.step-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--mobile-active-tab);
    opacity: 0.9;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
}

.form-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.full-width-group {
    margin-top: 20px;
    width: 100%;
}

.form-section {
    position: relative;
}

.request-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.type-option {
    cursor: pointer;
    position: relative;
}

.type-option input {
    position: absolute;
    opacity: 0;
}

.type-option .option-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 24px;
    background: var(--modal-inner-bg);
    border: 1px solid var(--mobile-border);
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.type-option input:checked + .option-content {
    background: rgba(255, 94, 0, 0.08);
    border-color: var(--mobile-primary);
    box-shadow: 0 8px 24px rgba(255, 94, 0, 0.1);
}

.type-option .option-content i {
    font-size: 24px;
    color: var(--text-muted);
    transition: all 0.3s;
}

.type-option input:checked + .option-content i {
    color: var(--mobile-primary);
    transform: scale(1.1);
}

.type-option .option-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
}

.type-option .option-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group.full-width {
    grid-column: 1 / -1;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 20px;
    color: var(--text-muted);
    transition: all 0.3s;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    background: var(--input-bg);
    border: 1.5px solid var(--input-border);
    border-radius: 14px;
    padding: 14px 20px 14px 52px;
    color: var(--input-text);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-wrapper select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(128,128,128,0.5)'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 18px;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    background: var(--modal-inner-bg);
    border-color: var(--mobile-primary);
    box-shadow: 0 0 0 4px rgba(255, 94, 0, 0.1);
}

.input-wrapper input:focus + i,
.input-wrapper select:focus + i,
.input-wrapper textarea:focus + i {
    color: var(--mobile-primary);
}

.form-disclaimer {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 320px;
    line-height: 1.5;
}

.form-footer-desktop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid var(--mobile-border);
}

.premium-button-v2 {
    position: relative;
    background: var(--mobile-explore-btn);
    border: none;
    border-radius: 16px;
    padding: 20px 48px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 32px rgba(255, 94, 0, 0.2);
}

.premium-button-v2:hover {
    box-shadow: 0 15px 45px rgba(255, 94, 0, 0.4);
}

.premium-button-v2:active {
    transform: translateY(-2px) scale(1);
}

.btn-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-white);
    font-weight: 800;
    font-size: 1.1rem;
}

.btn-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    animation: shimmer 4s infinite ease-in-out;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(5deg); }
}

/* Redundant Light Mode Specifics removed in favor of Variable-First system */



/* Modal Dynamic Gradients (Add Listing vs Promote) - ALWAYS AT END FOR SPECIFICITY */
.modal-mode-free .promote-header-new {
    background: linear-gradient(135deg, #2a8d08 0%, #f2e713 100%) !important;
}
.modal-mode-free .submit-btn.premium-button-v2 {
    background: linear-gradient(135deg, #2a8d08 0%, #f2e713 100%) !important;
    box-shadow: 0 8px 25px rgba(42, 141, 8, 0.3) !important;
}

.modal-mode-promote .promote-header-new {
    background: linear-gradient(135deg, #f20094 0%, #fc9305 100%) !important;
}
.modal-mode-promote .submit-btn.premium-button-v2 {
    background: linear-gradient(135deg, #f20094 0%, #fc9305 100%) !important;
    box-shadow: 0 8px 25px rgba(242, 0, 148, 0.3) !important;
}

/* !!! CRITICAL DESIGN TOKENS - DO NOT REMOVE !!! */
/* Modal Dynamic Gradients (Add Listing vs Promote) - ALWAYS AT END FOR SPECIFICITY */
.modal-mode-free .promote-header-new {
    background: linear-gradient(135deg, #2a8d08 0%, #f2e713 100%) !important;
}
.modal-mode-free .submit-btn.premium-button-v2 {
    background: linear-gradient(135deg, #2a8d08 0%, #f2e713 100%) !important;
    box-shadow: 0 8px 25px rgba(42, 141, 8, 0.3) !important;
}

.modal-mode-promote .promote-header-new {
    background: linear-gradient(135deg, #f20094 0%, #fc9305 100%) !important;
}
.modal-mode-promote .submit-btn.premium-button-v2 {
    background: linear-gradient(135deg, #f20094 0%, #fc9305 100%) !important;
    box-shadow: 0 8px 25px rgba(242, 0, 148, 0.3) !important;
}

/* Dynamic Discovery Tag */
.tag-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 1.5rem;
    pointer-events: none;
}

.discovery-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.05); /* Ultra-premium glass */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    pointer-events: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3), inset 0 0 15px rgba(255,255,255,0.02);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.discovery-tag:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.discovery-tag i {
    color: #FFD700;
    font-size: 1.1rem;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
}

.discovery-tag span {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    background: linear-gradient(to right, #FFFFFF, rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .discovery-tag {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

body.light-mode .discovery-tag span {
    background: linear-gradient(to right, #FFFFFF, rgba(255, 255, 255, 0.85));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Experimental: Professional Titles */
.professional-title {
    font-size: 0.82rem;
    color: #666;
    margin-top: -6px;
    margin-bottom: 10px;
    font-weight: 500;
    display: block;
    line-height: 1.2;
}

body.dark-mode .professional-title {
    color: #aaa;
}
/* Card Data Reporting Utility */
.card-reporting {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    justify-content: center;
    width: 100%;
}

body.light-mode .card-reporting {
    border-top-color: rgba(0,0,0,0.06);
}

.report-btn {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    background: rgba(142, 142, 147, 0.1);
    border: 1px solid rgba(142, 142, 147, 0.2);
    color: #8E8E93 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
}

.report-btn.claim {
    background: rgba(42, 141, 8, 0.1);
    border-color: rgba(42, 141, 8, 0.25);
    color: #2a8d08 !important;
}

.report-btn.claim:hover {
    background: #2a8d08;
    color: #fff !important;
}

.report-btn i {
    font-size: 0.72rem;
    color: inherit;
    opacity: 0.8;
}

.report-btn:hover {
    background: rgba(142, 142, 147, 0.15);
    color: #FFFFFF !important;
    border-color: rgba(142, 142, 147, 0.3);
    transform: translateY(-1px);
}

body.light-mode .report-btn {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
    color: #636366 !important;
}

body.light-mode .report-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1C1C1E !important;
}

.report-modal-body {
    padding: 25px;
}
@media (max-width: 900px) {
    /* Hide the centered desktop search container strictly */
    .header-search-container {
        display: none !important;
    }

    /* Show the mobile search trigger button on the right */
    .mobile-search-trigger {
        display: flex !important;
    }

    /* Hide the divider and location on mobile header */
    .header-divider, .header-location-wrapper {
        display: none !important;
    }

    /* The Search Overlay (triggered by mobileSearchBtn) */
    .header-search-wrapper.mobile-active {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 64px;
        z-index: 2000;
        background: #000;
        border-radius: 0;
        padding: 0 16px 0 50px;
        border: none;
        border-bottom: 1px solid var(--mobile-primary);
    }
    
    .header-search-wrapper.mobile-active .search-icon {
        left: 20px;
        position: absolute;
        display: block !important;
    }
    
    .header-search-wrapper.mobile-active .header-search-input {
        width: 100%;
        display: block !important;
        opacity: 1 !important;
    }
}

/* Go Live Polish: Trust Signals */
.stale-listing {
    opacity: 0.7;
    filter: grayscale(20%);
    transition: opacity 0.3s ease;
}
.stale-listing:hover {
    opacity: 0.9;
}
.verified-badge {
    background: #1B5E20 !important;
    color: #ffffff !important;
    margin-left: 6px;
    font-size: 0.9rem;
}
.freshness-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
}

/* Task 4: Reporting Visibility */
.card-reporting {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.report-btn {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--primary);
    background: rgba(255, 94, 0, 0.05);
    border: 1px solid rgba(255, 94, 0, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}
.report-btn:hover {
    background: rgba(255, 94, 0, 0.1);
    border-color: var(--primary);
}
.report-btn.claim {
    background: rgba(52, 199, 89, 0.05);
    color: #34c759;
    border-color: rgba(52, 199, 89, 0.1);
}
.report-btn.claim:hover {
    background: rgba(52, 199, 89, 0.1);
    border-color: #34c759;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--modal-bg);
    border-top: 1px solid var(--mobile-border);
    padding: 3rem 1.5rem 1.5rem;
    margin-top: 4rem;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}
@media (min-width: 768px) {
    .footer-inner { grid-template-columns: 1.4fr 2fr; gap: 3rem; }
    .footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
.footer-logo { font-size: 1.6rem; margin-bottom: 0.6rem; }
.footer-tagline { color: var(--text-muted); font-size: 0.88rem; line-height: 1.5; margin-bottom: 1.2rem; }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 10px;
    background: rgba(255,255,255,0.06); border: 1px solid var(--mobile-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 1rem;
    transition: all 0.2s ease; text-decoration: none;
}
.footer-social a:hover { background: var(--mobile-primary); color: #fff; border-color: transparent; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-col h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-muted); font-weight: 700; margin-bottom: 1rem; }
.footer-link {
    display: block; background: none; border: none; text-align: left;
    color: var(--text-white); font-size: 0.88rem; padding: 3px 0;
    cursor: pointer; text-decoration: none; opacity: 0.75;
    transition: opacity 0.2s ease, color 0.2s ease;
}
.footer-link:hover { opacity: 1; color: var(--mobile-primary); }
.footer-bottom {
    max-width: 1200px; margin: 2rem auto 0;
    padding-top: 1.2rem; border-top: 1px solid var(--mobile-border);
    text-align: center; color: var(--text-muted); font-size: 0.8rem;
}
body.light-mode .site-footer { background: #f5f5f7; border-top-color: rgba(0,0,0,0.08); }
body.light-mode .footer-social a { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); }
