/* ============================================================
   Valet Sales Map — Modern UI
   ============================================================ */

/* ===== RESET & TOKENS ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palette */
  --primary: #6366f1;
  --primary-light: rgba(99,102,241,.08);
  --primary-medium: rgba(99,102,241,.15);
  --primary-dark: #4f46e5;
  --accent: #14b8a6;
  --accent-light: rgba(20,184,166,.1);
  --success: #10b981;
  --success-light: rgba(16,185,129,.1);
  --warning: #f59e0b;
  --warning-light: rgba(245,158,11,.08);
  --danger: #ef4444;
  --danger-light: rgba(239,68,68,.08);

  /* Neutrals */
  --n-0: #ffffff;
  --n-25: #fafbfc;
  --n-50: #f1f5f9;
  --n-100: #e2e8f0;
  --n-200: #cbd5e1;
  --n-300: #94a3b8;
  --n-400: #64748b;
  --n-500: #475569;
  --n-600: #334155;
  --n-700: #1e293b;
  --n-800: #0f172a;

  /* Sizing */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 100px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.12);
  --shadow-glow: 0 0 20px rgba(99,102,241,.15);

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
  --dur: 200ms;
}

html { font-size: 14px; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--n-50);
  color: var(--n-700);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== TOP BAR ===== */
#topBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 52px;
  background: var(--n-800);
  color: #fff;
  flex-shrink: 0;
  z-index: 1000;
  position: relative;
}
#topBar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}
.top-left { display: flex; align-items: center; gap: 12px; }
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
}
.logo-text {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .5px;
  color: #fff;
}
.top-divider {
  width: 1px;
  height: 20px;
  background: var(--n-600);
}
.tagline { font-size: .78rem; color: var(--n-300); font-weight: 500; letter-spacing: .3px; }
.top-right { display: flex; align-items: center; gap: 14px; }

/* Admin Toggle */
.admin-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.admin-toggle input { display: none; }
.toggle-slider {
  width: 36px; height: 20px;
  background: var(--n-600);
  border-radius: 10px;
  position: relative;
  transition: background var(--dur) var(--ease);
}
.toggle-slider::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  top: 2px; left: 2px;
  transition: transform var(--dur) var(--ease);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.admin-toggle input:checked + .toggle-slider { background: var(--accent); }
.admin-toggle input:checked + .toggle-slider::after { transform: translateX(16px); }
.toggle-label { font-size: .78rem; color: var(--n-300); font-weight: 500; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }
.btn-export {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 8px 20px;
}
.btn-export:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99,102,241,.35);
}
.btn-tool {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.1);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: .75rem;
  backdrop-filter: blur(4px);
}
.btn-tool.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(99,102,241,.3);
}
.btn-tool:hover:not(.active) { background: rgba(255,255,255,.18); }
.btn-deselect { color: rgba(251,146,60,.9); }
.btn-deselect.active {
  background: #f97316;
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(249,115,22,.3);
}
.btn-deselect:hover:not(.active) { background: rgba(249,115,22,.15); }
.btn-danger { color: rgba(239,68,68,.9); }
.btn-danger:hover { background: rgba(239,68,68,.15) !important; color: #ef4444; }

/* Map loading indicator */
#mapLoading {
  position: absolute;
  top: 56px; left: 50%;
  transform: translateX(-50%);
  background: rgba(30,41,59,.9);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  font-weight: 600;
  z-index: 1000;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
#mapLoading.visible { opacity: 1; }
.map-loading-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #818cf8;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== MAIN LAYOUT ===== */
#app {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: calc(100vh - 54px);
}
#mapPanel {
  width: 40%;
  min-width: 380px;
  max-width: 640px;
  height: calc(100vh - 54px);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid var(--n-100);
  overflow: hidden;
  position: sticky;
  top: 0;
}
#rightPanel {
  flex: 1;
  height: calc(100vh - 54px);
  overflow-y: auto;
  background: var(--n-0);
  min-width: 0;
}

/* ===== MAP ===== */
#mapContainer {
  height: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  flex-grow: 0;
}

