/* Ganit brand colors */
:root {
  /* Sampled directly from the Ganit "data speaks" logo */
  --ganit-blue: #1a00d9;        /* logo electric indigo-blue */
  --ganit-blue-2: #3a23e0;      /* lighter tint for gradients */
  --ganit-orange: #fe6e06;      /* logo orange dot */
  --ganit-orange-2: #ff8c33;    /* lighter tint for gradients */

  --bg: #ffffff;
  --bg-2: #f6f7fb;
  --panel: #ffffff;
  --panel-2: #f1f3f9;
  --border: #c2c8d6;          /* darkened from #e1e5ee for clearer lines/borders */
  --border-strong: #aab1c4;   /* a touch darker again — used for the brand divider */
  --text: #1a1d2b;
  --text-2: #4a5168;
  --muted: #6b7390;
  --good: #16a34a;
  --warn: #f48020;
  --bad: #dc2626;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; background: var(--bg-2); color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; }

.topbar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 10px 20px; background: var(--panel); border-bottom: 1px solid var(--border);
  height: 64px; gap: 12px;
}
.topbar .header-right { justify-self: end; }
.topbar .map-controls { justify-self: center; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand .logo-img { height: 40px; }
/* Thin rule separating the Ganit parent brand from the GeoScout IQ product. */
.brand-divider { width: 1px; height: 28px; background: var(--border-strong); flex-shrink: 0; margin: 0 2px; }
/* Text block fills the logo height and is centered against it */
.brand > div { display: flex; flex-direction: column; justify-content: center; height: 40px; }
/* Match the rounded geometric wordmark of the Ganit "data speaks" logo —
   same size, lighter weight so the strokes read thinner like the logo. */
.brand-name { font-family: "Poppins", "Inter", sans-serif; font-weight: 500; font-size: 20px; letter-spacing: -0.3px; color: var(--ganit-blue); line-height: 1.1; position: relative; top: 3px; }
.brand-name .accent { color: var(--ganit-orange); }
.brand-tag { color: var(--muted); font-size: 11px; margin-top: 3px; font-weight: 400; }

.header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Custom map controls in the top bar */
.map-controls { display: flex; align-items: center; gap: 6px; }
.mc-group { position: relative; display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.mc-btn {
  position: relative; z-index: 1;
  padding: 7px 11px; font-size: 12px; font-weight: 600; border: none; border-radius: 0;
  background: transparent; color: var(--text-2); cursor: pointer; transition: color 0.12s;
}
.mc-group .mc-btn + .mc-btn { border-left: 1px solid var(--border); }
.mc-group .mc-btn:hover { color: var(--ganit-blue); }
/* Active text turns white; the sliding pill provides the blue background. */
.mc-group .mc-btn.active { background: transparent; color: #fff; }
.mc-group .mc-btn.active + .mc-btn, .mc-group .mc-btn.active { border-left-color: transparent; }

/* Sliding highlight pill for the map-type group. */
.mc-slider {
  position: absolute; top: 0; bottom: 0; left: 0; transform: translateX(0);
  background: var(--ganit-blue); z-index: 0; pointer-events: none;
  transition: transform .32s cubic-bezier(.34, 1.2, .5, 1), width .32s cubic-bezier(.34, 1.2, .5, 1);
}
@media (prefers-reduced-motion: reduce) { .mc-slider { transition: none; } }
.mc-toggle { border: 1px solid var(--border); border-radius: 8px; }
.mc-toggle.active { background: var(--ganit-blue); color: #fff; border-color: var(--ganit-blue); }
.mc-zoom { font-size: 16px; font-weight: 700; padding: 5px 12px; line-height: 1; }

/* "Show on map" layers dropdown */
.mc-layers { position: relative; }
.mc-layers-btn { border: 1px solid var(--border); border-radius: 8px; }
.layers-menu {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  width: 230px; background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.14); padding: 6px; z-index: 60; max-height: 340px; overflow-y: auto;
}
.layer-row { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 7px;
  font-size: 13px; color: var(--text); cursor: pointer; }
.layer-row:hover { background: var(--bg-2); }
.layer-row input { accent-color: var(--ganit-blue); width: 15px; height: 15px; cursor: pointer; }
.layer-row span:nth-child(2) { flex: 1; }
.layer-count { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--panel-2);
  border-radius: 999px; padding: 1px 7px; }
.layers-hint, .layers-empty { font-size: 11px; color: var(--muted); padding: 6px 8px; line-height: 1.4;
  border-top: 1px solid var(--border); margin-top: 4px; }
.layers-empty { border-top: none; }
@media (max-width: 1200px) { .map-controls { display: none; } }
.header-right button { white-space: nowrap; padding: 9px 14px; font-size: 13px; font-weight: 600; }
.header-right .ghost-primary {
  background: var(--ganit-blue); color: #fff; border: none;
  box-shadow: 0 3px 10px rgba(26, 0, 217, 0.22);
}
.header-right .ghost-primary:hover { background: var(--ganit-orange); box-shadow: 0 3px 10px rgba(254, 110, 6, 0.28); }
.header-right .ghost { border: 1px solid var(--border); color: var(--text-2); }
.header-right .ghost:hover { border-color: var(--ganit-blue); color: var(--ganit-blue); background: #fff; }

main { display: grid; grid-template-columns: var(--sidebar-width, 480px) 8px 1fr; height: calc(100% - 64px); position: relative; }
main.resizing { cursor: col-resize; user-select: none; }

.sidebar {
  padding: 18px; overflow-y: auto; overflow-x: hidden;
  background: var(--panel); border-right: 1px solid var(--border);
}

/* Draggable divider */
.sidebar-resizer {
  position: relative; cursor: col-resize; background: var(--border);
  display: flex; align-items: center; justify-content: center; z-index: 6;
  transition: background 0.15s;
}
.sidebar-resizer:hover, main.resizing .sidebar-resizer { background: var(--ganit-blue); }
.resizer-grip { display: flex; flex-direction: column; gap: 3px; pointer-events: none; }
.resizer-grip span { width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: 0.85; }
.sidebar-resizer::after {
  /* wider invisible hit area so it's easy to grab */
  content: ""; position: absolute; inset: 0 -5px; cursor: col-resize;
}

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.7px; font-weight: 600; }
select, input[type=text] {
  width: 100%; padding: 10px 12px; background: #fff; color: var(--text);
  border: 1px solid var(--border); border-radius: 8px; font-size: 14px; outline: none;
  transition: border 0.15s;
}
select:focus, input[type=text]:focus { border-color: var(--ganit-blue); }

button { font: inherit; cursor: pointer; border-radius: 8px; padding: 10px 14px;
  border: 1px solid var(--border); background: #fff; color: var(--text); transition: all 0.15s; }
button:hover { background: var(--bg-2); }
button .uil,
.rs-head .uil,
.progress-title .uil {
  margin-right: 6px; font-size: 1.08em; line-height: 1; vertical-align: -1px;
}
.icon-btn .uil { margin-right: 0; font-size: 17px; }
.primary {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--ganit-blue), var(--ganit-blue-2));
  border: none; color: #fff; font-weight: 600; width: 100%; padding: 12px; font-size: 14px;
  box-shadow: 0 4px 14px rgba(26, 43, 140, 0.25);
}
.primary:hover { background: linear-gradient(135deg, var(--ganit-orange), var(--ganit-orange-2)); }
.primary:disabled { cursor: wait; opacity: 0.96; }
.primary.analyzing::after {
  content: ""; position: absolute; left: -50%; top: 0;
  width: 50%; height: 100%;
  /* A bright white sweep reads on every button colour (blue Analyze / blue
     planner / orange Collateral), unlike the old orange-on-orange shimmer. */
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: analyze-scan 1.3s ease-in-out infinite;
}
@keyframes analyze-scan {
  0% { transform: translateX(0) skewX(-20deg); }
  100% { transform: translateX(320%) skewX(-20deg); }
}
.ghost { background: transparent; }
.mini { padding: 6px 10px; font-size: 12px; }

/* Shown when the page is rendering a saved/shared analysis rather than a fresh
   run, so a viewer is never left wondering whether they still need to click
   Analyze to see something. */
.viewing-banner {
  margin: 0 0 10px; padding: 10px 12px; border-radius: 8px;
  background: #eef2ff; border: 1px solid #c7d2fe; border-left: 4px solid var(--ganit-blue);
}
.viewing-banner.hidden { display: none; }
.vb-head { font-size: 15px; font-weight: 700; color: #1e3a8a; display: flex; align-items: center; gap: 7px; }
.vb-head i { font-size: 17px; }
.vb-sub { font-size: 12px; color: #3730a3; margin-top: 3px; line-height: 1.5; }

.status { margin-top: 10px; color: var(--muted); font-size: 13px; min-height: 20px; line-height: 1.5; }
.status.loading::before { content: "⏳ "; }
.status.error { color: var(--bad); }
.status.ok { color: var(--good); }
.status.hint { color: var(--ganit-blue); }
.status-hint { margin-top: 6px; font-size: 12px; color: var(--ganit-blue);
  background: rgba(26,0,217,0.06); border-radius: 8px; padding: 7px 10px; line-height: 1.45; }

/* Sections */
section { margin-top: 18px; }
section h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.7px;
  color: var(--ganit-blue); margin: 0 0 8px; font-weight: 700;
  padding-left: 9px; border-left: 3px solid var(--ganit-orange); }

/* Recommendations */
.rec-list { padding: 0; list-style: none; margin: 0; }
.rec-list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  background: #ffffff;
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  border: 1px solid var(--border);
  border-left: 5px solid var(--score-color, var(--border));
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
  transition: all 0.18s ease;
}
.rec-list li:hover {
  border-color: var(--ganit-blue);
  box-shadow: 0 4px 12px rgba(26, 43, 140, 0.07);
}
.rec-list li.expanded {
  border-color: var(--ganit-blue);
  box-shadow: 0 5px 15px rgba(0,0,0,0.06);
}
.rec-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.rec-card-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 2.5px 7px;
  border-radius: 5px;
  text-transform: uppercase;
  color: #fff;
  background: var(--score-color, var(--ganit-blue));
}
/* Regions to avoid */
.avoid-list { list-style: none; padding: 0; margin: 0; }
.avoid-card { padding: 10px 12px; background: #fff; border: 1px solid var(--border);
  border-left: 5px solid var(--score-color, var(--bad)); border-radius: 10px; margin-bottom: 8px;
  cursor: pointer; transition: all 0.15s; }
