/* =============================================================
   Peta Warga Kampung Yuwanain — gaya publik
   Tema: biru–teal pemerintahan, peta satelit, tipografi serif.
   Catatan: JANGAN memakai overflow-x:hidden pada body (mematikan sticky).
   ============================================================= */

:root {
  --forest-950: #052232;
  --forest-900: #082C40;
  --forest-800: #0C3A52;
  --forest-700: #124F6C;
  --forest-600: #1A6C8C;
  --forest-500: #1F8098;
  --leaf: #24A79B;
  --leaf-soft: #D5EFEC;
  --blue: #1D6FA5;
  --blue-soft: #D8E8F4;
  --sun: #F0B23F;
  --sun-soft: #FBF0D9;
  --clay: #C4623C;
  --bg: #F1F6F9;
  --paper: #FFFFFF;
  --sand: #E7EFF4;
  --ink: #0E2430;
  --muted: #587080;
  --line: #DAE6ED;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 22px 44px -30px rgba(8, 40, 58, .5);
  --shadow-soft: 0 10px 26px -20px rgba(8, 40, 58, .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: #CFE4EE; 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: #f5c266; 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(8, 40, 58, .6); }
.btn-sun { background: var(--sun); color: #3A2A08; box-shadow: 0 16px 30px -20px rgba(240, 178, 63, .9); }
.btn-sun:hover { color: #3A2A08; background: #f5c266; }
.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(36, 167, 155, .32), transparent 60%),
    radial-gradient(700px 380px at 4% 110%, rgba(240, 178, 63, .18), transparent 65%),
    linear-gradient(150deg, var(--forest-900), var(--forest-700) 62%, #0B3A50);
  color: #EEF6FA;
  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: #CFE4EE; 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: #D6E7F0; 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(4, 26, 38, .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: #A9C6D6; }

/* -------------------------------------------------------------
   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: #A8BCC7; }

/* -------------------------------------------------------------
   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: #DDE7EC; z-index: 1; }
.peta-detail { height: 300px; }
.peta-lebar { height: 460px; }

/* Mode layar penuh: peta memakai seluruh tinggi layar */
.map-card:fullscreen { background: #072434; border-radius: 0; }
.map-card:fullscreen .peta { height: calc(100vh - 104px); }
.map-card:fullscreen .map-tools { background: #072434; 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: #CFE4EE; }
.map-card:fullscreen .layer-switch button.on { background: var(--sun); color: #3A2A08; }
.map-card:fullscreen .map-legend { background: #072434; border-top-color: rgba(255, 255, 255, .12); color: #B9D0DE; }
.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: #8A9FA9; font-size: 11.5px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.dot-rumah { background: #1D6FA5; }
.dot-usaha { background: #D98415; }
.dot-campur { background: #0E8F7E; }
.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: #C9DCE6; }
.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 */
.pw-pop { font-family: var(--font-body); min-width: 190px; }
.pw-pop strong { display: block; font-size: 14px; margin-bottom: 3px; color: #0E2430; }
.pw-pop .tp-rt { display:inline-block; font-size:11.5px; color:#587080; margin-bottom:6px; }
.pw-pop .tp-kat { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
.pw-pop .tp-meta { font-size: 12px; color: #587080; line-height: 1.5; }
.pw-pop a { display: inline-block; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: #124F6C; }
.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-warga { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 236px), 1fr)); gap: 20px; }
.kartu-warga {
  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-warga:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -26px rgba(8, 40, 58, .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, #E2EDF4, #C9DEE9); color: var(--forest-600);
}
.foto-kosong.kat-usaha { background: linear-gradient(150deg, #FBF0DC, #F2DFBE); color: #B4700F; }
.foto-kosong.kat-campur { background: linear-gradient(150deg, #DEF3EF, #C3E4DD); color: #0B6E62; }
.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: #84969F; 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(8, 40, 58, .14); letter-spacing: .01em;
}
.badge-kat .dot { width: 7px; height: 7px; }
.badge-kat.kat-rumah { background: #E9F2FA; color: #155582; }
.badge-kat.kat-usaha { background: #FDF1DE; color: #8A5A10; }
.badge-kat.kat-campur { background: #E3F5F1; color: #0B6E62; }
.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: #A5B6C1; }
.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 #C7D9E3; 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-usaha { border-left-color: #D98415; }
.kat-card.kat-campur { border-left-color: var(--leaf); }
.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-usaha .kat-ico { background: var(--sun-soft); color: #B4700F; }
.kat-campur .kat-ico { background: var(--leaf-soft); color: #0B6E62; }
.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-usaha .kat-num { color: #B4700F; }
.kat-campur .kat-num { color: #0B6E62; }
.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 #BFE0DC; border-radius: 14px; padding: 16px 18px; margin: 22px 0; color: #0C4A45; }
.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: #C6DAE4; 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: #9DBBCB; }
.foot-small { font-size: 12.5px; color: #7F9FB0 !important; max-width: 44ch; }
.foot-col h3 { font-family: var(--font-body); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #8FB2C4; 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: #C6DAE4; }
.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: #7F9FB0;
}

/* -------------------------------------------------------------
   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(8, 40, 58, .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; }
}

/* =============================================================
   Tambahan Peta Warga: penanda data contoh, bar contoh,
   sebaran RT, catatan privasi.
   ============================================================= */

.demo-bar { background: #FDF1DE; border-bottom: 1px solid #F1DDBA; font-size: 12.5px; color: #7A5310; }
.demo-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 36px; padding: 6px 20px; flex-wrap: wrap; }
.demo-bar-in span { display: inline-flex; align-items: center; gap: 7px; }
.demo-bar a { font-weight: 700; color: #6B4708; text-decoration: underline; }

.badge-demo {
  display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
  background: rgba(253, 241, 222, .95); color: #8A5A10; border: 1px solid #F0D9AF;
}
.km-foto .badge-demo { position: absolute; right: 9px; bottom: 9px; }
.detail-badge .badge-demo { position: static; margin-left: 8px; }

.privacy-note {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 18px;
  background: var(--sand); border: 1px solid var(--line); border-radius: 13px; padding: 13px 16px;
  font-size: 13px; color: #40596B;
}
.privacy-note .ico { color: var(--forest-600); margin-top: 2px; }
.privacy-note p { margin: 0; }

.usaha-line { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #B4700F; }
.detail-usaha { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.detail-usaha .usaha-nama { font-family: var(--font-display); font-size: 18px; }

a.chip { text-decoration: none; }
a.chip:hover { background: var(--sand); border-color: #C9DCE6; }
a.chip.on:hover { background: var(--forest-900); border-color: var(--forest-900); }

.sebaran-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.sebaran-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-soft); }
.sebaran-card h3 { font-size: 18px; margin-bottom: 14px; }
.sebaran-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.sebaran-list li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink); }
.sebaran-list .sb-track { flex: 1 1 auto; height: 8px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.sebaran-list .sb-fill { display: block; height: 100%; border-radius: 999px; background: var(--forest-600); min-width: 4px; }
.sebaran-list .sb-num { flex: 0 0 auto; font-size: 12.5px; font-weight: 700; color: var(--muted); }

@media (max-width: 900px) {
  .sebaran-wrap { grid-template-columns: minmax(0, 1fr); }
}

/* Grid kategori 3 kolom (beranda) */
.kat-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1020px) { .kat-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .kat-grid-3 { grid-template-columns: minmax(0, 1fr); } }

/* Pemilih RT di panel samping peta */
.cari-rt { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.cari-rt select {
  flex: 1 1 auto; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: 13px; background: var(--bg); color: var(--ink); min-width: 0;
}

/* Label jenis usaha (halaman publik) */
.tag-usaha {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  background: #FDF1DE; color: #8A5A10; font-size: 11.5px; font-weight: 700; letter-spacing: .01em;
}

/* Chip baris (direktori usaha) */
.chips-baris { margin: 16px 0 4px; }

/* Pertanyaan umum */
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.faq {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 18px; box-shadow: var(--shadow-soft);
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--ink);
  list-style: none; display: flex; align-items: center; gap: 8px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '+'; font-weight: 700; color: var(--forest-600); width: 12px; }
.faq[open] summary::before { content: '−'; }
.faq p { margin: 8px 0 0 20px; font-size: 13.5px; color: var(--muted); }

/* Titik warga yang koordinatnya belum diisi */
.titik-kosong {
  display: flex; gap: 10px; align-items: flex-start; background: var(--sun-soft);
  border: 1px solid #F0DCAE; border-radius: 12px; padding: 13px 15px; color: #5B4614;
}
.titik-kosong .ico { color: #9A6E12; margin-top: 2px; flex: 0 0 auto; }
.titik-kosong p { margin: 0; font-size: 13px; }

/* Pemilih kampung di topbar publik */
.k-switch { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; }
.k-switch-lab {
  font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #8FB2C4;
}
.k-switch select {
  appearance: none; -webkit-appearance: none;
  background: rgba(255, 255, 255, .12) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23CFE4EE' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 8px center;
  color: #EAF4F9; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
  padding: 4px 24px 4px 10px; font-family: var(--font-body); font-size: 11.5px; font-weight: 600;
  max-width: 152px; cursor: pointer;
}
.k-switch select:focus { outline: 2px solid var(--sun); outline-offset: 1px; }
.k-switch option, .k-switch optgroup { color: #0E2430; background: #fff; }

@media (max-width: 900px) {
  .k-switch-lab { display: none; }
  .k-switch select { max-width: 132px; font-size: 11px; }
}
@media (max-width: 640px) {
  .k-switch { order: 3; margin-right: 0; }
  .topbar-in { flex-wrap: wrap; row-gap: 4px; }
  .k-switch select { max-width: 100%; }
}
