/* ============================================================
   /harta — Civic OS design (scoped, NU modifică global.css)
   Bază: blue-primary + amber-secondary + slate-neutral
   Vocabular distinct: floating panels, command palette, pulse,
   activity stream — instrument de lucru, nu pagină marketing.
   ============================================================ */

.harta-app {
  position: relative;
  height: 100vh;
  width: 100%;
  background: #FAFBFC;
  font-family: 'Inter', system-ui, sans-serif;
  color: #0F172A;
  overflow: hidden;
}

/* =========== TOP BAR =========== */
.harta-topbar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}
.harta-topbar > * { pointer-events: auto; }

.harta-topbar-left,
.harta-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: 14px;
  padding: 8px 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -12px rgba(15, 23, 42, 0.08);
  height: 44px;
}

.harta-brand {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: #0F172A;
  text-decoration: none;
}
.harta-brand-accent { color: #2563EB; }

.harta-divider {
  width: 1px;
  height: 18px;
  background: #E2E8F0;
}

.harta-page-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #334155;
  letter-spacing: -0.005em;
}

.harta-cmdk-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px 0 4px;
  background: transparent;
  border: none;
  font-size: 13px;
  color: #475569;
  cursor: pointer;
  transition: color 150ms;
}
.harta-cmdk-trigger:hover { color: #0F172A; }
.harta-cmdk-trigger svg { color: #94A3B8; }

.harta-kbd-inline,
.harta-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
  color: #475569;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 3px 6px;
  letter-spacing: 0.02em;
}

/* =========== METRIC SWITCHER BAR =========== */
.harta-metric-bar {
  position: absolute;
  top: 76px;
  left: 16px;
  z-index: 22;
  pointer-events: none;
  display: flex;
}
.harta-metric-switcher {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: 12px;
  padding: 4px 4px 4px 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -12px rgba(15, 23, 42, 0.08);
  height: 38px;
}
.harta-metric-label {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748B;
}
.harta-metric-tabs {
  display: inline-flex;
  gap: 1px;
  background: #F1F5F9;
  border-radius: 8px;
  padding: 2px;
}
.harta-metric-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
  transition: all 150ms;
}
.harta-metric-tab:hover { color: #0F172A; background: rgba(255, 255, 255, 0.6); }
.harta-metric-tab.is-active {
  background: white;
  color: #1D4ED8;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.harta-metric-icon {
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
}
.harta-metric-name { font-size: 11.5px; }

/* =========== FILTER CHIPS BAR =========== */
.harta-chips-bar {
  position: absolute;
  top: 124px;
  left: 16px;
  right: 16px;
  z-index: 20;
  pointer-events: none;
  display: flex;
}
.harta-chips, .harta-chips-empty { pointer-events: auto; }

.harta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.harta-chips-empty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.5);
  border-radius: 999px;
  padding: 4px 12px 4px 6px;
}

.harta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #DBEAFE;
  color: #1D4ED8;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 150ms;
}
.harta-chip:hover {
  background: #BFDBFE;
  border-color: rgba(37, 99, 235, 0.4);
}
.harta-chip svg { opacity: 0.7; }

.harta-chip-clear {
  font-size: 12px;
  color: #64748B;
  background: transparent;
  border: 1px dashed #CBD5E1;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 150ms;
}
.harta-chip-clear:hover {
  color: #0F172A;
  border-color: #94A3B8;
  border-style: solid;
}

/* =========== MAP AREA =========== */
.harta-map-wrap {
  position: absolute;
  inset: 0;
}

/* MapLibre attribution bottom-right toned */
.harta-map-wrap .maplibregl-ctrl-bottom-right {
  bottom: 12px;
  right: 12px;
}
.harta-map-wrap .maplibregl-ctrl-attrib {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  font-size: 10px;
}