.avoid-card:hover { box-shadow: 0 4px 12px rgba(220,38,38,0.10); border-color: var(--bad); }
.avoid-row { display: flex; justify-content: space-between; align-items: center; }
.avoid-score { font-weight: 800; font-size: 13px; color: var(--score-color, var(--bad)); }
.avoid-coords { font-size: 11px; color: var(--muted); font-family: ui-monospace, monospace; }
.avoid-why { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.avoid-empty { font-size: 12.5px; color: var(--muted); padding: 6px 0; }

.rec-rank { display: inline-flex; align-items: center; gap: 6px; }
.rec-rank .rank-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 26px; padding: 0 8px;
  font-size: 14px; font-weight: 800; color: #fff; border-radius: 7px;
  background: var(--score-color, var(--ganit-blue));
}
/* Cannibalization overlap badge on a recommendation card */
.cann-badge {
  font-size: 10px; font-weight: 800; letter-spacing: 0.3px;
  padding: 3px 7px; border-radius: 5px; white-space: nowrap; cursor: help;
}
.cann-badge.high     { background: #fdecec; color: #dc2626; border: 1px solid #f5b5b5; }
.cann-badge.moderate { background: #fdf3e5; color: #b45309; border: 1px solid #f0cf9a; }
.rec-card-score {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--score-color, var(--ganit-orange));
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.rec-card-summary {
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.4;
  margin-top: 2px;
}
.rec-card-chevron {
  font-size: 11px;
  font-weight: 600;
  color: var(--ganit-blue);
  margin-top: 4px;
  text-align: right;
  border-top: 1px dashed var(--border);
  padding-top: 4px;
}
.rec-details-panel {
  margin-top: 6px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: fadeIn 0.2s ease;
}
.rec-detail-bullet {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.rec-detail-bullet .icon {
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}
.rec-detail-bullet a.amenity-link {
  color: var(--ganit-blue);
  text-decoration: underline;
  font-weight: 600;
  cursor: pointer;
}
.rec-detail-bullet a.amenity-link:hover {
  color: var(--ganit-orange);
}
.rec-subscores {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 10px;
  background: var(--bg-2);
  padding: 8px;
  border-radius: 6px;
  margin-top: 4px;
}
.rec-subscore-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
}
.rec-subscore-item .label {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.rec-subscore-bar-bg {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 1px;
}
.rec-subscore-bar-fg {
  height: 100%;
  border-radius: 2px;
}
.rec-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 4px;
}
.rec-card-actions button {
  padding: 4px 8px;
  font-size: 10.5px;
  border-radius: 5px;
}
.rec-coords { color: var(--muted); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 10px; text-align: right; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Growth (AI agent) reasoning — rendered as bullet points + bold */
.growth {
  padding: 12px; background: var(--bg-2); border-left: 3px solid var(--ganit-orange);
  border-radius: 0 8px 8px 0; font-size: 13px; line-height: 1.55; color: var(--text-2);
}
.growth-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.growth-score {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; padding: 6px 12px; border-radius: 8px;
  background: var(--ganit-orange); color: #fff;
}
.growth-headline { font-weight: 600; color: var(--ganit-blue); font-size: 13px; }
.growth ul { margin: 6px 0 0; padding-left: 18px; }
.growth li { margin-bottom: 6px; }
.growth strong { color: var(--ganit-blue); font-weight: 700; }

/* Agent trail */
.trail { margin-top: 10px; max-height: 360px; overflow-y: auto; font-size: 12px; }
.trail-item { padding: 8px 10px; border-left: 2px solid var(--ganit-orange); margin-bottom: 8px;
  background: var(--bg-2); border-radius: 0 6px 6px 0; }
.trail-item .q { color: var(--ganit-blue); font-weight: 600; margin-bottom: 4px; }
.trail-item .src { color: var(--muted); font-size: 11px; margin-top: 4px; }
.trail-item .src a { color: var(--ganit-blue); text-decoration: underline; }

/* MAP */
#map { width: 100%; height: 100%; background: #e7eaf3; }

/* LEGEND on the map */
/* Compass — top-left corner of the map (North always up in the Maps JS view) */
.compass {
  position: absolute; left: calc(var(--sidebar-width, 480px) + 24px); top: 16px;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.95); border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.12); z-index: 6;
  font-size: 10px; font-weight: 800; color: var(--text-2);
}
.compass span { position: absolute; transform: translate(-50%, -50%); }
.compass .cmp-n { left: 50%; top: 22%; color: var(--bad); }
.compass .cmp-s { left: 50%; top: 78%; }
.compass .cmp-e { left: 78%; top: 50%; }
.compass .cmp-w { left: 22%; top: 50%; }
.compass .cmp-needle { left: 50%; top: 50%; font-size: 22px; color: var(--ganit-blue); line-height: 1; }

.legend {
  position: absolute; left: calc(var(--sidebar-width, 480px) + 24px); bottom: 16px;
  background: rgba(255,255,255,0.96); padding: 10px 14px;
  border-radius: 10px; border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08); font-size: 12px; line-height: 1.6;
  max-width: 320px; z-index: 5;
}
.legend-title { font-weight: 700; color: var(--ganit-blue); margin-bottom: 6px;
  text-transform: uppercase; font-size: 10px; letter-spacing: 0.6px; }
