/* ═══════════════════════════════════════════════════════
   Masterclass Clients Map v5.0 — Continent-First Design
   Full-width map · Absolute overlay panel · Continent markers
   ═══════════════════════════════════════════════════════ */

/* ── Root tokens ── */
.mc-map-root {
  /* brand */
  --mc-red:        #CF2A1E;
  --mc-red-dim:    rgba(207,42,30,.12);
  --mc-red-glow:   rgba(207,42,30,.3);
  /* dark panel surface */
  --mc-panel-bg:   rgba(8,11,26,.93);
  --mc-border:     rgba(255,255,255,.09);
  --mc-text:       #f1f5f9;
  --mc-text-dim:   rgba(241,245,249,.6);
  --mc-text-muted: rgba(241,245,249,.38);
  /* light controls (sit on top of the light Voyager map) */
  --mc-ctrl-bg:    rgba(255,255,255,.92);
  --mc-ctrl-border:rgba(15,23,42,.12);
  --mc-ctrl-text:  #1e293b;
  --mc-ctrl-muted: #64748b;
  /* layout */
  --mc-radius:     16px;
  --mc-ease:       cubic-bezier(.25,.46,.45,.94);

  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════════════════ */
.mc-reveal-pending {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1);
}
.mc-reveal-active { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════════════
   STATS BAR — white card, sits above the map on light page bg
   ═══════════════════════════════════════════════════════ */
.mc-map-stats {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  padding: 14px 24px;
  box-shadow: 0 4px 24px rgba(15,23,42,.1);
}

.mc-stats-showcase {
  display: flex;
  align-items: center;
  gap: 0;
}
.mc-stat-showcase-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
}
.mc-stat-showcase-item + .mc-stat-showcase-item {
  border-left: 1px solid rgba(15,23,42,.08);
}
.mc-stat-big {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.mc-stat-lbl {
  font-size: .68rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 600;
  margin-top: 3px;
}

/* legacy stat badge (admin view) */
.mc-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--mc-red-dim);
  border: 1px solid var(--mc-red-glow);
  border-radius: 999px;
  padding: 5px 14px 5px 8px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--mc-red);
}
.mc-stat-num {
  color: #fff;
  background: var(--mc-red);
  border-radius: 999px;
  padding: 0 10px;
  font-size: .82rem;
  line-height: 1.7;
}
.mc-stat-divider {
  width: 1px; height: 22px;
  background: var(--mc-border);
}

/* ═══════════════════════════════════════════════════════
   AUTO-TOUR BUTTON — light style to match white stats bar
   ═══════════════════════════════════════════════════════ */
.mc-tour-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(15,23,42,.1);
  background: #fff;
  color: #475569;
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 600;
  font-family: inherit;
  transition: all .25s;
  box-shadow: 0 1px 3px rgba(15,23,42,.06);
}
.mc-tour-btn:hover {
  border-color: var(--mc-red);
  color: var(--mc-red);
  background: rgba(207,42,30,.05);
}
.mc-tour-btn.mc-tour-active {
  border-color: var(--mc-red);
  color: var(--mc-red);
  background: rgba(207,42,30,.06);
  box-shadow: 0 0 0 3px rgba(207,42,30,.12);
}
.mc-tour-svg {
  width: 32px; height: 32px;
  flex-shrink: 0;
  transform: rotate(-90deg);
}
.mc-tour-bg {
  fill: none;
  stroke: rgba(15,23,42,.08);
  stroke-width: 2.5;
}
.mc-tour-progress {
  fill: none;
  stroke: var(--mc-red);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 87.96;
  stroke-dashoffset: 87.96;
  transition: stroke-dashoffset .5s var(--mc-ease);
}
.mc-tour-active .mc-tour-progress { stroke: var(--mc-red); }
.mc-tour-label { white-space: nowrap; }

/* ═══════════════════════════════════════════════════════
   FILTER PILLS (panel-only — no outer .mc-map-filters bar)
   ═══════════════════════════════════════════════════════ */
