/* CSS Utama */
body {
    font-family: 'Public Sans', sans-serif;
    background-color: #f7f9fc;
    padding-top: 60px; /* Tinggi Navbar */
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #007bff !important; /* Warna Biru Primer */
}
.navbar-brand {
    font-size: 1.25rem;
}
.navbar-text {
    font-weight: 500;
}

/* Tombol Filter Mobile - Hanya terlihat di Mobile/Tablet */
.mobile-filter-button {
    display: none; 
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
    50% { transform: scale(1.05); box-shadow: 0 6px 15px rgba(255,193,7,0.5); }
    100% { transform: scale(1); box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
}

@media (max-width: 991.98px) {
    .mobile-filter-button {
        display: block; 
    }
    .filter-container {
        display: none !important; /* Sembunyikan sidebar di mobile */
    }
}

/* 1. Filter Sidebar (Desktop View) */
.filter-container {
    position: sticky;
    top: 60px; /* Di bawah navbar */
    width: 100%;
    height: calc(100vh - 60px); 
    background-color: #ffffff;
    border-right: 1px solid #e9ecef;
    display: flex; /* Menggunakan flex untuk mengatur scroll */
    flex-direction: column;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
}

.filter-content-scroll {
    overflow-y: auto; /* Area yang bisa di-scroll */
    flex-grow: 1;
    padding: 15px;
}

.filter-footer-sticky {
    padding: 15px;
    border-top: 1px solid #e9ecef;
    background-color: #ffffff;
    flex-shrink: 0;
}

/* 2. Konten Utama (Peta + Daftar) */
.main-content-wrapper {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px); 
    overflow-y: auto; /* Konten utama yang di-scroll */
}

#mapid {
    height: 40vh; /* Peta mengambil 40% tinggi layar desktop */
    min-height: 250px; /* Minimal tinggi peta */
    width: 100%;
    z-index: 1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
}

.list-kos-wrapper {
    flex-grow: 1; 
    overflow-y: visible; /* Biarkan card terlihat normal dalam scroll utama */
    padding: 15px;
    background-color: #f7f9fc;
}

.card-img-top {
    height: 180px; /* Tinggi gambar yang konsisten */
    object-fit: cover; 
}

/* Hover effect pada Card */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

/* 🎨 Style Pill Filter (Kategori) */
.filter-pill {
    display: inline-block;
    cursor: pointer;
    padding: 6px 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    border-radius: 50px; 
    background-color: #e9ecef;
    color: #495057;
    font-size: 0.85rem;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease-in-out;
    user-select: none;
}

.filter-pill.active {
    background-color: #007bff; 
    color: white;
    border-color: #007bff;
    font-weight: 600;
}

/* CSS Tambahan untuk Modal Fasilitas */
.form-check-fasil {
    border: 1px solid #dee2e6;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.2s;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.form-check-fasil:hover {
    border-color: #007bff;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.1);
}

.form-check-input:checked + .form-check-label {
    font-weight: 600;
    color: #007bff;
}