/* ===== CITIES SECTION (below map) ===== */
#mapPanel #citiesSection {
  height: 50%;
  overflow-y: auto;
  border-top: 1px solid var(--n-100);
  min-height: 0;
  flex-shrink: 0;
  flex-grow: 0;
}
#mapPanel #citiesSection .section-header {
  position: sticky;
  top: 0;
  background: var(--n-0);
  z-index: 2;
}
#citiesTableWrap {
  overflow-y: auto;
  max-height: 360px;
}
#map {
  flex: 1;
  min-height: 0;
  z-index: 1;
}

/* Floating Toolbar */
#mapToolbar {
  position: absolute;
  top: 8px; left: 8px; right: 8px;
  z-index: 800;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(15,23,42,.82);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.06);
}
.toolbar-group {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}
.toolbar-group label {
  font-size: .72rem;
  font-weight: 600;
  color: var(--n-300);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.toolbar-divider {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,.1);
  flex-shrink: 0;
}
#radiusSlider {
  width: 90px;
  accent-color: var(--primary);
  cursor: pointer;
}
#radiusValue {
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 36px;
}
.search-group {
  flex: 1;
  min-width: 0;
}
.search-icon {
  position: absolute;
  left: 10px;
  color: var(--n-300);
  pointer-events: none;
  z-index: 1;
}
#citySearch {
  width: 100%;
  padding: 6px 10px 6px 32px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: inherit;
  font-size: .8rem;
  outline: none;
  transition: all var(--dur) var(--ease);
}
#citySearch::placeholder { color: var(--n-400); }
#citySearch:focus {
  background: rgba(255,255,255,.12);
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(99,102,241,.25);
}

/* Map Legend */
#mapLegend {
  position: absolute;
  bottom: 12px; left: 12px;
  z-index: 800;
  display: flex;
  gap: 14px;
  padding: 6px 14px;
  background: rgba(15,23,42,.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-pill);
  font-size: .72rem;
  color: var(--n-200);
  border: 1px solid rgba(255,255,255,.06);
}
.legend-item { display: flex; align-items: center; gap: 5px; }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot-selected { background: #4f46e5; box-shadow: 0 0 8px rgba(79,70,229,.5); }
.dot-available { background: #6366f1; box-shadow: 0 0 4px rgba(99,102,241,.3); opacity: .7; }
.dot-radius { background: rgba(99,102,241,.2); border: 1.5px solid #6366f1; }
.dot-deselect { background: rgba(249,115,22,.2); border: 1.5px solid #f97316; }

/* Map style switcher */
#mapStyleSwitcher {
  position: absolute;
  bottom: 12px; right: 12px;
  z-index: 800;
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,.06);
}
.map-style-btn {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--n-400);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.map-style-btn:hover {
  background: var(--n-50);
  color: var(--n-600);
}
.map-style-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(99,102,241,.3);
}

/* ===== SEARCH DROPDOWN ===== */
.search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--n-0);
  border: 1px solid var(--n-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 240px;
  overflow-y: auto;
  z-index: 999;
  display: none;
}
.search-dropdown.open { display: block; }
.search-dropdown .dd-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: .82rem;
  border-bottom: 1px solid var(--n-50);
  transition: background var(--dur) var(--ease);
}
.search-dropdown .dd-item:last-child { border-bottom: none; }
.search-dropdown .dd-item:hover { background: var(--primary-light); }
.search-dropdown .dd-item .dd-sub {
  display: block;
  font-size: .72rem;
  color: var(--n-300);
  margin-top: 2px;
}

/* ===== PANEL SECTIONS ===== */
.panel-section {
  padding: 20px;
  border-bottom: 1px solid var(--n-100);
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--n-700);
}
.section-header h2 svg { color: var(--n-300); }
.section-subtitle {
  font-size: .7rem;
  color: var(--n-300);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.pop-summary {
  display: flex;
  gap: 6px;
}
.pop-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: var(--n-50);
  border-radius: var(--radius-pill);
  font-size: .72rem;
  font-weight: 600;
  color: var(--n-500);
}
.pop-badge span { font-weight: 700; color: var(--n-700); }
.pop-badge-accent {
  background: var(--primary-light);
  color: var(--primary-dark);
}
.pop-badge-accent span { color: var(--primary-dark); }

