/* =============================================================
   TPU Kampung Yuwanain — gaya publik
   Tema: hijau alam / TPU asri, peta satelit, tipografi serif.
   Catatan: JANGAN memakai overflow-x:hidden pada body (mematikan sticky).
   ============================================================= */

:root {
  --forest-950: #05201A;
  --forest-900: #0A2E21;
  --forest-800: #0E3D2C;
  --forest-700: #145238;
  --forest-600: #1B6A48;
  --forest-500: #218459;
  --leaf: #4FA96A;
  --leaf-soft: #DCEEDC;
  --blue: #2A6FB0;
  --blue-soft: #DCE9F6;
  --sun: #E9B44C;
  --sun-soft: #FBF1DA;
  --clay: #C4703F;
  --bg: #F4F7F1;
  --paper: #FFFFFF;
  --sand: #EDF2E6;
  --ink: #12241C;
  --muted: #5E7369;
  --line: #DEE8DC;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 22px 44px -30px rgba(10, 46, 33, .5);
  --shadow-soft: 0 10px 26px -20px rgba(10, 46, 33, .45);
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--forest-700); text-decoration: none; }
a:hover { color: var(--forest-500); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: .92em; background: var(--sand); padding: 2px 6px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.ico { flex: 0 0 auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--forest-800); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; color: #fff; }

:focus-visible { outline: 2px solid var(--forest-500); outline-offset: 2px; }

/* -------------------------------------------------------------
   Header (topbar + kepala situs disatukan supaya sticky rapi)
   ------------------------------------------------------------- */
.site-top {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.topbar { background: var(--forest-900); color: #CFE3D6; font-size: 12.5px; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 34px; }
.tb-item { display: inline-flex; align-items: center; gap: 6px; }
.tb-right { display: flex; align-items: center; gap: 18px; }
.tb-link { color: var(--sun); font-weight: 600; }
.tb-link:hover { color: #fff; }

.head-in { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-logo {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--forest-600), var(--forest-900));
  color: var(--sun); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.brand-sub { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink);
  transition: background .16s ease, color .16s ease;
}
.nav a:hover { background: var(--sand); }
.nav a.on { background: var(--forest-900); color: #fff; }
.nav a.nav-cta {
  background: var(--sun); color: #3A2A08; font-weight: 600; display: inline-flex; gap: 6px; align-items: center;
  padding: 10px 16px;
}
.nav a.nav-cta:hover { background: #f0c366; color: #3A2A08; }

.nav-toggle {
  display: none; margin-left: auto; border: 1px solid var(--line); background: var(--paper);
  border-radius: 11px; padding: 8px; color: var(--ink); cursor: pointer;
}

/* -------------------------------------------------------------
   Tombol
   ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  font-family: var(--font-body); text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--forest-600), var(--forest-800)); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { color: #fff; box-shadow: 0 14px 30px -18px rgba(10, 46, 33, .6); }
.btn-sun { background: var(--sun); color: #3A2A08; box-shadow: 0 16px 30px -20px rgba(233, 180, 76, .9); }
.btn-sun:hover { color: #3A2A08; background: #f1c368; }
.btn-line { background: transparent; border-color: var(--forest-600); color: var(--forest-700); }
.btn-line:hover { background: var(--leaf-soft); color: var(--forest-800); }
.hero .btn-line { border-color: rgba(255, 255, 255, .4); color: #fff; }
.hero .btn-line:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-ghost { background: var(--sand); color: var(--forest-800); border-color: transparent; }
.btn-ghost:hover { background: var(--leaf-soft); color: var(--forest-900); }
.btn-full { width: 100%; }

/* -------------------------------------------------------------
   Hero
   ------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 420px at 88% -10%, rgba(79, 169, 106, .32), transparent 60%),
    radial-gradient(700px 380px at 4% 110%, rgba(233, 180, 76, .18), transparent 65%),
    linear-gradient(150deg, var(--forest-900), var(--forest-700) 62%, #174A33);
  color: #F2F8F2;
  padding: 74px 0 64px;
}
.hero-pattern {
  position: absolute; inset: 0; opacity: .28; pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 28%, rgba(255, 255, 255, .12) 0 1.3px, transparent 2px),
    radial-gradient(circle at 62% 74%, rgba(255, 255, 255, .1) 0 1.1px, transparent 2px);
  background-size: 46px 46px, 62px 62px;
}
.hero-in { position: relative; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: #CFE7D5; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
  padding: 7px 14px; border-radius: 999px; margin: 0 0 22px;
}
.hero h1 { font-size: clamp(36px, 5vw, 62px); line-height: 1.03; letter-spacing: -.025em; max-width: 16ch; color: #fff; }
.hero h1 em { font-style: italic; color: var(--sun); }
.lead { max-width: 62ch; font-size: 16.5px; color: #D8E9DC; margin: 18px 0 28px; }
.lead strong { color: #fff; font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts {
  margin-top: 44px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  background: rgba(6, 32, 26, .34); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px); border-radius: 16px; padding: 18px 22px; max-width: 720px;
}
.hfact { display: flex; flex-direction: column; gap: 2px; }
.hfact span { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: #fff; line-height: 1.1; }
.hfact small { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: #A9C9B4; }

/* -------------------------------------------------------------
   Seksi & kepala seksi
   ------------------------------------------------------------- */
.sec { padding: 68px 0; }
section[id] { scroll-margin-top: 112px; }
.sec-sand { background: var(--sand); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 6px; }
.eyebrow { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--forest-500); font-weight: 600; margin: 0 0 8px; }
.sec-sub { color: var(--muted); margin: 0; max-width: 70ch; }
.p { color: var(--muted); }
.h3-sub { font-size: 21px; margin-top: 34px; }

.phead { background: var(--sand); border-bottom: 1px solid var(--line); padding: 34px 0 30px; }
.phead h1 { font-size: clamp(28px, 3.6vw, 42px); margin: 10px 0 6px; }
.phead p { color: var(--muted); margin: 0; max-width: 78ch; }
.crumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: 12.5px; color: var(--muted); }
.crumb li + li::before { content: '›'; margin-right: 6px; color: #A9BBAC; }

/* -------------------------------------------------------------
   Peta
   ------------------------------------------------------------- */
.peta-grid { display: grid; grid-template-columns: minmax(0, 1fr) 362px; gap: 22px; align-items: start; }
.map-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-soft);
}
.map-tools {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.layer-switch { display: inline-flex; gap: 4px; background: var(--sand); padding: 4px; border-radius: 999px; }
.layer-switch button {
  border: 0; background: transparent; padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; font-family: var(--font-body);
}
.layer-switch button.on { background: var(--forest-800); color: #fff; }
.map-btn {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line);
  background: var(--paper); border-radius: 999px; padding: 7px 14px; font-size: 12.5px;
  font-weight: 600; color: var(--forest-800); cursor: pointer; font-family: var(--font-body);
}
.map-btn:hover { background: var(--sand); }
.peta { height: 520px; width: 100%; background: #DFE7DD; z-index: 1; }
.peta-detail { height: 300px; }
.peta-lebar { height: 460px; }

/* Mode layar penuh: peta memakai seluruh tinggi layar */
.map-card:fullscreen { background: #0C2A20; border-radius: 0; }
.map-card:fullscreen .peta { height: calc(100vh - 104px); }
.map-card:fullscreen .map-tools { background: #0C2A20; border-bottom-color: rgba(255, 255, 255, .12); }
.map-card:fullscreen .map-tools .map-btn,
.map-card:fullscreen .map-tools .layer-switch { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .2); }
.map-card:fullscreen .layer-switch button { color: #CFE3D6; }
.map-card:fullscreen .layer-switch button.on { background: var(--sun); color: #3A2A08; }
.map-card:fullscreen .map-legend { background: #0C2A20; border-top-color: rgba(255, 255, 255, .12); color: #B9D2C2; }
.map-legend {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 11px 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted);
}
.map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.lg-note { margin-left: auto; color: #8A9C90; font-size: 11.5px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.dot-islam { background: #1F8A4C; }
.dot-kristen { background: #2A6FB0; }
.dot-batas { background: transparent; border: 2px dashed var(--sun); width: 13px; height: 13px; border-radius: 3px; }

/* Panel pencarian di samping peta */
.cari-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-soft); display: flex; flex-direction: column;
  gap: 12px; align-self: start; position: sticky; top: 120px; max-height: calc(100vh - 150px);
}
.cari-card h3 { font-size: 18px; display: flex; align-items: center; gap: 8px; margin: 0; }
.cari-box { position: relative; }
.cari-box input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 11px;
  font-size: 14px; font-family: var(--font-body); background: var(--bg); color: var(--ink);
}
.cari-box input:focus { outline: 2px solid var(--leaf); background: #fff; }
.chips-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: var(--paper); border-radius: 999px;
  padding: 7px 12px; font-size: 12.5px; font-weight: 600; color: var(--muted);
  cursor: pointer; font-family: var(--font-body); display: inline-flex; gap: 6px; align-items: center;
}
.chip b { font-weight: 700; color: var(--ink); }
.chip.on { background: var(--forest-900); border-color: var(--forest-900); color: #D7E9DC; }
.chip.on b { color: #fff; }
.hasil-info { font-size: 12.5px; color: var(--muted); margin: 0; }
.hasil-info-besar { font-size: 14px; margin: 18px 0 20px; color: var(--ink); }
.hasil-list { display: flex; flex-direction: column; gap: 8px; overflow: auto; padding-right: 4px; flex: 1 1 auto; min-height: 60px; }
.hasil-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--line);
  border-radius: 11px; cursor: pointer; background: var(--paper); text-align: left; font-family: var(--font-body);
  transition: background .15s ease, border-color .15s ease;
}
.hasil-item:hover { background: var(--sand); border-color: #CBDCC9; }
.hasil-item .hi-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.hasil-item .hi-body { display: flex; flex-direction: column; min-width: 0; }
.hasil-item .hi-body strong { font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hasil-item .hi-body small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hasil-item .hi-go { margin-left: auto; color: var(--muted); display: flex; }

.catatan-admin {
  margin-top: 20px; display: flex; gap: 12px; align-items: flex-start;
  background: var(--sun-soft); border: 1px solid #F0DCAE; border-radius: 14px; padding: 16px 18px;
  color: #5B4614;
}
.catatan-admin p { margin: 0; font-size: 14px; }
.catatan-admin a { color: #7A5A0B; text-decoration: underline; font-weight: 600; }

/* Popup Leaflet */
.tp-pop { font-family: var(--font-body); min-width: 190px; }
.tp-pop strong { display: block; font-size: 14px; margin-bottom: 3px; color: #12241C; }
.tp-pop .tp-kat { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
.tp-pop .tp-meta { font-size: 12px; color: #5E7369; line-height: 1.5; }
.tp-pop a { display: inline-block; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: #145238; }
.leaflet-container { font-family: var(--font-body); }
.leaflet-popup-content { margin: 12px 14px; }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { font-family: var(--font-body); font-weight: 700; }

/* -------------------------------------------------------------
   Kartu makam & daftar
   ------------------------------------------------------------- */
.grid-makam { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 236px), 1fr)); gap: 20px; }
.kartu-makam {
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; color: var(--ink); box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease;
}
.kartu-makam:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -26px rgba(10, 46, 33, .55); color: var(--ink); }
.km-foto { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--sand); overflow: hidden; }
.km-foto img { width: 100%; height: 100%; object-fit: cover; }
.foto-kosong {
  display: grid; place-items: center; width: 100%; height: 100%;
  background: linear-gradient(150deg, #E4EEE0, #CFE2CD); color: var(--forest-600);
}
.foto-kosong.kat-kristen { background: linear-gradient(150deg, #E2ECF6, #CCDCEF); color: var(--blue); }
.km-foto .badge-kat { position: absolute; left: 10px; top: 10px; }
.km-body { display: flex; flex-direction: column; gap: 3px; padding: 14px 15px 16px; }
.km-body strong { font-family: var(--font-display); font-size: 17px; font-weight: 600; line-height: 1.25; }
.km-sub { font-size: 12.5px; color: var(--muted); }
.km-koord { font-size: 11.5px; color: #87978C; font-family: ui-monospace, Menlo, monospace; margin-top: 4px; }

.badge-kat {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700;
  padding: 5px 10px; border-radius: 999px; background: var(--paper); color: var(--forest-700);
  box-shadow: 0 2px 8px rgba(10, 46, 33, .14); letter-spacing: .01em;
}
.badge-kat .dot { width: 7px; height: 7px; }
.badge-kat.kat-islam { background: #EAF6EC; color: #17663B; }
.badge-kat.kat-kristen { background: #E9F1FA; color: #1F5588; }
.badge-kat.kecil { font-size: 10.5px; padding: 4px 8px; }

.filter-bar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px; box-shadow: var(--shadow-soft); margin-bottom: 6px;
}
.fb-cari { position: relative; flex: 1 1 260px; display: flex; align-items: center; }
.fb-cari .ico { position: absolute; left: 12px; color: var(--muted); }
.fb-cari input {
  width: 100%; padding: 11px 14px 11px 38px; border: 1px solid var(--line); border-radius: 11px;
  font-family: var(--font-body); font-size: 14px; background: var(--bg);
}
.fb-field { display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.fb-field select {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper);
  font-family: var(--font-body); font-size: 13.5px; color: var(--ink); min-width: 172px;
}

.paginasi { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 34px; font-size: 13.5px; }
.paginasi a, .paginasi .pg-off {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); font-weight: 600;
}
.paginasi span.pg-off { color: #A6B5AA; }
.pg-info { color: var(--muted); }

.kosong {
  display: grid; place-items: center; gap: 8px; text-align: center; padding: 54px 24px;
  background: var(--paper); border: 1px dashed #C9D9C7; border-radius: 18px; color: var(--muted);
}
.kosong strong { font-family: var(--font-display); font-size: 20px; color: var(--ink); }
.kosong p { margin: 0; max-width: 46ch; }

/* -------------------------------------------------------------
   Kategori, tentang, detail
   ------------------------------------------------------------- */
.kat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.kat-card {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 16px; color: var(--ink);
  box-shadow: var(--shadow-soft); border-left: 5px solid var(--forest-600);
  transition: transform .16s ease;
}
.kat-card:hover { transform: translateY(-2px); color: var(--ink); }
.kat-card.kat-kristen { border-left-color: var(--blue); }
.kat-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--leaf-soft); color: var(--forest-700); flex: 0 0 auto; }
.kat-kristen .kat-ico { background: var(--blue-soft); color: var(--blue); }
.kat-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kat-body strong { font-family: var(--font-display); font-size: 19px; }
.kat-desc { font-size: 13px; color: var(--muted); }
.kat-num { font-size: 12px; font-weight: 700; color: var(--forest-600); letter-spacing: .02em; margin-top: 3px; }
.kat-kristen .kat-num { color: var(--blue); }
.kat-arrow { margin-left: auto; color: var(--muted); }
.kat-static { cursor: default; }
.kat-static:hover { transform: none; }

.tentang-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: 40px; align-items: start; }
.tentang-side { display: flex; flex-direction: column; gap: 18px; }
.tentang-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-soft); }
.tentang-card h3 { font-size: 18px; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.p-sm { font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
.cek-list, .tertib-list, .jam-list, .kontak-list { list-style: none; padding: 0; margin: 16px 0 22px; display: flex; flex-direction: column; gap: 10px; }
.cek-list li, .tertib-list li, .jam-list li, .kontak-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.cek-list li .ico, .tertib-list li .ico, .jam-list li .ico { color: var(--forest-500); margin-top: 3px; }
.kontak-list li .ico { color: var(--muted); margin-top: 3px; }
.info-lead { display: flex; gap: 12px; background: var(--leaf-soft); border: 1px solid #C8E0C6; border-radius: 14px; padding: 16px 18px; margin: 22px 0; color: #17402A; }
.info-lead p { margin: 0; font-size: 14px; }
.info-lead .ico { color: var(--forest-700); margin-top: 2px; }
.langkah { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 14px; }
.langkah li { display: flex; gap: 14px; align-items: flex-start; }
.langkah li > span {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto;
  background: var(--forest-800); color: #fff; font-weight: 700; font-size: 14px;
}
.langkah strong { display: block; font-size: 15px; margin-bottom: 2px; }
.langkah p { margin: 0; font-size: 13.5px; color: var(--muted); }
.dua-kolom { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: start; }
.jam-list { margin: 0; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 28px; align-items: start; }
.detail-main { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-soft); }
.detail-foto { position: relative; border-radius: 14px; overflow: hidden; background: var(--sand); }
.detail-foto img, .detail-foto .foto-kosong { width: 100%; height: 360px; object-fit: cover; }
.detail-badge { position: absolute; left: 14px; top: 14px; }
.detail-head { margin-top: 20px; }
.detail-head h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 4px; }
.detail-sub { color: var(--muted); margin: 0; font-size: 14px; }
.dl { margin: 18px 0 0; }
.dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.dl > div:last-child { border-bottom: 0; }
.dl dt { color: var(--muted); margin: 0; }
.dl dd { margin: 0; text-align: right; font-weight: 500; }
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; }
.dl-grid > div { flex-direction: column; align-items: flex-start; gap: 2px; padding: 11px 0; }
.dl-grid dd { text-align: left; }
.detail-note { margin-top: 20px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.detail-note h3 { font-size: 16px; margin-bottom: 6px; }
.detail-note p { margin: 0; font-size: 14px; color: var(--muted); }
.detail-aksi { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.detail-side { display: flex; flex-direction: column; gap: 18px; }
.side-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-soft); }
.side-card h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.side-card .peta { border-radius: 12px; overflow: hidden; }
.side-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.dekat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dekat-list a { display: flex; align-items: center; gap: 9px; font-size: 13.5px; padding: 8px 10px; border-radius: 10px; background: var(--bg); color: var(--ink); }
.dekat-list a:hover { background: var(--sand); color: var(--forest-800); }
.dk-nama { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-jarak { margin-left: auto; font-size: 11.5px; color: var(--muted); flex: 0 0 auto; }

.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-row h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 4px; }
.cta-row p { margin: 0; }

/* -------------------------------------------------------------
   Flash, footer
   ------------------------------------------------------------- */
.flash { margin: 18px 0 0; padding: 13px 16px; border-radius: 12px; font-size: 14px; border: 1px solid; }
.flash.ok { background: #EAF7EC; border-color: #BFE3C6; color: #17603A; }
.flash.err { background: #FCEDEC; border-color: #F2C6C2; color: #8B2B22; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 16px);
  background: var(--forest-900); color: #fff; padding: 11px 18px; border-radius: 12px;
  font-size: 13px; z-index: 300; opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease; box-shadow: 0 18px 36px -20px rgba(0, 0, 0, .7);
  max-width: calc(100% - 32px); text-align: center;
}
.toast.tampil { opacity: 1; transform: translate(-50%, 0); }

.site-foot { background: var(--forest-950); color: #C6DCCD; margin-top: 20px; border-radius: 30px 30px 0 0; padding: 48px 0 0; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 34px; }
.foot-brand { display: flex; gap: 14px; align-items: flex-start; }
.foot-logo { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--sun); flex: 0 0 auto; }
.foot-brand strong { font-family: var(--font-display); font-size: 19px; color: #fff; display: block; margin-bottom: 4px; }
.foot-brand p { margin: 0 0 6px; font-size: 13px; color: #9DBCA9; }
.foot-small { font-size: 12.5px; color: #7FA28E !important; max-width: 44ch; }
.foot-col h3 { font-family: var(--font-body); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #8FB49B; margin-bottom: 12px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.foot-col a { color: #C6DCCD; }
.foot-col a:hover { color: var(--sun); }
.foot-legend li { display: flex; align-items: center; gap: 8px; }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 16px 20px 22px; font-size: 12px; color: #7FA28E;
}

/* -------------------------------------------------------------
   Responsif
   ------------------------------------------------------------- */
@media (max-width: 1100px) {
  .peta-grid { grid-template-columns: minmax(0, 1fr); }
  .cari-card { position: static; max-height: none; }
  .hasil-list { max-height: 320px; }
  .tentang-grid, .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  section[id] { scroll-margin-top: 84px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 20px 18px;
    display: none; box-shadow: 0 20px 30px -24px rgba(10, 46, 33, .5);
  }
  .site-head { position: relative; }
  .nav.buka { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 11px; }
  .nav a.nav-cta { justify-content: center; margin-top: 4px; }
  .head-in { min-height: 64px; }
  .brand-sub { display: none; }
}

@media (max-width: 780px) {
  .topbar-in { font-size: 11.5px; }
  .tb-right .tb-item { display: none; }
  .hero { padding: 48px 0 44px; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 16px 18px; }
  .hfact span { font-size: 22px; }
  .sec { padding: 48px 0; }
  .peta { height: 420px; }
  .peta-lebar { height: 380px; }
  .kat-grid, .dua-kolom { grid-template-columns: minmax(0, 1fr); }
  .kat-card { padding: 18px; }
  .detail-foto img, .detail-foto .foto-kosong { height: 240px; }
  .dl-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .site-foot { border-radius: 24px 24px 0 0; padding-top: 34px; }
  .sec-head { gap: 14px; }
  .map-legend { gap: 12px; font-size: 12px; }
  .lg-note { margin-left: 0; }
  .detail-main { padding: 16px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 15px; }
  .hero h1 { font-size: 33px; }
  .lead { font-size: 15px; }
  .btn { padding: 11px 16px; font-size: 14px; }
  .peta { height: 380px; }
  .filter-bar { padding: 13px; }
  .fb-field { flex: 1 1 100%; }
  .fb-field select { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
