/* =========================================================
   CATALOGUE PAGE
   ========================================================= */

.catalog-layout {
    display: grid;
    grid-template-columns: minmax(230px, 270px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    margin-top: 1.5rem;
}

/* Filter panel */

.catalog-filter {
    padding: 1.25rem;
    border: 1px solid #e1ded7;
    border-radius: 10px;
    background: #ffffff;
}

.catalog-filter__title {
    margin: 0 0 1rem;
    color: #183f33;
    font-size: 1rem;
    font-weight: 700;
}

.catalog-filter__group {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.catalog-filter__group legend {
    width: 100%;
    margin-bottom: 0.75rem;
    color: #6d7772;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
}

.catalog-radio {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    margin-bottom: 0.65rem;
    color: #56615c;
    font-size: 0.83rem;
    line-height: 1.3;
    cursor: pointer;
}

.catalog-radio input[type="radio"] {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    accent-color: #17795d;
    cursor: pointer;
}

.catalog-radio span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.catalog-reset-button {
    width: 100%;
    margin-top: 1rem;
    padding: 0.7rem 1rem;
    border: 1px solid #204e40;
    border-radius: 6px;
    background: #204e40;
    color: #ffffff;
    font: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.catalog-reset-button:hover {
    border-color: #153a2f;
    background: #153a2f;
}

/* Main content */

.catalog-content {
    min-width: 0;
    padding: 1.25rem;
    border: 1px solid #e1ded7;
    border-radius: 10px;
    background: #ffffff;
}

.catalog-search-label {
    display: block;
    margin-bottom: 0.65rem;
    color: #253a33;
    font-size: 0.85rem;
    font-weight: 600;
}

.catalog-search {
    position: relative;
    margin-bottom: 1rem;
}

.catalog-search__icon {
    position: absolute;
    top: 50%;
    left: 0.85rem;
    display: flex;
    align-items: center;
    color: #99a39e;
    pointer-events: none;
    transform: translateY(-50%);
}

.catalog-search input[type="search"] {
    box-sizing: border-box;
    width: 100%;
    padding: 0.75rem 0.9rem 0.75rem 2.6rem;
    border: 1px solid #dfe3e1;
    border-radius: 7px;
    background: #ffffff;
    color: #253a33;
    font: inherit;
    font-size: 0.85rem;
    outline: none;
}

.catalog-search input[type="search"]:focus {
    border-color: #409778;
    box-shadow: 0 0 0 3px rgba(64, 151, 120, 0.12);
}

.catalog-search input::placeholder {
    color: #a1aaa6;
}

/* Loading state */

.catalog-loading {
    margin-bottom: 0.75rem;
    color: #68736e;
    font-size: 0.8rem;
}

.catalog-results {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: opacity 0.15s ease;
}

.catalog-results--loading {
    opacity: 0.55;
    pointer-events: none;
}

/* Individual result */

.catalog-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 0.9rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e1e5e3;
    border-radius: 9px;
    background: #ffffff;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.catalog-item:hover {
    border-color: #b8d4c9;
    box-shadow: 0 5px 18px rgba(30, 74, 59, 0.07);
    transform: translateY(-1px);
}

.catalog-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 7px;
    background: #d8f4e8;
    color: #2e8063;
    font-size: 0.8rem;
    font-weight: 700;
}

.catalog-item__content {
    min-width: 0;
}

.catalog-item__type {
    margin-bottom: 0.3rem;
    color: #789084;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.3;
    text-transform: uppercase;
}

.catalog-item__title {
    margin: 0 0 0.3rem;
    color: #204e40;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
}

.catalog-item__description {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #76827c;
    font-size: 0.76rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.catalog-item__link {
    min-width: 70px;
    padding: 0.55rem 1rem;
    border-radius: 5px;
    background: #204e40;
    color: #ffffff;
    font-size: 0.75rem;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.catalog-item__link:hover {
    background: #153a2f;
    color: #ffffff;
}

/* Empty state */

.catalog-empty {
    padding: 3rem 1.5rem;
    border: 1px dashed #d5dcd8;
    border-radius: 9px;
    color: #738078;
    text-align: center;
}

.catalog-empty h3 {
    margin: 0 0 0.4rem;
    color: #32463e;
    font-size: 1rem;
}

.catalog-empty p {
    margin: 0;
    font-size: 0.83rem;
}

/* Pagination */

.catalog-pagination {
    margin-top: 1.25rem;
}

/* Responsive layout */

@media (max-width: 900px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .catalog-filter {
        position: static;
    }
}

@media (max-width: 600px) {
    .catalog-filter,
    .catalog-content {
        padding: 1rem;
    }

    .catalog-item {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .catalog-item__link {
        grid-column: 1 / -1;
        width: 100%;
        box-sizing: border-box;
    }
}

/* =====================================================
   COMPACT MAP CATALOG CARDS
===================================================== */

.catalog-results {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(250px, 310px));
    justify-content: start;
    align-items: stretch;
    gap: 1rem;
}

/*
 * Override the existing horizontal catalogue item.
 */
.catalog-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;

    width: 100%;
    min-width: 0;
    min-height: 220px;
    padding: 1rem;

    background: #ffffff;
    border: 1px solid #dfe6e2;
    border-radius: 12px;

    box-shadow: 0 2px 8px rgba(24, 68, 51, 0.04);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.catalog-item:hover {
    transform: translateY(-2px);
    border-color: #b8cdc4;
    box-shadow: 0 8px 20px rgba(24, 68, 51, 0.1);
}

.catalog-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    color: #1f6a4d;
    background: #d9f3e7;
    border-radius: 8px;

    font-size: 0.8rem;
    font-weight: 700;
}

.catalog-item__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.catalog-item__type {
    margin-bottom: 0.35rem;

    color: #71857c;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.catalog-item__title {
    margin: 0 0 0.5rem;

    color: #194936;
    font-size: 0.95rem;
    line-height: 1.4;
}

.catalog-item__description {
    display: -webkit-box;
    margin: 0;

    color: #75827d;
    font-size: 0.78rem;
    line-height: 1.55;

    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.catalog-item__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 38px;
    margin-top: auto;
    padding: 0.55rem 1rem;

    color: #ffffff;
    background: #205b46;
    border-radius: 7px;

    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;

    transition: background-color 0.2s ease;
}

.catalog-item__link:hover {
    color: #ffffff;
    background: #174735;
}

.catalog-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: grid;
    place-items: center;

    padding: 1rem;
    background: rgba(10, 27, 21, 0.72);
    backdrop-filter: blur(3px);
}

.catalog-preview-modal {
    display: flex;
    flex-direction: column;

    width: min(1100px, 100%);
    max-height: 92vh;

    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);

    overflow: hidden;
}

