/* ═══════════════════════════════════════════════════════════════════
   WASHNet GIS — Dark Professional Dashboard
   Fonts: Plus Jakarta Sans (display/body) + JetBrains Mono (data)
═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

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

:root {
  /* Backgrounds */
  --bg:          #0e1117;
  --surface:     #161b27;
  --surface-2:   #1d2333;
  --surface-3:   #242b3d;
  --surface-4:   #2c3450;

  /* Borders */
  --border:      rgba(255,255,255,0.07);
  --border-mid:  rgba(255,255,255,0.12);
  --border-hi:   rgba(255,255,255,0.22);

  /* Brand accent — calm blue */
  --blue:        #4f8ef7;
  --blue-dim:    #2d5fba;
  --blue-glow:   rgba(79,142,247,0.15);

  /* Secondary accent — soft teal */
  --teal:        #38bdf8;
  --teal-dim:    #1a6f9a;

  /* Status colors */
  --green:       #34d399;
  --amber:       #fbbf24;
  --red:         #f87171;

  /* Text */
  --text:        #e2e8f0;
  --text-dim:    #8896ae;
  --text-faint:  white;

  /* Typography */
  --sans:  'Plus Jakarta Sans', system-ui, sans-serif;
  --mono:  'JetBrains Mono', monospace;

  /* Radii */
  --r-sm:  6px;
  --r:     10px;
  --r-lg:  14px;
  --r-xl:  18px;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

header, footer { display: none !important; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-4); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

/* ═══════════════════════════════════════════════════════════════════
   TOP NAV BAR
═══════════════════════════════════════════════════════════════════ */
.washnet-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 52px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: grid;
    grid-template-columns: 30% 36% 70%;
  align-items: center;
  z-index: 9000;
  gap: 0;
}

/* Brand */
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  height: 100%;
  border-right: 1px solid var(--border);
  text-decoration: none;
  min-width: 210px;
  flex-shrink: 0;
}

.topbar-brand-icon {
  width: 30px; height: 30px;
  background: var(--blue);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.topbar-brand-text {
  display: flex; flex-direction: column; gap: 1px;
}

.topbar-brand-name {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.01em;
}

.topbar-brand-sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  line-height: 1;
  text-transform: uppercase;
}

/* Mode tabs */
.topbar-modes {
  display: flex;
  align-items: stretch;
  height: 100%;
  padding: 0 6px;
  /* border-right: 1px solid var(--border); */
  gap: 2px;
  flex-shrink: 0;
}

.washnet-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
  position: relative;
}

.washnet-tab::before {
  content: attr(data-num);
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text-faint);
  font-weight: 400;
}

.washnet-tab:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

.washnet-tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* Spotlight section */
.topbar-spotlight {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  height: 100%;
  /* border-right: 1px solid var(--border); */
  flex: 1;
  min-width: 0;
  max-width: 440px;
}

.topbar-spotlight-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
  flex-shrink: 0;
}

.topbar-search-wrap {
  position: relative;
  flex: 0 0 140px;
}

.topbar-search-wrap::before {
  content: '⌕';
  position: absolute;
  left: 8px; top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-faint);
  pointer-events: none;
}

.washnet-search-input {
  width: 100%;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 6px 10px 6px 26px;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.washnet-search-input:focus {
  border-color: var(--blue-dim);
  background: var(--surface-4);
}

.washnet-search-input::placeholder { color: var(--text-faint); }

#partnerSpotlight {
  flex: 1; min-width: 0;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 6px 10px;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--text);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

#partnerSpotlight:focus { border-color: var(--blue-dim); }
#partnerSpotlight option { background: var(--surface-2); }

/* Spotlight active badge */
.spotlight-badge {
  display: none;
  align-items: center;
  gap: 6px;
  background: rgba(79,142,247,0.12);
  border: 1px solid rgba(79,142,247,0.3);
  border-radius: 999px;
  padding: 4px 10px 4px 8px;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--blue);
  flex-shrink: 0;
  white-space: nowrap;
  animation: badgePop 0.18s ease;
}

