/* ===================================
   ROLLIN - Modern SAAS UI (2025)
   Built by Stackline Studio
   =================================== */

/* ===================================
   CSS Variables & Modern Design System
   =================================== */
:root {
    /* ROLLIN Brand Palette - Royal Blue & Cream */
    --color-bg-primary: #0a1628;
    --color-bg-secondary: #0f1d35;
    --color-bg-tertiary: #152642;
    --color-bg-elevated: #1a2f4f;

    --color-text-primary: #f5f5dc;
    --color-text-secondary: #d4d4ba;
    --color-text-muted: #a8a891;

    /* ROLLIN Brand Colors - Royal Blue */
    --gradient-primary: linear-gradient(135deg, #2557a7 0%, #1a4ba0 100%);    /* Royal blue */
    --gradient-secondary: linear-gradient(135deg, #3b6bbd 0%, #2557a7 100%);  /* Lighter blue */
    --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);       /* Warm gold */
    --gradient-success: linear-gradient(135deg, #34d399 0%, #10b981 100%);    /* Welcoming green */

    --color-accent-primary: #2557a7;   /* Royal blue from logo */
    --color-accent-secondary: #3b6bbd;  /* Lighter royal blue */
    --color-accent-gold: #fbbf24;       /* Warm gold */

    /* Accessibility Score Colors - Vibrant */
    --color-score-high: #10b981;
    --color-score-good: #84cc16;
    --color-score-fair: #fbbf24;
    --color-score-poor: #f97316;
    --color-score-low: #ef4444;
    --color-score-unverified: #6b7280;

    /* Enhanced Glass Effect - Sexier & More Transparent */
    --glass-bg: rgba(30, 33, 42, 0.75);
    --glass-bg-elevated: rgba(30, 33, 42, 0.85);
    --glass-bg-hover: rgba(30, 33, 42, 0.9);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-blur: blur(30px) saturate(180%);

    --border-color: #1a2f4f;
    --border-color-strong: #2557a7;

    /* Shadows - Layered for Depth */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(37, 87, 167, 0.3);
    --shadow-glow-gold: 0 0 30px rgba(246, 211, 101, 0.3);

    /* Typography - Rounded Poppins */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Dimensions */
    --sidebar-width: 380px;
    --header-height: 70px;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
}

/* Light Mode Theme */
body.light-mode {
    /* Light backgrounds */
    --color-bg-primary: #f5f5f5;
    --color-bg-secondary: #ffffff;
    --color-bg-tertiary: #e5e5e5;
    --color-bg-elevated: #ffffff;

    /* Dark text for light mode */
    --color-text-primary: #1a1a1a;
    --color-text-secondary: #4a4a4a;
    --color-text-muted: #6a6a6a;

    /* Glass effect for light mode */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-bg-elevated: rgba(255, 255, 255, 0.95);
    --glass-bg-hover: rgba(255, 255, 255, 1);
    --glass-border: rgba(0, 0, 0, 0.12);
    --glass-blur: blur(30px) saturate(180%);

    --border-color: #e5e5e5;
    --border-color-strong: #2557a7;

    /* Light mode shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px rgba(37, 87, 167, 0.2);
    --shadow-glow-gold: 0 0 30px rgba(246, 211, 101, 0.2);
}

/* Light mode body background */
body.light-mode {
    background: linear-gradient(
        135deg,
        #f5f5f5 0%,
        #ffffff 25%,
        #f0f0f0 50%,
        #ffffff 75%,
        #f5f5f5 100%
    ) !important;
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    background: linear-gradient(
        135deg,
        #0a1628 0%,
        #0f1d35 25%,
        #152642 50%,
        #0f1d35 75%,
        #0a1628 100%
    );
    background-size: 200% 200%;
    animation: subtleGradient 20s ease infinite;
    color: var(--color-text-primary);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   Header - Modern Glassmorphism
   =================================== */
.app-header {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);

    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.6s ease-out;
    /* Prevent dragging on mobile */
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    touch-action: manipulation;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 var(--spacing-2xl);
    max-width: 100%;
}

.logo-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: -4px;
}

.logo-icon {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoIconPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.5));
}

@keyframes logoIconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.logo h1 {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    filter: drop-shadow(0 0 20px rgba(246, 211, 101, 0.3));
}

.logo .tagline {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

/* ===================================
   Modern Tab Navigation (SAAS Style)
   =================================== */
.nav-tabs-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.nav-tabs {
    display: flex;
    gap: 0.25rem;
    background: rgba(15, 29, 53, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 0.35rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
}

.nav-tab-slider {
    position: absolute;
    top: 0.35rem;
    left: 0.35rem;
    width: 0;
    height: calc(100% - 0.7rem);
    background: linear-gradient(135deg,
        rgba(37, 87, 167, 0.8) 0%,
        rgba(26, 75, 160, 0.8) 100%);
    border-radius: 12px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
    box-shadow:
        0 0 20px rgba(37, 87, 167, 0.4),
        0 4px 12px rgba(37, 87, 167, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.nav-tab {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-primary);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    user-select: none;
}

.nav-tab:hover:not(.active) {
    color: var(--color-text-secondary);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-1px);
}

.nav-tab.active {
    color: var(--color-text-primary);
}

.nav-tab-icon {
    font-size: 1.1rem;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}

.nav-tab.active .nav-tab-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.nav-tab-label {
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Focus state for accessibility */
.nav-tab:focus-visible {
    outline: 2px solid var(--color-accent-primary);
    outline-offset: 2px;
}

/* ===================================
   Auth Buttons (Modern Clean Design)
   =================================== */
.auth-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    white-space: nowrap;
}

.auth-btn svg {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    stroke: currentColor;
    fill: none;
}

.auth-btn:hover svg {
    transform: scale(1.1);
}

.auth-btn-signin {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-btn-signin:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.auth-btn-signup {
    background: linear-gradient(135deg, #2557a7 0%, #1a4ba0 100%);
    color: var(--color-text-primary);
    box-shadow: 0 4px 16px rgba(37, 87, 167, 0.3);
}

.auth-btn-signup:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 6px 24px rgba(37, 87, 167, 0.4),
        0 0 20px rgba(37, 87, 167, 0.3);
}

.auth-btn-signup:active {
    transform: translateY(0) scale(0.98);
}

/* Icon Button (for future command palette) */
.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-btn svg {
    stroke: currentColor;
    fill: none;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===================================
   Modern Buttons with Gradients
   =================================== */
.btn-primary,
.btn-secondary {
    padding: 0.6rem 1.25rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-gold);
    color: #1a1a2e;
    box-shadow: var(--shadow-glow-gold);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(246, 211, 101, 0.4);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary {
    background: var(--solid-bg-elevated);
    color: var(--color-text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--color-bg-elevated);
    border-color: var(--color-accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===================================
   Admin Ask ROLLIN Toggle (Flashlight Style)
   =================================== */
.admin-ask-rollin-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.1));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--border-radius-md);
    color: #fbbf24;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.admin-ask-rollin-toggle.hidden {
    display: none;
}

.admin-ask-rollin-toggle.active {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(245, 158, 11, 0.2));
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3), inset 0 0 10px rgba(251, 191, 36, 0.1);
}

