/* Peta Wilayah Styles */
#peta-section {
    position: relative;
    transition: all 0.3s ease;
}

#peta-section.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    padding: 0;
    margin: 0;
    background: white;
}

#peta-section.fullscreen .peta-wrapper {
    height: 100vh !important;
    max-width: 100% !important;
    padding: 0;
}

#peta-section.fullscreen #map {
    height: 100vh !important;
    border-radius: 0;
}

#peta-section.fullscreen .peta-sidebar {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 320px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    z-index: 1000;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

#peta-section.fullscreen .peta-header {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

#map {
    height: 600px;
    width: 100%;
    border-radius: 12px;
    z-index: 1;
}

.map-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.map-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.map-btn:hover {
    background: #f3f4f6;
    transform: scale(1.05);
}

.map-btn.active {
    background: #6366f1;
    color: white;
}

.kecamatan-label {
    background: rgba(99, 102, 241, 0.95);
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    padding: 6px 10px;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.kelurahan-label {
    background: rgba(16, 185, 129, 0.95);
    border: none;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    padding: 4px 8px;
    font-size: 11px;
}

.info-panel {
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.info-panel h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.info-panel p {
    margin: 4px 0;
    font-size: 12px;
    color: #64748b;
}

.legend-color {
    display: inline-block;
    width: 20px;
    height: 12px;
    border-radius: 3px;
    margin-right: 8px;
    border: 1px solid rgba(0,0,0,0.1);
}

@media (max-width: 1024px) {
    #map {
        height: 450px;
    }
    #peta-section.fullscreen .peta-sidebar {
        display: none;
    }
}