@keyframes badgePop {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.badge-icon { color: var(--amber); font-size: 10px; }
.badge-label {
  color: var(--text);
  font-weight: 600;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge-clear {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 12px;
  line-height: 1;
  padding: 1px 3px;
  border-radius: 3px;
  transition: color 0.15s;
}
.badge-clear:hover { color: var(--red); }

/* Filters in topbar */
.topbar-filters {
  display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 16px;
    height: 100%;
    border-right: 1px solid var(--border);
    flex-shrink: 0;
    flex-direction: column;
}

.topbar-filter-group {
  width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-direction: column;
}

.topbar-filter-label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}

.topbar-select {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 5px 8px;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--text);
  outline: none;
  cursor: pointer;
  width: 100%;
  transition: border-color 0.2s;
}

.topbar-select:focus { border-color: var(--blue-dim); }
.topbar-select option { background: var(--surface-2); }

/* Home button */
.topbar-home {
  max-width:115px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 18px;
  height: 100%;
  text-decoration: none;
  color: var(--text-dim);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  /* border-left: 1px solid var(--border); */
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}

.topbar-home:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

/* ═══════════════════════════════════════════════════════════════════
   MAIN SHELL
═══════════════════════════════════════════════════════════════════ */
.washnet-shell {
  display: grid;
  grid-template-columns: 260px 1fr 285px;
  height: calc(100vh - 52px);
  margin-top: 52px;
  overflow: hidden;
  background: var(--bg);
}

