/* =========================================================
   PORTAL RESMI KABUPATEN KOTABARU — style.css (versi bersih)
   Dibuat khusus untuk index.php. Urutan file:
   1. Variabel & dasar halaman
   2. Header
   3. Hero
   4. Kartu layanan
   5. Modal (SKPD, Aplikasi, Kesehatan, Dinamis, Pariwisata)
   6. Footer (kelas "pkf")
   7. Aksesibilitas, gerak, cetak
   Tanpa !important kecuali yang benar-benar perlu.
========================================================= */

/* =========================================================
   1. VARIABEL & DASAR HALAMAN
========================================================= */
:root {
  --bg: #071a2b;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.82);

  --brand-blue: #0878d9;
  --brand-blue-dark: #055aa5;

  --gold: #f5c400;
  --line: rgba(255, 210, 28, 0.45);

  --content-width: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #07192b;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;

  display: flex;
  flex-direction: column;

  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);

  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Foto latar Kotabaru */
body.has-photo-background::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      180deg,
      rgba(3, 18, 35, 0.58) 0%,
      rgba(3, 22, 40, 0.42) 30%,
      rgba(3, 18, 35, 0.52) 60%,
      rgba(2, 12, 25, 0.88) 100%
    ),
    url("../assets/latar-kotabaru.png") center center / cover no-repeat;
  pointer-events: none;
}

body.has-photo-background::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    circle at 50% 38%,
    rgba(255, 255, 255, 0.04),
    transparent 42%
  );
  pointer-events: none;
}

