:root {
  --primary: #c0392b;
  --primary-dark: #922b21;
  --accent: #f39c12;
  --accent2: #2980b9;
  --bg: #f4f6f8;
  --card-bg: #ffffff;
  --text: #1a1a2e;
  --text-muted: #5d6d7e;
  --border: #dde1e7;
  --nav-bg: #1a1a2e;
  --nav-text: #ffffff;
  --ticker-bg: #c0392b;
  --stat-banjir: #2980b9;
  --stat-longsor: #8e44ad;
  --stat-kebakaran: #e74c3c;
  --stat-gempa: #f39c12;
  --stat-angin: #27ae60;
  --stat-lainnya: #7f8c8d;
  --shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
  --radius: 12px;
  --glass-bg: rgba(255, 255, 255, 0.75);
}
[data-bs-theme="dark"] {
  --bg: #0d0f1a;
  --card-bg: #151829;
  --text: #e8eaf6;
  --text-muted: #8892b0;
  --border: #232640;
  --nav-bg: #080a14;
  --shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  --glass-bg: rgba(21, 24, 41, .75);
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
  font-family: "IBM Plex Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  transition:
    background 0.3s,
    color 0.3s;
}
body {
  display: flex;
  flex-direction: column;
  padding-top: var(--header-height);
}

/* ===== STICKY HEADER WRAPPER ===== */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
}
body {
  padding-top: var(--header-height, 100px);
}

/* ===== GLOBAL FORM ELEMENTS ===== */
:root {
  --input-bg: var(--card-bg);
  --input-border: var(--border);
  --input-radius: 8px;
  --input-height: 36px;
  --input-padding-x: 12px;
  --input-padding-y: 6px;
  --input-font-size: 0.83rem;
  --input-focus-color: var(--primary);
  --input-focus-shadow: 0 0 0 3px rgba(192,57,43,0.15);
  --input-transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

/* ---- Text, number, email, password, search, url, tel, date, time, datetime-local, textarea ---- */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
textarea,
select {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  height: var(--input-height);
  padding: var(--input-padding-y) var(--input-padding-x);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: var(--input-font-size);
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--input-radius);
  outline: none;
  transition: var(--input-transition);
  box-shadow: none;
  line-height: 1.45;
}
textarea {
  height: auto;
  min-height: 90px;
  resize: vertical;
}
input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
textarea:focus,
select:focus {
  border-color: var(--input-focus-color);
  box-shadow: var(--input-focus-shadow);
}
input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}
input:disabled,
textarea:disabled,
select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

a.clean {
  text-decoration: none;
}

/* ---- Select: custom arrow ---- */
select {
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235D6D7E' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}
[data-bs-theme="dark"] select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238892b0' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
select[multiple] {
  height: auto;
  padding-right: var(--input-padding-x);
  background-image: none;
}

/* ---- Checkbox & Radio ---- */
input[type="checkbox"],
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  min-width: 17px;
  border: 1.5px solid var(--input-border);
  background: var(--input-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--input-transition);
  outline: none;
  vertical-align: middle;
  position: relative;
  padding: 0;
}
input[type="checkbox"] {
  border-radius: 5px;
}
input[type="radio"] {
  border-radius: 50%;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}
/* Checkmark */
input[type="checkbox"]:checked::after {
  content: '';
  display: block;
  width: 4px;
  height: 8px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}
/* Radio dot */
input[type="radio"]:checked::after {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
}
input[type="checkbox"]:focus,
input[type="radio"]:focus {
  border-color: var(--primary);
  box-shadow: var(--input-focus-shadow);
}
input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---- Range ---- */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  background: var(--border);
  border-radius: 10px;
  outline: none;
  cursor: pointer;
  border: none;
  padding: 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  background: var(--primary);
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.15s;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  background: var(--primary);
  border-radius: 50%;
  border: 2px solid #fff;
  cursor: pointer;
}

/* ---- File input ---- */
input[type="file"] {
  padding: 6px var(--input-padding-x);
  height: auto;
  background: var(--input-bg);
  border: 1px dashed var(--input-border);
  border-radius: var(--input-radius);
  font-size: var(--input-font-size);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--input-transition);
}
input[type="file"]:hover {
  border-color: var(--primary);
}
input[type="file"]::file-selector-button {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.78rem;
  padding: 4px 12px;
  margin-right: 10px;
  border: none;
  border-radius: 6px;
  background: rgba(192,57,43,0.1);
  color: var(--primary);
  cursor: pointer;
  transition: background 0.15s;
}
input[type="file"]::file-selector-button:hover {
  background: rgba(192,57,43,0.2);
}

/* ---- Label ---- */
label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  display: inline-block;
  margin-bottom: 4px;
  cursor: default;
}
label:has(+ input[type="checkbox"]),
label:has(+ input[type="radio"]) {
  margin-bottom: 0; cursor: pointer;
}

/* ---- Input group (icon + input) ---- */
.input-icon-wrap {
  position: relative;
}
.input-icon-wrap input {
  padding-left: 36px;
}
.input-icon-wrap .input-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

/* ---- Width helpers ---- */
.input-auto {
  width: auto;
}
.input-sm {
  height: 30px;
  font-size: 0.75rem;
  padding: 3px 10px;
}
.input-lg {
  height: 44px;
  font-size: 0.92rem;
  padding: 8px 16px;
}

/* ---- Inline label+checkbox/radio row ---- */
.form-check-custom {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.form-check-custom label {
  margin-bottom: 0;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
}

/* ===== END GLOBAL FORM ELEMENTS ===== */

.aspect-1 {
  aspect-ratio: 1;
}

.aspect-2 {
  aspect-ratio: 2;
}

.aspect-4-3 {
  aspect-ratio: 4 / 3;
}

.aspect-5-4 {
  aspect-ratio: 5 / 4;
}

.aspect-12-5 {
  aspect-ratio: 12 / 5;
}

.aspect-16-9 {
  aspect-ratio: 16 / 9;
}

.loader-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  transition: opacity .3s ease, visibility .3s ease;
}

.loader-overlay.hide {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 65px;
  aspect-ratio: 1;
  position: relative;
}
.loader-spinner:before,
.loader-spinner:after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  aspect-ratio: 1;
  border-radius: 50px;
  box-shadow: 0 0 0 3px inset var(--primary);
  animation: l5 1s infinite linear alternate;
}
.loader-spinner:after {
  inset: auto 0 0 auto;
  animation-delay: -1s;
}
@keyframes l5 {
  0% {
    width: 20px;
  }
  100% {
    width: 50px;
  }
}

.loader-text {
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--border);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  margin-top: 1rem;
}
.loader-svg svg {
  transform: scale(1.5);
  transform-origin: center;
  color: var(--border);
}

/* ===== TICKER ===== */
.alert-ticker {
  background: var(--ticker-bg);
  color: #fff;
  padding: 8px 0;
  overflow: hidden;
}
.ticker-label {
  background: #8b0000;
  padding: 4px 16px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1rem;
  letter-spacing: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-label span {
  animation: ticker-blink 1s infinite;
}
.ticker-wrap {
  overflow: hidden;
  flex: 1;
}
.ticker-content {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
  padding-left: 100%;
  will-change: transform;
}
.ticker-content img {
  height: 20px;
}
@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}
@keyframes ticker-blink {
  20% {
    opacity: 1;
  }
  50% {
    opacity: .1;
  }
  100% {
    opacity: 1;
  }
}

/* ===== NAVBAR ===== */
.navbar-custom {
  background: var(--nav-bg);
  padding: 0;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}
.navbar-brand-area {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  flex: 1;
}
.logo-shield {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  flex-shrink: 0;
}
.logo-shield img {
  width: 100%;
  height: 100%;
}
.brand-text {
  flex-grow: 1;
  line-height: 1.1;
}
.brand-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  color: #fff;
  letter-spacing: 2px;
}
.brand-sub {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.brand-button {
  display: none !important;
}
.nav-link-custom {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 20px 16px !important;
  letter-spacing: 0.5px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 7px;
}
.nav-link-custom:hover,
.nav-link-custom.active {
  color: #fff !important;
  border-bottom-color: var(--primary);
  background: linear-gradient(to top, rgba(192,57,43,0.2) 0%, transparent 40%);
  text-decoration: none !important;
  cursor: pointer;
}

/* ===== NAVBAR DROPDOWN ===== */
.nav-item-dropdown { position: relative; }
.nav-link-custom.has-dropdown { gap: 5px; }
.nav-link-custom.has-dropdown .dropdown-caret {
  font-size: 0.6rem;
  opacity: 0.6;
  transition: transform 0.22s, opacity 0.2s;
  margin-left: 1px;
}
.nav-item-dropdown:hover .dropdown-caret,
.nav-item-dropdown.open .dropdown-caret { opacity: 1; transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0px - 2px);
  left: 0;
  min-width: 230px;
  background: var(--nav-bg);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 3px solid var(--primary);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  z-index: 1200;
  padding: 6px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.22s ease;
}
.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown.open .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Dropdown section label */
.dropdown-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.3);
  padding: 10px 16px 4px;
}
.dropdown-label:first-child { padding-top: 6px; }
.dropdown-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 6px 0;
}

/* Dropdown item */
.dropdown-item-custom {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 0.83rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}
.dropdown-item-custom:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
  padding-left: 20px;
}
.dropdown-item-custom .item-icon {
  font-size: 1rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}
.dropdown-item-custom .item-text { flex: 1; }
.dropdown-item-custom .item-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
  font-family: 'IBM Plex Mono', monospace;
  background: rgba(192,57,43,0.25);
  color: #ff8a80;
  border: 1px solid rgba(192,57,43,0.35);
}
.dropdown-item-custom .item-badge.badge-new {
  background: rgba(39,174,96,0.2);
  color: #69db7c;
  border-color: rgba(39,174,96,0.35);
}
.dropdown-item-custom .item-sub {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  display: block;
  margin-top: 1px;
  font-weight: 400;
}
.dropdown-item-custom.item-active {
  color: #fff;
  background: rgba(192,57,43,0.12);
  border-left: 3px solid var(--primary);
  padding-left: 13px;
}
.dropdown-item-custom.item-active:hover { padding-left: 17px; }

/* Wide dropdown (2 col) */
.nav-dropdown.dropdown-wide {
  min-width: 420px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 8px;
  gap: 0;
}
.nav-dropdown.dropdown-wide .dropdown-col {
  padding: 4px 0;
}
.nav-dropdown.dropdown-wide .dropdown-col:first-child {
  border-right: 1px solid rgba(255,255,255,0.08);
  padding-right: 4px;
}
.nav-dropdown.dropdown-wide .dropdown-col:last-child {
  padding-left: 4px;
}
.nav-dropdown.dropdown-wide .dropdown-label {
  padding: 6px 12px 4px;
}
.nav-dropdown.dropdown-wide .dropdown-item-custom {
  border-radius: 6px;
  padding: 8px 12px;
}
.nav-dropdown.dropdown-wide .dropdown-item-custom:hover { padding-left: 14px; }

/* Right-aligned dropdown (for last items) */
.nav-dropdown.dropdown-right { left: auto; right: 0; }

/* Keep dropdown open on parent focus */
.nav-link-custom.has-dropdown:focus + .nav-dropdown { opacity:1; pointer-events:auto; transform:translateY(0); }
@media (max-width: 991px) {
  /* Sembunyikan hamburger & collapse di mobile — diganti bottom tab */
  .navbar-toggler-custom { display: none !important; }
  #mainNav { display: none !important; }
}

/* Mobile menu — float over content, don't push layout */
@media (max-width: 991px) {
  /* Sembunyikan hamburger & collapse di mobile — diganti bottom tab */
  .navbar-toggler-custom {
    display: none !important;
  }
  #mainNav {
    display: none !important;
  }
  .brand-button {
    display: block !important;
  }
}