/* ═══════════════════════════════════════════════════════════════════
   LEFT PANEL
═══════════════════════════════════════════════════════════════════ */
.washnet-left {
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.left-header {
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.left-header-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 4px;
  opacity: 0.8;
}

.left-header-title {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.left-header-sub {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 3px;
  line-height: 1.4;
}

/* Stat cards */
.left-stats {
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.stat-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 11px 12px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}

.stat-card:hover { border-color: var(--border-mid); }

/* Subtle top accent line per variant */
.stat-card.accent-blue::after  { content:''; position:absolute; top:0; left:0; right:0; height:2px; background:var(--blue); opacity:0.7; }
.stat-card.accent-teal::after  { content:''; position:absolute; top:0; left:0; right:0; height:2px; background:var(--teal); opacity:0.7; }
.stat-card.accent-green::after { content:''; position:absolute; top:0; left:0; right:0; height:2px; background:var(--green); opacity:0.7; }
.stat-card.accent-amber::after { content:''; position:absolute; top:0; left:0; right:0; height:2px; background:var(--amber); opacity:0.7; }

.stat-label {
  font-family: var(--mono);
  font-size: 9px;
  /* letter-spacing: 0.08em; */
  text-transform: uppercase;
  color: white;
  /* line-height: 1; */
}

.stat-value {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin-top: 5px;
  letter-spacing: -0.02em;
}

.stat-card.accent-blue  .stat-value { color: var(--blue); }
.stat-card.accent-teal  .stat-value { color: var(--teal); }
.stat-card.accent-green .stat-value { color: var(--green); }
.stat-card.accent-amber .stat-value { color: var(--amber); }

.stat-meta {
  font-size: 10px;
  color: var(--text-faint);
  margin-top: 2px;
}

/* Scrollable body of left panel */
.left-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
}

.left-section {
  margin-bottom: 18px;
}

.left-section-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.left-section-label::after {
  content: '';
  flex: 1; height: 1px;
  background: var(--border);
}

.washnet-note {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px 14px;
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.65;
}

.washnet-note strong {
  color: var(--text);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
}

/* ═══════════════════════════════════════════════════════════════════
   MAP
═══════════════════════════════════════════════════════════════════ */
.washnet-map-wrap {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

#washnetMap { width: 100%; height: 100%; }

.map-mode-badge {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(22,27,39,0.9);
  border: 1px solid var(--border-mid);
  border-radius: 999px;
  padding: 5px 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  pointer-events: none;
  z-index: 900;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

.map-coords {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(22,27,39,0.82);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-faint);
  pointer-events: none;
  z-index: 900;
  backdrop-filter: blur(4px);
}

/* ═══════════════════════════════════════════════════════════════════
   RIGHT PANEL
═══════════════════════════════════════════════════════════════════ */
.washnet-right {
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: scroll;
  padding:30px 20px;
}

.right-header {
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.right-header-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 3px;
}

.panel-title {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
  margin-bottom: 20px;
}

.right-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

/* ─── Empty state ───────────────────────────────────────────────── */
.empty-state {
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: var(--r);
  padding: 20px 16px;
  font-size: 11px;
  color: var(--text-faint);
  line-height: 1.7;
  text-align: center;
}

.empty-state strong { color: var(--text-dim); font-weight: 600; }

/* ─── Panel boxes ───────────────────────────────────────────────── */
.panel-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px;
  margin-bottom: 8px;
}

.panel-box:last-child { margin-bottom: 0; }

.panel-box h4 {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}




.panel-box-act {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px;
  margin-bottom: 8px;
}

.panel-box-act:last-child { margin-bottom: 0; }

.panel-box-act h4 {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}





.activity-carousel {
  width: 100%;
}

.activity-carousel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.activity-carousel-top h4 {
  margin: 0;
  color: white;
}

.activity-carousel-card {
  min-width: 0;
}

/* old list-item feel + left blue line */
.activity-list-item {
  border-left: 3px solid var(--blue);
  padding-left: 11px;
  position: relative;
}

/* buttons below the card */
.activity-carousel-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.activity-carousel-btn {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  width: 34px;
  height: 28px;
  line-height: 1;
}

.activity-carousel-btn:disabled {
  opacity: 0.45;
  cursor: default;
}










.partner-carousel-spec {
  width: 100%;
}

.partner-carousel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.partner-carousel-top h4 {
  margin: 0;
}

.partner-carousel-card {
  min-width: 0;
}

/* old list-item feel + left blue line */
.partner-list-item {
  border-left: 3px solid var(--blue);
  padding-left: 11px;
  position: relative;
}

/* buttons below the card */
.partner-carousel-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.partner-carousel-btn {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  width: 34px;
  height: 28px;
  line-height: 1;
}

.partner-carousel-btn:disabled {
  opacity: 0.45;
  cursor: default;
}











/* ─── Mini grid ─────────────────────────────────────────────────── */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.mini-grid.stats-3 { grid-template-columns: repeat(2, 1fr); }

.mini-card {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 8px 10px;
}

.mini-card .k {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 3px;
}

.mini-card .v {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
  letter-spacing: -0.01em;
}

/* ─── Chips ─────────────────────────────────────────────────────── */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  background: rgba(79,142,247,0.1);
  border: 1px solid rgba(79,142,247,0.2);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0;
}

/* ─── List items ────────────────────────────────────────────────── */
.list-item {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  margin-bottom: 7px;
  transition: border-color 0.15s;
}

.list-item:last-child { margin-bottom: 0; }
.list-item:hover { border-color: var(--border-mid); }

.list-item strong {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}

.muted {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.6;
}

.muted a, .list-item a, .panel-box a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.15s;
}

.muted a:hover, .list-item a:hover, .panel-box a:hover {
  color: var(--teal);
  text-decoration: underline;
}

/* ─── Spotlight link ────────────────────────────────────────────── */
.spotlight-link {
  color: var(--amber) !important;
  font-weight: 600;
  font-size: 11px;
}
.spotlight-link:hover { color: #fcd34d !important; text-decoration: underline !important; }

/* ─── Sidebar controls (old layout compatibility) ───────────────── */
.washnet-section-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 16px 0 8px 0;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border);
}

.washnet-control {
  margin-bottom: 10px;
}

