html,
        body {
            height: 100%;
            margin: 0;
        }

        body {
            background: #f8fafc;
        }

        #map {
            height: 100%;
            background: #eef2ff;
        }

        .leaflet-tooltip.tooltip-name {
            background: rgba(17, 24, 39, 0.75);
            color: #fff;
            border: none;
            box-shadow: none;
            font: 600 12px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
            padding: 4px 8px;
            border-radius: 4px;
            text-align: center;
            white-space: nowrap;
            pointer-events: none;
        }

        .map-legend {
            position: absolute;
            z-index: 1000;
            right: 12px;
            bottom: 12px;
            background: #fff;
            border-radius: 8px;
            padding: 8px 12px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
            font: 14px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
            min-width: 150px;
        }

        .map-legend h4 {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 6px;
            color: #334155;
        }

        #legendGradient {
            height: 10px;
            width: 100%;
            border-radius: 3px;
            border: 1px solid #cbd5e1;
        }

        .province-selected {
            weight: 3 !important;
            color: #f59e0b !important;
            fillOpacity: 0.85 !important;
        }

        #modalOverlay {
            position: fixed;
            display: none;
            inset: 0;
            z-index: 10000;
            pointer-events: auto;
        }

        .app-header {
            height: 56px;
        }

        .app-shell {
            position: fixed;
            inset: 56px 0 0 0;
            display: flex;
            min-height: calc(100vh - 56px);
        }

        .map-wrap {
            flex: 1;
            position: relative;
        }

        .sidebar {
            width: 320px;
            max-width: 90vw;
            background: #fff;
            border-right: 1px solid #e5e7eb;
            overflow: auto;
        }

        .drawer-mask {
            position: fixed;
            inset: 56px 0 0 0;
            background: rgba(0, 0, 0, .35);
            display: none;
        }