.admin-ask-rollin-toggle:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.15));
    border-color: rgba(251, 191, 36, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.admin-ask-rollin-toggle .flashlight-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.admin-ask-rollin-toggle.active .flashlight-icon {
    transform: rotate(180deg);
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.8));
}

.admin-ask-rollin-toggle .toggle-label {
    font-size: 0.875rem;
    letter-spacing: 0.02em;
}

/* ===================================
   Main Container
   =================================== */
.app-container {
    display: flex;
    margin-top: var(--header-height);
    height: calc(100vh - var(--header-height));
}

/* ===================================
   Sidebar - Glassmorphism Panel
   =================================== */
/* ===================================
   MODERN FLOATING SIDEBAR
   =================================== */

/* Desktop: Floating panel over map */
.sidebar {
    position: fixed;
    top: calc(var(--header-height) + 20px);
    bottom: 20px;
    left: 20px;
    width: 420px;
    max-width: calc(100vw - 40px);
    height: calc(100vh - var(--header-height) - 40px);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color-strong);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    z-index: 800;
    opacity: 0;
    transform: translateX(-30px) scale(0.95);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: all;
}

/* Floating Toggle Button (Desktop minimized state) */
.sidebar-float-toggle {
    position: fixed;
    top: calc(var(--header-height) + 20px);
    left: 20px;
    z-index: 799;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.875rem 1.25rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--color-text-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-user-select: none;
}

.sidebar-float-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: var(--glass-bg-hover);
}

.sidebar-float-toggle:active {
    transform: translateY(0);
}

.sidebar-float-toggle.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-20px);
}

.float-toggle-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.float-toggle-text {
    line-height: 1;
}

/* Sidebar Content Container */
.sidebar-content {
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    -webkit-overflow-scrolling: touch;
}

/* Sidebar Header (Sticky) */
.sidebar-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg) var(--spacing-xl);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.sidebar-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.sidebar-header h2 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--color-text-primary);
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* Results Counter */
.sidebar-results-counter {
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--color-bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 500;
    text-align: center;
}

.sidebar-results-counter #resultsCount {
    color: var(--color-accent-primary);
    font-weight: 700;
    font-size: 1.05rem;
}

