/* ============================================================
   DESAIN — Katalog Rumah (bersih & modern, aksen navy)
   ============================================================ */

:root {
  --navy: #0f2c4c;
  --navy-2: #16406b;
  --blue: #1a73c8;
  --ink: #17293e;
  --muted: #5c6b80;
  --bg: #f5f7fb;
  --card: #ffffff;
  --line: #e3e9f2;
  --wa: #17a45c;
  --wa-dark: #0e8548;
  --gold: #f2a51a;
  --red: #e0533d;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 44, 76, .08);
  --shadow-lg: 0 18px 50px rgba(15, 44, 76, .16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.container-wide { width: min(1360px, 94%); }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: 0;
  font: 600 15px/1 'Plus Jakarta Sans', sans-serif;
  cursor: pointer; transition: .18s;
  text-decoration: none;
}
.btn i { font-size: 17px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--navy); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 28px; font-size: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: transform .25s ease;
}
/* Saat pita pencarian nempel di atas, header naik dan tertutup — ala 99.co */
body.band-stuck .site-header { transform: translateY(-105%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18.5px; color: var(--navy); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; font-size: 15px;
}
.main-nav { display: flex; align-items: center; gap: 20px; }
.main-nav a:not(.btn) { font-weight: 600; font-size: 14px; color: var(--muted); position: relative; padding: 6px 0; }
.main-nav .btn { padding: 9px 15px; font-size: 13.5px; }
.main-nav a:not(.btn):hover, .main-nav a.active { color: var(--navy); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px;
  border-radius: 3px; background: var(--blue);
}
.nav-toggle { display: none; background: 0; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; margin: 5px 0; background: var(--navy); border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
/* Saat drawer terbuka, ☰ di header berubah jadi X di POSISI YANG PERSIS SAMA (morph),
   jadi jempol tidak perlu pindah — pola standar ala 99.co/Material. */
/* Scrim: layar di belakang menu mobile diredupkan + scroll dikunci */
.nav-scrim {
  position: fixed; inset: 58px 0 0 0; background: rgba(5, 14, 25, .45); z-index: 55;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.nav-scrim.show { opacity: 1; pointer-events: auto; }
body.nav-locked { overflow: hidden; }
/* Tombol menu di bar pencarian (menggantikan header di halaman cari HP) */
.band-menu {
  display: none; width: 40px; height: 40px; flex: 0 0 auto;
  align-items: center; justify-content: center; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--navy); font-size: 15px; transition: border-color .15s, color .15s;
}
.band-menu:hover { border-color: var(--blue); color: var(--blue); }
.band-menu .ico-close { display: none; }
.band-menu.open { background: var(--navy); border-color: var(--navy); color: #fff; }
.band-menu.open .ico-menu { display: none; }
.band-menu.open .ico-close { display: inline; }
/* Tombol tutup menu disembunyikan di desktop; aktif di @media mobile */
.nav-close { display: none; }

/* ---------- Hero — konsep "blueprint" ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #071324 0%, #0d2440 48%, #143c66 100%);
}
/* Foto properti di-duotone: nuansa biru, bukan foto mentah */
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(1.06);
  opacity: .55; mix-blend-mode: luminosity;
}
/* Garis grid tipis ala kertas gambar teknik */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 56px);
}
/* Kadernya: kiri gelap untuk teks, kanan foto lebih lolos */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 150% at 82% 18%, rgba(37, 99, 168, .28), transparent 55%),
    linear-gradient(100deg, rgba(7, 19, 36, .95) 18%, rgba(13, 36, 64, .74) 52%, rgba(16, 48, 84, .38) 100%);
}
.hero .container { padding-bottom: 92px; }
.hero-inner { position: relative; z-index: 2; padding: 84px 0 40px; max-width: 720px; }
.hero h1 { font-size: clamp(30px, 4.6vw, 50px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: #8fc2ff; }
.hero p { margin-top: 16px; font-size: 17px; color: #c9d8ea; max-width: 560px; }

.hero-search {
  position: relative; z-index: 3;
  margin: 26px 0 12px; background: #fff; border-radius: 16px; padding: 14px;
  box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: stretch;
}
.hero-search .field { margin: 0; }
.hero-search input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 15px 16px; font: 500 16px 'Plus Jakarta Sans', sans-serif; color: var(--ink);
  background: #fff;
}
.hero-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 115, 200, .15); }

/* Chip kawasan populer di hero */
.hero-chips {
  position: relative; z-index: 2;
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-top: 16px;
}
.hero-chips .hc-label { color: #c9d8ea; font-size: 13.5px; font-weight: 600; margin-right: 2px; }
.hero-chips .hc-label i { color: #ffb02e; margin-right: 4px; }
.hero-chips a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  color: #eaf2fb; font-size: 13.5px; font-weight: 600; text-decoration: none;
  backdrop-filter: blur(6px); transition: background .15s, border-color .15s;
}
.hero-chips a:hover { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .4); }
.hero-chips a b { font-weight: 700; color: #8fc2ff; font-size: 12px; }

/* ---------- Statistik ---------- */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: -60px; position: relative; z-index: 5;
}
.stat-card {
  background: #fff; border-radius: var(--radius); padding: 22px 26px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px;
}
.stat-icon {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(26, 115, 200, .12); color: var(--blue); font-size: 20px; flex: none;
}
.stat-num { font-size: 26px; font-weight: 800; color: var(--navy); line-height: 1.2; }
.stat-label { font-size: 13.5px; color: var(--muted); }

