/* ===================================================================
   SILAPOR DLH KABUPATEN LEMBATA — ULTRA-LIGHTWEIGHT & MOBILE-FIRST CSS
   =================================================================== */

:root {
  --primary: #059669;
  --primary-dark: #064e3b;
  --primary-light: #10b981;
  --primary-soft: #ecfdf5;
  --accent: #d97706;
  --bg-body: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f0fdf4;
  background-image: 
    radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.16) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(5, 150, 105, 0.18) 0px, transparent 50%),
    radial-gradient(at 50% 20%, rgba(52, 211, 153, 0.12) 0px, transparent 60%),
    radial-gradient(at 100% 100%, rgba(6, 78, 59, 0.14) 0px, transparent 55%),
    radial-gradient(at 0% 100%, rgba(16, 185, 129, 0.12) 0px, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='70' height='70' viewBox='0 0 70 70' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M35 6 C44 14 50 26 42 38 C34 50 20 44 18 32 C16 20 24 10 35 6 Z M35 64 C26 56 20 44 28 32 C36 20 50 26 52 38 C54 50 46 60 35 64 Z' fill='%23059669' fill-opacity='0.035' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ===================================================================
   HEADER
   =================================================================== */
.app-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 3px 8px rgba(5, 150, 105, 0.3);
}

.brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-cloud-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cloud-badge:hover {
  background: #e2e8f0;
}

.dot-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.btn-wa-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25d366;
  color: white;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  transition: all 0.2s;
}

.btn-wa-header:hover {
  background: #20ba5a;
}

@media (max-width: 600px) {
  .btn-wa-header span {
    display: none;
  }
}

/* ===================================================================
   NAVIGATION BAR (TABS)
   =================================================================== */
.nav-bar {
  background: #ffffff;
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 65px;
  z-index: 90;
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 8px;
}

.nav-inner::-webkit-scrollbar {
  display: none;
}

.nav-tab-btn {
  background: none;
  border: none;
  padding: 12px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.nav-tab-btn:hover {
  color: var(--primary);
}

.nav-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ===================================================================
   MAIN CONTAINER & TABS
   =================================================================== */
.main-wrap {
  flex: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 16px 80px 16px;
}

.tab-content {
  display: none;
  animation: fadeIn 0.25s ease-out forwards;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Welcome Box */
.welcome-box {
  background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
}

.welcome-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #a7f3d0;
  margin-bottom: 10px;
}

.welcome-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
}

.welcome-desc {
  font-size: 0.88rem;
  color: #d1fae5;
  line-height: 1.5;
}

/* ===================================================================
   FORMULIR ADUAN UTAMA
   =================================================================== */
.form-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.form-card-header {
  padding: 20px 24px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}

.form-card-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.form-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
}

.form-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.aduan-form {
  padding: 24px;
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin: 18px 0 14px 0;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--primary-soft);
}

.form-section-title:first-child {
  margin-top: 0;
}

.form-section-title span {
  width: 22px;
  height: 22px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.form-section-title span.badge-disarankan {
  width: auto !important;
  height: auto !important;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  border-radius: 9999px !important;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-left: 4px;
  display: inline-flex;
  align-items: center;
  line-height: 1.4;
}

.upload-area-instruction {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 640px) {
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.form-field {
  margin-bottom: 16px;
}

.field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.req {
  color: #e11d48;
}

.input-text,
.input-select,
.input-textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #ffffff;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

.input-text:focus,
.input-select:focus,
.input-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.input-sm {
  padding: 6px 10px;
  font-size: 0.82rem;
  background: #f8fafc;
}

/* Validation Styles & Loading Spinner */
.input-text.input-invalid {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.input-text.input-valid {
  border-color: #10b981 !important;
  background-color: #f0fdf4 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}

.input-validation-msg {
  font-size: 0.78rem;
  margin-top: 5px;
  font-weight: 600;
  line-height: 1.4;
  transition: all 0.2s ease;
}

.input-validation-msg.msg-error {
  color: #dc2626;
  display: block;
}

.input-validation-msg.msg-success {
  color: #059669;
  display: block;
}

.btn-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spinLoading 0.75s linear infinite;
  vertical-align: middle;
  flex-shrink: 0;
}

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

/* Category Selection Chips */
.category-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.chip-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.2s;
}

.chip-item input[type="radio"] {
  display: none;
}

.chip-item:hover {
  background: var(--primary-soft);
  border-color: #86efac;
}

.chip-item.active {
  background: #dcfce7;
  border-color: var(--primary);
  color: #065f46;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.15);
}

/* GPS Button Box */
.gps-box {
  margin-bottom: 12px;
}

.btn-gps {
  width: 100%;
  padding: 10px 16px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #059669;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-gps:hover {
  background: #dcfce7;
}

.gps-status-msg {
  font-size: 0.78rem;
  margin-top: 6px;
  display: none;
}

/* Main Submit Button */
.btn-submit-main {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, #047857 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
  transition: all 0.2s;
  margin-top: 10px;
}

.btn-submit-main:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.4);
}

