/* ============================================
   CSS Variables
   ============================================ */
:root {
    --beige-sand: #e2d0a7;
    --ivory-white: #f5efdf;
    --brick-red: #a85555;
    --warm-brown: #a77d54;
    --leaf-green: #52a551;
    --slate-blue: #7388a5;
    --magenta-purple: #a555a1;
    --deep-navy: #254d74;
    --charcoal-gray: #565755;
}

/* ============================================
   BASE STYLES - Mobile First (< 640px)
   ============================================ */

/* Reset and Base Layout */
html,
body {
    height: 100%;
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    background-color: var(--ivory-white);
    color: var(--charcoal-gray);
}

body {
    display: flex;
    overflow: hidden;
    /* Prevent body scroll, content areas handle their own scrolling */
}

/* Typography - Mobile Base */
.heading-primary {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--deep-navy);
    line-height: 1.3;
}

.heading-secondary {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--deep-navy);
    text-transform: uppercase;
}

.text-body {
    font-size: 0.8125rem;
    line-height: 1.5;
}

.text-caption {
    font-size: 0.6875rem;
    color: var(--slate-blue);
}

/* ============================================
   SIDEBAR - Mobile (Full-screen overlay)
   ============================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--ivory-white);
    border-right: 1px solid var(--beige-sand);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow-y: auto;
    transform: translateX(0);
    /* Visible by default */
}

.sidebar.collapsed {
    transform: translateX(-100%);
    /* Hidden when collapsed */
}

.sidebar.half-collapsed {
    transform: translateX(-50%);
    /* Half visible, half hidden */
}

.sidebar-content {
    padding: 1rem;
}

/* Sidebar Toggle Button - Mobile */
.sidebar-toggle {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    width: 66px;
    height: 66px;
    background-color: var(--slate-blue);
    border: 2px solid var(--deep-navy);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    box-shadow: 0 3px 12px rgba(37, 77, 116, 0.3);
}

.sidebar-toggle:hover {
    background-color: var(--deep-navy);
    box-shadow: 0 4px 16px rgba(37, 77, 116, 0.5);
}

.sidebar-toggle svg {
    width: 22px;
    height: 22px;
    fill: var(--ivory-white);
    transition: transform 0.3s ease;
}

body:has(.sidebar:not(.collapsed)) .sidebar-toggle svg {
    transform: rotate(0deg);
}

body:has(.sidebar.collapsed) .sidebar-toggle svg {
    transform: rotate(180deg);
}

body:has(.sidebar.half-collapsed) .sidebar-toggle svg {
    transform: rotate(90deg);
}

/* ============================================
   MAP & CHARTS CONTAINERS - Mobile
   ============================================ */
#map {
    height: 100vh;
    flex: 1;
    background-color: var(--ivory-white);
}

#charts-container {
    height: 100vh;
    flex: 1;
    overflow-y: auto;
    background-color: var(--ivory-white);
    display: none;
    padding: 1rem;
}

#charts-container.active {
    display: block;
}

/* ============================================
   VIEW SWITCHER - Mobile
   ============================================ */
.view-switcher {
    display: flex;
    gap: 0.375rem;
    margin-bottom: 1rem;
    background-color: rgba(226, 208, 167, 0.3);
    padding: 0.25rem;
    border-radius: 6px;
}

