@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700&display=swap');

:root {
  --primary-color:        #ff9900;
  --primary-hover:        #e6870a;
  --primary-light:        #ffb84d;
  --primary-bg:           rgba(255, 153, 0, 0.1);
  --secondary-blue:       #A7C7E7;
  --secondary-blue-dark:  #2C5282;
  --secondary-green:      #B8E6B8;
  --secondary-green-dark: #2F855A;
  --secondary-red-dark:   #8B0000;
  --text-primary:         #4A5568;
  --text-secondary:       #718096;
  --text-muted:           #657786;
  --border-color:         #E1E8ED;
  --background-main:      #F0F4F8;
  --card-background:      rgba(255, 255, 255, 0.95);
  --white:                #ffffff;
  --shadow-light:         0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-medium:        0 8px 32px rgba(0, 0, 0, 0.08);
  --font-family:          "Titillium Web", sans-serif;
}

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

body {
  font-family: var(--font-family);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: var(--background-main);
}

/* ── Toolbar ─────────────────────────────────────────────────────── */
#toolbar {
  background: var(--white);
  color: var(--text-primary);
  padding: 7px 80px 7px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  box-shadow: var(--shadow-light);
}

#toolbar h1 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 0.4px;
  margin-right: 10px;
  white-space: nowrap;
}

.sep { width: 1px; height: 22px; background: var(--border-color); margin: 0 4px; }

.btn {
  padding: 5px 11px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-family);
  background: var(--background-main);
  color: var(--text-primary);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn:hover  { background: var(--primary-bg); color: var(--primary-hover); border-color: var(--primary-light); }
.btn.active { background: var(--primary-color); color: var(--white); border-color: var(--primary-hover); }
.btn.primary { background: var(--primary-color); color: var(--white); border-color: var(--primary-color); }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn.danger { background: #fff0f0; color: #dc2626; border-color: #fecaca; }
.btn.danger:hover { background: #fee2e2; border-color: #dc2626; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn:disabled:hover { background: var(--background-main); color: var(--text-primary); border-color: var(--border-color); }

.slider-row { display: flex; align-items: center; gap: 6px; }
.slider-row label { font-size: 11px; color: var(--text-secondary); white-space: nowrap; }
input[type=range] { width: 90px; accent-color: var(--primary-color); cursor: pointer; }
.slider-val { font-size: 11px; color: var(--text-muted); min-width: 30px; }

#mode-badge {
  background: var(--primary-color);
  color: var(--white);
  padding: 2px 9px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
#mode-badge.hidden { display: none; }

/* ── Main layout ──────────────────────────────────────────────────── */
#main { display: flex; flex: 1; overflow: hidden; }
#map  { flex: 1; }

/* ── Sidebar ──────────────────────────────────────────────────────── */
#sidebar {
  width: 300px;
  min-width: 210px;
  max-width: 520px;
  background: var(--white);
  border-left: 1px solid var(--border-color);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  min-height: 0;
  box-shadow: -1px 0 4px rgba(0,0,0,.04);
  position: relative;
}

/* ── Sidebar resize handle ────────────────────────────────────────── */
#sidebar-resizer {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 5px;
  cursor: ew-resize;
  z-index: 10;
  background: transparent;
  transition: background 0.15s;
}
#sidebar-resizer:hover,
#sidebar-resizer.dragging {
  background: var(--primary-bg);
}

.panel {
  padding: 12px;
  border-bottom: 1px solid var(--background-main);
}

.panel h3 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  margin-bottom: 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

/* ── Drop zone ────────────────────────────────────────────────────── */
#drop-zone {
  border: 2px dashed var(--border-color);
  border-radius: 7px;
  padding: 18px 12px;
  text-align: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  line-height: 1.5;
}
#drop-zone:hover, #drop-zone.drag-over {
  border-color: var(--primary-color);
  background: var(--primary-bg);
  color: var(--primary-hover);
}
#drop-zone.has-image {
  border-color: #16a34a;
  background: #f0fdf4;
  color: #15803d;
}
#drop-zone .drop-icon { font-size: 22px; margin-bottom: 4px; }
#drop-zone .drop-sub  { font-size: 10px; margin-top: 3px; opacity: 0.75; }

input[type=file] { display: none; }

#img-info { font-size: 10px; color: var(--text-muted); margin-top: 6px; }

/* ── Basemap select ───────────────────────────────────────────────── */
select {
  width: 100%;
  padding: 5px 8px;
  font-size: 12px;
  font-family: var(--font-family);
  background: var(--white);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
}
select:focus { outline: none; border-color: var(--primary-color); }