.catalog-preview-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;

    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5ebe8;
}

.catalog-preview-modal__type {
    margin-bottom: 0.25rem;

    color: #688076;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.catalog-preview-modal__title {
    margin: 0;

    color: #194936;
    font-size: 1.1rem;
    line-height: 1.4;
}

.catalog-preview-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    padding: 0;

    color: #53645d;
    background: #f1f5f3;
    border: 0;
    border-radius: 50%;

    font-size: 1.5rem;
    cursor: pointer;
}

.catalog-preview-modal__close:hover {
    color: #ffffff;
    background: #205b46;
}

.catalog-preview-modal__body {
    flex: 1;
    min-height: 300px;
    padding: 1rem;

    background: #f4f6f5;
    overflow: auto;
}

.catalog-preview-modal__image {
    display: block;

    max-width: 100%;
    max-height: 72vh;
    margin: auto;

    object-fit: contain;
}

.catalog-preview-modal__frame {
    display: block;

    width: 100%;
    height: 70vh;

    background: #ffffff;
    border: 0;
    border-radius: 8px;
}

.catalog-preview-modal__fallback {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 1rem;

    min-height: 300px;
    text-align: center;
}

.catalog-preview-modal__open {
    display: inline-flex;

    padding: 0.65rem 1.2rem;

    color: #ffffff;
    background: #205b46;
    border-radius: 7px;

    font-weight: 600;
    text-decoration: none;
}

.catalog-preview-modal__footer {
    padding: 0.85rem 1.25rem;

    color: whitesmoke;
    border-top: 1px solid #e5ebe8;

    font-size: 0.8rem;
    line-height: 1.5;
}