.view-switcher button {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: none;
    background-color: transparent;
    color: var(--charcoal-gray);
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-switcher button.active {
    background-color: var(--deep-navy);
    color: var(--ivory-white);
}

.view-switcher button:hover:not(.active) {
    background-color: rgba(115, 136, 165, 0.2);
}

/* ============================================
   CARDS AND SECTIONS - Mobile
   ============================================ */
.stats-card {
    background: linear-gradient(135deg, var(--ivory-white) 0%, #faf8f3 100%);
    border: 1px solid var(--beige-sand);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.filter-section {
    padding: 1rem 0;
    border-bottom: 1px solid var(--beige-sand);
}

.filter-section:last-child {
    border-bottom: none;
}

/* ============================================
   STATS GRID - Mobile (Single Column)
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.stat-item {
    text-align: center;
    padding: 0.75rem;
    background-color: rgba(115, 136, 165, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(226, 208, 167, 0.5);
}

.stat-number {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--deep-navy);
}

.stat-label {
    font-size: 0.6875rem;
    color: var(--slate-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* Breakdown styles */
.stat-breakdown {
    border-top: 1px solid var(--beige-sand);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0;
}

.breakdown-number {
    font-size: 0.875rem;
    font-weight: 600;
}

.breakdown-label {
    font-size: 0.6875rem;
    color: var(--slate-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   FORM ELEMENTS - Mobile (Touch-friendly)
   ============================================ */
.input-field {
    background-color: var(--ivory-white);
    border: 1px solid var(--beige-sand);
    color: var(--charcoal-gray);
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    width: 100%;
    min-height: 44px;
    /* Touch-friendly minimum */
}

.input-field:focus {
    outline: none;
    border-color: var(--slate-blue);
    box-shadow: 0 0 0 3px rgba(115, 136, 165, 0.1);
}

.input-field::placeholder {
    color: var(--slate-blue);
}

.select-field {
    background-color: var(--ivory-white);
    border: 1px solid var(--beige-sand);
    color: var(--charcoal-gray);
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.875rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
    /* Touch-friendly minimum */
}

.select-field:focus {
    outline: none;
    border-color: var(--slate-blue);
    box-shadow: 0 0 0 3px rgba(115, 136, 165, 0.1);
}

/* ============================================
   BUTTONS - Mobile
   ============================================ */
.btn-primary {
    background-color: var(--deep-navy);
    color: var(--ivory-white);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
}

.btn-primary:hover {
    background-color: var(--slate-blue);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--slate-blue);
    border: 1px solid var(--beige-sand);
    padding: 0.625rem 1rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 40px;
}

.btn-secondary:hover {
    background-color: var(--beige-sand);
    border-color: var(--slate-blue);
}

/* ============================================
   CHECKBOXES - Mobile
   ============================================ */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    cursor: pointer;
    min-height: 44px;
    /* Touch-friendly */
}

.checkbox-input {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--beige-sand);
    border-radius: 4px;
    background-color: var(--ivory-white);
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-input:checked {
    background-color: var(--slate-blue);
    border-color: var(--slate-blue);
}

.checkbox-input:checked::after {
    content: '✓';
    position: absolute;
    top: -1px;
    left: 3px;
    color: var(--ivory-white);
    font-size: 14px;
    font-weight: 600;
}

.checkbox-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(115, 136, 165, 0.1);
}

/* ============================================
   RANGE SLIDERS - Mobile
   ============================================ */
.range-container {
    position: relative;
    height: 32px;
    margin: 1rem 0;
}

.slider-track {
    position: absolute;
    background: var(--beige-sand);
    height: 4px;
    top: 14px;
    width: 100%;
    border-radius: 2px;
}

.slider-range {
    position: absolute;
    background: var(--slate-blue);
    height: 4px;
    top: 14px;
    border-radius: 2px;
    z-index: 10;
}

.range-slider-multi {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 32px;
    background: transparent;
    pointer-events: none;
    position: absolute;
    left: 0;
    top: 0;
}

.range-slider-multi::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--slate-blue);
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 20;
    border: 3px solid var(--ivory-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.range-slider-multi::-webkit-slider-thumb:active {
    background: var(--deep-navy);
    transform: scale(1.1);
}

.range-slider-multi::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border: 3px solid var(--ivory-white);
    border-radius: 50%;
    background: var(--slate-blue);
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 20;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* ============================================
   FILTER CONTAINER - Mobile
   ============================================ */
.filter-container {
    background-color: rgba(245, 239, 223, 0.5);
    border: 1px solid var(--beige-sand);
    border-radius: 6px;
    padding: 0.75rem;
    max-height: 180px;
    overflow-y: auto;
}

/* ============================================
   CHARTS - Mobile
   ============================================ */
.chart-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.chart-card {
    background: linear-gradient(135deg, var(--ivory-white) 0%, #faf8f3 100%);
    border: 1px solid var(--beige-sand);
    border-radius: 10px;
    padding: 1rem;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.chart-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--deep-navy);
    margin-bottom: 0.375rem;
}

.chart-subtitle {
    font-size: 0.75rem;
    color: var(--slate-blue);
    margin-bottom: 0.75rem;
}

/* ============================================
   LOADING - Mobile
   ============================================ */
.loader {
    border: 3px solid var(--beige-sand);
    border-top: 3px solid var(--slate-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* ============================================
   LEAFLET MAP CUSTOMIZATIONS - Mobile
   ============================================ */
.leaflet-popup-content-wrapper {
    background-color: var(--ivory-white);
    border: 1px solid var(--beige-sand);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
    margin: 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--charcoal-gray);
}

.leaflet-popup-tip {
    background-color: var(--ivory-white);
    border: 1px solid var(--beige-sand);
}

.control-area-label {
    background-color: rgba(245, 239, 223, 0.85) !important;
    border: 1px solid var(--beige-sand) !important;
    border-radius: 4px !important;
    padding: 3px 6px !important;
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    color: var(--deep-navy) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    white-space: nowrap !important;
}

.control-area-label::before {
    display: none !important;
}

/* ============================================
   SCROLLBAR - Mobile (Thinner)
   ============================================ */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: var(--beige-sand);
    border-radius: 2px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--slate-blue);
    border-radius: 2px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--deep-navy);
}