/* Active Filters Container */
.active-filters-container {
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.active-filters-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: var(--color-accent-primary);
    color: white;
    border-radius: var(--border-radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.filter-chip-remove {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.filter-chip-remove:hover {
    opacity: 1;
}

.clear-all-filters {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--color-text-muted);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-all-filters:hover {
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
}

/* Search Section */
.search-section {
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
}

/* Type Toggle - Modern Pills */
.type-toggle {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    padding: 6px;
    background: var(--color-bg-tertiary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--glass-border);
}

.type-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    color: var(--color-text-secondary);
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.type-btn:hover {
    background: var(--color-bg-elevated);
    color: var(--color-text-primary);
    transform: scale(1.02);
}

.type-btn.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

/* Search Box - Modern Input */
.search-box {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.search-box input {
    flex: 1;
    padding: 1rem;
    background: var(--color-bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    color: var(--color-text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-box input::placeholder {
    color: var(--color-text-muted);
}

.search-box input:focus {
    outline: none;
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: var(--color-bg-secondary);
}

.search-btn,
.location-btn {
    padding: 0.65rem 1rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    box-shadow: var(--shadow-glow);
}

.search-btn:hover,
.location-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.search-btn:active,
.location-btn:active {
    transform: translateY(0) scale(0.98);
}

.location-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

/* Filter Sections - Card Style */
/* Collapsible Filter Sections */
.filter-section {
    border-bottom: 1px solid var(--border-color);
}

.filter-section-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg) var(--spacing-xl);
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.filter-section-header:hover {
    background: var(--color-bg-tertiary);
}

.filter-section-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.filter-section-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.filter-section-toggle {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-section-header[aria-expanded="true"] .filter-section-toggle {
    transform: rotate(180deg);
}

.filter-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-section-content.expanded {
    max-height: 1000px; /* Increased from 500px to accommodate more filters */
    overflow-y: auto; /* Allow scrolling within filter sections if needed */
}

.filter-section-content .filter-group,
.filter-section-content .score-slider-container {
    padding: var(--spacing-md) var(--spacing-xl) var(--spacing-lg);
}

/* Legacy h3 support (if any remain) */
.filter-section h3 {
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.filter-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
}

.filter-checkbox:hover {
    background: var(--color-bg-tertiary);
    transform: translateX(4px);
}

.filter-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: var(--spacing-md);
    cursor: pointer;
    accent-color: var(--color-accent-primary);
}

.filter-checkbox span {
    font-size: 0.9rem;
}

.region-filter-note {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm);
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    text-align: center;
}
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* Score Slider - Modern Range Input */
.score-slider-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

#scoreSlider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right,
        var(--color-score-low) 0%,
        var(--color-score-poor) 30%,
        var(--color-score-fair) 50%,
        var(--color-score-good) 70%,
        var(--color-score-high) 100%);
    outline: none;
    accent-color: white;
    cursor: pointer;
}

.score-display {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   Map Container
   =================================== */
.map-container {
    flex: 1;
    position: relative;
    background: var(--color-bg-primary);
}

#map {
    width: 100%;
    height: 100%;
}

/* Sidebar Toggle (Mobile) */
.sidebar-toggle {
    position: fixed;
    top: 158px; /* Positioned well below zoom controls to avoid overlap */
    left: 10px;
    z-index: 500;
    padding: 0.875rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);

    color: var(--color-text-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: none;
    transition: all 0.3s ease;
    /* Prevent dragging on mobile */
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    touch-action: manipulation;
}

.sidebar-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Sidebar Close Button */
.sidebar-close-btn {
    width: 36px;
    height: 36px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--color-text-muted);
    font-size: 1.2rem;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sidebar-close-btn:hover {
    background: var(--color-danger);
    color: white;
    border-color: var(--color-danger);
    transform: scale(1.1);
}

.sidebar-close-btn:active {
    transform: scale(0.95);
}

/* Mobile Drawer Handle (hidden on desktop) */
.sidebar-mobile-handle {
    display: none;
}

/* Map Style Toggle - Floating Button */
.map-style-toggle {
    position: fixed;
    top: calc(var(--header-height) + 20px);
    right: 20px;
    z-index: 850; /* Higher than sidebar */
    padding: 0.6rem 1.25rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);

    color: var(--color-text-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Prevent dragging on mobile */
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    touch-action: manipulation;
}

.map-style-toggle:hover {
    background: var(--color-bg-elevated);
    border-color: var(--color-accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

#mapStyleIcon {
    font-size: 1.1rem;
}

/* Ask ROLLIN Toggle - Icon-only FAB that expands on hover */
.ask-rollin-toggle {
    position: fixed;
    top: calc(var(--header-height) + 70px); /* Below Dark Mode button */
    right: 20px;
    z-index: 850;
    padding: 0.75rem;
    width: 44px; /* Icon-only width */
    height: 44px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--color-text-primary);
    border: 1px solid var(--glass-border);
    border-radius: 22px; /* Fully rounded */
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    touch-action: manipulation;
}

.ask-rollin-toggle:hover {
    width: auto; /* Expand to fit content */
    padding: 0.75rem 1.25rem;
    padding-left: 0.75rem;
    background: var(--color-bg-elevated);
    border-color: var(--color-accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    border-radius: var(--border-radius-md);
}

.ask-rollin-toggle.active {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.1));
    border-color: var(--color-accent-gold);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

.ask-rollin-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ask-rollin-label {
    opacity: 0;
    max-width: 0;
    transition: opacity 0.2s ease, max-width 0.3s ease;
}

.ask-rollin-toggle:hover .ask-rollin-label {
    opacity: 1;
    max-width: 200px;
}

/* Mobile Filter Toggle (Top Left - opposite of Dark Mode) */
.mobile-filter-toggle {
    position: fixed;
    top: calc(var(--header-height) + 20px);
    left: 20px;
    z-index: 850;
    padding: 0.6rem 1.25rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--color-text-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: none; /* Hidden on desktop */
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    touch-action: manipulation;
}

.mobile-filter-toggle:hover {
    background: var(--color-bg-elevated);
    border-color: var(--color-accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.mobile-filter-icon {
    font-size: 1.1rem;
}

/* Show on mobile only */
@media (max-width: 768px) {
    .mobile-filter-toggle {
        display: flex;
    }
}

/* Map Legend - Modern Card with Collapsible */
.map-legend {
    position: fixed;
    bottom: 80px;
    right: var(--spacing-xl);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);

    border: 1px solid var(--border-color-strong);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-xl);
    min-width: 260px;
    z-index: 500;
    animation: slideUp 0.6s ease-out;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Prevent dragging on mobile */
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    touch-action: manipulation;
}

.map-legend.collapsed {
    padding: var(--spacing-md);
    min-width: auto;
}

.map-legend.collapsed h4 {
    font-size: 0.85rem;
    margin-bottom: 0;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.map-legend h4 {
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Legend Toggle Button */
.legend-toggle {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    width: 28px;
    height: 28px;
    background: var(--color-bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
}

.legend-toggle:hover {
    background: var(--color-accent-primary);
    transform: scale(1.1) rotate(90deg);
    border-color: var(--color-accent-primary);
}

.legend-toggle-icon {
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-text-primary);
}

/* Legend Items Container */
.legend-items {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 500px;
    opacity: 1;
    overflow: hidden;
}

.map-legend.collapsed .legend-items {
    max-height: 0;
    opacity: 0;
    margin: 0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    padding: var(--spacing-xs);
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
}

.legend-item:hover {
    background: var(--color-bg-elevated);
    transform: translateX(4px);
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 10px currentColor;
}

.legend-dot.score-high { background-color: var(--color-score-high); }
.legend-dot.score-good { background-color: var(--color-score-good); }
.legend-dot.score-fair { background-color: var(--color-score-fair); }
.legend-dot.score-poor { background-color: var(--color-score-poor); }
.legend-dot.score-low { background-color: var(--color-score-low); }
.legend-dot.score-unverified { background-color: var(--color-score-unverified); }

/* ===================================
   Modal - Premium Design
   =================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    padding: var(--spacing-xl);
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color-strong);
    border-radius: var(--border-radius-xl);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smooth scrolling for better UX */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Ensure modal scrolls properly and shows all content on desktop */
@media (min-width: 768px) {
    .modal-content {
        max-height: 85vh; /* Reduce slightly to ensure scroll visibility */
    }
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    background: var(--color-bg-elevated);
    border: 1px solid var(--glass-border);
    color: var(--color-text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--gradient-secondary);
    color: white;
    transform: rotate(90deg) scale(1.1);
    box-shadow: var(--shadow-md);
}

/* ===================================
   Custom Alert Modal
   =================================== */
.custom-alert-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.custom-alert-modal {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color-strong);
    border-radius: var(--border-radius-xl);
    max-width: 450px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    animation: modalSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-alert-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.custom-alert-body {
    padding: 1.5rem;
}

.custom-alert-footer {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    justify-content: flex-end;
}

#modalBody {
    padding: var(--spacing-2xl);
}

/* Modal Content Styles */
.location-header {
    margin-bottom: var(--spacing-xl);
}

.location-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.verification-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fbbf24;
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-md);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.verification-badge .badge-icon {
    font-size: 1.25rem;
}

.verification-badge .badge-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: #92400e;
}

.verification-badge .badge-date {
    font-size: 0.75rem;
    color: #b45309;
    margin-left: 0.25rem;
    opacity: 0.8;
}

.location-address {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.location-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gradient-gold);
    border-radius: var(--border-radius-md);
    font-size: 0.85rem;
    color: #1a1a2e;
    margin-top: var(--spacing-sm);
    font-weight: 600;
}

.location-cuisine {
    margin-top: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.cuisine-tag-btn {
    background: rgba(37, 87, 167, 0.1);
    border: 1px solid rgba(37, 87, 167, 0.3);
    color: var(--color-accent-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-md);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
}

.cuisine-tag-btn:hover {
    background: rgba(37, 87, 167, 0.2);
    border-color: rgba(37, 87, 167, 0.5);
    transform: translateY(-1px);
}

.score-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    padding: var(--spacing-xl);
    background: var(--color-bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--spacing-xl);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-section.collapsed {
    padding: var(--spacing-md);
    gap: var(--spacing-md);
}

.score-section.collapsed .score-info {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin: 0;
}

.score-section.collapsed .score-display-large {
    font-size: 2rem;
}

.score-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.score-display-large {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    background: var(--gradient-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.score-info {
    flex: 1;
}

.score-label {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.confidence-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-md);
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.confidence-high {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.3));
    color: var(--color-score-high);
    border: 1px solid var(--color-score-high);
}

.confidence-medium {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.3));
    color: var(--color-score-fair);
    border: 1px solid var(--color-score-fair);
}