/* ===== CITIES TABLE ===== */
#citiesTableWrap {
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--n-100);
  border-radius: var(--radius);
  background: var(--n-0);
}
#citiesTable {
  width: 100%;
  border-collapse: collapse;
  font-size: .8rem;
}
#citiesTable thead {
  position: sticky;
  top: 0;
  z-index: 2;
}
#citiesTable thead tr {
  background: var(--n-50);
}
#citiesTable th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--n-400);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  border-bottom: 1px solid var(--n-100);
}
#citiesTable td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid var(--n-50);
  transition: background var(--dur) var(--ease);
}
.col-check { width: 40px; text-align: center !important; }
.col-pop { text-align: right !important; }
#citiesTable .col-pop { text-align: right !important; font-variant-numeric: tabular-nums; }
#citiesTable tbody tr:nth-child(even) td { background: var(--n-25); }
#citiesTable tbody tr:hover td { background: var(--primary-light); }
#citiesTable tbody tr.unchecked { opacity: .35; }
#citiesTable tbody tr.unchecked:hover { opacity: .55; }

/* Custom checkbox */
#citiesTable input[type="checkbox"],
#selectAllCities {
  appearance: none;
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border: 2px solid var(--n-200);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: all var(--dur) var(--ease);
  vertical-align: middle;
}
#citiesTable input[type="checkbox"]:checked,
#selectAllCities:checked {
  background: var(--primary);
  border-color: var(--primary);
}
#citiesTable input[type="checkbox"]:checked::after,
#selectAllCities:checked::after {
  content: '';
  position: absolute;
  left: 4px; top: 1px;
  width: 5px; height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--n-300);
  font-size: .82rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* ===== BUSINESS SEARCH ===== */
.inline-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--n-500);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 8px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.biz-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.business-search-wrap {
  position: relative;
  min-width: 200px;
  flex-shrink: 0;
}
.biz-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--n-300);
  pointer-events: none;
  z-index: 1;
}
#businessSearch {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1.5px solid var(--n-100);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .82rem;
  color: var(--n-700);
  outline: none;
  transition: all var(--dur) var(--ease);
  background: var(--n-25);
}
#businessSearch:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,.1);
  background: var(--n-0);
}
#businessSearch::placeholder { color: var(--n-300); }

#categoryChips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.chip {
  padding: 6px 14px;
  background: var(--n-0);
  border: 1.5px solid var(--n-100);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: .75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  color: var(--n-500);
}
.chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(99,102,241,.25);
}

/* ===== KEYWORD TABLE ===== */
#keywordDashboard { animation: fadeIn .35s var(--ease); }

/* Keyword toggle button */
.btn-kw-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--n-25);
  border: 1px solid var(--n-100);
  border-radius: var(--radius);
  font-size: .75rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  width: 100%;
  justify-content: center;
  transition: all var(--dur) var(--ease);
  margin-bottom: 10px;
}
.btn-kw-toggle:hover { background: var(--primary-light); border-color: var(--primary); }
.btn-kw-toggle svg { transition: transform .25s var(--ease); }
.btn-kw-toggle.open svg { transform: rotate(180deg); }

/* Keyword content collapsible */
.kw-collapsed {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .35s var(--ease), opacity .25s var(--ease);
}
#keywordContent:not(.kw-collapsed) {
  max-height: 600px;
  opacity: 1;
}

.kw-header { margin-bottom: 10px; }