.mc-panel-filters {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.mc-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--mc-border);
  background: transparent;
  color: var(--mc-text-dim);
  padding: 4px 11px;
  border-radius: 999px;
  cursor: pointer;
  font-size: .72rem;
  font-weight: 600;
  font-family: inherit;
  transition: all .2s;
}
.mc-filter-pill.active {
  border-color: var(--pill-color, var(--mc-red));
  color: var(--pill-color, var(--mc-red));
  background: color-mix(in srgb, var(--pill-color, var(--mc-red)) 14%, transparent);
}
.mc-filter-pill:hover:not(.active) {
  border-color: rgba(255,255,255,.25);
  color: var(--mc-text);
}
.mc-pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.1);
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 700;
  min-width: 17px;
  height: 16px;
  padding: 0 4px;
  line-height: 1;
  transition: background .2s;
}
.mc-filter-pill.active .mc-pill-count {
  background: color-mix(in srgb, var(--pill-color, var(--mc-red)) 30%, transparent);
}

/* ═══════════════════════════════════════════════════════
   LAYOUT — map always full width; panel is an overlay
   ═══════════════════════════════════════════════════════ */
.mc-map-layout {
  position: relative;
  width: 100%;
}
.mc-map-main {
  width: 100%;
}

/* ── View toggle ── */
.mc-view-toggle {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  gap: 5px;
  margin-bottom: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 4px;
  width: fit-content;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.mc-toggle-btn {
  border: none;
  background: transparent;
  color: var(--mc-text-dim);
  padding: 9px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-size: .84rem;
  font-weight: 600;
  font-family: inherit;
  transition: all .25s;
}
.mc-toggle-btn.active {
  background: var(--mc-red);
  color: #fff;
  box-shadow: 0 4px 14px var(--mc-red-glow);
}
.mc-toggle-btn:not(.active):hover { color: #fff; background: rgba(255,255,255,.06); }

/* ═══════════════════════════════════════════════════════
   FLAT MAP CANVAS
   ═══════════════════════════════════════════════════════ */
.mc-map-flat-wrap {
  position: relative;
  border-radius: var(--mc-radius);
  overflow: visible;
}
.mc-map-flat {
  width: 100%;
  min-height: 520px;
  height: 580px;
  border-radius: var(--mc-radius);
  overflow: hidden;
  position: relative;
  /* Clean layered shadow — no red ring */
  box-shadow:
    0 0 0 1px rgba(15,23,42,.08),
    0 4px 8px rgba(15,23,42,.06),
    0 20px 56px rgba(15,23,42,.13);
}

/* Zoom on LEFT — light glass to read cleanly on Voyager tiles */
.mc-map-flat .leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 2px 8px rgba(15,23,42,.12) !important;
  border-radius: 10px !important;
  overflow: hidden;
  margin-top: 56px !important; /* clear the Directory FAB which is top-left area */
}
.mc-map-flat .leaflet-control-zoom a {
  background: var(--mc-ctrl-bg) !important;
  color: var(--mc-ctrl-text) !important;
  border-color: var(--mc-ctrl-border) !important;
  backdrop-filter: blur(10px);
  width: 30px !important;
  height: 30px !important;
  line-height: 30px !important;
  font-size: 1.1rem !important;
}
.mc-map-flat .leaflet-control-zoom a:hover {
  background: #fff !important;
  color: var(--mc-red) !important;
  border-color: rgba(207,42,30,.3) !important;
}
.mc-map-flat .leaflet-attribution-flag { display: none !important; }
.mc-map-flat .leaflet-control-attribution {
  background: rgba(255,255,255,.82) !important;
  backdrop-filter: blur(6px);
  font-size: .63rem !important;
  color: #64748b !important;
  border-radius: 6px 0 0 0 !important;
  padding: 2px 6px !important;
}

.mc-hidden { display: none !important; }

/* Globe container */
.mc-map-container {
  width: 100%;
  min-height: 480px;
  height: 520px;
  border-radius: var(--mc-radius);
  overflow: hidden;
  border: 1px solid var(--mc-border);
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}

/* ═══════════════════════════════════════════════════════
   FAB CONTROLS (floating action buttons on map)
   ═══════════════════════════════════════════════════════ */
.mc-map-fab {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* FABs on map — white glass to complement Voyager light tiles */
.mc-fab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--mc-ctrl-bg);
  border: 1px solid var(--mc-ctrl-border);
  color: var(--mc-ctrl-muted);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: .77rem;
  font-weight: 600;
  font-family: inherit;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all .22s;
  box-shadow: 0 2px 8px rgba(15,23,42,.12);
  white-space: nowrap;
}
.mc-fab-btn:hover {
  border-color: var(--mc-red);
  color: var(--mc-red);
  background: #fff;
  box-shadow: 0 2px 12px rgba(207,42,30,.2);
}
.mc-fab-btn.active {
  background: var(--mc-red);
  border-color: var(--mc-red);
  color: #fff;
  box-shadow: 0 4px 16px rgba(207,42,30,.35);
}
.mc-fab-icon { font-size: 1rem; line-height: 1; }
.mc-fab-label { font-size: .77rem; }

