/* style.css */
body { margin: 0; padding: 0; font-family: 'Segoe UI', sans-serif; }

#map { height: 100vh; width: 100%; z-index: 1; }

#controls {
    position: absolute;
    top: 20px; 
    right: 20px;
    background: white; 
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 1000; 
    width: 260px;
    max-height: 60vh; 
    overflow-y: auto;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -300px; 
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 5px rgba(0,0,0,0.5); 
    transition: left 0.3s ease;
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
}

.sidebar.active {
    left: 0; 
}

#close-sidebar {
    float: right;
    cursor: pointer;
    background: red;
    color: white;
    border: none;
    padding: 5px 10px;
}

#sidebar-content h3 {
    margin-top: 15px;
    color: #333;
    border-bottom: 2px solid #ccc;
}

#sidebar-content ul {
    list-style: none;
    padding: 0;
}

#sidebar-content li {
    padding: 8px 0;
    cursor: pointer;
    color: #0066cc;
}

#sidebar-content li:hover {
    text-decoration: underline;
    font-weight: bold;
}

h3 { margin: 0 0 10px 0; font-size: 18px; color: #2c3e50; border-bottom: 2px solid #eee; padding-bottom: 10px;}
.instruction { font-size: 12px; color: #7f8c8d; margin-bottom: 15px; }

.corridor-btn {
    display: block; width: 100%; padding: 12px; margin-bottom: 8px;
    border: 1px solid #e0e0e0; background: #f8f9fa;
    cursor: pointer; text-align: left; border-radius: 6px;
    font-size: 14px; font-weight: 500; transition: all 0.2s;
}

.corridor-btn:hover { background: #e9ecef; }
.corridor-btn.active { color: white; border: none; transform: scale(1.02); box-shadow: 0 2px 5px rgba(0,0,0,0.2); }

/* --- CUSTOM MARKER STYLES --- */

/* 1. Hapus kotak default bawaan Leaflet */
.custom-map-marker {
    background: none !important;
    border: none !important;
}

/* 2. Buat lingkaran pembungkus icon */
.marker-pin {
    width: 32px;
    height: 32px;
    border-radius: 50%; /* Membuat bulat sempurna */
    border: 2px solid white; /* List putih di pinggir */
    box-shadow: 0 3px 6px rgba(0,0,0,0.4); /* Bayangan agar timbul */
    
    /* Flexbox: KUNCI agar icon pas di tengah */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 3. Atur ukuran icon di dalamnya */
.marker-pin i {
    color: white;
    font-size: 14px;
}


/* --- FILTER CONTAINER --- */
#filter-container {
    position: absolute;
    top: auto; /* Wajib diset auto agar tidak mengikuti nilai top bawaan */
    bottom: 20px; /* Pindahkan ke sudut kanan bawah */
    right: 20px; 
    z-index: 1000;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-family: 'Segoe UI', sans-serif;
    min-width: 200px;
}

#filter-container strong {
    display: block;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 14px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;    
    gap: 8px;
}

.filter-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    transition: all 0.2s;
    flex: 1 1 auto; /* Responsive width */
    text-align: center;
}

.filter-btn:hover {
    background: #e9ecef;
}

/* Style tombol Aktif */
.filter-btn.active {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
}