/* Map Layout Styles */
body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden; /* Prevent scrolling, map is full screen */
}

/* Remove annoying black focus rectangle on map layers */
.leaflet-container :focus {
  outline: none !important;
}

.map-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(3, 3, 5, 0.92);
  backdrop-filter: blur(12px);
  z-index: 1100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid rgba(0, 243, 255, 0.2);
  gap: 12px;
}

.brand {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: bold;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
}

.brand:hover {
  background: rgba(0, 243, 255, 0.08);
}

[data-theme="light"] .brand {
  color: #00838f;
}

/* Status Filter Toggle */
.status-filter-toggle {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 3px;
  border: 1px solid var(--line);
}

.status-filter-btn {
  background: none;
  border: none;
  color: var(--fg-soft);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.status-filter-btn.active {
  background: var(--primary);
  color: #000;
}

.status-filter-btn[data-filter="resolved"].active {
  background: var(--success);
}

[data-theme="light"] .status-filter-toggle {
  background: rgba(0,0,0,0.04);
}

/* Social Dropdown */
.social-dropdown {
  position: relative;
  display: inline-block;
}

.social-btn {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(0, 243, 255, 0.3);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-btn:hover {
  background: rgba(0, 243, 255, 0.1);
  transform: scale(1.1);
  border-color: var(--primary);
}

.social-menu-content {
  position: absolute;
  top: 45px;
  right: 0;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 240px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 2000;
  padding: 8px 0;
  animation: socialSlideIn 0.2s ease-out;
}

.social-menu-content.hidden {
  display: none;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  text-decoration: none;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  transition: background 0.2s;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.social-item:last-child {
  border-bottom: none;
}

.social-item:hover {
  background: rgba(0, 243, 255, 0.08);
  color: var(--primary);
}

.social-item i {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

[data-theme="light"] .social-menu-content {
  background: #ffffff;
  color: #333;
}

[data-theme="light"] .social-item {
  color: #333;
  border-bottom-color: #eee;
}

[data-theme="light"] .social-icon-x {
  color: #000 !important;
}

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

/* ── Analytics Drawer ─────────────────────────────────────────────── */
.analytics-drawer {
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 1050;
  background: rgba(5, 5, 10, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 243, 255, 0.2);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.analytics-drawer.open {
  max-height: 70vh;
  overflow-y: auto;
}

[data-theme="light"] .analytics-drawer {
  background: rgba(245, 247, 250, 0.98);
  border-bottom-color: rgba(0, 188, 212, 0.2);
}

.drawer-sections {
  display: flex;
  flex-direction: column;
}

.drawer-section {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

[data-theme="light"] .drawer-section {
  border-bottom-color: rgba(0,0,0,0.07);
}

.drawer-section-btn {
  width: 100%;
  background: none;
  border: none;
  color: var(--fg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
  text-align: left;
}

.drawer-section-btn:hover {
  background: rgba(0,243,255,0.05);
}

.drawer-section-btn i:first-child {
  color: var(--primary);
  width: 18px;
}

.drawer-section-chevron {
  margin-left: auto;
  transition: transform 0.25s;
  font-size: 0.75rem;
  opacity: 0.5;
}

.drawer-section-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 16px;
}

.drawer-section-content.open {
  max-height: 55vh;
  overflow-y: auto;
  padding: 12px 16px 16px;
}

/* Report Lists */
.report-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.report-loading {
  text-align: center;
  color: var(--fg-soft);
  font-size: 0.85rem;
  padding: 12px 0;
}

.report-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  gap: 10px;
  background: rgba(255,255,255,0.03);
}

.report-row:hover {
  background: rgba(255,255,255,0.07);
  border-color: var(--primary);
  transform: translateX(3px);
}

[data-theme="light"] .report-row {
  background: rgba(0,0,0,0.02);
}

[data-theme="light"] .report-row:hover {
  background: rgba(0,188,212,0.07);
}

.report-row-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg);
  flex: 1;
  min-width: 0;
}

.report-row-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.score-resolved { color: #10b981; }
.score-slash    { color: var(--fg-soft); margin: 0 1px; }
.score-total    { color: #ef4444; }

/* Sub-detail inside report (stats + list) */
.report-detail {
  background: rgba(0,0,0,0.25);
  border-radius: 10px;
  padding: 12px;
  margin-top: 6px;
  animation: fadeIn 0.25s ease;
}

[data-theme="light"] .report-detail {
  background: rgba(0,0,0,0.04);
}

/* Filter Map Section */
.filter-map-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-map-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--fg);
  padding: 8px;
  border-radius: 6px;
  transition: background 0.2s;
}

.filter-map-item:hover {
  background: rgba(255,255,255,0.05);
}

.filter-color {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── MarkerCluster Custom Styles ────────────────────────────────── */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background-clip: padding-box;
  border-radius: 50%;
}

.marker-cluster-small  { background-color: rgba(0, 243, 255, 0.25); }
.marker-cluster-medium { background-color: rgba(255, 153, 0, 0.25); }
.marker-cluster-large  { background-color: rgba(239, 68, 68, 0.25); }

.marker-cluster-small div  { background-color: rgba(0, 243, 255, 0.7); color: #000; }
.marker-cluster-medium div { background-color: rgba(255, 153, 0, 0.7); color: #000; }
.marker-cluster-large div  { background-color: rgba(239, 68, 68, 0.7);  color: #fff; }

.marker-cluster div {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 0.8rem;
  border-radius: 50%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px;
  width: 30px;
  height: 30px;
}

/* Resolved cluster (green) */
.cluster-resolved-small  { background-color: rgba(16, 185, 129, 0.25) !important; }
.cluster-resolved-medium { background-color: rgba(16, 185, 129, 0.35) !important; }
.cluster-resolved-large  { background-color: rgba(16, 185, 129, 0.45) !important; }
.cluster-resolved-small div,
.cluster-resolved-medium div,
.cluster-resolved-large div  { background-color: rgba(16, 185, 129, 0.85) !important; color: #000; }

/* ── Share Modal ─────────────────────────────────────────────────── */
.share-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.share-modal.hidden {
  display: none;
}

.share-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}

.share-modal-content {
  position: relative;
  z-index: 1;
  background: var(--bg-secondary, #0a0a12);
  border: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  padding: 20px;
  width: 100%;
  max-width: 480px;
  animation: slideUp 0.3s ease;
}

[data-theme="light"] .share-modal-content {
  background: #fff;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.share-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.share-modal-header h3 {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  color: var(--primary);
  font-size: 1rem;
}

.share-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: filter 0.2s, transform 0.1s;
}

.share-btn:hover { filter: brightness(1.1); }
.share-btn:active { transform: scale(0.97); }

.share-btn.whatsapp  { background: #25D366; color: #fff; }
.share-btn.twitter   { background: #000; color: #fff; }
.share-btn.facebook  { background: #1877F2; color: #fff; }
.share-btn.copy      { background: rgba(255,255,255,0.1); color: var(--fg); border: 1px solid var(--line); }

[data-theme="light"] .share-btn.copy { background: rgba(0,0,0,0.05); }

/* Full-screen map offset from header + drawer */
.header-actions {
  display: flex;
  gap: 15px;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--fg);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
}

.icon-btn:hover {
  color: var(--primary);
  transform: scale(1.1);
}

.full-screen-map {
  position: absolute;
  top: 56px;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

/* Floating Action Button */
.fab-button {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: var(--primary);
  color: #000;
  border: none;
  border-radius: 30px;
  padding: 14px 28px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: bold;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 243, 255, 0.4);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.fab-button:hover {
  transform: translateX(-50%) translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 243, 255, 0.6);
}

.location-fab {
  position: absolute;
  bottom: 10px;
  right: 25px;
  width: 48px;
  height: 48px;
  z-index: 1000;
  background: transparent;
  backdrop-filter: none;
  color: var(--primary);
  border: 1px solid rgba(0, 243, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: all 0.3s;
}

.location-fab:hover {
  transform: translateY(-5px);
  background: var(--primary);
  color: #000;
  box-shadow: 0 8px 25px rgba(0, 243, 255, 0.4);
}

[data-theme="light"] .location-fab {
  background: transparent;
  border-color: rgba(0, 188, 212, 0.3);
  color: var(--primary);
}

/* Bottom Left Stats Badge */
.stats-badge-bottom {
  position: absolute;
  bottom: 10px;
  left: 15px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0 10px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--primary);
  min-width: 48px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.stats-badge-bottom:hover {
  background: rgba(0, 243, 255, 0.1);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.stats-badge-bottom i {
  font-size: 1.1rem;
}

.stats-badge-bottom span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--fg);
}

[data-theme="light"] .stats-badge-bottom {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
[data-theme="light"] .stats-badge-bottom span {
  color: #000;
}

/* Map Theme Toggle (Top Right) */
.map-theme-btn {
  position: absolute;
  top: 70px;
  right: 12px;
  z-index: 1000;
  width: 36px;
  height: 36px;
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  transition: all 0.2s ease;
}

.map-theme-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  border-color: var(--primary);
}

[data-theme="light"] .map-theme-btn {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.1);
  color: #006064;
}

/* Reposition Leaflet Zoom to be above Location Fab */
.leaflet-bottom.leaflet-right {
  margin-bottom: 70px !important;
  margin-right: 14px !important;
}

.leaflet-control-zoom {
  border: 1px solid var(--line) !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
}
.leaflet-control-zoom a {
  background: rgba(10, 10, 15, 0.75) !important;
  color: var(--primary) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid var(--line) !important;
}
[data-theme="light"] .leaflet-control-zoom a {
  background: rgba(255, 255, 255, 0.85) !important;
  color: #006064 !important;
  border-bottom: 1px solid rgba(0,0,0,0.1) !important;
}

/* Side Panel */
.side-panel {
  position: absolute;
  top: 56px;
  left: 0;
  bottom: 0;
  width: 400px;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(15px);
  z-index: 1000;
  border-right: 1px solid rgba(0, 243, 255, 0.2);
  transform: translateX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 5px 0 25px rgba(0,0,0,0.5);
}

[data-theme="light"] .side-panel {
  background: rgba(255, 255, 255, 0.95);
}

.side-panel.closed {
  transform: translateX(-100%);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-header h2 {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2rem;
  color: var(--primary);
}

.panel-content {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.panel-share-btn {
  width: 100%;
  margin-top: 30px;
  margin-bottom: 20px;
  padding: 14px;
  background: var(--primary);
  color: #000;
  border: none;
  border-radius: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0, 243, 255, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.panel-share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 243, 255, 0.6);
  background: #00f3ff;
}

.panel-share-btn i {
  font-size: 1.1rem;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.3s;
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-card {
  background: var(--bg-card);
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  color: var(--fg);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
}

.full-width {
  width: 100%;
}

/* Map Markers */
.complaint-marker {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  cursor: pointer;
  transition: transform 0.2s;
}

.complaint-marker.resolved {
  border-color: var(--success);
  box-shadow: 0 0 10px var(--success);
}

.complaint-marker:hover {
  transform: scale(1.2);
  z-index: 1000 !important;
  border-color: #fff;
}

.whatsapp-btn {
  background: #25D366;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  text-decoration: none;
  width: 100%;
  justify-content: center;
  transition: background 0.2s;
}

.whatsapp-btn:hover {
  background: #128C7E;
}

.candidate-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 8px;
}

[data-theme="light"] .candidate-card {
  background: rgba(0,0,0,0.02);
}

.complaint-img-preview {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* ── Light Mode Overrides ──────────────────────────────────────────────── */
[data-theme="light"] body {
  background: #f0f2f5;
}

[data-theme="light"] .map-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 188, 212, 0.3);
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

[data-theme="light"] .brand {
  color: var(--primary);
}

[data-theme="light"] .fab-button {
  box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}

[data-theme="light"] .side-panel {
  background: rgba(255, 255, 255, 0.97);
  border-right: 1px solid rgba(0, 188, 212, 0.25);
  box-shadow: 5px 0 25px rgba(0,0,0,0.12);
  color: #1a1a1a;
}

[data-theme="light"] .panel-header {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

[data-theme="light"] .modal-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

[data-theme="light"] .modal-header {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

[data-theme="light"] .candidate-card {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0,0,0,0.1);
}

/* Layer control light mode */
[data-theme="light"] .leaflet-control-layers {
  background: rgba(255,255,255,0.95) !important;
  color: #1a1a1a !important;
  border: 1px solid rgba(0,0,0,0.15) !important;
}

@media (max-width: 768px) {
  .side-panel {
    width: 100%;
    transform: translateY(100%);
    border-right: none;
    border-top: 1px solid var(--primary);
    top: auto;
    height: 60vh;
  }
  
  .side-panel.closed {
    transform: translateY(100%);
  }
  
  .side-panel:not(.closed) {
    transform: translateY(0);
  }

  .map-header {
    padding: 0 6px;
    gap: 6px;
  }

  .brand-drawer-toggle {
    font-size: 0.7rem !important;
    gap: 4px !important;
    padding: 0 2px !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .status-filter-toggle {
    gap: 2px;
    padding: 2px;
    flex-shrink: 0;
  }

  .status-filter-btn {
    font-size: 0.6rem;
    padding: 4px 6px;
    gap: 3px;
  }

  .status-filter-btn i {
    font-size: 0.5rem;
  }

  .header-actions {
    gap: 2px !important;
    flex-shrink: 0;
  }

  .header-actions .icon-btn {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
}

/* ── Panel Share Button ───────────────────────────────────────────── */
.panel-share-btn {
  width: 100%;
  margin-top: 18px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--fg-soft);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}

.panel-share-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 243, 255, 0.05);
}

[data-theme="light"] .panel-share-btn:hover {
  background: rgba(0, 188, 212, 0.05);
}

/* ── Panel Back Button ────────────────────────────────────────────── */
.panel-back-btn {
  background: none;
  border: 1px solid var(--line);
  color: var(--fg);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 8px;
  font-size: 0.8rem;
  transition: all 0.2s ease;
  vertical-align: middle;
}

.panel-back-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 243, 255, 0.08);
}

/* ── Report List Styles ───────────────────────────────────────────── */
.report-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.report-row {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  padding: 12px 16px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.report-row:hover {
  background: rgba(0, 243, 255, 0.08);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.report-row-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
}

.report-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  opacity: 0.8;
}

.header-name {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--fg-soft);
  letter-spacing: 1px;
}

.header-score {
  display: flex;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.report-row-score {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.label-resolved { color: var(--success); }
.label-submitted { color: var(--primary); }

.score-resolved {
  color: var(--success);
}

.score-slash {
  opacity: 0.3;
}

.score-total {
  color: var(--primary);
}

.report-loading {
  text-align: center;
  padding: 40px;
  opacity: 0.6;
  font-size: 0.9rem;
}

/* ── Ward Stat Buttons (3 on same X-axis) ─────────────────────────── */
.ward-stats-row {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.ward-stat-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 0;
}

.ward-stat-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.ward-stat-btn.submitted {
  border-left: 3px solid var(--primary);
}

.ward-stat-btn.resolved {
  border-left: 3px solid var(--success);
}

.ward-stat-btn.fix-rate {
  border-left: 3px solid #ff9900;
  cursor: default;
}

/* ── Map Cluster Icons ───────────────────────────────────────────── */
.map-cluster-icon {
  border-radius: 50%;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 900;
  border: 3px solid;
  outline: 1.5px solid rgba(255,255,255,0.4);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  transition: background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s, outline-color 0.3s;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.map-cluster-icon.submitted {
  background: rgba(0, 243, 255, 0.35);
  border-color: #00f3ff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5), 0 0 20px rgba(0, 243, 255, 0.4);
}

.map-cluster-icon.resolved {
  background: rgba(10, 255, 10, 0.35);
  border-color: #0aff0a;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5), 0 0 20px rgba(10, 255, 10, 0.4);
}

[data-theme="light"] .map-cluster-icon {
  outline-color: rgba(0,0,0,0.2);
  text-shadow: none;
}

[data-theme="light"] .map-cluster-icon.submitted {
  color: #006064;
}

[data-theme="light"] .map-cluster-icon.resolved {
  color: #006400;
}

.ward-stat-btn.active {
  background: rgba(0, 243, 255, 0.15);
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow), inset 0 0 10px rgba(0, 243, 255, 0.2);
  transform: translateY(-2px);
}

.ward-stat-btn.resolved.active {
  background: rgba(10, 255, 10, 0.12);
  border-color: var(--success);
  box-shadow: 0 0 15px rgba(10, 255, 10, 0.3), inset 0 0 10px rgba(10, 255, 10, 0.2);
}

.stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--fg-soft);
  font-weight: 700;
}

.stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--fg);
}

.ward-stat-btn.submitted .stat-value { color: var(--primary); }
.ward-stat-btn.resolved .stat-value { color: var(--success); }
.ward-stat-btn.fix-rate .stat-value { color: #ff9900; }

/* ── Ward Complaint List ─────────────────────────────────────────── */
.ward-list-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  margin-top: 15px;
}

/* Status-specific item highlighting */
.ward-list-content.status-submitted .ward-complaint-item {
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.ward-list-content.status-resolved .ward-complaint-item {
  border-color: var(--success);
  box-shadow: 0 0 12px rgba(10, 255, 10, 0.3);
}

.ward-complaint-item {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ward-complaint-item:hover {
  border-color: var(--primary);
  transform: scale(1.05);
}

.complaint-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.complaint-id {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 0.55rem;
  padding: 2px 4px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
}

/* ── User Position Marker (Pulsing Pin) ────────────────────────── */
.user-position-marker-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-position-pulse {
  width: 16px;
  height: 16px;
  background: var(--primary);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
  position: relative;
}

.user-position-pulse::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  border: 4px solid var(--primary);
  animation: user-pulse 1.8s infinite ease-out;
  opacity: 0;
}

@keyframes user-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(3.5); opacity: 0; }
}
/* ── WhatsApp & Forwarding Styles ────────────────────────── */
.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: #fff !important;
  padding: 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 12px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  text-transform: uppercase;
  font-size: 0.9rem;
}

.whatsapp-btn:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn i {
  font-size: 1.2rem;
}

.whatsapp-accordion {
  background: #25D366 !important;
  color: white !important;
  border-radius: 12px !important;
  margin-top: 15px;
  overflow: hidden;
  border: none !important;
}

.whatsapp-accordion summary {
  background: #25D366 !important;
  color: white !important;
  padding: 14px 18px !important;
  font-size: 1rem;
}

.whatsapp-accordion summary:hover {
  background: #128C7E !important;
}

.whatsapp-accordion .accordion-content {
  background: rgba(0, 0, 0, 0.1) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 10px !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