/* ===== BOTTOM TAB BAR (mobile only) ===== */
.bottom-tab-bar {
  display: none;
}
@media (max-width: 991px) {
  .bottom-tab-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: var(--nav-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
    height: 64px;
    align-items: stretch;
  }
  .tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none !important;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 8px 4px 10px;
    border-top: 2px solid transparent;
    transition: all 0.18s;
    position: relative;
    cursor: pointer;
  }
  .tab-item.active {
    color: #fff;
    border-top-color: var(--primary);
  }
  .tab-item.active .tab-icon {
    background: rgba(192, 57, 43, 0.18);
    transform: scale(1.08);
  }
  .tab-item:hover {
    color: rgba(255, 255, 255, 0.8);
  }
  .tab-icon {
    font-size: 1.35rem;
    width: 38px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    transition: all 0.18s;
    line-height: 1;
  }
  .tab-label {
    line-height: 1;
    text-align: center;
  }
  /* Slot kosong di tengah untuk FAB */
  .tab-fab-slot {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  /* FAB button — menonjol ke atas */
  .tab-fab-btn {
    position: absolute;
    top: -20px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--nav-bg);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(192,57,43,0.55);
    transition: transform 0.22s cubic-bezier(0.34,1.3,0.64,1), background 0.18s, box-shadow 0.18s;
    z-index: 10;
  }
  .tab-fab-btn:hover { background: var(--primary-dark); box-shadow: 0 6px 24px rgba(192,57,43,0.7); }
  .tab-fab-btn.open {
    transform: rotate(45deg);
    background: #444;
    box-shadow: 0 4px 18px rgba(0,0,0,0.4);
  }
  .tab-fab-btn .fab-icon { transition: transform 0.22s; display: flex; align-items:center; justify-content:center; }
  /* Body padding bawah agar konten tidak ketutup tab bar */
  body {
    padding-bottom: 64px;
  }
  footer {
    padding: 30px 0 90px !important;
  }

  .tab-em {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: var(--primary);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none !important;
    font-size: 0.6rem;
    font-weight: bold;
    letter-spacing: 0.3px;
    padding: 8px 15px 10px 15px;
    border-radius: 25px;
    transition: all 0.18s;
    position: relative;
    cursor: pointer;
    position: absolute;
    bottom: 40%;

    transition: all 0.2s;

    box-shadow: 0 0 0 0 rgb(255, 255, 255);
    transform: scale(1);
    animation: em-pulse 1s infinite;
  }
  .tab-em .tab-icon {
    background: rgba(192, 57, 43, 0.18);
    transform: scale(1.2);
  }
}
.dark-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.dark-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}
.em-button {
  background: var(--primary);
  border: none;
  color: #fff;
  font-weight: bold;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;

  box-shadow: 0 0 0 0 rgba(0, 0, 0, 1);
  transform: scale(1);
  animation: em-pulse 1s infinite;
}
.em-button:hover {
  background: rgba(192, 57, 43, 0.8);
}
@keyframes em-pulse {
  0% {
    /* transform: scale(0.95); */
    box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.9);
  }
  70% {
    /* transform: scale(1); */
    box-shadow: 0 0 0 10px rgba(192, 57, 43, 0);
  }
  100% {
    /* transform: scale(0.95); */
    box-shadow: 0 0 0 0 rgba(192, 57, 43, 0);
  }
}

/* ===== ACTION SHEET ===== */
.action-sheet-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  z-index: 1049;
  transition: background 0.3s;
}
.action-sheet-overlay.open {
  display: block;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  z-index: 1051;
}
.action-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1060;
  background: var(--nav-bg);
  border-radius: 20px 20px 0 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.45);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32,0.72,0,1);
}
.action-sheet.open {
  transform: translateY(0);
}
/* Area scrollable di dalam action sheet */
.action-sheet-scroll {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-bottom: 80px; /* ruang untuk tab bar */
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.action-sheet-scroll::-webkit-scrollbar { width: 0; }
/* Handle dan title tidak ikut scroll */
.action-sheet-sticky {
  flex-shrink: 0;
}
.action-sheet-handle {
  display: flex;
  justify-content: center;
  padding: 12px 4px;
}
.action-sheet-handle::after {
  content: '';
  width: 40px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
}
.action-sheet-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  padding: 4px 20px 8px;
}
.action-sheet-section {
  padding: 0 12px 8px;
}
.action-sheet-section-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.3);
  padding: 8px 8px 4px;
}
.action-sheet-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 8px 8px;
}
.action-sheet-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 12px;
  border-radius: 10px;
  text-decoration: none !important;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.action-sheet-item.em {
  background-color: var(--primary);
  
  transition: all 0.2s;

  box-shadow: 0 0 0 0 rgb(255, 255, 255);
  transform: scale(1);
  animation: em-pulse 1s infinite;
}
.action-sheet-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.action-sheet-item:active { background: rgba(255,255,255,0.12); }
.action-sheet-item.active { background: rgba(192,57,43,0.12); border-bottom: 3px solid var(--primary); }
.as-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: background 0.15s;
}
.action-sheet-item:hover .as-item-icon { background: rgba(255,255,255,0.14); }
.as-item-body { flex: 1; min-width: 0; }
.as-item-label { font-size: 0.88rem; font-weight: 600; color: inherit; }
.as-item-sub { font-size: 0.7rem; color: rgba(255,255,255,0.4); margin-top: 1px; }
.as-item-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  font-family: 'IBM Plex Mono', monospace;
  background: rgba(192,57,43,0.25);
  color: #ff8a80;
  border: 1px solid rgba(192,57,43,0.35);
  flex-shrink: 0;
}
.as-item-badge.badge-new {
  background: rgba(39,174,96,0.2);
  color: #69db7c;
  border-color: rgba(39,174,96,0.35);
}
/* Dark mode toggle row di action sheet */
.as-dark-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.as-dark-toggle:hover { background: rgba(255,255,255,0.08); }
.as-toggle-pill {
  width: 44px; height: 24px;
  border-radius: 12px;
  background: rgba(255,255,255,0.15);
  position: relative;
  transition: background 0.22s;
  flex-shrink: 0;
}
.as-toggle-pill.on { background: var(--primary); }
.as-toggle-knob {
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  transition: transform 0.22s cubic-bezier(0.34,1.3,0.64,1);
}
.as-toggle-pill.on .as-toggle-knob { transform: translateX(20px); }
.dark-toggle {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.dark-toggle:hover { background: rgba(255,255,255,0.2); }

/* ===== HERO BANNER ===== */
.hero-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  padding: 40px 0 30px;
  position: relative;
  /* overflow: hidden; */
}
.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(192, 57, 43, 0.04) 40px,
    rgba(192, 57, 43, 0.04) 80px
  );
}
.hero-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  letter-spacing: 3px;
  line-height: 1;
}
.hero-sub {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  margin-top: 6px;
  font-family: "IBM Plex Mono", monospace;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(192, 57, 43, 0.3);
  border: 1px solid rgba(192, 57, 43, 0.5);
  color: #ff8a80;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-family: "IBM Plex Mono", monospace;
  margin-bottom: 10px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background: #ff4444;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}
.live-clock {
  font-family: "IBM Plex Mono", monospace;
  font-size: 2rem;
  color: #fff;
  font-weight: 600;
}
.live-date {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}
.live-timezone {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 4px;
}

/* ===== STAT SUMMARY CARDS ===== */
.stat-strip {
  background: var(--primary);
  padding: 0;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  flex: 1;
}
.stat-item:last-child {
  border-right: none;
}
.stat-icon {
  /* font-size: 2rem; */
  opacity: 0.9;
}
.stat-icon img {
  height: 2.5rem;
}
.stat-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.2rem;
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  opacity: 0.8;
  letter-spacing: 0.5px;
}

/* ===== SECTION TITLES ===== */
section {
  padding: 40px 0;
}
.sec-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.8rem;
  letter-spacing: 2px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.sec-title::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 28px;
  background: var(--primary);
  border-radius: 3px;
  flex-shrink: 0;
}
.sec-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-family: "IBM Plex Mono", monospace;
}