/* MapLibre nav control restyled */
.harta-map-wrap .maplibregl-ctrl-top-right {
  top: 116px;
  right: 16px;
}
.harta-map-wrap .maplibregl-ctrl-group {
  border-radius: 12px !important;
  border: 1px solid rgba(226, 232, 240, 0.7) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -12px rgba(15, 23, 42, 0.08) !important;
  overflow: hidden;
}

/* =========== LEGEND =========== */
.harta-legend {
  position: absolute;
  bottom: 96px;
  left: 16px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -12px rgba(15, 23, 42, 0.08);
}
.harta-legend-title {
  font-size: 10.5px;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.harta-legend-bar {
  display: flex;
  gap: 1px;
}
.harta-legend-stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 36px;
}
.harta-legend-swatch {
  width: 100%;
  height: 10px;
  border-radius: 2px;
}
.harta-legend-stop:first-child .harta-legend-swatch { border-radius: 4px 0 0 4px; }
.harta-legend-stop:last-child .harta-legend-swatch { border-radius: 0 4px 4px 0; }
.harta-legend-label {
  font-size: 9.5px;
  color: #64748B;
  margin-top: 3px;
}

/* =========== TOOLTIP =========== */
.harta-tip-popup .maplibregl-popup-content {
  padding: 0 !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 8px rgba(15, 23, 42, 0.06), 0 16px 40px -12px rgba(15, 23, 42, 0.18) !important;
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.harta-tip-popup .maplibregl-popup-tip {
  border-top-color: rgba(255, 255, 255, 0.97) !important;
}

.harta-tip {
  font-family: 'Inter', system-ui, sans-serif;
  padding: 12px 14px;
  min-width: 200px;
}
.harta-tip-head { margin-bottom: 8px; }
.harta-tip-name {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #0F172A;
  letter-spacing: -0.01em;
}
.harta-tip-county {
  font-size: 11px;
  color: #64748B;
  margin-top: 1px;
}
.harta-tip-value {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #1D4ED8;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}
.harta-tip-value span {
  font-size: 11px;
  font-weight: 500;
  color: #94A3B8;
  margin-left: 4px;
}
.harta-tip-meta {
  font-size: 11px;
  color: #64748B;
  display: flex;
  gap: 6px;
  align-items: center;
}
.harta-tip-sep { color: #CBD5E1; }
.harta-tip-empty {
  font-size: 12px;
  color: #94A3B8;
  font-style: italic;
}
.harta-tip-cta {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #F1F5F9;
  font-size: 10.5px;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* =========== RIGHT RAIL (stat column + activity) =========== */
.harta-rail {
  position: absolute;
  top: 168px;
  right: 16px;
  bottom: 96px;
  width: 360px;
  z-index: 15;
  display: flex;
  align-items: stretch;
  gap: 0;
  pointer-events: none;
  transition: transform 220ms ease;
}
.harta-rail.is-collapsed {
  transform: translateX(calc(100% - 32px));
}

.harta-rail-toggle {
  pointer-events: auto;
  align-self: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-right: none;
  border-radius: 10px 0 0 10px;
  width: 24px;
  height: 56px;
  cursor: pointer;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 150ms;
}
.harta-rail-toggle:hover { color: #0F172A; }

.harta-rail-inner {
  pointer-events: auto;
  flex: 1;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 24px 48px -16px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.harta-statcol {
  flex: 1;
  overflow-y: auto;
  padding: 18px 18px 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
}
.harta-statcol::-webkit-scrollbar { width: 6px; }
.harta-statcol::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }

.harta-statcol-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  font-size: 11.5px;
  color: #64748B;
  cursor: pointer;
  padding: 0;
  margin-bottom: 4px;
  transition: color 150ms;
}
.harta-statcol-back:hover { color: #1D4ED8; }

.harta-statcol-header { display: flex; flex-direction: column; gap: 4px; }
.harta-statcol-kicker {
  font-size: 10.5px;
  font-weight: 600;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.harta-statcol-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #0F172A;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0;
}

.harta-statcol-hero {
  background: linear-gradient(135deg, #1E3A5F 0%, #1D4ED8 70%, #2563EB 100%);
  border-radius: 14px;
  padding: 14px 16px;
  color: white;
  position: relative;
  overflow: hidden;
}
.harta-statcol-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 80% 0%, rgba(245, 158, 11, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(96, 165, 250, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.harta-statcol-hero-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
  position: relative;
}
.harta-statcol-hero-value {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-top: 4px;
  position: relative;
}
.harta-statcol-hero-unit {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.65;
}
.harta-statcol-hero-sub {
  font-size: 11.5px;
  opacity: 0.7;
  margin-top: 4px;
  position: relative;
}

.harta-statcol-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.harta-card {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 10px 12px;
  transition: border-color 150ms;
}
.harta-card:hover { border-color: #CBD5E1; }
.harta-card-label {
  font-size: 10.5px;
  font-weight: 500;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.harta-card-value {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #0F172A;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.harta-card-hint {
  font-size: 10.5px;
  color: #94A3B8;
  margin-top: 2px;
}

.harta-statcol-progress {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 10px 12px 12px;
}
.harta-statcol-progress-label {
  font-size: 11px;
  color: #475569;
  font-weight: 500;
}
.harta-statcol-progress-num {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #0F172A;
}
.harta-statcol-progress-track {
  height: 4px;
  background: #F1F5F9;
  border-radius: 4px;
  overflow: hidden;
}
.harta-statcol-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563EB, #3B82F6);
  border-radius: 4px;
  transition: width 600ms ease;
}
.harta-statcol-progress-hint {
  font-size: 10.5px;
  color: #94A3B8;
  margin-top: 4px;
}

.harta-statcol-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.harta-statcol-block-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.harta-statcol-block-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #E2E8F0, transparent);
}

.harta-statcol-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.harta-statcol-bar {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
}
.harta-statcol-bar-label {
  display: flex;
  gap: 6px;
  align-items: center;
  color: #334155;
  min-width: 0;
}
.harta-statcol-bar-rank {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  color: #94A3B8;
  font-variant-numeric: tabular-nums;
}
.harta-statcol-bar-track {
  height: 4px;
  background: #F1F5F9;
  border-radius: 4px;
  overflow: hidden;
}
.harta-statcol-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #93C5FD, #2563EB);
  border-radius: 4px;
}
.harta-statcol-bar-value {
  font-size: 11px;
  color: #0F172A;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.harta-statcol-suppliers {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.harta-statcol-supplier {
  background: #F8FAFC;
  border: 1px solid #F1F5F9;
  border-radius: 10px;
  padding: 8px 10px;
}
.harta-statcol-supplier-name {
  font-size: 12px;
  font-weight: 600;
  color: #0F172A;
  line-height: 1.3;
  margin-bottom: 3px;
  word-break: break-word;
}
.harta-statcol-supplier-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: #64748B;
}

.harta-statcol-recent {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.harta-statcol-recent-row {
  display: block;
  border-left: 2px solid #DBEAFE;
  padding: 6px 10px;
  text-decoration: none;
  color: inherit;
  transition: all 150ms;
  border-radius: 0 6px 6px 0;
}
.harta-statcol-recent-row:hover {
  background: #F8FAFC;
  border-left-color: #2563EB;
}
.harta-statcol-recent-title {
  font-size: 11.5px;
  color: #1E293B;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.harta-statcol-recent-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: #64748B;
  margin-top: 2px;
}

/* =========== ACTIVITY STREAM =========== */
.harta-activity {
  border-top: 1px solid #F1F5F9;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  max-height: 240px;
}
.harta-activity.is-collapsed { max-height: 40px; }

.harta-activity-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  text-align: left;
  color: #475569;
  transition: color 150ms;
}
.harta-activity-header:hover { color: #0F172A; }

.harta-activity-pulse {
  width: 6px;
  height: 6px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  animation: harta-pulse-dot 2s infinite;
}
@keyframes harta-pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.harta-activity-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.harta-activity-count {
  background: #F1F5F9;
  color: #475569;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.harta-activity-body {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
  padding: 0 8px 12px;
}
.harta-activity-body::-webkit-scrollbar { width: 6px; }
.harta-activity-body::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }

.harta-activity-empty {
  padding: 20px 12px;
  text-align: center;
  font-size: 12px;
  color: #94A3B8;
}

.harta-activity-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  transition: background 150ms;
  animation: harta-stream-in 400ms ease backwards;
}
.harta-activity-row:hover {
  background: rgba(241, 245, 249, 0.7);
}
@keyframes harta-stream-in {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.harta-activity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94A3B8;
  flex-shrink: 0;
}
.harta-activity-dot[data-type="da"] { background: #2563EB; }
.harta-activity-dot[data-type="contract"],
.harta-activity-dot[data-type="atribuire_fara"] { background: #F59E0B; }

.harta-activity-row-title {
  font-size: 11.5px;
  color: #0F172A;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.harta-activity-row-meta {
  font-size: 10.5px;
  color: #64748B;
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 1px;
}
.harta-activity-county {
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94A3B8;
  flex-shrink: 0;
}
.harta-activity-row-value {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #1D4ED8;
  font-variant-numeric: tabular-nums;
}
.harta-activity-row-time {
  font-size: 9.5px;
  color: #94A3B8;
}

/* =========== TIMELINE SCRUBBER =========== */
.harta-timeline-wrap {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

.harta-timeline {
  display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -8px rgba(15, 23, 42, 0.12);
  padding: 4px;
  gap: 2px;
}

.harta-timeline-all {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  background: transparent;
  border: none;
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 150ms;
}
.harta-timeline-all:hover { color: #0F172A; background: #F1F5F9; }
.harta-timeline-all.is-active {
  background: #0F172A;
  color: white;
}

.harta-timeline-track {
  display: flex;
  gap: 2px;
}

.harta-timeline-tick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: transparent;
  border: none;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 150ms;
  font-family: inherit;
}
.harta-timeline-tick:hover { background: #F1F5F9; }
.harta-timeline-tick.is-active {
  background: #DBEAFE;
}
.harta-timeline-tick-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #CBD5E1;
  transition: all 150ms;
}
.harta-timeline-tick:hover .harta-timeline-tick-dot { background: #94A3B8; }
.harta-timeline-tick.is-active .harta-timeline-tick-dot {
  background: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
.harta-timeline-tick-label {
  font-size: 10.5px;
  font-weight: 600;
  color: #64748B;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.005em;
}
.harta-timeline-tick.is-active .harta-timeline-tick-label { color: #1D4ED8; }

/* =========== COMMAND PALETTE =========== */
.harta-cmdk-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 16vh;
  animation: harta-fade-in 150ms ease;
}
@keyframes harta-fade-in { from { opacity: 0; } to { opacity: 1; } }

.harta-cmdk {
  width: 580px;
  max-width: calc(100vw - 32px);
  background: white;
  border-radius: 16px;
  box-shadow: 0 24px 64px -16px rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(226, 232, 240, 0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 70vh;
  animation: harta-slide-down 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes harta-slide-down {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.harta-cmdk-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #F1F5F9;
}
.harta-cmdk-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  color: #0F172A;
  background: transparent;
}
.harta-cmdk-input::placeholder { color: #94A3B8; }
.harta-cmdk-esc {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94A3B8;
  background: #F1F5F9;
  border-radius: 5px;
  padding: 3px 7px;
  border: 1px solid #E2E8F0;
  border-bottom-width: 2px;
}

.harta-cmdk-results {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
}
.harta-cmdk-results::-webkit-scrollbar { width: 6px; }
.harta-cmdk-results::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }

.harta-cmdk-empty {
  padding: 32px 16px;
  text-align: center;
  font-size: 13px;
  color: #94A3B8;
}

.harta-cmdk-group {
  padding: 4px 0 8px;
}
.harta-cmdk-group-label {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94A3B8;
  padding: 6px 16px 4px;
}

.harta-cmdk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 16px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 13.5px;
  color: #1E293B;
  cursor: pointer;
  text-align: left;
  transition: background 100ms;
}
.harta-cmdk-item.is-active {
  background: #DBEAFE;
  color: #1D4ED8;
}
.harta-cmdk-hint {
  font-size: 11px;
  color: #94A3B8;
  flex-shrink: 0;
}
.harta-cmdk-item.is-active .harta-cmdk-hint { color: #3B82F6; }

.harta-cmdk-footer {
  display: flex;
  gap: 16px;
  padding: 10px 16px;
  border-top: 1px solid #F1F5F9;
  background: #FAFBFC;
  font-size: 11px;
  color: #64748B;
}
.harta-cmdk-footer span { display: flex; align-items: center; gap: 4px; }
.harta-cmdk-footer kbd {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #475569;
  background: white;
  border: 1px solid #E2E8F0;
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 2px 5px;
  min-width: 16px;
  text-align: center;
}

/* =========== FLOW LAYER (money flow lines from selected authority) =========== */
.harta-flow-svg {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  width: 100%;
  height: 100%;
  animation: harta-flow-fade-in 300ms ease;
}
@keyframes harta-flow-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =========== PULSE LAYER (live amber pulses on map) =========== */
.harta-pulse-wrap {
  position: absolute;
  pointer-events: none;
  transform: translate(-50%, -50%);
  --pulse-size: 1;
}

.harta-pulse-ring {
  position: absolute;
  top: 0; left: 0;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.35);
  animation: harta-ring 4s cubic-bezier(0, 0.55, 0.45, 1) forwards;
}
.harta-pulse-ring-2 { animation-delay: 0.6s; }
@keyframes harta-ring {
  0%   { transform: scale(calc(1 * var(--pulse-size))); opacity: 0.7; }
  60%  { opacity: 0.25; }
  100% { transform: scale(calc(8 * var(--pulse-size))); opacity: 0; }
}

.harta-pulse-dot {
  position: absolute;
  top: 0; left: 0;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #F59E0B;
  border: 1.5px solid white;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6), 0 0 0 1px rgba(245, 158, 11, 0.3);
  animation: harta-dot-fade 6s ease forwards;
}
@keyframes harta-dot-fade {
  0%, 30% { opacity: 1; transform: scale(calc(1 * var(--pulse-size))); }
  100%    { opacity: 0; transform: scale(calc(1 * var(--pulse-size))); }
}

.harta-pulse-label {
  position: absolute;
  top: -22px;
  left: 8px;
  background: #0F172A;
  color: white;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  animation: harta-label-fade 2.5s ease forwards;
}
@keyframes harta-label-fade {
  0%, 60% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-4px); }
}

/* =========== LOADING =========== */
.harta-loading {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 251, 252, 0.85);
  backdrop-filter: blur(4px);
}
.harta-loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 32px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.15);
  border: 1px solid #E2E8F0;
}
.harta-loading-pulse {
  width: 32px;
  height: 32px;
  border: 3px solid #DBEAFE;
  border-top-color: #2563EB;
  border-radius: 50%;
  animation: harta-spin 800ms linear infinite;
}
@keyframes harta-spin { to { transform: rotate(360deg); } }
.harta-loading-text {
  font-size: 13px;
  color: #475569;
  font-weight: 500;
}

/* =========== RESPONSIVE =========== */
@media (max-width: 900px) {
  .harta-rail {
    width: calc(100% - 32px);
    bottom: 80px;
    top: auto;
    max-height: 50vh;
  }
  .harta-rail.is-collapsed { transform: translateY(calc(100% + 16px)); }
  .harta-page-title { display: none; }
  .harta-cmdk-trigger span:first-of-type { display: none; }
  .harta-legend { left: 8px; bottom: 80px; }
  .harta-legend-stop { width: 24px; }
}
