#map { 
        height: 720px; 
        border-radius: 8px; 
        overflow: hidden; 
        position: relative; 
        background: #f8f9fa;
    }
    
    /* Full screen mode */
    #map.fullscreen-mode {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 99999 !important;
        border-radius: 0 !important;
    }
    
    /* Tombol full screen saat aktif */
    #btn-fullscreen.active {
        background: #0d6efd;
        color: white;
        border-color: #0d6efd;
    }
    
    /* Drag and Drop Zone */
    .drop-zone-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(13, 110, 253, 0.9);
        z-index: 99999;
        display: none;
        align-items: center;
        justify-content: center;
        pointer-events: none;
    }
    
    .drop-zone-overlay.active {
        display: flex;
        pointer-events: all;
    }
    
    .drop-zone-content {
        text-align: center;
        color: white;
        background: rgba(0, 0, 0, 0.7);
        padding: 40px;
        border-radius: 20px;
        border: 3px dashed white;
        backdrop-filter: blur(10px);
    }
    
    .drop-zone-content i {
        font-size: 64px;
        margin-bottom: 20px;
    }
    
    .drop-zone-content h3 {
        margin-bottom: 10px;
        font-size: 24px;
    }
    
    .drop-zone-content p {
        margin-bottom: 0;
        font-size: 14px;
        opacity: 0.9;
    }
    
    .drop-zone-highlight {
        border: 3px solid #0d6efd !important;
        background: rgba(13, 110, 253, 0.1) !important;
        transition: all 0.2s ease;
    }
    
    #map.drag-over {
        border: 3px solid #0d6efd;
        background: rgba(13, 110, 253, 0.05);
    }
    
    #control-panel {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 1001;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        width: 350px;
        transform: translateX(120%);
        transition: transform 0.3s ease;
    }
    
    #control-panel.show {
        transform: translateX(0);
    }
    
    .panel-header {
        background: #0d6efd;
        color: white;
        padding: 12px 15px;
        border-radius: 8px 8px 0 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .panel-body {
        padding: 15px;
        max-height: 460px;
        overflow-y: auto;
    }
    
    #panel-toggle {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 1002;
        width: 45px;
        height: 45px;
        background: #0d6efd;
        color: white;
        border: none;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        cursor: pointer;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        transition: all 0.3s ease;
    }
    
    #panel-toggle:hover {
        background: #0b5ed7;
        transform: scale(1.05);
    }
    
    .search-container {
        position: relative;
        margin-bottom: 15px;
    }
    
    #search-input {
        width: 100%;
        padding: 8px 35px 8px 12px;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        font-size: 0.9rem;
    }
    
    #search-help {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        color: #6c757d;
        cursor: pointer;
        font-size: 1rem;
    }
    
    #search-help:hover {
        color: #0d6efd;
    }
    
    .search-hint {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        padding: 8px 12px;
        margin-top: 4px;
        font-size: 0.8rem;
        color: #6c757d;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        z-index: 1003;
    }
    
    .search-hint.show {
        display: block;
    }
    
    .search-hint kbd {
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        border-radius: 4px;
        padding: 2px 6px;
        font-size: 0.7rem;
    }

    #search-suggestions {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border: 1px solid #dee2e6;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.12);
        z-index: 1010;
        max-height: 220px;
        overflow-y: auto;
        margin-top: 2px;
    }

    #search-suggestions.show {
        display: block;
    }

    .suggestion-item {
        padding: 8px 12px;
        cursor: pointer;
        display: flex;
        align-items: flex-start;
        gap: 8px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 0.85rem;
        transition: background 0.15s;
    }

    .suggestion-item:last-child {
        border-bottom: none;
    }

    .suggestion-item:hover, .suggestion-item.active {
        background: #e8f0fe;
    }

    .suggestion-icon {
        color: #0d6efd;
        font-size: 1rem;
        flex-shrink: 0;
        margin-top: 1px;
    }

    .suggestion-icon.coord-icon {
        color: #e74c3c;
    }

    .suggestion-text {
        flex: 1;
        min-width: 0;
    }

    .suggestion-main {
        font-weight: 500;
        color: #333;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .suggestion-sub {
        font-size: 0.75rem;
        color: #6c757d;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .suggestion-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
        border-radius: 10px;
        flex-shrink: 0;
        align-self: center;
        font-weight: 600;
        letter-spacing: 0.3px;
    }

    .badge-coord {
        background: #fde8e8;
        color: #c0392b;
    }

    .badge-place {
        background: #e8f0fe;
        color: #1a73e8;
    }

    .suggestion-loading {
        padding: 10px 12px;
        font-size: 0.82rem;
        color: #6c757d;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    #search-input:focus {
        border-color: #0d6efd;
        outline: none;
        box-shadow: 0 0 0 3px rgba(13,110,253,0.15);
    }

    .basemap-options {
        display: flex;
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .basemap-btn {
        flex: 1;
        padding: 8px;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        background: white;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        font-size: 0.8rem;
    }
    
    .basemap-btn.active {
        background: #e3f2fd;
        border-color: #2196f3;
    }
    
    .layer-item {
        padding: 10px;
        border: 1px solid #e9ecef;
        border-radius: 6px;
        margin-bottom: 8px;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .layer-item:hover {
        border-color: #667eea;
        background: #f8f9ff;
    }
    
    .layer-item.active {
        background: #e3f2fd;
        border-color: #2196f3;
    }
    
    .layer-item.loading {
        opacity: 0.6;
        pointer-events: none;
    }
    
    .layer-item.disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
    
    .layer-color {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        border: 2px solid white;
        box-shadow: 0 0 0 1px #dee2e6;
        flex-shrink: 0;
    }
    
    .layer-info {
        flex-grow: 1;
        min-width: 0;
    }
    
    .layer-name {
        font-weight: 600;
        font-size: 0.9rem;
        margin-bottom: 2px;
        white-space: wrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .layer-meta {
        font-size: 0.8rem;
        color: #6c757d;
        display: flex;
        gap: 10px;
    }
    
    .spinner {
        display: inline-block;
        width: 12px;
        height: 12px;
        border: 2px solid #f3f3f3;
        border-top: 2px solid #0d6efd;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }
    
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    
    .zoom-controls {
        position: absolute;
        top: 10px;
        left: 10px;
        display: flex;
        flex-direction: column;
        gap: 5px;
        z-index: 999;
    }
    
    .zoom-btn {
        width: 40px;
        height: 40px;
        background: white;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        font-size: 1.2rem;
        transition: all 0.2s;
    }
    
    .zoom-btn:hover {
        background: #f0f4ff;
        border-color: #0d6efd;
        color: #0d6efd;
    }
    
    .simple-popup {
        max-width: 320px;
        max-height: 400px;
        overflow-y: auto;
        font-size: 0.9rem;
    }
    
    .popup-title {
        font-weight: 600;
        color: #667eea;
        margin-bottom: 5px;
        padding-bottom: 5px;
        border-bottom: 1px solid #e9ecef;
    }
    .popup-layer-block + .popup-layer-block { margin-top: 4px; }
    
    .popup-info {
        margin-bottom: 10px;
        color: #6c757d;
        font-size: 0.85rem;
    }
    
    .popup-description {
        margin: 10px 0;
        padding: 8px;
        background: #f8f9fa;
        border-radius: 4px;
        font-size: 0.85rem;
    }
    
    .popup-props {
        margin-top: 10px;
    }
    
    .popup-prop {
        padding: 6px 0;
        border-bottom: 1px solid #f0f0f0;
        font-size: 0.85rem;
    }
    
    .popup-prop:last-child {
        border-bottom: none;
    }
    
    .popup-more {
        margin-top: 8px;
        padding: 4px;
        background: #f8f9fa;
        border-radius: 4px;
        text-align: center;
        font-size: 0.8rem;
        color: #6c757d;
    }
    
    /* Tombol kiri bawah (di atas skala) */
    .map-bottom-controls {
        position: absolute;
        bottom: 40px;
        left: 10px;
        z-index: 999;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .map-ctrl-btn {
        width: 40px;
        height: 40px;
        background: white;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        font-size: 1.1rem;
        transition: all 0.2s;
        color: #333;
    }

    .map-ctrl-btn:hover { background: #f0f4ff; border-color: #0d6efd; color: #0d6efd; }
    .map-ctrl-btn.active { background: #0d6efd; color: white; border-color: #0d6efd; }

    #measure-result {
        position: absolute;
        bottom: 40px;
        left: 60px;
        z-index: 999;
        background: white;
        padding: 6px 12px;
        border-radius: 8px;
        font-size: 0.85rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        display: none;
        white-space: nowrap;
    }

    /* Layer group accordion dalam panel */
    .map-group-wrap { border-radius: 6px; overflow: hidden; }

    .map-group-btn {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 7px 10px;
        background: #f1f8e9;
        border: 1px solid #c8e6c9;
        border-radius: 6px;
        font-size: 0.82rem;
        font-weight: 600;
        color: #2e7d32;
        cursor: pointer;
        text-align: left;
        transition: background 0.15s;
    }
    .map-group-btn:not(.collapsed) {
        background: #e8f5e9;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
    .map-group-btn:hover { background: #dcedc8; }
    .map-group-count {
        background: #4caf50;
        color: #fff;
        border-radius: 10px;
        font-size: 0.7rem;
        padding: 0 6px;
        line-height: 1.6;
    }
    .map-group-header {
        display: flex;
        align-items: stretch;
        gap: 2px;
    }
    .map-group-btn {
        flex: 1;
        border-radius: 6px 0 0 6px !important;
    }
    .map-group-btn:not(.collapsed) {
        border-radius: 6px 0 0 0 !important;
    }
    .map-group-toggle-btn {
        width: 50px;
        flex-shrink: 0;
        background: #e8f5e9;
        border: 1px solid #c8e6c9;
        border-left: none;
        border-radius: 0 6px 6px 0;
        color: #555;
        cursor: pointer;
        font-size: 0.85rem;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.15s, color 0.15s;
    }
    .map-group-toggle-btn:hover { background: #dcedc8; color: #2e7d32; }
    .map-group-toggle-btn.all-active { background: #4caf50; color: #fff; border-color: #4caf50; }
    .map-group-chevron { font-size: 0.75rem; transition: transform 0.2s; }
    .map-group-btn:not(.collapsed) .map-group-chevron { transform: rotate(180deg); }

    .map-group-wrap .collapse,
    .map-group-wrap .collapsing {
        border: 1px solid #c8e6c9;
        border-top: none;
        border-radius: 0 0 6px 6px;
        background: #fafafa;
    }
    .map-group-wrap .layer-item:last-child { margin-bottom: 0; }
    
    /* Styling untuk layer tanpa grup */
    .ungrouped-layers {
        margin-bottom: 15px;
    }
    .ungrouped-layers .layer-item {
        background: #ffffff;
    }

    /* Custom layer section */
    #custom-layer-section {
        margin-top: 1rem;
        border-top: 1px solid #dee2e6;
        padding-top: 0.75rem;
    }
    .btn-remove-custom {
        margin-left: auto;
        background: none;
        border: none;
        color: #dc3545;
        cursor: pointer;
        font-size: 0.8rem;
    }
    .btn-remove-custom:hover {
        background-color: rgba(220,53,69,0.1);
        border-radius: 4px;
    }

    /* Google Maps button style */
    .google-maps-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: #4285f4;
        color: white;
        padding: 6px 12px;
        border-radius: 6px;
        text-decoration: none;
        font-size: 0.85rem;
        font-weight: 500;
        transition: background 0.2s, transform 0.1s;
    }
    
    .google-maps-btn:hover {
        background: #3367d6;
        transform: translateY(-1px);
        color: white;
    }
    
    .coords-display {
        font-size: 0.7rem;
        color: #6c757d;
        margin-top: 6px;
    }

    @media (max-width: 768px) {
        #map { height: 500px; }
        #control-panel { 
            width: calc(100% - 20px);
            top: 10px;
            left: 10px;
            right: 10px;
        }
    }
    
    /* Toast animation */
    @keyframes slideInRight {
        from {
            transform: translateX(100%);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }
    
    @keyframes slideOutRight {
        from {
            transform: translateX(0);
            opacity: 1;
        }
        to {
            transform: translateX(100%);
            opacity: 0;
        }
    }

/* ---- Custom Layer Toggle & Actions ---- */
.custom-layer-actions {
    display: flex;
    gap: 4px;
    align-items: center;
}

.btn-toggle-custom,
.btn-remove-custom {
    background: none;
    border: none;
    padding: 2px 5px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}

.btn-toggle-custom {
    color: #0d6efd;
}
.btn-toggle-custom:hover {
    background: rgba(13,110,253,0.1);
}
.btn-toggle-custom.inactive {
    color: #adb5bd;
}
.btn-toggle-custom.inactive:hover {
    background: rgba(0,0,0,0.05);
}

.btn-remove-custom {
    color: #dc3545;
}
.btn-remove-custom:hover {
    background: rgba(220,53,69,0.1);
}