@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;

  /* Ember / fire palette */
  --background: #120807;
  --panel: #1c100f;
  --panel-2: #241413;
  --border: #3a2320;
  --border-strong: #5a332b;
  --text: #f6ece6;
  --muted: #b0968d;
  --accent: #ff5a2c;
  --accent-2: #ffb26b;
  --ember: #ff7a3d;
  --ocean: #1b0e0d;

  /* Kept for compatibility with map layer styling */
  --hover: #ffb26b;
  --selected: #ff5a2c;

  /* Background gambar api (0 = transparan, 1 = penuh) */
  --bg-image-opacity: 0.95;
  /* Blur agar terasa seperti wallpaper, bukan foto tajam. */
  --bg-image-blur: 50px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(1100px 520px at 12% -12%, rgba(255, 90, 44, 0.16), transparent 62%),
    radial-gradient(900px 520px at 102% 0%, rgba(255, 178, 107, 0.08), transparent 55%),
    linear-gradient(180deg, #1b0d0b 0%, #140908 58%, #0f0605 100%);
  background-attachment: fixed;
  font-family: 'Manrope', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Background gambar kebakaran (lapisan paling belakang, tampak wallpaper). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("images/_108761684_gettyimages-1167379763.jpg.png") center /
    cover no-repeat;
  opacity: var(--bg-image-opacity, 0.85);
  filter: blur(var(--bg-image-blur, 14px)) saturate(1.05);
  /* Perbesar sedikit supaya tepi blur tidak terlihat di pinggir layar. */
  transform: scale(1.08);
  transform-origin: center;
  pointer-events: none;
}

/* Overlay gelap + glow ember agar konten tetap terbaca di atas gambar. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 560px at 12% -12%, rgba(255, 90, 44, 0.18), transparent 60%),
    linear-gradient(
      180deg,
      rgba(12, 5, 4, 0.6) 0%,
      rgba(11, 5, 4, 0.76) 60%,
      rgba(9, 4, 3, 0.86) 100%
    );
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

/* --- Topbar --- */

.topbar {
  height: 74px;
  padding: 0 5.5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(36, 20, 19, 0.7), rgba(18, 8, 7, 0));
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--accent);
  background: rgba(255, 90, 44, 0.08);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.5px;
}

img.brand-mark {
  object-fit: contain;
  padding: 3px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.topbar-right,
.map-footer,
.selection-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-right {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.status-separator {
  color: #6a4038;
}

.status-dot,
.hint-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 90, 44, 0.16);
}

/* --- Layout --- */

.map-layout {
  width: min(1440px, 89%);
  margin: 0 auto;
  padding: 46px 0 24px;
}

.map-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

h1 {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.04;
  letter-spacing: -1px;
}

h1 > span {
  color: var(--accent);
}

.subtitle {
  max-width: 46ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.reset-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 11px 16px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.reset-button span {
  font-size: 16px;
}

.reset-button:hover,
#clear-selection:hover {
  color: var(--accent-2);
  border-color: var(--accent);
  background: rgba(255, 90, 44, 0.08);
}

/* --- Map --- */

.map-frame {
  position: relative;
  height: min(65vh, 650px);
  min-height: 390px;
  overflow: hidden;
  background: var(--ocean);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.95);
}

#map {
  width: 100%;
  height: 100%;
  background: var(--ocean);
}

.leaflet-control-zoom a {
  color: #3a1c14 !important;
  background: #f7ede6 !important;
  border-color: #d9b8ac !important;
}

.leaflet-control-zoom a:hover {
  background: #ffe0d0 !important;
}

.leaflet-control-attribution {
  font-size: 9px !important;
  background: rgba(247, 237, 230, 0.82) !important;
  color: #5a332b !important;
}