/* ---------- Seksi umum ---------- */
.section { padding: 72px 0 20px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font-size: 28px; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
.section-head .sub { color: var(--muted); margin-top: 6px; }
.link-more { font-weight: 700; color: var(--blue); white-space: nowrap; }
.link-more:hover { text-decoration: underline; }

/* ---------- Kartu properti ---------- */
/* auto-fill: jumlah kolom dihitung dari lebar kolom tempat grid berada,
   bukan dari lebar layar — kartu selalu pas, tidak gepeng / tidak menggantung */
/* Jelajah cepat per jenis properti */
.kind-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 26px; }
.kind-tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 12px 15px; text-decoration: none; color: var(--navy);
  box-shadow: var(--shadow); transition: transform .15s, border-color .15s, box-shadow .15s;
}
.kind-tile:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: var(--shadow-lg); }
.kind-tile i {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 12px; background: #eaf2fb; color: var(--blue); font-size: 19px; margin-bottom: 2px;
}
.kind-tile .kt-name { font-weight: 700; font-size: 15px; }
.kind-tile .kt-count { font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* Grid hasil: melebar bertahap, maksimal 4 kolom di layar besar */
.grid-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1200px) { .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
@media (min-width: 1440px) { .grid-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Layar sangat sempit: kembali 1 kolom agar kartu tidak terlalu gepeng */
@media (max-width: 374px) { .grid-cards:not(.view-list) { grid-template-columns: minmax(0, 1fr); } }
/* Hasil cuma 1–2: kartu rata tengah agar ruang kosong seimbang (tidak terkesan layout rusak) */
.grid-cards.only-one { grid-template-columns: min(460px, 100%); justify-content: center; }
.grid-cards.pair { grid-template-columns: repeat(2, min((100% - 24px) / 2, 430px)); justify-content: center; }
@media (min-width: 1440px) { .grid-cards.pair { grid-template-columns: repeat(2, 430px); } }

.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(15, 44, 76, .05);
  transition: .2s; display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-lg); border-color: #d7e1ee; }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e8edf4; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  font-size: 11.5px; font-weight: 700; letter-spacing: .03em;
  padding: 5px 10px; border-radius: 7px; color: #fff; background: var(--navy);
  display: inline-flex; align-items: center; gap: 6px; vertical-align: middle;
}
.badge i { font-size: 11px; }
.badge-sewa { background: #455a75; }
.badge-featured { background: var(--gold); color: #3d2c05; }
.badge-ok { background: var(--blue); color: #fff; font-weight: 800; letter-spacing: .06em; }
.badge-star { background: rgba(10, 26, 44, .80); color: #ffc53d; padding: 5px 11px; }
.badge-star i { font-size: 13.5px; }
.badge-sold { background: #b03a26; letter-spacing: .08em; }
.badge-nego { background: #fff; color: var(--navy); }
/* Di kartu kecil (HP) badge di Foto dibuat lebih ringkas agar tidak menutupi foto */
@media (max-width: 640px) {
  .card-badges { top: 8px; left: 8px; gap: 5px; }
  .card-badges .badge { font-size: 10px; padding: 4px 8px; border-radius: 6px; gap: 5px; }
  .card-badges .badge i { font-size: 9.5px; }
  .card-badges .badge-star { padding: 4px 9px; }
  .card-badges .badge-star i { font-size: 11.5px; }
}
.badge-shm { background: #1a7f4b; color: #fff; }
.nego-note { display: block; margin: 10px 0 2px; color: #1a7f4b; font-size: 13px; font-weight: 700; }

/* ---------- Kartu gaya 99.co ---------- */
.card-photos {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(10, 26, 44, .78); color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 4px 10px; border-radius: 7px; display: inline-flex; align-items: center; gap: 6px;
  backdrop-filter: blur(3px);
}
/* Badge sertifikat di thumbnail (kanan atas) — selalu terlihat, tak pernah terpotong baris chip */
.card-cert {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: rgba(10, 26, 44, .78); color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 4px 10px; border-radius: 7px; display: inline-flex; align-items: center; gap: 6px;
  backdrop-filter: blur(3px); white-space: nowrap;
}
.card-cert.shm { background: rgba(21, 110, 66, .88); }

/* ---------- Swipe gallery di thumbnail kartu (ala 99.co) ---------- */
.card-slide {
  /* absolute supaya tinggi boks foto TIDAK pernah ditentukan ukuran asli foto;
     foto portrait / foto telat-load tidak bisa lagi memanjangkan kartu saat digeser */
  position: absolute; inset: 0;
  display: flex; overflow-x: auto;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.card-slide::-webkit-scrollbar { display: none; }
.card-slide > picture, .card-slide > img { flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: center; }
.card-slide img { width: 100%; height: 100%; object-fit: cover; }
/* kartu foto tunggal: boks foto juga kebal terhadap ukuran asli foto */
.card-media > picture, .card-media > img { position: absolute; inset: 0; }
.slide-dots {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 11px; z-index: 2;
  display: flex; gap: 5px; pointer-events: none;
}
.slide-dots i {
  width: 6px; height: 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .45); box-shadow: 0 1px 3px rgba(10, 26, 44, .5);
  transition: width .2s, background .2s;
}
.slide-dots i.on { background: #fff; width: 16px; }
.slide-arr {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 30px; height: 30px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--navy);
  display: none; align-items: center; justify-content: center; font-size: 12px;
  cursor: pointer; box-shadow: 0 2px 10px rgba(10, 26, 44, .3);
}
.card:hover .slide-arr { display: flex; }
.slide-arr:hover { background: #fff; color: var(--blue); }
.sa-l { left: 10px; }
.sa-r { right: 10px; }
/* pointer mouse: tandai bisa diseret (grab), saat menyeret jadi menggenggam */
@media (hover: hover) and (pointer: fine) {
  .card-slide { cursor: grab; }
  .card-pois, .card-specs { cursor: grab; }
  .gallery-main { cursor: grab; }
}
.mdrag { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
@media (max-width: 860px) { .slide-arr { display: none !important; } }
@media (max-width: 480px) {
  .slide-dots { bottom: 9px; gap: 4px; }
  .slide-dots i { width: 5px; height: 5px; }
  .slide-dots i.on { width: 13px; }
}
@media (max-width: 480px) {
  /* foto grid HP sempit (~173px): chip sertifikat & chip jumlah foto ditumpuk di kanan-bawah
     (cert di atas, foto di bawah), titik geser tetap di tengah bawah — tidak ada yang bertabrakan */
  .grid-cards:not(.view-list) .card-cert {
    font-size: 10px; padding: 3px 7px; gap: 4px;
    top: auto; bottom: 33px; left: auto; right: 8px;
  }
  .grid-cards:not(.view-list) .card-cert i { font-size: 9px; }
  .grid-cards:not(.view-list) .card-photos { font-size: 10px; padding: 3px 8px; bottom: 9px; right: 8px; }
  .grid-cards:not(.view-list) .slide-dots { left: 8px; transform: none; }
  /* chip di kartu grid HP dikecilkan (semua chip tetap tampil, baris boleh naik ke baris kedua) */
  .grid-cards:not(.view-list) .card-tags { gap: 5px; }
  .grid-cards:not(.view-list) .tag { font-size: 10.5px; padding: 3px 8px; }
}
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 25px; row-gap: 4px; }
.tag {
  font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: #eef2f7; color: #39506b; display: inline-flex; align-items: center; gap: 5px;
}
.tag i { font-size: 10.5px; }
.tag-trans { color: #fff; background: var(--navy); }
.tag-sewa { background: #455a75; }
.tag-shm { background: #e3f3e9; color: #157a45; }
.tag-nego { background: #fff4dd; color: #8a6a14; }
.card-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 2px; }
.card-price { font-weight: 800; font-size: 19px; color: var(--navy); }
.card-price-row .card-code { flex: 0 0 auto; }
.btn-block { width: 100%; display: inline-flex; justify-content: center; align-items: center; gap: 9px; padding: 11px 12px; font-size: 13.5px; white-space: nowrap; border-radius: 10px; margin-top: auto; }
.card-specs { margin-bottom: 12px; }
/* Baris spesifikasi yang kosong (properti tanpa data KT/KM/LB/LT) tidak menyisakan ruang hampa */
.card-specs:empty { display: none; }
.card-updated { font-size: 12px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.card-updated i { font-size: 11px; color: #8aa0b8; }
/* Avatar penjual (99.co style) */
.avatar { border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 1px 5px rgba(15,44,76,.25); flex: 0 0 auto; }
.avatar-init { display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 800; }
.agent-row { display: flex; align-items: center; gap: 12px; margin: 14px 0 2px; }
.agent-info b { display: block; font-size: 14.5px; color: var(--navy); }
.agent-info span { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.about-agent {
  display: flex; gap: 26px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; margin-top: 28px;
}
.about-agent img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; box-shadow: 0 6px 20px rgba(15,44,76,.18); }
.about-agent h2 { font-size: 21px; color: var(--navy); margin-bottom: 2px; }
.about-agent .role { color: var(--blue); font-weight: 700; font-size: 13.5px; margin-bottom: 8px; }
@media (max-width: 640px) { .about-agent { flex-direction: column; text-align: center; } }

/* Banner budget ala 99.co, di bawah hasil pencarian */
.budget-banner {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(100deg, #eef5ff, #e1ebfa); border: 1px solid #d5e3f5;
  border-radius: 14px; padding: 18px 22px; margin: 24px 0 8px;
}
.bb-icon { width: 46px; height: 46px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(15, 44, 76, .10); }
.bb-icon i { font-size: 20px; color: var(--navy); }
.bb-text h4 { font-size: 15.5px; font-weight: 800; color: var(--navy); }
.bb-text p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.bb-chips { margin-left: auto; }
.bb-chips .chip { background: #fff; }
@media (max-width: 900px) { .bb-chips { margin-left: 0; width: 100%; } }
.card-body { padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title {
  font-size: 17px; font-weight: 700; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.7em; /* slot 2 baris selalu dicadangkan supaya baris di bawahnya selalu rata */
}
.card-title a:hover { color: var(--blue); }
.card-loc { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; white-space: nowrap; overflow: hidden; }
.card-loc i { color: var(--blue); flex: 0 0 auto; }
.card-specs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 6px 14px; margin-top: 4px; min-height: 21px;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); }
.card-specs::-webkit-scrollbar { display: none; }
.card-specs li { font-size: 13px; color: var(--muted); font-weight: 600; display: flex; gap: 6px; align-items: center; white-space: nowrap; flex: 0 0 auto; }
/* Chip fasilitas terdekat ala 99.co — satu baris, bisa digeser samping */
.card-pois {
  display: flex; gap: 6px; margin-top: 9px; margin-bottom: 12px;
  min-height: 24px; /* slot POI tetap ada walau kosong, supaya isi kartu tidak bergeser */
  flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent);
          mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent);
}
.card-pois::-webkit-scrollbar { display: none; }
.c-poi {
  flex: 0 0 auto; scroll-snap-align: start;
  font-size: 11.5px; color: #48586c; background: #f1f5fa;
  border-radius: 999px; padding: 3px 10px; white-space: nowrap; font-weight: 600;
}
.c-poi i { font-size: 10px; color: var(--blue); margin-right: 5px; }
.card-updated { margin-bottom: 8px; }
/* Agen di kartu ala 99.co: avatar + nama + peran, satu baris */
.card-agent { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; }
.card-agent b { font-size: 13px; color: var(--navy); }
.card-agent span { font-size: 12px; color: var(--muted); font-weight: 600; }
.card-specs i { color: var(--navy); font-size: 12.5px; }
.card-code { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .05em; }

/* ---------- Toggle Grid / List ---------- */
.results-count { margin-right: auto; }
.view-toggle { display: inline-flex; gap: 3px; background: #e9eef5; border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.vt {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 8px;
  font-size: 13px; font-weight: 700; color: #4a5c73; transition: .15s;
}
.vt:hover { color: var(--navy); }
.vt.on { background: #fff; color: var(--navy); box-shadow: 0 1px 5px rgba(15, 44, 76, .14); }
@media (max-width: 640px) { .vt { padding: 8px 11px; } .vt span { display: none; } }

/* ---------- Tampilan list (daftar) ---------- */
.grid-cards.view-list { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.card.card-row { display: grid; grid-template-columns: clamp(300px, 38%, 470px) minmax(0, 1fr); }
.card-row .card-media { aspect-ratio: auto; height: 100%; min-height: 300px; min-width: 0; }
.card-row .card-body { padding: 20px 24px 18px; }
.card-row .card-price { font-size: 21px; }
.card-row .card-title { font-size: 17.5px; }
.card-row .btn-block { width: auto; align-self: flex-end; padding: 12px 30px; }
.card-desc {
  font-size: 13.5px; color: var(--muted); line-height: 1.55; overflow: hidden;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  display: none; /* hanya tampil di mode List */
}
/* Konten ekstra milik mode List — DOM-nya sama dengan Grid, tinggal ditampilkan */
li.sp-only { display: none; }
.grid-cards.view-list .card-desc { display: -webkit-box; }
.grid-cards.view-list .card-specs li.sp-only { display: flex; }
/* Pudar halus saat ganti Grid/List agar perpindahan terasa enak, bukan "patah" */
@keyframes view-fade { from { opacity: .35; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.grid-cards.view-anim .card { animation: view-fade .26s ease backwards; }
.card-row:hover { box-shadow: var(--shadow-lg); border-color: #d7e1ee; }
@media (max-width: 860px) {
  /* Kartu list menumpuk: foto lebar penuh di atas, isi di bawah — ala 99.co mobile */
  .card.card-row { grid-template-columns: minmax(0, 1fr); }
  .card-row .card-media { min-height: 0; width: 100%; aspect-ratio: 4 / 3; height: auto; max-height: 420px; }
  .card-row .card-body { padding: 16px 16px 14px; min-width: 0; }
  .card-row .card-pois { width: 100%; min-width: 0; }
  .card-row .card-price { font-size: 19px; }
  .card-row .card-title { font-size: 16px; }
  .card-row .btn-block { width: 100%; align-self: stretch; }
}
/* Grid 2 kolom di HP: tipografi dirapatkan sedikit biar pas */
@media (max-width: 760px) {
  /* di 2 kolom teks spesifikasi dikecilkan supaya baris KT/KM/LB/LT selalu muat
     satu baris — tidak bisa "bergeser" kena scroll (tidak muncul-hilang lagi) */
  .grid-cards:not(.view-list) .card-specs li { font-size: 12px; }
  .grid-cards:not(.view-list) .card-specs { gap: 6px 8px; }
  .grid-cards:not(.view-list) .card-specs li { gap: 4px; }
  .grid-cards:not(.view-list) .card-specs i { font-size: 11px; }
}
@media (max-width: 480px) {
  .grid-cards:not(.view-list) .card-body { padding: 13px 12px 11px; gap: 7px; }
  .grid-cards:not(.view-list) .card-price { font-size: 17px; }
  .grid-cards:not(.view-list) .card-title { font-size: 14.5px; }
  .grid-cards:not(.view-list) .btn-block { padding: 10px 8px; font-size: 13px; gap: 6px; }
  .grid-cards:not(.view-list) .btn-block i { font-size: 15px; }
}
/* Konten kartu grid beradaptasi di layar kecil, ala 99.co:
   baris tanggal/pemilik/fasilitas terdekat disembunyikan, tombol WA dipendekkan */
.btn-txt-s { display: none; }
/* Jarak ☰ di halaman cari disamakan persis dengan ☰ di header home */
@media (max-width: 420px) { body.page-search .band-menu { margin-right: 4px; } }
@media (min-width: 421px) and (max-width: 860px) { body.page-search .band-menu { margin-right: 7px; } }
@media (max-width: 760px) {
  .grid-cards:not(.view-list) .card-pois,
  .grid-cards:not(.view-list) .card-updated { display: none; }
  .grid-cards:not(.view-list) .card-agent b { font-size: 13px; }
  .grid-cards:not(.view-list) .btn-txt-l { display: none; }
  .grid-cards:not(.view-list) .btn-txt-s { display: inline; }
}

/* ---------- Nilai layanan ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.value-card i { font-size: 22px; color: var(--blue); width: 52px; height: 52px; border-radius: 12px; background: rgba(26, 115, 200, .1); display: grid; place-items: center; margin-bottom: 16px; }
.value-card h3 { font-size: 16.5px; margin-bottom: 8px; color: var(--navy); }
.value-card p { font-size: 14px; color: var(--muted); }

/* ---------- Banner CTA ---------- */
.cta-banner {
  margin: 70px 0 0; border-radius: 18px; overflow: hidden; position: relative;
  background: linear-gradient(115deg, var(--navy) 30%, var(--navy-2));
  color: #fff; padding: 44px 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-banner h2 { font-size: 26px; font-weight: 800; }
.cta-banner p { color: #bfcfe2; margin-top: 6px; }

/* ---------- Halaman cari ---------- */
.page-head { background: var(--navy); color: #fff; padding: 40px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.page-head h1 { font-size: 28px; font-weight: 800; }
.page-head p { color: #b9cbdf; margin-top: 4px; }
.breadcrumb { font-size: 13px; color: #9db4cc; margin-bottom: 8px; }
.breadcrumb a:hover { color: #fff; }

.search-layout { display: block; padding: 34px 0 10px; }
.search-layout > * { min-width: 0; } /* kolom hasil tidak boleh mendorong layout melebar */

.filters {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: none; /* selalu di balik tombol Filter (drawer/sheet) */
}
.filters h3 { font-size: 16px; color: var(--navy); margin-bottom: 4px; display: flex; justify-content: space-between; align-items: center; }
.filters .reset { font-size: 12.5px; color: var(--blue); font-weight: 700; }
.filter-group { padding: 16px 0; border-bottom: 1px solid var(--line); }
.filter-group:last-of-type { border-bottom: 0; }
.filter-label { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 9px; display: block; }
.field { margin-bottom: 12px; }
/* Kotak saran wilayah versi sentuh (dibangun main.js saat datalist bawaan tak muncul) */
.suggest-box {
  margin: 6px 0 0; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 14px 26px rgba(15, 44, 76, .16); overflow: hidden;
}
.suggest-box button {
  display: block; width: 100%; text-align: left; padding: 13px 14px; font-size: 15px;
  background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--ink);
}
.suggest-box button:last-child { border-bottom: 0; }
.suggest-box button:active { background: #e8f0fb; }
/* Saran pintar pencarian (hero + cari): dropdown di bawah kolom kata kunci */
.hint-box {
  position: fixed; z-index: 90; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 18px 42px rgba(15, 44, 76, .18);
  max-height: 480px; overflow-y: auto; overscroll-behavior: contain;
  min-width: min(330px, calc(100vw - 24px));
}
.hint-box button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 10px 14px; font-size: 14.5px; color: var(--ink);
  background: none; border: 0; border-bottom: 1px solid #eef2f7;
}
.hint-box button i { color: var(--blue); font-size: 13px; width: 15px; flex: 0 0 auto; }
.hint-box .hint-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hint-box .hint-text b { color: var(--navy); }
.hint-box .hint-tag {
  margin-left: auto; flex: 0 0 auto; font-size: 11px; font-weight: 700;
  color: var(--muted); background: #f1f5fa; border-radius: 6px; padding: 3px 8px;
}
.hint-box button:hover, .hint-box button.on { background: #f2f7fd; }
.hint-sec { padding: 8px 14px 6px; font-size: 12px; font-weight: 700; color: var(--muted); background: #f4f8fc; border-bottom: 1px solid #eef2f7; }
.hint-box .hint-wrap { flex: 1 1 auto; min-width: 0; }
.hint-box .hint-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hint-box .hint-plus { width: auto !important; color: #64798f; font-size: 12px; }
.hint-go { padding: 9px 14px; font-size: 12.5px; color: var(--muted); background: #fafcfe; }
.hint-go i { color: var(--muted); margin-right: 4px; }
@media (max-width: 639px) {
  /* HP: font input ≥16px — mencegah iOS auto-zoom halaman saat keyboard muncul */
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
  select, textarea { font-size: 16px !important; }
}
@media (max-width: 639px) {
  /* HP: lebih bersih & nyaman disentuh — ikon sudah menjelaskan, tanpa label kecil */
  .hint-box button { padding: 12px 14px; }
  .hint-box .hint-tag, .hint-box .hint-plus { display: none; }
  .hint-sec { padding: 7px 14px 5px; }
}
.field input[type=text], .field input[type=number], .field input[type=password],
.field input[type=email], .field input[type=url], .field input[type=tel], .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 9px; padding: 10px 12px;
  font: 500 14.5px 'Plus Jakarta Sans', sans-serif; color: var(--ink); background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 115, 200, .14); }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input { width: 50%; }
.price-range span { color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  border: 1.5px solid var(--line); background: #fff; border-radius: 8px;
  padding: 7px 12px; font-size: 13px; font-weight: 600; color: var(--muted);
  cursor: pointer; transition: .15s; display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px;
}
.chip:hover { border-color: var(--blue); color: var(--navy); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }

.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.results-count { font-size: 14.5px; color: var(--muted); }
.results-count b { color: var(--navy); }
.sortbox { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sortbox select { border: 1.5px solid var(--line); border-radius: 8px; padding: 8px 10px; font: 600 13.5px 'Plus Jakarta Sans'; color: var(--ink); background: #fff; }

.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 16px; }.active-filters a {
  background: #e8f0fa; color: var(--navy); border-radius: 99px; padding: 6px 12px;
  font-size: 12.5px; font-weight: 700; display: inline-flex; gap: 6px; align-items: center;
}
.active-filters a:hover { background: #dbe7f6; }

.empty {
  background: #fff; border: 1.5px dashed var(--line); border-radius: var(--radius);
  padding: 60px 30px; text-align: center; color: var(--muted);
}
.empty i { font-size: 40px; color: var(--line); margin-bottom: 14px; }
.empty h3 { color: var(--navy); margin-bottom: 6px; }

.pagination { display: flex; gap: 6px; justify-content: center; padding: 36px 0 10px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; display: grid; place-items: center;
  border: 1.5px solid var(--line); border-radius: 9px; background: #fff;
  font-weight: 700; font-size: 14px; color: var(--navy); padding: 0 10px;
}
.pagination a:hover { border-color: var(--navy); }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .pg-gap { border: 0; background: none; color: var(--muted); pointer-events: none; padding: 0 4px; }

.filters-toggle { display: inline-flex; flex: 0 0 auto; }
.filters-toggle .fcount {
  background: var(--navy); color: #fff; border-radius: 99px;
  padding: 1px 9px; font-size: 12px; margin-left: 7px; font-weight: 700;
}
.sheet-head { display: none; }
.sheet-backdrop { display: none; }
.sheet-close {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: #f6f9fc; color: var(--navy); font-size: 15px; cursor: pointer;
  display: grid; place-items: center;
}
.sheet-close:active { transform: scale(.9); }
.sheet-head span i { color: var(--blue); margin-right: 8px; }

/* ---------- Desktop: filter sebagai drawer geser ala 99.co (grid penuh) ---------- */
@media (min-width: 861px) {
  .filters.open {
    display: block; position: fixed; top: 0; left: 0; bottom: 0; z-index: 75;
    width: min(390px, 92vw); background: #fff; border: 0; border-radius: 0;
    padding: 0 24px 10px; overflow-y: auto; overscroll-behavior: contain;
    box-shadow: 14px 0 44px rgba(15, 44, 76, .28); animation: drawer-in .28s ease;
  }
  .filters.open .sheet-head {
    display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 2; background: #fff;
    padding: 15px 0 12px; margin-bottom: 2px;
    border-bottom: 1px solid var(--line);
    font-weight: 800; font-size: 16px; color: var(--navy);
  }
  .filters.open h3 { display: none; }
  .sheet-actions { display: flex; align-items: center; gap: 14px; }
  .filters .sheet-head .reset { font-size: 13.5px; }
  .sheet-backdrop.on { display: block; position: fixed; inset: 0; background: rgba(7, 19, 36, .55); z-index: 70; }
  .filters.open .apply-bar {
    position: sticky; bottom: 0; z-index: 2; background: #fff;
    border-top: 1px solid var(--line); margin-top: 14px; padding: 12px 0 10px;
  }
  .filters.open .apply-bar .btn { margin-top: 0; }
  body.sheet-open { overflow: hidden; }
  @keyframes drawer-in { from { transform: translateX(-70px); opacity: .4; } to { transform: none; opacity: 1; } }
}

/* ---------- Halaman detail ---------- */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 30px; padding: 30px 0 10px; align-items: start; }

.gallery-main {
  position: relative; border-radius: var(--radius); overflow: hidden; background: #0b1a2c;
  aspect-ratio: 16 / 10; cursor: zoom-in;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-zoom {
  position: absolute; right: 14px; bottom: 14px; background: rgba(10, 26, 44, .75); color: #fff;
  border-radius: 8px; padding: 8px 13px; font-size: 13px; font-weight: 600; display: flex; gap: 7px; align-items: center;
}
.gallery-count {
  position: absolute; left: 14px; top: 14px; background: rgba(10, 26, 44, .75); color: #fff;
  border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 700;
}
.thumbs-wrap { position: relative; margin-top: 12px; }
.thumbs-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 6px; right: 0; width: 48px;
  pointer-events: none; background: linear-gradient(90deg, transparent, #fff 82%);
  opacity: 0; transition: opacity .2s;
}
.thumbs-wrap.can-next::after { opacity: 1; }
/* Strip thumbnail: semua foto tampil, bisa digeser (swipe/scroll), dengan panah */
.gallery-thumbs {
  display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding: 2px; cursor: grab; user-select: none;
}
.gallery-thumbs.drag { cursor: grabbing; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumbs button {
  flex: 0 0 150px; scroll-snap-align: start;
  border: 2px solid transparent; border-radius: 10px; overflow: hidden; padding: 0; cursor: pointer; background: 0; aspect-ratio: 16/10;
}
.gallery-thumbs button.on { border-color: var(--blue); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.strip-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 36px; height: 36px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .94); color: #0d2440; font-size: 13px;
  box-shadow: 0 4px 14px rgba(15, 44, 76, .18);
  display: flex; align-items: center; justify-content: center; transition: opacity .2s, background .15s;
}
.strip-nav:hover { background: #fff; }
.strip-nav[disabled] { opacity: 0; pointer-events: none; }
.strip-prev { left: -8px; } .strip-next { right: -2px; }
/* Panah navigasi pada foto utama */
.gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border: 0; border-radius: 10px; cursor: pointer;
  background: rgba(255, 255, 255, .88); color: #0d2440; font-size: 15px;
  display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.gal-nav:hover { background: #fff; }
.gal-prev { left: 12px; } .gal-next { right: 12px; }
@media (max-width: 560px) {
  .gal-nav { width: 36px; height: 36px; font-size: 13px; border-radius: 8px; }
  .gal-prev { left: 8px; } .gal-next { right: 8px; }
  .gallery-thumbs { gap: 7px; }
}

.lightbox { position: fixed; inset: 0; background: rgba(5, 14, 25, .92); z-index: 120; display: none; align-items: center; justify-content: center; touch-action: none; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 10px; touch-action: none; user-select: none; -webkit-user-drag: none; }
.lightbox .lb-btn {
  position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; border-radius: 10px;
  width: 48px; height: 48px; font-size: 20px; cursor: pointer; display: grid; place-items: center;
}
.lightbox .lb-btn:hover { background: rgba(255, 255, 255, .25); }
.lightbox .lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-close { right: 22px; top: 20px; }
.lightbox .lb-caption { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: #cfdcec; font-size: 14px; }

.detail-title { font-size: 26px; font-weight: 800; color: var(--navy); line-height: 1.25; margin: 26px 0 6px; }
.detail-loc { color: var(--muted); font-size: 15px; }
.detail-loc i { color: var(--blue); margin-right: 6px; }

.specs-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 22px;
}
.spec-item { text-align: center; }
.spec-item i { color: var(--blue); font-size: 18px; }
.spec-item .v { font-weight: 800; color: var(--navy); font-size: 15.5px; margin-top: 5px; }
.spec-item .l { font-size: 12.5px; color: var(--muted); }

.detail-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-top: 22px; }
.detail-block h2 { font-size: 19px; color: var(--navy); margin-bottom: 12px; }
.detail-block p { color: #33465e; font-size: 15px; white-space: pre-line; }
.detail-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: relative; isolation: isolate; }
.detail-map iframe { width: 100%; height: 380px; border: 0; display: block; }
.map-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 13px; }
.map-actions .btn { flex: 1 1 200px; }
.map-est {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 7px; z-index: 5; pointer-events: none;
  background: rgba(255, 255, 255, .95); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 15px; box-shadow: 0 2px 10px rgba(15, 44, 76, .12);
  font: 600 12.5px 'Plus Jakarta Sans', sans-serif; color: var(--navy); max-width: 88%;
}
.map-est i { color: var(--blue); }

/* ---------- Lokasi di sekitar (ala 99.co) ---------- */
.nearby-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.nearby-tabs button {
  border: 1.5px solid var(--line); background: #fff; color: var(--muted);
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  font: 600 13px 'Plus Jakarta Sans', sans-serif; transition: all .15s;
}
.nearby-tabs button i { margin-right: 7px; font-size: 12px; opacity: .8; }
.nearby-tabs button:hover { border-color: var(--blue); color: var(--blue); }
.nearby-tabs button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.nearby-tabs button.on i { opacity: 1; }
.nearby-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; align-items: stretch; }
.nearby-list { list-style: none; margin: 0; padding: 0; max-height: 380px; overflow-y: auto; overscroll-behavior: contain; }
@media (min-width: 1100px) { .nearby-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); column-gap: 14px; } }
.nearby-list li { display: flex; gap: 12px; align-items: center; padding: 10px 8px; border-bottom: 1px solid var(--line);
  cursor: pointer; border-radius: 10px; transition: background .15s; }
.nearby-list li:hover { background: #f4f8fd; }
.nearby-list li[hidden] { display: none; }
.nb-num {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  background: #eef3fb; color: var(--navy);
  display: grid; place-items: center; font-size: 14px;
}
.nb-dist { margin-left: auto; padding-left: 10px; flex: none; white-space: nowrap;
  font: 700 13.5px 'Plus Jakarta Sans', sans-serif; color: var(--navy); }
.nb-body { min-width: 0; }
.nb-name { display: block; font: 600 14.5px 'Plus Jakarta Sans', sans-serif; color: var(--ink); }
.nb-sub { display: block; font: 400 12.5px 'Plus Jakarta Sans', sans-serif; color: var(--muted); margin-top: 2px; }
.nearby-map { min-height: 300px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #eef2f7; }
.nb-pin {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 2px solid var(--navy); color: var(--navy);
  font: 700 12px 'Plus Jakarta Sans', sans-serif; box-shadow: 0 2px 6px rgba(15, 44, 76, .3);
}
.nb-pin.nb-home { background: var(--navy); border-color: #fff; color: #fff; width: 34px; height: 34px; font-size: 14px; }
/* Warna kategori: daftar + pin peta senada, biar sekali lihat langsung kebaca */
.nb-num.c-pendidikan   { background: #e8f1ff; color: #1d4ed8; }
.nb-num.c-kesehatan    { background: #e3f2ef; color: #0f766e; }
.nb-num.c-pembelanjaan { background: #fff3e0; color: #b45309; }
.nb-num.c-rth          { background: #e6f6ec; color: #15803d; }
.nb-pin.c-pendidikan   { border-color: #1d4ed8; color: #1d4ed8; }
.nb-pin.c-kesehatan    { border-color: #0f766e; color: #0f766e; }
.nb-pin.c-pembelanjaan { border-color: #b45309; color: #b45309; }
.nb-pin.c-rth          { border-color: #15803d; color: #15803d; }
.nearby-sum { margin: 6px 0 14px; font: 500 14.5px 'Plus Jakarta Sans', sans-serif; color: var(--muted); }
.nearby-sum b { color: var(--navy); font-weight: 800; }
.nearby-tabs .nt-n { margin-left: 7px; background: #eef3fb; color: var(--navy);
  border-radius: 999px; padding: 1px 8px; font: 800 11.5px 'Plus Jakarta Sans', sans-serif; }
.nearby-tabs button.on .nt-n { background: rgba(255, 255, 255, .22); color: #fff; }
.nearby-note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.nearby-note i { margin-right: 6px; color: var(--muted); }
@media (max-width: 860px) {
  .nearby-layout { grid-template-columns: 1fr; }
  .nearby-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); column-gap: 14px; }
  .nearby-map { order: 2; }
}

.detail-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 18px; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.price-card .price { font-size: 30px; font-weight: 800; color: var(--navy); }
.price-card .per { color: var(--muted); font-size: 14px; font-weight: 600; }
.price-card .price-sub { color: var(--muted); font-size: 13px; font-weight: 600; margin: 4px 0 0; }
.field-note { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; line-height: 1.5; }
.price-live { color: var(--navy); font-weight: 700; white-space: nowrap; }
.price-card .code { margin-top: 2px; font-size: 13px; color: var(--muted); font-weight: 700; letter-spacing: .05em; }
.price-card .btn { margin-top: 16px; }
.price-card .note { margin-top: 12px; font-size: 12.5px; color: var(--muted); text-align: center; }
.agent-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; gap: 14px; align-items: center; }
.agent-avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; display: grid; place-items: center; font-size: 20px; }
.agent-card .n { font-weight: 800; color: var(--navy); }
.agent-card .r { font-size: 13px; color: var(--muted); }

/* ---------- Tentang / Kontak ---------- */
.prose { max-width: 780px; }
.prose p { margin-bottom: 16px; color: #33465e; }
.prose h2 { color: var(--navy); font-size: 22px; margin: 30px 0 12px; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }
.contact-card i { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; margin: 0 auto 14px; background: rgba(26, 115, 200, .1); color: var(--blue); }
.contact-card h3 { color: var(--navy); font-size: 17px; margin-bottom: 6px; }
.contact-card p { color: var(--muted); font-size: 14px; }
.contact-card a.btn { margin-top: 14px; }
/* Kalau cuma satu kartu kontak, jadikan baris rapi — bukan kotak kecil kesepian */
.contact-cards .contact-card:only-child { display: flex; align-items: center; gap: 18px; text-align: left; padding: 22px 26px; flex-wrap: wrap; }
.contact-card:only-child i { margin: 0; }
.contact-card:only-child a.btn { margin-top: 0; margin-left: auto; }

/* Halaman kontak: topik cepat, info layanan, FAQ */
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 22px; }
.quick-card {
  display: flex; flex-direction: column; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px;
  text-decoration: none; color: var(--navy); box-shadow: var(--shadow);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.quick-card:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: var(--shadow-lg); }
.quick-card > i:first-child {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px;
  background: #eaf2fb; color: var(--blue); font-size: 18px; margin-bottom: 4px;
}
.quick-card .qc-t { font-weight: 700; font-size: 15.5px; }
.quick-card .qc-s { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.quick-card .qc-s i { color: #25d366; }

.info-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 16px; }
.info-item { display: flex; gap: 13px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 15px 17px; }
.info-item > i { color: var(--blue); font-size: 19px; }
.info-item b { display: block; color: var(--navy); font-size: 14.5px; }
.info-item span { font-size: 13px; color: var(--muted); }

.faq { margin-top: 26px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 10px; padding: 0 18px; }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 15px 0; font-weight: 700; color: var(--navy); font-size: 15px; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--blue); font-weight: 800; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 15px; color: var(--ink); font-size: 14.5px; line-height: 1.65; }

/* ---------- Flash ---------- */
.flash {
  display: flex; align-items: center; gap: 11px; width: 100%;
  border-radius: 12px; padding: 14px 18px; font-size: 15px; font-weight: 700;
  margin-bottom: 14px; box-shadow: 0 3px 10px rgba(16, 42, 67, .08);
  animation: flash-in .35s ease;
}
.flash i { font-size: 19px; flex: 0 0 auto; }
.flash-x {
  margin-left: auto; flex: 0 0 auto; width: 26px; height: 26px; border: 0; border-radius: 8px;
  background: rgba(0, 0, 0, .06); color: inherit; font-size: 17px; line-height: 1; cursor: pointer;
}
.flash-x:hover { background: rgba(0, 0, 0, .13); }
.flash.out { opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s; }
.flash-success { background: #e5f7ec; color: #14683c; border: 1px solid #bce7cd; }
.flash-success i { color: #1d8a4e; }
.flash-error { background: #fdeae6; color: #a03521; border: 1px solid #f5c9c0; }
.flash-error i { color: #c0492f; }
@keyframes flash-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- WhatsApp mengambang ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff; font-size: 28px;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(23, 164, 92, .45);
  transition: .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Footer ---------- */
.site-footer { background: #0b1a2c; color: #a9bcd2; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr; gap: 44px; padding: 56px 0 36px; }
.brand-light { color: #fff; }
.footer-about { margin-top: 14px; font-size: 14.5px; max-width: 340px; }
.footer-social { margin-top: 16px; display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 9px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: #fff; }
.footer-social a:hover { background: var(--blue); }
.site-footer h4 { color: #fff; font-size: 15.5px; margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 10px; font-size: 14.5px; }
.site-footer ul a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: start; }
.footer-contact i { margin-top: 4px; color: var(--blue); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; font-size: 13.5px; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.footer-admin a { color: #7f96b0; }
.footer-admin a:hover { color: #fff; }

/* ============================================================
   PANEL ADMIN
   ============================================================ */
.login-wrap { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; background: linear-gradient(135deg, #0b1a2c, #16406b); padding: 20px; }
.login-card { background: #fff; border-radius: 18px; padding: 38px; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); }
.login-card .brand { justify-content: center; margin-bottom: 22px; }
.login-card h1 { font-size: 22px; color: var(--navy); margin-bottom: 4px; }
.login-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }

.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; min-height: 100dvh; background: var(--bg); }
.admin-side { background: #0b1a2c; color: #a9bcd2; padding: 22px 16px; display: flex; flex-direction: column; gap: 4px; }
.admin-side .brand { color: #fff; margin-bottom: 22px; font-size: 17px; }
.admin-side a { padding: 11px 14px; border-radius: 9px; font-weight: 600; font-size: 14.5px; display: flex; gap: 10px; align-items: center; }
.admin-side a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.admin-side a.on { background: var(--blue); color: #fff; }
.admin-side .spacer { flex: 1; }
.admin-main { padding: 30px 34px; min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; gap: 14px; flex-wrap: wrap; }
.admin-top h1 { font-size: 22px; color: var(--navy); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.panel-pad { padding: 24px; }

table.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14.5px; vertical-align: middle; }
.admin-table tr:hover td { background: #f9fbfd; }
.admin-table img { width: 74px; height: 54px; object-fit: cover; border-radius: 8px; }
.admin-table .no-thumb { width: 74px; height: 54px; border-radius: 8px; background: #eef2f7; color: #9db2c9; display: flex; align-items: center; justify-content: center; font-size: 17px; }

/* --- Kelola listing: chip statistik, filter, pager --- */
.admin-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; align-items: stretch; }
.stat-chip { display: inline-flex; align-items: baseline; gap: 7px; padding: 10px 16px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; transition: border-color .15s, background .15s; }
.stat-chip b { font-size: 19px; color: var(--navy); }
.stat-chip:hover { border-color: var(--navy); }
.stat-chip.on { border-color: var(--navy); background: #eef4fc; box-shadow: inset 0 0 0 1px var(--navy); }
.admin-add-btn { margin-left: auto; }
.admin-filterbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; align-items: center; }
.admin-filterbar .filter-search { flex: 1; min-width: 210px; border: 1.5px solid var(--line); border-radius: 9px; padding: 10px 12px; font: 500 14px 'Plus Jakarta Sans'; }
.admin-filterbar .filter-search:focus { outline: none; border-color: var(--navy); }
.admin-filterbar select { padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 9px; font: 600 13.5px 'Plus Jakarta Sans'; background: #fff; color: var(--ink); }
.admin-filterbar select:focus { outline: none; border-color: var(--navy); }
.btn-reset { background: #fff; border: 1.5px solid var(--line); color: var(--muted); }
.btn-reset:hover { border-color: #c0392b; color: #c0392b; }
.admin-result-info { font-size: 13.5px; color: var(--muted); margin: 0 2px 12px; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 18px 0 4px; }
.pager a, .pager span { min-width: 38px; text-align: center; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 9px; font-weight: 700; font-size: 13.5px; color: var(--navy); background: #fff; text-decoration: none; }
.pager a:hover { border-color: var(--navy); }
.pager .cur { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager .gapx { border: 0; background: none; color: var(--muted); }
@media (max-width: 640px) {
  .admin-filterbar select { flex: 1 1 44%; min-width: 0; }
  .admin-filterbar .filter-search, .admin-filterbar .btn { flex: 1 1 100%; }
  .admin-stats .admin-add-btn { margin-left: 0; flex: 1 1 100%; justify-content: center; }
}
.admin-table .tag { font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 6px; background: #e8f0fa; color: var(--navy); }
.tag-sold { background: #fdeae6; color: #a03521; }
.tag-feat { background: #fdf3dd; color: #8a6206; }
.row-actions { display: flex; gap: 8px; }
.icon-btn { width: 34px; height: 34px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; color: var(--navy); display: grid; place-items: center; }
.icon-btn:hover { border-color: var(--navy); }
.icon-btn.danger { color: var(--red); }
.icon-btn.danger:hover { border-color: var(--red); background: #fdeae6; }
.icon-btn.t-toggle.on { color: #178a4c; border-color: #bfe4cf; background: #eef8f1; }
.icon-btn.t-toggle.on:hover { border-color: #178a4c; background: #e2f3e8; }
.icon-btn.t-toggle:not(.on) { color: var(--muted); }
.icon-btn.t-toggle:not(.on):hover { color: var(--navy); border-color: var(--navy); background: #f4f7fb; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-section-title { grid-column: 1 / -1; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); font-weight: 800; margin: 18px 0 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.form-section-title:first-child { border-top: 0; margin-top: 0; }
.check-line { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 14.5px; margin: 10px 0; }
.check-line input { width: 18px; height: 18px; accent-color: var(--navy); }

.photo-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.photo-admin-item { position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.photo-admin-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photo-admin-item .pa-actions { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; gap: 8px; min-height: 50px; }
.photo-admin-item .pa-actions form { display: flex; }
.photo-admin-item .pa-spacer { flex: 1; }
.photo-admin-item .main-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: #e8f6ee; color: var(--wa-dark); font-weight: 700; font-size: 12px;
  padding: 6px 11px; border-radius: 999px; white-space: nowrap;
}
.photo-admin-item .main-tag i { color: #e8a020; }
.pa-star, .pa-del { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; }
.pa-star { border: 1.5px solid var(--line); background: #fff; color: var(--navy); font-size: 15px; }
.pa-star:hover { border-color: #e8a020; color: #e8a020; background: #fdf6e9; }
.settings-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 980px) { .settings-grid { grid-template-columns: 1fr; } }

/* ---------- Responsif ---------- */
@media (max-width: 1024px) {
  .values { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-side { position: static; }
  .hero-search { grid-template-columns: 1fr auto; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed; inset: 58px 0 auto 0; background: #fff; flex-direction: column;
    padding: 10px 6vw 20px; gap: 0; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px rgba(15, 44, 76, .12);
    transform: translateY(-130%); transition: transform .3s ease; align-items: stretch;
  }
  .main-nav.open { transform: none; }
  .main-nav a:not(.btn) {
    padding: 14px 12px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 8px;
  }
  .main-nav a:not(.btn)::after { display: none; }
  .main-nav a.active { background: #f2f6fc; box-shadow: inset 3px 0 0 var(--blue); }
  .main-nav .nav-cta { justify-content: center; margin-top: 16px; }
  .nav-toggle { display: block; }
  /* X dalam panel hanya untuk halaman cari (yang tak punya header);
     di halaman biasa, ☰ header sendiri yang berubah jadi X di tempatnya. */
  .nav-close {
    position: absolute; z-index: 2;
    width: 34px; height: 34px; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: 999px; background: #fff;
    color: var(--navy); font-size: 15px; cursor: pointer;
  }
  .nav-close:hover { border-color: var(--blue); color: var(--blue); }
  /* Halaman cari: posisi X tepat menutupi bekas ☰ di bar pencarian (cx±620, cy±43) */
  body.page-search .nav-close { display: flex; top: 26px; right: 30px; }
  @media (max-width: 420px) {
    /* di layar kecil padding container beda — geser X agar pas di bekas ☰ lagi (cx±354, cy±37) */
    body.page-search .nav-close { top: 20px; right: 19px; }
  }

  /* Halaman cari di layar kecil: TANPA header — bar pencarian langsung di paling atas */
  body.page-search .site-header { position: absolute; height: 0; border: 0; transform: none !important; backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.page-search .header-inner { height: 0; min-height: 0; }
  body.page-search .brand, body.page-search .nav-toggle { display: none; }
  body.page-search .main-nav { inset: 0 0 auto 0; z-index: 80; padding-top: 66px; }
  body.page-search .nav-scrim { inset: 0; z-index: 59; }
  body.page-search .band-menu { display: inline-flex; }
  /* Saat menu terbuka, bar pencarian tenggelam supaya tidak menutupi menu */
  body.page-search.nav-locked .search-band { opacity: 0; pointer-events: none; transition: opacity .2s ease; }

  /* Hero di layar kecil: kador lebih pekat agar teks tetap kontras */
  .hero::after {
    background: linear-gradient(165deg, rgba(7, 19, 36, .96) 32%, rgba(13, 36, 64, .8) 68%, rgba(16, 48, 84, .55) 100%);
  }
  .search-layout { grid-template-columns: minmax(0, 1fr); padding-top: 20px; }
  .page-head { padding: 20px 0 22px; }
  .page-head h1 { font-size: 22px; }
  .page-head p { font-size: 14px; margin-top: 4px; }
  .filters { display: none; }
  .filters-toggle { display: inline-flex; flex: 0 0 auto; }
  /* Bar hasil sticky: Filter + jumlah + urutkan selalu terlihat saat scroll (gaya 99.co) */
  .results-bar {
    position: sticky; top: calc(var(--bandh, 76px) - 2px); z-index: 45; flex-wrap: nowrap; gap: 10px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 10px 12px; margin-bottom: 14px; box-shadow: 0 8px 20px rgba(15, 44, 76, .07);
  }
  .results-count { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; }
  .sortbox { flex: 0 0 auto; gap: 6px; }
  .sortbox select { padding: 7px 8px; }
  /* Filter gaya 99.co: panel naik dari bawah (bottom sheet) + backdrop */
  .filters.open {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 75;
    background: #fff; border: 0; border-radius: 20px 20px 0 0; padding: 0 18px 8px;
    max-height: 88vh; overflow-y: auto; overscroll-behavior: contain;
    box-shadow: 0 -14px 44px rgba(15, 44, 76, .28); animation: sheet-up .3s ease;
  }
  .filters.open .sheet-head {
    display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 2; background: #fff;
    padding: 15px 0 12px; margin-bottom: 2px;
    border-bottom: 1px solid var(--line);
    font-weight: 800; font-size: 16px; color: var(--navy);
  }
  .filters.open h3 { display: none; }
  .sheet-actions { display: flex; align-items: center; gap: 14px; }
  .filters .sheet-head .reset { font-size: 13.5px; }
  .sheet-backdrop.on { display: block; position: fixed; inset: 0; background: rgba(7, 19, 36, .55); z-index: 70; }
  .filters.open .apply-bar {
    position: sticky; bottom: 0; z-index: 2; background: #fff;
    border-top: 1px solid var(--line); margin-top: 12px;
    padding: 12px 0 calc(10px + env(safe-area-inset-bottom));
  }
  .filters.open .apply-bar .btn { margin-top: 0; }
  body.sheet-open { overflow: hidden; }
  @keyframes sheet-up { from { transform: translateY(80px); opacity: .4; } to { transform: none; opacity: 1; } }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .stats { grid-template-columns: 1fr; margin-top: 26px; }
  .hero-inner { padding: 60px 0 30px; }
  .hero .container { padding-bottom: 40px; }
  .admin-layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .admin-side {
    flex-direction: row; flex-wrap: wrap; align-items: center;
    align-content: flex-start; padding: 12px 16px; gap: 4px 4px; row-gap: 8px;
  }
  .admin-side .brand { margin: 0 14px 0 0; }
  .admin-side .spacer { flex: 0 0 100%; height: 0; }
  /* Layar kecil: tabel daftar rumah berubah jadi kartu — tanpa geser menyamping */
  .admin-table { min-width: 0; }
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody { display: block; width: 100%; }
  .admin-table tr {
    display: grid; grid-template-columns: auto 1fr; gap: 10px 14px;
    border: 1px solid var(--line); border-radius: 14px; background: #fff;
    padding: 14px; margin: 12px; box-shadow: 0 1px 3px rgba(16, 42, 67, .05);
  }
  .admin-table tr:hover td { background: transparent; }
  .admin-table td { border: 0; padding: 0; display: block; font-size: 14px; }
  .admin-table td::before {
    content: attr(data-l); display: block; margin-bottom: 3px;
    font-size: 10.5px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .07em; color: var(--muted);
  }
  .admin-table td[data-l=""]::before { content: none; }
  .admin-table td:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
  .admin-table td:nth-child(2) { grid-column: 2; grid-row: 1; align-self: center; }
  .admin-table td:nth-child(3) { grid-column: 2; grid-row: 2; }
  .admin-table td:nth-child(4) { grid-column: 1 / -1; grid-row: 3; }
  .admin-table td:nth-child(5) { grid-column: 1; grid-row: 4; }
  .admin-table td:nth-child(6) { grid-column: 2; grid-row: 4; }
  .admin-table td:nth-child(7) { grid-column: 1; grid-row: 5; align-self: center; }
  .admin-table td:nth-child(8) { grid-column: 1 / -1; grid-row: 6; }
  .admin-table .row-actions { justify-content: space-between !important; gap: 6px; }
  .admin-table .icon-btn { width: 46px; height: 46px; }  /* target sentuh nyaman */
  .admin-table .no-thumb, .admin-table img { width: 64px; height: 52px; }
  /* Testimoni: kartu 5 kolom — aksi jadi satu gerombolan di kanan */
  .admin-table.t-table tr { grid-template-columns: 1fr auto; }
  .admin-table.t-table td:nth-child(1) { grid-column: 1;   grid-row: 1; }
  .admin-table.t-table td:nth-child(2) { grid-column: 2;   grid-row: 1; justify-self: end; align-self: center; }
  .admin-table.t-table td:nth-child(3) { grid-column: 1/-1; grid-row: 2; }
  .admin-table.t-table td:nth-child(4) { grid-column: 1;   grid-row: 3; align-self: center; }
  .admin-table.t-table td:nth-child(5) { grid-column: 2;   grid-row: 3; align-self: center; }
  .admin-table.t-table td:nth-child(5) .row-actions { justify-content: flex-end !important; }
  .admin-table.t-table td { max-width: none !important; }
  .admin-table.t-table .icon-btn { width: 40px; height: 40px; }
  /* Form testimoni: simpan melebar penuh, sort rata kiri */
  .t-save { margin-left: 0 !important; }
  .t-save .btn { flex: 1; justify-content: center; }
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
}

@media (min-width: 861px) and (max-width: 900px) {
  /* Tablet sempit (masih mode tabel): tabel 8 kolom boleh digeser menyamping.
     Di 641–860 tabel sudah jadi kartu, jadi JANGAN dipaksa 880px. */
  .admin-table { min-width: 880px; }
}

@media (max-width: 560px) {
  .values { grid-template-columns: 1fr; }
  /* Bar hasil sempit: label "Urutkan:" disembunyikan, cukup dropdownnya */
  .sortbox label { display: none; }
  .hero-search { grid-template-columns: 1fr; }
  /* Mobile: thumbnail strip lebih kecil (swipe sudah didukung gaya dasar) */
  .gallery-thumbs button { flex-basis: 96px; }
  .cta-banner { padding: 30px 24px; }
  .admin-main { padding: 20px 16px; }
  .admin-side a { padding: 9px 11px; font-size: 13.5px; }
  .admin-side .brand { font-size: 15px; }
  .wa-float { right: 16px; bottom: 16px; }
}

/* ===== Search band ala 99.co (kolom besar + dropdown cepat + chip wilayah) ===== */
/* Pita pencarian — nempel di atas saat scroll (ala 99.co); menutup header saat menempel */
.search-band {
  background: #fff; border-bottom: 1px solid var(--line); padding: 16px 0 14px;
  position: sticky; top: 0; z-index: 65;
  transition: box-shadow .25s ease;
}
/* Compact = hanya bayangan lembut; TINGGI pita tidak berubah sama sekali,
   jadi baris chip Harga/Luas Tanah/Luas Bangunan tidak pernah hilang-timbul */
.search-band.compact { box-shadow: 0 10px 26px rgba(15, 44, 76, .14); border-bottom-color: transparent; }
.search-band.compact .quick-row { margin-top: 13px; }
.band-row { display: flex; align-items: center; gap: 12px; }
.band-row .big-search { flex: 1 1 auto; min-width: 0; }
.band-tools { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.band-tools .sortbox { display: flex; align-items: center; gap: 8px; }
.band-tools .sortbox label { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.band-tools .sortbox select {
  border: 1.5px solid #d7e1ec; border-radius: 999px; padding: 8px 14px;
  font: inherit; font-size: 13.5px; font-weight: 700; color: var(--navy);
  background: #fff; cursor: pointer;
}
.band-tools .sortbox select:hover { border-color: var(--blue); }
/* Urutan versi bar hasil: hanya untuk layar kecil */
.sortbox-mob { display: none; }
.big-search {
  display: flex; align-items: center; gap: 10px; position: relative;
  border: 1.5px solid #d7e1ec; border-radius: 999px; padding: 7px 7px 7px 18px;
  background: #fff; box-shadow: 0 6px 18px rgba(15,44,76,.08);
  transition: border-color .15s, box-shadow .15s;
}
.big-search:focus-within { border-color: var(--blue); box-shadow: 0 6px 18px rgba(37,99,175,.16); }
.big-search .pin { color: #8aa0b8; font-size: 15px; }
.big-search input {
  flex: 1; border: 0; outline: 0; font: inherit; font-size: 15.5px;
  color: var(--navy); background: transparent; min-width: 0;
}
.big-search input::placeholder { color: #9db0c4; }
.big-search .btn { border-radius: 999px; padding: 10px 22px; flex: 0 0 auto; }
.quick-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 13px; }
.qd { position: relative; }
.qd-btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  border: 1px solid #d7e1ec; border-radius: 999px; background: #fff;
  padding: 8px 16px; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--navy);
  transition: border-color .15s, color .15s;
}
.qd-btn i { font-size: 10px; color: #8aa0b8; transition: transform .15s; }
.qd.on .qd-btn { border-color: var(--blue); color: var(--blue); }
.qd.open .qd-btn { border-color: var(--blue); color: var(--blue); }
.qd.open .qd-btn i { transform: rotate(180deg); }
.qd-pop {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; z-index: 70;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 14px 34px rgba(15,44,76,.18); padding: 14px 16px; min-width: 280px; max-width: 420px;
}
.qd.open .qd-pop { display: block; }
.qd-pop .chips { flex-wrap: wrap; }
.filter-with { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 22px 0 10px; }
.filter-with > span { font-size: 13px; font-weight: 800; color: var(--navy); }
.filter-with > span i { color: var(--blue); margin-right: 7px; }
@media (max-width: 640px) {
  .search-band { padding: 10px 0 11px; }
  .big-search .btn { padding: 10px 12px; }
  .big-search .btn span { display: none; }
  .band-row { gap: 8px; }
  .band-tools { gap: 7px; }
  /* Tombol Filter jadi ikon saja di HP — hemat tempat */
  .filters-toggle { padding: 9px 11px; }
  .filters-toggle span { display: none; }
  /* Di HP pencarian harus lebar: urutan pindah ke bar hasil di bawah */
  .band-tools .sortbox { display: none; }
  .results-bar .sortbox-mob { display: flex; align-items: center; }
  .results-bar .sortbox-mob select {
    border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px;
    font: inherit; font-size: 12.5px; font-weight: 700; color: var(--navy);
    background: #fff; max-width: 145px;
  }
  .qd-pop { min-width: min(320px, calc(100vw - 40px)); }
  /* HP: baris chip Harga/Luas dihapus dari pita pencarian — pita jadi ramping
     & tidak pernah goyang; filter lengkap tetap cukup lewat ikon ⚙ di samping Cari */
  .quick-row { display: none; }
  .filter-with { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 18px 0 6px; }
  .filter-with::-webkit-scrollbar { display: none; }
  .filter-with > span { width: auto; flex: 0 0 auto; white-space: nowrap; }
  .filter-with .chips { flex-wrap: nowrap; flex: 0 0 auto; }
  /* Judul halaman jadi ramping ala 99.co — tanpa banner navy besar di HP */
  .page-head { background: #fff; color: var(--navy); padding: 14px 0 4px; }
  .page-head h1 { font-size: 19px; margin-top: 6px; }
  .page-head p { color: var(--muted); font-size: 13px; margin-top: 3px; }
  .page-head .breadcrumb { font-size: 12px; margin-bottom: 2px; color: #5c6b80; }
}

/* ================= OVER KREDIT & TESTIMONI ================= */
.tag-ok { background: #fff1e0; color: #96580a; }
.ok-inline { color: #96580a; }
.ok-note {
  margin: 10px 0 2px; padding: 10px 12px; border-radius: 10px;
  background: #fff1e0; color: #7c4a00; font-size: 13px; line-height: 1.55;
}
.ok-note i { color: #b06a00; margin-right: 4px; }

.kind-tile.kind-ok { border-color: #f0d7b4; }
.kind-tile.kind-ok:hover { border-color: #d99b3c; }
.kind-tile.kind-ok i { background: #fff1e0; color: #b06a00; }

.ok-banner {
  display: flex; align-items: center; gap: 20px;
  background: linear-gradient(135deg, #0f2c4c, #1e4570);
  color: #fff; border-radius: 16px; padding: 22px 24px; box-shadow: var(--shadow-lg);
}
.ok-ico {
  flex: 0 0 54px; width: 54px; height: 54px; border-radius: 14px;
  background: rgba(255, 255, 255, .12); display: grid; place-items: center;
}
.ok-ico i { font-size: 24px; color: #ffcf8a; }
.ok-copy { flex: 1; min-width: 0; }
.ok-copy h2 { margin: 0 0 6px; font-size: 20px; color: #fff; }
.ok-copy p { margin: 0; font-size: 14px; color: #c9d6e6; line-height: 1.55; }
.ok-banner .btn { flex: 0 0 auto; white-space: nowrap; }

.testi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testi-card {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.testi-stars { color: #a8720a; font-size: 13px; letter-spacing: 2px; margin-bottom: 10px; }
.testi-stars .off { color: #aebccb; }
.testi-card blockquote { margin: 0 0 16px; font-size: 14.5px; line-height: 1.6; color: #24405e; flex: 1; }
.testi-foot { display: flex; align-items: center; gap: 11px; }
.testi-avatar {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #123a63, #24557f); color: #fff;
  font-weight: 800; font-size: 16px; display: grid; place-items: center;
}
.testi-who b { display: block; font-size: 14px; color: var(--navy); }
.testi-who span { font-size: 12.5px; color: var(--muted); }
.testi-who a { color: var(--blue); font-weight: 600; }

@media (max-width: 1024px) { .testi-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .ok-banner { flex-direction: column; text-align: center; gap: 14px; padding: 20px 16px; }
  .ok-copy h2 { font-size: 17.5px; }
  /* carousel testimoni: geser mendatar dengan snap, kartu terpotong sedikit di ujung
     supaya terlihat masih ada lagi (pola yang sama dgn carousel foto) */
  .testi-row {
    display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin: 0 -12px; padding: 2px 12px 12px;
  }
  .testi-row::-webkit-scrollbar { display: none; }
  .testi-card { flex: 0 0 min(80vw, 320px); scroll-snap-align: center; }
}

/* ===== Berita & Promo: embed postingan Facebook ===== */
.fb-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:20px}
.fb-card{background:#fff;border:1px solid #e6eaf2;border-radius:16px;overflow:hidden;box-shadow:0 3px 14px rgba(16,42,84,.07)}
.fb-head{display:flex;gap:11px;align-items:center;padding:13px 16px;background:#f4f8ff;border-bottom:1px solid #e6eaf2}
.fb-mark{flex:0 0 auto;width:38px;height:38px;border-radius:50%;background:#1877F2;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:18px}
.fb-who{display:flex;flex-direction:column;gap:2px;min-width:0}
.fb-who b{font-size:14.5px;color:var(--navy,#13294b);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fb-who span{font-size:12.5px;color:var(--muted,#5f6b7a)}
.fb-body{padding:16px;min-height:130px;display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center}
.fb-load{border:2px dashed #1877F2;background:#f2f7ff;color:#1877F2;font-weight:700;font-size:14px;padding:15px 22px;border-radius:12px;cursor:pointer;transition:.15s}
.fb-load:hover{background:#1877F2;color:#fff}
.fb-body iframe{width:100%;border:0;min-height:300px;border-radius:8px;background:#fff}

/* ---- Input Cepat (admin) ---- */
.qs-warn{
  background:#fef3c7;border:1px solid #f59e0b;color:#92400e;
  border-radius:10px;padding:12px 14px;margin:0 0 14px;font-size:.95rem;line-height:1.55;
}
.qs-warn a{color:#92400e;text-decoration:underline}
.qs-grid{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.qs-thumb{
  width:112px;height:84px;object-fit:cover;border-radius:8px;
  border:1px solid #e2e8f0;background:#f8fafc;
}

/* ===== Poster Kolase (admin) ===== */
.kchips{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.kchip{display:inline-flex;align-items:center;gap:7px;padding:8px 14px;border:1.5px solid #d7dee8;border-radius:99px;
  background:#fff;font-size:13px;font-weight:600;color:#38506e;cursor:pointer;user-select:none;transition:all .15s}
.kchip input{accent-color:var(--navy);width:15px;height:15px;margin:0;cursor:pointer}
.kchip b{color:var(--muted);font-weight:700}
.kchip.on{border-color:var(--navy);background:#eef4fb;color:var(--navy)}
.kchip.on b{color:var(--navy)}
.kchip-act{background:none;border:1.5px dashed #b9c6d6;border-radius:99px;padding:7px 13px;font-size:12.5px;
  font-weight:600;color:var(--muted);cursor:pointer;transition:all .15s}
.kchip-act:hover{border-color:var(--navy);color:var(--navy)}
.jinput{display:flex;align-items:center;gap:9px;border:1.5px solid #d7dee8;border-radius:12px;padding:2px 11px;background:#fff;transition:border-color .15s,box-shadow .15s}
.jinput:focus-within{border-color:var(--navy);box-shadow:0 0 0 3px rgba(15,48,80,.10)}
.jinput>i{color:var(--muted);font-size:14px}
.jinput input{border:0;outline:0;background:transparent;flex:1;min-width:0;font-size:14.5px;font-weight:600;color:#1d3557;padding:10px 0}
.jinput input::placeholder{font-weight:500;color:#9fb0c3}
#clrJudul{border:0;background:#eef2f7;width:24px;height:24px;border-radius:50%;cursor:pointer;color:var(--muted);align-items:center;justify-content:center;flex:none;transition:all .15s}
#clrJudul:hover{background:#dfe7f0;color:var(--navy)}
.jhelp{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:6px;font-size:12.5px;color:var(--muted)}
.jhelp b{color:var(--navy);font-weight:700}
.jcount{font-weight:700;color:var(--muted);white-space:nowrap}


.psel-item{display:flex;flex-direction:column;gap:4px;border:1.5px solid #e2e8f0;border-radius:10px;
  padding:8px;cursor:pointer;background:#fff;width:132px;position:relative;transition:border-color .15s,box-shadow .15s}
.psel-item input{position:absolute;right:10px;top:10px;width:18px;height:18px;accent-color:var(--navy);cursor:pointer}
.psel-item .qs-thumb{width:100%;height:84px}
.psel-item.on{border-color:var(--navy);box-shadow:0 4px 12px rgba(15,48,80,.14)}
.pbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:14px}
.pbar-hint{margin-left:auto;font-size:12.5px;color:var(--muted);font-weight:600}
.pwrap{overflow:hidden;width:100%}
.pscale{transform-origin:top left;width:1200px}

/* =================== PENYEMPURNAAN HASIL AUDIT =================== */
/* Indikator fokus keyboard (tetam tidak muncul saat klik mouse) */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
button:focus-visible, a:focus-visible, select:focus-visible,
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Tautan "lewati ke konten" untuk pengguna keyboard/screen reader */
.skip-link {
  position: absolute; left: 10px; top: -60px; z-index: 300;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 10px;
  font-weight: 700; font-size: 14px; text-decoration: none; transition: top .15s ease;
}
.skip-link:focus { top: 0; }

/* --- target sentuh mobile (audit v112): perkecil risiko salah tekan --- */
@media (max-width: 720px) {
  .big-search input { min-height: 34px; }          /* kolom cari: 26 -> 34px */
  .vt                { min-height: 34px; }          /* Grid/List: 29 -> 34px */
  .nav-close         { width: 36px; height: 36px; }
  .btn-wa.nav-cta,
  .btn-wa.btn-block  { min-height: 38px; }          /* tombol WhatsApp >= 38px */
}
/* Hormati pengaturan "kurangi animasi" pada perangkat (a11y) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}