/* ============================================
   UTILITY - Hide Elements
   ============================================ */
#map>div:nth-child(2)>div:nth-child(2),
#map>div:nth-child(2)>div:nth-child(1),
body>div:nth-child(2)>div:nth-child(2)>div:nth-child(4) {
    display: none;
}

/* ============================================
   RESPONSIVE - SMALL TABLETS (≥ 640px)
   ============================================ */
@media (min-width: 640px) {

    /* Typography */
    .heading-primary {
        font-size: 1.375rem;
    }

    .heading-secondary {
        font-size: 0.8125rem;
    }

    .text-body {
        font-size: 0.875rem;
    }

    .text-caption {
        font-size: 0.75rem;
    }

    /* Sidebar - Narrower overlay */
    .sidebar {
        width: 380px;
    }

    .sidebar-content {
        padding: 1.25rem;
    }

    /* Stats Grid - 2 columns */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.875rem;
    }

    /* Cards */
    .stats-card {
        padding: 1.25rem;
    }

    .filter-section {
        padding: 1.25rem 0;
    }

    /* Charts */
    #charts-container {
        padding: 1.5rem;
    }

    .chart-card {
        min-height: 320px;
        padding: 1.25rem;
    }

    .chart-title {
        font-size: 1.125rem;
    }

    .chart-subtitle {
        font-size: 0.8125rem;
    }

    /* Scrollbar */
    .custom-scrollbar::-webkit-scrollbar {
        width: 5px;
    }
}

/* ============================================
   RESPONSIVE - TABLETS (≥ 768px)
   ============================================ */