/* ── Directory FAB — top-right, white glass, always on right ── */
.mc-panel-fab-open {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 810;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--mc-ctrl-bg);
  border: 1px solid var(--mc-ctrl-border);
  color: var(--mc-ctrl-text);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: .77rem;
  font-weight: 600;
  font-family: inherit;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all .22s;
  box-shadow: 0 2px 8px rgba(15,23,42,.12);
}
.mc-panel-fab-open:hover {
  border-color: var(--mc-red);
  color: var(--mc-red);
  background: #fff;
  box-shadow: 0 2px 12px rgba(207,42,30,.18);
}
.mc-panel-fab-open.mc-hidden { display: none !important; }

/* ═══════════════════════════════════════════════════════
   CLUSTER BUBBLES
   ═══════════════════════════════════════════════════════ */
.mc-cluster-wrap {
  background: transparent !important;
  border: none !important;
}
.mc-cluster-bubble {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--mc-red);
  color: #fff;
  font-weight: 800;
  font-family: 'Inter', system-ui, sans-serif;
  cursor: pointer;
  /* White ring makes cluster pop cleanly on both light and dark areas */
  box-shadow: 0 3px 12px rgba(207,42,30,.4), 0 0 0 2px #fff, 0 0 0 4px rgba(207,42,30,.2);
  transition: transform .2s var(--mc-ease), box-shadow .2s;
}
.mc-cluster-bubble:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 20px rgba(207,42,30,.5), 0 0 0 2px #fff, 0 0 0 5px rgba(207,42,30,.3);
}

.mc-cluster-bubble.sm { width: 40px; height: 40px; font-size: .85rem; }
.mc-cluster-bubble.md { width: 52px; height: 52px; font-size: 1rem; }
.mc-cluster-bubble.lg { width: 66px; height: 66px; font-size: 1.15rem; }

.mc-cluster-ring {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1.5px solid rgba(207,42,30,.35);
  animation: cluster-ring-pulse 2.4s ease-in-out infinite;
}

@keyframes cluster-ring-pulse {
  0%, 100% { transform: scale(1); opacity: .6; }
  50%       { transform: scale(1.15); opacity: .2; }
}

.mc-cluster-count { position: relative; z-index: 1; }

/* ═══════════════════════════════════════════════════════
   INDIVIDUAL MARKERS — continent-colored with pulse
   ═══════════════════════════════════════════════════════ */