.washnet-control label {
  display: block;
  margin-bottom: 5px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.washnet-control select {
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface-3);
  color: var(--text);
  font-family: var(--sans);
  font-size: 11px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.washnet-control select:focus { border-color: var(--blue-dim); }
.washnet-control select option { background: var(--surface-2); }

/* ─── Sidebar spotlight badge (old layout) ──────────────────────── */
.spotlight-badge {
  display: none;
  align-items: center;
  gap: 6px;
  background: rgba(79,142,247,0.1);
  border: 1px solid rgba(79,142,247,0.25);
  border-radius: var(--r-sm);
  padding: 7px 10px;
  margin: 6px 0 10px 0;
  font-size: 11px;
  color: var(--blue);
  font-weight: 600;
  animation: badgePop 0.18s ease;
}

.badge-icon { color: var(--amber); }

.badge-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.badge-clear {
  color: var(--text-faint);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
}
.badge-clear:hover { color: var(--red); }

/* ─── Partner pin markers ───────────────────────────────────────── */
.partner-pin {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--blue-dim);
  border: 2px solid rgba(79,142,247,0.5);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  cursor: pointer;
  transition: background 0.2s;
}

.partner-pin.pin-spotlit {
  background: var(--red);
  border-color: var(--amber);
  animation: spotPulse 1.8s ease-in-out infinite;
  z-index: 2000 !important;
}

.partner-pin.pin-selected {
  background: var(--blue);
  border-color: rgba(79,142,247,0.9);
}

.partner-pin .pin-inner {
  transform: rotate(45deg);
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  user-select: none;
}

@keyframes spotPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(248,113,113,0.35), 0 2px 8px rgba(0,0,0,0.5); }
  50%       { box-shadow: 0 0 0 9px rgba(248,113,113,0.1),  0 2px 8px rgba(0,0,0,0.5); }
}

/* ─── Activity card ─────────────────────────────────────────────── */
.activity-card {
  border-left: 2px solid var(--teal-dim);
}

/* ═══════════════════════════════════════════════════════════════════
   LEAFLET OVERRIDES
═══════════════════════════════════════════════════════════════════ */
.leaflet-control-zoom {
  border: 1px solid var(--border-mid) !important;
  border-radius: var(--r-sm) !important;
  background: var(--surface) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4) !important;
  overflow: hidden;
}

.leaflet-control-zoom a {
  background: var(--surface) !important;
  color: var(--text-dim) !important;
  border-color: var(--border) !important;
  width: 28px !important; height: 28px !important;
  line-height: 28px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  font-size: 15px !important;
  transition: color 0.15s, background 0.15s !important;
}

.leaflet-control-zoom a:hover {
  background: var(--surface-3) !important;
  color: var(--blue) !important;
}

.leaflet-control-attribution {
  background: rgba(22,27,39,0.8) !important;
  color: var(--text-faint) !important;
  font-size: 9px !important;
  padding: 2px 6px !important;
}

.leaflet-control-attribution a { color: var(--text-faint) !important; }

.leaflet-popup-content-wrapper {
  background: var(--surface-2) !important;
  border: 1px solid var(--border-mid) !important;
  border-radius: var(--r) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5) !important;
  color: var(--text) !important;
  padding: 0 !important;
}

.leaflet-popup-content { margin: 0 !important; }
.leaflet-popup-tip { background: var(--surface-2) !important; }

.leaflet-popup-close-button {
  color: var(--text-dim) !important;
  font-size: 16px !important;
  top: 8px !important; right: 10px !important;
  padding: 0 !important;
  transition: color 0.15s !important;
}
.leaflet-popup-close-button:hover { color: var(--text) !important; }
.leaflet-interactive:focus { outline: none !important; }

/* ─── Popup content ─────────────────────────────────────────────── */
.leaflet-popup-content > div {
  padding: 14px 16px;
  min-width: 220px;
}

.leaflet-popup-content h3 {
  font-family: var(--sans) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  margin: 0 0 10px 0 !important;
  letter-spacing: -0.01em;
}