@media (min-width: 768px) {

    /* Typography */
    .heading-primary {
        font-size: 1.5rem;
    }

    .text-body {
        font-size: 0.875rem;
    }

    /* Sidebar */
    .sidebar {
        width: 400px;
    }

    /* Stats */
    .stat-number {
        font-size: 1.375rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .breakdown-number {
        font-size: 0.9375rem;
    }

    .breakdown-label {
        font-size: 0.75rem;
    }

    /* Charts - 2 columns */
    .chart-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .chart-card {
        min-height: 350px;
    }
}

/* ============================================
   RESPONSIVE - LAPTOPS (≥ 1024px)
   ============================================ */
@media (min-width: 1024px) {

    /* Sidebar - Fixed position, always visible */
    .sidebar {
        position: relative;
        width: 384px;
        height: 100vh;
        transform: translateX(0);
        flex-shrink: 0;
    }

    .sidebar.collapsed {
        transform: translateX(-100%);
        width: 0 !important;
    }

    .sidebar-content {
        padding: 1.5rem;
    }

    /* Toggle button repositioning */
    .sidebar-toggle {
        left: 384px;
        top: 1rem;
        border-left: none;
        border-radius: 0 6px 6px 0;
    }

    body:has(.sidebar.collapsed) .sidebar-toggle {
        left: 0;
    }

    /* Stats */
    .stats-grid {
        gap: 1rem;
        margin-top: 1rem;
    }

    .stat-item {
        padding: 0.75rem;
    }

    /* Cards */
    .stats-card {
        padding: 1.5rem;
    }

    .filter-section {
        padding: 1.5rem 0;
    }

    /* Form elements */
    .input-field,
    .select-field {
        padding: 0.75rem 1rem;
    }

    /* Buttons */
    .btn-primary {
        padding: 0.75rem 1.5rem;
    }

    .btn-secondary {
        padding: 0.75rem 1.5rem;
    }

    /* Range sliders */
    .range-container {
        height: 24px;
    }

    .slider-track {
        top: 10px;
    }

    .slider-range {
        top: 10px;
    }

    .range-slider-multi {
        height: 24px;
    }

    .range-slider-multi::-webkit-slider-thumb {
        width: 20px;
        height: 20px;
    }

    .range-slider-multi::-moz-range-thumb {
        width: 20px;
        height: 20px;
    }

    /* Charts */
    #charts-container {
        padding: 2rem;
    }

    .chart-card {
        min-height: 400px;
        padding: 1.5rem;
    }

    .chart-title {
        font-size: 1.25rem;
    }

    .chart-subtitle {
        font-size: 0.875rem;
    }

    /* Scrollbar */
    .custom-scrollbar::-webkit-scrollbar {
        width: 6px;
    }

    .custom-scrollbar::-webkit-scrollbar-track {
        border-radius: 3px;
    }

    .custom-scrollbar::-webkit-scrollbar-thumb {
        border-radius: 3px;
    }

    /* Filter container */
    .filter-container {
        padding: 1rem;
        max-height: 200px;
    }

    /* Checkboxes */
    .checkbox-input {
        width: 16px;
        height: 16px;
        border-radius: 3px;
    }

    .checkbox-input:checked::after {
        font-size: 12px;
        left: 2px;
    }

    /* View switcher */
    .view-switcher {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
        padding: 0.25rem;
        border-radius: 8px;
    }

    .view-switcher button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        border-radius: 6px;
    }
}

/* ============================================
   RESPONSIVE - LARGE SCREENS (≥ 1440px)
   ============================================ */
@media (min-width: 1440px) {

    /* Typography */
    .heading-primary {
        font-size: 1.75rem;
    }

    .heading-secondary {
        font-size: 1rem;
    }

    .text-body {
        font-size: 1rem;
    }

    .text-caption {
        font-size: 0.875rem;
    }

    /* Sidebar */
    .sidebar {
        width: 28rem;
        /* 448px */
    }

    .sidebar-content {
        padding: 2rem;
    }

    .sidebar-toggle {
        left: 28rem;
        width: 48px;
        height: 48px;
    }

    .sidebar-toggle svg {
        width: 24px;
        height: 24px;
    }

    /* Stats */
    .stats-grid {
        gap: 1.25rem;
        margin-top: 1.25rem;
    }

    .stat-item {
        padding: 1rem;
        border-radius: 8px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.875rem;
        margin-top: 0.375rem;
    }

    .breakdown-number {
        font-size: 1rem;
    }

    .breakdown-label {
        font-size: 0.875rem;
    }

    /* Cards */
    .stats-card {
        border-radius: 10px;
        padding: 1.75rem;
    }

    .filter-section {
        padding: 1.75rem 0;
    }

    /* Form elements */
    .input-field {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
        border-radius: 8px;
    }

    .select-field {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
        border-radius: 8px;
    }

    /* Buttons */
    .btn-primary {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
        border-radius: 8px;
    }

    .btn-secondary {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
        border-radius: 8px;
    }

    /* Checkboxes */
    .checkbox-container {
        gap: 0.875rem;
        padding: 0.625rem 0;
    }

    .checkbox-input {
        width: 18px;
        height: 18px;
        border-radius: 4px;
    }

    .checkbox-input:checked::after {
        font-size: 14px;
        left: 2.5px;
    }

    /* Range sliders */
    .range-container {
        height: 28px;
        margin: 1.25rem 0;
    }

    .slider-track {
        height: 5px;
        top: 11.5px;
        border-radius: 2.5px;
    }

    .slider-range {
        height: 5px;
        top: 11.5px;
        border-radius: 2.5px;
    }

    .range-slider-multi {
        height: 28px;
    }

    .range-slider-multi::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }

    .range-slider-multi::-moz-range-thumb {
        width: 24px;
        height: 24px;
    }

    /* View switcher */
    .view-switcher {
        gap: 0.625rem;
        margin-bottom: 1.75rem;
        padding: 0.375rem;
        border-radius: 10px;
    }

    .view-switcher button {
        padding: 0.625rem 1.25rem;
        font-size: 1rem;
        border-radius: 8px;
    }

    /* Charts */
    .chart-grid {
        gap: 2rem;
    }

    .chart-card {
        border-radius: 12px;
    }

    /* Leaflet */
    .leaflet-popup-content-wrapper {
        border-radius: 10px;
    }

    .leaflet-popup-content {
        margin: 1.25rem;
        font-size: 1rem;
        line-height: 1.6;
    }

    .leaflet-control-zoom a {
        width: 36px !important;
        height: 36px !important;
        line-height: 36px !important;
        font-size: 22px !important;
    }
}