.mc-pin-wrap {
  background: none !important;
  border: none !important;
}
.mc-map-pin {
  position: relative;
  width: 22px;
  height: 22px;
}
.mc-pin-body {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--pin-color, #CF2A1E);
  box-shadow: 0 0 0 2px #fff, 0 0 10px var(--pin-color, #CF2A1E);
  z-index: 2;
  transition: transform .2s var(--mc-ease);
}
.mc-map-pin:hover .mc-pin-body { transform: scale(1.35); }
.mc-pin-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--pin-color, #CF2A1E);
  opacity: .35;
  animation: pin-pulse 2.4s cubic-bezier(0,0,.2,1) infinite;
}
@keyframes pin-pulse {
  0%   { transform: scale(.7); opacity: .5; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* legacy marker icon (panel dots) */
.mc-marker-icon { background: none !important; border: none !important; }
.mc-pulse-marker { position: relative; width: 24px; height: 24px; }
.mc-pulse-marker .mc-pin-center {
  position: absolute; top: 50%; left: 50%;
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; z-index: 2;
}
.mc-pulse-marker .mc-pin-ring {
  position: absolute; top: 50%; left: 50%;
  width: 24px; height: 24px; margin: -12px 0 0 -12px;
  border-radius: 50%; border: 2px solid;
  animation: mc-pulse 2s cubic-bezier(0,0,.2,1) infinite;
}
@keyframes mc-pulse {
  0%   { transform: scale(1); opacity: .6; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════
   MAP TOOLTIP (hover) — white glass, matches Voyager map
   ═══════════════════════════════════════════════════════ */
.mc-map-tooltip {
  background: rgba(255,255,255,.96) !important;
  border: 1px solid rgba(15,23,42,.12) !important;
  border-radius: 8px !important;
  color: #1e293b !important;
  font-size: .8rem !important;
  font-weight: 600 !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  padding: 6px 12px !important;
  box-shadow: 0 4px 16px rgba(15,23,42,.15) !important;
  backdrop-filter: blur(10px);
  pointer-events: none;
  white-space: nowrap;
}
.mc-map-tooltip::before {
  border-top-color: rgba(255,255,255,.96) !important;
}

/* ═══════════════════════════════════════════════════════
   RICH POPUP CARD — continent badge, no coordinates
   ═══════════════════════════════════════════════════════ */
.mc-popup-wrapper .leaflet-popup-content-wrapper {
  background: rgba(8,8,20,.96) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  border-radius: 14px !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-shadow: 0 16px 50px rgba(0,0,0,.7), 0 0 0 1px rgba(207,42,30,.15) !important;
  backdrop-filter: blur(16px);
  min-width: 240px;
}
.mc-popup-wrapper .leaflet-popup-tip-container {
  display: none !important;
}
.mc-popup-wrapper .leaflet-popup-close-button {
  color: rgba(255,255,255,.5) !important;
  top: 8px !important;
  right: 8px !important;
  font-size: 1rem !important;
  z-index: 2;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08) !important;
  border-radius: 50%;
  transition: background .2s;
}
.mc-popup-wrapper .leaflet-popup-close-button:hover {
  background: rgba(207,42,30,.3) !important;
  color: #fff !important;
}
.mc-popup-wrapper .leaflet-popup-content { margin: 0 !important; }

.mc-rich-popup { font-family: 'Inter', system-ui, sans-serif; }
.mc-rich-popup-head {
  padding: 16px 20px 14px;
  position: relative;
}
.mc-rich-popup-cat {
  display: inline-block;
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.85);
  margin-bottom: 4px;
}
.mc-rich-popup-name {
  color: #fff;
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
}
.mc-rich-popup-body {
  padding: 14px 20px 18px;
}
.mc-rich-popup-desc {
  color: var(--mc-text-dim);
  font-size: .82rem;
  line-height: 1.55;
  margin: 0 0 12px;
}
/* Continent region badge (replaces coordinate row) */
.mc-rich-popup-region-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid color-mix(in srgb, var(--badge-color, var(--mc-red)) 40%, transparent);
  background: color-mix(in srgb, var(--badge-color, var(--mc-red)) 12%, transparent);
  border-radius: 999px;
  padding: 3px 10px 3px 6px;
  margin-bottom: 12px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--badge-color, var(--mc-red));
}
.mc-badge-emoji { font-size: .85rem; line-height: 1; }
.mc-badge-label { font-size: .72rem; }

.mc-rich-popup-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--mc-red);
  text-decoration: none;
  margin-right: 10px;
}
.mc-rich-popup-link:hover { color: #ff6b5b; }
.mc-rich-popup-detail {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: none;
  background: rgba(207,42,30,.15);
  color: var(--mc-red);
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: .76rem;
  font-weight: 700;
  font-family: inherit;
  transition: background .2s, color .2s;
}
.mc-rich-popup-detail:hover {
  background: var(--mc-red);
  color: #fff;
}

/* globe tooltips */
.scene-tooltip {
  background: rgba(10,10,24,.92) !important;
  border: 1px solid var(--mc-red-glow) !important;
  border-radius: 10px !important;
  padding: 10px 16px !important;
  color: var(--mc-text) !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.5) !important;
  pointer-events: none;
}
.mc-tooltip-title { font-size: 1rem; font-weight: 700; color: var(--mc-red); margin-bottom: 3px; }
.mc-tooltip-desc  { font-size: .8rem; color: var(--mc-text-dim); max-width: 200px; white-space: normal; }

