/* ============================================================
   FILE: assets/css/index.css
   Styles spesifik untuk halaman katalog (index.php)
   ============================================================ */

/* ===== HERO BANNER ===== */
.hero-section { padding: 72px 0 56px; }
.hero-badge { background: rgba(240,165,0,.2); color: #5bff00; border: 1px solid rgba(240,165,0,.4); border-radius: 999px; padding: 6px 16px; font-size: .82rem; font-weight: 600; letter-spacing: .5px; display: inline-block; margin-bottom: 16px; }
.hero-title { font-size: clamp(1.8rem, 4vw, 2.8rem); color: #fff; font-weight: 800; line-height: 1.2; }
.hero-title span { color: var(--accent); }
.hero-subtitle { color: rgba(255,255,255,.75); font-size: 1.05rem; max-width: 580px; }
.hero-stats { display: flex; gap: 32px; margin-top: 36px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-num { font-family: 'Sora', sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.stat-lbl { color: rgba(255,255,255,.65); font-size: .8rem; }

/* ===== FILTER BAR ===== */
.filter-bar {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(13,33,55,.13);
    padding: 18px 24px;
    margin: -36px auto 44px;
    position: relative; z-index: 10;
    border-top: 3px solid var(--accent);
}
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.filter-divider { width: 1px; height: 32px; background: #e2e8f0; flex-shrink: 0; }
.fc-wrap { position: relative; display: flex; align-items: center; }
.fc-wrap .fc-icon { position: absolute; left: 11px; color: var(--muted); font-size: .8rem; pointer-events: none; z-index: 1; }
.filter-select {
    height: 38px; border: 1.5px solid #e2e8f0; background: #f8fafc; color: var(--text);
    border-radius: 9px; padding: 0 34px 0 30px;
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 500; font-size: .85rem; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 16 16'%3E%3Cpath fill='%23adb5bd' d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center;
    cursor: pointer; transition: border-color .18s, box-shadow .18s, background .18s; min-width: 148px;
}
.filter-select:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,82,118,.1); }
.filter-select.active { border-color: var(--accent); background: #fffbf0; color: var(--navy); font-weight: 600; }
.filter-search {
    height: 38px; border: 1.5px solid #e2e8f0; background: #f8fafc; color: var(--text);
    border-radius: 9px; padding: 0 14px 0 30px;
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 500; font-size: .85rem; min-width: 190px;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.filter-search::placeholder { color: #adb5bd; }
.filter-search:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,82,118,.1); }
.filter-search.active { border-color: var(--accent); background: #fffbf0; }
.btn-sort {
    height: 38px; display: inline-flex; align-items: center; gap: 7px;
    border: 1.5px solid #e2e8f0; background: #f8fafc; color: var(--muted);
    border-radius: 9px; padding: 0 14px; cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 500; font-size: .85rem;
    transition: border-color .18s, background .18s, color .18s; white-space: nowrap;
}
.btn-sort:hover { background: #f0f4f8; color: var(--text); }
.btn-filter-apply {
    height: 38px; display: inline-flex; align-items: center; gap: 6px;
    background: var(--navy); color: #fff; border: none;
    border-radius: 9px; padding: 0 20px;
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: .85rem; cursor: pointer;
    transition: background .18s, transform .1s;
}
.btn-filter-apply:hover { background: var(--blue); }
.btn-filter-apply:active { transform: scale(.97); }
.btn-filter-reset {
    height: 34px; width: 34px; display: inline-flex; align-items: center; justify-content: center;
    background: transparent; color: #adb5bd;
    border: 1.5px solid #e2e8f0; border-radius: 50%;
    text-decoration: none; transition: all .18s; flex-shrink: 0;
}
.btn-filter-reset:hover { background: #fee2e2; border-color: #fca5a5; color: #dc2626; }
.filter-count {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--light); border-radius: 999px;
    padding: 4px 12px; font-size: .8rem; color: var(--muted);
    white-space: nowrap; border: 1px solid #e2e8f0;
}
.filter-count strong { color: var(--navy); font-family: 'Sora', sans-serif; font-size: .9rem; }

/* ===== ASET CARDS ===== */
.card-aset { border: none; border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; overflow: hidden; height: 100%; }
.card-aset:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(13,33,55,.16); }
.card-aset .card-img-wrap { position: relative; height: 200px; overflow: hidden; }
.card-aset .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card-aset:hover .card-img-wrap img { transform: scale(1.05); }
.badge-status { position: absolute; top: 12px; right: 12px; font-size: .78rem; padding: 5px 12px; border-radius: 999px; font-weight: 600; }
.badge-kategori { position: absolute; top: 12px; left: 12px; font-size: .78rem; padding: 5px 12px; border-radius: 999px; font-weight: 600; }
.card-aset .card-body { padding: 20px; }
.card-aset .aset-harga { font-family: 'Sora', sans-serif; font-size: 1.1rem; color: var(--navy); font-weight: 700; }
.btn-detail { background: var(--navy); color: #fff; border-radius: 999px; padding: 9px 22px; font-weight: 600; font-size: .9rem; border: none; transition: background .2s; text-decoration: none; }
.btn-detail:hover { background: var(--blue); color: #fff; }

/* Animasi loading card */
@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.card-aset { animation: fadeUp .4s ease both; }

/* ===== PETA ===== */
#map-section { background: var(--white); }
#peta { height: 480px; border-radius: var(--radius); z-index: 1; box-shadow: var(--shadow); }
.section-title { font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.section-title span { color: var(--accent); }
.section-divider { width: 48px; height: 4px; background: var(--accent); border-radius: 99px; margin: 8px 0 24px; }

/* ===== FOOTER INDEX ===== */
footer.footer-dark { background: var(--navy); color: rgba(255,255,255,.7); }
footer.footer-dark a { color: var(--accent); text-decoration: none; }

/* ===== LEAFLET POPUP CUSTOM ===== */
.leaflet-popup-content-wrapper { border-radius: 12px !important; box-shadow: 0 8px 24px rgba(0,0,0,.2) !important; }
.popup-aset { min-width: 200px; }
.popup-aset h6 { font-family: 'Sora', sans-serif; color: var(--navy); margin-bottom: 4px; }
.popup-aset .btn-sm { font-size: .82rem; padding: 5px 14px; }

/* ===== BADGE PEMELIHARAAN ===== */
.bg-warning-subtle { background-color: #fff3cd !important; color: #856404 !important; }

/* ===== PETA FILTER CHIPS ===== */
.peta-chips-wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; margin-bottom: 16px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.chip-group-label { font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; white-space: nowrap; padding-top: 2px; }
.map-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 14px; border-radius: 999px; cursor: pointer;
    font-size: .82rem; font-weight: 600; border: 2px solid transparent;
    transition: all .18s; user-select: none;
}
.map-chip .chip-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.map-chip.chip-kat { background: #f1f5f9; color: var(--muted); border-color: #e2e8f0; }
.map-chip.chip-kat.active { color: #fff; }
.map-chip:not(.active):hover { background: #e9eef4; border-color: #c8d3df; color: var(--text); }

/* ===== PAGINATION ===== */
#katalog-pagination .pagination { gap: 4px; }
#katalog-pagination .page-link {
    border-radius: 9px !important; border: 1.5px solid #e2e8f0;
    color: var(--navy); font-weight: 600; font-size: .85rem;
    padding: 6px 14px; transition: all .18s;
}
#katalog-pagination .page-item.active .page-link { background: var(--navy); border-color: var(--navy); color: #fff; }
#katalog-pagination .page-item.disabled .page-link { color: #adb5bd; }
#katalog-pagination .page-link:hover:not(.active):not(.disabled) { background: var(--light); border-color: var(--blue); color: var(--blue); }