/* ============================================
   RESPONSIVE - EXTRA LARGE (≥ 1920px)
   ============================================ */
@media (min-width: 1920px) {

    /* Typography */
    .heading-primary {
        font-size: 2rem;
    }

    .heading-secondary {
        font-size: 1.125rem;
    }

    .text-body {
        font-size: 1.125rem;
    }

    .text-caption {
        font-size: 1rem;
    }

    /* Sidebar */
    .sidebar {
        width: 32rem;
        /* 512px */
    }

    .sidebar-content {
        padding: 2.5rem;
    }

    .sidebar-toggle {
        left: 32rem;
        width: 52px;
        height: 52px;
    }

    .sidebar-toggle svg {
        width: 28px;
        height: 28px;
    }

    /* Stats */
    .stats-grid {
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .stat-item {
        padding: 1.25rem;
        border-radius: 10px;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 1rem;
        margin-top: 0.5rem;
    }

    .breakdown-number {
        font-size: 1.125rem;
    }

    .breakdown-label {
        font-size: 1rem;
    }

    /* Cards */
    .stats-card {
        border-radius: 12px;
        padding: 2rem;
    }

    .filter-section {
        padding: 2rem 0;
    }

    /* Form elements */
    .input-field {
        padding: 1rem 1.5rem;
        font-size: 1.125rem;
        border-radius: 10px;
    }

    .select-field {
        padding: 1rem 1.5rem;
        font-size: 1.125rem;
        border-radius: 10px;
    }

    /* Buttons */
    .btn-primary {
        padding: 1rem 2rem;
        font-size: 1.125rem;
        border-radius: 10px;
    }

    .btn-secondary {
        padding: 1rem 2rem;
        font-size: 1.125rem;
        border-radius: 10px;
    }

    /* Checkboxes */
    .checkbox-container {
        gap: 1rem;
        padding: 0.75rem 0;
    }

    .checkbox-input {
        width: 20px;
        height: 20px;
        border-radius: 5px;
        border-width: 2px;
    }

    .checkbox-input:checked::after {
        font-size: 16px;
        left: 3px;
        top: -2px;
    }

    /* Range sliders */
    .range-container {
        height: 32px;
        margin: 1.5rem 0;
    }

    .slider-track {
        height: 6px;
        top: 13px;
        border-radius: 3px;
    }

    .slider-range {
        height: 6px;
        top: 13px;
        border-radius: 3px;
    }

    .range-slider-multi {
        height: 32px;
    }

    .range-slider-multi::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
        border-width: 4px;
    }

    .range-slider-multi::-moz-range-thumb {
        width: 28px;
        height: 28px;
        border-width: 4px;
    }

    /* View switcher */
    .view-switcher {
        gap: 0.75rem;
        margin-bottom: 2rem;
        padding: 0.5rem;
        border-radius: 12px;
    }

    .view-switcher button {
        padding: 0.75rem 1.5rem;
        font-size: 1.125rem;
        border-radius: 10px;
    }

    /* Leaflet */
    .leaflet-popup-content-wrapper {
        border-radius: 12px;
    }

    .leaflet-popup-content {
        margin: 1.5rem;
        font-size: 1.125rem;
        line-height: 1.7;
    }

    .leaflet-control-zoom a {
        width: 40px !important;
        height: 40px !important;
        line-height: 40px !important;
        font-size: 24px !important;
    }
}