/* Form mengikuti font halaman (tanpa memaksa font ikon) */
button,
input,
select,
textarea {
  font-family: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

body.skpd-modal-open {
  overflow: hidden;
}

/* =========================================================
   2. HEADER — logo kiri | judul tengah | aksesibilitas kanan
========================================================= */
header {
  position: relative;
  z-index: 2;
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 22px 24px 16px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;

  animation: headerDown 0.8s ease-out both;
}

.logo-link {
  grid-column: 1;
  justify-self: start;
  display: inline-block;
}

.logo {
  display: block;
  width: 68px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

.logo:hover {
  transform: scale(1.06) rotate(-2deg);
  filter: drop-shadow(0 0 12px rgba(255, 204, 0, 0.6));
}

.portal-title-text {
  grid-column: 2;
  justify-self: center;
  margin: 0;
  text-align: center;
  white-space: nowrap;

  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

/* Tombol aksesibilitas */
.header-accessibility-button {
  grid-column: 3;
  justify-self: end;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;

  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;

  background: rgba(7, 35, 52, 0.68);
  border: 1px solid rgba(245, 196, 0, 0.55);
  border-radius: 999px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.header-accessibility-button:hover {
  color: #071b2a;
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.header-accessibility-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* ikon kursi roda: gambar hitam dijadikan kuning */
.header-accessibility-button .accessibility-icon {
  display: block;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: invert(78%) sepia(98%) saturate(1500%) hue-rotate(358deg)
    brightness(105%);
  transition: filter 0.2s ease;
}

.header-accessibility-button:hover .accessibility-icon {
  filter: none;
}

/* tombol bulat bawaan widget disembunyikan, dibuka lewat tombol header */
#show_menu_dsb_web {
  display: none !important;
}

@keyframes headerDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  header {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px;
    padding: 16px 12px 10px;
  }

  .logo {
    width: 44px;
  }

  .portal-title-text {
    justify-self: stretch;
    white-space: normal;
    font-size: clamp(10px, 2.5vw, 14px);
    line-height: 1.4;
  }

  .header-accessibility-button {
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 50%;
  }

  .header-accessibility-button span {
    display: none;
  }
}

/* =========================================================
   3. HERO
========================================================= */
main {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 36px 24px 20px;
  text-align: center;
}

main h1 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(2.1rem, 5.2vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.8px;
  text-shadow:
    0 3px 15px rgba(0, 0, 0, 0.75),
    0 1px 3px rgba(0, 0, 0, 0.9);
  animation: heroTitle 0.9s ease-out 0.2s both;
}

main h1 .porta {
  display: inline-block;
  color: #fff;
  animation: slideFromLeft 0.9s ease-out 0.5s both;
}

main h1 .ko {
  display: inline-block;
  margin-left: 0.25em;
  color: var(--gold);
  animation: slideFromRight 0.9s ease-out 0.7s both;
}

main > p {
  max-width: 900px;
  margin: 0 auto 22px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
  animation: fadeUp 0.9s ease-out 0.8s both;
}

@keyframes heroTitle {
  from {
    opacity: 0;
    transform: translateY(36px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
@keyframes slideFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  main {
    padding: 44px 18px 28px;
  }

  main h1 {
    margin-bottom: 18px;
    font-size: clamp(1.9rem, 9vw, 2.6rem);
    letter-spacing: -0.4px;
  }

  main > p {
    margin-bottom: 26px;
    font-size: 1rem;
    line-height: 1.65;
  }
}

/* =========================================================
   4. KARTU LAYANAN
========================================================= */
.navigation-cards {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 680px;
  max-width: calc(100% - 30px);
  margin: 0 auto 36px;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  text-align: left;
}

.nav-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 92px;
  padding: 14px 16px;

  color: #fff;
  text-decoration: none;
  overflow: hidden;

  background: linear-gradient(
    135deg,
    rgba(7, 35, 57, 0.92),
    rgba(4, 24, 43, 0.86)
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);

  transition:
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* animasi masuk memakai properti "translate" agar tidak bentrok dengan hover (transform) */
html:not(.portako-scroll-reveal-ready) .navigation-cards .nav-card {
  animation: cardAppear 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.navigation-cards .nav-card:nth-child(1) {
  animation-delay: 0.05s;
}
.navigation-cards .nav-card:nth-child(2) {
  animation-delay: 0.12s;
}
.navigation-cards .nav-card:nth-child(3) {
  animation-delay: 0.19s;
}
.navigation-cards .nav-card:nth-child(4) {
  animation-delay: 0.26s;
}
.navigation-cards .nav-card:nth-child(5) {
  animation-delay: 0.33s;
}
.navigation-cards .nav-card:nth-child(6) {
  animation-delay: 0.4s;
}
.navigation-cards .nav-card:nth-child(7) {
  animation-delay: 0.47s;
}
.navigation-cards .nav-card:nth-child(n + 8) {
  animation-delay: 0.54s;
}

@keyframes cardAppear {
  from {
    opacity: 0;
    translate: 0 28px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* =========================================================
   Kartu muncul saat scroll ke bawah, hilang saat scroll ke atas.
   Class "portako-scroll-reveal-ready" dipasang oleh JS di index.php
   (tanpa JS kartu tetap tampil). Memakai visibility/opacity agar
   tinggi halaman tetap sama dan footer tidak bergeser.
========================================================= */
html.portako-scroll-reveal-ready .navigation-cards .nav-card {
  animation: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  translate: 0 28px;
  transition:
    opacity 0.45s ease,
    translate 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0.45s linear,
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  transition-delay: 0s;
}

html.portako-scroll-reveal-ready .navigation-cards .nav-card.is-scroll-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  translate: 0 0;
  /* jeda bertahap hanya untuk opacity/translate/visibility, bukan hover */
  transition-delay:
    var(--reveal-delay, 0s), var(--reveal-delay, 0s), var(--reveal-delay, 0s),
    0s, 0s, 0s, 0s;
}
.navigation-cards .nav-card:nth-child(1) {
  --reveal-delay: 0s;
}
.navigation-cards .nav-card:nth-child(2) {
  --reveal-delay: 0.07s;
}
.navigation-cards .nav-card:nth-child(3) {
  --reveal-delay: 0.14s;
}
.navigation-cards .nav-card:nth-child(4) {
  --reveal-delay: 0.21s;
}
.navigation-cards .nav-card:nth-child(5) {
  --reveal-delay: 0.28s;
}
.navigation-cards .nav-card:nth-child(6) {
  --reveal-delay: 0.35s;
}
.navigation-cards .nav-card:nth-child(7) {
  --reveal-delay: 0.42s;
}
.navigation-cards .nav-card:nth-child(n + 8) {
  --reveal-delay: 0.49s;
}

@media (prefers-reduced-motion: reduce) {
  html.portako-scroll-reveal-ready .navigation-cards .nav-card,
  html.portako-scroll-reveal-ready
    .navigation-cards
    .nav-card.is-scroll-visible {
    transition: none;
    translate: 0 0;
  }
}

/* garis emas saat hover */
.nav-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  bottom: 15px;
  width: 3px;
  background: var(--gold);
  border-radius: 0 4px 4px 0;
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* lingkaran dekorasi */
.nav-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -80px;
  width: 130px;
  height: 130px;
  background: rgba(255, 210, 28, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.nav-card:hover {
  transform: translateY(-6px);
  background: linear-gradient(
    135deg,
    rgba(9, 48, 76, 0.96),
    rgba(4, 29, 51, 0.94)
  );
  border-color: rgba(255, 210, 28, 0.5);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.nav-card:hover::before {
  opacity: 1;
}

.nav-card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.nav-icon {
  position: relative;
  z-index: 2;
  flex: 0 0 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.nav-icon img {
  display: block;
  width: 46px;
  height: 46px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
  transition: transform 0.3s ease;
}

.nav-card:hover .nav-icon {
  transform: scale(1.06) rotate(-3deg);
  background: rgba(255, 210, 28, 0.12);
  box-shadow: 0 8px 20px rgba(255, 204, 0, 0.18);
}

.nav-card:hover .nav-icon img {
  transform: scale(1.08);
}

.nav-card-content {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-card-content h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s ease;
}

.nav-card:hover .nav-card-content h3 {
  transform: translateX(4px);
}

.nav-card-content p {
  margin: 0;
  max-width: 300px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.68rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.nav-arrow {
  position: relative;
  z-index: 2;
  flex: 0 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--gold);
  font-size: 0.85rem;
  background: rgba(255, 210, 28, 0.08);
  border: 1px solid rgba(255, 210, 28, 0.18);
  border-radius: 50%;
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    color 0.3s ease;
}

.nav-card:hover .nav-arrow {
  transform: translateX(5px);
  color: #071a2b;
  background: var(--gold);
}

@media (max-width: 900px) {
  .navigation-cards {
    width: 650px;
  }
}

@media (max-width: 700px) {
  .navigation-cards {
    width: 100%;
    max-width: calc(100% - 36px);
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .nav-card {
    min-height: 96px;
    padding: 14px;
    border-radius: 15px;
  }

  .nav-icon {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }

  .nav-card-content h3 {
    font-size: 0.95rem;
  }
  .nav-card-content p {
    font-size: 0.78rem;
    max-width: none;
  }
}

@media (max-width: 380px) {
  .navigation-cards {
    max-width: calc(100% - 28px);
    gap: 10px;
  }

  .nav-card {
    padding: 12px;
    gap: 9px;
  }

  .nav-icon {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .nav-card-content h3 {
    font-size: 0.88rem;
  }
  .nav-card-content p {
    font-size: 0.73rem;
  }
}

/* =========================================================
   5. MODAL — disalin apa adanya dari style.css lama
   (SKPD, Aplikasi, Kesehatan, Dinamis, Pariwisata memakai kelas ini)
========================================================= */

/* ===== MODAL WEBSITE SKPD PORTAKO ===== */
.skpd-modal[aria-hidden="true"] {
  display: none;
}

.skpd-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
}

.skpd-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 18, 32, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: skpdFadeIn 0.2s ease;
}

.skpd-modal-content {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(85vh, 780px);
  overflow-y: auto;
  padding: 28px;
  color: #172b3c;
  background: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  animation: skpdSlideUp 0.25s ease;
}

.skpd-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.skpd-eyebrow {
  color: #a47a00;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
}

.skpd-modal-header h2 {
  margin: 6px 0;
  color: #123047;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
}

.skpd-modal-header p {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

.skpd-close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #123047;
  background: #e7edf3;
  font-size: 1.8rem;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}

.skpd-close:hover {
  background: #f5c400;
  transform: rotate(90deg);
}

.skpd-search {
  display: block;
  margin-bottom: 20px;
}

.skpd-search input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  color: #172b3c;
  background: #fff;
  border: 1px solid #d7e0e8;
  border-radius: 12px;
  outline: none;
  font: inherit;
}

.skpd-search input:focus {
  border-color: #d2a900;
  box-shadow: 0 0 0 3px rgba(245, 196, 0, 0.18);
}

.skpd-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.skpd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  color: #172b3c;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}

.skpd-item:hover {
  transform: translateY(-3px);
  border-color: #d2a900;
  box-shadow: 0 8px 20px rgba(18, 48, 71, 0.09);
}

.skpd-item-icon {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #f5c400;
  background: #123047;
  border-radius: 12px;
  font-size: 1.2rem;
}

.skpd-item-info {
  flex: 1;
  min-width: 0;
}

.skpd-item-info strong {
  display: block;
  font-size: 0.93rem;
  line-height: 1.45;
}

.skpd-item-info small {
  display: block;
  margin-top: 5px;
  color: #64748b;
}

.skpd-item-arrow {
  color: #9a7600;
  font-size: 1.2rem;
}

.skpd-empty {
  padding: 24px;
  color: #64748b;
  text-align: center;
}

.skpd-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 16px;
  color: #64748b;
  border-top: 1px solid #e2e8f0;
  font-size: 0.82rem;
}

.skpd-modal-footer button {
  padding: 10px 18px;
  color: #fff;
  background: #123047;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.skpd-modal-footer button:hover {
  color: #123047;
  background: #f5c400;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

body.skpd-modal-open {
  overflow: hidden;
}

@keyframes skpdFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes skpdSlideUp {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 600px) {
  .skpd-modal {
    padding: 10px;
  }

  .skpd-modal-content {
    max-height: 92vh;
    padding: 18px;
    border-radius: 18px;
  }

  .skpd-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .skpd-modal-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skpd-modal-backdrop,
  .skpd-modal-content {
    animation: none;
  }

  .skpd-item,
  .skpd-close {
    transition: none;
  }
}

/* ===== CSS APLIKASI.JS ===== */
.aplikasi-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.aplikasi-item-icon svg {
  display: block;
  width: 25px;
  height: 25px;
}

/* =========================================
   MODAL KESEHATAN — SAMAKAN DENGAN SKPD
   DAN APLIKASI PORTAKO
========================================= */

#kesehatanModal[aria-hidden="true"] {
  display: none !important;
}

#kesehatanModal.skpd-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: hidden;
}

#kesehatanModal .skpd-modal-content {
  position: relative;
  width: min(1380px, 100%);
  max-height: min(92vh, 900px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 32px 40px;
  color: #172b3c;
  background: #f5f8fc;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  animation: skpdSlideUp 0.25s ease;
}

/* Judul */
#kesehatanModal #kesehatanTitle {
  margin: 0 70px 12px 0;
  color: #123047;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
}

/* Deskripsi */
#kesehatanModal .skpd-modal-content > p {
  margin: 0 0 22px;
  color: #647b94;
  font-size: 1rem;
  line-height: 1.65;
}

/* Tombol tutup */
#kesehatanModal .kesehatan-close {
  position: absolute;
  top: 24px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #e7edf4;
  color: #123047;
  font-size: 1.8rem;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

#kesehatanModal .kesehatan-close:hover {
  background: #f5c400;
  transform: rotate(90deg);
}

/* Kolom pencarian */
#kesehatanModal #kesehatanSearch {
  display: block;
  width: 100%;
  min-height: 64px;
  box-sizing: border-box;
  margin: 0 0 28px;
  padding: 16px 24px;
  border: 1px solid #f5c400;
  border-radius: 18px;
  outline: none;
  background: #fff;
  color: #172b3c;
  font: inherit;
  font-size: 1rem;
  transition: box-shadow 0.2s ease;
}

#kesehatanModal #kesehatanSearch:focus {
  box-shadow: 0 0 0 4px rgba(245, 196, 0, 0.22);
}

/* Daftar layanan: dua kolom seperti SKPD dan aplikasi */
#kesehatanModal #kesehatanList,
#kesehatanModal .kesehatan-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* Kartu layanan */
#kesehatanModal .skpd-item,
#kesehatanModal .kesehatan-item {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  min-height: 112px;
  box-sizing: border-box;
  padding: 22px 24px;
  border: 1px solid #dbe5f0;
  border-radius: 24px;
  background: #fff;
  color: #172b3c;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

#kesehatanModal .skpd-item:hover,
#kesehatanModal .kesehatan-item:hover {
  transform: translateY(-3px);
  border-color: #f5c400;
  box-shadow: 0 12px 28px rgba(18, 48, 71, 0.09);
}

/* Ikon kartu */
#kesehatanModal .skpd-item-icon,
#kesehatanModal .kesehatan-item-icon {
  display: grid;
  place-items: center;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: #123047;
  color: #f5c400;
  font-size: 2rem;
}