/* ── GCP table ────────────────────────────────────────────────────── */
#gcp-count { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }

#gcp-table { width: 100%; border-collapse: collapse; font-size: 10.5px; }
#gcp-table th {
  background: var(--background-main);
  padding: 4px 5px;
  text-align: left;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 10px;
  border-bottom: 1px solid var(--border-color);
}
#gcp-table td {
  padding: 3px 5px;
  border-bottom: 1px solid var(--background-main);
  color: var(--text-primary);
  font-family: monospace;
  font-size: 10px;
}
#gcp-table tr:hover td { background: var(--background-main); }

.gcp-del {
  background: none;
  border: none;
  cursor: pointer;
  color: #ef4444;
  font-size: 12px;
  padding: 0 2px;
  line-height: 1;
}
.gcp-del:hover { color: #dc2626; }

#rmse-row {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 8px;
  padding: 5px 7px;
  background: var(--background-main);
  border-radius: 4px;
  border: 1px solid var(--border-color);
}
#rmse-val { font-weight: 700; color: var(--secondary-blue-dark); }

/* ── GCP table scroll wrap ─────────────────────────────────────────── */
#gcp-table-wrap {
  max-height: 175px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-bottom: 6px;
}
#gcp-table-wrap #gcp-table { margin: 0; }
#gcp-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

/* ── Collapsible panel toggle ─────────────────────────────────────── */
.panel-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0 2px;
  font-size: 9px;
  line-height: 1;
  transition: transform 0.2s, color 0.15s;
  flex-shrink: 0;
}
.panel-toggle:hover { color: var(--text-primary); }
.panel-toggle.collapsed { transform: rotate(180deg); }
#pos-panel-body {
  overflow: hidden;
  transition: opacity 0.2s;
}
#pos-panel-body.collapsed { display: none; }

/* ── Export panel ─────────────────────────────────────────────────── */
.export-btns { display: flex; flex-direction: column; gap: 5px; }
.export-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }

.btn-mapwarper {
  text-decoration: none;
  text-align: center;
  border-top: 1px dashed var(--border-color);
  margin-top: 2px;
  padding-top: 7px;
  color: #0369a1;
  background: #f0f9ff;
  border-color: #bae6fd;
}
.btn-mapwarper:hover { background: #e0f2fe; color: #0c4a6e; border-color: #7dd3fc; }

/* ── Status bar ───────────────────────────────────────────────────── */
#status-bar {
  background: var(--background-main);
  border-top: 1px solid var(--border-color);
  padding: 4px 12px;
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  gap: 20px;
  align-items: center;
  flex-shrink: 0;
}
#cursor-coords { font-family: monospace; color: var(--secondary-blue-dark); }
#status-msg { flex: 1; }

/* ── GCP pending marker (step-1 click, waiting for step-2) ──────── */
.gcp-pending {
  width: 18px; height: 18px;
  background: var(--primary-color);
  border: 2px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255,153,0,.4), 0 2px 6px rgba(0,0,0,.3);
  animation: pulse-pending .9s ease-in-out infinite alternate;
}
@keyframes pulse-pending {
  from { box-shadow: 0 0 0 3px rgba(255,153,0,.4), 0 2px 6px rgba(0,0,0,.3); }
  to   { box-shadow: 0 0 0 7px rgba(255,153,0,.1), 0 2px 6px rgba(0,0,0,.3); }
}

/* ── GCP marker (DivIcon) ─────────────────────────────────────────── */
.gcp-icon {
  width: 22px; height: 22px;
  background: #ef4444;
  border: 2px solid var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: var(--white);
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  cursor: grab;
}
.gcp-icon:active { cursor: grabbing; }

/* ── GCP Canvas Preview ──────────────────────────────────────────── */
#gcp-preview-wrap {
  position: relative;
  background: #0f172a;
  border-radius: 6px;
  overflow: hidden;
  cursor: crosshair;
  line-height: 0;
  border: 1px solid var(--border-color);
}
#gcp-preview-canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: 300px;
}
#gcp-preview-hint {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.65);
  color: var(--border-color);
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity .2s;
}

/* ── GeoTIFF settings dialog ─────────────────────────────────────── */
.dialog-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.45);
  z-index: 3000;
  display: none;
}
.dialog-overlay.open { display: block; }