@media (max-width: 767.98px) {
    .catalog-results {
        grid-template-columns: 1fr;
    }

    .catalog-item {
        min-height: 0;
    }
}

.public-map-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.spatial-map {
    width: 100%;
    min-height: 620px;
    border: 1px solid #dfe3e8;
    border-radius: 10px;
    overflow: hidden;
    background: #eef2f5;
}

.public-map-filter {
    min-width: 0;
    padding: 1rem;
    border: 1px solid #dfe3e8;
    border-radius: 10px;
    background: #ffffff;
}
.public-map-filter h3 {
    margin-top: 0;
    color: #204e40;
    font-size: 1rem;
    font-weight: 700;
}

.public-map-filter input[type="search"] {
    box-sizing: border-box;
    width: 100%;
    padding: 0.5rem 0.65rem;
    margin-bottom: 0.7rem;
    border: 1px solid #d6d9dd;
    border-radius: 7px;
    font: inherit;
}

.map-filter-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.map-filter-buttons button {
    flex: 1;
    padding: 0.25rem 0.35rem;
    border: 1px solid #245c4b;
    border-radius: 7px;
    background: transparent;
    color: #245c4b;
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.map-filter-buttons button:hover {
    background: #245c4b;
    color: #ffffff;
}

@media (max-width: 992px) {
    .public-map-layout {
        grid-template-columns: 1fr;
    }

    .spatial-map {
        min-height: 500px;
    }
}

@media (max-width: 576px) {
    .spatial-map {
        min-height: 420px;
    }

    .map-filter-buttons {
        flex-direction: column;
    }
}
[data-map-layer-list] {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #edf0f2;
}

.map-layer-filter-item {
    display: grid;
    grid-template-columns: 18px 12px minmax(0, 1fr);
    align-items: start;
    gap: 0.65rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #edf0f2;
    cursor: pointer;
}

.map-layer-filter-item:hover {
    background: #f8faf9;
}

.map-layer-filter-item input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    padding: 0;
    accent-color: #245c4b;
    cursor: pointer;
}

.map-layer-swatch {
    display: block;
    width: 12px;
    height: 12px;
    margin-top: 4px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

.map-layer-filter-item .min-w-0 {
    min-width: 0;
}

.map-layer-filter-item .d-block {
    display: block;
}

.map-layer-filter-item small {
    display: block;
    margin-top: 0.15rem;
    color: #7b8490;
    font-size: 0.78rem;
    line-height: 1.4;
}

.map-layer-filter-item > span:last-child > span {
    color: #26352f;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --forest:   #1c3d2e;
  --leaf:     #2a6b44;
  --lime:     #4caf78;
  --mint:     #d6f0e0;
  --cream:    #f7f4ee;
  --parchment:#ede8df;
  --ink:      #1a1f1c;
  --ink2:     #3d4740;
  --muted:    #7a8a80;
  --sand:     #c9b99a;
  --white:    #ffffff;
  --warn:     #c0533a;
  --warn-lt:  #fceee9;
  --sky:      #2563a8;
  --sky-lt:   #e8f0fb;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ─────────────────────────────── */
.serif { font-family: 'Instrument Serif', serif; }

/* ── NAVBAR ─────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 5%;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(247, 244, 238, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201,185,154,.35);
  transition: background .3s;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo {
  width: 36px; height: 36px; background: var(--forest);
  border-radius: 9px; display: grid; place-items: center;
  font-family: 'Instrument Serif', serif; font-size: 14px;
  color: var(--mint); letter-spacing: .5px;
}
.nav-name { font-weight: 600; font-size: 15px; color: var(--forest); letter-spacing: .2px; }
.nav-sub  { font-size: 10px; color: var(--muted); line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--ink2);
  text-decoration: none; transition: color .2s;
}
.nav-links a:hover { color: var(--leaf); }
.nav-cta {
  background: var(--forest); color: var(--mint) !important;
  padding: 8px 18px; border-radius: 8px;
  font-size: 13px !important; font-weight: 600 !important;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--leaf) !important; color: #fff !important; }

/* ── HERO ────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 100px 5% 60px;
  gap: 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 40%, rgba(76,175,120,.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(28,61,46,.08) 0%, transparent 60%);
  pointer-events: none;
}

/* Organic pattern bg */
.hero-bg-pattern {
  position: absolute; right: -80px; top: 50%;
  transform: translateY(-50%);
  width: 55vw; height: 55vw; max-width: 700px; max-height: 700px;
  opacity: .055;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--mint); color: var(--leaf);
  font-size: 11px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; padding: 5px 12px; border-radius: 20px;
  margin-bottom: 20px;
}
.hero-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1}50%{opacity:.3} }