/* Nama dan keterangan */
#kesehatanModal .skpd-item-info,
#kesehatanModal .kesehatan-item-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

#kesehatanModal .skpd-item-info strong,
#kesehatanModal .kesehatan-item-info strong {
  color: #123047;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.4;
}

#kesehatanModal .skpd-item-info small,
#kesehatanModal .kesehatan-item-info small {
  color: #647b94;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Panah tautan */
#kesehatanModal .skpd-item-arrow,
#kesehatanModal .kesehatan-item-arrow {
  flex: 0 0 auto;
  margin-left: auto;
  color: #a47a00;
  font-size: 1.5rem;
}

/* Pesan pencarian kosong */
#kesehatanModal #kesehatanEmpty[hidden] {
  display: none !important;
}

#kesehatanModal #kesehatanEmpty {
  padding: 24px;
  color: #647b94;
  text-align: center;
}

/* Responsif tablet dan HP */
@media (max-width: 760px) {
  #kesehatanModal.skpd-modal {
    padding: 12px;
  }

  #kesehatanModal .skpd-modal-content {
    max-height: 94vh;
    padding: 24px 18px;
    border-radius: 22px;
  }

  #kesehatanModal #kesehatanTitle {
    margin-right: 48px;
    font-size: 1.65rem;
  }

  #kesehatanModal .kesehatan-close {
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
  }

  #kesehatanModal #kesehatanList,
  #kesehatanModal .kesehatan-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #kesehatanModal .skpd-item,
  #kesehatanModal .kesehatan-item {
    min-height: 88px;
    padding: 16px;
    gap: 14px;
    border-radius: 18px;
  }

  #kesehatanModal .skpd-item-icon,
  #kesehatanModal .kesehatan-item-icon {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #kesehatanModal .skpd-modal-content,
  #kesehatanModal .skpd-item,
  #kesehatanModal .kesehatan-item {
    animation: none !important;
    transition: none !important;
  }
}