.dialog-box {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.93);
  opacity: 0;
  width: min(440px, 94vw);
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 16px 50px rgba(0,0,0,.25);
  z-index: 3001;
  transition: transform .2s cubic-bezier(.32,1.1,.42,1), opacity .18s;
}
.dialog-box.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}
.dialog-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600; font-size: 13.5px; color: var(--text-primary);
}
.dialog-body {
  padding: 16px;
  display: flex; flex-direction: column; gap: 13px;
}
.dialog-group { display: flex; flex-direction: column; gap: 5px; }
.dialog-label {
  font-size: 10.5px; font-weight: 700; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: .5px;
}
.dialog-select {
  padding: 7px 10px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 13px;
  font-family: var(--font-family);
  color: var(--text-primary);
  background: var(--background-main);
  cursor: pointer;
  width: 100%;
}
.dialog-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-bg);
}
.dialog-note {
  display: flex; gap: 8px; align-items: flex-start;
  background: var(--primary-bg); border: 1px solid var(--primary-light);
  border-radius: 6px; padding: 9px 11px;
  font-size: 11.5px; color: var(--primary-hover); line-height: 1.55;
}
.dialog-note > i { flex-shrink: 0; margin-top: 1px; }
.dialog-footer {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
}

/* ── Interactive overlay handles ─────────────────────────────────── */

/* Scale mode: white square with diagonal arrow, orange border */
.eh-corner-scale {
  width: 17px; height: 17px;
  background: var(--white);
  border: 2px solid var(--primary-color);
  border-radius: 2px;
  box-shadow: 0 1px 5px rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-color);
  font-size: 9px;
}

/* Distort mode: blue diamond (square rotated 45°) */
.eh-corner-distort {
  width: 13px; height: 13px;
  background: var(--white);
  border: 2px solid #3b82f6;
  border-radius: 1px;
  box-shadow: 0 1px 5px rgba(0,0,0,.35);
  transform: rotate(45deg);
}

.eh-center {
  width: 28px; height: 28px;
  background: rgba(255,153,0,.85);
  border: 2px solid var(--white);
  border-radius: 50%;
  color: var(--white); font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 7px rgba(0,0,0,.25);
  cursor: move;
}
.eh-rotate {
  width: 22px; height: 22px;
  background: rgba(234,88,12,.9);
  border: 2px solid var(--white);
  border-radius: 50%;
  color: var(--white); font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 7px rgba(0,0,0,.25);
  cursor: grab;
}
.eh-rotate:active { cursor: grabbing; }

/* ── Compare (spotlight) panel ───────────────────────────────────── */
#panel-compare .btn.active { background: #16a34a; color: var(--white); border-color: #16a34a; }
#compare-cursor {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 0 0 1px rgba(0,0,0,.35), inset 0 0 0 1px rgba(0,0,0,.15);
  transform: translate(-50%, -50%);
  z-index: 9999;
  display: none;
  transition: width .1s, height .1s;
}

/* ── Geocoding search ─────────────────────────────────────────────── */
.search-row { display: flex; gap: 5px; }
.search-row input {
  flex: 1; padding: 5px 8px; font-size: 12px;
  font-family: var(--font-family);
  background: var(--white); color: var(--text-primary);
  border: 1px solid var(--border-color); border-radius: 5px;
}
.search-row input::placeholder { color: var(--text-muted); }
.search-row input:focus { outline: none; border-color: var(--primary-color); }

#geocode-results { margin-top: 5px; max-height: 160px; overflow-y: auto; }
.geo-result {
  font-size: 11px; padding: 5px 7px; cursor: pointer;
  border-radius: 4px; color: var(--text-primary); line-height: 1.35;
  border-bottom: 1px solid var(--background-main);
}
.geo-result:hover { background: var(--primary-bg); color: var(--primary-hover); }
.geo-result b { color: var(--primary-color); font-weight: 600; }
.geo-none { font-size: 11px; color: var(--text-muted); padding: 4px 0; }

/* ── Positioning panel ────────────────────────────────────────────── */
.pos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}
.pos-btn {
  padding: 5px 4px;
  font-size: 14px;
  text-align: center;
  min-width: 0;
  background: var(--background-main);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}
.pos-btn:hover { background: var(--primary-bg); color: var(--primary-hover); border-color: var(--primary-light); }
.pos-btn.pos-center { font-size: 11px; }
.pos-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 4px;
}
.pos-row .pos-btn { font-size: 11px; padding: 5px 2px; }
#panel-pos { display: none; }

/* ── Map logo ────────────────────────────────────────────────────── */
#map-logo {
  position: absolute;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
  display: block;
  line-height: 0;
}
#map-logo img {
  display: block;
  max-height: 48px;
  width: auto;
}

/* ── Swipe divider ───────────────────────────────────────────────── */
#swipe-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 0 6px rgba(0,0,0,.4);
  z-index: 700;
  cursor: ew-resize;
  transform: translateX(-50%);
  pointer-events: all;
}
.swipe-handle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 32px; height: 32px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-primary); font-size: 13px;
  pointer-events: none;
}

