:root {
  --ink: #10303b;
  --ink2: #4a6670;
  --bg: #eef1ef;
  --bg-alt: #e4ebe8;
  --card: #ffffff;
  --line: #d3dcd9;
  --river: #1d7a8c;
  --river-soft: rgba(29, 122, 140, 0.12);
  --amber: #f2a900;
  --deep: #0d2a33;
  --deep2: #123945;
  --deep-ink: #e8f1f0;
  --mark: #ffe29a;

  --baik-bg: #dcfce7;
  --baik-ink: #166534;
  --baik-dot: #16a34a;

  --sedang-bg: #fef3c7;
  --sedang-ink: #92400e;
  --sedang-dot: #d97706;

  --rusak-bg: #fee2e2;
  --rusak-ink: #991b1b;
  --rusak-dot: #dc2626;

  --shadow-sm: 0 2px 8px rgba(13, 42, 51, 0.06);
  --shadow-md: 0 10px 30px rgba(13, 42, 51, 0.09);

  box-sizing: border-box;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e6efee;
    --ink2: #9db6b8;
    --bg: #0b1b21;
    --bg-alt: #0e2229;
    --card: #12292f;
    --line: #24424a;
    --river: #5cc0d3;
    --river-soft: rgba(92, 192, 211, 0.14);
    --deep: #071418;
    --deep2: #0d252e;
    --mark: #6b5200;

    --baik-bg: rgba(22, 163, 74, 0.22);
    --baik-ink: #86efac;
    --sedang-bg: rgba(245, 158, 11, 0.22);
    --sedang-ink: #fcd34d;
    --rusak-bg: rgba(220, 38, 38, 0.22);
    --rusak-ink: #fca5a5;

    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ink: #e6efee;
  --ink2: #9db6b8;
  --bg: #0b1b21;
  --bg-alt: #0e2229;
  --card: #12292f;
  --line: #24424a;
  --river: #5cc0d3;
  --river-soft: rgba(92, 192, 211, 0.14);
  --deep: #071418;
  --deep2: #0d252e;
  --mark: #6b5200;

  --baik-bg: rgba(22, 163, 74, 0.22);
  --baik-ink: #86efac;
  --sedang-bg: rgba(245, 158, 11, 0.22);
  --sedang-ink: #fcd34d;
  --rusak-bg: rgba(220, 38, 38, 0.22);
  --rusak-ink: #fca5a5;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15.5px/1.58 "Public Sans", system-ui, -apple-system, sans-serif;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4 {
  font-family: "Nunito", "Public Sans", system-ui, sans-serif;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-radius: 6px;
}

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================= HEADER ================= */
header.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--deep);
  color: var(--deep-ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  max-width: 1360px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand img {
  height: 44px;
  width: auto;
  display: block;
  flex: none;
}

.bar-title {
  min-width: 0;
}

.bar small {
  display: block;
  font-size: 11.5px;
  color: #a9c4c6;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar h1 {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.topnav a {
  color: #cfe0e2;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 9px;
  transition: background 0.18s ease, color 0.18s ease;
}

.topnav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.th {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #2c525b;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 17px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.th:hover {
  border-color: var(--river);
  background: rgba(92, 192, 211, 0.12);
}

.th.spinning svg {
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ================= HERO LANDING ================= */
.hero {
  background:
    radial-gradient(circle at 82% 20%, rgba(29, 122, 140, 0.35), transparent 46%),
    radial-gradient(circle at 12% 90%, rgba(242, 169, 0, 0.14), transparent 40%),
    linear-gradient(155deg, var(--deep) 0%, var(--deep2) 100%);
  color: var(--deep-ink);
  padding: 56px 20px 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 36px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #d6eaec;
  margin-bottom: 16px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(242, 169, 0, 0.25);
}

.hero h2 {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-desc {
  margin: 0 0 26px;
  font-size: 16px;
  color: #bdd3d6;
  max-width: 58ch;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  backdrop-filter: blur(6px);
}

.stat-card.stat-baik {
  border-color: rgba(134, 239, 172, 0.35);
  background: rgba(22, 163, 74, 0.13);
}

.stat-card.stat-sedang {
  border-color: rgba(252, 211, 77, 0.35);
  background: rgba(242, 169, 0, 0.14);
}

.stat-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #b7d0d4;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-value {
  font-family: "Nunito", sans-serif;
  font-size: 36px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
}

.stat-sub {
  font-size: 13px;
  color: #b7d0d4;
}

/* ================= SECTIONS ================= */
.section {
  padding: 48px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.eyebrow {
  display: inline-block;
  font-family: "Nunito", sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--river);
  margin-bottom: 4px;
}

.section-head h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
}

.section-sub {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink2);
  max-width: 52ch;
}