.confidence-low {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.2), rgba(107, 114, 128, 0.3));
    color: var(--color-score-unverified);
    border: 1px solid var(--color-score-unverified);
}

.features-section,
.data-section {
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-primary);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--color-bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 1.5rem;
}

.feature-item.available {
    color: var(--color-score-high);
    border-color: rgba(16, 185, 129, 0.3);
}

.feature-item.unavailable {
    color: var(--color-score-poor);
    border-color: rgba(239, 68, 68, 0.3);
    opacity: 0.7;
}

.feature-item.unknown {
    color: var(--color-text-secondary);
    border-color: rgba(184, 184, 209, 0.2);
    opacity: 0.6;
}

.data-sources {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.modal-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--glass-border);
}

/* Reviews Section in Modal */
.reviews-section {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--glass-border);
}

.review-summary {
    padding: var(--spacing-lg);
    background: var(--color-bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-primary);
    font-size: 1rem;
    font-weight: 500;
}

.review-excerpts {
    margin-top: var(--spacing-lg);
}

.excerpt-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review-excerpt {
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    border-radius: var(--border-radius-md);
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.7;
    transition: all 0.3s ease;
}

.review-excerpt:hover {
    transform: translateX(8px);
}

.review-excerpt.positive {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border-left: 4px solid var(--color-score-high);
    color: var(--color-text-secondary);
}

.review-excerpt.negative {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    border-left: 4px solid var(--color-score-poor);
    color: var(--color-text-secondary);
}

.review-count {
    margin-top: var(--spacing-lg);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-align: center;
    font-weight: 500;
}

/* Photos Section - Modern Grid */
.photos-section {
    margin: var(--spacing-xl) 0;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.location-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.location-photo:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-accent-primary);
}

/* Roadmap Modal Styles */
.roadmap-content {
    padding: var(--spacing-2xl);
}

.roadmap-content h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
    font-weight: 900;
}

.roadmap-intro {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.6;
}

.roadmap-phase {
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-xl);
    background: var(--color-bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    transition: all 0.3s ease;
}

.roadmap-phase:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.phase-header {
    margin-bottom: var(--spacing-lg);
}

.phase-header h3 {
    font-size: 1.5rem;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.phase-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-bg-tertiary);
    border-radius: var(--border-radius-md);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.phase-current .phase-badge {
    background: var(--gradient-gold);
    color: #1a1a2e;
    box-shadow: var(--shadow-glow-gold);
}

.phase-header.phase-current h3 {
    color: var(--color-gold);
}

.roadmap-list {
    list-style: none;
    padding-left: var(--spacing-lg);
}

.roadmap-list li {
    padding: var(--spacing-sm) 0;
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

.roadmap-list li.completed {
    color: var(--color-score-high);
    font-weight: 600;
}

.roadmap-list li.in-progress {
    color: var(--color-accent-gold);
    font-weight: 600;
}

.roadmap-cta {
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-xl);
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    text-align: center;
}

.roadmap-cta p {
    margin-bottom: var(--spacing-sm);
    color: white;
    font-size: 1rem;
}

.roadmap-cta strong {
    color: white;
    font-size: 1.25rem;
}

.roadmap-cta .btn-primary {
    margin-top: var(--spacing-lg);
    background: white;
    color: var(--color-accent-primary);
}

/* About Modal Styles */
.about-content {
    padding: var(--spacing-2xl);
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
    font-weight: 900;
}

.about-intro {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-2xl);
    font-style: italic;
    line-height: 1.6;
}

.about-section {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--color-bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
}

.about-section h3 {
    font-size: 1.5rem;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.about-section p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    font-size: 1rem;
}

.about-list {
    list-style: none;
    padding-left: 0;
}

.about-list li {
    padding: var(--spacing-sm) 0;
    color: var(--color-text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

.about-list li strong {
    color: var(--color-accent-gold);
    font-weight: 700;
}

.about-cta {
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-xl);
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    text-align: center;
}

.about-cta p {
    margin-bottom: var(--spacing-sm);
    color: white;
    font-size: 1rem;
}

.about-cta strong {
    color: white;
    font-size: 1.25rem;
}

.about-cta .btn-primary {
    margin-top: var(--spacing-lg);
    background: white;
    color: var(--color-accent-primary);
}

/* Profile Modal Button Styles */
.profile-btn {
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

.profile-btn.admin-btn {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(217, 119, 6, 0.2));
    color: var(--color-accent-gold);
    border: 2px solid var(--color-accent-gold);
}

.profile-btn.admin-btn:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.35), rgba(217, 119, 6, 0.35));
    border-color: #fcd34d;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(251, 191, 36, 0.3);
}

.profile-btn.secondary-btn {
    background: rgba(26, 47, 79, 0.6);
    color: var(--color-text-secondary);
    border: 1px solid rgba(37, 87, 167, 0.5);
}

.profile-btn.secondary-btn:hover {
    background: rgba(37, 87, 167, 0.3);
    border-color: rgba(37, 87, 167, 0.8);
    color: var(--color-text-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(37, 87, 167, 0.2);
}

.profile-btn.danger-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.profile-btn.danger-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.4);
}

/* ===================================
   Footer - Modern Glassmorphism
   =================================== */
.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);

    border-top: 1px solid var(--glass-border);
    padding: var(--spacing-md) var(--spacing-xl);
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    z-index: 600;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
}

