/* ============================================================
   Tema situs publik — ubah warna utama lewat variabel di bawah
   ============================================================ */
:root {
  --hijau-tua: #14532d;
  --hijau: #16a34a;
  --hijau-gelap: #15803d;
  --hijau-muda: #dcfce7;
  --aksen: #d97706;
  --teks: #1f2937;
  --teks-muda: #6b7280;
  --latar: #ffffff;
  --latar-abu: #f3f7f4;
  --garis: #e5e7eb;
  --radius: 14px;
  --bayang: 0 10px 30px rgba(15, 40, 20, .08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--teks);
  background: var(--latar);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--hijau-gelap); text-decoration: none; }

.wadah { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.wadah-sempit { max-width: 720px; }
.tengah { text-align: center; }
.tengah-flex { justify-content: center; }
.jarak-atas { margin-top: 28px; }
.kosong { color: var(--teks-muda); padding: 24px 0; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* ---------- Tombol ---------- */
.tombol {
  display: inline-block;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.tombol:hover { transform: translateY(-2px); }
.tombol-utama { background: var(--hijau); color: #fff; box-shadow: 0 6px 16px rgba(22, 163, 74, .35); }
.tombol-utama:hover { background: var(--hijau-gelap); }
.tombol-putih { background: #fff; color: var(--hijau-tua); }
.tombol-garis { background: transparent; color: var(--hijau-gelap); border-color: var(--hijau); }
.tombol-garis:hover { background: var(--hijau-muda); }
.tombol-garis-putih { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.tombol-garis-putih:hover { background: rgba(255,255,255,.12); }
.tombol-wa { background: #25d366; color: #fff; }
.tombol-wa:hover { background: #1eb856; }
.tombol.blok { display: block; text-align: center; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--garis);
}
.nav-isi { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 800; color: var(--hijau-tua); white-space: nowrap; }
.logo-img { height: 40px; width: auto; display: block; }
.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu a { padding: 9px 14px; border-radius: 999px; color: var(--teks); font-weight: 500; font-size: 15px; }
.nav-menu a:hover { background: var(--latar-abu); }
.nav-menu a.aktif { background: var(--hijau-muda); color: var(--hijau-tua); font-weight: 700; }
.nav-menu a.tombol-wa { color: #fff; margin-left: 6px; padding: 9px 18px; }
.nav-menu a.tombol-wa:hover { background: #1eb856; }
.nav-tombol { display: none; font-size: 24px; background: none; border: none; cursor: pointer; color: var(--hijau-tua); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(255,255,255,.14), transparent 60%),
    radial-gradient(700px 380px at 5% 110%, rgba(217,119,6,.25), transparent 55%),
    linear-gradient(135deg, #14532d 0%, #166534 45%, #15803d 100%);
  color: #fff;
  padding: 84px 0 52px;
}
.hero-isi { max-width: 760px; }
.hero-label { text-transform: uppercase; letter-spacing: 3px; font-size: 13px; color: #bbf7d0; margin-bottom: 10px; }
.hero h1 { font-size: clamp(32px, 5.5vw, 52px); line-height: 1.15; margin-bottom: 14px; }
.hero-tagline { font-size: clamp(16px, 2.4vw, 20px); color: #e7f9ee; margin-bottom: 28px; }
.hero-tombol { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-poin { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; font-size: 14.5px; color: #d1fadf; }

/* ---------- Banner halaman dalam ---------- */
.banner-halaman {
  background: linear-gradient(135deg, #14532d, #15803d);
  color: #fff;
  padding: 44px 0;
}
.banner-halaman h1 { font-size: clamp(26px, 4vw, 36px); }
.banner-halaman p { color: #d1fadf; margin-top: 6px; }

/* ---------- Bagian umum ---------- */
.bagian { padding: 64px 0; }
.bagian-abu { background: var(--latar-abu); }
.bagian-judul { text-align: center; max-width: 640px; margin: 0 auto 38px; }
.bagian-judul h2 { font-size: clamp(24px, 3.6vw, 32px); color: var(--hijau-tua); margin-bottom: 8px; }
.bagian-judul p { color: var(--teks-muda); }

/* ---------- Kotak pencarian (ala portal properti) ---------- */
.kotak-cari {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(8, 35, 18, .28);
  padding: 16px;
}
.hero .kotak-cari { margin-top: 42px; }
.kotak-cari-halaman { margin-bottom: 34px; border: 1px solid var(--garis); box-shadow: var(--bayang); }
.cari-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr auto; gap: 10px; }
.cari-grid-5 { grid-template-columns: 1.6fr 1fr 1fr 1.2fr auto; }
.cari-grid input, .cari-grid select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--garis);
  border-radius: 12px;
  font: inherit; font-size: 15px;
  background: #fff; color: var(--teks);
}
.cari-grid input:focus, .cari-grid select:focus {
  outline: none; border-color: var(--hijau); box-shadow: 0 0 0 3px rgba(22, 163, 74, .18);
}
.cari-grid .tombol { padding: 13px 26px; white-space: nowrap; }
.cari-hasil { margin-top: 12px; font-size: 14px; color: var(--teks-muda); }
@media (max-width: 860px) {
  .cari-grid, .cari-grid-5 { grid-template-columns: 1fr; }
  .hero .kotak-cari { margin-top: 30px; }
}

/* ---------- Kartu tipe rumah ---------- */
.grid-kartu {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.kartu-tipe {
  background: #fff;
  border: 1px solid var(--garis);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--bayang);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
}
.kartu-tipe:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(15, 40, 20, .14); }
.kartu-foto { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.kartu-foto img { width: 100%; height: 100%; object-fit: cover; }
.foto-kosong {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px;
  background: linear-gradient(135deg, #e8f5ec, #d3ecd9);
}
.badge {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; color: #fff;
}
.badge-hijau { background: var(--hijau); }
.badge-merah { background: #dc2626; }
.kartu-isi { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.kartu-isi h3 { font-size: 19px; color: var(--hijau-tua); }
.harga { color: var(--aksen); font-weight: 800; font-size: 20px; }
.harga-besar { font-size: 30px; }
.spek { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--teks-muda); font-size: 14px; }
.kartu-isi .tombol { margin-top: auto; }

/* ---------- Fasilitas ---------- */
.fasilitas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.fasilitas-item {
  background: #fff;
  border: 1px solid var(--garis);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.fasilitas-ikon { font-size: 38px; display: block; margin-bottom: 10px; }
.fasilitas-item h3 { font-size: 17px; margin-bottom: 6px; color: var(--hijau-tua); }
.fasilitas-item p { font-size: 14px; color: var(--teks-muda); }

/* ---------- Galeri ---------- */
.galeri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.galeri-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--bayang);
}
.galeri-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.galeri-item:hover img { transform: scale(1.05); }
.galeri-judul {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px 14px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  color: #fff; font-size: 13.5px; font-weight: 600;
}
.tab-baris { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 30px; }
.tab {
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--garis); background: #fff;
  color: var(--teks); font-size: 14px; font-weight: 600;
}
.tab.aktif { background: var(--hijau); border-color: var(--hijau); color: #fff; }

/* ---------- Detail tipe ---------- */
.remah { font-size: 13.5px; color: var(--teks-muda); margin-bottom: 22px; }
.detail-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: start; }
.foto-besar-wadah { position: relative; }
.detail-foto img#fotoBesar {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--bayang); cursor: zoom-in;
  display: block;
}
.foto-panah {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px;
  border: none; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--hijau-tua);
  font-size: 26px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  transition: background .15s ease;
}
.foto-panah:hover { background: #fff; }
.foto-panah-kiri { left: 12px; }
.foto-panah-kanan { right: 12px; }
.foto-kosong-besar { aspect-ratio: 4 / 3; border-radius: var(--radius); font-size: 90px; }
.foto-mini-baris { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.foto-mini {
  width: 84px; height: 64px; padding: 0;
  border: 2px solid var(--garis); border-radius: 8px;
  overflow: hidden; cursor: pointer; background: none;
}
.foto-mini img { width: 100%; height: 100%; object-fit: cover; }
.foto-mini:hover, .foto-mini.aktif { border-color: var(--hijau); }
.detail-info h1 { font-size: clamp(26px, 4vw, 34px); color: var(--hijau-tua); margin: 10px 0 6px; }
.detail-info .badge { position: static; display: inline-block; }
.tabel-spek { width: 100%; border-collapse: collapse; margin: 18px 0 22px; }
.tabel-spek td { padding: 10px 4px; border-bottom: 1px solid var(--garis); font-size: 15px; }
.tabel-spek td:first-child { color: var(--teks-muda); }
.tabel-spek td:last-child { text-align: right; font-weight: 700; }
.detail-deskripsi { margin-top: 44px; max-width: 780px; }
.detail-deskripsi h2 { color: var(--hijau-tua); margin-bottom: 12px; }

/* ---------- Form ---------- */
.form { background: #fff; border: 1px solid var(--garis); border-radius: var(--radius); padding: 26px; box-shadow: var(--bayang); }
.form-baris { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grup { margin-bottom: 16px; }
.form-grup label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.form-grup input, .form-grup textarea, .form-grup select {
  width: 100%; padding: 11px 14px;
  border: 1px solid #d1d5db; border-radius: 10px;
  font: inherit; font-size: 15px; background: #fff; color: var(--teks);
}
.form-grup input:focus, .form-grup textarea:focus, .form-grup select:focus {
  outline: none; border-color: var(--hijau); box-shadow: 0 0 0 3px rgba(22, 163, 74, .18);
}

.flash { padding: 13px 18px; border-radius: 10px; margin-bottom: 18px; font-size: 14.5px; font-weight: 600; }
.flash-sukses { background: var(--hijau-muda); color: #14532d; border: 1px solid #86efac; }
.flash-gagal { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ---------- Kontak ---------- */
.kontak-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
.kontak-grid h2 { color: var(--hijau-tua); margin-bottom: 18px; }
.kontak-daftar { list-style: none; margin-bottom: 24px; }
.kontak-daftar li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--garis); font-size: 15px; }
.kontak-daftar span { font-size: 22px; }
.kontak-daftar strong { color: var(--hijau-tua); }

/* ---------- Peta & CTA ---------- */
.peta-kotak { border-radius: var(--radius); overflow: hidden; box-shadow: var(--bayang); }
.peta-kotak iframe { width: 100%; height: 380px; border: 0; display: block; }
.kotak-cta {
  background: linear-gradient(135deg, #14532d, #166534);
  color: #fff;
  padding: 60px 0;
}
.kotak-cta h2 { font-size: clamp(22px, 3.4vw, 30px); margin-bottom: 8px; }
.kotak-cta p { color: #d1fadf; margin-bottom: 24px; }

/* ---------- Footer ---------- */
.footer { background: #0f2f1c; color: #cde9d6; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr .8fr;
  gap: 36px;
  padding: 52px 20px 40px;
}
.footer h4 { color: #fff; margin-bottom: 14px; font-size: 16px; }
.footer-logo { color: #fff; font-size: 19px; margin-bottom: 10px; }
.footer p { font-size: 14px; }
.footer ul { list-style: none; }
.footer-kontak li { padding: 5px 0; font-size: 14px; }
.footer-menu li { padding: 4px 0; }
.footer-menu a { color: #cde9d6; font-size: 14px; }
.footer-menu a:hover { color: #fff; }
.footer-sosial { display: flex; gap: 10px; margin-top: 16px; }
.footer-sosial a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #a7e6bf;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.footer-sosial a:hover { background: var(--hijau); color: #fff; transform: translateY(-2px); }
.footer-sosial svg { display: block; }
.footer-bawah { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; font-size: 13px; color: #9ccbad; }

/* ---------- Tombol WhatsApp mengambang ---------- */
.wa-mengambang {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px;
  background: #25d366; color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .5);
  transition: transform .15s ease;
}
.wa-mengambang:hover { transform: scale(1.08); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, .88);
  display: none;
  align-items: center; justify-content: center;
  padding: 30px;
  cursor: zoom-out;
}
.lightbox.tampil { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; }
.lightbox-tutup {
  position: absolute; top: 16px; right: 24px;
  color: #fff; font-size: 30px; cursor: pointer;
}

/* ---------- Responsif ---------- */
@media (max-width: 860px) {
  .nav-tombol { display: block; }
  .nav-menu {
    display: none;
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--garis);
    padding: 12px 16px 16px; gap: 4px;
    box-shadow: 0 14px 30px rgba(0,0,0,.1);
  }
  .nav-menu.terbuka { display: flex; }
  .nav-menu a { padding: 12px 14px; }
  .nav-menu a.tombol-wa { margin: 8px 0 0; text-align: center; }

  .detail-grid, .kontak-grid { grid-template-columns: 1fr; }
  .form-baris { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .bagian { padding: 48px 0; }
  .hero { padding: 60px 0 52px; }
}