.leaflet-tooltip.province-label {
  padding: 3px 6px;
  color: #3a1c14;
  background: rgba(250, 240, 233, 0.9);
  border: none;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(20, 8, 6, 0.35);
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.leaflet-tooltip.province-label::before {
  display: none;
}

.map-stamp {
  position: absolute;
  z-index: 500;
  top: 18px;
  left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 15px;
  color: #f6ece6;
  background: rgba(28, 16, 15, 0.82);
  border: 1px solid rgba(255, 140, 90, 0.22);
  border-radius: 10px;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.map-stamp span,
.map-stamp small {
  font-size: 8px;
  letter-spacing: 0.14em;
}

.map-stamp strong {
  font-family: 'Fraunces', serif;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.map-stamp small {
  color: #c9a99f;
}

.map-hint {
  position: absolute;
  z-index: 500;
  right: 15px;
  bottom: 15px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  color: #f0e2db;
  background: rgba(28, 16, 15, 0.85);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  pointer-events: none;
}

.hint-dot {
  width: 6px;
  height: 6px;
}

.hint-separator {
  color: #7a5047;
}

/* --- Selection bar --- */

.selection-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 100px;
  margin-top: 14px;
  padding: 19px 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.selection-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  color: var(--accent);
  background: rgba(255, 90, 44, 0.08);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 24px;
}

.selection-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.selection-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.selection-copy strong {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.selection-copy > span:last-child {
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
}

.selection-actions {
  margin-left: auto;
  flex-shrink: 0;
}

#province-count {
  color: var(--muted);
  font: 10px 'DM Mono', monospace;
}

#clear-selection {
  padding: 8px 13px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.map-footer {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 18px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --- Address search --- */

.address-search {
  margin-top: 14px;
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.search-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.search-eyebrow {
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.search-heading h2 {
  margin: 8px 0 6px;
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.4px;
}

.search-heading h2 span {
  color: var(--accent);
}

.search-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.search-icon {
  color: var(--accent);
  font-size: 34px;
  opacity: 0.9;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 5px 6px 5px 15px;
  background: var(--panel-2);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  transition: border-color 0.18s ease;
}

.search-form:focus-within {
  border-color: var(--accent);
}

.input-icon {
  color: var(--accent);
  font-size: 21px;
}

.search-form input {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 10px 0;
  color: var(--text);
  background: transparent;
  border: none;
  outline: none;
  font: 13px 'Manrope', sans-serif;
}

.search-form input::placeholder {
  color: #8a6a62;
}

.search-form button {
  align-self: stretch;
  padding: 0 20px;
  color: #200d07;
  background: var(--accent);
  border: none;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 800;
  transition: background 0.18s ease;
}

.search-form button:hover {
  background: var(--accent-2);
}

.search-form button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.search-status {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Layer toggles --- */

.layer-toggles {
  position: absolute;
  z-index: 500;
  top: 15px;
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 11px 14px;
  color: #f0e2db;
  background: rgba(28, 16, 15, 0.85);
  border: 1px solid rgba(255, 140, 90, 0.22);
  border-radius: 10px;
  backdrop-filter: blur(6px);
}

.layer-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  user-select: none;
}

.layer-toggle input {
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* --- Legend --- */

.map-legend {
  position: absolute;
  z-index: 500;
  left: 15px;
  bottom: 15px;
  padding: 11px 13px;
  color: #f0e2db;
  background: rgba(28, 16, 15, 0.85);
  border: 1px solid rgba(255, 140, 90, 0.22);
  border-radius: 10px;
  backdrop-filter: blur(6px);
}

.legend-title {
  display: block;
  margin-bottom: 8px;
  color: #c9a99f;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.map-legend ul {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.map-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

.legend-swatch {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 3px;
}

/* --- Risk badge --- */

.risk-badge {
  flex-shrink: 0;
  padding: 6px 12px;
  color: var(--muted);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font: 10px 'DM Mono', monospace;
  letter-spacing: 0.08em;
}

.risk-badge:empty {
  display: none;
}

.risk-badge[data-level="rendah"] {
  color: #b6c98f;
  border-color: #5c6b3c;
  background: rgba(182, 201, 143, 0.08);
}

.risk-badge[data-level="sedang"] {
  color: #f0c266;
  border-color: #8a6a24;
  background: rgba(240, 194, 102, 0.08);
}

.risk-badge[data-level="tinggi"] {
  color: #ffa470;
  border-color: #a85a2c;
  background: rgba(255, 164, 112, 0.1);
}

.risk-badge[data-level="ekstrem"] {
  color: #ff8b76;
  border-color: #94402f;
  background: rgba(255, 90, 44, 0.12);
}

/* --- Hotspot popup --- */

.hotspot-popup h4 {
  margin: 0 0 8px;
  color: #3a1c14;
  font: 700 13px 'Manrope', sans-serif;
}

.hotspot-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 0;
  font-size: 11px;
}

.hotspot-row span {
  color: #7a5047;
}

.hotspot-row strong {
  color: #3a1c14;
  font-weight: 700;
}

/* --- Notifikasi browser (Find a Place) --- */

.notify-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.notify-toggle {
  padding: 9px 16px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.notify-toggle[data-state="on"] {
  color: var(--accent-2);
  background: rgba(255, 90, 44, 0.14);
  border-color: var(--accent);
}

.notify-toggle[data-state="blocked"] {
  color: #ffa470;
  border-color: #a85a2c;
  cursor: not-allowed;
}

.notify-toggle:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.notify-hint {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.notify-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: min(420px, calc(100vw - 36px));
  padding: 14px 16px;
  color: var(--text);
  background: rgba(28, 16, 15, 0.96);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  animation: place-status-in 180ms ease-out;
}

.notify-banner[hidden] {
  display: none;
}

.notify-banner-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notify-banner-text strong {
  font-size: 13px;
}

.notify-banner-text span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.notify-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.notify-enable {
  padding: 8px 14px;
  color: #200d07;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.notify-enable:hover {
  background: var(--accent-2);
}

.notify-dismiss {
  padding: 8px 14px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.notify-dismiss:hover {
  color: var(--text);
  border-color: var(--accent);
}

@media (max-width: 640px) {
  .notify-banner {
    right: 10px;
    left: 10px;
    bottom: 10px;
    flex-direction: column;
    align-items: stretch;
  }

  .notify-banner-actions {
    flex-direction: row;
  }

  .notify-banner-actions button {
    flex: 1;
  }
}

/* --- Place status popup (di luar peta, tampil ke user) --- */

.place-status {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.place-status[hidden] {
  display: none;
}

.place-status-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 4, 3, 0.66);
  backdrop-filter: blur(3px);
}

.place-status-card {
  position: relative;
  width: min(440px, 100%);
  padding: 26px 26px 22px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-top: 4px solid var(--accent);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  animation: place-status-in 180ms ease-out;
}

@keyframes place-status-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.place-status-card[data-level="aman"] {
  border-top-color: #8fbf6a;
}

.place-status-card[data-level="asap"] {
  border-top-color: #e0973f;
}

.place-status-card[data-level="siaga"] {
  border-top-color: #f0c266;
}

.place-status-card[data-level="evakuasi"] {
  border-top-color: #ff8b4d;
}

.place-status-card[data-level="larikan_diri"] {
  border-top-color: #ff3b1f;
}

.place-status-eyebrow {
  font: 500 9px 'DM Mono', monospace;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.place-status-title {
  margin: 8px 0 6px;
  font-family: 'Fraunces', serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.place-status-card[data-level="aman"] .place-status-title {
  color: #a9d38a;
}

.place-status-card[data-level="asap"] .place-status-title {
  color: #e8b269;
}

.place-status-card[data-level="siaga"] .place-status-title {
  color: #f0c266;
}

.place-status-card[data-level="evakuasi"] .place-status-title {
  color: #ffa470;
}

.place-status-card[data-level="larikan_diri"] .place-status-title {
  color: #ff6a4d;
}

.place-status-desc {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
}

.place-status-place {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.place-status-place:empty {
  display: none;
}

.place-status-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0 0 16px;
}

.place-status-metrics div {
  padding: 10px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.place-status-metrics dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.place-status-metrics dd {
  margin: 0;
  font: 500 13px 'DM Mono', monospace;
}

.place-status-smoke-note {
  margin: 0 0 12px;
  padding: 9px 11px;
  font-size: 11px;
  line-height: 1.45;
  color: #f0c266;
  background: rgba(224, 151, 63, 0.12);
  border: 1px solid rgba(224, 151, 63, 0.3);
  border-radius: 9px;
}

.place-status-smoke-note[hidden] {
  display: none;
}

.place-status-smoke-note[data-level="dense"] {
  color: #ffa470;
  background: rgba(255, 90, 44, 0.14);
  border-color: rgba(255, 90, 44, 0.35);
}

.place-status-metrics dd[data-band="hijau"] {
  color: #a9d38a;
}

.place-status-metrics dd[data-band="kuning"] {
  color: #f0c266;
}

.place-status-metrics dd[data-band="merah"] {
  color: #ff6a4d;
}

.place-status-sim {
  display: flex;
  gap: 10px;
  margin: 0 0 10px;
}

#simulate-button {
  flex: 1;
  padding: 11px 14px;
  color: #200d07;
  background: var(--accent);
  border: none;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
  transition: background 0.18s ease;
}

#simulate-button:hover {
  background: var(--accent-2);
}

.simulate-clear {
  padding: 11px 14px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.simulate-clear:hover {
  color: var(--accent-2);
  border-color: var(--accent);
}

.simulate-status {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.report-status[data-state="verified"] {
  color: #a9d38a;
}

.report-status[data-state="unverified"] {
  color: var(--muted);
}

.place-status-note {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.place-status-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.place-status-close:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

@media (max-width: 520px) {
  .place-status-metrics {
    grid-template-columns: 1fr;
  }
}

/* --- Responsive --- */

@media (max-width: 700px) {
  .topbar {
    height: 64px;
    padding: 0 5%;
  }

  .topbar-right {
    font-size: 10px;
  }

  .map-layout {
    width: 92%;
    padding-top: 32px;
  }

  .map-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  h1 {
    font-size: 38px;
  }

  .map-frame {
    height: 62vh;
    min-height: 390px;
    border-radius: 12px;
  }

  .map-stamp {
    top: 10px;
    left: 10px;
    padding: 9px 11px;
  }

  .map-stamp strong {
    font-size: 21px;
  }

  .map-stamp span,
  .map-stamp small {
    font-size: 7px;
  }

  .map-hint {
    right: 8px;
    bottom: 8px;
    gap: 6px;
    font-size: 9px;
  }

  .layer-toggles {
    top: 10px;
    right: 10px;
    padding: 8px 10px;
    gap: 7px;
  }

  .map-legend {
    left: 8px;
    bottom: 8px;
    padding: 8px 10px;
  }

  .selection-bar {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 16px;
    gap: 12px;
  }

  .selection-actions {
    width: 100%;
    margin-left: 54px;
    flex-wrap: wrap;
  }

  .map-footer {
    line-height: 1.7;
  }

  .leaflet-tooltip.province-label {
    font-size: 8px;
  }
}

@media (max-width: 500px) {
  .address-search {
    padding: 18px;
  }

  .search-form {
    flex-wrap: wrap;
    padding: 8px;
  }

  .search-form input {
    flex-basis: calc(100% - 50px);
  }

  .search-form button {
    width: 100%;
    min-height: 42px;
  }
}

/* --- Content sections (below the map/search) --- */

.content-section {
  margin-top: 52px;
}

.section-head {
  max-width: 62ch;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 10px 0 8px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.5px;
}

.section-head h2 span {
  color: var(--accent);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.disclaimer {
  margin-top: 18px;
  padding-left: 13px;
  color: var(--muted);
  border-left: 2px solid var(--border-strong);
  font-size: 11.5px;
  line-height: 1.65;
}

/* Statistik */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat-card {
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin: 9px 0 5px;
  font-family: 'Fraunces', serif;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.stat-card small {
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
}

/* Accordion (Panduan & FAQ) */

.accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.acc {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.acc summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
}

.acc summary::-webkit-details-marker {
  display: none;
}

.acc-index {
  flex-shrink: 0;
  color: var(--accent);
  font: 500 12px 'DM Mono', monospace;
}

.acc-title {
  flex: 1;
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 600;
}

.acc-arrow {
  flex-shrink: 0;
  width: 18px;
  color: var(--accent-2);
  font-size: 19px;
  text-align: center;
  transition: transform 0.2s ease;
}

.acc[open] .acc-arrow {
  transform: rotate(45deg);
}

.acc-body {
  padding: 0 20px 18px 50px;
}

.acc-body ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.acc-body li::marker {
  color: var(--accent);
}

.acc-text {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* Evakuasi: kompas + aturan */

.smoke-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 30px;
  align-items: center;
}

.compass-wrap {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.compass {
  display: block;
  width: 100%;
  height: auto;
}

.compass-ring {
  fill: rgba(255, 90, 44, 0.05);
  stroke: var(--border-strong);
  stroke-width: 1.5;
}

.compass-ring-inner {
  fill: none;
  stroke: rgba(255, 178, 107, 0.16);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.compass-cardinal {
  fill: var(--muted);
  font: 500 12px 'DM Mono', monospace;
  text-anchor: middle;
}

.zone-safe {
  fill: rgba(182, 201, 143, 0.18);
  stroke: #6c8050;
  stroke-width: 1.2;
}

.zone-smoke {
  fill: rgba(255, 77, 46, 0.2);
  stroke: #a8482f;
  stroke-width: 1.2;
}

.zone-label {
  fill: #dbe8c6;
  font: 700 10px 'DM Mono', monospace;
  letter-spacing: 0.05em;
  text-anchor: middle;
}

.zone-label-smoke {
  fill: #ffc2b0;
}

.wind-line {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 6 5;
}

.wind-label {
  fill: var(--accent-2);
  font: 700 9px 'DM Mono', monospace;
  letter-spacing: 0.14em;
  text-anchor: middle;
}

.rule-list {
  counter-reset: rule;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rule-list li {
  position: relative;
  padding-left: 36px;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.65;
}

.rule-list li::before {
  counter-increment: rule;
  content: counter(rule);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  color: var(--accent-2);
  background: rgba(255, 90, 44, 0.12);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  font: 700 10px 'DM Mono', monospace;
}

/* Checklist */

.checklist {
  padding: 22px 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.checklist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

#checklist-progress {
  color: var(--accent-2);
  font: 600 12px 'DM Mono', monospace;
  letter-spacing: 0.06em;
}

#checklist-reset {
  padding: 6px 13px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  transition: border-color 0.18s ease, color 0.18s ease;
}

#checklist-reset:hover {
  color: var(--accent-2);
  border-color: var(--accent);
}

#checklist-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#checklist-list label {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}

#checklist-list input {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

#checklist-list input:checked + span {
  color: var(--muted);
  text-decoration: line-through;
}

/* Lapor titik api */

.report-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.report-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.report-form input,
.report-form textarea {
  padding: 12px 14px;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  outline: none;
  font: 13px 'Manrope', sans-serif;
  letter-spacing: normal;
  text-transform: none;
  transition: border-color 0.18s ease;
}

.report-form input:focus,
.report-form textarea:focus {
  border-color: var(--accent);
}

.report-form textarea {
  resize: vertical;
}

.report-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.report-status {
  color: var(--muted);
  font-size: 12px;
}

#report-submit {
  padding: 12px 24px;
  color: #200d07;
  background: var(--accent);
  border: none;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
  transition: background 0.18s ease;
}

#report-submit:hover {
  background: var(--accent-2);
}

#report-submit:disabled {
  cursor: wait;
  opacity: 0.6;
}

/* Kontak darurat */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.contact-card {
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.contact-card .label {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-number {
  display: block;
  margin: 7px 0 6px;
  color: var(--accent);
  font-family: 'Fraunces', serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.contact-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

/* --- Berita terbaru --- */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  color: inherit;
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow:
    0 16px 34px rgba(10, 4, 3, 0.5),
    0 0 0 1px rgba(255, 90, 44, 0.14);
}

.news-source {
  color: var(--accent-2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.news-title {
  color: var(--text);
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.news-summary {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.news-time {
  margin-top: auto;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
}

.news-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
}

/* --- Animasi hover (smooth) --- */

/* Kartu yang "terangkat" halus saat disentuh kursor. */
.stat-card,
.acc,
.contact-card,
.compass-wrap {
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
  will-change: transform;
}

/* Panel besar: cukup beri aksen border + glow, tanpa bergeser. */
.address-search,
.selection-bar,
.checklist,
.report-form,
.map-frame {
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.stat-card:hover,
.acc:hover,
.contact-card:hover,
.compass-wrap:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow:
    0 16px 34px rgba(10, 4, 3, 0.5),
    0 0 0 1px rgba(255, 90, 44, 0.14);
}

.address-search:hover,
.selection-bar:hover,
.checklist:hover,
.report-form:hover {
  border-color: var(--border-strong);
  box-shadow:
    0 12px 30px rgba(10, 4, 3, 0.4),
    0 0 0 1px rgba(255, 90, 44, 0.1);
}

.map-frame:hover {
  border-color: var(--border-strong);
  box-shadow:
    0 18px 44px rgba(10, 4, 3, 0.5),
    0 0 0 1px rgba(255, 90, 44, 0.16);
}

/* Aksen mikro saat hover. */
.acc summary {
  transition: color 0.25s ease;
}

.acc:hover .acc-title,
.acc:hover .acc-index {
  color: var(--accent-2);
}

.stat-card strong,
.contact-number {
  transition: color 0.3s ease;
}

.stat-card:hover strong,
.contact-card:hover .contact-number {
  color: var(--accent-2);
}

.rule-list li {
  transition: transform 0.25s ease, color 0.25s ease;
}

.rule-list li:hover {
  color: #fff;
  transform: translateX(5px);
}

#checklist-list label {
  transition: transform 0.2s ease, color 0.2s ease;
}

#checklist-list label:hover {
  color: var(--accent-2);
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .stat-card,
  .acc,
  .contact-card,
  .compass-wrap,
  .address-search,
  .selection-bar,
  .checklist,
  .report-form,
  .map-frame,
  .rule-list li,
  #checklist-list label {
    transition: none;
  }

  .stat-card:hover,
  .acc:hover,
  .contact-card:hover,
  .compass-wrap:hover,
  .rule-list li:hover,
  #checklist-list label:hover {
    transform: none;
  }
}

@media (max-width: 900px) {
  .stat-grid,
  .contact-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .smoke-layout {
    grid-template-columns: 1fr;
  }

  .compass-wrap {
    max-width: 320px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .content-section {
    margin-top: 40px;
  }

  .stat-grid,
  .contact-grid,
  .report-grid,
  .news-grid,
  #checklist-list {
    grid-template-columns: 1fr;
  }

  .acc-body {
    padding-left: 20px;
  }
}