.leaflet-popup-content p {
  font-size: 11px !important;
  color: var(--text-dim) !important;
  margin: 0 0 4px 0 !important;
  font-family: var(--sans) !important;
}

.leaflet-popup-content a {
  display: inline-block;
  margin-top: 8px !important;
  font-size: 11px !important;
  color: var(--blue) !important;
  text-decoration: none !important;
  font-weight: 500 !important;
}

.leaflet-popup-content a:hover { color: var(--teal) !important; text-decoration: underline !important; }

/* ─── Tooltip ───────────────────────────────────────────────────── */
.washnet-tooltip {
  background: var(--surface-2) !important;
  border: 1px solid var(--border-mid) !important;
  border-radius: var(--r) !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5) !important;
  padding: 10px 14px !important;
  color: var(--text) !important;
  font-family: var(--sans) !important;
  font-size: 12px !important;
}

.washnet-tooltip b {
  font-family: var(--sans) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  display: block !important;
  margin-bottom: 5px !important;
  color: var(--text) !important;
  letter-spacing: -0.01em !important;
}

.washnet-tooltip .small {
  font-family: var(--mono) !important;
  font-size: 10px !important;
  color: var(--text-dim) !important;
  margin-top: 2px !important;
  line-height: 1.5 !important;
}

/* ─── District label ────────────────────────────────────────────── */
.district-label { background: transparent !important; border: none !important; pointer-events: none; }

.district-label div {
  padding: 3px 6px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(0, 0, 0);
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

/* ═══════════════════════════════════════════════════════════════════
   TOUR
═══════════════════════════════════════════════════════════════════ */
#tourOverlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9997;
  pointer-events: none;
  display: none;
}

#tourTooltip {
  position: fixed;
  z-index: 10000;
  width: min(320px, calc(100vw - 28px));
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-lg);
  display: none;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  overflow: hidden;
}

.tour-hdr {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
}

.tour-step-tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 5px;
}

#tourTitle {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

#tourText {
  padding: 12px 16px;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.65;
}

.tour-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px 12px;
  border-top: 1px solid var(--border);
}

#tourSkip {
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-faint); background: none; border: none; cursor: pointer;
  padding: 0; transition: color 0.2s;
}
#tourSkip:hover { color: var(--red); }

.tour-nav { display: flex; align-items: center; gap: 6px; }
.tour-dots { display: flex; gap: 4px; align-items: center; }

.tour-dot {
  width: 5px; height: 5px;
  border: 1px solid var(--border-mid);
  background: transparent;
  border-radius: 999px;
  transition: all 0.2s;
}

.tour-dot.active {
  width: 14px;
  background: var(--blue);
  border-color: var(--blue);
  border-radius: 999px;
}

#tourBack, #tourNext {
  padding: 6px 14px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.18s;
}

#tourBack {
  background: transparent;
  border: 1px solid var(--border-mid);
  color: var(--text-dim);
}
#tourBack:hover:not(:disabled) { color: var(--text); border-color: var(--border-hi); }
#tourBack:disabled { opacity: 0.25; cursor: default; }

#tourNext {
  background: var(--blue);
  border: none;
  color: #fff;
}
#tourNext:hover { background: #6ba3fa; }

.tour-highlight {
  position: relative;
  z-index: 9999 !important;
  outline: 2px solid var(--blue) !important;
  outline-offset: 3px;
  animation: glow-pulse 1.2s ease-in-out infinite !important;
  border-radius: var(--r-sm);
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(79,142,247,0.1); }
  50%       { box-shadow: 0 0 0 10px rgba(79,142,247,0.25), 0 0 30px rgba(79,142,247,0.1); }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .washnet-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    height: auto;
    overflow: auto;
  }

  .washnet-left, .washnet-right {
    border: none;
    border-bottom: 1px solid var(--border);
  }

  #washnetMap { height: 65vh; min-height: 500px; }

  .topbar-filters,
  .topbar-spotlight { display: none; }
}

