/* Padukuhan Theme — main.css
   Palet: hijau daun + krem tanah, aksen emas untuk status unggulan. */
:root {
	--pdk-green-900: #14352a;
	--pdk-green-700: #1f5a43;
	--pdk-green-600: #2a7455;
	--pdk-green-100: #e4f0e9;
	--pdk-cream: #faf7f0;
	--pdk-sand: #f1ebdd;
	--pdk-gold: #b7852a;
	--pdk-gold-100: #f8edd2;
	--pdk-ink: #1d2521;
	--pdk-muted: #5c6862;
	--pdk-line: #dcd6c6;
	--pdk-white: #fff;
	--pdk-radius: 12px;
	--pdk-shadow: 0 1px 2px rgba(20, 53, 42, .06), 0 6px 18px rgba(20, 53, 42, .06);
	--pdk-max: 1180px;
}

body.pdk { background: var(--pdk-cream); color: var(--pdk-ink); line-height: 1.65; }
.pdk h1, .pdk h2, .pdk h3 { color: var(--pdk-green-900); line-height: 1.2; letter-spacing: -.01em; }
.pdk a { color: var(--pdk-green-700); }
.pdk a:hover { color: var(--pdk-green-900); }
.pdk img { max-width: 100%; height: auto; }

.pdk-skip { position: absolute; left: -9999px; }
.pdk-skip:focus { left: 8px; top: 8px; z-index: 99999; background: #fff; padding: 8px 12px; border-radius: 6px; }

.pdk-main { display: block; }
.pdk-wrap { width: 100%; max-width: var(--pdk-max); margin: 0 auto; padding: 0 20px; }
.pdk-narrow { max-width: 780px; }
.pdk-center { text-align: center; }

/* ---------- Tombol & tautan ---------- */
.pdk-btn { display: inline-block; background: var(--pdk-green-700); color: #fff !important; border: 0; border-radius: 999px; padding: 11px 22px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s; font-size: 1rem; }
.pdk-btn:hover { background: var(--pdk-green-900); }
.pdk-btn--sm { padding: 7px 16px; font-size: .9rem; }
.pdk-link { font-weight: 600; text-decoration: none; }
.pdk-link:hover { text-decoration: underline; }
.pdk-link--btn { background: none; border: 0; padding: 0; cursor: pointer; font-size: .9rem; color: var(--pdk-muted); text-decoration: underline; }

/* ---------- Badge & chip ---------- */
.pdk-badge { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .02em; padding: 3px 10px; border-radius: 999px; }
.pdk-badge--green { background: var(--pdk-green-100); color: var(--pdk-green-700); }
.pdk-badge--gold { background: var(--pdk-gold-100); color: #7a5410; }
.pdk-badge--gray { background: #ebe8df; color: var(--pdk-muted); }
.pdk-chip { display: inline-block; font-size: .78rem; padding: 3px 10px; border-radius: 999px; background: var(--pdk-sand); color: var(--pdk-ink); border: 1px solid var(--pdk-line); }
.pdk-chip--link { text-decoration: none; margin: 0 6px 6px 0; }
.pdk-chip--link:hover { background: var(--pdk-green-100); }

/* ---------- Hero beranda ---------- */
.pdk-hero { background: linear-gradient(160deg, var(--pdk-green-900), var(--pdk-green-700)); color: #fff; padding: 64px 0 52px; }
.pdk-hero h1 { color: #fff; font-size: clamp(1.8rem, 4.6vw, 3rem); max-width: 18em; margin: 0 0 14px; }
.pdk-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: #d6e8dd; margin: 0 0 10px; }
.pdk-hero__lead { font-size: 1.1rem; max-width: 40em; opacity: .92; margin: 0 0 24px; }
.pdk-hero__search { display: flex; gap: 8px; max-width: 560px; }
.pdk-hero__search input[type=search] { flex: 1; border: 0; border-radius: 999px; padding: 12px 20px; font-size: 1rem; }
.pdk-stats { list-style: none; display: flex; gap: 28px; padding: 0; margin: 26px 0 0; flex-wrap: wrap; }
.pdk-stats li { opacity: .9; }
.pdk-stats strong { font-size: 1.5rem; margin-right: 4px; }

/* ---------- Seksi ---------- */
.pdk-section { padding: 44px 0; }
.pdk-section--tint { background: var(--pdk-sand); }
.pdk-section--cta { padding-top: 8px; }
.pdk-section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.pdk-section__head h2 { margin: 0; font-size: 1.5rem; }
.pdk-two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.pdk-pagehead { padding: 26px 0 8px; }
.pdk-pagehead h1 { margin: 0 0 6px; font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.pdk-pagehead p { color: var(--pdk-muted); margin: 0; }
.pdk-empty { color: var(--pdk-muted); background: var(--pdk-sand); padding: 18px; border-radius: var(--pdk-radius); }
.pdk-count { color: var(--pdk-muted); margin: 0 0 12px; font-size: .92rem; }

/* ---------- Grid & kartu ---------- */
.pdk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pdk-grid--2 { grid-template-columns: repeat(2, 1fr); }
.pdk-card { background: #fff; border: 1px solid var(--pdk-line); border-radius: var(--pdk-radius); overflow: hidden; box-shadow: var(--pdk-shadow); display: flex; flex-direction: column; }
.pdk-card__media { display: block; aspect-ratio: 3 / 2; background: var(--pdk-green-100); }
.pdk-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdk-card__ph { display: grid; place-items: center; height: 100%; font-size: 3rem; color: var(--pdk-green-600); }
.pdk-card__body { padding: 14px 16px 16px; }
.pdk-card__meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.pdk-card__title { margin: 0 0 4px; font-size: 1.1rem; }
.pdk-card__title a { text-decoration: none; color: inherit; }
.pdk-card__loc { margin: 0; color: var(--pdk-muted); font-size: .9rem; }

.pdk-mini { background: #fff; border: 1px solid var(--pdk-line); border-radius: var(--pdk-radius); padding: 14px 16px; }
.pdk-mini h3 { margin: 8px 0 4px; font-size: 1.05rem; }
.pdk-mini p { margin: 0; color: var(--pdk-muted); font-size: .92rem; }

/* ---------- Filter direktori ---------- */
.pdk-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: #fff; border: 1px solid var(--pdk-line); border-radius: var(--pdk-radius); padding: 16px; margin: 16px 0 24px; }
.pdk-filter__field { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--pdk-muted); min-width: 150px; }
.pdk-filter__field--grow { flex: 1; min-width: 200px; }
.pdk-filter input, .pdk-filter select { border: 1px solid var(--pdk-line); border-radius: 8px; padding: 9px 10px; font-size: .95rem; background: #fff; color: var(--pdk-ink); }
.pdk-filter__actions { display: flex; gap: 12px; align-items: center; }

.pdk-dir { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 48px; }
.pdk-dir__map { position: sticky; top: 16px; }
.pdk-subregions { margin: 12px 0 8px; }

/* ---------- Peta ---------- */
.pdk-map { width: 100%; border-radius: var(--pdk-radius); border: 1px solid var(--pdk-line); overflow: hidden; z-index: 0; background: var(--pdk-green-100); }

/* ---------- Pagination ---------- */
.pdk-pager { margin: 28px 0; }
.pdk-pager .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pdk-pager .page-numbers { padding: 7px 14px; border: 1px solid var(--pdk-line); border-radius: 999px; text-decoration: none; background: #fff; }
.pdk-pager .page-numbers.current { background: var(--pdk-green-700); color: #fff; border-color: var(--pdk-green-700); }

/* ---------- Breadcrumb ---------- */
.pdk-crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 14px 0 0; margin: 0; font-size: .85rem; color: var(--pdk-muted); }
.pdk-crumb li + li::before { content: "›"; margin-right: 4px; }
.pdk-crumb a { text-decoration: none; }
.pdk-phero .pdk-crumb ol, .pdk-phero .pdk-crumb a, .pdk-phero .pdk-crumb { color: #e6efe9; }

/* ---------- Profil padukuhan ---------- */
.pdk-phero { background: var(--pdk-green-900) center / cover no-repeat; color: #fff; padding: 28px 0 40px; min-height: 280px; display: flex; align-items: flex-end; }
.pdk-phero > .pdk-wrap { padding-top: 70px; }
.pdk-phero h1 { color: #fff; font-size: clamp(1.9rem, 4.6vw, 3rem); margin: 10px 0 4px; }
.pdk-phero__meta { display: flex; gap: 8px; flex-wrap: wrap; }
.pdk-phero__loc { margin: 0; opacity: .9; }
.pdk-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--pdk-line); margin: 0 0 28px; position: sticky; top: 0; background: var(--pdk-cream); z-index: 5; }
.pdk-tabs a { padding: 14px 16px; text-decoration: none; font-weight: 600; white-space: nowrap; color: var(--pdk-muted); border-bottom: 3px solid transparent; }
.pdk-tabs a:hover { color: var(--pdk-green-900); border-bottom-color: var(--pdk-green-600); }
.pdk-profile__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
.pdk-block { margin-bottom: 40px; scroll-margin-top: 70px; }
.pdk-block h2 { font-size: 1.5rem; margin: 0 0 14px; }
.pdk-block h3 { font-size: 1.08rem; margin: 20px 0 6px; }
.pdk-panel { background: #fff; border: 1px solid var(--pdk-line); border-radius: var(--pdk-radius); padding: 18px; margin-bottom: 18px; scroll-margin-top: 70px; }
.pdk-panel h2 { font-size: 1.1rem; margin: 0 0 12px; }
.pdk-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; }
.pdk-dl dt { color: var(--pdk-muted); font-size: .9rem; }
.pdk-dl dd { margin: 0; font-weight: 600; }
.pdk-list { list-style: none; margin: 0; padding: 0; }
.pdk-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--pdk-line); font-size: .93rem; }
.pdk-list li:last-child { border-bottom: 0; }
.pdk-list span { color: var(--pdk-muted); text-align: right; }
.pdk-report { margin: 12px 0 0; }

.pdk-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pdk-gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; display: block; }
.pdk-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--pdk-radius); }

/* ---------- Prosa & artikel ---------- */
.pdk-prose { font-size: 1.04rem; }
.pdk-prose--sm { font-size: .93rem; margin-top: 12px; }
.pdk-prose > :first-child { margin-top: 0; }
.pdk-article { padding: 20px 0 56px; }
.pdk-article h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 10px 0; }
.pdk-article__by, .pdk-article__date { color: var(--pdk-muted); font-size: .93rem; }
.pdk-figure { margin: 18px 0; }
.pdk-figure img { border-radius: var(--pdk-radius); width: 100%; }
.pdk-facts { list-style: none; padding: 0; margin: 14px 0 22px; display: grid; gap: 6px; }
.pdk-facts strong { display: inline-block; min-width: 110px; color: var(--pdk-muted); font-weight: 600; }

/* ---------- Agenda & linimasa ---------- */
.pdk-event { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--pdk-line); border-radius: var(--pdk-radius); padding: 12px 14px; margin-bottom: 10px; }
.pdk-event__date { flex: 0 0 56px; text-align: center; background: var(--pdk-green-100); border-radius: 10px; padding: 6px 0; color: var(--pdk-green-900); }
.pdk-event__date strong { display: block; font-size: 1.35rem; line-height: 1.1; }
.pdk-event__date span { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.pdk-event__body h3 { margin: 0 0 2px; font-size: 1.02rem; }
.pdk-event__body h3 a { text-decoration: none; color: inherit; }
.pdk-event__meta { margin: 0; color: var(--pdk-muted); font-size: .88rem; }
.pdk-events { margin: 18px 0; }

.pdk-timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--pdk-line); }
.pdk-timeline li { position: relative; padding: 0 0 18px 16px; }
.pdk-timeline li::before { content: ""; position: absolute; left: -25px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--pdk-green-600); box-shadow: 0 0 0 3px var(--pdk-cream); }
.pdk-timeline time { display: block; font-size: .8rem; color: var(--pdk-muted); }
.pdk-timeline a { font-weight: 600; text-decoration: none; }
.pdk-timeline__src { display: block; font-size: .85rem; color: var(--pdk-muted); }
.pdk-timeline--lg a { font-size: 1.08rem; }

/* ---------- CTA, langkah, hasil ---------- */
.pdk-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: var(--pdk-gold-100); border: 1px solid #ecd9a3; border-radius: var(--pdk-radius); padding: 22px 26px; margin: 12px 0 48px; }
.pdk-cta h2 { margin: 0 0 4px; font-size: 1.3rem; }
.pdk-cta p { margin: 0; color: #5d4a1c; }
.pdk-steps { padding-left: 20px; margin: 18px 0 24px; }
.pdk-steps li { margin-bottom: 8px; }
.pdk-results { list-style: none; padding: 0; margin: 20px 0; }
.pdk-results li { padding: 16px 0; border-bottom: 1px solid var(--pdk-line); }
.pdk-results h2 { margin: 6px 0 4px; font-size: 1.2rem; }
.pdk-results p { margin: 0; color: var(--pdk-muted); }

/* ---------- Dashboard (acf_form) ---------- */
.pdk-dash .acf-form-submit .acf-button, .pdk-dash .button-primary { background: var(--pdk-green-700); border: 0; border-radius: 999px; padding: 10px 22px; color: #fff; }
.pdk-dash .acf-field { margin-bottom: 18px; }

/* ---------- Responsif ---------- */
@media (max-width: 960px) {
	.pdk-grid { grid-template-columns: repeat(2, 1fr); }
	.pdk-two { grid-template-columns: 1fr; gap: 28px; }
	.pdk-dir { grid-template-columns: 1fr; }
	.pdk-dir__map { position: static; order: -1; }
	.pdk-profile__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.pdk-grid, .pdk-grid--2 { grid-template-columns: 1fr; }
	.pdk-hero { padding: 44px 0 36px; }
	.pdk-hero__search { flex-direction: column; }
	.pdk-cta { flex-direction: column; align-items: flex-start; }
	.pdk-gallery { grid-template-columns: repeat(2, 1fr); }
	.pdk-filter__field { min-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