/* ═══════════════════════════════════════════════════════
   CLIENT PANEL — absolute overlay inside .mc-map-flat-wrap
   ═══════════════════════════════════════════════════════ */
.mc-client-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  background: rgba(6, 8, 20, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255,255,255,0.09);
  border-radius: 0 var(--mc-radius) var(--mc-radius) 0;
  display: flex;
  flex-direction: column;
  z-index: 800;
  transition: transform 0.35s cubic-bezier(.25,.46,.45,.94),
              opacity 0.35s ease;
  max-height: 100%;
}
.mc-client-panel.mc-panel-closed {
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
}

.mc-panel-header {
  padding: 14px 14px 10px;
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(6,8,20,.96);
  border-bottom: 1px solid var(--mc-border);
}

/* ── Panel header top row (title + close) ── */
.mc-panel-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.mc-panel-title {
  font-size: .75rem;
  font-weight: 700;
  color: rgba(241,245,249,.5);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.mc-panel-close {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(241,245,249,.5);
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
  font-family: inherit;
  flex-shrink: 0;
}
.mc-panel-close:hover {
  background: rgba(207,42,30,.2);
  border-color: var(--mc-red);
  color: #fff;
}

/* ── Search ── */
.mc-panel-search-wrap {
  position: relative;
}
.mc-panel-search-wrap::before {
  content: '⌕';
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--mc-text-muted);
  font-size: .95rem;
  pointer-events: none;
}
.mc-panel-search {
  width: 100%;
  padding: 9px 12px 9px 34px;
  border: 1px solid var(--mc-border);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: var(--mc-text);
  font-size: .83rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.mc-panel-search::placeholder { color: var(--mc-text-muted); }
.mc-panel-search:focus {
  border-color: var(--mc-red);
  box-shadow: 0 0 0 3px var(--mc-red-dim);
}

/* ── Panel list (scrollable) ── */
.mc-panel-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 8px 12px;
}
.mc-panel-list::-webkit-scrollbar { width: 3px; }
.mc-panel-list::-webkit-scrollbar-track { background: transparent; }
.mc-panel-list::-webkit-scrollbar-thumb { background: var(--mc-border); border-radius: 999px; }

/* ── Region groups ── */
.mc-region-group { margin-bottom: 4px; }
.mc-region-group.mc-region-empty { display: none; }

.mc-region-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: none;
  background: transparent;
  color: var(--mc-text-muted);
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-family: inherit;
  transition: background .2s, color .2s;
}
.mc-region-toggle:hover {
  background: rgba(255,255,255,.04);
  color: var(--mc-text-dim);
}
.mc-region-icon  { font-size: 1rem; line-height: 1; }
.mc-region-name  { flex: 1; text-align: left; }
.mc-region-count {
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: .68rem;
  font-weight: 700;
  color: var(--mc-text-muted);
  min-width: 22px;
  text-align: center;
}
.mc-region-chevron {
  color: var(--mc-text-muted);
  flex-shrink: 0;
  transition: transform .25s var(--mc-ease);
}
.mc-region-collapsed .mc-region-chevron { transform: rotate(-90deg); }
.mc-region-items { padding: 0 2px; }
.mc-region-collapsed .mc-region-items { display: none; }

/* ── Panel items ── */
.mc-panel-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .2s, border-color .2s, opacity .35s, transform .35s;
}
.mc-panel-item:hover,
.mc-panel-item.active {
  background: rgba(255,255,255,.04);
  border-color: var(--mc-border);
}
.mc-panel-item.mc-tour-focus {
  background: var(--mc-red-dim);
  border-color: var(--mc-red-glow);
}
.mc-panel-item.hidden { display: none; }