/* =====================================================
   PERBAIKAN UKURAN MODAL LAYANAN KESEHATAN
   Disamakan dengan modal Aplikasi SKPD dan Website SKPD.
   Override ini sengaja diletakkan paling akhir.
===================================================== */
#kesehatanModal.skpd-modal {
  padding: 20px;
  overflow: hidden;
}

#kesehatanModal .skpd-modal-content {
  width: min(1120px, calc(100vw - 40px));
  max-width: 1120px;
  max-height: min(86vh, 780px);
  overflow-y: auto;
  padding: 28px 32px;
  border-radius: 24px;
}

#kesehatanModal #kesehatanTitle {
  margin: 0 64px 10px 0;
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
  line-height: 1.25;
}

#kesehatanModal .skpd-modal-content > p {
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 1.6;
}

#kesehatanModal .kesehatan-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
}

#kesehatanModal #kesehatanSearch {
  min-height: 54px;
  margin-bottom: 20px;
  padding: 13px 18px;
  border-radius: 14px;
  font-size: 1rem;
}

#kesehatanModal #kesehatanList,
#kesehatanModal .kesehatan-list {
  gap: 14px;
}

#kesehatanModal .skpd-item,
#kesehatanModal .kesehatan-item {
  min-height: 92px;
  padding: 16px 18px;
  gap: 14px;
  border-radius: 18px;
}