.app-footer strong {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.app-footer .disclaimer-text {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
    opacity: 0.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

/* ===================================
   Mobile Menu (FAB + Overlay)
   =================================== */

.mobile-menu-fab {
    display: none; /* Hidden on desktop */
    position: fixed;
    bottom: 80px;
    left: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    /* Glassmorphism styling to match Score legend */
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color-strong);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 1000;
    color: var(--color-text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Prevent dragging on mobile */
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    touch-action: manipulation;
}

.mobile-menu-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 87, 167, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.mobile-menu-fab:active {
    transform: scale(0.95);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.mobile-menu-overlay.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 60px;
}

.mobile-menu-content {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color-strong);
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    padding: 2rem;
    position: relative;
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color-bg-elevated);
    border: 1px solid var(--glass-border);
    color: var(--color-text-secondary);
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.mobile-menu-close:hover {
    background: var(--color-danger);
    color: white;
    transform: rotate(90deg);
}

.mobile-menu-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--color-text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.mobile-menu-item:hover {
    background: rgba(37, 87, 167, 0.2);
    border-color: var(--color-accent-primary);
    transform: translateX(4px);
}

.mobile-menu-icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.mobile-menu-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

/* ===================================
   Custom Leaflet Styles
   =================================== */

/* Custom Marker Cluster Icons - Perfect Circles */
.marker-cluster {
    background-clip: padding-box !important;
    border-radius: 50% !important;
    border: 2px solid rgba(37, 87, 167, 0.3) !important;
    background: rgba(37, 87, 167, 0.6) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.marker-cluster div {
    width: 28px !important;
    height: 28px !important;
    margin-left: 2px !important;
    margin-top: 2px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #2557a7 0%, #1a4ba0 100%) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.marker-cluster span {
    color: #f5f5dc !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-align: center !important;
    font-family: var(--font-primary) !important;
}

/* Size variants */
.marker-cluster-small {
    width: 32px !important;
    height: 32px !important;
}

.marker-cluster-medium {
    width: 36px !important;
    height: 36px !important;
}

.marker-cluster-medium div {
    width: 32px !important;
    height: 32px !important;
}

.marker-cluster-medium span {
    font-size: 13px !important;
}

.marker-cluster-large {
    width: 40px !important;
    height: 40px !important;
}

.marker-cluster-large div {
    width: 36px !important;
    height: 36px !important;
}

.marker-cluster-large span {
    font-size: 14px !important;
}

/* Hover effect for clusters */
.marker-cluster:hover {
    border-color: rgba(59, 107, 189, 0.6) !important;
    transform: scale(1.1);
    transition: all 0.2s ease;
}

/* Leaflet Zoom Controls */
/* Move zoom controls to right side */
.leaflet-top.leaflet-left {
    left: auto !important;
    right: 20px !important;
    top: calc(var(--header-height) + 90px) !important; /* Below dark mode toggle */
}

.leaflet-control-zoom {
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--border-radius-lg) !important;
    overflow: hidden;
    box-shadow: var(--shadow-lg) !important;
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
}

.leaflet-control-zoom a {
    background: transparent !important;
    color: var(--color-text-primary) !important;
    border-bottom: 1px solid var(--glass-border) !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    line-height: 44px !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.leaflet-control-zoom a:hover {
    background: var(--color-bg-elevated) !important;
    color: var(--color-accent-primary) !important;
}

.leaflet-control-zoom a:active {
    transform: scale(0.95) !important;
}

.leaflet-control-zoom a:last-child {
    border-bottom: none !important;
}

/* Leaflet Attribution */
.leaflet-control-attribution {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur) !important;
    color: var(--color-text-muted) !important;
    border-top: 1px solid var(--glass-border);
    font-size: 0.7rem !important;
    padding: 4px 10px !important;
}

.leaflet-control-attribution a {
    color: var(--color-accent-gold) !important;
}

/* Leaflet Popups - Modern Style */
.leaflet-popup-content-wrapper {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;

    color: var(--color-text-primary) !important;
    border: 1px solid var(--border-color-strong) !important;
    border-radius: var(--border-radius-lg) !important;
    box-shadow: var(--shadow-xl), 0 0 40px rgba(102, 126, 234, 0.15) !important;
}

.leaflet-popup-content {
    margin: var(--spacing-lg) !important;
    font-family: var(--font-primary) !important;
    color: var(--color-text-primary) !important;
}

.leaflet-popup-tip {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    border: 1px solid var(--border-color-strong) !important;
}

/* Force dark theme for popup close button */
.leaflet-popup-close-button {
    color: var(--color-text-muted) !important;
}

.leaflet-popup-close-button:hover {
    color: var(--color-text-primary) !important;
}

.popup-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-primary);
}

.popup-category {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
}

.popup-score {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.popup-score-number {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    background: var(--gradient-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.popup-score-label {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.popup-features {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.popup-feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.375rem 0.75rem;
    background: var(--color-bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    font-weight: 600;
}

.popup-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.25rem 0.625rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fbbf24;
    border-radius: var(--border-radius-sm);
    font-size: 0.7rem;
    color: #92400e;
    font-weight: 700;
    margin-left: 0.5rem;
}

.popup-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: var(--spacing-sm);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
}

.popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

/* Popup buttons container (v2.5.3) */
.popup-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: var(--spacing-sm);
}

/* Secondary button for Report Issue */
.popup-btn-secondary {
    flex: 1;
    padding: 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-error);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--border-radius-md);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.popup-btn-secondary:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-1px);
}