/* stagger animation */
.mc-item-ready { opacity: 0; transform: translateX(-8px); }
.mc-reveal-active .mc-item-ready { opacity: 1; transform: translateX(0); }

/* continent dot (inline colored via PHP style attribute) */
.mc-pin-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mc-panel-item-body { flex: 1; min-width: 0; }
.mc-panel-item-name {
  display: block;
  font-size: .83rem;
  font-weight: 600;
  color: var(--mc-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mc-panel-item-desc {
  display: block;
  font-size: .73rem;
  color: var(--mc-text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.mc-panel-item-link {
  color: var(--mc-text-muted);
  text-decoration: none;
  font-size: .9rem;
  flex-shrink: 0;
  transition: color .2s;
  padding: 4px;
}
.mc-panel-item-link:hover { color: var(--mc-red); }

/* ── Search highlight ── */
.mc-search-mark {
  background: rgba(207,42,30,.25);
  color: #fff;
  border-radius: 3px;
  padding: 0 2px;
}

/* ═══════════════════════════════════════════════════════
   SPOTLIGHT MODAL — no coordinates row
   ═══════════════════════════════════════════════════════ */
.mc-spotlight {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.mc-spotlight.mc-spotlight-open { pointer-events: all; opacity: 1; }

.mc-spotlight-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.mc-spotlight-card {
  position: relative;
  z-index: 1;
  background: rgba(8,8,22,.94);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 20px;
  padding: 36px 40px 32px;
  width: min(500px, calc(100vw - 32px));
  box-shadow: 0 32px 100px rgba(0,0,0,.75);
  overflow: hidden;
  transform: scale(.92) translateY(18px);
  transition: transform .38s cubic-bezier(.22,1,.36,1);
}
.mc-spotlight-open .mc-spotlight-card { transform: scale(1) translateY(0); }

.mc-spotlight-glow {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
}
.mc-spotlight-close {
  position: absolute; top: 14px; right: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--mc-border);
  color: var(--mc-text-dim);
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; z-index: 2;
}
.mc-spotlight-close:hover {
  background: var(--mc-red-dim);
  color: #fff;
  border-color: var(--mc-red);
}
.mc-spotlight-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px; position: relative; z-index: 1;
}
.mc-spotlight-dot { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; }
.mc-spotlight-titles { flex: 1; min-width: 0; }
.mc-spotlight-name {
  font-size: 1.35rem; font-weight: 700; color: #fff;
  margin: 0 0 4px; line-height: 1.2;
}
.mc-spotlight-cat {
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
}
.mc-spotlight-desc {
  color: var(--mc-text-dim); font-size: .9rem;
  line-height: 1.65; margin: 0 0 22px;
  position: relative; z-index: 1;
}
.mc-spotlight-meta {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 16px;
  margin-bottom: 22px;
  display: flex; flex-direction: column; gap: 8px;
  position: relative; z-index: 1;
}
.mc-spotlight-region-row {
  display: flex; align-items: center; gap: 12px;
}
.mc-scoord-label {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--mc-text-muted);
  min-width: 90px;
}
.mc-spotlight-region { font-size: .82rem; color: var(--mc-text-dim); font-weight: 600; }
.mc-spotlight-actions { position: relative; z-index: 1; }
.mc-spotlight-link {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--mc-red); color: #fff; text-decoration: none;
  padding: 11px 24px; border-radius: 999px;
  font-size: .86rem; font-weight: 600;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 6px 22px var(--mc-red-glow);
}
.mc-spotlight-link:hover { opacity: .88; transform: translateY(-1px); }
.mc-spotlight-arrow { font-size: 1.1rem; }

/* ═══════════════════════════════════════════════════════
   ADMIN OVERRIDES
   ═══════════════════════════════════════════════════════ */
.toplevel_page_clients-map .mc-map-container,
.clients-map_page_clients-map-import .mc-map-container,
.clients-map_page_clients-map-settings .mc-map-container {
  border-radius: 12px;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .mc-client-panel { width: 280px; }
  .mc-stat-showcase-item { padding: 0 14px; }
  .mc-stat-big { font-size: 1.3rem; }
}

/* Mobile: panel slides up from bottom */
@media (max-width: 768px) {
  .mc-client-panel {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 45%;
    border-radius: var(--mc-radius) var(--mc-radius) 0 0;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,.09);
    transform: translateY(0);
  }
  .mc-client-panel.mc-panel-closed {
    transform: translateY(100%);
  }
  .mc-panel-fab-open {
    top: auto;
    bottom: 16px;
    right: 50%;
    transform: translateX(50%);
  }
  .mc-panel-fab-open.mc-hidden { display: none !important; }
  .mc-view-toggle { width: 100%; justify-content: center; }
  .mc-toggle-btn { flex: 1; justify-content: center; }
  .mc-stats-showcase { width: 100%; justify-content: center; }
  .mc-map-fab { bottom: 12px; left: 12px; }
  .mc-spotlight-card { padding: 28px 24px 24px; }
}
@media (max-width: 480px) {
  .mc-stats-showcase { flex-wrap: wrap; border-radius: 16px; }
  .mc-stat-showcase-item { border-left: none !important; border-bottom: 1px solid var(--mc-border); padding: 10px 16px; width: 100%; }
  .mc-stat-showcase-item:last-child { border-bottom: none; }
}