.legend-row { display: flex; align-items: center; gap: 8px; }
.legend-row .swatch { width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0; border: 1px solid rgba(0,0,0,0.15); }
.legend-row.dot .swatch { border-radius: 50%; width: 12px; height: 12px; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,0.2); }
.legend hr { border: none; border-top: 1px solid var(--border); margin: 6px 0; }

/* Hex detail panel */
.hex-panel {
  position: absolute; right: 16px; top: 16px; width: 380px;
  max-height: calc(100% - 32px); overflow-y: auto;
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px; box-shadow: 0 8px 32px rgba(0,0,0,0.16);
  z-index: 6;
}
/* Slide-in only when the panel first OPENS (one-shot class), not on every
   content update — otherwise switching zones replays the animation and looks
   like the panel flickered away and back. */
.hex-panel.just-opened { animation: hexSlideIn 0.28s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes hexSlideIn {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}
.hex-panel h3 { margin: 0 0 12px; color: var(--ganit-blue); font-size: 14px; }

/* AI zone insight block */
.zone-insight { border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; background: var(--bg-2); border: 1px solid var(--border); }
.zone-insight.loading .zi-spinner { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ganit-blue); }
.zone-insight.verdict-OPEN { border-left: 4px solid var(--good); }
.zone-insight.verdict-AVOID { border-left: 4px solid var(--bad); }
.zone-insight.verdict-CONSIDER { border-left: 4px solid var(--ganit-orange); }
.zi-badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.4px; padding: 3px 9px; border-radius: 999px; color: #fff; }
.zi-badge.OPEN { background: var(--good); }
.zi-badge.AVOID { background: var(--bad); }
.zi-badge.CONSIDER { background: var(--ganit-orange); }
.zi-headline { font-weight: 700; color: var(--text); font-size: 14px; margin: 8px 0 4px; line-height: 1.4; }
.zi-section-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.7px; color: var(--muted); font-weight: 700; margin: 10px 0 4px; }
.zi-reasons, .zi-facts { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.5; color: var(--text-2); }
.zi-reasons li { margin-bottom: 3px; }
.zi-facts li { margin-bottom: 3px; color: var(--text); }
.zi-bottom { margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--ganit-blue); line-height: 1.5; background: #fff; border-radius: 8px; padding: 8px 10px; }
.zi-sources { margin-top: 8px; font-size: 11px; color: var(--muted); }
.zi-sources a { color: var(--ganit-blue); }
.zi-error { font-size: 12.5px; color: var(--muted); }

/* "View on Google Maps" link inside map info windows */
.gmaps-link { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 600;
  color: var(--ganit-blue); text-decoration: none; }
.gmaps-link:hover { text-decoration: underline; color: var(--ganit-orange); }

/* "+N more" chip + inline maps link in nearby lists */
.more-chip {
  position: relative;
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--ganit-blue);
  cursor: pointer;
  user-select: none;
}
.more-tooltip {
  visibility: hidden;
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  background-color: #1a1d2b;
  color: #fff;
  text-align: left;
  border-radius: 8px;
  padding: 8px 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  font-size: 11px;
  line-height: 1.45;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
  font-weight: 500;
  white-space: normal;
}
.more-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #1a1d2b transparent transparent transparent;
}
.more-chip:hover .more-tooltip,
.more-chip.active .more-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}
.nearby-row { align-items: flex-start; gap: 12px; }
.nearby-row .label { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.nearby-title { display: flex; align-items: center; gap: 5px; min-width: 0; }
.nearby-title .more-chip { margin-left: 4px; }
.nearby-name { font-weight: 400; min-width: 0; }
.nearby-row .v { min-width: 58px; flex-shrink: 0; text-align: right; white-space: nowrap; }
.gmaps-inline { font-size: 11px; color: var(--ganit-blue); text-decoration: none; overflow-wrap: anywhere; }
.gmaps-inline:hover { text-decoration: underline; color: var(--ganit-orange); }
.close { position: absolute; right: 8px; top: 6px; background: transparent; border: none;
  color: var(--text-2); font-size: 22px; cursor: pointer; line-height: 1; }
.close:hover { color: var(--text); }

.score-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; }
.score-row .label { color: var(--muted); }
.score-row .v { font-weight: 600; }
.final-pill { display: inline-block; padding: 5px 12px; border-radius: 8px;
  font-weight: 800; font-size: 18px; color: #fff; }

.subhead {
  margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--border);
  font-size: 11px; color: var(--ganit-orange); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700;
}