#kesehatanModal .skpd-item-icon,
#kesehatanModal .kesehatan-item-icon {
  flex-basis: 54px;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  font-size: 1.65rem;
}

#kesehatanModal .skpd-item-info,
#kesehatanModal .kesehatan-item-info {
  gap: 5px;
}

#kesehatanModal .skpd-item-info strong,
#kesehatanModal .kesehatan-item-info strong {
  font-size: 1rem;
  line-height: 1.4;
}

#kesehatanModal .skpd-item-info small,
#kesehatanModal .kesehatan-item-info small {
  font-size: 0.9rem;
  line-height: 1.45;
}

@media (max-width: 760px) {
  #kesehatanModal.skpd-modal {
    padding: 12px;
  }

  #kesehatanModal .skpd-modal-content {
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    padding: 22px 18px;
    border-radius: 20px;
  }

  #kesehatanModal #kesehatanTitle {
    margin-right: 48px;
    font-size: clamp(1.35rem, 5vw, 1.7rem);
  }

  #kesehatanModal .kesehatan-close {
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
  }

  #kesehatanModal #kesehatanSearch {
    min-height: 48px;
    padding: 11px 13px;
    font-size: 0.92rem;
  }

  #kesehatanModal #kesehatanList,
  #kesehatanModal .kesehatan-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #kesehatanModal .skpd-item,
  #kesehatanModal .kesehatan-item {
    min-height: 78px;
    padding: 13px;
    gap: 12px;
  }

  #kesehatanModal .skpd-item-icon,
  #kesehatanModal .kesehatan-item-icon {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
    font-size: 1.4rem;
  }
}