.hero-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(36px, 4.5vw, 58px);
  line-height: 1.1; color: var(--forest);
  margin-bottom: 18px;
}
.hero-title em { font-style: italic; color: var(--lime); }
.hero-desc {
  font-size: 16px; color: var(--ink2); font-weight: 300;
  max-width: 440px; margin-bottom: 36px; line-height: 1.8;
}

.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn-hero-primary {
  background: var(--forest); color: var(--mint);
  padding: 13px 26px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s, transform .15s;
  text-decoration: none;
}
.btn-hero-primary:hover { background: var(--leaf); transform: translateY(-1px); }
.btn-hero-secondary {
  background: transparent; color: var(--ink2);
  padding: 13px 22px; border-radius: 10px;
  font-size: 14px; font-weight: 500;
  border: 1.5px solid var(--parchment);
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: border-color .2s, color .2s;
  text-decoration: none;
}
.btn-hero-secondary:hover { border-color: var(--leaf); color: var(--leaf); }

.hero-stats {
  display: flex; gap: 28px; margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--parchment);
}
.hstat-val {
  font-family: 'Instrument Serif', serif;
  font-size: 30px; color: var(--forest); line-height: 1;
}
.hstat-label { font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.4; }

/* Hero map visual */
.hero-map {
  position: relative; z-index: 2;
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 64px rgba(28,61,46,.18), 0 4px 12px rgba(0,0,0,.06);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-8px)}
}
.hero-map-badge {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(28,61,46,.9); backdrop-filter: blur(8px);
  color: #fff; padding: 10px 14px; border-radius: 10px;
  font-size: 11px; line-height: 1.5;
}
.hmb-title { font-weight: 600; font-size: 12px; color: var(--mint); }

/* ── SECTION COMMON ──────────────────────────── */
section { padding: 80px 5%; }
.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 600; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--leaf);
  margin-bottom: 14px;
}
.section-tag::before {
  content: ''; display: block;
  width: 20px; height: 2px; background: var(--lime); border-radius: 2px;
}
.section-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(26px, 3vw, 40px);
  color: var(--forest); line-height: 1.2; margin-bottom: 14px;
}
.section-desc {
  font-size: 15px; color: var(--muted); font-weight: 300;
  max-width: 520px; line-height: 1.8;
}

/* ── LAYANAN SECTION ─────────────────────────── */
.layanan-section { background: var(--white); }
.layanan-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 48px;
}
.layanan-card {
  border: 1.5px solid var(--parchment);
  border-radius: 16px; padding: 28px;
  background: var(--cream);
  transition: border-color .2s, box-shadow .2s, transform .2s;
  cursor: pointer; position: relative; overflow: hidden;
}
.layanan-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--lime);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s;
}
.layanan-card:hover::after { transform: scaleX(1); }
.layanan-card:hover {
  border-color: var(--lime); transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(28,61,46,.1);
}
.lc-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 18px;
}
.lc-title {
  font-weight: 600; font-size: 16px; color: var(--forest);
  margin-bottom: 8px;
}
.lc-desc { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 18px; }
.lc-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--leaf);
  text-decoration: none;
  transition: gap .2s;
}
.lc-link:hover { gap: 10px; }

/* ── CEK ZONASI SECTION ──────────────────────── */
.zonasi-section { background: var(--forest); position: relative; overflow: hidden; }
.zonasi-section::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(76,175,120,.2) 0%, transparent 70%);
  pointer-events: none;
}
.zonasi-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  position: relative; z-index: 2;
}
.zonasi-section .section-tag { color: var(--lime); }
.zonasi-section .section-tag::before { background: var(--lime); }
.zonasi-section .section-title { color: var(--white); }
.zonasi-section .section-desc { color: rgba(255,255,255,.55); }