/* ===== CARDS ===== */
.card-custom {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  overflow: hidden;
}
.card-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ===== KEJADIAN BENCANA TABLE ===== */
.table-bencana {
  font-size: 0.83rem;
}
.table-bencana thead th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: none;
  padding: 12px 14px;
}
.table-bencana tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.table-bencana tbody tr:hover {
  background: rgba(192, 57, 43, 0.04);
}
.table-bencana td {
  padding: 10px 14px;
  vertical-align: middle;
  color: var(--text);
}
.badge-bencana {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-bencana.badge-abrasi {
  background: rgba(14,165,233,0.15);
  color: #0ea5e9;
}
.badge-bencana.badge-banjir {
  background: rgba(37,99,235,0.15);
  color: #2563eb;
}
.badge-bencana.badge-banjir-bandang {
  background: rgba(29,78,216,0.15);
  color: #1d4ed8;
}
.badge-bencana.badge-cuaca-ekstrim {
  background: rgba(250,204,21,0.15);
  color: #ca8a04;
}
.badge-bencana.badge-epidemi-wabah {
  background: rgba(29,225,101,0.15);
  color: #e11d48;
}
.badge-bencana.badge-gempa {
  background: rgba(107,114,128,0.15);
  color: #6b7280;
}
.badge-bencana.badge-karhutla {
  background: rgba(220,38,38,0.15);
  color: #dc2626;
}
.badge-bencana.badge-kekeringan {
  background: rgba(245,158,11,0.15);
  color: #f59e0b;
}
.badge-bencana.badge-erupsi {
  background: rgba(124,45,18,0.15);
  color: #7c2d12;
}
.badge-bencana.badge-tanah-longsor {
  background: rgba(146,64,14,0.15);
  color: #92400e;
}
.badge-bencana.badge-tsunami {
  background: rgba(8,145,178,0.15);
  color: #0891b2;
}
.badge-bencana.badge-lain-lain {
  background: rgba(75,85,99,0.15);
  color: #4b5563;
}
.badge-bencana.badge-tidak-diketahui {
  background: rgba(156,163,175,0.15);
  color: #6b7280;
}

.badge-bencana.badge-status-pelaporan {
  background: rgba(59,130,246,0.15);
  color: #2563eb;
}
.badge-bencana.badge-status-verifikasi {
  background: rgba(245,158,11,0.15);
  color: #d97706;
}
.badge-bencana.badge-status-penanganan {
  background: rgba(239,68,68,0.15);
  color: #dc2626;
}
.badge-bencana.badge-status-selesai {
  background: rgba(22,163,74,0.15);
  color: #15803d;
}
.badge-bencana.badge-status-ditolak {
  background: rgba(107,114,128,0.15);
  color: #4b5563;
}
.badge-bencana.badge-status-tidak-diketahui {
  background: rgba(156,163,175,0.15);
  color: #6b7280;
}

/* ===== WEATHER MAIN CARD ===== */
.weather-main {
  background: linear-gradient(135deg, #0d2b6e 0%, #1565c0 50%, #0288d1 100%);
  border-radius: var(--radius);
  color: #fff;
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  gap: 0;
}
.weather-main.sunrise {
  background: linear-gradient(135deg, #f9d423 0%, #f09819 50%, #ff5858 100%);
}
.weather-main.sunset {
  background: linear-gradient(135deg, #7d0640 0%, #c71d6f 50%, #dbbc1e 100%);
}
.weather-main.day {
  background: linear-gradient(135deg, #04befe 0%, #1565c0 50%, #0288d1 100%);
}
.weather-main.night {
  background: linear-gradient(135deg, #0d2b6e 0%, #1e3c72 50%, #2a5298 100%);
}
.weather-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 60% 30%,
    rgba(255, 255, 255, 0.09) 0%,
    transparent 60%
  );
  pointer-events: none;
}
.weather-main-deco {
  position: absolute;
  right: -10px;
  top: -14px;
  font-size: 7rem;
  opacity: 0.06;
  pointer-events: none;
  line-height: 1;
}
.weather-main-deco img {
  height: 7rem;
}
/* Kolom A+B gabung: ikon + info = 4/12 */
.wm-col-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 18px;
  flex-shrink: 0;
}
.weather-main-icon {
  font-size: 4.2rem;
  line-height: 1;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35));
  animation: floatIcon 4s ease-in-out infinite;
}
.weather-main-icon img {
  height: 8rem;
}
@keyframes floatIcon {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

/* Kolom B: Lokasi + Suhu + Kondisi = bagian dari 4/12 */
.wm-col-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  flex: 4;
  min-width: 0;
}
.weather-main-location {
  font-size: 0.65rem;
  opacity: 0.6;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: "IBM Plex Mono", monospace;
}
.weather-main-city {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 2px;
  line-height: 1.2;
  opacity: 0.85;
}
.weather-main-temp {
  font-family: "Bebas Neue", sans-serif;
  font-size: 4rem;
  line-height: 1;
  letter-spacing: -2px;
}
.weather-main-temp sup {
  font-size: 1.4rem;
  vertical-align: super;
  opacity: 0.6;
  letter-spacing: 0;
}
.weather-main-cond {
  font-size: 0.78rem;
  opacity: 0.8;
  margin-top: 3px;
  font-weight: 500;
}

/* Kolom C: Parameter cuaca = 3/12 */
.wm-col-params {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 0 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  flex: 3;
  flex-shrink: 0;
}
.wm-param {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 7px 12px;
}
.wm-param-icon {
  font-size: 1.05rem;
  flex-shrink: 0;
}
.wm-param-icon img {
  height: 1.05rem;
}
.wm-param-body {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.wm-param-label {
  font-size: 0.6rem;
  opacity: 0.55;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.wm-param-value {
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Kolom D: Forecast harian = 5/12 */
.wm-col-daily {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 20px;
  flex: 5;
  min-width: 0;
}
.wm-daily-label {
  font-size: 0.6rem;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: "IBM Plex Mono", monospace;
  margin-bottom: 8px;
}
.wm-daily-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 3px;
  cursor: grab;
  user-select: none;
}
.wm-daily-scroll:active {
  cursor: grabbing;
}
.wm-daily-scroll::-webkit-scrollbar {
  height: 3px;
}
.wm-daily-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 3px;
}
.wm-day {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  padding: 9px 10px;
  text-align: center;
  flex-shrink: 0;
  min-width: 62px;
  transition: background 0.18s;
}
.wm-day:hover {
  background: rgba(255, 255, 255, 0.2);
}
.wm-day-name {
  font-size: 0.62rem;
  opacity: 0.6;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.wm-day-time {
  font-size: 0.62rem;
  opacity: 0.6;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.wm-day-icon {
  font-size: 1.4rem;
  margin: 4px 0;
}
.wm-day-icon img {
  height: 1.4rem;
}
.wm-day-hi {
  font-size: 0.88rem;
  font-weight: 700;
}
.wm-day-lo {
  font-size: 0.68rem;
  opacity: 0.5;
  margin-top: 1px;
}
.wm-day-temp {
  font-size: 0.88rem;
  font-weight: 700;
}
.wm-day-desc {
  font-size: 0.68rem;
  opacity: 0.5;
  margin-top: 1px;
}
.wm-day-extra {
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 5px;
}
.wm-day-extra-row {
  font-size: 0.58rem;
  opacity: 0.65;
  display: flex;
  justify-content: space-between;
  gap: 3px;
  line-height: 1.6;
}

/* ===== MOBILE: 8-4 top + 12 bottom ===== */
@media (max-width: 768px) {
  .weather-main {
    flex-wrap: wrap;
    padding: 18px;
    gap: 14px;
  }
  /* Kolom ikon: tersembunyi di mobile, lebur ke info */
  .wm-col-icon {
    display: none;
  }
  /* Kolom B (info) = 8/12 */
  .wm-col-info {
    flex: 8;
    min-width: calc(66.66% - 7px);
    padding-right: 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: none;
  }
  .weather-main-temp {
    font-size: 3rem;
  }
  /* Kolom C (params) = 4/12 */
  .wm-col-params {
    flex: 4;
    min-width: calc(33.33% - 7px);
    padding: 0;
    border-right: none;
    gap: 5px;
  }
  .wm-param {
    padding: 5px 8px;
    gap: 6px;
  }
  .wm-param-icon {
    font-size: 0.85rem;
  }
  .wm-param-label {
    font-size: 0.55rem;
  }
  .wm-param-value {
    font-size: 0.78rem;
  }
  /* Kolom D (daily) = 12/12 full width di bawah */
  .wm-col-daily {
    flex: 0 0 100%;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 14px;
  }
  .wm-day-extra {
    display: none;
  }
}

/* ===== WEATHER CARDS (small) ===== */
.weather-card {
  background: linear-gradient(135deg, #1a6bb5, #0d47a1);
  border-radius: var(--radius);
  color: #fff;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.weather-card.sunrise {
  background: linear-gradient(135deg, #f9d423 0%, #f09819 60%);
}
.weather-card.sunset {
  background: linear-gradient(135deg, #c71d6f 30%, #dbbc1e 100%);
}
.weather-card.day {
  background: linear-gradient(135deg, #04befe 0%, #0288d1 80%);
}
.weather-card.night {
  background: linear-gradient(135deg, #0d2b6e 0%, #2a5298 90%);
}
.weather-deco {
  position: absolute;
  right: -10px;
  top: -14px;
  font-size: 7rem;
  opacity: 0.3;
  pointer-events: none;
  line-height: 1;
}
.weather-deco img {
  height: 7rem;
}
.weather-city {
  font-size: 0.8rem;
  opacity: 0.8;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.weather-temp {
  font-family: "Bebas Neue", sans-serif;
  font-size: 3rem;
  line-height: 1;
}
.weather-cond {
  font-size: 0.85rem;
  opacity: 0.85;
}
.weather-detail {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  font-size: 0.75rem;
  opacity: 0.85;
}
.weather-daily {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  cursor: grab;
  user-select: none;
}
.weather-daily:active {
  cursor: grabbing;
}
.weather-daily::-webkit-scrollbar {
  height: 3px;
}
.weather-daily::-webkit-scrollbar-track {
  background: transparent;
}
.weather-daily::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 3px;
}
.day-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  min-width: 60px;
  transition: background 0.18s;
}
.day-item:hover {
  background: rgba(255, 255, 255, 0.2);
}
.day-item .date {
  font-size: 0.7rem;
  opacity: 0.8;
}
.day-item .time {
  font-size: 0.6rem;
  opacity: 0.6;
}
.day-item .icon {
  font-size: 1.3rem;
}
.day-item .icon img {
  height: 1.3rem;
}
.day-item .temp {
  font-weight: 700;
  margin-top: 2px;
}

/* ===== PERINGATAN DINI ===== */
.warning-item {
  border-left: 4px solid;
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--card-bg);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.warning-merah {
  border-color: var(--primary);
  background: rgba(192, 57, 43, 0.05);
}
.warning-kuning {
  border-color: var(--accent);
  background: rgba(243, 156, 18, 0.05);
}
.warning-hijau {
  border-color: #27ae60;
  background: rgba(39, 174, 96, 0.05);
}
.warning-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.warning-icon img {
  height: 4rem;
}
.warning-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.warning-detail {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: pre-line;
}
.warning-time {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
}
.warning-infographic {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* ===== GRAFIK ===== */
.chart-container {
  position: relative;
  height: 400px;
}

/* ===== INFOGRAFIS ===== */
.infografis-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s;
}
.infografis-card:hover {
  transform: translateY(-4px);
}
.info-header {
  padding: 20px 20px 14px;
  position: relative;
}
.info-number {
  font-family: "Bebas Neue", sans-serif;
  font-size: 4rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.9);
}
.info-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.info-icon {
  position: absolute;
  right: 16px;
  top: 16px;
  font-size: 3rem;
  opacity: 0.25;
}
.info-body {
  padding: 14px 20px 18px;
}
.info-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
  margin-top: 6px;
}
.info-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease;
}
.info-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== MAP PLACEHOLDER ===== */
.map-area {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.map-placeholder {
  height: 280px;
  background: linear-gradient(135deg, #1a2a1a 0%, #2d4a2d 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.map-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.map-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  animation: mapblink 2s infinite;
}
@keyframes mapblink {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.6);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(192, 57, 43, 0);
  }
}
.map-dot.banjir {
  background: #2980b9;
  border-color: #2980b9;
  animation-delay: 0s;
}
.map-dot.kebakaran {
  background: #e74c3c;
  border-color: #e74c3c;
  animation-delay: 0.5s;
}
.map-dot.longsor {
  background: #8e44ad;
  border-color: #8e44ad;
  animation-delay: 1s;
}

.map-container {
  background: linear-gradient(135deg, #1a2a1a 0%, #2d4a2d 100%);
  width: 100%;
  height: auto;
  background-color: transparent;
  position: relative;
}

.map-canvas {
  width: 100%;
  height: 100%;
}

.map-overlay {
  width: 40%;
  height: auto;
  max-height: 100%;
  overflow-y: auto;
  position: absolute;
  right: 0;
  top: 0;
  padding: 10px;
  z-index: 1010;
  transition: transform .3s cubic-bezier(0.215, 0.610, 0.355, 1);
  transform: translateX(100%);
}

.map-overlay.show {
  transform: translateX(0%);
}

.map-detail-gempa-content {
  width: 100%;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;

  background: var(--glass-bg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.map-detail-gempa-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.map-detail-gempa-dirasakan {
  background: #ffe1b1;
  color: #d68910;
  border-radius: 5px;
  padding: 2px 6px;
  font-weight: bold;
}

.map-detail-gempa-close {
  display: flex;
  flex-direction: row;
  justify-content: end;
  font-size: 1rem;
  cursor: pointer;
}

.map-detail-gempa-title {
  font-weight: bold;
}

.map-detail-gempa-jarak-batang {
  margin-bottom: .5rem;
}

.map-detail-gempa-parameter {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.map-detail-gempa-parameter .parameter-icon {
  width: 35px;
  flex-shrink: 0;
}
.map-detail-gempa-parameter .parameter-icon img {
  height: 1.2rem;
}
.map-detail-gempa-parameter .parameter-name {
  flex-grow: 1;
}
.map-detail-gempa-parameter .parameter-value {
  flex-shrink: 0;
  width: 125px;
  font-weight: bold;
}

.map-legend-area {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
}
.map-legend-area::before {
  content: '';
  display: inline-block;
  width: 15px;
  height: 15px;
  border-radius: 3px;
  flex-shrink: 0;
}
.map-legend-area-merah::before {
  border: 1px solid #C0392B;
  background: rgba(211, 49, 49, 0.25);
}
.map-legend-area-biru::before {
  border: 1px solid #0277bd;
  background: rgba(2, 119, 189, 0.25);
}

/* ===== FOOTER ===== */
footer {
  background: var(--nav-bg);
  color: rgba(255, 255, 255, 0.6);
  padding: 30px 0;
  font-size: 0.8rem;
}
footer .footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
footer .footer-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: 2px;
}
footer .footer-title-sm {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.9rem;
  color: #fff;
  letter-spacing: 2px;
}
footer a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}
footer a:hover {
  color: #fff;
}
footer .footer-logo {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  flex-shrink: 0;
}
footer .footer-logo img {
  width: 100%;
  height: 100%;
}
footer .footer-kontak-nomor {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  font-family: 'IBM Plex Mono', monospace;
  color: #fff;
  font-size: 1.2rem;
}
footer .footer-kontak-nomor a {
  color: #fff;
}
footer .footer-kontak-nomor img {
  height: 1.2rem;
}
footer .footer-kontak-deskripsi {
  font-size: 0.78rem;
  margin-bottom: 8px;
}
footer .footer-social a {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.6)
}
footer .footer-social a:hover {
  color: white
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .stat-strip .d-flex {
    flex-wrap: wrap;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 50%;
  }
  .map-overlay {
    width: 60%;
  }
}
@media (max-width: 576px) {
  .hero-title {
    font-size: 1.8rem;
  }
  .stat-item {
    min-width: 100%;
  }
  .map-overlay {
    width: 100%;
  }
}

/* ===== GALERI SWIPER ===== */
.galeri-swiper-wrap {
  position: relative;
  user-select: none;
}
.galeriSwiper {
  border-radius: var(--radius);
  overflow: hidden;
}
.galeri-slide {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.galeri-slide-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: #0d0f1a;
  position: relative;
  flex-shrink: 0;
}
.galeri-slide-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.galeriSwiper .swiper-slide-active .galeri-slide-img-wrap img {
  transform: scale(1.02);
}
/* Category badge overlay */
.galeri-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  z-index: 2;
}
.galeri-cat-infografis  { background: rgba(41,128,185,0.85);  color:#fff; }
.galeri-cat-panduan     { background: rgba(39,174,96,0.85);   color:#fff; }
.galeri-cat-pengumuman  { background: rgba(192,57,43,0.85);   color:#fff; }
.galeri-cat-informasi   { background: rgba(142,68,173,0.85);  color:#fff; }
.galeri-cat-siaga       { background: rgba(243,156,18,0.9);   color:#1a1a2e; }
/* Caption area */
.galeri-caption {
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.galeri-caption-main { flex: 1; min-width: 0; }
.galeri-caption-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.galeri-caption-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.galeri-caption-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 6px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.galeri-caption-right {
  flex-shrink: 0;
  text-align: right;
}
.galeri-counter {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: var(--primary);
  line-height: 1;
}
.galeri-counter-total {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Navigation buttons */
.galeri-nav {
  position: absolute;
  top: calc(50% - 32px); /* offset upward by half caption height */
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--card-bg);
  color: var(--text);
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.18s;
  transform: translateY(-50%);
}
.galeri-nav:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}
.galeri-nav.swiper-button-disabled { opacity: 0.3; cursor: default; pointer-events: none; }
.galeri-prev { left: -18px; }
.galeri-next { right: -18px; }

/* Pagination dots */
.galeri-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}
.galeri-pagination .swiper-pagination-bullet {
  width: 8px; height: 8px;
  border-radius: 4px;
  background: var(--border);
  opacity: 1;
  transition: all 0.25s;
  cursor: pointer;
}
.galeri-pagination .swiper-pagination-bullet-active {
  background: var(--primary);
  width: 24px;
}

@media (max-width: 768px) {
  .galeri-prev { left: 6px; }
  .galeri-next { right: 6px; }
  .galeri-nav { width: 36px; height: 36px; font-size: 0.95rem; }
  .galeri-slide-img-wrap { aspect-ratio: 4 / 3; }
  .galeri-caption { padding: 14px 16px; flex-direction: column; gap: 8px; }
  .galeri-caption-right { display: none; }
  .galeri-caption-title { font-size: 0.9rem; white-space: normal; }
}
/* ===== END GALERI ===== */

/* ===== KONTEN EDUKASI LIST ===== */
.edukasi-list { display: flex; flex-direction: column; gap: 0; }
.edukasi-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.15s;
  cursor: pointer;
  border-radius: 0;
}
.edukasi-item:first-child { padding-top: 0; }
.edukasi-item:last-child { border-bottom: none; padding-bottom: 0; }
.edukasi-item:hover .edukasi-title { color: var(--primary); }
.edukasi-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: rgba(192,57,43,0.1);
  border: 1px solid rgba(192,57,43,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  color: var(--primary);
  margin-top: 2px;
}
.edukasi-body { flex: 1; min-width: 0; }
.edukasi-cat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.edukasi-cat {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 2px 8px;
  border-radius: 4px;
}
.edukasi-cat-mitigasi   { background: rgba(41,128,185,0.12); color: #2980B9; }
.edukasi-cat-kesiapsiagaan { background: rgba(39,174,96,0.12); color: #27AE60; }
.edukasi-cat-evakuasi   { background: rgba(243,156,18,0.12); color: #d68910; }
.edukasi-cat-pertolongan { background: rgba(192,57,43,0.12); color: var(--primary); }
.edukasi-cat-pemulihan  { background: rgba(142,68,173,0.12); color: #8E44AD; }
.edukasi-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  color: var(--text-muted);
}
.edukasi-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 5px;
  transition: color 0.15s;
}
.edukasi-excerpt {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.edukasi-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
  transition: color 0.15s, transform 0.15s;
}
.edukasi-item:hover .edukasi-arrow {
  color: var(--primary);
  transform: translateX(3px);
}
/* ===== END KONTEN EDUKASI ===== */

/* ===== CUACA PERAIRAN & PELABUHAN ===== */
/* Header perairan */
.perairan-header {
  background: linear-gradient(135deg, #01579b, #0277bd);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.perairan-deco {
  position: absolute;
  right: -10px;
  top: -14px;
  font-size: 7rem;
  opacity: 0.3;
  pointer-events: none;
  line-height: 1;
}
.perairan-deco img {
  height: 7rem;
}
.perairan-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 2px;
}
.perairan-issued {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  opacity: 0.65;
  margin-top: 2px;
}

/* Timeline item perairan */
.perairan-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  position: relative;
  transition: border-color 0.2s;
}
.perairan-item:hover {
  border-color: #0277bd;
}
.perairan-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 10px;
  flex-wrap: wrap;
}
.perairan-time-badge {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1rem;
  letter-spacing: 1px;
  background: rgba(2, 119, 189, 0.12);
  color: #0277bd;
  border: 1px solid rgba(2, 119, 189, 0.25);
  border-radius: 6px;
  padding: 3px 10px;
}
[data-bs-theme="dark"] .perairan-time-badge {
  background: rgba(2, 119, 189, 0.2);
  color: #64b5f6;
  border-color: rgba(100, 181, 246, 0.3);
}
.perairan-weather-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.85rem;
}
.perairan-weather-icon img {
  height: 1.3rem;
}
.perairan-warning {
  font-size: 0.72rem;
  background: rgba(243, 156, 18, 0.12);
  color: #d68910;
  border: 1px solid rgba(243, 156, 18, 0.3);
  border-radius: 20px;
  padding: 2px 10px;
}
.perairan-stats {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.perairan-stat {
  background: var(--bg);
  border-radius: 8px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1 1 auto;
}
.perairan-stat-icon {
  font-size: 1rem;
  flex-shrink: 0;
}
.perairan-stat-icon img {
  height: 1rem;
}
.perairan-stat-body {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.perairan-stat-lbl {
  font-size: 0.58rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.perairan-stat-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.perairan-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.5;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}
.perairan-stat-val .wave-blue {
  color: #0277bd;
}
.perairan-stat-val .wave-green {
  color: #27AE60;
}
.perairan-stat-val .wave-orange {
  color: #F39C12;
}
.perairan-stat-val .wave-red {
  color: #E74C3C;
}

/* Header pelabuhan */
.pelabuhan-header {
  background: linear-gradient(135deg, #004D40, #00695C);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.pelabuhan-deco {
  position: absolute;
  right: -10px;
  top: -14px;
  font-size: 7rem;
  opacity: 0.3;
  pointer-events: none;
  line-height: 1;
}
.pelabuhan-deco img {
  height: 7rem;
}
.pelabuhan-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 2px;
}
.pelabuhan-issued {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  opacity: 0.65;
  margin-top: 2px;
}

/* Timeline item pelabuhan */
.pelabuhan-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  position: relative;
  transition: border-color 0.2s;
}
.pelabuhan-item:hover {
  border-color: #0277bd;
}
.pelabuhan-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 10px;
  flex-wrap: wrap;
}
.pelabuhan-time-badge {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1rem;
  letter-spacing: 1px;
  background: rgba(2, 119, 189, 0.12);
  color: #0277bd;
  border: 1px solid rgba(2, 119, 189, 0.25);
  border-radius: 6px;
  padding: 3px 10px;
}
[data-bs-theme="dark"] .pelabuhan-time-badge {
  background: rgba(2, 119, 189, 0.2);
  color: #64b5f6;
  border-color: rgba(100, 181, 246, 0.3);
}
.pelabuhan-weather-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.85rem;
}
.pelabuhan-weather-icon img {
  height: 1.3rem;
}
.pelabuhan-warning {
  font-size: 0.72rem;
  background: rgba(243, 156, 18, 0.12);
  color: #d68910;
  border: 1px solid rgba(243, 156, 18, 0.3);
  border-radius: 20px;
  padding: 2px 10px;
}
.pelabuhan-stats {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.pelabuhan-stat {
  background: var(--bg);
  border-radius: 8px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1 1 auto;
}
.pelabuhan-stat-icon {
  font-size: 1rem;
  flex-shrink: 0;
}
.pelabuhan-stat-icon img {
  height: 1rem;
}
.pelabuhan-stat-body {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.pelabuhan-stat-lbl {
  font-size: 0.58rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.pelabuhan-stat-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.pelabuhan-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.5;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}
.pelabuhan-stat-val .wave-blue {
  color: #0277bd;
}
.pelabuhan-stat-val .wave-green {
  color: #27AE60;
}
.pelabuhan-stat-val .wave-orange {
  color: #F39C12;
}
.pelabuhan-stat-val .wave-red {
  color: #E74C3C;
}
.pelabuhan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.pelabuhan-cell {
  background: var(--bg);
  border-radius: 7px;
  padding: 7px 8px;
  text-align: center;
}
.pelabuhan-cell-icon {
  font-size: 0.95rem;
}
.pelabuhan-cell-icon img {
  height: 0.95rem;
}
.pelabuhan-cell-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 2px;
}
.pelabuhan-cell-val .wave-blue {
  color: #0277bd;
}
.pelabuhan-cell-val .wave-green {
  color: #27AE60;
}
.pelabuhan-cell-val .wave-orange {
  color: #F39C12;
}
.pelabuhan-cell-val .wave-red {
  color: #E74C3C;
}
.pelabuhan-cell-lbl {
  font-size: 0.57rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.pelabuhan-tide {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.tide-item {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
  background: var(--bg);
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 0.72rem;
}
.tide-item-icon {
  font-size: 1rem;
  flex-shrink: 0;
}
.tide-item-icon img {
  height: 1.3rem;
}
.tide-item-body {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.tide-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.tide-val {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
}
.tide-time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  color: var(--text-muted);
}
@media (max-width: 576px) {
  .perairan-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .pelabuhan-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.perairan-future-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-family: "IBM Plex Mono", monospace;
  margin: 12px 0 8px;
}
.perairan-slider {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  cursor: grab;
  user-select: none;
}
.perairan-slider:active {
  cursor: grabbing;
}
.perairan-slider::-webkit-scrollbar {
  height: 3px;
}
.perairan-slider::-webkit-scrollbar-track {
  background: transparent;
}
.perairan-slider::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
.perairan-slide {
  flex: 0 0 calc(50% - 5px);
  min-width: 200px;
}
.perairan-item-compact {
  height: 100%;
  margin-bottom: 0;
}
@media (max-width: 576px) {
  .perairan-slide {
    flex: 0 0 85%;
  }
}

/* ===== GEMPA TERKINI ===== */
/* List gempa kanan */
#gempaListCard {
  height: 400px;
  overflow: auto;
  padding-right: 8px;
}
.gempa-list-item {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
  transition: box-shadow 0.18s;
}
.gempa-list-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.gempa-list-mag-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  min-width: 72px;
  color: #fff;
  flex-shrink: 0;
}
.gempa-list-mag-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -1px;
}
.gempa-list-mag-unit {
  font-size: 0.65rem;
  opacity: 0.8;
  letter-spacing: 1px;
}
.gempa-list-body {
  flex: 1;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.gempa-list-loc {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.gempa-list-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.gempa-list-dirasakan-mmi {
  font-size: 0.75rem;
}
.gempa-list-mmi {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-top:2px;
}
.gempa-list-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  color: var(--text-muted);
}
.gempa-list-terdekat {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  background:rgba(192,57,43,0.12);
  color:var(--primary);
  border: 1px solid rgba(192,57,43,0.3);
  align-self: flex-start;

}
.gempa-list-dirasakan {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  align-self: flex-start;

  color: rgb(138, 138, 138);
  background: rgba(138, 138, 138, 0.12);
  border: 1px solid rgba(138, 138, 138, 0.25);
}
.gempa-list-dirasakan.mmi-i {
  color: rgb(138, 138, 138);
  background: rgba(138, 138, 138, 0.12);
  border: 1px solid rgba(138, 138, 138, 0.25);
}
.gempa-list-dirasakan.mmi-ii {
  color: rgb(138, 138, 138);
  background: rgba(138, 138, 138, 0.12);
  border: 1px solid rgba(138, 138, 138, 0.25);
}
.gempa-list-dirasakan.mmi-iii {
  color: rgb(136, 131, 187);
  background: rgba(136, 131, 187, 0.12);
  border: 1px solid rgba(136, 131, 187, 0.25);
}
.gempa-list-dirasakan.mmi-iv {
  color: rgb(125, 140, 229);
  background: rgba(125, 140, 229, 0.12);
  border: 1px solid rgba(125, 140, 229, 0.25);
}
.gempa-list-dirasakan.mmi-v {
  color: rgb(70, 186, 84);
  background: rgba(70, 186, 84, 0.12);
  border: 1px solid rgba(70, 186, 84, 0.25);
}
.gempa-list-dirasakan.mmi-vi {
  color: rgb(198, 186, 18);
  background: rgba(198, 186, 18, 0.12);
  border: 1px solid rgba(198, 186, 18, 0.25);
}
.gempa-list-dirasakan.mmi-vii {
  color: rgb(233, 158, 20);
  background: rgba(233, 158, 20, 0.12);
  border: 1px solid rgba(233, 158, 20, 0.25);
}
.gempa-list-dirasakan.mmi-viii {
  color: rgb(233, 105, 20);
  background: rgba(233, 105, 20, 0.12);
  border: 1px solid rgba(233, 105, 20, 0.25);
}
.gempa-list-dirasakan.mmi-ix {
  color: rgb(233, 63, 20);
  background: rgba(233, 63, 20, 0.12);
  border: 1px solid rgba(233, 63, 20, 0.25);
}
.gempa-list-dirasakan.mmi-x {
  color: rgb(233, 20, 20);
  background: rgba(233, 20, 20, 0.12);
  border: 1px solid rgba(233, 20, 20, 0.25);
}
.gempa-list-dirasakan.mmi-xi {
  color: rgb(209, 6, 6);
  background: rgba(209, 6, 6, 0.12);
  border: 1px solid rgba(209, 6, 6, 0.25);
}
.gempa-list-dirasakan.mmi-xii {
  color: rgb(199, 5, 5);
  background: rgba(199, 5, 5, 0.12);
  border: 1px solid rgba(199, 5, 5, 0.25);
}
.gempa-mag-color-dark-red {
  background: #960400;
}
.gempa-mag-color-red {
  background: #C0392B;
}
.gempa-mag-color-orange {
  background: #E67E22;
}
.gempa-mag-color-yellow {
  background: #F39C12;
}
.gempa-mag-color-blue {
  background: #2980B9;
}

/* Detail gempa terdekat */
.gempa-detail-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.gempa-detail-header {
  padding: 12px 16px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  gap: 15px;
}
.gempa-detail-header-color-dark-red {
  background: linear-gradient(135deg, #960400, #cf3119);
}
.gempa-detail-header-color-red {
  background: linear-gradient(135deg, #C0392B, #e33724);
}
.gempa-detail-header-color-orange {
  background: linear-gradient(135deg, #E67E22, #f9953e);
}
.gempa-detail-header-color-yellow {
  background: linear-gradient(135deg, #F39C12, #ffb53f);
}
.gempa-detail-header-color-blue {
  background: linear-gradient(135deg, #2980B9, #36a6f1);
}
.gempa-detail-deco {
  position: absolute;
  right: -10px;
  top: -14px;
  font-size: 7rem;
  opacity: 0.3;
  pointer-events: none;
  line-height: 1;
}
.gempa-detail-deco img {
  height: 7rem;
}
.gempa-warning {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
}
.gempa-warning .warning-icon img {
  height: 2.5rem;
}
.gempa-mag {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  line-height: 1;
  letter-spacing: -1px;
}
.gempa-mag-unit {
  opacity: 0.7;
}
.gempa-mag-label {
  font-size: 0.65rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.gempa-date-time {
  text-align: left;
  font-size: 0.72rem;
  opacity: 0.75;
  font-family: 'IBM Plex Mono', monospace;
}
.gempa-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
}
.gempa-detail-cell {
  background: var(--card-bg);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.gempa-cell-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  display: flex;
}
.gempa-cell-icon img {
  height: 1.4rem;
}
.gempa-cell-body {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.gempa-cell-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.gempa-cell-val {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
}
.gempa-wilayah {
  padding: 10px 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg);
  border-top: 1px solid var(--border);
  line-height: 1.5;
}
.gempa-mmi {
  padding: 10px 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg);
  border-top: 1px solid var(--border);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gempa-mmi-label {
  
}
.gempa-mmi-item {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

@keyframes marker-pulse {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}
.map-marker-pulse {
  position: relative;
  width: 20px;
  height: 20px;
}
.map-marker-pulse-anim {
  position: absolute;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(41, 128, 185, 0.3);
  animation: marker-pulse 1.5s ease-out infinite;
}
.map-marker-pulse-point {
  position: absolute;
  width: 10px; height: 10px;
  top: 5px; left: 5px;
  border-radius: 50%;
  background: #2980B9;
}

.map-marker-pulse-anim.color-dark-red {
  background: rgba(150, 4, 0, 0.3);
}
.map-marker-pulse-point.color-dark-red {
  background: #960400;
}
.map-marker-pulse-anim.color-red {
  background: rgba(192, 57, 43, 0.3);
}
.map-marker-pulse-point.color-red {
  background: #C0392B;
}
.map-marker-pulse-anim.color-orange {
  background: rgba(230, 126, 34, 0.3);
}
.map-marker-pulse-point.color-orange {
  background: #E67E22;
}
.map-marker-pulse-anim.color-yellow {
  background: rgba(243, 156, 18, 0.3);
}
.map-marker-pulse-point.color-yellow {
  background: #F39C12;
}
.map-marker-pulse-anim.color-blue {
  background: rgba(41, 128, 185, 0.3);
}
.map-marker-pulse-point.color-blue {
  background: #2980B9;
}
/* ===== GEMPA END ===== */

/* ===== VISI MISI ===== */
.visi-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius);
  padding: 28px 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.visi-card::after {
  content: '🛡';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 6rem;
  opacity: 0.08;
  pointer-events: none;
}

.visi-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 2px;
  opacity: 0.7;
  margin-bottom: 8px;
}

.visi-text {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.65;
}

.misi-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.misi-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.misi-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(192, 57, 43, 0.1);
  border: 1px solid rgba(192, 57, 43, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.misi-text {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.65;
}

/* ===== TUGAS POKOK & FUNGSI ===== */
.tupoksi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 991px) {
  .tupoksi-grid {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .tupoksi-grid {
      grid-template-columns: 1fr;
  }
}

.tupoksi-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color 0.2s, transform 0.2s;
}

.tupoksi-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.tupoksi-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.tupoksi-icon img {
  height: 1.8rem;
}

.tupoksi-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 5px;
}

.tupoksi-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== STRUKTUR ORGANISASI ===== */
.org-img-wrap {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.org-img-wrap img {
  width: 100%;
  display: block;
  cursor: zoom-in;
  transition: opacity 0.2s;
}

.org-img-wrap img:hover {
  opacity: 0.92;
}

.org-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  text-align: center;
  padding: 20px;
}

.org-placeholder-icon {
  font-size: 3rem;
  opacity: 0.3;
}

/* ===== KONTAK ===== */
.kontak-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (max-width: 576px) {
  .kontak-grid {
      grid-template-columns: 1fr;
  }
}

.kontak-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: border-color 0.18s;
}

.kontak-item:hover {
  border-color: var(--primary);
}

.kontak-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(192, 57, 43, 0.1);
  border: 1px solid rgba(192, 57, 43, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  color: var(--primary);
}

.kontak-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 3px;
}

.kontak-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.kontak-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.kontak-val a {
  color: inherit;
  text-decoration: none;
}

.kontak-val a:hover {
  color: var(--primary);
}

/* ALAMAT full width */
.kontak-item.full {
  grid-column: 1 / -1;
}

/* ===== SOSIAL MEDIA ===== */
.sosmed-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sosmed-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 180px;
  transition: all 0.18s;
}

.sosmed-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.sosmed-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  color: #fff;
}

.sosmed-fb {
  background: #1877F2;
}

.sosmed-item:hover .sosmed-icon-wrap.sosmed-fb {
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.4);
}

.sosmed-tw {
  background: #1DA1F2;
}

.sosmed-item:hover .sosmed-icon-wrap.sosmed-tw {
  box-shadow: 0 4px 14px rgba(29, 161, 242, 0.4);
}

.sosmed-ig {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.sosmed-item:hover .sosmed-icon-wrap.sosmed-ig {
  box-shadow: 0 4px 14px rgba(220, 39, 67, 0.4);
}

.sosmed-yt {
  background: #FF0000;
}

.sosmed-item:hover .sosmed-icon-wrap.sosmed-yt {
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.4);
}

.sosmed-wa {
  background: #25D366;
}

.sosmed-item:hover .sosmed-icon-wrap.sosmed-wa {
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.sosmed-web {
  background: var(--primary);
}

.sosmed-item:hover .sosmed-icon-wrap.sosmed-web {
  box-shadow: 0 4px 14px rgba(192, 57, 43, 0.4);
}

.sosmed-tt {
  background: #000;
}

.sosmed-item:hover .sosmed-icon-wrap.sosmed-tt {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.sosmed-th {
  background: #000;
}

.sosmed-item:hover .sosmed-icon-wrap.sosmed-th {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.sosmed-platform {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  font-weight: 700;
}

.sosmed-handle {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 1px;
}

/* ===== MAP EMBED PLACEHOLDER ===== */
.maps-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.maps-header {
  background: var(--primary);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.maps-header-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  color: #fff;
  letter-spacing: 1.5px;
}

.maps-iframe-wrap {
  position: relative;
  width: 100%;
  height: 300px;
  background: #1a2a1a;
}

.maps-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.maps-placeholder-msg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  gap: 8px;
  font-size: 0.82rem;
  background: linear-gradient(135deg, #1a2a1a, #2d4a2d);
}

/* ===== HOTLINE STRIP ===== */
.hotline-strip {
  background: var(--primary);
  border-radius: var(--radius);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.hotline-strip::after {
  content: '📞';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 5rem;
  opacity: 0.1;
  pointer-events: none;
}

.hotline-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem;
  color: #fff;
  line-height: 1;
  letter-spacing: 4px;
}

.hotline-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.hotline-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

.hotline-detail {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hotline-detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
}

.hotline-detail-item strong {
  color: #fff;
}

/* scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.section-divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 0;
}
[data-bs-theme="dark"] .table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
}
[data-bs-theme="dark"] .table-bencana tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}



/* ===== DATATABLES OVERRIDES ===== */
/* Sembunyikan search & length default, pakai toolbar sendiri */
.dt-search, .dt-length {
  display: none !important;
}
/* Container & layout rows */
.dt-container {
  padding: 0 !important;
}
.dt-layout-row {
  margin: 0 !important;
}
.dt-layout-cell {
  padding: 0 !important;
}
/* Info text */
.dt-info {
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
  padding: 12px 16px !important;
}
/* Paging nav */
.dt-paging {
  padding: 8px 12px !important;
}
.dt-paging nav {
  display: flex;
  align-items: center;
  gap: 3px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
div.dt-container .dt-paging .dt-paging-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 30px;
  padding: 0 8px;
  border-radius: 8px !important;
  font-size: 0.78rem !important;
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  background: transparent !important;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  line-height: 1;
}
div.dt-container .dt-paging .dt-paging-button:hover:not(.disabled) {
  background: rgba(192,57,43,0.08) !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}
div.dt-container .dt-paging .dt-paging-button.current,
div.dt-container .dt-paging .dt-paging-button.current:hover {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  font-weight: 700;
}
div.dt-container .dt-paging .dt-paging-button.disabled,
div.dt-container .dt-paging .dt-paging-button.disabled:hover {
  opacity: 0.3 !important;
  cursor: default !important;
  pointer-events: none;
}
/* Bottom row: info kiri, paging kanan */
.dt-layout-row:last-child {
  border-top: 1px solid var(--border);
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
/* Processing overlay */
.dt-processing {
  background: rgba(0,0,0,0.55) !important;
  border: none !important;
  border-radius: 10px !important;
  color: #fff !important;
  padding: 12px 24px !important;
  font-size: 0.85rem !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
}
/* Loader */
.custom-dt-loader {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.custom-dt-loader + div {
  display: none;
}
.custom-dt-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #ddd;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: custom-dt-spin 0.7s linear infinite;
}
@keyframes custom-dt-spin {
  to {
    transform: rotate(360deg);
  }
}
/* Sorting — v2 pakai .dt-column-order */
table.dataTable thead th {
  cursor: pointer;
}
table.dataTable thead .dt-orderable-asc .dt-column-order::before,
table.dataTable thead .dt-orderable-desc .dt-column-order::after {
  opacity: 0.35;
}
table.dataTable thead .dt-ordering-asc .dt-column-order::before,
table.dataTable thead .dt-ordering-desc .dt-column-order::after {
  opacity: 1;
}
/* Custom search box — icon wrapper only, input styled globally */
.dt-search-box {
  position: relative;
}
.dt-search-box input {
  width: 200px;
  padding-left: 32px;
}
.dt-search-box i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  pointer-events: none;
}
/* Per-page select (toolbar kita) */
.dt-perpage {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 8px 12px;
}


/* ===== BREADCRUMB ===== */
.page-breadcrumb {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.breadcrumb { margin:0; font-size:0.8rem; }
.breadcrumb-item a { color:var(--primary); text-decoration:none; }
.breadcrumb-item.active { color:var(--text-muted); }
.breadcrumb-item+.breadcrumb-item::before { color:var(--text-muted); }

/* ===== PAGE HEADER ===== */
.page-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  padding: 36px 0 30px;
  position: relative;
  /* overflow: hidden; */
}
.hero-logo-wrap {
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  flex-shrink: 0;
}
.hero-logo-wrap img {
  width: 100%;
  height: 100%;
}
.page-hero::before { content:''; position:absolute; inset:0; background:repeating-linear-gradient(45deg,transparent,transparent 40px,rgba(192,57,43,0.04) 40px,rgba(192,57,43,0.04) 80px); }
.page-hero-title { font-family:'Bebas Neue',sans-serif; font-size:clamp(1.8rem,4vw,2.6rem); color:#fff; letter-spacing:2px; line-height:1.1; }
.page-hero-sub { color:rgba(255,255,255,0.6); font-size:0.88rem; margin-top:8px; font-family:'IBM Plex Mono',monospace; }
.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-family: 'IBM Plex Mono', monospace;
  margin-top: 14px;
}

/* ===== TOOLBAR ===== */
.content-toolbar {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: var(--header-height, 96px);
  z-index: 100;
}
.toolbar-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.toolbar-tab {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 16px; border-radius: 20px;
  font-size: 0.82rem; font-weight: 600;
  border: 1px solid var(--border);
  background: transparent; color: var(--text-muted);
  cursor: pointer; transition: all 0.18s;
}
.toolbar-tab:hover { border-color: var(--primary); color: var(--primary); }
.toolbar-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.toolbar-tab .count-badge {
  background: rgba(255,255,255,0.25); border-radius: 10px;
  padding: 1px 7px; font-size: 0.68rem; font-family:'IBM Plex Mono',monospace;
}
.toolbar-tab:not(.active) .count-badge { background: var(--bg); }
.toolbar-search { position: relative; max-width: 280px; }
.toolbar-search input { padding-left: 34px; border-radius: 20px; }
.toolbar-search i { position:absolute; left:12px; top:50%; transform:translateY(-50%); color:var(--text-muted); font-size:0.85rem; pointer-events:none; }
.toolbar-sort { max-width: 180px; border-radius: 20px !important; }

/* ===== CONTENT GRID ===== */
.content-section { padding: 28px 0 40px; }
.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 991px) { .content-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .content-grid { grid-template-columns: 1fr; } }

/* ===== ARTIKEL LIST (tanpa gambar) ===== */
.artikel-list {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.artikel-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  position: relative;
}
.artikel-row:last-child { border-bottom: none; }
.artikel-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: transparent;
  border-radius: 0 3px 3px 0;
  transition: background 0.15s;
}
.artikel-row:hover { background: rgba(192,57,43,0.03); }
.artikel-row:hover::before { background: var(--primary); }
.artikel-row:hover .artikel-title { color: var(--primary); }

/* Nomor urut */
.artikel-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 2px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.artikel-row:hover .artikel-num {
  background: rgba(192,57,43,0.08);
  color: var(--primary);
  border-color: rgba(192,57,43,0.25);
}

/* Body artikel */
.artikel-body { flex: 1; min-width: 0; }
.artikel-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}
.artikel-cat {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 2px 8px;
  border-radius: 4px;
}
.cat-mitigasi      { background: rgba(41,128,185,0.1); color: #2980B9; }
.cat-kesiapsiagaan { background: rgba(39,174,96,0.1); color: #27AE60; }
.cat-evakuasi      { background: rgba(243,156,18,0.1); color: #d68910; }
.cat-pertolongan   { background: rgba(192,57,43,0.1); color: var(--primary); }
.cat-pemulihan     { background: rgba(142,68,173,0.1); color: #8E44AD; }

.artikel-title {
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 5px;
  transition: color 0.15s;
}
.artikel-excerpt {
  font-size: 0.79rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.artikel-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
  flex-wrap: wrap;
}
.artikel-meta-date { display: flex; align-items: center; gap: 4px; }

/* Arrow icon kanan */
.artikel-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 6px;
  transition: color 0.15s, transform 0.15s;
}
.artikel-row:hover .artikel-arrow {
  color: var(--primary);
  transform: translateX(3px);
}

/* ===== CONTENT CARD ===== */
.content-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.content-card:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(0,0,0,0.14); color: inherit; }
.card-img-wrap { position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden; background: #0d0f1a; flex-shrink: 0; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.content-card:hover .card-img-wrap img { transform: scale(1.06); }

.card-type-badge {
  position: absolute; top: 10px; left: 10px;
  display: flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.4px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
}
.badge-artikel { background: rgba(41,128,185,0.85); }
.badge-infografis { background: rgba(142,68,173,0.85); }

.card-cat-badge {
  position: absolute; bottom: 10px; left: 10px;
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 2px 9px; border-radius: 4px;
  background: rgba(0,0,0,0.55); color: #fff;
}

.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card-title {
  font-weight: 700; font-size: 0.92rem; color: var(--text);
  line-height: 1.4; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color 0.15s;
}
.content-card:hover .card-title { color: var(--primary); }
.card-excerpt {
  font-size: 0.78rem; color: var(--text-muted); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1; margin-bottom: 10px;
}
.card-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.68rem; color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
  padding-top: 10px; border-top: 1px solid var(--border);
}
.card-meta-item { display: flex; align-items: center; gap: 4px; }

/* Infografis variant — caption style instead of excerpt */
.infografis-caption {
  font-size: 0.78rem; color: var(--text-muted); line-height: 1.5;
  font-style: italic; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state-icon { font-size: 3rem; opacity: 0.3; margin-bottom: 12px; }

/* ===== PAGINATION ===== */
.pagination-wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.pagination-info { font-size: 0.78rem; color: var(--text-muted); }
.pagination-info strong { color: var(--primary); }
.pagination-nav { display: flex; align-items: center; gap: 4px; }
.page-btn {
  display: flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 8px;
  border-radius: 8px; border: 1px solid var(--border);
  background: var(--card-bg); color: var(--text);
  font-size: 0.8rem; font-weight: 600; cursor: pointer;
  transition: all 0.15s; text-decoration: none;
}
.page-btn:hover:not(.disabled):not(.active) { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-btn.disabled { opacity: 0.35; cursor: default; pointer-events: none; }
.page-ellipsis { color: var(--text-muted); padding: 0 4px; font-size: 0.8rem; }

/* ===== HERO KEJADIAN ===== */
.detail-hero {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  padding: 28px 0 24px;
  position: relative;
  /* overflow: hidden; */
  border-bottom: 3px solid var(--primary);
}
.detail-hero::before { content:''; position:absolute; inset:0; background:repeating-linear-gradient(45deg,transparent,transparent 40px,rgba(192,57,43,0.03) 40px,rgba(192,57,43,0.03) 80px); }
.detail-jenis-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  background: rgba(156,163,175,0.15);
  border-width: 1px;
  border-style: solid;
  border-color: #6b7280;
  color: #6b7280;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.detail-jenis-badge.badge-abrasi {
  background: rgba(14,165,233,0.15);
  color: #0ea5e9;
  border-color: #0ea5e9;
}
.detail-jenis-badge.badge-banjir {
  background: rgba(37,99,235,0.15);
  color: #2563eb;
  border-color: #2563eb;
}
.detail-jenis-badge.badge-banjir-bandang {
  background: rgba(29,78,216,0.15);
  color: #1d4ed8;
  border-color: #1d4ed8;
}
.detail-jenis-badge.badge-cuaca-ekstrim {
  background: rgba(250,204,21,0.15);
  color: #ca8a04;
  border-color: #ca8a04;
}
.detail-jenis-badge.badge-epidemi-wabah {
  background: rgba(29,225,101,0.15);
  color: #e11d48;
  border-color: #e11d48;
}
.detail-jenis-badge.badge-gempa {
  background: rgba(107,114,128,0.15);
  color: #6b7280;
  border-color: #6b7280;
}
.detail-jenis-badge.badge-karhutla {
  background: rgba(220,38,38,0.15);
  color: #dc2626;
  border-color: #dc2626;
}
.detail-jenis-badge.badge-kekeringan {
  background: rgba(245,158,11,0.15);
  color: #f59e0b;
  border-color: #f59e0b;
}
.detail-jenis-badge.badge-erupsi {
  background: rgba(124,45,18,0.15);
  color: #7c2d12;
  border-color: #7c2d12;
}
.detail-jenis-badge.badge-tanah-longsor {
  background: rgba(146,64,14,0.15);
  color: #92400e;
  border-color: #92400e;
}
.detail-jenis-badge.badge-tsunami {
  background: rgba(8,145,178,0.15);
  color: #0891b2;
  border-color: #0891b2;
}
.detail-jenis-badge.badge-lain-lain {
  background: rgba(75,85,99,0.15);
  color: #4b5563;
  border-color: #4b5563;
}
.detail-jenis-badge.badge-tidak-diketahui {
  background: rgba(156,163,175,0.15);
  color: #6b7280;
  border-color: #6b7280;
}

.detail-hero-title { font-family:'Bebas Neue',sans-serif; font-size:clamp(1.6rem,4vw,2.6rem); color:#fff; letter-spacing:2px; line-height:1.1; margin-bottom:8px; }
.detail-hero-meta { display:flex; flex-wrap:wrap; gap:16px; margin-top:12px; }
.detail-hero-meta-item { display:flex; align-items:center; gap:6px; font-size:0.8rem; color:rgba(255,255,255,0.7); font-family:'IBM Plex Mono',monospace; }
.status-pill {
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  background: rgba(156,163,175,0.15);
  color: #6b7280;
  border-width: 1px;
  border-style: solid;
  border-color: #6b7280;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.detail-jenis-badge.status-pelaporan {
  background: rgba(59,130,246,0.15);
  color: #2563eb;
  border-color: #2563eb;
}
.detail-jenis-badge.status-verifikasi {
  background: rgba(245,158,11,0.15);
  color: #d97706;
  border-color: #d97706;
}
.detail-jenis-badge.status-penanganan {
  background: rgba(239,68,68,0.15);
  color: #dc2626;
  border-color: #dc2626;
}
.detail-jenis-badge.status-selesai {
  background: rgba(22,163,74,0.15);
  color: #15803d;
  border-color: #15803d;
}
.detail-jenis-badge.status-ditolak {
  background: rgba(107,114,128,0.15);
  color: #4b5563;
  border-color: #4b5563;
}
.detail-jenis-badge.status-tidak-diketahui {
  background: rgba(156,163,175,0.15);
  color: #6b7280;
  border-color: #6b7280;
}

/* .status-aktif { background:rgba(192,57,43,0.2); color:#ff6b6b; border:1px solid rgba(192,57,43,0.4); }
.status-penanganan { background:rgba(243,156,18,0.2); color:#ffd43b; border:1px solid rgba(243,156,18,0.4); }
.status-selesai { background:rgba(39,174,96,0.2); color:#69db7c; border:1px solid rgba(39,174,96,0.4); } */

/* ===== MAIN CONTENT LAYOUT ===== */
.detail-content { padding: 28px 0 40px; }

/* ===== INFO CARDS ===== */
.detail-info-label { font-size:0.65rem; text-transform:uppercase; letter-spacing:0.8px; color:var(--text-muted); font-weight:700; margin-bottom:3px; }
.detail-info-value { font-size:0.88rem; color:var(--text); font-weight:400; line-height:1.45; }
.detail-info-row { padding:12px 0; border-bottom:1px solid var(--border); }
.detail-info-row:last-child { border-bottom:none; padding-bottom:0; }
.detail-info-row:first-child { padding-top:0; }

.detail-card-header {
  background: var(--primary);
  padding: 12px 18px;
  display: flex; align-items: center; gap: 8px;
}
.detail-card-header-title { font-family:'Bebas Neue',sans-serif; font-size:1.1rem; color:#fff; letter-spacing:1.5px; }
.detail-card-header-icon { font-size:1.2rem; }

/* Tingkat keparahan */
.tingkat-keparahan {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-weight:700;
  color: var(--text-muted);
}
.keparahan-bar { display:flex; gap:4px; }
.keparahan-dot {
  width:16px;
  height:16px;
  border-radius:4px;
  background-color: var(--border);
}

.keparahan-dot.keparahan-sangat-berat { background: #960400; }
.keparahan-dot.keparahan-berat  { background: #C0392B; }
.keparahan-dot.keparahan-sedang { background: #E67E22; }
.keparahan-dot.keparahan-ringan { background: #F39C12; }

.tingkat-keparahan.keparahan-sangat-berat { color: #960400; }
.tingkat-keparahan.keparahan-berat  { color: #C0392B; }
.tingkat-keparahan.keparahan-sedang { color: #E67E22; }
.tingkat-keparahan.keparahan-ringan { color: #F39C12; }

/* ===== MAPS ===== */
.maps-placeholder {
  background: linear-gradient(135deg, #1a2a1a, #2d4a2d);
  height: 280px; border-radius:8px;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  color:rgba(255,255,255,0.7); gap:10px;
  position:relative; overflow:hidden;
}
.maps-placeholder::before { content:''; position:absolute; inset:0; background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.maps-pin { font-size:2.5rem; animation:bounce 1.5s ease-in-out infinite; }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* ===== GALERI FOTO ===== */
.galeri-thumb-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:8px; }
.galeri-thumb {
  aspect-ratio:4/3; border-radius:8px; overflow:hidden;
  cursor:pointer; position:relative;
  border:2px solid transparent; transition:border-color 0.15s, transform 0.15s;
}
.galeri-thumb:hover { border-color:var(--primary); transform:scale(1.02); }
.galeri-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.galeri-thumb-overlay { position:absolute; inset:0; background:rgba(0,0,0,0); transition:background 0.2s; display:flex; align-items:center; justify-content:center; color:#fff; font-size:1.5rem; opacity:0; }
.galeri-thumb:hover .galeri-thumb-overlay { background:rgba(0,0,0,0.35); opacity:1; }

/* Lightbox */
.lightbox { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.9); z-index:9999; align-items:center; justify-content:center; flex-direction:column; gap:12px; padding:20px; }
.lightbox.open { display:flex; }
.lightbox img { max-width:90vw; max-height:80vh; border-radius:8px; object-fit:contain; }
.lightbox-caption { color:rgba(255,255,255,0.8); font-size:0.85rem; text-align:center; }
.lightbox-close { position:absolute; top:16px; right:20px; color:#fff; font-size:1.8rem; cursor:pointer; background:none; border:none; opacity:0.7; }
.lightbox-close:hover { opacity:1; }
.lightbox-nav { position:absolute; top:50%; transform:translateY(-50%); background:rgba(255,255,255,0.15); border:none; color:#fff; width:44px; height:44px; border-radius:50%; font-size:1.2rem; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background 0.2s; }
.lightbox-nav:hover { background:rgba(255,255,255,0.3); }
.lightbox-prev { left:16px; }
.lightbox-next { right:16px; }

/* ===== KORBAN STATS ===== */
.korban-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:10px; }
.korban-item { background:var(--bg); border:1px solid var(--border); border-radius:10px; padding:14px 12px; text-align:center; position:relative; overflow:hidden; }
.korban-item::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; }
.korban-pengungsi::before { background:#2980B9; }
.korban-meninggal::before { background:#E74C3C; }
.korban-hilang::before { background:#8E44AD; }
.korban-berat::before { background:var(--accent); }
.korban-ringan::before { background:#27AE60; }
.korban-num { font-family:'Bebas Neue',sans-serif; font-size:2.2rem; line-height:1; }
.korban-pengungsi .korban-num { color:#2980B9; }
.korban-meninggal .korban-num { color:#E74C3C; }
.korban-hilang .korban-num { color:#8E44AD; }
.korban-berat .korban-num { color:var(--accent); }
.korban-ringan .korban-num { color:#27AE60; }
.korban-label { font-size:0.68rem; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.5px; margin-top:2px; font-weight:600; }
.korban-icon { font-size:1.3rem; margin-bottom:4px; }

/* ===== KERUSAKAN ===== */
.kerusakan-rumah-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
.kerusakan-item { border:1px solid var(--border); border-radius:8px; padding:10px 12px; display:flex; align-items:center; gap:10px; }
.kerusakan-dot { width:10px; height:10px; border-radius:3px; flex-shrink:0; }
.kerusakan-berat { background:#E74C3C; }
.kerusakan-sedang { background:var(--accent); }
.kerusakan-ringan { background:#27AE60; }
.kerusakan-total { background:var(--primary); }
.kerusakan-num { font-family:'Bebas Neue',sans-serif; font-size:1.4rem; line-height:1; }
.kerusakan-lbl { font-size:0.68rem; color:var(--text-muted); font-weight:600; }

.fasum-item { display:flex; align-items:center; justify-content:space-between; padding:8px 0; border-bottom:1px solid var(--border); font-size:0.83rem; }
.fasum-item:last-child { border-bottom:none; }
.fasum-badge { font-size:0.7rem; padding:2px 10px; border-radius:20px; font-weight:600; }
.fasum-badge-terdampak { background:rgba(231,76,60,0.12); color:#E74C3C; }
.fasum-badge-rusak { background:rgba(243,156,18,0.12); color:#d68910; }
.fasum-badge-aman { background:rgba(39,174,96,0.12); color:#27AE60; }

/* ===== INDIKATOR TABLE ===== */
.indikator-table { width:100%; border-collapse:separate; border-spacing:0; font-size:0.82rem; }
.indikator-table thead th { background:var(--primary); color:#fff; padding:10px 14px; font-size:0.72rem; letter-spacing:0.5px; text-transform:uppercase; border:none; }
.indikator-table thead th:first-child { border-radius:8px 0 0 0; }
.indikator-table thead th:last-child { border-radius:0 8px 0 0; }
.indikator-table tbody tr { border-bottom:1px solid var(--border); }
.indikator-table tbody tr:hover { background:rgba(192,57,43,0.04); }
.indikator-table td { padding:10px 14px; color:var(--text); vertical-align:middle; border-bottom:1px solid var(--border); }
.indikator-table td:first-child { font-weight:600; color:var(--text-muted); }
.indikator-table tfoot td { padding:10px 14px; font-weight:700; background:var(--bg); border-top:2px solid var(--border); font-size:0.8rem; }
.indikator-val { font-family:'IBM Plex Mono',monospace; font-size:0.82rem; font-weight:600; }
.val-berat { color:#E74C3C; }
.val-sedang { color:var(--accent); }
.val-ringan { color:#27AE60; }
.val-terancam { color:var(--accent2); }

/* ===== TIMELINE ===== */
.timeline { position:relative; padding-left:32px; }
.timeline::before { content:''; position:absolute; left:10px; top:0; bottom:0; width:2px; background:var(--border); border-radius:1px; }
.timeline-item { position:relative; margin-bottom:24px; }
.timeline-item:last-child { margin-bottom:0; }
.timeline-dot {
  position:absolute; left:-32px; top:4px;
  width:20px; height:20px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:0.65rem; font-weight:700; color:#fff;
  border:2px solid var(--card-bg);
  box-shadow:0 0 0 2px var(--border);
}
.tl-melapor { background:#2980B9; box-shadow:0 0 0 2px rgba(41,128,185,0.3); }
.tl-diterima { background:#8E44AD; box-shadow:0 0 0 2px rgba(142,68,173,0.3); }
.tl-dikerahkan { background:var(--accent); box-shadow:0 0 0 2px rgba(243,156,18,0.3); }
.tl-tiba { background:var(--primary); box-shadow:0 0 0 2px rgba(192,57,43,0.3); }
.tl-penanganan { background:#E74C3C; box-shadow:0 0 0 2px rgba(231,76,60,0.3); }
.tl-kondusif { background:#27AE60; box-shadow:0 0 0 2px rgba(39,174,96,0.3); }
.tl-selesai { background:#1a1a2e; box-shadow:0 0 0 2px var(--border); }
.timeline-card { background:var(--bg); border:1px solid var(--border); border-radius:10px; padding:12px 16px; }
.timeline-time { font-family:'IBM Plex Mono',monospace; font-size:0.68rem; color:var(--text-muted); margin-bottom:4px; }
.timeline-title { font-weight:700; font-size:0.88rem; color:var(--text); margin-bottom:4px; }
.timeline-desc { font-size:0.78rem; color:var(--text-muted); line-height:1.55; }
.timeline-by { font-size:0.68rem; color:var(--text-muted); margin-top:6px; font-style:italic; }
.timeline-status-badge { display:inline-flex; align-items:center; gap:5px; font-size:0.68rem; font-weight:700; padding:2px 10px; border-radius:20px; margin-top:6px; }
.tl-badge-selesai { background:rgba(39,174,96,0.12); color:#27AE60; border:1px solid rgba(39,174,96,0.3); }
.tl-badge-proses { background:rgba(243,156,18,0.12); color:#d68910; border:1px solid rgba(243,156,18,0.3); }

/* ===== HERO ARTIKEL ===== */
.artikel-hero {
  background: linear-gradient(160deg, #1a1a2e 0%, #0d2b4e 60%, #1a1a2e 100%);
  padding: 48px 0 40px;
  position: relative;
  /* overflow: hidden; */
}
.artikel-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 50px, rgba(41,128,185,0.03) 50px, rgba(41,128,185,0.03) 100px);
}
.artikel-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.cat-mitigasi    { background: rgba(41,128,185,0.25); color: #64B5F6; border: 1px solid rgba(41,128,185,0.4); }
.cat-kesiapsiagaan { background: rgba(39,174,96,0.25); color: #69db7c; border: 1px solid rgba(39,174,96,0.4); }
.cat-evakuasi    { background: rgba(243,156,18,0.25); color: #ffd43b; border: 1px solid rgba(243,156,18,0.4); }
.cat-pertolongan { background: rgba(192,57,43,0.25); color: #ff8a80; border: 1px solid rgba(192,57,43,0.4); }
.cat-pemulihan   { background: rgba(142,68,173,0.25); color: #ce93d8; border: 1px solid rgba(142,68,173,0.4); }
.artikel-hero-title {
  font-family: var(--article-font);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: #fff;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 16px;
}
.artikel-hero-excerpt {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  font-family: var(--article-font);
  font-style: italic;
  max-width: 640px;
  margin-bottom: 24px;
}
.artikel-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.artikel-author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}
.artikel-author-avatar img {
  width: 100%;
  height: 100%;
}
.artikel-author-name { font-size: 0.88rem; color: #fff; font-weight: 600; }
.artikel-author-role { font-size: 0.72rem; color: rgba(255,255,255,0.5); }
.artikel-meta-sep { width: 1px; height: 30px; background: rgba(255,255,255,0.15); }
.artikel-meta-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: rgba(255,255,255,0.6);
  font-family: 'IBM Plex Mono', monospace;
}

/* ===== COVER IMAGE ===== */
.artikel-cover {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
  border-radius: 0;
}
.artikel-cover-caption {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  padding: 8px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  font-style: italic;
}

/* ===== LAYOUT ===== */
.artikel-layout {
  padding: 40px 0 60px;
}
.artikel-col { max-width: var(--article-max); }

/* ===== WYSIWYG CONTENT ===== */
.wysiwyg {
  font-family: var(--article-font);
  font-size: 1.0rem;
  line-height: 1.85;
  color: var(--text);
}
.wysiwyg h2 {
  font-family: var(--article-font);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.2rem 0 0.8rem;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
  position: relative;
}
.wysiwyg h2::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--primary);
}
.wysiwyg h3 {
  font-family: var(--article-font);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.8rem 0 0.6rem;
}
.wysiwyg p {
  margin: 0 0 1.3rem;
}
.wysiwyg p:last-child { margin-bottom: 0; }
.wysiwyg strong { font-weight: 700; color: var(--text); }
.wysiwyg em { font-style: italic; color: var(--text-muted); }
.wysiwyg a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.wysiwyg a:hover { color: var(--primary-dark); }

/* Blockquote */
.wysiwyg blockquote {
  margin: 1.8rem 0;
  padding: 16px 20px 16px 24px;
  border-left: 4px solid var(--primary);
  background: rgba(192,57,43,0.05);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.wysiwyg blockquote cite {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  margin-top: 8px;
  color: var(--primary);
  font-weight: 600;
  font-family: 'IBM Plex Sans', sans-serif;
}

/* Lists */
.wysiwyg ul, .wysiwyg ol {
  padding-left: 1.5rem;
  margin: 0 0 1.3rem;
}
.wysiwyg li { margin-bottom: 0.4rem; }
.wysiwyg ul li::marker { color: var(--primary); }
.wysiwyg ol li::marker { color: var(--primary); font-weight: 700; font-family: 'IBM Plex Mono', monospace; }

/* Inline image */
.wysiwyg figure {
  margin: 1.8rem 0;
}
.wysiwyg figure img {
  width: 100%;
  border-radius: 8px;
  display: block;
}
.wysiwyg figcaption {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
  font-family: 'IBM Plex Sans', sans-serif;
}

/* Info box */
.wysiwyg .info-box {
  background: rgba(41,128,185,0.07);
  border: 1px solid rgba(41,128,185,0.25);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 1.8rem 0;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.88rem;
}
.wysiwyg .info-box-title {
  font-weight: 700;
  color: var(--accent2);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 7px;
  font-size: 0.85rem;
}
.wysiwyg .warning-box {
  background: rgba(243,156,18,0.07);
  border: 1px solid rgba(243,156,18,0.3);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 1.8rem 0;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.88rem;
}
.wysiwyg .warning-box-title {
  font-weight: 700;
  color: #d68910;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 7px;
  font-size: 0.85rem;
}
.wysiwyg .danger-box {
  background: rgba(192,57,43,0.07);
  border: 1px solid rgba(192,57,43,0.3);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 1.8rem 0;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.88rem;
}
.wysiwyg .danger-box-title {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 7px;
  font-size: 0.85rem;
}

/* Table in article */
.wysiwyg table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  font-family: 'IBM Plex Sans', sans-serif;
  margin: 1.5rem 0;
}
.wysiwyg table th {
  background: var(--primary);
  color: #fff;
  padding: 9px 14px;
  text-align: left;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.wysiwyg table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.wysiwyg table tr:last-child td { border-bottom: none; }
.wysiwyg table tr:hover td { background: rgba(192,57,43,0.03); }

/* Divider */
.wysiwyg hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ===== READING PROGRESS BAR ===== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--primary);
  z-index: 9999;
  transition: width 0.1s linear;
  width: 0%;
}

/* ===== SIDEBAR ===== */
.sidebar-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.sidebar-card-header {
  background: var(--nav-bg);
  padding: 10px 16px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  color: #fff;
  letter-spacing: 1.5px;
  display: flex; align-items: center; gap: 8px;
}
.sidebar-card-body { padding: 16px; }

.sidebar-kontak-darurat-nomor {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--primary);
  font-size: 1.5rem;
}
.sidebar-kontak-darurat-nomor a {
  font-weight: bold;
  color: var(--primary);
  text-decoration: none;
}
.sidebar-kontak-darurat-nomor img {
  height: 1.5rem;
}
.sidebar-kontak-darurat-deskripsi {
  font-size: 0.78rem;
  margin-bottom: 8px;
}

/* TOC */
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-item { border-bottom: 1px solid var(--border); }
.toc-item:last-child { border-bottom: none; }
.toc-link {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s, padding-left 0.15s;
}
.toc-link:hover, .toc-link.active { color: var(--primary); padding-left: 4px; }
.toc-num { font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem; color: var(--primary); font-weight: 700; flex-shrink: 0; }

/* Tags */
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; background: var(--bg); border: 1px solid var(--border); color: var(--text-muted); text-decoration: none; transition: all 0.15s; }
.tag:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Related articles */
.related-item {
  display: flex; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.15s;
}
.related-item:last-child { border-bottom: none; padding-bottom: 0; }
.related-thumb {
  width: 60px; height: 48px; border-radius: 6px;
  object-fit: cover; flex-shrink: 0;
  background: var(--border);
}
.related-title { font-size: 0.78rem; font-weight: 600; color: var(--text); line-height: 1.35; transition: color 0.15s; }
.related-item:hover .related-title { color: var(--primary); }
.related-date { font-size: 0.65rem; color: var(--text-muted); font-family: 'IBM Plex Mono', monospace; margin-top: 3px; }

/* Share buttons */
.share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 18px; border-radius: 20px; border: none;
  font-size: 0.78rem; font-weight: 600;
  cursor: pointer; transition: all 0.18s;
  text-decoration: none;
}
.share-copy { background: var(--bg); border: 1px solid var(--border); color: var(--text); }
.share-copy:hover { border-color: var(--primary); color: var(--primary); }
.share-print { background: var(--nav-bg); color: #fff; }
.share-print:hover { background: var(--primary); }

/* ===== ARTICLE END SECTION ===== */
.artikel-end {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 32px;
  display: flex; align-items: center; gap: 20px;
  flex-wrap: wrap;
}
.artikel-end-avatar {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #e74c3c);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #fff; flex-shrink: 0;
}
.artikel-end-name { font-weight: 700; font-size: 0.95rem; }
.artikel-end-bio { font-size: 0.78rem; color: var(--text-muted); margin-top: 3px; line-height: 1.5; }

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed; bottom: 90px; right: 20px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer; box-shadow: 0 4px 16px rgba(192,57,43,0.4);
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s;
  z-index: 1000;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { transform: translateY(-3px); }
@media (max-width: 991px) { .scroll-top { bottom: 80px; } }

/* Print button */
.btn-print { background:var(--nav-bg); color:#fff; border:none; border-radius:20px; padding:7px 18px; font-size:0.8rem; cursor:pointer; display:flex; align-items:center; gap:7px; transition:background 0.2s; }
.btn-print:hover { background:var(--primary); }

/* Scrollbar */
::-webkit-scrollbar { width:6px; height:6px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:var(--border); border-radius:3px; }

@media print {
  .sticky-header, .bottom-tab-bar, footer, .btn-print, .page-breadcrumb { display:none!important; }
  body { padding:0!important; }
  .detail-hero { background:#1a1a2e!important; -webkit-print-color-adjust:exact; }
}


/* ===== FULL-HEIGHT MAP WRAPPER ===== */
.map-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
}
#mapPetaBencanaCanvas {
  flex: 1;
  width: 100%;
  min-height: 0;
}
@media (max-width: 991px) {
  /* .map-page { padding-bottom: 60px; } */
  .map-stats-bar { flex-direction: row; top: auto; bottom: 50px; left: 14px; }
}

/* ===== FILTER PANEL ===== */
.filter-panel {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1001;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  width: 300px;
  overflow: hidden;
  transition: all 0.25s;
}
.filter-panel.collapsed .filter-body { display: none; }
.filter-header {
  background: var(--nav-bg);
  padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.filter-header-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem; color: #fff; letter-spacing: 1.5px;
  display: flex; align-items: center; gap: 7px;
}
.filter-toggle-btn {
  background: rgba(255,255,255,0.15); border: none; color: #fff;
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; cursor: pointer; transition: background 0.18s;
}
.filter-toggle-btn:hover { background: rgba(255,255,255,0.3); }
.filter-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-label {
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--text-muted);
}
.filter-select {
  appearance: none; width: 100%;
  border: 1px solid var(--border); border-radius: 8px;
  padding: 7px 28px 7px 10px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.8rem; color: var(--text);
  background: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235D6D7E' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
  outline: none; cursor: pointer; transition: border-color 0.18s;
}
.filter-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(192,57,43,0.12); }
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filter-actions { display: flex; gap: 6px; }
.btn-filter-apply {
  flex: 1; background: var(--primary); color: #fff; border: none;
  border-radius: 8px; padding: 8px; font-size: 0.8rem; font-weight: 600;
  cursor: pointer; transition: background 0.18s;
}
.btn-filter-apply:hover { background: var(--primary-dark); }
.btn-filter-reset {
  background: var(--bg); color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 12px; font-size: 0.8rem; cursor: pointer;
  transition: all 0.18s;
}
.btn-filter-reset:hover { border-color: var(--primary); color: var(--primary); }
.filter-result-count {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem; color: var(--text-muted); text-align: center;
  padding-top: 2px;
}
.filter-result-count strong { color: var(--primary); }

/* ===== MAP LEGEND ===== */
.map-legend {
  position: absolute;
  bottom: 30px; left: 14px;
  z-index: 1000;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.14);
  min-width: 160px;
}
.legend-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.88rem; letter-spacing: 1px;
  color: var(--text-muted); margin-bottom: 8px;
}
.legend-item { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 0.78rem; color: var(--text); }
.legend-item:last-child { margin-bottom: 0; }
.legend-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; border: 2px solid rgba(0,0,0,0.2); }

/* ===== MAP STATS BAR ===== */
.map-stats-bar {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 1000;
  display: flex; flex-direction: column; gap: 8px;
}
.map-stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  text-align: center;
  min-width: 110px;
}
.map-stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem; line-height: 1;
}
.map-stat-label { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

/* ===== DETAIL OVERLAY ===== */
.detail-overlay {
  position: absolute;
  bottom: 30px;
  right: 14px;
  z-index: 1000;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  width: 320px;
  max-height: calc(100% - 60px);
  overflow-y: auto;

  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  pointer-events: none;
}
.detail-overlay.open {
  visibility: visible;
  pointer-events: auto;
  animation: slideIn .25s forwards;
}
.detail-overlay.closing {
  visibility: visible;
  pointer-events: none;
  animation: slideOut .25s forwards;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(16px); }
}
.overlay-header {
  padding: 12px 14px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  position: sticky; top: 0;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  z-index: 1;
}
.overlay-header-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: break-word;
}
.overlay-header-button {
  flex: 0 0 auto;
}
.overlay-jenis-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 0px; border-radius: 20px;
  font-size: 0.68rem; font-weight: 700; margin-bottom: 4px;
}
.overlay-title {
  font-weight: 700; font-size: 0.92rem; line-height: 1.35; color: var(--text);
}
.overlay-close {
  background: var(--bg); border: 1px solid var(--border); color: var(--text-muted);
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; cursor: pointer; transition: all 0.15s; margin-top: 2px;
}
.overlay-close:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.overlay-body { padding: 14px; }
.overlay-row {
  display: flex; align-items: flex-start;
  padding: 7px 0; border-bottom: 1px solid var(--border);
  font-size: 0.8rem; gap: 10px;
}
.overlay-row:last-child { border-bottom: none; padding-bottom: 0; }
.overlay-row-icon { font-size: 1rem; flex-shrink: 0; width: 20px; text-align: center; }
.overlay-row-label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-muted); font-weight: 700; }
.overlay-row-val { color: var(--text); font-weight: 500; line-height: 1.45; }
.overlay-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 6px; margin: 12px 0;
}
.overlay-stat {
  background: var(--bg); border-radius: 8px;
  padding: 8px 6px; text-align: center;
}
.overlay-stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; line-height: 1; }
.overlay-stat-lbl { font-size: 0.6rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; margin-top: 1px; }
.overlay-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  display: flex; gap: 8px;
}
.btn-overlay-detail {
  flex: 1; background: var(--primary); color: #fff; border: none;
  border-radius: 8px; padding: 8px; font-size: 0.78rem; font-weight: 600;
  cursor: pointer; transition: background 0.18s; text-decoration: none;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.btn-overlay-detail:hover { background: var(--primary-dark); color: #fff; }
.btn-overlay-zoom {
  background: var(--bg); border: 1px solid var(--border); color: var(--text-muted);
  border-radius: 8px; padding: 8px 12px; font-size: 0.78rem; cursor: pointer;
  transition: all 0.18s; display: flex; align-items: center; gap: 5px;
}
.btn-overlay-zoom:hover { border-color: var(--primary); color: var(--primary); }

/* ===== STATUS BADGES ===== */
/* .status-aktif    { background: rgba(192,57,43,0.12); color: var(--primary); border: 1px solid rgba(192,57,43,0.3); }
.status-penanganan { background: rgba(243,156,18,0.12); color: #d68910; border: 1px solid rgba(243,156,18,0.3); }
.status-selesai  { background: rgba(39,174,96,0.12); color: #27AE60; border: 1px solid rgba(39,174,96,0.3); } */

.badge-image {
  background: rgba(41,128,185,0.1);
  color: #2980B9;
  font-size: 0.72rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .3rem;
}

.badge-image img {
  height: 1rem;
  width: auto;
}

.badge-ew {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-ew.badge-ekstrem {
  color: #FFF;
  background: rgb(199, 5, 5);
}

.badge-ew.badge-sangat-tinggi {
  color: #FFF;
  background: rgb(233, 20, 20);
}

.badge-ew.badge-tinggi {
  color: #FFF;
  background: rgb(233, 105, 20);
}

.badge-ew.badge-sedang {
  color: #FFF;
  background: rgb(233, 158, 20);
}

/* ===== NOT AVAILABLE CARD ===== */
.card-na {
  background: var(--bg);
  border-radius: var(--radius);
  color: #fff;
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  gap: 0;
}

/* ===== LEAFLET CUSTOM MARKERS ===== */
.custom-marker {
  width: 32px; height: 32px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,0.8);
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  cursor: pointer;
}
.custom-marker-inner {
  transform: rotate(45deg);
  font-size: 0.85rem; line-height: 1;
}
.marker-banjir     { background: #2980B9; }
.marker-longsor    { background: #8E44AD; }
.marker-kebakaran  { background: #E74C3C; }
.marker-angin      { background: #27AE60; }
.marker-gempa      { background: #F39C12; }
.marker-kekeringan { background: #D35400; }
.marker-lainnya    { background: #7F8C8D; }

.marker-shadow {
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.5));
}

/* Leaflet popup override */
/* .leaflet-popup-content-wrapper { display: none; } */

@media (max-width: 768px) {
  .filter-panel { width: calc(100vw - 28px); }
  .detail-overlay { width: calc(100vw - 28px); bottom: 70px; right: 14px; }
  .map-stats-bar { flex-direction: row; top: auto; bottom: 70px; right: 14px; }
  .map-stat-card { min-width: 80px; padding: 7px 10px; }
  .map-stat-num { font-size: 1.3rem; }
  .map-legend { display: none; }
}

/* Modal override */
.modal.modal-albab .modal-content {
  background-color: var(--bg);
}
.modal.modal-albab .modal-content .modal-header {
  border: none;
}
.modal.modal-albab .modal-content .modal-footer {
  border: none;
}

.btn-albab {
  background:var(--primary);
  color:#fff;
  border-radius:20px;
  font-size:0.78rem;
}
.btn-albab:hover,
.btn-albab:active {
  background:var(--primary-dark) !important;
  color: #FFF !important;
}

.btn-gmaps {
  background:var(--bg);
  color:var(--text);
  border: 1px solid var(--text-muted);
  border-radius:20px;
  font-size:0.78rem;
}
.btn-gmaps img {
  display: inline;
  height: 1rem;
}
.btn-gmaps:hover,
.btn-gmaps:active {
  background:var(--card-bg) !important;
  color:var(--text);
  border: 1px solid var(--text-muted);
  border-radius:20px;
}


/* ===== TOAST NOTIFICATION ===== */
.albab-toast-container {
  position: fixed; bottom: 24px; right: 20px;
  z-index: 2000;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
@media (max-width: 991px) { .albab-toast-container { bottom: 90px; } }
.albab-toast {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 8px;
  min-width: 280px;
  max-width: 80vw;
  pointer-events: auto;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.25s;
  opacity: 0;
  border-left-width: 4px;
  border-left-style: solid;
}
.albab-toast.show { transform: translateX(0); opacity: 1; }
.albab-toast.hide { transform: translateX(120%); opacity: 0; }
.albab-toast-strip {
  width: 4px; border-radius: 4px; align-self: stretch; flex-shrink: 0; min-height: 20px;
}
.toast-success { border-left-color: #27AE60; }
.toast-danger  { border-left-color: #E74C3C; }
.toast-warning { border-left-color: var(--accent); }
.toast-info    { border-left-color: var(--accent2); }
.toast-success .albab-toast-strip { background: #27AE60; }
.toast-danger  .albab-toast-strip { background: #E74C3C; }
.toast-warning .albab-toast-strip { background: var(--accent); }
.toast-info    .albab-toast-strip { background: var(--accent2); }
.albab-toast-icon { font-size: 1.7rem; flex-shrink: 0; margin-top: 1px; }
.toast-success .albab-toast-icon { color: #27AE60; }
.toast-danger  .albab-toast-icon { color: #E74C3C; }
.toast-warning .albab-toast-icon { color: var(--accent); }
.toast-info    .albab-toast-icon { color: var(--accent2); }
.albab-toast-content { flex: 1; min-width: 0; }
.albab-toast-title { font-weight: 700; font-size: 0.85rem; color: var(--text); }
.albab-toast-msg { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; line-height: 1.45; }
.albab-toast-close {
  background: none; border: none; color: var(--text-muted);
  font-size: 0.9rem; cursor: pointer; padding: 0; line-height: 1;
  flex-shrink: 0; margin-top: 1px; transition: color 0.15s;
}
.albab-toast-close:hover { color: var(--text); }
.albab-toast-progress {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; border-radius: 0 0 10px 10px; overflow: hidden;
}
.albab-toast-progress-bar {
  height: 100%; width: 100%;
  animation: toastProgress linear forwards;
}
.toast-success .albab-toast-progress-bar { background: #27AE60; }
.toast-danger  .albab-toast-progress-bar { background: #E74C3C; }
.toast-warning .albab-toast-progress-bar { background: var(--accent); }
.toast-info    .albab-toast-progress-bar { background: var(--accent2); }
@keyframes toastProgress { from { width: 100%; } to { width: 0%; } }


/* Dark mode */
[data-bs-theme="dark"] div.dt-container .dt-paging .dt-paging-button {
  color: var(--text) !important;
}
[data-bs-theme="dark"] div.dt-container .dt-paging .dt-paging-button:hover:not(.disabled) {
  color: #fff !important;
}
[data-bs-theme="dark"] .dt-search-box input {
  color: var(--text);
  background: var(--bg);
}
[data-bs-theme="dark"] .table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
}
[data-bs-theme="dark"] .table-bencana tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}