/* ===== CLIENT DETAILS (Compact Form) ===== */
.client-form-grid { display: flex; flex-direction: column; gap: 10px; }
.cf-row { display: flex; align-items: flex-start; gap: 10px; }
.cf-field { flex: 1; min-width: 0; }
.cf-web-field { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wt-options {
  display: flex;
  gap: 0;
  border: 1px solid var(--n-200);
  border-radius: var(--radius-pill);
  overflow: hidden;
  flex-shrink: 0;
}
.wt-btn {
  padding: 5px 14px;
  font-size: .72rem;
  font-weight: 600;
  border: none;
  background: var(--n-0);
  color: var(--n-400);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.wt-btn:first-child { border-right: 1px solid var(--n-200); }
.wt-btn.active { background: var(--primary); color: #fff; }
.wt-btn:hover:not(.active) { background: var(--n-25); }
.cf-url-wrap { flex: 1; min-width: 180px; animation: fadeIn .25s var(--ease); }
.cf-input {
  width: 100%;
  padding: 6px 10px;
  border: 1.5px solid var(--n-100);
  border-radius: var(--radius-sm);
  background: var(--n-25);
  font-family: inherit;
  font-size: .78rem;
  color: var(--n-700);
  outline: none;
  transition: border-color var(--dur) var(--ease);
}
.cf-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.cf-input::placeholder { color: var(--n-300); }
.cf-textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid var(--n-100);
  border-radius: var(--radius-sm);
  background: var(--n-25);
  font-family: inherit;
  font-size: .78rem;
  color: var(--n-700);
  resize: vertical;
  min-height: 60px;
  outline: none;
  transition: border-color var(--dur) var(--ease);
  line-height: 1.5;
}
.cf-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.cf-textarea::placeholder { color: var(--n-300); }

/* Keep field-wrap for API key modal */
.field-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--n-25);
  border: 1.5px solid var(--n-100);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease);
}
.field-wrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.field-wrap input {
  flex: 1;
  border: none;
  background: none;
  font-size: .82rem;
  color: var(--n-700);
  outline: none;
  font-family: inherit;
}
.field-wrap input::placeholder { color: var(--n-300); }

/* ===== GENERATE STRATEGY BUTTON ===== */
.btn-generate {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--dur) var(--ease);
  box-shadow: 0 4px 14px rgba(99,102,241,.3);
}
.btn-generate:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99,102,241,.4); }
.btn-generate:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
.generate-hint {
  text-align: center;
  font-size: .72rem;
  color: var(--n-300);
  margin-top: 8px;
}