/* Network Lines Animation */
.mc-network-line {
  animation: mc-line-flow 2s linear infinite;
}
@keyframes mc-line-flow {
  to {
    stroke-dashoffset: -14;
  }
}

/* ── Kenya network flight-paths (glow · nodes) ── */
.mc-arc-glow { filter: blur(1px); }

.mc-arc-node-dot {
  position: absolute; left: 50%; top: 50%;
  width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: radial-gradient(circle, #bff9ff 0%, #22d3ee 55%, rgba(34,211,238,0) 75%);
  box-shadow: 0 0 8px 2px rgba(34,211,238,0.7);
  animation: mc-node-pulse 2s ease-in-out infinite;
}
.mc-arc-origin-dot {
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  background: radial-gradient(circle, #d6ffe9 0%, #34e39b 55%, rgba(52,227,155,0) 75%);
  box-shadow: 0 0 12px 3px rgba(52,227,155,0.8);
}
@keyframes mc-node-pulse {
  0%, 100% { transform: scale(1);   opacity: 1;   }
  50%      { transform: scale(1.4); opacity: .7;  }
}

/* ── CRITICAL: guard Leaflet's vector <svg> from theme/Elementor rules ──
   Themes commonly ship `img, svg { max-width: 100%; height: auto }`. Leaflet's
   vector renderer is a large viewBox-based <svg>; that rule caps it to the
   container width and rescales the viewBox, shrinking every arc/line to a
   fraction of its size in the corner — so the flight-path arcs "disappear"
   while tiles, the map image and HTML markers (planes) stay fine. Force the
   renderer SVG back to its intrinsic, attribute-driven size. Scoped to the
   Leaflet panes so it never touches our inline plane-icon glyphs. */
.mc-map-flat svg.leaflet-zoom-animated,
.mc-map-flat .leaflet-pane > svg,
.mc-map-root svg.leaflet-zoom-animated,
.mc-map-root .leaflet-pane > svg {
    max-width: none !important;
    max-height: none !important;
    width: auto !important;
    height: auto !important;
}

/* Fix broken tile styling and apply beautiful brand filter to OSM tiles */
.leaflet-tile {
    border: none !important;
    outline: none !important;
}
.mc-map-flat .leaflet-tile-pane {
    filter: sepia(0.4) hue-rotate(140deg) saturate(1.4) contrast(1.05) brightness(0.98);
}
.mc-map-flat {
    background-color: #061b35 !important;
}

/* CRITICAL FIX: Prevent theme CSS from adding gaps/borders to map tiles */
.mc-map-flat img,
.mc-map-flat .leaflet-tile,
.mc-map-flat .leaflet-tile-container img,
.mc-map-flat .leaflet-image-layer {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    max-width: none !important;
}
.mc-map-flat .leaflet-tile-pane {
    filter: sepia(0.4) hue-rotate(140deg) saturate(1.4) contrast(1.05) brightness(0.98);
}
.mc-map-flat {
    background-color: #061b35 !important;
}
