/* Fasilitas Umum Styles */
#map-section {
    position: relative;
    transition: all 0.3s ease;
}

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

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

#map-section.fullscreen #map-container {
    height: calc(100vh - 60px) !important;
    min-height: auto;
}

#map-section.fullscreen #map {
    border-radius: 0;
}

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

#map-section.fullscreen .map-controls-bar {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 350px;
    z-index: 1000;
    background: white;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#map-container {
    height: calc(100vh - 280px);
    min-height: 500px;
}

#map {
    height: 100%;
    width: 100%;
    border-radius: 0.75rem;
}

.leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 0;
}

.leaflet-popup-content {
    margin: 0;
    min-width: 280px;
}

.facility-popup {
    padding: 0;
}

.facility-popup img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.facility-popup-content {
    padding: 12px 16px;
}

.sidebar-card {
    transition: all 0.2s ease;
}

.sidebar-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sidebar-card.active {
    border-left: 4px solid #6366f1;
    background: #f0f4ff;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.legend-item:hover {
    background: #f3f4f6;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.fullscreen-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    background: white;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-size: 13px;
    color: #374151;
    transition: all 0.2s;
}

.fullscreen-btn:hover {
    background: #f3f4f6;
    transform: scale(1.02);
}

.exit-fullscreen-btn {
    background: #ef4444;
    color: white;
}

.exit-fullscreen-btn:hover {
    background: #dc2626;
}

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

.kecamatan-label {
    background: rgba(99, 102, 241, 0.9);
    border: none;
    border-radius: 4px;
    color: white;
    font-weight: 600;
    padding: 4px 8px;
    font-size: 11px;
}

/* Marker Cluster Styles */
.marker-cluster {
    background: transparent;
}

.cluster-icon {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

.cluster-small {
    width: 36px;
    height: 36px;
    font-size: 12px;
}

.cluster-medium {
    width: 44px;
    height: 44px;
    font-size: 14px;
}

.cluster-large {
    width: 52px;
    height: 52px;
    font-size: 16px;
}

@media (max-width: 1024px) {
    #map-container {
        height: 400px;
        min-height: 400px;
    }
    #map-section.fullscreen .sidebar-panel {
        display: none;
    }
    #map-section.fullscreen .map-controls-bar {
        right: 10px;
    }
}