/* ===== API KEY MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  width: 420px;
  max-width: 90vw;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.modal-box h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--n-700);
  margin-bottom: 10px;
}
.modal-box p {
  font-size: .8rem;
  color: var(--n-400);
  line-height: 1.6;
  margin-bottom: 16px;
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}
.btn-cancel {
  padding: 8px 18px;
  background: var(--n-25);
  border: 1px solid var(--n-200);
  border-radius: var(--radius);
  font-size: .8rem;
  font-weight: 600;
  color: var(--n-500);
  cursor: pointer;
}
.btn-save-key {
  padding: 8px 18px;
  background: var(--primary);
  border: none;
  border-radius: var(--radius);
  font-size: .8rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}

/* ===== LOADING SKELETON ===== */
.skeleton-header {
  height: 20px; width: 60%;
  background: linear-gradient(90deg, var(--n-100) 25%, var(--n-50, #f8fafc) 50%, var(--n-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
  margin-bottom: 16px;
}
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.skeleton-card {
  height: 100px;
  background: linear-gradient(90deg, var(--n-100) 25%, var(--n-50, #f8fafc) 50%, var(--n-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
.skeleton-bar {
  height: 14px; width: 100%;
  background: linear-gradient(90deg, var(--n-100) 25%, var(--n-50, #f8fafc) 50%, var(--n-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 10px;
}
.skeleton-bar.short { width: 65%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ===== STRATEGY RESULTS ===== */
/* Insight Cards */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.insight-card {
  padding: 16px;
  background: var(--n-0);
  border: 1px solid var(--n-100);
  border-radius: var(--radius);
  text-align: center;
  transition: all var(--dur) var(--ease);
}
.insight-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.ic-icon { color: var(--primary); margin-bottom: 8px; }
.ic-stat { font-size: 1.4rem; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.ic-title { font-size: .78rem; font-weight: 700; color: var(--n-700); margin-bottom: 6px; }
.ic-desc { font-size: .7rem; color: var(--n-400); line-height: 1.5; }

/* Channel Distribution (Interactive) */
.channels-list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.channel-row {
  display: grid;
  grid-template-columns: 24px 150px 1fr 140px;
  grid-template-rows: auto auto;
  gap: 4px 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--n-100);
  border-radius: var(--radius-sm);
  transition: all var(--dur) var(--ease);
}
.channel-row:hover { border-color: var(--primary); }
.channel-row.ch-disabled {
  opacity: .4;
  background: var(--n-25);
}
.ch-check { grid-row: 1; display: flex; align-items: center; }
.ch-checkbox { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.ch-info { display: flex; align-items: center; gap: 8px; grid-row: 1; }
.ch-icon { font-size: 1rem; }
.ch-name { font-size: .76rem; font-weight: 600; color: var(--n-700); }
.ch-bar-wrap {
  height: 7px;
  background: var(--n-100);
  border-radius: 4px;
  overflow: hidden;
  grid-row: 1;
}
.ch-bar {
  height: 100%;
  border-radius: 4px;
  transition: width .4s var(--ease);
}
.ch-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  grid-row: 1;
  justify-content: flex-end;
}
.ch-pct { font-size: .75rem; font-weight: 800; color: var(--n-500); min-width: 30px; text-align: right; }
.ch-budget-input {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--n-25);
  border: 1px solid var(--n-100);
  border-radius: var(--radius-sm);
  padding: 3px 6px;
}
.ch-dollar { font-size: .72rem; color: var(--n-400); font-weight: 600; }
.ch-mo { font-size: .65rem; color: var(--n-300); }
.ch-budget-field {
  width: 60px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: .75rem;
  font-weight: 700;
  color: var(--primary);
  outline: none;
  text-align: right;
  -moz-appearance: textfield;
}
.ch-budget-field::-webkit-outer-spin-button,
.ch-budget-field::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ch-reason {
  grid-column: 2 / -1;
  grid-row: 2;
  font-size: .68rem;
  color: var(--n-400);
  line-height: 1.4;
  padding-left: 0;
}
.bc-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.bc-range-label { font-size: .68rem; color: var(--n-400); white-space: nowrap; min-width: 50px; }
.bc-range-label:last-child { text-align: right; }
.bc-range-slider {
  flex: 1;
  accent-color: var(--primary);
  cursor: pointer;
  height: 6px;
}
.bc-channels-count {
  font-size: .72rem;
  color: var(--n-400);
  margin-top: 6px;
}

/* Budget Card */
.budget-card {
  padding: 20px;
  background: linear-gradient(135deg, rgba(99,102,241,.08), rgba(20,184,166,.04));
  border: 1.5px solid rgba(99,102,241,.15);
  border-radius: var(--radius);
  text-align: center;
}
.bc-header { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--n-400); margin-bottom: 6px; }
.bc-main { font-size: 2rem; font-weight: 800; color: var(--primary); }
.bc-main small { font-size: .85rem; font-weight: 500; color: var(--n-400); }
.bc-range {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: .72rem;
  color: var(--n-400);
}
.bc-bar {
  flex: 1;
  height: 6px;
  background: var(--n-100);
  border-radius: 3px;
  position: relative;
}
.bc-fill {
  position: absolute;
  width: 12px; height: 12px;
  background: var(--primary);
  border-radius: 50%;
  top: -3px;
  transform: translateX(-50%);
  box-shadow: 0 2px 6px rgba(99,102,241,.3);
}

/* Website Analysis */
.wa-grid { display: grid; grid-template-columns: 100px 1fr 1fr 1fr; gap: 14px; align-items: flex-start; }
.wa-score-wrap { position: relative; text-align: center; }
.wa-score-ring { width: 120px; height: 120px; }
.wa-score-val {
  position: absolute;
  top: 36px; left: 0; right: 0;
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
}
.wa-score-label {
  font-size: .7rem;
  color: var(--n-400);
  margin-top: 4px;
}
.wa-details { display: contents; }
.wa-group { margin-bottom: 12px; }
.wa-group h4 { font-size: .75rem; font-weight: 700; margin-bottom: 6px; }
.wa-good { color: #10b981; }
.wa-bad { color: #ef4444; }
.wa-rec { color: #6366f1; }
.wa-group ul { list-style: none; padding: 0; }
.wa-group li {
  font-size: .74rem;
  color: var(--n-500);
  padding: 3px 0 3px 16px;
  position: relative;
  line-height: 1.5;
}
.wa-group li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
}
.wa-good + ul li::before { background: #10b981; }
.wa-bad + ul li::before { background: #ef4444; }
.wa-rec + ul li::before { background: #6366f1; }

/* Sales Arguments */
.sales-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sales-arg {
  padding: 14px 16px;
  border-radius: var(--radius);
  border-left: 4px solid;
}
.sales-arg h4 { font-size: .82rem; font-weight: 700; margin-bottom: 4px; }
.sales-arg p { font-size: .75rem; line-height: 1.6; }
.sales-arg.info { background: rgba(99,102,241,.06); border-color: #6366f1; }
.sales-arg.info h4 { color: #4f46e5; }
.sales-arg.info p { color: #6366f1; }
.sales-arg.warn { background: rgba(245,158,11,.06); border-color: #f59e0b; }
.sales-arg.warn h4 { color: #d97706; }
.sales-arg.warn p { color: #92400e; }
.sales-arg.success { background: rgba(16,185,129,.06); border-color: #10b981; }
.sales-arg.success h4 { color: #059669; }
.sales-arg.success p { color: #065f46; }
.sales-arg.danger { background: rgba(239,68,68,.06); border-color: #ef4444; }
.sales-arg.danger h4 { color: #dc2626; }
.sales-arg.danger p { color: #991b1b; }

/* Error state */
.strategy-error {
  text-align: center;
  padding: 30px;
}
.strategy-error h4 { font-size: .9rem; color: var(--n-700); margin: 10px 0 6px; }
.strategy-error p { font-size: .8rem; color: var(--n-400); }
.strategy-error .err-hint { color: #f59e0b; font-size: .75rem; }
.btn-retry {
  margin-top: 12px;
  padding: 8px 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
}
.kw-header h3 {
  font-size: .82rem;
  font-weight: 700;
  color: var(--primary-dark);
}
#keywordTable {
  width: 100%;
  border-collapse: collapse;
  font-size: .78rem;
  border: 1px solid var(--n-100);
  border-radius: var(--radius);
  overflow: hidden;
}
#keywordTable thead tr { background: var(--n-50); }
#keywordTable th {
  padding: 9px 10px;
  text-align: left;
  font-weight: 600;
  color: var(--n-400);
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  border-bottom: 1px solid var(--n-100);
}
#keywordTable td {
  padding: 10px 10px;
  text-align: left;
  border-bottom: 1px solid var(--n-50);
  transition: background var(--dur) var(--ease);
}
#keywordTable tbody tr:hover td { background: var(--primary-light); }
.share-bar {
  width: 52px; height: 5px;
  background: var(--n-100);
  border-radius: 3px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  overflow: hidden;
}
.share-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
  transition: width .4s var(--ease);
}

/* Admin columns */
body:not(.admin-mode) .admin-col { display: none; }
body.admin-mode .admin-col { display: table-cell; }

/* ===== PRODUCTS GRID ===== */
#productsGrid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-card {
  border: 1.5px solid var(--n-100);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--dur) var(--ease);
  background: var(--n-0);
}
.product-card.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}
.pc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
}
.pc-icon { flex-shrink: 0; display: flex; align-items: center; }
.pc-info { flex: 1; min-width: 0; }
.pc-name { font-size: .82rem; font-weight: 700; color: var(--n-700); }
.pc-subtitle { font-size: .7rem; color: var(--n-400); }
.pc-toggle { flex-shrink: 0; }

/* Product toggle switch */
.product-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.product-toggle input { display: none; }
.pt-slider {
  width: 36px; height: 20px;
  background: var(--n-200);
  border-radius: 10px;
  position: relative;
  transition: background var(--dur) var(--ease);
}
.pt-slider::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  top: 2px; left: 2px;
  transition: transform var(--dur) var(--ease);
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.product-toggle input:checked + .pt-slider { background: var(--primary); }
.product-toggle input:checked + .pt-slider::after { transform: translateX(16px); }

/* Product body (expanded) */
.pc-body {
  padding: 0 14px 14px;
  animation: fadeIn .25s var(--ease);
}
.pc-budget {
  background: var(--n-25);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 10px;
}
.pc-budget-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.pc-budget-label {
  font-size: .72rem;
  font-weight: 600;
  color: var(--n-400);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.pc-budget-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}
.pc-budget-value small {
  font-size: .65rem;
  font-weight: 500;
  color: var(--n-400);
  margin-left: 2px;
}
.pc-budget-range {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.pc-budget-range span {
  font-size: .65rem;
  color: var(--n-300);
  white-space: nowrap;
  min-width: 40px;
}
.pc-budget-range span:last-child { text-align: right; }
.pc-slider {
  flex: 1;
  accent-color: var(--primary);
  cursor: pointer;
}
.pc-recommended {
  font-size: .68rem;
  color: var(--n-400);
  text-align: center;
}
.pc-recommended strong { color: var(--primary-dark); }

/* Product features */
.pc-features {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.pc-feat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: var(--primary-light);
  border-radius: var(--radius-pill);
  font-size: .65rem;
  color: var(--primary-dark);
  font-weight: 500;
}
.pc-feat::before {
  content: '\2713';
  font-size: .6rem;
  font-weight: 700;
}

/* ===== QUOTE SUMMARY ===== */
#quoteLines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.ql-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--n-25);
  border-radius: var(--radius-sm);
  border: 1px solid var(--n-100);
}
.ql-icon { flex-shrink: 0; display: flex; align-items: center; }
.ql-icon svg { width: 22px; height: 22px; }
.ql-info { flex: 1; min-width: 0; }
.ql-name { font-size: .78rem; font-weight: 700; color: var(--n-700); }
.ql-sub { font-size: .65rem; color: var(--n-400); }
.ql-price {
  font-size: .9rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}
.ql-price small {
  font-size: .6rem;
  font-weight: 500;
  color: var(--n-400);
  margin-left: 2px;
}

#quoteTotalBar {
  background: linear-gradient(135deg, rgba(99,102,241,.06), rgba(20,184,166,.04));
  border: 1.5px solid rgba(99,102,241,.15);
  border-radius: var(--radius);
  padding: 14px;
}
.qt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}
.qt-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--n-500);
}
.qt-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}
.qt-onetime .qt-value { color: var(--accent); font-size: 1rem; }
.qt-divider {
  height: 1px;
  background: rgba(99,102,241,.12);
  margin: 10px 0;
}
.btn-quote {
  width: 100%;
  justify-content: center;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: .82rem;
}
.btn-quote:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99,102,241,.35);
}

/* ===== MARKET SUMMARY ===== */
.clickable { cursor: pointer; }
.clickable:hover h2 { color: var(--primary); }
.collapse-icon {
  transition: transform var(--dur) var(--ease);
  color: var(--n-300);
  display: flex;
}
.collapsed { display: none; }
.section-header.open .collapse-icon { transform: rotate(180deg); }
.market-cards { display: grid; gap: 10px; }
.market-card {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
}
.market-card.warn {
  background: linear-gradient(135deg, rgba(245,158,11,.06), rgba(245,158,11,.02));
  border-color: rgba(245,158,11,.15);
}
.market-card.info {
  background: linear-gradient(135deg, rgba(99,102,241,.06), rgba(99,102,241,.02));
  border-color: rgba(99,102,241,.12);
}
.market-card.success {
  background: linear-gradient(135deg, rgba(16,185,129,.06), rgba(16,185,129,.02));
  border-color: rgba(16,185,129,.12);
}
.market-card h4 { font-size: .8rem; margin-bottom: 8px; font-weight: 700; }
.market-card.warn h4 { color: #b45309; }
.market-card.info h4 { color: var(--primary-dark); }
.market-card.success h4 { color: #047857; }
.market-card ul {
  list-style: none;
  font-size: .76rem;
  color: var(--n-500);
  line-height: 1.6;
}
.market-card li {
  padding: 2px 0 2px 16px;
  position: relative;
}
.market-card li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--n-200);
}
.market-card.warn li::before { background: rgba(245,158,11,.4); }
.market-card.info li::before { background: rgba(99,102,241,.35); }
.market-card.success li::before { background: rgba(16,185,129,.4); }

/* ===== QUOTE MODAL ===== */
.quote-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .25s var(--ease);
}
.quote-modal {
  width: 90vw;
  max-width: 860px;
  max-height: 90vh;
  background: var(--n-0);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.25);
  position: relative;
}
.qm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--n-25);
  border-bottom: 1px solid var(--n-100);
  flex-shrink: 0;
}
.qm-toolbar-left {
  display: flex;
  gap: 8px;
}
.qm-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid var(--n-200);
  border-radius: var(--radius-pill);
  background: var(--n-0);
  font-family: inherit;
  font-size: .8rem;
  font-weight: 600;
  color: var(--n-600);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.qm-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.qm-btn-print svg { color: var(--primary); }
.qm-btn-email svg { color: var(--accent); }
.qm-btn-send {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-color: transparent;
}
.qm-btn-send:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(99,102,241,.35); color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.qm-btn-cancel { border-color: var(--n-200); }
.qm-close {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  color: var(--n-400);
  transition: all var(--dur) var(--ease);
}
.qm-close:hover { background: var(--n-100); color: var(--n-700); }

.qm-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}
.qm-paper {
  max-width: 780px;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
}

/* Email overlay */
.qm-email-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .2s var(--ease);
}
.qm-email-form {
  background: var(--n-0);
  padding: 28px;
  border-radius: 16px;
  width: 420px;
  box-shadow: 0 16px 48px rgba(0,0,0,.2);
}
.qm-email-form h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--n-700);
  margin-bottom: 20px;
}
.qm-field { margin-bottom: 14px; }
.qm-field label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--n-400);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.qm-field input,
.qm-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--n-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .85rem;
  color: var(--n-700);
  outline: none;
  transition: all var(--dur) var(--ease);
  background: var(--n-25);
}
.qm-field input:focus,
.qm-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,.1);
  background: var(--n-0);
}
.qm-email-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* Email sent */
.qm-email-sent {
  background: var(--n-0);
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0,0,0,.2);
}
.qm-sent-icon { margin-bottom: 16px; }
.qm-email-sent h3 { font-size: 1.1rem; font-weight: 700; color: var(--n-700); margin-bottom: 8px; }
.qm-email-sent p { font-size: .85rem; color: var(--n-400); margin-bottom: 20px; }

