
        body {
            margin: 0;
            font-family: 'Poppins', Arial, sans-serif;
        }

        #map {
            height: 100%;
            width: 100%;
        }

        .leaflet-popup-content table {
            font-size: 12px;
        }

        .leaflet-popup-content td {
            word-break: break-word;
        }

        /* ================= SIDEBAR ================= */
        #sidebar {
            position: fixed;
            top: 0;
            right: 0;

            width: 260px;
            box-sizing: border-box;

            height: 100%;
            background: #1e3a8a;
            color: #ffffff;
            box-shadow: -5px 0 15px rgba(0, 0, 0, .3);
            transform: translateX(100%);
            transition: .3s;
            z-index: 1000;
            overflow: hidden;
            padding: 15px;
            display: flex;
            flex-direction: column;
        }

        #sidebar.active {
            transform: translateX(0);
        }

        #toggleBtn {
            position: fixed;
            top: 15px;
            right: 15px;
            z-index: 2000;
            padding: 10px 14px;
            border: none;
            border-radius: 6px;
            background: #1e3a8a;
            color: white;
            cursor: pointer;
            box-shadow: 0 4px 6px rgba(0, 0, 0, .2);
            transition: right .3s ease;
            font-size: 16px;
            font-family: inherit;
        }

        /* ================= TABS ================= */
        .tabs {
            display: flex;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 6px;
            overflow: hidden;
            margin-bottom: 15px;
            flex-shrink: 0;
        }

        .tab {
            flex: 1;
            padding: 10px;
            text-align: center;
            cursor: pointer;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.7);
            font-size: 14px;
            transition: background .2s, color .2s;
        }

        .tab:hover {
            background: rgba(255, 255, 255, 0.15);
            color: white;
        }

        .tab.active {
            background: #3b82f6;
            color: white;
        }

        .tab-content {
            display: none;
            flex: 1;
            overflow-y: auto;
            padding-right: 5px;
            min-height: 0;
        }

        /* Scrollbar styles untuk tab content */
        .tab-content::-webkit-scrollbar {
            width: 6px;
        }

        .tab-content::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 3px;
        }

        .tab-content::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 3px;
        }

        .tab-content::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.4);
        }

        .tab-content.active {
            display: block;
        }

        /* ================= ROW ================= */
        .row {
            display: flex;
            align-items: center;
            margin-top: 12px;
            font-size: 14px;
        }

        .arrow {
            margin-right: 8px;
            cursor: pointer;
            transition: .3s;
            font-size: 10px;
            width: 12px;
            text-align: center;
            color: rgba(255, 255, 255, 0.6);
        }

        .arrow.rotate {
            transform: rotate(90deg);
        }

        .toggle {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            margin-right: 10px;
            cursor: pointer;
            transition: .2s;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .toggle.active {
            background: #4ade80;
            box-shadow: 0 0 5px rgba(74, 222, 128, 0.5);
        }

        .year-container {
            display: none;
            margin-left: 20px;
            padding-left: 10px;
            border-left: 1px dashed rgba(255, 255, 255, 0.2);
        }

        input {
            width: 100%;
            padding: 10px 12px;
            margin-bottom: 15px;
            border-radius: 6px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            background: rgba(255, 255, 255, 0.1);
            color: white;
            box-sizing: border-box;
            font-family: inherit;
            transition: border-color .2s;
        }

        input::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }

        input:focus {
            outline: none;
            border-color: #3b82f6;
            background: rgba(255, 255, 255, 0.15);
        }

        hr {
            border: 0;
            border-top: 1px solid rgba(255, 255, 255, 0.15);
            margin: 15px 0;
        }

        /* ================= BASEMAP & CUSTOM CONTROLS ================= */
        .custom-basemap-container {
            position: relative;
        }

        .basemap-toggle-btn {
            background-color: #1e3a8a;
            border-radius: 6px;
            width: 34px;
            height: 34px;
            border: none;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
            cursor: pointer;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27-7.38 5.74zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16z'/%3E%3C/svg%3E");
            background-size: 20px;
            background-position: center;
            background-repeat: no-repeat;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .basemap-toggle-btn:hover {
            background-color: #3b82f6;
        }

        .basemap-menu {
            position: absolute;
            top: 0;
            left: 42px;
            background-color: #1e3a8a;
            color: white;
            padding: 12px 18px 12px 14px;
            border-radius: 6px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
            display: flex;
            flex-direction: column;
            gap: 15px;
            min-width: max-content;
            width: max-content;
            white-space: nowrap;
            z-index: 1000;
            font-size: 13px;
            font-family: 'Poppins', Arial, sans-serif;
        }

        .basemap-option {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            text-align: left;
            cursor: pointer;
        }

        .basemap-option input[type="radio"] {
            width: auto !important;
            margin: 0 10px 0 0;
            padding: 0 !important;
            cursor: pointer;
            flex-shrink: 0;
        }

        /* ================= POPUP KUSTOM ================= */
        .leaflet-popup-content-wrapper,
        .leaflet-popup-tip {
            background: #ffffff !important;
            color: #333333 !important;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
        }

        .leaflet-popup-close-button {
            color: #666666 !important;
            opacity: 0.8;
            font-weight: normal !important;
        }

        .leaflet-popup-close-button:hover {
            color: #000000 !important;
        }

        .home-control-btn {
            background-color: #1e3a8a;
            color: white;
            border: none;
            border-radius: 6px;
            width: 34px;
            height: 34px;
            cursor: pointer;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
            font-size: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E");
            background-size: 20px;
            background-position: center;
            background-repeat: no-repeat;
        }

        .home-control-btn:hover {
            background-color: #3b82f6;
        }

        #searchResult div {
            padding: 8px 12px;
            background: rgba(255, 255, 255, 0.05);
            margin-bottom: 6px;
            border-radius: 6px;
            cursor: pointer;
            border: 1px solid rgba(255, 255, 255, 0.15);
            font-size: 13px;
            transition: .2s;
        }

        #searchResult div:hover {
            background: #3b82f6;
            border-color: #3b82f6;
        }

        #sidebar span {
            white-space: normal;
            word-break: break-word;
        }

    