@media (max-width: 768px) {
  .topbar-modes { display: none; }
  .washnet-shell { grid-template-columns: 1fr; }
}




/* ═══════════════════════════════════════
   COMPACT MOBILE GIS UI
═══════════════════════════════════════ */

@media (max-width: 768px) {

  html, body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  /* ───────── TOPBAR (ULTRA COMPACT) ───────── */

  .washnet-topbar{
    position: sticky;
    top: 0;
    z-index: 9999;
    height: 44px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 8px;
  }

  .topbar-brand{
    border: none;
    padding: 0;
    min-width: auto;
  }

  .topbar-brand-text,
  .topbar-brand-sub{
    display: none;
  }

  .topbar-brand-name{
    font-size: 14px;
  }

  .topbar-modes{
    display: none;
  }

  .topbar-spotlight,
  .topbar-filters{
    display: none !important;
  }

  .topbar-home{
    margin-left: auto;
    font-size: 11px;
    padding: 0 10px;
  }

  /* ───────── MAIN LAYOUT ───────── */

  .washnet-shell{
    display: flex;
    flex-direction: column;
    margin-top: 44px;
    height: auto;
  }

  /* ───────── MAP (PRIMARY FOCUS) ───────── */

  .washnet-map-wrap{
    order: 1;
    height: 62vh;
    min-height: 360px;
    border-bottom: 1px solid var(--border);
  }

  .map-mode-badge{
    font-size: 9px;
    padding: 4px 10px;
  }

  /* ───────── LEFT PANEL → QUICK SUMMARY CARD ───────── */

  .washnet-left{
    order: 2;
    width: 100%;
    border: none;
    padding: 10px;
  }

  .left-header{
    padding: 10px 0;
  }

  .left-header-title{
    font-size: 16px;
  }

  .left-header-sub{
    font-size: 10px;
  }

  /* convert stats into horizontal scroll chips */
  .left-stats{
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 8px 0;
  }

  .stat-card{
    min-width: 140px;
    flex: 0 0 auto;
    padding: 10px;
  }

  .stat-value{
    font-size: 12px;
  }

  /* hide heavy scroll section by default */
  .left-scroll{
    display: none;
  }

  /* ───────── RIGHT PANEL → BOTTOM SHEET STYLE ───────── */

  .washnet-right{
    order: 3;
    width: 100%;
    padding: 10px;
    border: none;
  }

  .right-header{
    padding: 8px 0;
  }

  .panel-title{
    font-size: 16px;
    margin-bottom: 10px;
  }

  .right-scroll{
    padding: 0;
  }

  /* cards become stacked compact tiles */
  .panel-box,
  .panel-box-act{
    padding: 10px;
    margin-bottom: 8px;
  }

  .panel-box h4{
    font-size: 9px;
  }

  /* ───────── MINI GRID → SINGLE COLUMN ───────── */

  .mini-grid,
  .mini-grid.stats-3{
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .mini-card{
    padding: 10px;
  }

  /* ───────── LIST ITEMS ───────── */

  .list-item{
    padding: 10px;
  }

  /* ───────── CAROUSELS ───────── */

  .activity-carousel-btn,
  .partner-carousel-btn{
    width: 40px;
    height: 32px;
  }

  /* ───────── MAP CONTROLS ───────── */

  .leaflet-control-zoom a{
    width: 38px !important;
    height: 38px !important;
    font-size: 18px !important;
  }

  /* ───────── TOUCH OPTIMIZATION ───────── */

  button, select, .chip, .list-item{
    touch-action: manipulation;
  }
}

/* ═══════════════════════════════════════
   EXTRA SMALL PHONES (ULTRA COMPACT)
═══════════════════════════════════════ */

@media (max-width: 480px) {

  .washnet-map-wrap{
    height: 55vh;
    min-height: 320px;
  }

  .stat-card{
    min-width: 120px;
  }

  .panel-title{
    font-size: 15px;
  }
}