.zonasi-form {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px; padding: 32px;
  backdrop-filter: blur(10px);
}
.zf-title {
  font-family: 'Instrument Serif', serif;
  font-size: 20px; color: #fff; margin-bottom: 6px;
}
.zf-sub { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 24px; }

.zf-input-group { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.zf-label { font-size: 11px; font-weight: 600; letter-spacing: .5px; color: rgba(255,255,255,.6); text-transform: uppercase; }
.zf-input, .zf-select {
  width: 100%; padding: 12px 16px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px; color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px; outline: none;
  transition: border-color .2s, background .2s;
}
.zf-input::placeholder { color: rgba(255,255,255,.3); }
.zf-input:focus, .zf-select:focus {
  border-color: var(--lime);
  background: rgba(255,255,255,.15);
}
.zf-select option { background: var(--forest); color: #fff; }

.zf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.btn-zonasi {
  width: 100%; padding: 14px;
  background: var(--lime); color: var(--forest);
  border: none; border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background .2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 4px;
}
.btn-zonasi:hover { background: #5dc888; }

/* Result card */
.zonasi-result {
  margin-top: 16px;
  background: rgba(76,175,120,.15);
  border: 1px solid rgba(76,175,120,.4);
  border-radius: 12px; padding: 16px;
  display: none;
}
.zonasi-result.show { display: block; animation: fadeIn .4s ease; }
@keyframes fadeIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:translateY(0)} }
.zr-title { font-size: 11px; font-weight: 600; color: var(--lime); letter-spacing: .5px; text-transform: uppercase; margin-bottom: 10px; }
.zr-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.zr-row:last-child { border: none; }
.zr-key { color: rgba(255,255,255,.55); }
.zr-val { color: #fff; font-weight: 500; text-align: right; }
.zr-badge {
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 20px;
}
.zr-allowed { background: rgba(76,175,120,.25); color: var(--lime); }
.zr-warn { background: rgba(192,83,58,.25); color: #f08070; }

/* ── PERATURAN SECTION ───────────────────────── */
.peraturan-section { background: var(--cream); }
.peraturan-grid {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 16px; margin-top: 48px;
}
.peraturan-card {
  background: var(--white); border: 1px solid var(--parchment);
  border-radius: 14px; padding: 22px 24px;
  display: flex; align-items: flex-start; gap: 16px;
  transition: box-shadow .2s, transform .2s;
  cursor: pointer; text-decoration: none;
}
.peraturan-card:hover {
  box-shadow: 0 8px 24px rgba(28,61,46,.09);
  transform: translateY(-2px);
}
.pc-num {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--mint); display: grid; place-items: center;
  font-family: 'Instrument Serif', serif; font-size: 15px;
  color: var(--leaf); flex-shrink: 0; font-weight: 600;
}
.pc-body {}
.pc-label { font-size: 10px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.pc-title { font-size: 14px; font-weight: 600; color: var(--forest); line-height: 1.4; margin-bottom: 4px; }
.pc-desc { font-size: 12px; color: var(--muted); line-height: 1.6; }

/* ── INFO PUBLIK ─────────────────────────────── */
.info-section { background: var(--parchment); }
.info-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 20px; margin-top: 48px;
}
.info-card {
  background: var(--white); border-radius: 16px;
  overflow: hidden; border: 1px solid rgba(201,185,154,.4);
  transition: box-shadow .2s;
}
.info-card:hover { box-shadow: 0 8px 28px rgba(28,61,46,.08); }
.ic-header {
  padding: 18px 20px 16px;
  display: flex; align-items: center; gap: 10px;
}
.ic-dot { width: 8px; height: 8px; border-radius: 50%; }
.ic-tag { font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.ic-body { padding: 0 20px 20px; }
.ic-title { font-weight: 600; font-size: 15px; color: var(--forest); margin-bottom: 8px; line-height: 1.4; }
.ic-excerpt { font-size: 13px; color: var(--muted); line-height: 1.7; }
.ic-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--parchment);
  display: flex; align-items: center; justify-content: space-between;
}
.ic-date { font-size: 11px; color: var(--muted); }
.ic-more { font-size: 12px; font-weight: 600; color: var(--leaf); text-decoration: none; }
.ic-more:hover { text-decoration: underline; }

/* ── PENGADUAN ───────────────────────────────── */
.pengaduan-section { background: var(--white); }
.pengaduan-inner {
  display: grid; grid-template-columns: 1fr 480px;
  gap: 60px; align-items: start;
}
.pgd-steps { margin-top: 32px; display: flex; flex-direction: column; gap: 0; }
.pgd-step {
  display: flex; gap: 16px; padding-bottom: 28px; position: relative;
}
.pgd-step:not(:last-child)::before {
  content: '';
  position: absolute; left: 14px; top: 30px;
  width: 1px; bottom: 0;
  background: var(--parchment);
}
.pgd-num {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--mint); color: var(--leaf);
  font-weight: 700; font-size: 13px;
  display: grid; place-items: center; flex-shrink: 0;
  border: 2px solid var(--lime);
}
.pgd-step-title { font-weight: 600; font-size: 14px; color: var(--forest); margin-bottom: 4px; }
.pgd-step-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }

.pgd-form {
  background: var(--cream); border: 1px solid var(--parchment);
  border-radius: 20px; padding: 30px;
}
.pgd-form-title {
  font-family: 'Instrument Serif', serif;
  font-size: 22px; color: var(--forest); margin-bottom: 6px;
}
.pgd-form-sub { font-size: 13px; color: var(--muted); margin-bottom: 24px; }

.form-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.form-label { font-size: 12px; font-weight: 600; color: var(--ink2); }
.form-input, .form-select, .form-textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--parchment);
  border-radius: 10px; background: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px; color: var(--ink);
  outline: none; transition: border-color .2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--lime);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); }
.form-textarea { resize: vertical; min-height: 90px; box-sizing: border-box;}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-submit {
  width: 100%; padding: 14px;
  background: var(--forest); color: var(--mint);
  border: none; border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background .2s;
  margin-top: 6px;
}
.btn-submit:hover { background: var(--leaf); }

/* ── FAQ ─────────────────────────────────────── */
.faq-section { background: var(--cream); }
.faq-inner { display: grid; grid-template-columns: 1fr 600px; gap: 60px; }
.faq-list { margin-top: 0; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid var(--parchment); border-radius: 12px;
  overflow: hidden; background: var(--white);
}
.faq-q {
  padding: 18px 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 500; font-size: 14px; color: var(--forest);
  transition: color .2s;
}
.faq-q:hover { color: var(--leaf); }
.faq-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--mint); display: grid; place-items: center;
  flex-shrink: 0; transition: transform .3s; font-size: 12px; color: var(--leaf);
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--leaf); color: #fff; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s;
  font-size: 13px; color: var(--muted); line-height: 1.8;
  padding: 0 20px;
}
.faq-item.open .faq-a { max-height: 200px; padding: 0 20px 18px; }

/* ── FOOTER ──────────────────────────────────── */
footer {
  background: var(--forest);
  padding: 56px 5% 30px;
  color: rgba(255,255,255,.6);
}
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo {
  width: 36px; height: 36px; background: var(--leaf);
  border-radius: 9px; display: grid; place-items: center;
  font-family: 'Instrument Serif', serif; font-size: 14px;
  color: var(--mint);
}
.footer-brand-name { font-weight: 600; font-size: 15px; color: #fff; }
.footer-desc { font-size: 13px; line-height: 1.8; max-width: 240px; }
.footer-col-title { font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: rgba(255,255,255,.8); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 13px; color: rgba(255,255,255,.5);
  text-decoration: none; transition: color .2s;
}
.footer-links a:hover { color: var(--lime); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; font-size: 12px;
}
.footer-copy { color: rgba(255,255,255,.35); }
.footer-badges { display: flex; gap: 8px; }
.fbadge {
  font-size: 10px; font-weight: 600; letter-spacing: .5px;
  padding: 4px 10px; border-radius: 20px;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.45);
}