.submit-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}

/* ===================================================================
   TRACKING TAB
   =================================================================== */
.track-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}

.track-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.track-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.track-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.input-track {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.btn-track-action {
  padding: 10px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn-track-action:hover {
  background: #047857;
}

.quick-sample-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.btn-sample-tag {
  background: #f1f5f9;
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.78rem;
  cursor: pointer;
}

.btn-sample-tag:hover {
  background: #e2e8f0;
}

.track-result-wrap {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 28px;
  margin-top: 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 8px;
  width: 2px;
  background: #e2e8f0;
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #cbd5e1;
}

.timeline-item.completed .timeline-dot {
  background: var(--primary);
  border-color: var(--primary-soft);
}

.timeline-item.active .timeline-dot {
  background: #f59e0b;
  border-color: #fef3c7;
}

.timeline-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
}

.timeline-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 0.85rem;
  color: #475569;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-top: 4px;
}

/* ===================================================================
   MAP TAB
   =================================================================== */
#pane-peta {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.map-card-box {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.map-header-bar {
  padding: 12px 20px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.map-header-info {
  flex: 1;
  min-width: 260px;
}

.map-header-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.map-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}

.live-pulse-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: #10b981;
  opacity: 0.6;
  animation: livePulse 2s infinite ease-out;
}

@keyframes livePulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.map-main-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #064e3b;
  margin: 0;
  line-height: 1.25;
}

.map-sub-title {
  font-size: 0.82rem;
  color: #64748b;
  margin: 4px 0 0 0;
  line-height: 1.4;
}

/* Basemap Switcher Buttons (Segmented Control Kapsul Tipis Datar) */
.map-basemap-buttons {
  display: inline-flex;
  align-items: center;
  background: #e2e8f0;
  padding: 3px;
  border-radius: 8px;
  gap: 2px;
}

.btn-basemap {
  background: transparent;
  border: none;
  padding: 5px 12px;
  height: 30px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-basemap:hover {
  color: #0f172a;
}

.btn-basemap.active {
  background: #ffffff;
  color: #065f46;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Dashboard Control Bar (Desktop Sejajar di Atas Peta) */
.map-dashboard-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
}

/* Mini KPI Metric Strip (Format: [Dot Warna] [Angka Tebal] [Label Ringkas]) */
.map-stats-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 3px 8px;
  height: 36px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.map-stat-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 6px;
  font-size: 0.75rem;
  white-space: nowrap;
}

.map-stat-divider {
  width: 1px;
  height: 14px;
  background: #cbd5e1;
  flex-shrink: 0;
}

.mstat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.dot-total {
  background-color: #3b82f6;
}

.dot-baru {
  background-color: #f59e0b;
}

.dot-proses {
  background-color: #2563eb;
}

.dot-selesai {
  background-color: #059669;
}

.mstat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.mstat-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1;
}

.chip-amber .mstat-num {
  color: #d97706;
}

.chip-blue .mstat-num {
  color: #2563eb;
}

.chip-green .mstat-num {
  color: #059669;
}

/* Filter Toolbar */
.map-toolbar {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.map-filters-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: flex-end;
}

.map-filters-row-top,
.map-filters-row-bottom {
  display: contents;
}

.map-filter-col {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.col-kecamatan {
  flex: 1.1;
  min-width: 130px;
}

.col-jenis {
  flex: 1.1;
  min-width: 130px;
}

.col-status {
  flex: 1;
  min-width: 125px;
}

.col-reset {
  flex-shrink: 0;
}

.map-filter-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
  display: none;
}

.map-select {
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  padding: 0 24px 0 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1e293b;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  outline: none;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color 0.15s ease;
}

.map-select:focus {
  border-color: #059669;
}

.btn-reset-map {
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  padding: 0 14px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  outline: none;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-reset-map:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
}

