/**
 * TicketBoss.ca - Monolithic Apple Liquid Glass + Nvidia Ray-Traced Titanium Design System
 * Inspired by Apple Pro Hardware (Jony Ive / Steve Jobs) & Nvidia Cyber-Precision Aesthetics.
 * Dual-Mode Engine: Seamless, high-contrast Apple Ceramic Light Mode & Obsidian Cyber Dark Mode.
 */

[x-cloak] {
    display: none !important;
}

:root {
    /* Base Color Tokens - Apple Ceramic Light Mode */
    --bg-midnight: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-surface: #F1F5F9;
    --bg-nav: rgba(255, 255, 255, 0.92);
    --border-subtle: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(255, 42, 68, 0.4);
    --text-heading: #0F172A;
    --text-body: #334155;
    --text-muted: #64748B;
    --ticker-bg: #000000;
    --footer-bg: #070B11;
    
    /* Brand Colors & Nvidia Cyber Accents */
    --color-crimson: #FF2A44;
    --color-crimson-dark: #D62828;
    --color-crimson-glow: rgba(255, 42, 68, 0.25);
    --color-nvidia-green: #76B900;
    --color-nvidia-glow: rgba(118, 185, 0, 0.25);
    --color-titanium: #8E8E93;
    
    /* Safe Area Insets for iOS & Modern Edge-to-Edge Displays */
    --sab: env(safe-area-inset-bottom, 0px);
    --sat: env(safe-area-inset-top, 0px);
    --sal: env(safe-area-inset-left, 0px);
    --sar: env(safe-area-inset-right, 0px);
    
    /* Typography Line Spacing */
    --leading-none: 1;
    --leading-tight: 1.24;
    --leading-snug: 1.38;
    --leading-normal: 1.55;
    --leading-relaxed: 1.72;
    --leading-loose: 1.95;
}

html.dark {
    /* Base Color Tokens - Obsidian Ray-Traced Dark Mode */
    --bg-midnight: #070B11;
    --bg-card: #0D131F;
    --bg-surface: #121A2A;
    --bg-nav: rgba(7, 11, 17, 0.88);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 42, 68, 0.5);
    --text-heading: #FFFFFF;
    --text-body: #E2E8F0;
    --text-muted: #94A3B8;
    --ticker-bg: #000000;
    --footer-bg: #03060A;
}

/* ==========================================================================
   1. GLOBAL PURIST TYPOGRAPHY & TOUCH OPTIMIZATION (Apple SF Pro Standard)
   ========================================================================== */
html, body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-midnight);
    color: var(--text-body);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    letter-spacing: -0.01em;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    transition: background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-x: clip;
    width: 100%;
}

/* Eliminate iOS Safari Auto-Zoom on Input Focus */
@media screen and (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* Apple Keynote Style Hero & Heading Rules */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.25;
    color: var(--text-heading);
    letter-spacing: -0.025em;
    font-weight: 900;
    margin-top: 0;
    margin-bottom: 0.85rem;
}

h1 { letter-spacing: -0.035em; line-height: 1.2; margin-bottom: 1rem; }
h2 { letter-spacing: -0.028em; line-height: 1.25; margin-bottom: 0.85rem; }
h3 { letter-spacing: -0.022em; line-height: 1.3; margin-bottom: 0.75rem; }
h4, h5, h6 { line-height: 1.36; margin-bottom: 0.65rem; }

/* Enhanced Breathing Room: Space between headings and subsequent descriptive text */
h1 + p, h2 + p, h3 + p, h4 + p,
h1 + .lead, h2 + .lead, h3 + .lead,
h1 + [class*="text-zinc"], h2 + [class*="text-zinc"], h3 + [class*="text-zinc"],
h1 + [class*="text-slate"], h2 + [class*="text-slate"], h3 + [class*="text-slate"] {
    margin-top: 0.75rem !important;
}

p {
    line-height: 1.72;
    margin-bottom: 1rem;
    letter-spacing: -0.008em;
}
p:last-child {
    margin-bottom: 0;
}