/* Radio option labels (v2.5.3) */
.radio-option {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: var(--color-bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-option:hover {
    background: rgba(37, 87, 167, 0.08);
    border-color: rgba(37, 87, 167, 0.3);
}

.radio-option input[type="radio"] {
    margin-right: 0.75rem;
    cursor: pointer;
}

.radio-option span {
    color: var(--color-text-primary);
    font-size: 0.9rem;
}

/* ===================================
   Responsive Design
   =================================== */

/* Mobile Popup Fixes */
@media (max-width: 768px) {
    /* Limit popup height and make scrollable */
    .leaflet-popup-content-wrapper {
        max-height: 60vh; /* Max 60% of viewport height */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .leaflet-popup-content {
        margin: 1rem;
        max-width: 85vw; /* Don't stretch too wide */
    }

    /* Ensure popup doesn't cover bottom controls */
    .leaflet-popup {
        margin-bottom: 80px !important; /* Space for bottom nav */
    }

    /* Smaller text on mobile for better fit */
    .popup-score-number {
        font-size: 2rem;
    }

    .popup-title {
        font-size: 1rem;
    }

    .popup-btn {
        padding: 0.625rem;
        font-size: 0.85rem;
    }
}

/* ===================================
   MOBILE RESPONSIVE (Bottom Drawer)
   =================================== */
@media (max-width: 768px) {
    /* Bottom Drawer Design */
    .sidebar {
        position: fixed;
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        height: 95vh;
        max-height: 95vh;
        border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
        z-index: 900;
        transform: translateY(calc(100% - 60px)); /* Peek 60px */
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto; /* Allow scrolling */
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar.active {
        transform: translateY(0); /* Fully expanded */
    }

    /* Show mobile handle */
    .sidebar-mobile-handle {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-xs);
        padding: var(--spacing-md);
        background: var(--glass-bg);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        border-bottom: 1px solid var(--border-color);
        cursor: pointer;
        user-select: none;
        position: sticky; /* Changed to sticky so it stays at top when scrolling */
        top: 0;
        left: 0;
        right: 0;
        z-index: 10;
    }

    .mobile-handle-bar {
        width: 48px;
        height: 4px;
        background: var(--color-text-muted);
        border-radius: 2px;
        opacity: 0.5;
    }

    .mobile-handle-text {
        font-size: 0.85rem;
        color: var(--color-text-muted);
        font-weight: 600;
    }

    /* Adjust sidebar content for mobile */
    .sidebar-content {
        padding-top: 0; /* No padding needed since handle is sticky */
        padding-bottom: 2rem; /* Add bottom padding for easier scrolling */
    }

    /* Ensure filter sections are expanded and visible on mobile */
    .filter-section-content {
        max-height: none !important; /* Remove height restriction on mobile */
        overflow: visible !important;
    }

    .filter-section-content.expanded {
        max-height: none !important;
    }

    /* Better spacing for filter checkboxes on mobile */
    .filter-checkbox {
        padding: var(--spacing-md);
        min-height: 48px; /* Easier touch targets */
    }

    .filter-checkbox span {
        font-size: 1rem; /* Larger text on mobile */
    }

    .filter-group {
        gap: var(--spacing-xs);
    }

    /* Hide desktop float toggle */
    .sidebar-float-toggle {
        display: none;
    }

    .app-footer {
        left: 0;
        font-size: 0.6rem;
        padding: 0.4rem 0.5rem;
        background: rgba(10, 22, 40, 0.95);
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .app-footer p {
        margin: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .app-footer .disclaimer-text {
        display: none; /* Hide disclaimer on mobile to save space */
    }

    .mobile-menu-fab {
        display: flex; /* Show on mobile */
        align-items: center;
        justify-content: center;
    }

    .map-legend {
        bottom: 80px;
        right: var(--spacing-md);
        font-size: 0.75rem;
        min-width: 220px;
        max-width: calc(100vw - 32px);
    }

    .legend-toggle {
        width: 24px;
        height: 24px;
        top: 4px;
        right: 4px;
    }

    .legend-toggle-icon {
        font-size: 0.85rem;
    }

    .header-content {
        padding: 0 var(--spacing-md);
    }

    .logo-icon {
        font-size: 1.5rem;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .logo .tagline {
        font-size: 0.65rem;
        letter-spacing: 1.5px;
    }

    /* Hide modern tab navigation on mobile - use mobile menu instead */
    .nav-tabs-container {
        display: none !important;
    }

    /* Hide new auth buttons on mobile */
    .auth-btn {
        display: none !important;
    }

    /* Hide sign-in/sign-up buttons on mobile (not user badge) */
    .header-actions .btn-secondary:not(.user-badge) {
        display: none;
    }

    /* Show user badge on mobile when logged in */
    .user-badge {
        display: flex !important;
        padding: 0.5rem 0.75rem !important;
        font-size: 0.85rem !important;
    }

    /* Modal optimizations for mobile */
    .modal {
        padding: var(--spacing-md);
        align-items: flex-end; /* Bottom sheet on mobile */
    }

    .modal {
        padding: 0;
        align-items: flex-end;
        overflow-y: hidden;
    }

    .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 95vh;
        height: auto;
        border-radius: 16px 16px 0 0;
        margin: 0;
        overflow-y: scroll !important;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        position: relative;
    }

    /* Touch-friendly buttons */
    .btn-primary,
    .btn-secondary,
    button {
        min-height: 44px;
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 1rem;
    }

    /* Filter section - collapsed by default on mobile */
    .filter-section {
        padding: var(--spacing-sm);
    }

    .filter-group {
        margin-bottom: var(--spacing-sm);
    }

    /* Score cards more compact on mobile */
    .score-badge {
        font-size: 2rem;
        width: 70px;
        height: 70px;
    }

    /* Evidence cards stack better */
    .evidence-card {
        font-size: 0.85rem;
    }

    /* Feedback buttons stack on mobile */
    .feedback-buttons {
        flex-direction: column;
    }

    .feedback-buttons button {
        width: 100%;
        max-width: none;
    }

    /* Form inputs touch-friendly */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
        min-height: 44px;
    }

    /* Loading/Onboarding screen mobile optimization */
    .loading-content {
        padding: 0.75rem !important;
        max-width: 100% !important;
        width: 92% !important;
    }

    .loading-content > div:first-child {
        margin-bottom: 0.5rem !important;
    }

    .loading-content img {
        max-width: 150px !important;
    }

    .loading-content h1 {
        font-size: 1.3rem !important;
    }

    .loading-content h2 {
        font-size: 0.9rem !important;
        margin-bottom: 0.75rem !important;
    }

    .loading-content h3 {
        font-size: 0.8rem !important;
    }

    .loading-content p {
        font-size: 0.75rem !important;
        line-height: 1.35 !important;
        margin-bottom: 0.75rem !important;
    }

    /* MOBILE LOADING SCREEN - CENTERED GLASS DESIGN */

    .loading-overlay {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 1rem !important;
    }

    .loading-content {
        max-height: 85vh !important;
        overflow-y: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 1.5rem 1.25rem !important;
        max-width: 90% !important;
    }

    /* Hide entire carousel on mobile */
    .loading-content > div:nth-child(3) { /* Carousel container */
        display: none !important;
    }

    /* Logo centered and smaller (80px) */
    .loading-content > div:first-child {
        margin-bottom: 0.75rem !important;
    }

    .loading-content img {
        max-width: 80px !important;
        display: block !important;
        margin: 0 auto !important;
    }

    /* Tagline compact */
    .loading-content > p:first-of-type {
        font-size: 0.75rem !important;
        margin-bottom: 1rem !important;
        text-align: center !important;
    }

    /* "Did You Know" box - compact glass design */
    .loading-content > div:nth-child(2) {
        display: block !important;
        padding: 0.75rem 1rem !important;
        margin-bottom: 1rem !important;
        max-width: 100% !important;
    }

    .loading-content > div:nth-child(2) p:first-child {
        font-size: 0.6rem !important;
        margin-bottom: 0.35rem !important;
    }

    .loading-content > div:nth-child(2) p:last-child {
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
        min-height: auto !important;
    }

    /* Progress section */
    .loading-content > div:last-child {
        margin-top: 1rem !important;
        width: 100% !important;
    }

    /* Progress bar container */
    .loading-content > div:last-child > div:first-child {
        max-width: 100% !important;
        height: 8px !important;
    }

    /* Loading status text */
    #loadingStatus {
        font-size: 0.7rem !important;
        margin-top: 0.5rem !important;
    }

    /* Skip button smaller */
    #skipLoadingBtn {
        padding: 0.6rem 1.25rem !important;
        font-size: 0.75rem !important;
        margin-top: 0.75rem !important;
    }

    /* Compact humor banner on mobile */
    #humorBanner {
        max-width: calc(100vw - 40px) !important;
        font-size: 0.75rem !important;
        padding: 0.7rem 1rem !important;
        bottom: 10px !important;
    }

    /* Modal forms on mobile */
    .modal-content input,
    .modal-content select,
    .modal-content textarea {
        width: 100%;
        box-sizing: border-box;
    }

    /* Sign-up/Sign-in modal optimizations */
    #userSignInModal .modal-content,
    #userProfileModal .modal-content {
        padding: 0 !important;
        max-height: 90vh !important;
    }

    #userSignInModal .modal-content > div,
    #userProfileModal .modal-content > div {
        padding: 1.25rem !important;
    }

    #userSignInModal h2,
    #userProfileModal h2 {
        font-size: 1.3rem !important;
        margin-bottom: 0.75rem !important;
    }

    #userSignInModal p,
    #userProfileModal p {
        font-size: 0.85rem !important;
        margin-bottom: 1rem !important;
    }

    #userSignInModal .btn-primary,
    #userSignInModal .btn-secondary,
    #userProfileModal .btn-primary,
    #userProfileModal .btn-secondary {
        padding: 0.75rem !important;
        font-size: 0.9rem !important;
    }

    /* Compact form groups in modals */
    #userSignInModal .form-group,
    #userSignInModal > div > div,
    #userProfileModal > div > div {
        margin-bottom: 0.75rem !important;
    }

    /* Profile avatar smaller on mobile */
    #profile-user-avatar,
    #profile-user-initials {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
    }

    /* Better header on mobile */
    .header-actions {
        gap: 0.5rem;
    }

    .header-actions .btn-primary,
    .header-actions .btn-secondary {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* Extra small devices (phones in portrait, less than 576px) */
@media (max-width: 576px) {
    .header-content {
        padding: 0 var(--spacing-sm);
    }

    .logo h1 {
        font-size: 1.1rem;
    }

    .logo .tagline {
        display: none; /* Hide tagline on very small screens */
    }

    .modal-content {
        max-height: 90vh;
    }

    .sidebar {
        max-width: 100%; /* Full width on very small screens */
    }

    /* Make filter controls more compact */
    .filter-section h3 {
        font-size: 0.9rem;
    }

    .filter-group label {
        font-size: 0.85rem;
    }

    input[type="range"] {
        height: 32px; /* Easier to grab on touch */
    }

    /* Onboarding even more compact */
    .loading-content h1 {
        font-size: 1.5rem !important;
    }

    .loading-content .loading-spinner {
        width: 40px !important;
        height: 40px !important;
    }

    /* Modal padding smaller */
    .modal-content {
        padding: 1rem;
    }

    /* Score section - stack vertically on mobile */
    .score-section {
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 1.25rem !important;
        text-align: center;
    }

    /* Score info - remove height restriction on mobile */
    .score-info {
        max-height: none !important;
        overflow: visible;
        text-align: left;
    }

    /* Score display smaller on mobile */
    .score-display-large {
        font-size: 2.5rem !important;
        margin: 0 auto;
    }

    /* Score label more compact */
    .score-label {
        font-size: 0.85rem !important;
    }

    /* Confidence badge smaller on mobile */
    .confidence-badge {
        font-size: 0.7rem !important;
        padding: 0.4rem 0.8rem !important;
    }

    /* Score breakdown more compact */
    .score-category {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    /* Evidence cards better word wrapping */
    .score-info div[style*="background: var(--color-bg-elevated)"] {
        padding: 0.6rem !important;
        font-size: 0.75rem !important;
    }

    /* Toggle button smaller on mobile */
    .score-toggle {
        width: 28px !important;
        height: 28px !important;
        font-size: 1rem !important;
    }

    /* Features grid - single column on mobile */
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    /* Feature items more compact */
    .feature-item {
        padding: 0.75rem !important;
        font-size: 0.85rem !important;
    }

    /* Photos grid - single column on mobile */
    .photos-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    /* Section titles smaller on mobile */
    .section-title {
        font-size: 1.1rem !important;
        margin-bottom: 1rem !important;
    }

    /* Location header more compact */
    .location-header {
        padding-bottom: 1rem !important;
    }

    .location-title {
        font-size: 1.3rem !important;
    }

    /* Verification badges stack on mobile */
    .verification-badge {
        font-size: 0.8rem !important;
        padding: 0.6rem !important;
    }

    /* Compact buttons */
    .btn-primary,
    .btn-secondary,
    button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* ===================================
   Scrollbar Styling - Modern
   =================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* ===================================
   Utility Animations
   =================================== */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Loading State */
.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Score Toggle Button */
.score-toggle {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    width: 32px;
    height: 32px;
    background: var(--color-bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: var(--color-text-primary);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.score-toggle:hover {
    background: var(--color-accent-primary);
    transform: scale(1.1) rotate(90deg);
    border-color: var(--color-accent-primary);
}

.score-toggle-icon {
    transition: transform 0.3s ease;
}

.score-info {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                margin 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: none; /* Remove height restriction to allow calculation details to be fully visible */
    opacity: 1;
    overflow-y: visible; /* Allow content to overflow naturally */
}

/* ===================================
   Loading Overlay
   =================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Glass overlay effect - semi-transparent so map shows through */
    background: rgba(26, 47, 79, 0.75);
    backdrop-filter: blur(8px) saturate(1.2);
    -webkit-backdrop-filter: blur(8px) saturate(1.2);
    background-image:
        radial-gradient(at 0% 0%, rgba(20, 184, 166, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(244, 114, 182, 0.05) 0px, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
    /* Subtle glass card for loading content */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 3rem 4rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem auto;
    border: 4px solid rgba(20, 184, 166, 0.2);
    border-top: 4px solid var(--color-accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-content p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin: 0;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Ask ROLLIN Search Feature
   ================================ */

/* Centered Search Modal (Spotlight-style) */
.ask-rollin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    justify-content: center;
    align-items: flex-start;
    padding-top: 10vh;
    z-index: 10000;
    animation: modalBackdropFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalBackdropFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}

.ask-rollin-modal.active {
    display: flex;
}

.ask-rollin-modal-content {
    position: relative;
    width: 90%;
    max-width: 650px;
    max-height: 80vh;
    background: rgba(30, 33, 42, 0.75);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.7),
        0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 40px 100px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

/* Glassy gradient overlay for depth */
.ask-rollin-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.02) 50%,
        transparent 100%
    );
    pointer-events: none;
    border-radius: 24px 24px 0 0;
    z-index: 1;
}

/* Subtle border glow */
.ask-rollin-modal-content::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(245, 158, 11, 0.3),
        rgba(37, 99, 235, 0.2),
        transparent
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.5;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

.ask-rollin-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(232, 234, 237, 0.1);
    border: 1px solid rgba(232, 234, 237, 0.2);
    color: var(--color-text-muted);
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.ask-rollin-close:hover {
    background: rgba(232, 234, 237, 0.2);
    color: var(--color-text-primary);
    transform: rotate(90deg);
}

/* Header */
.ask-rollin-header {
    padding: 2rem 2rem 1rem 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
    animation: headerSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s backwards;
}

@keyframes headerSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ask-rollin-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    color: var(--color-text-primary);
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ask-rollin-header p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    opacity: 0.9;
}

/* Search Input */
.ask-rollin-search {
    padding: 0 2rem;
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    animation: searchSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s backwards;
}

@keyframes searchSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ask-rollin-search input {
    flex: 1;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    color: var(--color-text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ask-rollin-search input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--color-accent-primary);
    box-shadow:
        0 0 0 4px rgba(245, 158, 11, 0.15),
        0 4px 16px rgba(245, 158, 11, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.ask-rollin-search input::placeholder {
    color: var(--color-text-muted);
    opacity: 0.6;
}

.ask-rollin-search-btn {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--color-accent-primary), #fbbf24);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.ask-rollin-search-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ask-rollin-search-btn:hover::before {
    width: 200px;
    height: 200px;
}

.ask-rollin-search-btn svg {
    width: 20px;
    height: 20px;
    stroke: #1a1d26;
    stroke-width: 2.5;
    position: relative;
    z-index: 1;
}

.ask-rollin-search-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.ask-rollin-search-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Example Queries */
.ask-rollin-examples {
    padding: 0 2rem 1rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.examples-label {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

/* Disclaimer Notice */
.ask-rollin-disclaimer {
    margin: 0 2rem 1.5rem 2rem;
    padding: 1rem;
    background: rgba(37, 87, 167, 0.08);
    border: 1px solid rgba(37, 87, 167, 0.2);
    border-radius: 12px;
}

.ask-rollin-disclaimer .disclaimer-title {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.ask-rollin-disclaimer p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
}

.ask-rollin-disclaimer .disclaimer-beta {
    font-size: 0.75rem;
    color: rgba(251, 191, 36, 0.9);
    font-style: italic;
    margin: 0;
}

.example-query {
    padding: 0.75rem 1rem;
    background: rgba(232, 234, 237, 0.05);
    border: 1px solid rgba(232, 234, 237, 0.1);
    border-radius: 8px;
    color: var(--color-text-primary);
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.example-query:hover {
    background: rgba(232, 234, 237, 0.1);
    border-color: var(--color-accent-primary);
    transform: translateX(4px);
}

/* Results */
.ask-rollin-results {
    flex: 1;
    overflow-y: auto;
    padding: 0 2rem 2rem 2rem;
    display: none;
}

.ask-rollin-results.has-results {
    display: block;
}

.result-item {
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: rgba(232, 234, 237, 0.05);
    border: 1px solid rgba(232, 234, 237, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    animation: resultFadeIn 0.3s ease forwards;
    opacity: 0;
}

.result-item:hover {
    background: rgba(232, 234, 237, 0.1);
    border-color: var(--color-accent-primary);
    transform: translateX(4px);
}

.result-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-details {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.result-score {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
}

@keyframes resultFadeIn {
    to {
        opacity: 1;
    }
}

/* Loading State */
.ask-rollin-loading {
    padding: 3rem 2rem;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 3px solid rgba(232, 234, 237, 0.1);
    border-top-color: var(--color-accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.ask-rollin-loading p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ask-rollin-modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .ask-rollin-header {
        padding: 1.5rem 1rem 0.75rem 1rem;
    }

    .ask-rollin-search {
        padding: 0 1rem;
    }

    .ask-rollin-examples {
        padding: 0 1rem 1rem 1rem;
    }

    .ask-rollin-disclaimer {
        margin: 0 1rem 1rem 1rem;
        padding: 0.75rem;
    }

    .ask-rollin-results {
        padding: 0 1rem 1rem 1rem;
    }
}

/* ===================================
   CUISINE TAGGER
   ================================ */

/* Popup cuisine display */
.popup-cuisine {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0.25rem 0 0.75rem 0;
}

.popup-cuisine-tag-btn {
    background: rgba(37, 87, 167, 0.1);
    border: 1px solid rgba(37, 87, 167, 0.3);
    color: var(--color-accent-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.popup-cuisine-tag-btn:hover {
    background: rgba(37, 87, 167, 0.2);
    border-color: rgba(37, 87, 167, 0.5);
}

/* Popup verification count (v2.5.3) */
.popup-verification-count {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin: 0.5rem 0 0.75rem 0;
    padding: 0.5rem 0.75rem;
    background: rgba(34, 197, 94, 0.08);
    border-left: 3px solid rgba(34, 197, 94, 0.4);
    border-radius: 4px;
    line-height: 1.4;
}

/* Cuisine Tagger Modal */
.cuisine-tagger-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.cuisine-tagger-modal.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.cuisine-tagger-content {
    background: var(--color-bg-primary);
    border: 1px solid rgba(232, 234, 237, 0.1);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.cuisine-tagger-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.cuisine-tagger-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
}

.cuisine-tagger-content h3 {
    margin: 0 0 0.5rem 0;
    color: var(--color-text-primary);
    font-size: 1.25rem;
}

.cuisine-tagger-location-name {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 0 0 1.5rem 0;
}

.cuisine-tagger-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.cuisine-tag-option {
    background: rgba(37, 41, 50, 0.5);
    border: 1px solid rgba(232, 234, 237, 0.1);
    border-radius: 12px;
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.cuisine-tag-option:hover {
    background: rgba(37, 87, 167, 0.15);
    border-color: rgba(37, 87, 167, 0.3);
    transform: translateY(-2px);
}

.cuisine-tag-option .icon {
    font-size: 1.5rem;
}

.cuisine-tag-option .label {
    font-size: 0.8rem;
    color: var(--color-text-primary);
}

.cuisine-tagger-help {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: center;
    margin: 1rem 0 0 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cuisine-tagger-content {
        padding: 1.5rem;
        max-width: 95%;
    }

    .cuisine-tagger-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.5rem;
    }
}