/* ── SCROLL REVEAL ────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── FLOATING HELP ────────────────────────────── */
.float-help {
  position: fixed; bottom: 28px; right: 28px; z-index: 99;
  background: var(--leaf); color: #fff;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(28,61,46,.3);
  cursor: pointer; transition: transform .2s, background .2s;
  font-size: 22px;
}
.float-help:hover { transform: scale(1.1); background: var(--forest); }

/* ── MOBILE ────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 90px; }
  .hero-map { display: none; }
  .layanan-grid { grid-template-columns: 1fr; }
  .zonasi-inner { grid-template-columns: 1fr; }
  .peraturan-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .pengaduan-inner { grid-template-columns: 1fr; }
  .faq-inner { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}

.pgd-form,
.pgd-form form,
.form-row,
.form-field {
    min-width: 0;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.form-input,
.form-select,
.form-textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.post-desc {
  font-size: 15px; color: var(--muted); font-weight: 300;
  max-width: 100%; line-height: 1.8;
}

.post-img {
  margin: 2pt;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cover-img {
  max-height: 750px;
}

.post-text {
  display: flex;
  justify-content: center;
  align-items: center;
}
.post-text p {
  text-align: justify;
  white-space: pre-wrap;
}

.regulation-button {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-right,
.nav-auth {
    display: flex;
    align-items: center;
}

.nav-right {
    gap: 28px;
}

.nav-auth {
    gap: 12px;
}

.nav-auth form {
    margin: 0;
}

.nav-auth button {
    border: 0;
    font-family: inherit;
    cursor: pointer;
}

.nav-dashboard {
    color: var(--ink2);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .nav-right {
        gap: 0;
    }

    .nav-auth {
        display: flex;
    }

    .nav-cta {
        padding: 7px 14px;
    }
}

@media (max-width: 420px) {
    nav {
        padding-inline: 16px;
    }

    .nav-sub {
        display: none;
    }

    .nav-name {
        font-size: 13px;
    }

    .nav-dashboard {
        display: none;
    }
}

.map-layer-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #edf0f2;
}

.map-layer-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.layer-opacity-control {
    display: grid;
    grid-template-columns: auto 1fr 42px;
    align-items: center;
    gap: 0.5rem;
    margin: 0.4rem 0 0 1.5rem;
    font-size: 0.75rem;
    color: #667085;
}

.layer-opacity-control input[type="range"] {
    width: 100%;
    cursor: pointer;
}

.layer-opacity-control output {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Compact Leaflet base-map switch */
#map .leaflet-control-layers,
#map .leaflet-control-layers-expanded {
    width: auto !important;
    min-width: 155px;
    max-width: none !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    padding: 0.5rem !important;
    margin: 0 !important;

    background: rgba(255, 255, 255, 0.96);
    border: 0;
    border-radius: 10px;

    box-shadow:
        0 6px 20px rgba(17, 55, 42, 0.18),
        0 0 0 1px rgba(31, 81, 62, 0.1);

    overflow: visible !important;
}

/* The icon is unnecessary when the control is always expanded */
#map
.leaflet-control-layers-expanded
.leaflet-control-layers-toggle {
    display: none !important;
}

/* Reset inherited dimensions */
#map .leaflet-control-layers-list,
#map .leaflet-control-layers-base {
    display: block !important;

    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 10 !important;
    padding: 0 !important;
}

/* Each base-map option */
#map .leaflet-control-layers-base label {
    display: block !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

#map .leaflet-control-layers-base label + label {
    margin-top: 0.25rem !important;
}

#map .leaflet-control-layers-base label > span {
    display: flex;
    align-items: center;
    gap: 0.5rem;

    padding: 0.45rem 0.55rem;
    border-radius: 7px;

    color: #345247;
    font-size: 0.8rem;
    line-height: 1.2;
    white-space: nowrap;

    cursor: pointer;
}

#map .leaflet-control-layers-base label > span:hover {
    background: #edf5f1;
}

#map .leaflet-control-layers-base input {
    flex: 0 0 auto;

    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;

    accent-color: #245b47;
}

/* Highlight the currently selected base map */
#map .leaflet-control-layers-base label:has(input:checked) > span {
    color: #174a37;
    background: #e6f2ed;
    font-weight: 600;
}

.zoning-helper {
  color:whitesmoke;
}