/* ── GCP residual colors ─────────────────────────────────────────── */
tr.gcp-res-good td:nth-child(6) { color: #16a34a; font-weight: 600; }
tr.gcp-res-warn td:nth-child(6) { color: var(--primary-color); font-weight: 600; }
tr.gcp-res-bad  td:nth-child(6) { color: #dc2626; font-weight: 600; }

/* ── Transformation type selector ────────────────────────────────── */
.transform-row {
  display: flex; align-items: center; gap: 8px;
  margin-top: 7px;
}
.transform-row label {
  font-size: 11px; font-weight: 600; color: var(--text-secondary);
  white-space: nowrap; flex-shrink: 0;
}
.transform-row select {
  flex: 1;
  padding: 4px 7px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 11.5px;
  background: var(--background-main); color: var(--text-primary);
}

/* ── Lock overlay button active state ────────────────────────────── */
#btn-lock-overlay.active {
  background: var(--primary-bg);
  border-color: var(--primary-light);
  color: var(--primary-hover);
}

/* ── Guide modal ─────────────────────────────────────────────────── */
.guide-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  z-index: 9000;
  backdrop-filter: blur(2px);
}
.guide-overlay.open { display: block; }

.guide-modal {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(100%);
  width: min(820px, 96vw);
  max-height: 82vh;
  background: var(--white);
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -6px 32px rgba(0,0,0,.18);
  z-index: 9001;
  display: flex;
  flex-direction: column;
  transition: transform .38s cubic-bezier(.32,1.1,.42,1);
}
.guide-modal.open { transform: translateX(-50%) translateY(0); }

.guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 12px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  flex-shrink: 0;
}
.guide-header i { color: var(--primary-color); margin-right: 6px; }

.guide-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
}
.guide-close:hover { color: #dc2626; background: #fee2e2; }

.guide-body {
  overflow-y: auto;
  padding: 20px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.guide-section h2 {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.guide-section p {
  font-size: 12.5px;
  color: var(--text-primary);
  line-height: 1.65;
  margin-bottom: 6px;
}
.guide-section ul,
.guide-section ol { padding-left: 0; list-style: none; }

.guide-steps { display: flex; flex-direction: column; gap: 14px; }

.guide-steps > li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.guide-steps > li strong {
  display: block;
  font-size: 12.5px;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.step-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.guide-section ul li {
  font-size: 12.5px;
  color: var(--text-primary);
  padding: 3px 0 3px 14px;
  position: relative;
  line-height: 1.6;
}
.guide-section ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

.guide-tips {
  background: var(--background-main);
  border-left: 3px solid var(--primary-color);
  border-radius: 8px;
  padding: 14px 16px;
}
.guide-tips h2 { color: var(--primary-hover); }
.guide-tips h2 i { color: var(--primary-hover); }
.guide-tips ul li::before { color: var(--primary-hover); }

.guide-mapwarper { background: #f0f9ff; border-radius: 8px; padding: 14px 16px; }
.guide-mapwarper h2 { color: #0369a1; }
.guide-mapwarper h2 i { color: #0369a1; }

.guide-mapwarper-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  padding: 7px 14px;
  background: #0369a1;
  color: var(--white);
  border-radius: 6px;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  transition: background .15s;
}
.guide-mapwarper-link:hover { background: #0c4a6e; }

/* ── Info modal ──────────────────────────────────────────────────── */
.info-modal { width: min(820px, 96vw); }

.info-logo-row {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
.info-logo {
  max-height: 56px;
  width: auto;
}

.info-credits p { font-size: 12.5px; color: var(--text-primary); line-height: 1.7; }
.info-credits a { color: var(--primary-color); text-decoration: none; }
.info-credits a:hover { text-decoration: underline; color: var(--primary-hover); }

.info-stack ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.info-stack ul li {
  font-size: 12.5px;
  color: var(--text-primary);
  padding: 3px 0 3px 14px;
  position: relative;
}
.info-stack ul li::before { content: '•'; position: absolute; left: 0; color: var(--primary-color); }
.info-stack ul li a { color: var(--primary-color); text-decoration: none; }
.info-stack ul li a:hover { text-decoration: underline; color: var(--primary-hover); }

kbd {
  display: inline-block;
  padding: 1px 6px;
  font-size: 11px;
  font-family: monospace;
  background: var(--background-main);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  color: var(--text-primary);
}

/* ── Leaflet overrides ────────────────────────────────────────────── */
.leaflet-container { background: #aad3df; }
