:root {
    /* Brand Colors (Vibrant/Neon-ish) */
    --color-primary: #3b82f6;
    /* Electric Blue */
    --color-primary-light: #eff6ff;
    --color-accent: #8b5cf6;
    /* Violet */

    /* Semantic Colors */
    --color-success: #10b981;
    --color-success-glow: rgba(16, 185, 129, 0.2);
    --color-danger: #ef4444;
    --color-danger-glow: rgba(239, 68, 68, 0.2);
    --color-warning: #f59e0b;
    --color-warning-glow: rgba(245, 158, 11, 0.2);

    /* Backgrounds & Surfaces */
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-surface-glass: rgba(255, 255, 255, 0.7);
    --color-text: #0f172a;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;

    /* Depth */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-float: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 15px rgba(59, 130, 246, 0.15);
}

/* Dark Mode Overrides */
@media (prefers-color-scheme: dark) {
    :root {
        --color-primary: #60a5fa;
        --color-primary-light: #1e3a8a;

        --color-bg: #0f172a;
        /* Slate 900 */
        --color-surface: #1e293b;
        /* Slate 800 */
        --color-surface-glass: rgba(30, 41, 59, 0.7);
        --color-text: #f1f5f9;
        --color-text-muted: #94a3b8;
        --color-border: #334155;

        --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
        --shadow-float: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Layout */
.app-header {
    background: transparent;
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    pointer-events: none;
    /* Let clicks pass through to map/content */
}

.app-header>* {
    pointer-events: auto;
    /* Re-enable pointer events for buttons/title */
}

.app-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0.25rem 0;
    text-shadow: 0 2px 10px rgba(59, 130, 246, 0.1);
}

.app-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-md);
    padding-top: 5rem;
    /* Space for absolute header */
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    height: 100vh;
}

/* Utilities */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Map specific override */
is-closed-map {
    height: 100%;
    width: 100%;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-float);
    border: 1px solid var(--color-border);
    position: relative;
    z-index: 0;
}

.hidden {
    display: none !important;
}