#kesehatanModal .skpd-item-icon {
  display: grid;
  place-items: center;
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 22px;
  background: #123047;
}

#kesehatanModal .skpd-item-icon .hospital-image {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
  border: 0;
}

/* =========================================================
   6. FOOTER (kelas "pkf") — VERSI 8
   Baris atas: identitas + sosmed. Baris tengah: kartu Lokasi
   (teks + peta) dan kartu Site Statistics. Baris bawah: hak cipta.
========================================================= */

footer.pkf {
  --pk-line: rgba(255, 255, 255, 0.12);
  --pk-text: #f4f8fc;
  --pk-muted: #a9bdd0;
  --pk-gold: #f5c400;
  --pk-gold-soft: #ffd987;
  --pk-aqua: #9aeede;
  --pk-green: #3ddc97;

  position: relative;
  isolation: isolate;
  z-index: 5;
  width: 100%;
  margin: 24px 0 0;
  padding: 0;
  color: var(--pk-text);
  background:
    radial-gradient(
      ellipse 60% 80% at 15% 0%,
      rgba(40, 120, 180, 0.28),
      transparent 65%
    ),
    radial-gradient(
      ellipse 45% 80% at 100% 100%,
      rgba(245, 196, 0, 0.08),
      transparent 65%
    ),
    linear-gradient(180deg, #0d3358 0%, #09223c 100%);
  border: 0;
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  animation: none;
  box-sizing: border-box;
  overflow: hidden;
}

footer.pkf *,
footer.pkf *::before,
footer.pkf *::after {
  box-sizing: border-box;
}

/* garis emas tipis di tepi atas footer */
footer.pkf::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(245, 196, 0, 0.2) 12%,
    var(--pk-gold) 50%,
    rgba(245, 196, 0, 0.2) 88%,
    transparent
  );
  pointer-events: none;
}

/* ---------- KERANGKA ---------- */
.pkf-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 18px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px clamp(16px, 4vw, 40px) 14px;
}

/* ---------- BARIS ATAS: IDENTITAS + SOSMED ---------- */
.pkf-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 28px;
}

.pkf-id {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.pkf-id img {
  flex: 0 0 auto;
  width: 32px;
  height: 38px;
  padding: 4px 5px;
  object-fit: contain;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid rgba(245, 196, 0, 0.3);
  border-radius: 10px;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.pkf-id-text {
  min-width: 0;
}

.pkf-id-text strong {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.05em;
}

.pkf-id-text p {
  margin: 1px 0 0;
  color: var(--pk-muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.pkf-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pkf-social-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--pk-gold);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pkf-social-label::before {
  content: "";
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--pk-gold);
}

.pkf-social-links {
  display: flex;
  gap: 9px;
}

.pkf-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--pk-line);
  border-radius: 10px;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.pkf-social-links a:hover,
.pkf-social-links a:focus-visible {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
  outline: none;
}

.pkf-social-links a:focus-visible {
  outline: 2px solid var(--pk-gold);
  outline-offset: 3px;
}

.pkf-social-links a:nth-child(1):hover {
  background: #1877f2;
}
.pkf-social-links a:nth-child(2):hover {
  background: linear-gradient(45deg, #f9a03f, #e1306c 55%, #833ab4);
}
.pkf-social-links a:nth-child(3):hover {
  background: linear-gradient(135deg, #25f4ee, #000000, #fe2c55);
}
.pkf-social-links a:nth-child(4):hover {
  background: #ff0000;
}

.pkf-social-links svg {
  display: block;
  width: 14px;
  height: 14px;
}

/* ---------- BARIS TENGAH ---------- */
.pkf-main {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.pkf-card {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 22px 24px;
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.035)
  );
  border: 1px solid var(--pk-line);
  border-radius: 18px;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* aksen emas di tepi atas kartu */
.pkf-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 18px;
  width: 46%;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--pk-gold), transparent);
  opacity: 0.85;
  pointer-events: none;
}