/* ===== HIDDEN UTILITY ===== */
.hidden { display: none !important; }

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--n-200); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--n-300); }
#rightPanel::-webkit-scrollbar-thumb { background: var(--n-100); }
#rightPanel::-webkit-scrollbar-thumb:hover { background: var(--n-200); }

/* ===== LEAFLET OVERRIDES ===== */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius) !important;
  font-family: 'Inter', sans-serif !important;
  box-shadow: var(--shadow-lg) !important;
  border: 1px solid var(--n-100) !important;
}
.leaflet-popup-content { font-size: .82rem !important; margin: 12px 16px !important; }
.city-popup-name { font-weight: 700; color: var(--n-700); }
.city-popup-pop { color: var(--n-400); font-size: .75rem; margin-top: 2px; }
.city-popup-btn {
  margin-top: 8px;
  padding: 5px 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.city-popup-btn:hover { background: var(--primary-dark); }
.city-popup-btn.remove { background: var(--danger); }
.city-popup-btn.remove:hover { background: #dc2626; }

/* Radius Popup */
.radius-popup { text-align: center; }
.rp-title {
  font-weight: 700;
  font-size: .88rem;
  color: var(--n-700);
  margin-bottom: 10px;
}
.rp-slider-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.rp-slider {
  flex: 1;
  accent-color: var(--primary);
  cursor: pointer;
  height: 4px;
}
.rp-value {
  font-size: .78rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 38px;
  text-align: right;
}
.rp-actions {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.rp-apply {
  flex: 1;
}
.rp-remove {
  flex: 1;
}

.leaflet-control-zoom a {
  border-radius: var(--radius-sm) !important;
  border: none !important;
  box-shadow: var(--shadow-sm) !important;
}
.leaflet-control-zoom { border-radius: var(--radius) !important; overflow: hidden; border: none !important; box-shadow: var(--shadow-md) !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  #app { flex-direction: column; }
  #mapPanel { width: 100%; max-width: none; height: auto; flex-direction: row; border-right: none; border-bottom: 1px solid var(--n-100); }
  #mapContainer { height: 350px; flex: 1; }
  #citiesSection { flex: 1; max-height: 350px; border-top: none; border-left: 1px solid var(--n-100); }
  #rightPanel { width: 100%; height: auto; }
  #map { min-height: 300px; }
}

@media print {
  .quote-modal-overlay { position: static; background: none; }
  .qm-toolbar { display: none; }
  .quote-modal { max-height: none; box-shadow: none; }
}