/* Monospace Numbers Tabular Feature */
.font-mono-num {
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
    font-feature-settings: 'tnum' on, 'zero' on;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   2. APPLE LIQUID GLASS DUAL-MODE MATERIAL SYSTEM
   ========================================================================== */

/* Translucent Frosted Glass Sticky Dock Navigation (Mobile & Desktop) */
.glass-nav {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg-nav);
    backdrop-filter: blur(36px) saturate(200%);
    -webkit-backdrop-filter: blur(36px) saturate(200%);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), inset 0 -1px 0 0 rgba(15, 23, 42, 0.06);
    padding-top: env(safe-area-inset-top, 0px);
    will-change: transform;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
html.dark .glass-nav {
    box-shadow: inset 0 -1px 0 0 rgba(255, 255, 255, 0.08), 0 12px 36px -4px rgba(0, 0, 0, 0.45);
}

/* Monolithic Glass Slabs & Cards */
.glass-card, .apple-glass-card {
    background: var(--bg-card);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.04), 0 12px 24px -4px rgba(15, 23, 42, 0.06);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
html.dark .glass-card, html.dark .apple-glass-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.045) 0%, rgba(10, 15, 29, 0.92) 100%);
    backdrop-filter: blur(40px) saturate(210%);
    -webkit-backdrop-filter: blur(40px) saturate(210%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.16),
        inset 0 -1px 1px 0 rgba(0, 0, 0, 0.5),
        0 20px 50px -12px rgba(0, 0, 0, 0.75);
}

.glass-card:hover, .apple-glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -5px rgba(15, 23, 42, 0.1), 0 0 20px rgba(255, 42, 68, 0.12);
}
html.dark .glass-card:hover, html.dark .apple-glass-card:hover {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 
        inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.32),
        inset 0 -1px 1px 0 rgba(0, 0, 0, 0.5),
        0 30px 70px -10px rgba(0, 0, 0, 0.9),
        0 0 35px rgba(255, 42, 68, 0.16);
}

/* Liquid Glass Panels */
.liquid-glass-panel {
    background: #FFFFFF;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
html.dark .liquid-glass-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(13, 19, 31, 0.94) 100%);
    backdrop-filter: blur(36px) saturate(200%);
    -webkit-backdrop-filter: blur(36px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -1px 1px 0 rgba(0, 0, 0, 0.4),
        0 20px 50px -10px rgba(0, 0, 0, 0.75);
}
.liquid-glass-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.12), 0 0 25px rgba(255, 42, 68, 0.1);
}
html.dark .liquid-glass-panel:hover {
    box-shadow: 
        inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 1px 0 rgba(0, 0, 0, 0.4),
        0 30px 70px -10px rgba(0, 0, 0, 0.88),
        0 0 35px rgba(255, 42, 68, 0.15);
}

/* CNC Milled Wells & Segments */
.liquid-glass-segment {
    background: #F1F5F9;
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: #0F172A;
    box-shadow: inset 0 1px 2px 0 rgba(15, 23, 42, 0.03);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.liquid-glass-segment:hover {
    background: #E2E8F0;
    border-color: rgba(15, 23, 42, 0.12);
}
.liquid-glass-segment:focus-within {
    background: #FFFFFF;
    border-color: rgba(255, 42, 68, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 42, 68, 0.15);
}
html.dark .liquid-glass-segment {
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    box-shadow: 
        inset 0 1.5px 3px 0 rgba(0, 0, 0, 0.6),
        inset 0 0.5px 0.5px 0 rgba(255, 255, 255, 0.1);
}
html.dark .liquid-glass-segment:hover {
    background: rgba(0, 0, 0, 0.72);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 
        inset 0 1.5px 3px 0 rgba(0, 0, 0, 0.7),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.18),
        0 4px 16px -2px rgba(0, 0, 0, 0.5);
}
html.dark .liquid-glass-segment:focus-within {
    background: rgba(0, 0, 0, 0.85);
    border-color: rgba(255, 42, 68, 0.6);
    box-shadow: 
        inset 0 1px 2px 0 rgba(255, 255, 255, 0.22),
        0 0 20px 0 rgba(255, 42, 68, 0.35);
}