/* Weighted score breakdown table */
.score-breakdown { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 2px; }
.score-breakdown th {
  text-align: right; font-size: 10px; text-transform: uppercase; letter-spacing: 0.4px;
  color: var(--muted); font-weight: 600; padding: 2px 4px 6px; border-bottom: 1px solid var(--border);
}
.score-breakdown th:first-child { text-align: left; }
.score-breakdown td { padding: 5px 4px; text-align: right; }
.score-breakdown .sb-factor { text-align: left; color: var(--text, #222); font-weight: 600; }
.score-breakdown .sb-score { font-weight: 700; }
.score-breakdown .sb-weight { color: var(--muted); }
.score-breakdown .sb-points { font-weight: 700; }
.score-breakdown .sb-read { text-align: left; padding-left: 10px; color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.score-breakdown .sb-subtotal td { border-top: 1px solid var(--border); padding-top: 7px; color: var(--muted); font-weight: 600; }
.score-breakdown .sb-penalty td { color: #dc2626; font-weight: 600; }
.score-breakdown tfoot td { border-top: 1.5px solid var(--border); padding-top: 8px; font-weight: 800; }
.score-breakdown tfoot .sb-read { color: var(--text, #222); }
.sb-note { font-size: 11px; color: var(--muted); margin: 8px 0 0; padding-left: 16px; line-height: 1.5; }
.sb-note li { margin-bottom: 2px; }
.site-vs-market { font-size: 11px; color: var(--muted); margin-bottom: 14px; line-height: 1.45; }

.listing {
  background: var(--bg-2); padding: 8px 10px; border-radius: 6px; margin-top: 6px; font-size: 12px;
}
.listing .lst-title { font-weight: 600; color: var(--ganit-blue); margin-bottom: 2px; }
.listing .lst-meta { color: var(--muted); font-size: 11px; }

/* Modal */
.modal {
  position: fixed; inset: 0; background: rgba(20, 24, 40, 0.55);
  display: flex; align-items: center; justify-content: center; z-index: 1000;
}
.modal-body {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  padding: 28px; width: 560px; max-width: 90vw; position: relative;
}
.modal-body h2 { color: var(--ganit-blue); margin: 0 0 8px; }
.import-result {
  max-height: 320px; overflow: auto; background: var(--bg-2); padding: 10px;
  border-radius: 6px; font-size: 11px; line-height: 1.4; color: var(--text-2);
}

/* ===== EXECUTIVE SUMMARY (sidebar mini card) ===== */
/* Headline stat card */
/* Collapse empty status / progress placeholders so they don't leave a big gap
   below the Analyze button before any results exist. */
#status:empty, #progressPanel:empty { display: none; }
/* Divider above the results so the gap reads as an intentional section break. */
#summary:not(.hidden) {
  margin-top: 18px; padding-top: 20px;
  border-top: 2px solid var(--border);
  position: relative;
}
#summary:not(.hidden)::before {
  content: "RESULTS";
  position: absolute; top: -8px; left: 0;
  background: var(--panel); padding-right: 10px;
  font-size: 10px; font-weight: 800; letter-spacing: 1px; color: var(--ganit-blue);
}
.result-stats {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 14px; box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.rs-head { font-size: 13px; color: var(--text-2); margin-bottom: 12px; }
.rs-head i, .rs-head .uil { color: var(--ganit-orange); margin-right: 5px; }
.rs-head strong { color: var(--ganit-blue); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat {
  text-align: center; background: var(--bg-2); border-radius: 10px; padding: 10px 4px;
  min-height: 70px; display: flex; flex-direction: column; justify-content: center;
}
.stat-value { font-size: 22px; font-weight: 800; line-height: 1; letter-spacing: -0.5px; }
.stat-label { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted);
  font-weight: 700; margin-top: 5px; }
.stat-clickable { cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s; position: relative; }
.stat-clickable:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.12); background: #fff; }
.stat-info {
  position: absolute; top: 6px; right: 7px;
  font-size: 12px; line-height: 1; color: var(--ganit-blue); opacity: 0.5;
}
.stat-clickable:hover .stat-info { opacity: 1; }

/* POI list popup (competitors / your sites) */
.poi-list-popup {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 380px; max-width: 92vw; max-height: 70vh; display: flex; flex-direction: column;
  background: #fff; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  z-index: 4000; overflow: hidden; animation: poiPop .14s ease-out;
}
@keyframes poiPop { from { opacity: 0; transform: translate(-50%, -46%) scale(0.97); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.poi-pop-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 2px solid; }
.poi-pop-title { font-weight: 800; font-size: 15px; color: var(--text, #1a1a2e); flex: 1; }
.poi-pop-count { color: #fff; font-weight: 800; font-size: 12px; border-radius: 20px; padding: 2px 10px; }
.poi-pop-close { background: none; border: none; font-size: 24px; line-height: 1; cursor: pointer; color: #888; padding: 0 2px; }
.poi-pop-close:hover { color: #000; }
.poi-pop-hint { font-size: 11px; color: var(--muted); padding: 8px 16px 4px; }
.poi-pop-list { list-style: none; margin: 0; padding: 4px 8px 10px; overflow-y: auto; }
.poi-row { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 9px; cursor: pointer; transition: background .1s; }
.poi-row:hover { background: #f1f4ff; }
.poi-idx { color: #fff; font-weight: 700; font-size: 11px; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.poi-main { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.poi-name { font-size: 13px; font-weight: 600; color: var(--text, #1a1a2e); }
.poi-rating { font-size: 11px; color: #d97706; font-weight: 600; }
.poi-map { font-size: 11px; font-weight: 700; color: var(--ganit-blue); text-decoration: none; flex-shrink: 0; }
.poi-map:hover { text-decoration: underline; }
.poi-empty { padding: 16px; text-align: center; color: var(--muted); font-size: 13px; }

.exec-mini {
  background: linear-gradient(135deg, var(--ganit-blue) 0%, var(--ganit-blue-2) 100%);
  color: #fff; padding: 16px 18px; border-radius: 12px; margin-bottom: 18px;
  box-shadow: 0 6px 20px rgba(26, 0, 217, 0.25);
}
/* Emoji-bulleted exec points: each on its own faint card row so the list reads
   as scannable highlights instead of a flat paragraph block. */
.exec-mini .em-points { margin: 12px 0 4px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.exec-mini .em-points li {
  font-size: 13px; line-height: 1.5; color: #f7f9ff; margin: 0;
  display: flex; gap: 9px; align-items: flex-start;
  background: rgba(255,255,255,0.20); border-radius: 9px; padding: 8px 11px;
  border-left: 3px solid var(--ganit-orange);
}
.exec-mini .em-bullet-icon { font-size: 15px; line-height: 1.35; flex-shrink: 0; }
.exec-mini .em-points li strong, .exec-mini .em-market strong, .exec-mini .em-alt strong { color: #fff; font-weight: 800; }
.exec-mini .em-market { font-size: 12px; line-height: 1.45; color: #fff;
  background: rgba(255,255,255,0.24); border-radius: 8px; padding: 8px 11px; margin: 8px 0 4px;
  border-left: 3px solid var(--ganit-orange); }
.exec-mini .em-alts { margin-top: 12px; border-top: 1px solid rgba(255,255,255,0.22); padding-top: 10px; }
.exec-mini .em-alts-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--ganit-orange-2); font-weight: 800; margin-bottom: 7px; }
.exec-mini .em-alt { font-size: 12.5px; line-height: 1.45; color: #f7f9ff;
  display: flex; gap: 8px; align-items: flex-start; margin-bottom: 6px;
  background: rgba(255,255,255,0.18); border-radius: 8px; padding: 7px 10px; }
.exec-mini .em-alt-pin { flex-shrink: 0; font-size: 14px; }
.alts-list { display: flex; flex-direction: column; gap: 6px; }
.alt-item { font-size: 13px; line-height: 1.5; color: var(--text-2); padding-left: 4px;
  border-left: 3px solid var(--ganit-orange); padding: 4px 0 4px 10px; }
.exec-mini .em-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.exec-mini .em-area { font-weight: 800; font-size: 16px; letter-spacing: -0.2px; }
.exec-mini .em-rec {
  font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 6px;
  letter-spacing: 0.5px;
  text-align: center;
}
.exec-mini .em-rec.GO     { background: #16a34a; color: #fff; }
.exec-mini .em-rec.CAUTION { background: #f48020; color: #fff; }
.exec-mini .em-rec.AVOID  { background: #dc2626; color: #fff; }
.exec-mini .em-stars { color: var(--ganit-orange-2); font-size: 16px; letter-spacing: 2px; margin-bottom: 6px; }
.exec-mini .em-bottom { font-size: 13px; line-height: 1.5; color: #e3e8ff; margin-top: 8px; }
.exec-mini .em-cta {
  margin-top: 12px; background: var(--good); border: 1px solid #22c55e;
  color: #fff; font-weight: 600; padding: 8px 12px; border-radius: 6px; cursor: pointer;
  font-size: 12px; width: 100%; box-shadow: 0 4px 12px rgba(22, 163, 74, 0.28);
}
.exec-mini .em-cta:hover { background: #15803d; border-color: #15803d; }

/* ===== FULL EXECUTIVE MODAL ===== */
.exec-modal { width: 760px !important; padding: 0 !important; max-height: 88vh; overflow: hidden;
  display: flex; flex-direction: column; }
/* The exec modal's close (×) sits on a dark-blue header, so the default dark
   grey is invisible — make it white with a clear circular hover target. */
.exec-modal > .close {
  color: #fff; font-size: 26px; width: 32px; height: 32px; border-radius: 50%;
  right: 14px; top: 14px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.14); z-index: 2;
}
.exec-modal > .close:hover { background: rgba(255,255,255,0.28); color: #fff; }
.exec-head {
  background: linear-gradient(135deg, #1a2b8c, #2540c4);
  color: #fff; padding: 24px 32px;
}
.exec-head .eh-area { font-size: 24px; font-weight: 800; letter-spacing: -0.4px; }
.exec-head .eh-sub  { opacity: 0.85; margin-top: 4px; font-size: 13px; }
.exec-head-row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 14px; gap: 16px; }
.exec-head .eh-stars { font-size: 26px; color: var(--ganit-orange-2); letter-spacing: 4px; }
.exec-head .eh-rec {
  font-weight: 800; padding: 8px 16px; border-radius: 8px; font-size: 14px; letter-spacing: 0.5px;
}
.exec-head .eh-rec.GO      { background: #16a34a; }
.exec-head .eh-rec.CAUTION { background: #f48020; }
.exec-head .eh-rec.AVOID   { background: #dc2626; }

.exec-body { padding: 24px 32px; overflow-y: auto; }
.exec-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px;
  position: sticky; top: -24px; background: #ffffff; z-index: 120;
  padding: 0 0 14px; border-bottom: 2px solid var(--border);
}
.exec-tabs, .exec-actions { display: flex; align-items: center; gap: 8px; min-width: 0; }
.exec-actions .primary,
.exec-actions .ghost,
.exec-tabs .primary,
.exec-tabs .ghost {
  width: auto; padding: 8px 12px; font-weight: 700; white-space: nowrap;
}
.exec-actions .ghost, .exec-tabs .ghost { border: 1px solid var(--border); color: var(--text-2); background: #fff; }
.exec-actions .ghost:hover, .exec-tabs .ghost:hover { border-color: var(--ganit-blue); color: var(--ganit-blue); }
.exec-body .eb-section { margin-bottom: 22px; }
/* Market snapshot stat strip at the top of the exec summary */
.market-snapshot {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px;
}
.market-snapshot .ms-card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
}
.market-snapshot .ms-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; color: var(--muted);
}
.market-snapshot .ms-value {
  font-size: 22px; font-weight: 800; color: var(--ganit-blue); margin-top: 4px; line-height: 1.1;
}
.market-snapshot .ms-sub { font-size: 11px; color: var(--text-2); margin-top: 3px; }
.exec-body h4 {
  text-transform: uppercase; font-size: 11px; letter-spacing: 1px;
  color: var(--ganit-blue); margin: 0 0 10px; font-weight: 800;
}
.exec-body .drivers h4    { color: var(--good); }
.exec-body .risks h4      { color: var(--bad); }
.exec-body .driver, .exec-body .risk {
  display: flex; gap: 12px; padding: 10px 12px; background: var(--bg-2);
  border-radius: 8px; margin-bottom: 8px;
}
.exec-body .driver .icon  { color: var(--good); font-weight: 800; font-size: 16px; flex-shrink: 0; }
.exec-body .risk   .icon  { color: var(--warn); font-weight: 800; font-size: 16px; flex-shrink: 0; }
.exec-body .d-headline { font-weight: 700; color: var(--text); margin-bottom: 2px; font-size: 14px; }
.exec-body .d-detail   { color: var(--text-2); font-size: 12.5px; line-height: 1.5; }
.exec-body .bottom-line {
  background: linear-gradient(135deg, #fff8ee, #ffefdc);
  border-left: 4px solid var(--ganit-orange);
  padding: 14px 18px; border-radius: 0 10px 10px 0; font-size: 14px;
  line-height: 1.55; color: var(--ganit-blue); font-weight: 500;
}

/* ===== TAGGED RECOMMENDATIONS ===== */
.rec-list li.tagged {
  padding: 12px;
}
.rec-tag {
  display: inline-block; font-size: 9.5px; font-weight: 800; letter-spacing: 0.7px;
  padding: 3px 7px; border-radius: 4px; margin-bottom: 5px; text-transform: uppercase;
}
.tag-BEST_OVERALL { background: var(--ganit-blue); color: #fff; }
.tag-GROWTH_PLAY  { background: #7c3aed; color: #fff; }
.tag-SAFE_BET     { background: var(--good); color: #fff; }
.tag-UNDERSERVED  { background: var(--ganit-orange); color: #fff; }
.tag-PREMIUM_PICK { background: #1e293b; color: #fff; }
.rec-reason { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.rec-proximity { font-size: 11.5px; color: var(--ganit-blue); margin-top: 4px; line-height: 1.4; font-weight: 600; }

/* ===== AREA CONTEXT (wiki + pin) ===== */
.context-block { font-size: 13px; line-height: 1.55; color: var(--text-2); }
.context-block strong { color: var(--ganit-blue); }
.context-meta { display: flex; gap: 14px; margin-top: 10px; flex-wrap: wrap; font-size: 12px; }
.context-meta .cm-item {
  background: var(--bg-2); padding: 6px 10px; border-radius: 6px; color: var(--text-2);
}
.context-meta .cm-item strong { color: var(--ganit-blue); }

/* ===== MAP MARKER LABELS ===== */
.marker-label {
  background: #fff; padding: 2px 6px; border-radius: 4px;
  font-size: 10px; font-weight: 600; color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3); border: 1px solid var(--border);
  white-space: nowrap;
}
.marker-label.competitor { background: #fee; color: var(--bad); border-color: var(--bad); }
.marker-label.own        { background: #efe; color: var(--good); border-color: var(--good); }
.marker-label.recommended { background: #eef1ff; color: var(--ganit-blue); border-color: var(--ganit-blue); }

/* Progress panel */
.progress-panel {
  margin-top: 14px; padding: 14px 16px;
  background: linear-gradient(135deg, #f6f8ff, #fff7ee);
  border: 1px solid var(--ganit-blue); border-radius: 10px;
}
.progress-title { font-weight: 700; color: var(--ganit-blue); font-size: 13px; margin-bottom: 10px; }
.progress-list { list-style: none; padding: 0; margin: 0; }
.progress-list li {
  display: flex; align-items: center; gap: 10px; padding: 5px 0;
  font-size: 13px; color: var(--muted); transition: color 0.2s;
}
.progress-list li.running { color: var(--ganit-blue); font-weight: 500; }
.progress-list li.done    { color: var(--good); }
.progress-list li.pending .ps-icon { color: var(--border); }
.progress-list li.done    .ps-icon { color: var(--good); font-weight: 800; }
.ps-icon { width: 18px; text-align: center; display: inline-flex; justify-content: center; }
.ps-label { flex: 1; }

.spinner {
  display: inline-block; width: 12px; height: 12px;
  border: 2px solid var(--ganit-blue); border-top-color: transparent;
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
.spinner.big { width: 26px; height: 26px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Import modal loading state */
.import-loading {
  display: flex; align-items: center; gap: 14px;
  background: #f5f7ff; border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px; margin-top: 4px;
}
.import-loading-text .il-title { font-size: 14px; color: var(--text, #1a1a2e); }
.import-loading-text .il-sub { font-size: 12px; color: var(--muted); margin-top: 3px; animation: ilFade .5s ease; }
@keyframes ilFade { from { opacity: .3; } to { opacity: 1; } }

.hidden { display: none !important; }
.invisible { visibility: hidden !important; }

/* Map marker overlay text labels */
.marker-label.overlay {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-2);
  border-color: var(--border);
  font-size: 9px;
  font-weight: 500;
  padding: 1.5px 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  border-radius: 3px;
}
.marker-label.overlay:hover {
  background: #ffffff;
  color: var(--ganit-blue);
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Dynamic Hex Assessment & Pros/Cons in detail panel */
.assessment-section {
  background: var(--bg-2);
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}
.assessment-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 5px;
  font-weight: 800;
  font-size: 11px;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.assessment-badge.go { background: var(--good); }
.assessment-badge.caution { background: var(--warn); }
.assessment-badge.avoid { background: var(--bad); }

.assessment-list {
  margin: 6px 0 0;
  padding-left: 0;
  list-style: none;
  font-size: 12px;
  line-height: 1.5;
}
.assessment-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 5px;
}
.assessment-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}
.assessment-list li.pro {
  color: #15803d; /* Dark green text */
}
.assessment-list li.pro::before {
  content: "✓";
  color: var(--good);
}
.assessment-list li.con {
  color: #b91c1c; /* Dark red text */
}
.assessment-list li.con::before {
  content: "⚠";
  color: var(--bad);
}

/* Settings popover (gear in header) */
.header-right .icon-btn { padding: 9px 11px; font-size: 15px; line-height: 1; }
.settings-panel {
  position: absolute; top: 60px; right: 20px; z-index: 50;
  width: 320px; background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.14);
}
/* Rainfall block (Collateral Check, agricultural/land) */
.rf-box { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin: 4px 0 8px; }
.rf-top { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.rf-stat { display: flex; flex-direction: column; }
.rf-num { font-size: 20px; font-weight: 800; line-height: 1; }
.rf-unit { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; margin-top: 3px; }
.rf-band { margin-left: auto; color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; }
.rf-chart { display: flex; align-items: flex-end; gap: 8px; height: 76px; padding: 4px 2px; }
.rf-bar-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; flex: 1; }
.rf-bar { width: 100%; max-width: 28px; border-radius: 4px 4px 0 0; }
.rf-bar-lbl { font-size: 10px; color: var(--muted); margin-top: 4px; }
.rf-note { font-size: 12px; color: var(--text-2); line-height: 1.45; margin-top: 8px; }

.settings-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.settings-head .settings-title { margin-bottom: 0; }
.settings-title { font-weight: 800; color: var(--ganit-blue); font-size: 14px; margin-bottom: 12px; }
.weight-save-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: #16a34a; color: #fff; border: none; border-radius: 8px;
  padding: 7px 14px; font-size: 12.5px; font-weight: 700; cursor: pointer;
  transition: background .15s, transform .1s;
}
.weight-save-btn:hover { background: #15803d; }
.weight-save-btn:active { transform: scale(.96); }
.weight-save-btn.saved { background: #0f9d58; animation: savePulse .3s ease; }
@keyframes savePulse { 0% { transform: scale(1); } 50% { transform: scale(1.08); } 100% { transform: scale(1); } }
.settings-label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.7px; font-weight: 600; }
.settings-select {
  width: 100%; padding: 9px 11px; font-size: 13px; background: #fff;
  border: 1px solid var(--border); border-radius: 8px; outline: none; cursor: pointer;
}
.settings-select:focus { border-color: var(--ganit-blue); }
.settings-hint { font-size: 11.5px; color: var(--muted); margin-top: 8px; line-height: 1.45; }

/* Search-area / grid-size controls. Defaults match every issued report, so the
   copy leans on "leave these alone unless you need a different zoom". */
.grid-controls { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.gc-row { display: flex; flex-direction: column; gap: 5px; }
.gc-label { display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; font-weight: 600; color: var(--text); }
.gc-sub { font-weight: 500; font-size: 11px; color: var(--ganit-blue); font-variant-numeric: tabular-nums; }
.gc-row input[type="range"] { width: 100%; accent-color: var(--ganit-blue); }
.gc-note { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.gc-note.warn { color: #b45309; }
.mode-visibility { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.mode-visibility label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-1); cursor: pointer; }
.mode-visibility input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--brand-orange, #fe6e06); cursor: pointer; }

/* Lead Radar — cleaner cards */
.radar-lead { cursor: pointer; transition: background .12s, box-shadow .12s; }
.radar-lead:hover { background: rgba(26,0,217,.04); }
.radar-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.radar-proj { font-weight: 600; font-size: 13.5px; color: var(--text-1); }
.radar-pool { font-weight: 700; font-size: 13px; color: var(--brand-orange, #fe6e06); white-space: nowrap; }
.radar-card-cta { font-size: 11.5px; color: #1a00d9; font-weight: 600; margin-top: 6px; }

/* Lead Radar — detail panel */
.lead-detail { display: flex; flex-direction: column; gap: 14px; }
.lead-hero { background: linear-gradient(135deg,#1a00d9,#4b2cff); color: #fff; border-radius: 12px; padding: 16px; text-align: center; }
.lead-hero-num { font-size: 26px; font-weight: 800; }
.lead-hero-lbl { font-size: 11.5px; opacity: .9; margin-top: 2px; }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lead-stat { background: var(--panel-2,#f5f6fa); border-radius: 10px; padding: 10px 12px; font-size: 11.5px; color: var(--muted); }
.lead-stat span { display: block; font-size: 18px; font-weight: 700; color: var(--text-1); }
.lead-sec-h { font-size: 12px; font-weight: 700; color: var(--text-1); margin-bottom: 5px; }
.lead-dim { font-size: 12px; color: var(--muted); line-height: 1.5; }
.lead-actions { margin: 4px 0 0; padding-left: 18px; font-size: 12.5px; line-height: 1.55; color: var(--text-1); }
.lead-actions li { margin-bottom: 6px; }
.lead-links { display: flex; gap: 8px; flex-wrap: wrap; }
.lead-disclaimer { font-size: 11px; color: var(--muted); font-style: italic; }
.settings-divider { height: 1px; background: var(--border); margin: 16px 0 14px; }
.expand-elsewhere {
  background: #fff7ed; border: 1px solid #fdba74; color: #9a3412;
  border-radius: 10px; padding: 10px 12px; margin-bottom: 12px;
  font-size: 12.5px; line-height: 1.5;
}
.expand-elsewhere strong { color: #7c2d12; }
.expand-elsewhere.bad { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }
.expand-elsewhere.bad strong { color: #7f1d1d; }
.weight-vtag { color: var(--ganit-blue); font-weight: 600; text-transform: none; letter-spacing: 0; }
.weight-sliders { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.weight-row { display: grid; grid-template-columns: 92px 1fr 48px; align-items: center; gap: 8px; }
.weight-row label { font-size: 12px; color: var(--text, #222); font-weight: 600; }
.weight-row input[type=range] { width: 100%; accent-color: var(--ganit-blue); }
.weight-row .weight-val { font-size: 12px; font-weight: 700; text-align: right; color: var(--ganit-blue); }
.weight-total-row { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--border); }
#weightResetBtn { margin-top: 12px; }

/* Info / About modal */
.info-modal { width: 600px !important; max-width: 92vw; max-height: 88vh; overflow-y: auto; }
.info-lede { color: var(--text-2); font-size: 14px; line-height: 1.55; margin-top: 4px; }
.info-h { font-size: 12px; text-transform: uppercase; letter-spacing: 0.7px; color: var(--ganit-blue);
  font-weight: 800; margin: 20px 0 8px; }
.info-list { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.6; color: var(--text-2); }
.info-list li { margin-bottom: 6px; }
.info-list strong { color: var(--text); }
.info-sources { display: flex; flex-direction: column; gap: 12px; }
.src-row { display: flex; gap: 10px; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.src-row strong { color: var(--text); }
.src-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.info-foot { margin-top: 20px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 12px; }

/* ===== COMPARE LOCATIONS ===== */
.compare-add { margin: 8px 0 4px; width: 100%; justify-content: center; }
.compare-modal { width: 880px !important; max-width: 94vw; max-height: 88vh; overflow-y: auto; }
.compare-table-wrap { overflow-x: auto; margin-top: 14px; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.compare-table th, .compare-table td {
  border: 1px solid var(--border); padding: 9px 12px; text-align: center; vertical-align: middle;
}
.compare-table thead th { background: var(--bg-2); position: relative; min-width: 130px; }
.compare-table .metric-col { text-align: left; font-weight: 700; color: var(--text-2); background: var(--bg-2); white-space: nowrap; }
.cmp-loc-name { font-weight: 800; color: var(--ganit-blue); font-size: 14px; }
.cmp-loc-sub  { font-size: 10.5px; color: var(--muted); text-transform: capitalize; margin-top: 2px; }
.cmp-loc-rec  { font-size: 10px; font-weight: 800; margin-top: 5px; padding: 2px 6px; border-radius: 4px; display: inline-block; }
.cmp-loc-rec.rec-go     { background: #e7f7ec; color: #15803d; }
.cmp-loc-rec.rec-avoid  { background: #fdecec; color: #dc2626; }
.cmp-loc-rec.rec-caution{ background: #fdf3e5; color: #b45309; }
.cmp-crown { font-size: 13px; }
.compare-table td.win { background: #e7f7ec; font-weight: 800; color: #15803d; }
.compare-table th.col-winner, .compare-table td.col-winner { box-shadow: inset 0 0 0 2px rgba(254,110,6,0.35); }
.cmp-remove {
  position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; line-height: 16px;
  border: none; background: transparent; color: var(--muted); cursor: pointer; font-size: 16px; border-radius: 4px;
}
.cmp-remove:hover { background: #fdecec; color: var(--bad); }
.compare-foot { margin-top: 12px; font-size: 11.5px; color: var(--muted); }

/* No-build zone banner in the hex detail panel */
.nobuild-banner {
  background: #fdecec; color: #b91c1c; border: 1px solid #f3b4b4;
  border-radius: 8px; padding: 8px 10px; font-size: 12px; font-weight: 600;
  line-height: 1.4; margin-bottom: 10px;
}

/* Welcome Placeholder */
.welcome-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 50px 24px;
  background: var(--bg-2);
  border: 2px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  margin-top: 20px;
  gap: 12px;
}
.welcome-placeholder .uil {
  font-size: 36px;
  color: var(--ganit-blue);
  opacity: 0.65;
}
.welcome-placeholder span {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-2);
}

/* ===== Expansion Planner ("My Network" mode) ===== */
.mode-toggle {
  position: relative;
  display: flex; gap: 6px; margin-bottom: 16px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 4px;
}
.mode-btn {
  flex: 1; padding: 8px 6px; font-size: 12.5px; font-weight: 600;
  border: none; background: transparent; color: var(--text-2);
  border-radius: 7px; cursor: pointer; transition: all .15s;
}
/* Mode-switch confirmation dialog */
.confirm-overlay {
  position: fixed; inset: 0; background: rgba(20, 16, 60, 0.45);
  display: flex; align-items: center; justify-content: center; z-index: 5000;
  animation: cfFade .15s ease;
}
@keyframes cfFade { from { opacity: 0; } to { opacity: 1; } }
.confirm-box {
  background: #fff; border-radius: 16px; padding: 26px 26px 20px; width: 360px; max-width: 90vw;
  text-align: center; box-shadow: 0 24px 70px rgba(0,0,0,0.32); animation: cfPop .18s cubic-bezier(.3,1.2,.5,1);
}
@keyframes cfPop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.confirm-icon { font-size: 34px; margin-bottom: 8px; }
.confirm-title { font-size: 18px; font-weight: 800; color: var(--text, #1a1a2e); margin-bottom: 8px; }
.confirm-body { font-size: 13.5px; color: var(--text-2); line-height: 1.5; margin-bottom: 20px; }
.confirm-actions { display: flex; gap: 10px; }
.confirm-actions button { flex: 1; padding: 11px; border-radius: 9px; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.confirm-actions .confirm-cancel { border: 1px solid var(--border); background: #fff; color: var(--text-2); }
.confirm-actions .confirm-cancel:hover { background: var(--bg-2); }
.confirm-actions .confirm-ok { border: none; background: var(--ganit-blue); color: #fff; }
.confirm-actions .confirm-ok:hover { filter: brightness(1.08); }

.mode-btn { position: relative; z-index: 1; }
.mode-btn:hover { color: var(--ganit-blue); }
/* The active button's highlight is drawn by the sliding pill below, so the
   button itself just turns its text white — no background of its own. */
.mode-btn.active { background: transparent; color: #fff; }

/* Sliding highlight pill — glides under the active tab via translateX. */
.mode-slider {
  position: absolute; top: 4px; bottom: 4px; left: 0;
  transform: translateX(0);
  background: var(--ganit-blue); border-radius: 7px; z-index: 0;
  box-shadow: 0 2px 8px rgba(26, 0, 217, 0.35);
  transition: transform .36s cubic-bezier(.34, 1.3, .5, 1), width .36s cubic-bezier(.34, 1.3, .5, 1);
  pointer-events: none;
}

/* Smooth mode switching (Site Finder / Expansion Planner / Loan Assessor).
   The panel toggles display via .hidden; these entry animations slide the new
   panel in from the direction of travel. */
.mode-enter-right { animation: modeEnterR .34s cubic-bezier(.22, .61, .36, 1); }
.mode-enter-left  { animation: modeEnterL .34s cubic-bezier(.22, .61, .36, 1); }
@keyframes modeEnterR {
  from { opacity: 0; transform: translateX(38px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes modeEnterL {
  from { opacity: 0; transform: translateX(-38px); }
  to   { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .mode-slider { transition: none; }
  .mode-enter-right, .mode-enter-left { animation: none; }
}

.planner-lede { font-size: 12.5px; line-height: 1.55; color: var(--text-2); margin: 4px 0 14px; }
#plannerStats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 14px; }
.pstat { background: var(--bg-2); border: 1px solid var(--border); border-radius: 9px; padding: 10px 6px; text-align: center; }
.pstat-num { font-size: 22px; font-weight: 800; color: var(--ganit-blue); line-height: 1; }
.pstat-lbl { font-size: 10.5px; color: var(--text-2); margin-top: 4px; text-transform: uppercase; letter-spacing: .03em; }

.planner-item { cursor: pointer; }
.planner-foot { font-size: 11.5px; color: var(--text-2); margin-top: 4px; }
.health-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; flex: 0 0 auto; }

.rev-band { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 20px; margin-left: auto; }
.band-premium { background: #ede9fe; color: #6d28d9; }
.band-strong  { background: #dcfce7; color: #15803d; }
.band-moderate{ background: #fef9c3; color: #a16207; }
.band-low     { background: #fee2e2; color: #b91c1c; }

.rev-btn { margin-top: 8px; }
.rev-out { margin-top: 8px; font-size: 12px; }
.rev-amount { font-weight: 700; color: var(--ganit-blue); font-size: 13.5px; }
.rev-conf { font-weight: 500; color: var(--text-2); font-size: 11px; }
.rev-note { color: var(--text-2); margin-top: 3px; line-height: 1.5; }
.rec-empty { list-style: none; font-size: 12.5px; color: var(--text-2); padding: 10px; background: var(--bg-2); border-radius: 8px; }

/* Planner list item head row (rec-head/rec-score not used by finder) */
.planner-item .rec-head { display: flex; align-items: center; gap: 8px; }
.planner-item .rec-rank { font-weight: 700; color: var(--text); font-size: 13px; }
.rec-score { font-size: 11px; font-weight: 700; color: var(--text-2); }

/* Planner action buttons — clear hierarchy + spacing (fixes the merged-block look) */
.planner-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.planner-actions .ghost.block {
  width: 100%; padding: 12px; font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--ganit-blue); color: var(--ganit-blue);
  border-radius: 10px; background: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.planner-actions .ghost.block:hover { background: var(--bg-2); }
.planner-actions .ghost.block i { font-size: 16px; }

/* Gap "why here" detailed breakdown */
.gap-card { padding-bottom: 12px; }
.gap-rationale { background: rgba(26,0,217,0.05); border-left: 3px solid var(--ganit-blue);
  border-radius: 6px; padding: 9px 11px; margin: 8px 0; font-size: 12.5px; line-height: 1.55; color: var(--text); }
.gap-rationale-h { font-size: 11px; font-weight: 700; color: var(--ganit-blue); margin-bottom: 4px; }
.gap-why-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  color: var(--text-2); margin: 10px 0 6px; }
.factor-list { display: flex; flex-direction: column; gap: 5px; }
.factor-row { display: flex; gap: 7px; font-size: 12px; line-height: 1.45; align-items: flex-start; }
.factor-ic { flex: 0 0 auto; }
.factor-label { font-weight: 600; color: var(--text); }
.factor-value { color: var(--text); }
.factor-weight { color: var(--text-2); font-style: italic; }
.factor-negative .factor-value { color: #b45309; }

/* Revenue estimate reasoning */
.rev-reasoning { margin-top: 6px; font-size: 12px; line-height: 1.55; color: var(--text); }
.rev-assume-h { font-size: 11px; font-weight: 700; color: var(--text-2); margin: 7px 0 3px; text-transform: uppercase; letter-spacing: .03em; }
.rev-assume { margin: 0; padding-left: 18px; font-size: 11.5px; color: var(--text-2); line-height: 1.5; }
.rev-assume li { margin-bottom: 2px; }

/* Planner deep AI analysis (right-side panel) */
.pa { font-size: 12.5px; line-height: 1.55; }
.pa-verdict { display: inline-block; color: #fff; font-weight: 800; font-size: 12px;
  padding: 3px 12px; border-radius: 20px; letter-spacing: .04em; }
.pa-locality { font-size: 15px; font-weight: 700; color: var(--text); margin-top: 8px; }
.pa-headline { font-size: 13px; color: var(--text); margin-top: 3px; font-weight: 500; }
.pa-h { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
  color: var(--ganit-orange); margin: 13px 0 5px;
  padding-left: 8px; border-left: 3px solid var(--ganit-orange); }
.pa-list { margin: 0; padding-left: 18px; }
.pa-list li { margin-bottom: 3px; }
.pa-risks li { color: #b45309; }
.pa-text { color: var(--text); }
.npa-band { display: flex; align-items: center; gap: 9px; margin: 2px 0 7px; }
.npa-pill { color: #fff; font-weight: 800; font-size: 11px; padding: 3px 10px; border-radius: 16px; letter-spacing: .03em; }
.npa-score { font-size: 12px; font-weight: 600; color: var(--text); }
.npa-disc { font-size: 10px; color: #6b7280; margin: 4px 0 2px; line-height: 1.45; font-style: italic; }
.rev-conf { font-size: 9px; font-weight: 700; padding: 1px 6px; border-radius: 10px; margin-left: 6px; text-transform: uppercase; letter-spacing: .03em; }
.rev-low { background: #fee2e2; color: #b91c1c; }
.rev-medium { background: #fef3c7; color: #b45309; }
.rev-high { background: #dcfce7; color: #15803d; }
.share-btn { width: 100%; margin: 8px 0 4px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.loan-actions { display: flex; gap: 8px; margin: 12px 0 4px; }
.loan-actions button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; }
.fb { margin: 4px 0 6px; }
.fb-row { display: flex; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--border); }
.fb-row:last-child { border-bottom: none; }
.fb-dot { font-size: 11px; line-height: 1.5; flex: 0 0 auto; }
.fb-body { flex: 1; }
.fb-line { font-size: 12.5px; color: var(--text); line-height: 1.4; }
.fb-note { font-size: 11px; color: var(--muted); margin-top: 1px; }
.pa-bottom { margin-top: 12px; font-weight: 600; color: var(--ganit-blue);
  background: rgba(26,0,217,0.06); border-radius: 8px; padding: 9px 11px; line-height: 1.5; }
.pa-comp { border-left: 3px solid var(--border); padding: 5px 0 5px 9px; margin-bottom: 7px; }
.pa-comp-name { font-weight: 600; }
.pa-comp-meta { color: var(--text-2); font-size: 11px; margin-left: 5px; }
.pa-comp-rev { color: var(--text-2); font-style: italic; font-size: 11.5px; margin-top: 2px; }
.pa-anchors { display: flex; flex-direction: column; gap: 3px; }
.pa-anchor { font-size: 11.5px; color: var(--text-2); }
.pa-sources { margin-top: 12px; font-size: 11px; color: var(--text-2); word-break: break-word; }
.pa-sources a { color: var(--ganit-blue); }

/* Compact gap summary cards (left list) */
.gap-line { font-size: 11.5px; color: var(--text-2); margin-top: 5px; line-height: 1.45; }
.gap-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.gap-chip { font-size: 10.5px; font-weight: 600; color: var(--good); background: #dcfce7;
  padding: 2px 8px; border-radius: 20px; }
.gap-tap { font-size: 11px; font-weight: 600; color: var(--ganit-blue); margin-top: 8px; }

/* Property / rent block in the right panel */
.pa-prop { background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.pa-prop-row { display: flex; justify-content: space-between; font-size: 12px; padding: 2px 0; }
.pa-prop-row span { color: var(--text-2); }
.pa-prop-note { font-size: 11px; color: var(--text-2); margin-top: 4px; font-style: italic; }
.pa-comps { display: flex; flex-direction: column; gap: 4px; }
.pa-dist { color: var(--text-2); font-size: 11px; }

/* Loan Assessor */
.loan-disclaimer { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px;
  padding: 9px 11px; margin: 12px 0; font-size: 11.5px; line-height: 1.5; color: #9a3412; }
.loan-disclaimer strong { color: #9a3412; }
.loan-disclaimer.compact { margin: 12px 0 0; font-size: 10.5px; }
#loanResult { margin-top: 4px; }

.loan-disclaimer ul { margin: 5px 0 0; padding-left: 18px; }
.loan-disclaimer li { margin-bottom: 2px; }

/* Center loading overlay with animation */
.loading-overlay {
  position: fixed; inset: 0; z-index: 4000;
  background: rgba(20, 22, 40, 0.35); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  animation: ov-fade-in .2s ease;
}
.loading-overlay.hidden { display: none; }
@keyframes ov-fade-in { from { opacity: 0; } to { opacity: 1; } }
.loading-card {
  background: #fff; border-radius: 16px; padding: 28px 34px; max-width: 360px;
  text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.25);
  animation: card-pop .28s cubic-bezier(.2,.9,.3,1.3);
}
@keyframes card-pop { from { transform: scale(.9) translateY(8px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.loading-ring {
  width: 46px; height: 46px; margin: 0 auto 16px;
  border: 4px solid var(--bg-2); border-top-color: var(--ganit-blue);
  border-radius: 50%; animation: ring-spin .8s linear infinite;
}
@keyframes ring-spin { to { transform: rotate(360deg); } }
.loading-title { font-weight: 700; font-size: 15px; color: var(--text); animation: txt-cycle .4s ease; }
.loading-sub { font-size: 12.5px; color: var(--text-2); margin-top: 6px; line-height: 1.5; animation: txt-cycle .4s ease; }
@keyframes txt-cycle { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.pin-hint { font-size: 12px; color: var(--ganit-blue); margin-top: 8px; font-weight: 600;
  background: rgba(26,0,217,0.06); border-radius: 8px; padding: 8px 10px; }
.loan-pin-active { outline: 3px solid var(--ganit-blue); outline-offset: -3px; cursor: crosshair !important; }

/* Gap card points (Site-Finder-styled cards) */
.gap-points { margin: 4px 0 0; padding-left: 2px; list-style: none; }
.gap-points li { font-size: 12px; color: var(--text); line-height: 1.5; margin-bottom: 4px; }
.gap-card .rec-card-chevron { color: var(--ganit-blue); }

/* ===== Expansion gap cards v2 (rich preview) ===== */
.gap-card2 {
  list-style: none; background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 14px; margin-bottom: 12px; cursor: pointer;
  transition: box-shadow .15s, transform .15s, border-color .15s;
}
.gap-card2:hover { box-shadow: 0 8px 22px rgba(26,0,217,.10); border-color: var(--ganit-blue); transform: translateY(-1px); }

.gap-top { display: flex; gap: 12px; align-items: center; }
.gap-ring {
  --pct: 0; --ring: var(--ganit-blue);
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%;
  background: conic-gradient(var(--ring) calc(var(--pct) * 1%), var(--bg-2) 0);
  display: grid; place-items: center;
}
.gap-ring-inner { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.gap-ring-num { font-size: 15px; font-weight: 800; color: var(--text); }
.gap-titlewrap { min-width: 0; }
.gap-rank { font-size: 10px; font-weight: 800; letter-spacing: .06em; color: var(--ganit-blue); }
.gap-place { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.2; margin: 1px 0; }
.gap-headline { font-size: 12px; color: var(--text-2); line-height: 1.35; }

.gap-stats { display: flex; gap: 6px; margin-top: 12px; }
.gstat { flex: 1; background: var(--bg-2); border-radius: 9px; padding: 7px 4px; text-align: center; }
.gstat-v { font-size: 13px; font-weight: 800; color: var(--ganit-blue); line-height: 1.1; }
.gstat-l { font-size: 9.5px; color: var(--text-2); text-transform: uppercase; letter-spacing: .03em; margin-top: 3px; }

.gap-anchors-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--text-2); margin: 12px 0 5px; }
.gap-anchors { display: flex; flex-direction: column; gap: 4px; }
.gap-anchor { font-size: 12px; font-weight: 600; color: var(--ganit-blue); text-decoration: none; }
.gap-anchor:hover { text-decoration: underline; }
.gap-anchor-meta { font-weight: 400; color: var(--text-2); }

.gap-cta { margin-top: 12px; font-size: 12px; font-weight: 700; color: var(--ganit-blue);
  border-top: 1px solid var(--border); padding-top: 9px; text-align: center; }
.gap-card2:hover .gap-cta { color: var(--ganit-orange); }