/* kepala kartu: ikon + teks */
.pkf-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pkf-head-icon {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  color: var(--pk-gold-soft);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
}

.pkf-head-icon svg {
  width: 16px;
  height: 16px;
}

.pkf-head-text {
  min-width: 0;
  flex: 1 1 auto;
}

.pkf-eyebrow {
  display: block;
  color: var(--pk-muted);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pkf-eyebrow-gold {
  color: var(--pk-gold-soft);
}

.pkf-head-text small {
  display: block;
  margin-top: 2px;
  color: var(--pk-muted);
  font-size: 11px;
}

.pkf-heading {
  margin: 2px 0 0;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.2px;
}

/* ---------- KARTU LOKASI ---------- */
.pkf-map {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
  gap: 26px;
}

.pkf-loc {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
}

.pkf-heading-lg {
  margin: 18px 0 0;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.2;
  letter-spacing: -0.5px;
  text-wrap: balance;
}

.pkf-address {
  margin: 10px 0 0;
  color: var(--pk-muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.pkf-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding: 6px 12px;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--pk-line);
  border-radius: 999px;
}

.pkf-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pk-green);
  box-shadow: 0 0 8px rgba(61, 220, 151, 0.8);
}

.pkf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pkf-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  color: #fff;
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.pkf-btn svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.pkf-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(245, 196, 0, 0.5);
  transform: translateY(-1px);
}

.pkf-btn:focus-visible,
.pkf-map-tabs button:focus-visible {
  outline: 2px solid var(--pk-gold);
  outline-offset: 2px;
}

.pkf-btn.is-done {
  color: var(--pk-green);
  border-color: rgba(61, 220, 151, 0.5);
}

.pkf-map-box {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px;
  background: rgba(5, 22, 42, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3);
}

.pkf-map-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 4px 12px;
  font-size: 11.5px;
  font-weight: 700;
}

.pkf-map-bar-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.pkf-map-bar-title {
  white-space: nowrap;
}

.pkf-map-bar-title svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: var(--pk-gold-soft);
}

.pkf-map-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--pk-line);
  border-radius: 999px;
}

.pkf-map-tabs button {
  padding: 4px 10px;
  color: var(--pk-muted);
  font: inherit;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 999px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.pkf-map-tabs button:hover {
  color: #fff;
}

.pkf-map-tabs button.is-active {
  color: #fff;
  background: linear-gradient(135deg, #14a3b0, #0f7f9a);
}

.pkf-map-frame {
  position: relative;
  flex: 1 1 auto;
  min-height: 200px;
  overflow: hidden;
  background: #0b2336;
  border-radius: 10px;
}

.pkf-map-frame iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  transition: filter 0.3s ease;
}

/* mode gelap: peta terang dibalik warnanya lewat filter */
.pkf-map-frame.is-dark iframe {
  filter: invert(0.92) hue-rotate(180deg) saturate(0.75) contrast(0.92);
}

/* ---------- KARTU STATISTIK ---------- */
.pkf-stats {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pkf-stats .pkf-heading {
  margin-top: 2px;
  font-size: 17px;
}

.pkf-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 4px 9px;
  color: var(--pk-aqua);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(61, 220, 151, 0.1);
  border: 1px solid rgba(61, 220, 151, 0.35);
  border-radius: 999px;
}

.pkf-live-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pk-green);
  animation: pkfPulse 2s ease-out infinite;
}