/* Capsule Dynamic Island Pills */
.liquid-glass-pill, .apple-pill {
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #1E293B;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.liquid-glass-pill:hover, .apple-pill:hover {
    background: rgba(15, 23, 42, 0.08);
    border-color: rgba(15, 23, 42, 0.16);
    color: #0F172A;
    transform: translateY(-1px) scale(1.02);
}
.liquid-glass-pill:active, .apple-pill:active {
    transform: translateY(0.5px) scale(0.98);
}
html.dark .liquid-glass-pill, html.dark .apple-pill {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #FFFFFF;
    box-shadow: 
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.24),
        inset 0 -1px 1px 0 rgba(0, 0, 0, 0.3),
        0 6px 20px -3px rgba(0, 0, 0, 0.45);
}
html.dark .liquid-glass-pill:hover, html.dark .apple-pill:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.06) 100%);
    border-color: rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    box-shadow: 
        inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.4),
        0 12px 28px -4px rgba(0, 0, 0, 0.6);
}

/* Apple Dynamic Island Floating Hero / Search Container */
.liquid-glass-hero {
    background: #FFFFFF;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.12), 0 0 35px rgba(255, 42, 68, 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
html.dark .liquid-glass-hero {
    background: linear-gradient(145deg, rgba(16, 23, 38, 0.96) 0%, rgba(5, 8, 14, 0.98) 100%);
    backdrop-filter: blur(55px) saturate(230%);
    -webkit-backdrop-filter: blur(55px) saturate(230%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 
        inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1px 1px 0 rgba(0, 0, 0, 0.8),
        0 35px 90px -10px rgba(0, 0, 0, 0.98),
        0 0 50px -5px rgba(255, 42, 68, 0.28);
}
/* In Dark Hero sections, keep the hero search container dark & luminous in all modes */
.hero-section .liquid-glass-hero {
    background: linear-gradient(145deg, rgba(16, 23, 38, 0.94) 0%, rgba(5, 8, 14, 0.98) 100%) !important;
    backdrop-filter: blur(55px) saturate(230%) !important;
    -webkit-backdrop-filter: blur(55px) saturate(230%) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 
        inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1px 1px 0 rgba(0, 0, 0, 0.8),
        0 35px 90px -10px rgba(0, 0, 0, 0.98),
        0 0 50px -5px rgba(255, 42, 68, 0.28) !important;
}
.hero-section .liquid-glass-segment {
    background: rgba(0, 0, 0, 0.52) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #FFFFFF !important;
}
.hero-section .liquid-glass-pill {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #FFFFFF !important;
}

/* Apple Crimson Primary Button (Pure White Text in All Themes) */
.liquid-glass-btn-crimson, .apple-btn-crimson {
    background: linear-gradient(135deg, #FF334D 0%, #D61B35 100%) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 
        inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.45),
        inset 0 -1px 1px 0 rgba(0, 0, 0, 0.3),
        0 10px 30px -4px rgba(255, 42, 68, 0.6) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.liquid-glass-btn-crimson *, .apple-btn-crimson * {
    color: #FFFFFF !important;
}
.liquid-glass-btn-crimson:hover, .apple-btn-crimson:hover {
    background: linear-gradient(135deg, #FF475F 0%, #E6223D 100%) !important;
    box-shadow: 
        inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.6),
        0 18px 45px -4px rgba(255, 42, 68, 0.8) !important;
    transform: translateY(-1px) scale(1.02);
}
.liquid-glass-btn-crimson:active, .apple-btn-crimson:active {
    transform: translateY(0.5px) scale(0.97);
}

/* Dropdowns & Modals */
.liquid-glass-dropdown, .theme-dropdown {
    background: #FFFFFF !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(15, 23, 42, 0.04) !important;
}
html.dark .liquid-glass-dropdown, html.dark .theme-dropdown {
    background: linear-gradient(160deg, rgba(13, 19, 31, 0.96) 0%, rgba(7, 11, 17, 0.98) 100%) !important;
    backdrop-filter: blur(45px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(45px) saturate(200%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 
        inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1px 1px 0 rgba(0, 0, 0, 0.5),
        0 30px 80px -10px rgba(0, 0, 0, 0.95),
        0 0 30px -5px rgba(255, 42, 68, 0.15) !important;
}

.theme-modal {
    background: #FFFFFF !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.25) !important;
}
html.dark .theme-modal {
    background: linear-gradient(160deg, rgba(13, 19, 31, 0.96) 0%, rgba(7, 11, 17, 0.98) 100%) !important;
    backdrop-filter: blur(40px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(200%) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 
        inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 1px 0 rgba(0, 0, 0, 0.5),
        0 35px 80px -12px rgba(0, 0, 0, 0.9) !important;
}

/* ==========================================================================
   3. iOS / APPLE DOCKED BOTTOM TAB BAR (MOBILE PHONES)
   ========================================================================== */
.ios-tab-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(30px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(190%) !important;
    border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 -8px 25px rgba(15, 23, 42, 0.06) !important;
    padding-top: 6px !important;
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px)) !important;
    min-height: calc(66px + env(safe-area-inset-bottom, 0px)) !important;
    height: auto !important;
    z-index: 40 !important;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}
html.dark .ios-tab-bar {
    background: #06090E !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 
        0 -16px 45px rgba(0, 0, 0, 0.98),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.08) !important;
}

.ios-tab-inner {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    height: 100%;
    padding-left: 4px;
    padding-right: 4px;
}

.ios-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 48px;
    width: 100%;
    min-width: 0;
    gap: 3px;
    padding: 4px 2px;
    color: #64748B;
    transition: color 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
}
html.dark .ios-tab-item {
    color: #94A3B8;
}

.ios-tab-item .tab-icon {
    font-size: 24px;
    line-height: 1;
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), color 0.18s ease;
}

.ios-tab-item .tab-label {
    font-size: 10px;
    line-height: 1.1;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.ios-tab-item:active {
    transform: scale(0.88);
}

.ios-tab-item.active-tab {
    color: #FF2A44 !important;
}

.ios-tab-item.active-tab .tab-icon {
    transform: translateY(-1px);
}

/* Tactile Spring Press Physics */
.apple-press, .ios-touch-press {
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, filter 0.18s ease;
    user-select: none;
    -webkit-user-select: none;
}
.apple-press:active, .ios-touch-press:active {
    transform: scale(0.92) translateY(1px);
    filter: brightness(0.92);
}

/* Safe Area Utility Spacing */
.pb-safe {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
}
.bottom-safe {
    bottom: 0 !important;
}

/* Scroll Snap */
.scroll-snap-x {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.scroll-snap-item {
    scroll-snap-align: start;
}

/* Scrollbars */
.no-scrollbar::-webkit-scrollbar,
.scrollbar-none::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
.no-scrollbar,
.scrollbar-none {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

/* ==========================================================================
   4. APPLE LEAFLET MAP & PIN STYLING
   ========================================================================== */
.leaflet-container {
    background: #06090E !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.tb-map-marker-pin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FF2A44;
    color: #FFFFFF !important;
    border-radius: 9999px;
    padding: 4px 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(255, 42, 68, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.65);
    border: 1.5px solid #FFFFFF;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.tb-map-marker-pin * {
    color: #FFFFFF !important;
}
.tb-map-marker-pin:hover {
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 8px 26px rgba(255, 42, 68, 0.9), inset 0 1px 1px rgba(255, 255, 255, 0.85);
    z-index: 1000 !important;
}
.tb-map-marker-pin.free {
    background: #10B981;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.65);
}

.leaflet-popup-content-wrapper {
    background: rgba(10, 15, 29, 0.96) !important;
    backdrop-filter: blur(35px) saturate(210%) !important;
    -webkit-backdrop-filter: blur(35px) saturate(210%) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 1.5rem !important;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 42, 68, 0.22) !important;
    padding: 0 !important;
    color: #FFFFFF !important;
    overflow: hidden;
}
.leaflet-popup-content {
    margin: 0 !important;
    line-height: 1.4 !important;
}
.leaflet-popup-tip-container {
    display: none !important;
}
.leaflet-container a.leaflet-popup-close-button {
    top: 10px !important;
    right: 10px !important;
    color: #FFFFFF !important;
    background: rgba(0, 0, 0, 0.7) !important;
    border-radius: 9999px !important;
    width: 24px !important;
    height: 24px !important;
    line-height: 22px !important;
    text-align: center !important;
    padding: 0 !important;
    font-size: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    z-index: 20;
    transition: all 0.2s ease;
}
.leaflet-container a.leaflet-popup-close-button:hover {
    background: #FF2A44 !important;
    border-color: #FF2A44 !important;
    color: #FFFFFF !important;
}

/* ==========================================================================
   5. COMPREHENSIVE LIGHT MODE CONTRAST & FORM ENGINE
   ========================================================================== */

/* Universal Form Controls Light Mode */
html:not(.dark) input[type="text"]:not(.hero-section *):not(.top-ticker-bar *),
html:not(.dark) input[type="email"]:not(.hero-section *):not(.top-ticker-bar *),
html:not(.dark) input[type="password"]:not(.hero-section *):not(.top-ticker-bar *),
html:not(.dark) input[type="search"]:not(.hero-section *):not(.top-ticker-bar *),
html:not(.dark) input[type="number"]:not(.hero-section *):not(.top-ticker-bar *),
html:not(.dark) input[type="tel"]:not(.hero-section *):not(.top-ticker-bar *),
html:not(.dark) input[type="url"]:not(.hero-section *):not(.top-ticker-bar *),
html:not(.dark) input[type="date"]:not(.hero-section *):not(.top-ticker-bar *),
html:not(.dark) input[type="time"]:not(.hero-section *):not(.top-ticker-bar *),
html:not(.dark) textarea:not(.hero-section *):not(.top-ticker-bar *),
html:not(.dark) select:not(.hero-section *):not(.top-ticker-bar *) {
    background-color: #F1F5F9 !important;
    border-color: #CBD5E1 !important;
    color: #0F172A !important;
}

html:not(.dark) input::placeholder,
html:not(.dark) textarea::placeholder {
    color: #64748B !important;
}

html:not(.dark) input:focus:not(.hero-section *):not(.top-ticker-bar *),
html:not(.dark) textarea:focus:not(.hero-section *):not(.top-ticker-bar *),
html:not(.dark) select:focus:not(.hero-section *):not(.top-ticker-bar *) {
    background-color: #FFFFFF !important;
    border-color: #FF2A44 !important;
    box-shadow: 0 0 0 3px rgba(255, 42, 68, 0.15) !important;
    color: #0F172A !important;
}

/* Select Dropdown Options */
html:not(.dark) select option {
    background-color: #FFFFFF !important;
    color: #0F172A !important;
}
html.dark select option {
    background-color: #0D131F !important;
    color: #FFFFFF !important;
}

/* Light Mode Card & Panel Text Contrast Normalization */
html:not(.dark) .liquid-glass-panel h1:not([class*="aspect-"] *):not(a[href*="categories"] *):not(a[href*="cities"] *),
html:not(.dark) .liquid-glass-panel h2:not([class*="aspect-"] *):not(a[href*="categories"] *):not(a[href*="cities"] *),
html:not(.dark) .liquid-glass-panel h3:not([class*="aspect-"] *):not(a[href*="categories"] *):not(a[href*="cities"] *),
html:not(.dark) .liquid-glass-panel h4:not([class*="aspect-"] *):not(a[href*="categories"] *):not(a[href*="cities"] *),
html:not(.dark) .glass-card h1,
html:not(.dark) .glass-card h2,
html:not(.dark) .glass-card h3,
html:not(.dark) .glass-card h4 {
    color: #0F172A !important;
}

html:not(.dark) .liquid-glass-panel p:not([class*="aspect-"] *):not(a[href*="categories"] *):not(a[href*="cities"] *),
html:not(.dark) .glass-card p {
    color: #334155;
}

/* Light mode table styling */
html:not(.dark) table th {
    color: #64748B !important;
    border-color: #E2E8F0 !important;
}
html:not(.dark) table td {
    color: #0F172A !important;
    border-color: #F1F5F9 !important;
}
html:not(.dark) table tbody tr:hover {
    background-color: #F8FAFC !important;
}

/* ==========================================================================
   11. APPLE GLASS BREADCRUMB & CAPSULE COMPONENT SYSTEM
   ========================================================================== */
.apple-breadcrumb-bar {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04), inset 0 1px 1px 0 rgba(255, 255, 255, 0.95);
    font-size: 0.75rem;
    font-weight: 500;
    color: #475569;
    letter-spacing: -0.01em;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.apple-breadcrumb-bar::-webkit-scrollbar {
    display: none;
}

html.dark .apple-breadcrumb-bar {
    background: rgba(10, 15, 29, 0.82);
    border-color: rgba(255, 255, 255, 0.16);
    color: #94A3B8;
    box-shadow: 0 10px 32px -4px rgba(0, 0, 0, 0.6), inset 0 1px 1px 0 rgba(255, 255, 255, 0.22);
}

/* Standalone over-hero variant for guaranteed 100% contrast on bright images */
.apple-breadcrumb-bar-hero {
    background: rgba(10, 15, 29, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #CBD5E1 !important;
    box-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.7), inset 0 1px 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.apple-breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.45rem;
    border-radius: 0.5rem;
    color: #334155;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}
.apple-breadcrumb-link:hover {
    color: #0F172A;
    background: rgba(15, 23, 42, 0.08);
}
html.dark .apple-breadcrumb-link,
.apple-breadcrumb-bar-hero .apple-breadcrumb-link {
    color: #CBD5E1;
}
html.dark .apple-breadcrumb-link:hover,
.apple-breadcrumb-bar-hero .apple-breadcrumb-link:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.14);
}

.apple-breadcrumb-separator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    opacity: 0.65;
    font-size: 0.75rem;
    user-select: none;
    flex-shrink: 0;
}
html.dark .apple-breadcrumb-separator,
.apple-breadcrumb-bar-hero .apple-breadcrumb-separator {
    color: #64748B;
    opacity: 0.9;
}

.apple-breadcrumb-current {
    display: inline-block;
    color: #0F172A;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
html.dark .apple-breadcrumb-current {
    color: #F8FAFC;
}
.apple-breadcrumb-bar-hero .apple-breadcrumb-current {
    color: #FFFFFF;
}

/* Apple Status Capsule (e.g. Verified Canadian Listing) */
.apple-status-capsule {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    border: 1px solid rgba(16, 185, 129, 0.35);
    box-shadow: 0 4px 16px -2px rgba(16, 185, 129, 0.12), inset 0 1px 1px 0 rgba(255, 255, 255, 0.95);
    font-size: 0.75rem;
    font-weight: 600;
    color: #047857;
    letter-spacing: -0.01em;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
html.dark .apple-status-capsule {
    background: rgba(6, 78, 59, 0.35);
    border-color: rgba(52, 211, 153, 0.4);
    color: #6EE7B7;
    box-shadow: 0 8px 32px -4px rgba(0, 0, 0, 0.5), inset 0 1px 1px 0 rgba(52, 211, 153, 0.25);
}
.apple-status-capsule-hero {
    background: rgba(6, 78, 59, 0.5) !important;
    border: 1px solid rgba(52, 211, 153, 0.45) !important;
    color: #A7F3D0 !important;
    box-shadow: 0 10px 32px -4px rgba(0, 0, 0, 0.6), inset 0 1px 1px 0 rgba(52, 211, 153, 0.3) !important;
}

/* ==========================================================================
   11b. LUXURY APPLE LIQUID-GLASS PROMOTER STATUS PILLS & BADGES
   Crafted to the highest Apple Pro / Hermès luxury material standard:
   - High-carat satin metallic gradients (Champagne 24k to Burnished Amber; Royal Azure to Sapphire)
   - Tactile specular edge highlight (inset 0 1px 1.5px rgba(255,255,255,0.85))
   - Ambient diffuse elevation halo (0 4px 16px ...)
   - Silky diagonal specular shimmer sweep on hover
   - Optical letter-spacing and subpixel font rendering
   - 100% borderless with zero outlines
   ========================================================================== */
.promoter-pill-gold,
.apple-badge-gold {
    position: relative;
    overflow: hidden;
    border-radius: 9999px !important;
    padding: 0.125rem 0.45rem !important; /* 2px 7px compact micro-capsule */
    font-size: 0.625rem !important; /* 10px micro-typography */
    line-height: 1 !important;
    background: #F59E0B !important;
    color: #120A02 !important;
    font-weight: 850 !important;
    letter-spacing: 0.025em !important;
    border: none !important;
    outline: none !important;
    box-shadow: 0 1px 6px -1px rgba(245, 158, 11, 0.40) !important;
    opacity: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.2rem !important;
    -webkit-font-smoothing: antialiased;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
}

.promoter-pill-gold .material-symbols-outlined,
.apple-badge-gold .material-symbols-outlined {
    font-size: 0.6875rem !important; /* 11px micro-icon */
    line-height: 1 !important;
    color: #120A02 !important;
}

.promoter-pill-blue,
.apple-badge-blue {
    position: relative;
    overflow: hidden;
    border-radius: 9999px !important;
    padding: 0.175rem 0.55rem !important;
    font-size: 0.6875rem !important; /* 11px micro-typography */
    line-height: 1 !important;
    background: #0284C7 !important;
    color: #FFFFFF !important;
    font-weight: 750 !important;
    letter-spacing: 0.025em !important;
    border: none !important;
    outline: none !important;
    box-shadow: 0 2px 8px -1px rgba(2, 132, 199, 0.40) !important;
    opacity: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    -webkit-font-smoothing: antialiased;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
}

.promoter-pill-blue .material-symbols-outlined,
.apple-badge-blue .material-symbols-outlined {
    font-size: 0.8125rem !important; /* 13px */
    line-height: 1 !important;
    color: #FFFFFF !important;
}

/* Circular Gold Micro-Icon Seal (Over Card Images) */
.apple-icon-badge-gold {
    position: relative;
    overflow: hidden;
    width: 1.5rem !important;
    height: 1.5rem !important;
    border-radius: 9999px !important;
    padding: 0 !important;
    background: #F59E0B !important;
    color: #120A02 !important;
    border: none !important;
    outline: none !important;
    box-shadow: 0 2px 8px -1px rgba(245, 158, 11, 0.40) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
}

.apple-icon-badge-gold .material-symbols-outlined {
    font-size: 0.875rem !important;
    line-height: 1 !important;
    color: #120A02 !important;
}

/* Luxury diagonal light gleam sweep on hover */
.apple-badge-gold::after,
.apple-badge-blue::after,
.apple-icon-badge-gold::after,
.promoter-pill-gold::after,
.promoter-pill-blue::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
    transform: skewX(-22deg);
    transition: left 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.apple-badge-gold:hover::after,
.apple-badge-blue:hover::after,
.apple-icon-badge-gold:hover::after,
.promoter-pill-gold:hover::after,
.promoter-pill-blue:hover::after {
    left: 160%;
}

/* Apple micro-elevation lift */
.apple-badge-gold:hover,
.promoter-pill-gold:hover {
    transform: translateY(-1px);
    box-shadow: 
        inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 1px 0 rgba(146, 64, 14, 0.5),
        0 6px 20px -2px rgba(217, 119, 6, 0.55),
        0 2px 4px 0 rgba(0, 0, 0, 0.2) !important;
    filter: brightness(1.03);
}

.apple-icon-badge-gold:hover {
    transform: scale(1.08);
    box-shadow: 
        inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 1px 0 rgba(146, 64, 14, 0.5),
        0 5px 16px -2px rgba(217, 119, 6, 0.55),
        0 2px 4px 0 rgba(0, 0, 0, 0.25) !important;
    filter: brightness(1.05);
}

.apple-badge-blue:hover,
.promoter-pill-blue:hover {
    transform: translateY(-1px);
    box-shadow: 
        inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 1px 0 rgba(2, 44, 84, 0.48),
        0 6px 20px -2px rgba(2, 132, 199, 0.55),
        0 2px 4px 0 rgba(0, 0, 0, 0.22) !important;
    filter: brightness(1.03);
}

/* Strictly enforce borderless/outline-free edges across all states */
.promoter-badge-pill,
[class*="promoter-pill"],
.apple-badge-gold,
.apple-badge-blue,
.apple-icon-badge-gold,
.apple-badge-gold *,
.apple-badge-blue *,
.apple-icon-badge-gold * {
    border: none !important;
    outline: none !important;
}

/* ==========================================================================
   12. STRICT SINGLE-LINE BUTTON & ACTION ELEMENT ENFORCEMENT
   Enforce single-line rendering for all button contents regardless of screen size.
   ========================================================================== */
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.btn,
.apple-btn,
.liquid-glass-btn,
[class*="liquid-glass-btn"],
[class*="apple-btn-"],
a.liquid-glass-btn-crimson,
a.apple-btn-crimson,
a.liquid-glass-pill,
a.apple-pill,
.btn-solid-text {
    white-space: nowrap !important;
    flex-shrink: 0;
}

button > *,
.btn > *,
[class*="liquid-glass-btn"] > *,
[class*="apple-btn-"] > * {
    white-space: nowrap !important;
}