/* ================= OVERVIEW PANELS ================= */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 20px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.panel h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 16px;
}

.progress-stacked {
  display: flex;
  height: 18px;
  border-radius: 99px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}

.progress-seg {
  height: 100%;
  transition: width 0.4s ease;
}

.progress-seg.seg-baik { background: var(--baik-dot); }
.progress-seg.seg-sedang { background: var(--sedang-dot); }
.progress-seg.seg-rusak { background: var(--rusak-dot); }

.condition-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.cond-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.15s ease;
}

.cond-box:hover {
  border-color: var(--river);
  transform: translateY(-1px);
}

.cond-box strong {
  font-family: "Nunito", sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.ruas-list {
  display: grid;
  gap: 8px;
}

.ruas-item {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: 600 14px "Public Sans", sans-serif;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.ruas-item:hover {
  border-color: var(--river);
  background: var(--river-soft);
}

.ruas-count {
  flex: none;
  font-family: "Nunito", sans-serif;
  font-size: 13px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--river);
}

/* ================= MAP ================= */
.map-legend {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink2);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.pin-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.pin-baik { background: var(--baik-dot); }
.pin-sedang { background: var(--sedang-dot); }
.pin-rusak { background: var(--rusak-dot); }

.map-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-canvas {
  width: 100%;
  height: 410px;
  z-index: 1;
}

.leaflet-popup-content {
  font-family: "Public Sans", sans-serif;
  margin: 12px 14px;
}

.popup-title {
  font-family: "Nunito", sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #10303b;
  margin-bottom: 4px;
}

.popup-meta {
  font-size: 13px;
  color: #4a6670;
  margin-bottom: 10px;
  line-height: 1.4;
}

.popup-btn {
  display: inline-block;
  background: #0d2a33;
  color: #fff !important;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
}

/* ================= MASTER-DETAIL EXPLORER ================= */
.app {
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 20px;
  align-items: start;
}

.side {
  position: sticky;
  top: 78px;
  max-height: calc(100dvh - 98px);
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.sq {
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.sq input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px 0 42px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234a6670' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") 13px center no-repeat;
  color: var(--ink);
  font: 400 15px "Public Sans", sans-serif;
}

.sq input:focus {
  outline: none;
  border-color: var(--river);
  box-shadow: 0 0 0 3px var(--river-soft);
}

.filter-row {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink2);
  font: 700 12.5px "Nunito", sans-serif;
  padding: 5px 12px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.chip:hover {
  border-color: var(--river);
  color: var(--ink);
}

.chip.active {
  background: var(--deep);
  border-color: var(--deep);
  color: #fff;
}

.ruas-select {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: 500 13.5px "Public Sans", sans-serif;
}

.cnt {
  font-size: 13px;
  color: var(--ink2);
  margin: 10px 2px 0;
}

.list {
  overflow: auto;
  padding: 8px;
  display: grid;
  gap: 6px;
  align-content: start;
}

.it {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  padding: 9px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  border: 1.5px solid transparent;
  background: transparent;
  text-align: left;
  width: 100%;
  cursor: pointer;
  font: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.it:hover {
  background: var(--river-soft);
}

.it.on {
  border-color: var(--river);
  background: var(--river-soft);
}

.th72 {
  width: 74px;
  height: 60px;
  border-radius: 9px;
  background: var(--line) center/cover no-repeat;
  display: grid;
  place-items: center;
  color: var(--ink2);
  flex-shrink: 0;
  border: 1px solid var(--line);
}

.it-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
}

.it b {
  font: 800 14.5px "Nunito", sans-serif;
  line-height: 1.25;
}

.it span {
  display: block;
  font-size: 12.5px;
  color: var(--ink2);
  line-height: 1.38;
}

mark {
  background: var(--mark);
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: "Nunito", sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 2px 9px;
  border-radius: 99px;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.badge-baik {
  background: var(--baik-bg);
  color: var(--baik-ink);
}
.badge-baik::before { background: var(--baik-dot); }

.badge-sedang {
  background: var(--sedang-bg);
  color: var(--sedang-ink);
}
.badge-sedang::before { background: var(--sedang-dot); }

.badge-rusak {
  background: var(--rusak-bg);
  color: var(--rusak-ink);
}
.badge-rusak::before { background: var(--rusak-dot); }

.badge-lg {
  font-size: 13.5px;
  padding: 5px 14px;
}

.empty {
  padding: 28px 18px;
  text-align: center;
  color: var(--ink2);
  font-size: 14px;
}

/* ================= DETAIL SHEET ================= */
.sheet {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.sh {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
}

.sh-logo {
  height: 58px;
  width: auto;
  flex: none;
  margin-top: 2px;
}

.sh-body {
  flex: 1;
  min-width: 0;
}

.sh-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sh small {
  display: block;
  font-family: "Nunito", sans-serif;
  font-size: 12px;
  color: var(--ink2);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.sh h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 900;
}

.kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  margin: 12px 0 0;
  font-size: 14.5px;
}

.kv dt {
  color: var(--ink2);
  font-family: "Nunito", sans-serif;
  font-weight: 700;
}

.kv dd {
  margin: 0;
  font-weight: 600;
}

.band {
  background: var(--deep);
  color: var(--deep-ink);
  font-size: 13.5px;
  font-weight: 800;
  padding: 10px 22px;
  font-family: "Nunito", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ph {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 18px 22px 22px;
}

.ph figure {
  margin: 0;
}

.ph button {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  padding: 0;
  background: var(--bg);
  cursor: zoom-in;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ph button:hover {
  border-color: var(--river);
  transform: translateY(-2px);
}

.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ph figcaption {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
  text-align: center;
  margin-top: 8px;
}

.info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line);
  margin: 0;
  border-top: 1px solid var(--line);
}

.info div {
  background: var(--card);
  padding: 14px 22px;
}

.info dt {
  font-family: "Nunito", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink2);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.info dd {
  margin: 4px 0 0;
  font: 800 17px "Nunito", sans-serif;
  word-break: break-word;
}

.info dd small {
  font: 500 12.5px "Public Sans", sans-serif;
  color: var(--ink2);
  display: block;
  margin-top: 2px;
}

.acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 11px;
  font: 600 14.5px "Public Sans", sans-serif;
  text-decoration: none;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn:hover {
  border-color: var(--river);
  background: var(--river-soft);
}

.btn.p {
  background: var(--amber);
  border-color: var(--amber);
  color: #2b1f00;
  font-weight: 700;
}

.btn.p:hover {
  background: #e09c00;
  border-color: #e09c00;
}

.btn.ghost-light {
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.btn.ghost-light:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
}

.hint {
  padding: 60px 20px;
  text-align: center;
  color: var(--ink2);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}

/* ================= FOOTER ================= */
.footer {
  background: var(--deep);
  color: #b7d0d4;
  padding: 28px 0;
  margin-top: 20px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  height: 40px;
  width: auto;
}

.footer-brand strong {
  display: block;
  color: #ffffff;
  font-family: "Nunito", sans-serif;
  font-size: 15.5px;
}

.footer-brand p {
  margin: 2px 0 0;
  font-size: 13px;
}

.footer-meta {
  font-size: 13px;
  color: #9ab8bc;
}

/* ================= LIGHTBOX ================= */
dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100dvh;
  width: min(1000px, 96vw);
  color: #fff;
}

dialog::backdrop {
  background: rgba(5, 15, 18, 0.9);
}

.lb {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.lb img {
  width: 100%;
  max-height: 78dvh;
  object-fit: contain;
  border-radius: 12px;
  background: #000;
}

.lb .c {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.lb button {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: #0d2a33;
  color: #fff;
  font: 600 14.5px "Public Sans", sans-serif;
  cursor: pointer;
  padding: 0 14px;
  transition: background 0.18s ease;
}

.lb button:hover {
  background: #1a4756;
}

.lb #lbCaption {
  flex: 1;
  text-align: center;
  font-size: 14px;
}

/* ================= TOAST ================= */
.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 90;
  background: var(--deep);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1020px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .app {
    grid-template-columns: 1fr;
  }
  .side {
    position: static;
    max-height: 460px;
  }
  .btn-print,
  #btnPrint {
    display: none !important;
  }
}

@media (hover: none) and (pointer: coarse) {
  .btn-print,
  #btnPrint {
    display: none !important;
  }
}

@media (max-width: 720px) {
  .topnav {
    display: none;
  }
  .top-actions {
    margin-left: auto;
  }
  .bar small {
    display: none;
  }
  .ph {
    grid-template-columns: 1fr;
  }
  .map-canvas {
    height: 320px;
  }
  .sh {
    flex-direction: column;
  }
  .btn-print,
  #btnPrint {
    display: none !important;
  }
}

/* ================= PRINT ================= */
@media print {
  header.top, .hero, #ringkasan, #peta, .side, .acts, .footer, .section-head, .toast {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .section {
    padding: 0;
  }
  .container {
    padding: 0;
    max-width: none;
  }
  .app {
    display: block;
  }
  .sheet {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .band, .info div, .badge {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