@keyframes pkfPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.6);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(61, 220, 151, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(61, 220, 151, 0);
  }
}

.pkf-stats-grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 12px;
}

.pkf-stat {
  min-width: 0;
  background: rgba(6, 26, 48, 0.5);
  border: 1px solid var(--pk-line);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.pkf-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 196, 0, 0.5);
}

/* dua kotak besar: label di atas, angka besar di bawah */
.pkf-stat-big {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 92px;
  padding: 14px 16px;
  border-radius: 14px;
}

.pkf-stat-big .pkf-stat-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dbe7f2;
  font-size: 11px;
  font-weight: 700;
}

.pkf-stat-big .pkf-stat-value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.pkf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pk-gold);
  box-shadow: 0 0 8px rgba(245, 196, 0, 0.7);
}

.pkf-stat-visitor {
  background: linear-gradient(
    150deg,
    rgba(48, 150, 160, 0.3),
    rgba(30, 100, 130, 0.22)
  );
  border-color: rgba(154, 238, 222, 0.25);
}

.pkf-stat-visitor .pkf-stat-value {
  color: var(--pk-aqua);
}

/* tiga baris: ikon, label, angka rata kanan */
.pkf-stat-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 12px;
  border-radius: 14px;
}

.pkf-stat-ico {
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  color: var(--pk-aqua);
  background: rgba(154, 238, 222, 0.1);
  border: 1px solid rgba(154, 238, 222, 0.2);
  border-radius: 8px;
}

.pkf-stat-ico svg {
  width: 14px;
  height: 14px;
}

.pkf-stat-row .pkf-stat-label {
  flex: 1 1 auto;
  min-width: 0;
  color: #e6eef6;
  font-size: 11.5px;
  font-weight: 700;
}

.pkf-stat-row .pkf-stat-value {
  font-size: 15px;
  font-weight: 800;
  text-align: right;
}

.pkf-stat-label {
  white-space: nowrap;
}

.pkf-stat-value {
  color: var(--pk-gold-soft);
  font-variant-numeric: tabular-nums;
}

/* ---------- BARIS BAWAH ---------- */
.pkf-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 20px;
  padding-top: 14px;
  border-top: 1px solid var(--pk-line);
}

.pkf-bottom p {
  margin: 0;
  color: var(--pk-muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.pkf-bottom p:first-child {
  color: #fff;
  font-weight: 700;
}

/* ---------- TABLET ---------- */
@media (max-width: 1020px) {
  .pkf-main {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .pkf-map {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .pkf-map-frame {
    min-height: 190px;
  }
}

/* ---------- HP ---------- */
@media (max-width: 600px) {
  footer.pkf {
    margin-top: 32px;
  }

  .pkf-inner {
    row-gap: 14px;
    padding: 20px 14px 12px;
  }

  .pkf-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .pkf-card {
    padding: 14px;
    border-radius: 16px;
  }

  .pkf-card::before {
    left: 18px;
  }

  .pkf-map-bar {
    flex-wrap: wrap;
  }

  .pkf-stat-big {
    min-height: 68px;
    padding: 10px 12px;
  }

  .pkf-stat-big .pkf-stat-value {
    font-size: 26px;
  }

  .pkf-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}

@media (max-width: 380px) {
  .pkf-social {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  footer.pkf *,
  footer.pkf *::before,
  footer.pkf *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  footer.pkf {
    display: none !important;
  }
}

/* menempel ke dasar halaman: body sudah flex-column (lihat bagian 1) */
body > footer.pkf {
  flex: 0 0 auto;
  margin-top: auto;
  margin-bottom: 0;
}

/* =========================================================
   7. AKSESIBILITAS, GERAK, CETAK
========================================================= */
/* font widget aksesibilitas tetap Poppins */
#widget_menu_disabilitas,
#widget_menu_disabilitas * {
  font-family: "Poppins", sans-serif !important;
}

/* tooltip bawaan widget aksesibilitas bersifat absolute dan tersembunyi.
   Tanpa koordinat ia jatuh di bawah footer dan memperpanjang halaman (celah foto).
   Saat dipakai, JavaScript widget mengisi left/top lewat style inline. */
body .tooltip_data_move_mouse_new {
  top: 0;
  left: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