/* Quick Region Pills (Horizontal Scroll) */
.map-region-pills {
  padding: 8px 16px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.region-pills-label {
  font-size: 0.74rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  white-space: nowrap;
  margin-right: 4px;
}

.pill-region {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.pill-region:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.pill-region.active {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

/* ===================================================================
   GEOSPASIAL COMMAND CENTER (DLH KABUPATEN LEMBATA)
   Desktop Split-Screen (5fr:7fr) & Mobile-First Dual View
   =================================================================== */

/* Lebar Kontainer Utama Saat Tab Peta Aktif */
.main-wrap.wide-mode,
.main-wrap:has(#pane-peta.active) {
  max-width: 1440px !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* 1. Top Bar Komando */
.map-command-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.map-command-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.map-topbar-headings {
  min-width: 0;
}

.map-command-title {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #064e3b;
  margin: 0;
  line-height: 1.25;
}

.map-command-subtitle {
  font-size: 0.76rem;
  color: #64748b;
  margin: 2px 0 0 0;
  line-height: 1.3;
}

.btn-back-beranda {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-back-beranda:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.map-badge-live {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.live-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.6);
  animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* 2. Mobile Segmented Switcher (< 1024px) */
.map-mobile-switcher {
  display: none;
}

@media (max-width: 1023px) {
  .map-mobile-switcher {
    display: flex;
    gap: 6px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-bottom: 12px;
  }

  .btn-mobi-view {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.15s ease;
  }

  .btn-mobi-view.active {
    background: #ffffff;
    color: #064e3b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  }
}

/* 3. Command Center Layout Grid (Split-Screen Desktop vs Mobile) */
.map-command-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

@media (min-width: 1024px) {
  .map-command-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
}

/* 4. Panel Pengawasan, Filter & Navigasi Spasial */
.map-feed-panel {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  min-width: 0;
}

@media (min-width: 1024px) {
  .map-feed-panel {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
  }
}

.map-feed-header {
  flex-shrink: 0;
  background: #ffffff;
}

.map-feed-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  gap: 10px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

.map-feed-heading-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.map-feed-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-chip-formal {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.map-chip-formal .badge-sub-label {
  display: inline;
}

/* Mini KPI Metric Strip */
.map-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 6px 8px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  box-sizing: border-box;
}

.map-stat-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 2px 4px;
  min-width: 0;
}

.map-stat-divider {
  display: none;
}

.mstat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-total { background: #3b82f6; }
.dot-baru { background: #f59e0b; }
.dot-proses { background: #2563eb; }
.dot-selesai { background: #059669; }

.mstat-num {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.mstat-lbl {
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Bilah Filter Spasial */
.map-filter-toggle-row {
  display: none;
}

.map-filters-collapsible {
  display: block;
}

.map-toolbar {
  padding: 8px 10px;
  background: #ffffff;
}

.map-filters-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 8px;
  align-items: end;
}

@media (max-width: 767px) {
  .map-filters-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
}

.map-filter-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.map-filter-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin: 0;
  white-space: nowrap;
}

.map-select {
  height: 32px;
  font-size: 0.75rem;
  padding: 0 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background-color: #ffffff;
  color: #1e293b;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s ease;
}

.map-select:focus {
  border-color: #059669;
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.15);
}

.btn-reset-map {
  height: 32px;
  padding: 0 10px;
  font-size: 0.74rem;
  font-weight: 600;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  transition: all 0.15s ease;
  width: 100%;
}

.btn-reset-map:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Quick Region Navigator Pills */
.map-region-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.map-region-pills::-webkit-scrollbar {
  display: none;
}

.region-pills-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  margin-right: 2px;
  flex-shrink: 0;
}

.pill-region {
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.pill-region:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.pill-region.active {
  background: #065f46;
  border-color: #065f46;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(6, 95, 70, 0.25);
}

/* Feed Wadah Scroll Mandiri Daftar Titik Aduan */
.map-feed-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
  box-sizing: border-box;
}

@media (max-width: 1023px) {
  .map-feed-scroll {
    max-height: 60vh;
  }
}

/* 5. Ultra-Compact Card Styling */
.map-aduan-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.map-aduan-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

.mac-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.mac-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mac-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.2;
}

.mac-badge-baru {
  background: #fef3c7 !important;
  color: #b45309 !important;
  border: 1px solid #fde68a !important;
}

.mac-badge-verifikasi {
  background: #f3e8ff !important;
  color: #7e22ce !important;
  border: 1px solid #d8b4fe !important;
}

.mac-badge-proses {
  background: #dbeafe !important;
  color: #1d4ed8 !important;
  border: 1px solid #bfdbfe !important;
}

.mac-badge-selesai {
  background: #dcfce7 !important;
  color: #047857 !important;
  border: 1px solid #a7f3d0 !important;
}

.mac-badge-tidak-dapat-ditindaklanjuti,
.mac-badge-ditolak {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

.mac-row-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mac-category {
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.mac-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  color: #64748b;
  min-width: 0;
  line-height: 1.3;
}

.mac-loc-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mac-desc {
  font-size: 0.74rem;
  color: #475569;
  margin: 0;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mac-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  padding-top: 5px;
  border-top: 1px dashed #f1f5f9;
}

.btn-mac-highlight {
  flex: 1;
  min-width: 0;
  height: 31px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0 10px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-mac-highlight:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
}

.btn-mac-detail {
  height: 31px;
  background: #065f46;
  border: 1px solid #065f46;
  color: #ffffff;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0 12px;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-mac-detail:hover {
  background: #047857;
  border-color: #047857;
  color: #ffffff;
}

/* 6. Kolom Kanan: Peta Spasial Leaflet Sticky / Full Height */
.map-view-panel {
  display: block;
  position: relative;
  background: #e0f2fe;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  min-width: 0;
}

@media (min-width: 1024px) {
  .map-view-panel {
    width: 100% !important;
    height: calc(100vh - 270px) !important;
    min-height: 560px !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .map-view-panel {
    width: 100% !important;
    height: 60vh !important;
    min-height: 460px !important;
  }
}

@media (max-width: 767px) {
  .map-view-panel {
    width: 100% !important;
    height: 68vh !important;
    min-height: 440px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
  }
}

.map-render-container {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  background: #e0f2fe;
}

/* Sembunyikan label landmark geografis permanen agar kanvas peta bersih di semua mode (desktop & mobile) */
.landmark-map-label,
.custom-landmark-pin {
  display: none !important;
}

/* Floating Basemap Switcher (Jalan, Satelit, Topografi) */
.map-floating-basemap {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(203, 213, 225, 0.9);
  padding: 3px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-basemap {
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.btn-basemap:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.btn-basemap.active {
  background: #065f46;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(6, 95, 70, 0.3);
}

/* Floating Glassmorphism Legend di Sudut Peta */
.map-legend-box {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-size: 0.74rem;
  max-width: 240px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.legend-header {
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(248, 250, 252, 0.9);
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
  user-select: none;
}

.legend-header-title {
  font-weight: 700;
  color: #1e293b;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-toggle {
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0 2px;
}

.legend-items {
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.legend-item:hover {
  background: #f1f5f9;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-text {
  color: #334155;
  font-size: 0.72rem;
  line-height: 1.2;
}

/* Custom Marker Styling (Gov Clean Dot Pin) */
.custom-leaflet-marker {
  position: relative;
  width: 28px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marker-pin {
  width: 26px;
  height: 26px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.marker-pin-dot {
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  display: block;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.custom-leaflet-marker:hover .marker-pin {
  transform: rotate(-45deg) scale(1.18);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.marker-pulse-ring {
  position: absolute;
  top: 0px;
  left: 1px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid;
  opacity: 0.8;
  animation: markerHalo 2.2s infinite;
  pointer-events: none;
}

@keyframes markerHalo {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Leaflet Tooltip */
.leaflet-tooltip.custom-map-tooltip {
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(6px);
  border: 1px solid #334155;
  border-radius: 10px;
  color: white;
  padding: 10px 14px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  font-family: 'Plus Jakarta Sans', sans-serif;
  max-width: 260px;
}

.leaflet-tooltip-top:before {
  border-top-color: rgba(15, 23, 42, 0.94);
}

.map-tooltip-content .tt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  gap: 8px;
}

.map-tooltip-content .tt-id {
  font-family: monospace;
  font-weight: 800;
  font-size: 0.75rem;
  color: #34d399;
}

.map-tooltip-content .tt-status {
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.map-tooltip-content .tt-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 2px;
}

.map-tooltip-content .tt-loc {
  font-size: 0.74rem;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.map-tooltip-content .tt-desc {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.35;
  margin-bottom: 6px;
}

.map-tooltip-content .tt-hint {
  font-size: 0.68rem;
  color: #6ee7b7;
  font-weight: 600;
  border-top: 1px solid #334155;
  padding-top: 4px;
}

/* Custom Leaflet Popup DLH Lembata */
.custom-dlh-popup .leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  border: 1px solid #cbd5e1;
  overflow: hidden;
  background: #ffffff;
}

.custom-dlh-popup .leaflet-popup-content {
  margin: 8px 10px 6px 10px !important;
  line-height: 1.35 !important;
  font-size: 0.76rem !important;
  max-width: 270px !important;
  max-height: 220px;
  overflow-y: auto;
}

.custom-dlh-popup .leaflet-popup-tip-container {
  overflow: visible;
}

.custom-dlh-popup .leaflet-popup-tip {
  background: #ffffff;
}

.custom-dlh-popup a.leaflet-popup-close-button {
  top: 6px !important;
  right: 6px !important;
  color: #64748b !important;
  font-size: 15px !important;
  width: 18px !important;
  height: 18px !important;
  line-height: 18px !important;
  text-align: center !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: rgba(241, 245, 249, 0.85) !important;
  border: none !important;
}
.custom-dlh-popup a.leaflet-popup-close-button:hover {
  color: #0f172a !important;
  background: #e2e8f0 !important;
}

/* Leaflet Popup Card */
.map-popup-card {
  font-family: 'Plus Jakarta Sans', sans-serif;
  min-width: 240px;
  max-width: 290px;
  display: flex;
  flex-direction: column;
  padding: 2px 2px 4px 2px;
}

.popup-body-scroll {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 2px;
  scrollbar-width: thin;
}

#mapMobileSwitcher,
.map-mobile-switcher,
#mapAduanGrid,
.map-feed-scroll {
  display: none !important;
}

.popup-body-scroll::-webkit-scrollbar {
  width: 4px;
}

.popup-body-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f1f5f9;
}

.popup-id {
  font-family: monospace;
  font-weight: 800;
  color: #065f46;
  font-size: 0.98rem;
}

.popup-cat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.96rem;
  font-weight: 800;
  color: #047857;
  margin-bottom: 10px;
}

.popup-location {
  font-size: 0.84rem;
  color: #334155;
  margin-bottom: 10px;
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
  line-height: 1.4;
}

.popup-detail-loc {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 3px;
}

.popup-coords {
  font-family: monospace;
  font-size: 0.78rem;
  color: #0d9488;
  font-weight: 700;
  margin-top: 5px;
}

.popup-chronology {
  font-size: 0.84rem;
  color: #1e293b;
  line-height: 1.45;
  margin-bottom: 10px;
}

.popup-chronology p {
  margin: 3px 0 0 0;
  color: #475569;
}

.popup-dlh-status {
  background: #ecfdf5;
  border-left: 3.5px solid #10b981;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #065f46;
  margin-bottom: 12px;
  line-height: 1.4;
}

.popup-actions {
  display: flex;
  gap: 6px;
}

/* ===================================================================
   MOBILE-FIRST SPATIAL MAP OPTIMIZATION (< 768px)
   Full-Bleed, Edge-to-Edge Canvas, Single-Row Header, De-Cluttered Map
   =================================================================== */
@media (max-width: 767px) {
  /* 1. Eliminasi Margin & Padding Luar (Full-Bleed) */
  .main-wrap.wide-mode,
  .main-wrap.peta-active,
  .main-wrap:has(#pane-peta.active) {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 24px !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  #pane-peta {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .map-command-layout {
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  /* 2. Header & Identitas: Satu Baris Kompak */
  .map-command-topbar {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    padding: 6px 10px !important;
    margin-bottom: 4px !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }

  .map-command-title-group {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    flex: 1 !important;
  }

  .btn-back-beranda {
    padding: 4px 8px !important;
    font-size: 0.74rem !important;
    height: 28px !important;
    border-radius: 999px !important;
    flex-shrink: 0 !important;
  }

  .map-topbar-headings {
    min-width: 0 !important;
    flex: 1 !important;
    overflow: hidden !important;
  }

  .map-command-title {
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 !important;
    line-height: 1.2 !important;
  }

  /* Hapus Subjudul Panjang di Mobile */
  .map-command-subtitle {
    display: none !important;
  }

  .map-topbar-meta {
    flex-shrink: 0 !important;
  }

  .map-badge-live {
    font-size: 0.62rem !important;
    padding: 2px 6px !important;
  }

  /* Segmented Mobile Switcher (Peta vs Daftar) */
  .map-mobile-switcher {
    margin: 6px 8px !important;
    padding: 3px !important;
    border-radius: 8px !important;
    background: #f1f5f9 !important;
  }

  .btn-mobi-view {
    padding: 6px 10px !important;
    font-size: 0.75rem !important;
  }

  /* 3. Kanvas Peta Penuh Tepi (Edge-to-Edge Full-Bleed 68vh) */
  .map-view-panel {
    width: 100% !important;
    height: 68vh !important;
    min-height: 440px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
  }

  #map,
  .map-render-container {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
  }

  /* 4. Dekompresi Panel Kontrol & Filter */
  .map-feed-panel {
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    box-shadow: none !important;
    width: 100% !important;
  }

  .map-feed-header {
    border-bottom: none !important;
  }

  .map-feed-title-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 10px !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }

  .map-feed-heading-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
  }

  /* Judul "Sebaran Titik Pengaduan" utuh tanpa elipsis/terpotong */
  .map-feed-title {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    margin: 0 !important;
    line-height: 1.2 !important;
  }

  .map-chip-formal {
    font-size: 0.68rem !important;
    padding: 2px 7px !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
    border-radius: 6px !important;
  }

  /* Sembunyikan label panjang pada badge status di mobile ("15 Titik") */
  .map-chip-formal .badge-sub-label {
    display: none !important;
  }

  /* Mini Metric Strip: 1 Baris Horizontal Chip (flex-nowrap overflow-x-auto gap-1.5) */
  .map-stats-strip {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 6px !important;
    padding: 4px 10px !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
  }
  .map-stats-strip::-webkit-scrollbar {
    display: none;
  }

  .map-stat-chip {
    flex: 1 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 3px 8px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 999px !important;
    font-size: 0.7rem !important;
    box-sizing: border-box !important;
  }

  .mstat-dot {
    width: 6px !important;
    height: 6px !important;
  }

  .mstat-num {
    font-size: 0.76rem !important;
    font-weight: 800 !important;
  }

  .mstat-lbl {
    font-size: 0.65rem !important;
    color: #64748b !important;
  }

  /* Baris Toggle Filter Mobile */
  .map-filter-toggle-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 4px 10px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
  }

  .map-filter-toggle-hint {
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
  }

  .btn-toggle-filters-mobile {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    color: #065f46 !important;
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    line-height: 1.2 !important;
  }

  /* Collapsible Filters Container */
  .map-filters-collapsible.collapsed {
    display: none !important;
  }

  /* Filter Padat: 2 Kolom Rapat (grid grid-cols-2 gap-1.5) */
  .map-toolbar {
    padding: 6px 10px !important;
    background: #ffffff !important;
  }

  .map-filters-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    width: 100% !important;
    align-items: end !important;
  }

  .map-filter-col {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    min-width: 0 !important;
  }

  .map-filter-label {
    font-size: 0.64rem !important;
    font-weight: 700 !important;
    color: #64748b !important;
    margin: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .map-select {
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    font-size: 0.72rem !important;
    padding: 0 6px !important;
    border-radius: 6px !important;
    border: 1px solid #cbd5e1 !important;
    background-color: #ffffff !important;
    width: 100% !important;
  }

  .btn-reset-map {
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    font-size: 0.72rem !important;
    padding: 0 6px !important;
    border-radius: 6px !important;
    width: 100% !important;
  }

  .map-region-pills {
    padding: 4px 10px !important;
    gap: 4px !important;
    background: #f8fafc !important;
  }

  .pill-region {
    padding: 2px 8px !important;
    font-size: 0.68rem !important;
  }

  /* 5. Pembersihan Kanvas Peta (De-Cluttering Map Mobile) */
  /* Sembunyikan kontrol layer bawaan Leaflet */
  .leaflet-control-layers {
    display: none !important;
  }

  /* Sembunyikan label landmark permanen di atas pulau agar tidak bertumpuk */
  .landmark-map-label {
    display: none !important;
  }

  /* Basemap switcher mengambang kompak */
  .map-floating-basemap {
    top: 8px !important;
    right: 8px !important;
    padding: 2px !important;
    gap: 2px !important;
    border-radius: 6px !important;
  }

  .btn-basemap {
    padding: 3px 7px !important;
    font-size: 0.68rem !important;
    border-radius: 5px !important;
  }

  /* Legenda Kompak (Floating Pill Button di Sudut Kiri Bawah) */
  .map-legend-box {
    position: absolute !important;
    bottom: 12px !important;
    left: 8px !important;
    right: auto !important;
    z-index: 1000 !important;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
    font-size: 0.7rem !important;
    max-width: 200px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .legend-header {
    padding: 4px 8px !important;
    cursor: pointer !important;
    user-select: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    border-radius: 6px !important;
    background: transparent !important;
    border-bottom: none !important;
  }

  .map-legend-box.expanded .legend-header {
    border-bottom: 1px solid #e2e8f0 !important;
    border-radius: 6px 6px 0 0 !important;
    background: rgba(248, 250, 252, 0.95) !important;
  }

  .map-legend-box:not(.expanded) .legend-items {
    display: none !important;
  }

  .map-legend-box.expanded .legend-items {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    padding: 6px 8px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border-radius: 0 0 6px 6px !important;
  }

  .legend-header-title {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
  }

  .legend-toggle {
    font-size: 0.7rem !important;
    color: #64748b !important;
  }

  .legend-item {
    font-size: 0.68rem !important;
    padding: 2px 4px !important;
  }

  .legend-dot {
    width: 6px !important;
    height: 6px !important;
  }

  .legend-text {
    font-size: 0.68rem !important;
  }

  /* 6. Z-Index & Penempatan Tombol WhatsApp di Mobile */
  body:has(#pane-peta.active) .floating-wa-btn,
  .main-wrap.wide-mode ~ .floating-wa-btn {
    bottom: 20px !important;
    right: 10px !important;
    padding: 9px !important;
    z-index: 995 !important;
  }

  .leaflet-bottom.leaflet-right {
    max-width: 60% !important;
    overflow: hidden !important;
  }

  .leaflet-control-attribution {
    font-size: 8px !important;
    background: rgba(255, 255, 255, 0.7) !important;
    margin-right: 48px !important; /* Mencegah benturan dengan tombol WA */
  }

  /* Feed Wadah Scroll Mandiri di Layar Ponsel */
  .map-feed-scroll {
    max-height: 65vh !important;
    padding: 8px !important;
    gap: 8px !important;
  }

  /* 7. Leaflet Custom DLH Popup Mobile */
  .custom-dlh-popup .leaflet-popup-content {
    margin: 6px 8px 5px 8px !important;
    font-size: 0.72rem !important;
    max-width: 240px !important;
    max-height: 185px;
  }

  .map-popup-card {
    min-width: 220px !important;
    max-width: 260px !important;
    font-size: 0.72rem !important;
    padding-bottom: 2px !important;
  }

  .popup-body-scroll {
    max-height: 180px !important;
    overflow-y: auto !important;
    margin-bottom: 2px !important;
  }

  .popup-head {
    margin-bottom: 4px !important;
    padding-bottom: 4px !important;
  }

  .popup-id {
    font-size: 0.8rem !important;
  }

  .popup-cat {
    font-size: 0.78rem !important;
    margin-bottom: 5px !important;
  }

  .popup-location {
    font-size: 0.7rem !important;
    padding: 5px 8px !important;
    margin-bottom: 5px !important;
    border-radius: 6px !important;
  }

  .popup-detail-loc,
  .popup-coords {
    font-size: 0.65rem !important;
    margin-top: 2px !important;
  }

  .popup-chronology {
    font-size: 0.7rem !important;
    margin-bottom: 5px !important;
  }

  .popup-chronology p {
    font-size: 0.7rem !important;
    margin-top: 2px !important;
    line-height: 1.35 !important;
  }

  .popup-dlh-status {
    font-size: 0.7rem !important;
    padding: 5px 8px !important;
    margin-bottom: 6px !important;
    border-radius: 6px !important;
    line-height: 1.35 !important;
  }

  .popup-actions .btn {
    font-size: 0.72rem !important;
    padding: 6px 10px !important;
    height: 30px !important;
  }
}

/* Badge Nomor Kartu Riwayat Pengaduan Instansi (Sub-Bab 6.x) */
.riwayat-badge-num {
  min-width: 32px;
  height: 22px;
  padding: 0 6px;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(5, 150, 105, 0.25);
}

@keyframes fadeInSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .riwayat-card-item {
    padding: 10px 12px !important;
    margin-bottom: 8px !important;
  }
  .riwayat-card-body {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    align-items: flex-end !important;
  }
  .riwayat-card-body .input-text {
    font-size: 14px !important;
    padding: 8px 10px !important;
    min-height: 40px !important;
  }
  .riwayat-sublabel {
    font-size: 0.72rem !important;
  }
  .btn-add-riwayat {
    padding: 8px 12px !important;
    font-size: 0.78rem !important;
  }
}

/* ===================================================================
   ANIMASI TRANSISI MENUJU RUANG PETUGAS (FLOATING CIVIC PILL)
   =================================================================== */
#officerTransitPill {
  position: fixed;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: #064e3b;
  color: #ffffff;
  border: 1px solid rgba(110, 231, 183, 0.4);
  box-shadow: 0 12px 30px -5px rgba(6, 78, 59, 0.4), 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 20px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  z-index: 9999999;
  transition: top 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

#officerTransitPill.show {
  top: 18px;
  opacity: 1;
}

.transit-mini-spin {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #34d399;
  border-radius: 50%;
  animation: transitSpin 0.6s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes transitSpin {
  100% { transform: rotate(360deg); }
}

#topGlowBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #059669, #34d399);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.8);
  z-index: 9999999;
  transition: width 0.25s ease-out;
  pointer-events: none;
}

/* Tombol Navigasi Header Akses Petugas */
.btn-header-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff !important;
  border: 1px solid rgba(5, 150, 105, 0.35);
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
  white-space: nowrap;
}

.btn-header-link:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.btn-header-link:active {
  transform: translateY(0);
}

@media (max-width: 640px) {
  .btn-header-link {
    font-size: 0.72rem;
    padding: 5px 10px;
  }
}

/* ===================================================================
   SPLIT-SCREEN MODE & COMPACT CARD FEED (DASHBOARD PETUGAS)
   =================================================================== */
@media (min-width: 1024px) {
  .command-center-layout.split-mode {
    display: grid !important;
    grid-template-columns: minmax(360px, 0.95fr) minmax(440px, 1.05fr) !important;
    gap: 20px !important;
    align-items: start !important;
  }

  .command-center-layout.split-mode .table-responsive {
    display: none !important;
  }

  .command-center-layout.split-mode .aduan-compact-feed {
    display: flex !important;
  }

  /* Optimasi Kompak & Proporsional Kontrol Peta Khusus Mode Split-Screen Desktop */
  .command-center-layout.split-mode .officer-map-card .map-card-header {
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .command-center-layout.split-mode .officer-map-card .map-card-header > div:first-child {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .command-center-layout.split-mode .officer-map-card .map-card-title {
    font-size: 0.98rem;
    font-weight: 800;
    margin: 0;
  }

  .command-center-layout.split-mode .officer-map-card .map-card-sub {
    display: none !important;
  }

  .command-center-layout.split-mode .officer-map-card .map-header-controls {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }

  .command-center-layout.split-mode .officer-map-card .map-mode-pill-group {
    display: inline-flex;
    padding: 2px;
    gap: 2px;
    background: #f1f5f9;
    border-radius: 999px;
  }

  .command-center-layout.split-mode .officer-map-card .btn-map-mode {
    padding: 4px 8px;
    font-size: 0.72rem;
    border-radius: 999px;
  }

  .command-center-layout.split-mode .officer-map-card .map-action-row-group {
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }

  .command-center-layout.split-mode .officer-map-card .map-basemap-select {
    padding: 3px 6px;
    font-size: 0.72rem;
    height: 28px;
    border-radius: 6px;
    max-width: 150px;
  }

  .command-center-layout.split-mode .officer-map-card .btn-focus-lmb {
    padding: 3px 8px;
    font-size: 0.72rem;
    height: 28px;
    border-radius: 6px;
  }

  .command-center-layout.split-mode .officer-map-card .map-filter-strip {
    padding: 6px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
  }

  .command-center-layout.split-mode .officer-map-card .map-stat-indicator {
    font-size: 0.71rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 48%;
  }

  .command-center-layout.split-mode .officer-map-card .map-filter-group {
    display: flex;
    gap: 4px;
    align-items: center;
  }

  .command-center-layout.split-mode .officer-map-card .map-mini-select {
    padding: 3px 5px;
    font-size: 0.71rem;
    height: 26px;
    border-radius: 6px;
    max-width: 125px;
  }

  /* Popup Leaflet Anti-Terpotong (Desktop Mode) */
  .command-center-layout.split-mode .custom-dlh-popup .leaflet-popup-content-wrapper,
  .custom-dlh-popup .leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border: 1px solid #cbd5e1;
    overflow: hidden;
  }

  .command-center-layout.split-mode .custom-dlh-popup .leaflet-popup-content,
  .custom-dlh-popup .leaflet-popup-content {
    margin: 8px 10px 6px 10px !important;
    font-size: 0.76rem !important;
    max-width: 270px !important;
    line-height: 1.35 !important;
  }

  .custom-dlh-popup .leaflet-popup-tip {
    background: #ffffff;
  }
}

.aduan-compact-feed {
  display: none;
  flex-direction: column;
  gap: 10px;
  max-height: calc(100vh - 220px);
  min-height: 480px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 6px 14px 2px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.aduan-compact-feed::-webkit-scrollbar {
  width: 6px;
}

.aduan-compact-feed::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 999px;
}

.aduan-compact-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 6px;
  user-select: none;
}

.aduan-compact-card:hover {
  border-color: #34d399;
  background: #f0fdf4;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.1);
}

.aduan-compact-card.is-active {
  border-color: #059669 !important;
  background: #ecfdf5 !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.35), 0 6px 16px rgba(5, 150, 105, 0.18) !important;
  transform: translateY(-1px);
}

.aduan-compact-card.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  background: linear-gradient(180deg, #059669 0%, #10b981 100%);
  border-radius: 0 4px 4px 0;
}

.aduan-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.aduan-card-ticket {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  color: #064e3b;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.4px;
}

.aduan-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.aduan-card-loc {
  font-size: 0.76rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.aduan-card-submeta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: #64748b;
  border-top: 1px dashed #e2e8f0;
  padding-top: 6px;
  margin-top: 2px;
}

.aduan-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.btn-card-action {
  flex: 1;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-card-action:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.btn-card-action.btn-card-verify {
  background: #059669;
  color: #ffffff;
  border-color: #047857;
  font-weight: 700;
}

.btn-card-action.btn-card-verify:hover {
  background: #047857;
}

.btn-card-action.btn-card-wa {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
  font-weight: 700;
}

.btn-card-action.btn-card-wa:hover {
  background: #d1fae5;
}

/* Animasi Denyut Marker Peta */
@keyframes markerPulseGlow {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8), 0 0 16px rgba(5, 150, 105, 0.6);
  }
  50% {
    transform: scale(1.25);
    box-shadow: 0 0 0 12px rgba(16, 185, 129, 0), 0 0 24px rgba(52, 211, 153, 0.8);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0), 0 0 16px rgba(5, 150, 105, 0.6);
  }
}

.custom-marker-icon-wrapper.highlight-pulse .custom-marker-pin,
.highlight-pulse .custom-marker-pin,
.marker-highlight-pulse {
  animation: markerPulseGlow 1.2s ease-in-out infinite !important;
  z-index: 9999 !important;
}

.custom-marker-icon-wrapper.highlight-pulse {
  z-index: 9999 !important;
}

/* Animasi Getar Peringatan Validasi Form */
@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.shake-error {
  animation: shakeError 0.4s ease-in-out;
}
