/* ═══════════════════════════════════════════════════════════════════
   WanderIndia · Atlas Cockpit — spacious layout with planning controls
   ═══════════════════════════════════════════════════════════════════ */

#mapPane.atlas-cockpit-active .control-strip,
#mapPane.atlas-cockpit-active #terrain-map-root { display: none !important; }
#mapPane.atlas-cockpit-active {
  padding: 0;
  background: transparent;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Cinematic coexistence */
#mapPane.ac-journey-active:not(.ac-map-revealed) #atlasCockpit { visibility: hidden; }
#mapPane.ac-map-revealed #atlasCockpit,
#mapPane:not(.ac-journey-active) #atlasCockpit { visibility: visible; }

/* ═══════════════ Root container ═══════════════ */
.atc {
  --atc-gold: #C5A059;
  --atc-gold-glow: rgba(255, 178, 78, 0.55);
  --atc-amber: #FF8C00;
  --atc-amber-soft: rgba(255, 140, 0, 0.22);
  --atc-bg: #0a121f;
  --atc-panel: rgba(15, 23, 41, 0.82);
  --atc-panel-edge: rgba(197, 160, 89, 0.22);
  --atc-ink: #e8eef9;
  --atc-ink-mute: #8d9bb5;
  --atc-row-hover: rgba(255, 178, 78, 0.06);
  --atc-row-active: rgba(255, 140, 0, 0.18);
  --atc-radius: 14px;
  --atc-radius-lg: 18px;

  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 24px calc(var(--disclaimer-h, 44px) + 4px);
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  box-sizing: border-box;
  color: var(--atc-ink);
  font-family: inherit;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(255, 140, 0, 0.06), transparent 60%),
    radial-gradient(ellipse 90% 70% at 90% 100%, rgba(56, 189, 248, 0.05), transparent 60%),
    linear-gradient(180deg, #07101c 0%, #0a121f 100%);
  scrollbar-width: thin;
  scrollbar-color: rgba(197, 160, 89, 0.3) transparent;
}
.atc::-webkit-scrollbar { width: 6px; }
.atc::-webkit-scrollbar-thumb { background: rgba(197, 160, 89, 0.3); border-radius: 3px; }

/* ═══════════════ Shared glass panel ═══════════════ */
.atc-panel {
  background: var(--atc-panel);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--atc-panel-edge);
  border-radius: var(--atc-radius-lg);
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-sizing: border-box;
}

/* ═══════════════ Planning Controls Bar ═══════════════ */
.atc-controls-bar {
  flex-shrink: 0;
  background: var(--atc-panel);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--atc-panel-edge);
  border-radius: var(--atc-radius-lg);
  box-shadow: 0 8px 32px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 18px 22px 20px;
  box-sizing: border-box;
}

.atc-controls-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.atc-controls-head h4 {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--atc-ink-mute);
}

.atc-controls {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.atc-ctrl-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.atc-ctrl-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--atc-ink-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.atc-ctrl-select,
.atc-ctrl-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  color: var(--atc-ink);
  font-size: 13px;
  padding: 9px 12px;
  outline: none;
  font-family: inherit;
  transition: border-color .18s ease, background .18s ease;
}
.atc-ctrl-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238d9bb5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
  cursor: pointer;
}
.atc-ctrl-select option { background: #0d1a2e; color: var(--atc-ink); }
.atc-ctrl-select:focus,
.atc-ctrl-input:focus {
  border-color: rgba(255, 178, 78, 0.5);
  background: rgba(255, 178, 78, 0.04);
  box-shadow: 0 0 0 3px rgba(255, 178, 78, 0.08);
}
.atc-ctrl-input::placeholder { color: var(--atc-ink-mute); }
.atc-ctrl-input[type="number"] { -moz-appearance: textfield; }
.atc-ctrl-input[type="number"]::-webkit-outer-spin-button,
.atc-ctrl-input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
.atc-ctrl-input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.6); cursor: pointer; }

.atc-plan-summary {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 178, 78, 0.06);
  border: 1px solid rgba(255, 178, 78, 0.20);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--atc-ink);
}
.atc-plan-summary[hidden] { display: none !important; }
.atc-plan-summary strong { color: #ffd089; font-weight: 600; }

/* ═══════════════ Workspace (2-column grid) ═══════════════ */
.atc-workspace {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 400px);
  gap: 20px;
  flex: 1;
  min-height: 580px;
  min-width: 0;
}

/* ═══════════════ CENTER — SVG Terrain Map ═══════════════ */
.atc-mapcol { padding: 0; min-width: 0; }
.atc-maptop {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid rgba(197, 160, 89, 0.16);
  background: rgba(10, 18, 31, 0.45); flex-shrink: 0;
}
.atc-basemap {
  display: inline-flex; background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; padding: 2px;
}
.atc-basemap-btn {
  background: transparent; border: 0; color: var(--atc-ink-mute);
  font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 8px;
  cursor: pointer; transition: all .15s ease;
}
.atc-basemap-btn:hover { color: var(--atc-ink); }
.atc-basemap-btn.is-active { color: var(--atc-ink); background: rgba(255, 178, 78, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 178, 78, 0.28); }
.atc-maptools { display: inline-flex; gap: 6px; }
.atc-tbtn {
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px; color: var(--atc-ink-mute); font-size: 12px; padding: 6px 11px;
  cursor: pointer; transition: all .15s ease; font-weight: 500;
}
.atc-tbtn:hover { color: var(--atc-ink); border-color: rgba(255, 178, 78, 0.4); }
.atc-tbtn-icon { padding: 6px 8px; font-size: 14px; }
.atc-mapsurface { position: relative; flex: 1; min-height: 0; background: #0a1220; }
.atc-leaflet { position: relative; width: 100%; height: 100%; overflow: hidden; }
.atc-mapsurface-hint {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  padding: 8px 16px;
  background: rgba(10, 18, 31, 0.85); border: 1px solid rgba(255, 178, 78, 0.25);
  border-radius: 999px; color: var(--atc-ink-mute); font-size: 12px; z-index: 600;
}

/* ── SVG state paths ── */
.atc-svg-state {
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(.4,0,.2,1),
              filter     0.22s ease,
              stroke     0.15s ease,
              fill       0.18s ease;
  transform-box: fill-box;
  transform-origin: center;
}
.atc-svg-state:hover {
  transform: translateY(-4px) scale(1.012);
}

/* ── State name labels (SVG text) ── */
.atc-svg-label {
  font-family: inherit;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  fill: #1a1a1a;
  paint-order: stroke fill;
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 2.8px;
  stroke-linejoin: round;
  white-space: nowrap;
  transition: fill 0.18s ease;
}
.atc-svg-label--sm { font-size: 6.5px; }
.atc-svg-label.is-selected {
  fill: #c45000;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 3px;
}

/* ── Capital city dots ── */
.atc-svg-city {
  opacity: 0;
  transition: opacity 0.22s ease;
}
.atc-svg-city-dot {
  fill: #c45000;
  stroke: rgba(255, 255, 255, 0.88);
  stroke-width: 1px;
}
.atc-svg-city-name {
  font-family: inherit;
  font-size: 7px;
  font-weight: 700;
  fill: #1a1207;
  paint-order: stroke fill;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 2px;
  stroke-linejoin: round;
  white-space: nowrap;
}

/* ── Ocean / sea text labels ── */
.atc-svg-sea {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 10px;
  font-style: italic;
  font-weight: 400;
  fill: rgba(120, 180, 220, 0.55);
  letter-spacing: .14em;
  text-transform: uppercase;
  pointer-events: none;
}

/* ── Landmark pins ── */
.atc-svg-pin-bg {
  fill: rgba(10, 14, 26, 0.88);
  stroke: rgba(255, 200, 80, 0.7);
  stroke-width: 1.2px;
}
.atc-svg-pin-tail {
  fill: rgba(10, 14, 26, 0.88);
  stroke: rgba(255, 200, 80, 0.6);
  stroke-width: 0.8px;
}
.atc-svg-pin-icon {
  font-size: 10px;
  dominant-baseline: central;
}

/* ── Floating tooltip — reference card style ── */
.atc-map-tooltip {
  position: absolute;
  z-index: 200;
  background: rgba(8, 13, 24, 0.96);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0;
  min-width: 260px;
  max-width: 300px;
  pointer-events: auto;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 200, 80, 0.12);
  overflow: hidden;
  animation: atc-tip-in 0.14s cubic-bezier(.2,0,.1,1);
}
@keyframes atc-tip-in {
  from { opacity: 0; transform: translateY(6px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Tooltip top row: colour swatch + name + close */
.atc-mtt-top {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.atc-mtt-swatch {
  width: 72px;
  min-height: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}
.atc-mtt-swatch-icon { font-size: 24px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4)); }
.atc-mtt-head {
  flex: 1;
  padding: 12px 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}
.atc-mtt-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.atc-mtt-region {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 4px;
}
.atc-mtt-pin-icon { font-size: 10px; }
.atc-mtt-close {
  flex-shrink: 0;
  align-self: flex-start;
  margin: 8px 8px 0 0;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 50%;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  cursor: pointer;
  transition: background .15s;
}
.atc-mtt-close:hover { background: rgba(255,255,255,0.16); color: #fff; }

.atc-mtt-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 0; }

/* Info rows */
.atc-mtt-rows { display: flex; flex-direction: column; gap: 0; padding: 6px 0 4px; }
.atc-mtt-row {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: flex-start;
  gap: 6px;
  padding: 6px 14px;
  font-size: 11.5px;
  line-height: 1.3;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.atc-mtt-row:last-child { border-bottom: none; }
.atc-mtt-icon { font-size: 12px; margin-top: 1px; }
.atc-mtt-label { color: rgba(255, 255, 255, 0.5); }
.atc-mtt-val   { color: rgba(255, 255, 255, 0.88); text-align: right; font-weight: 500; max-width: 120px; }

/* Travel alert row colour coding */
.atc-mtt-alert[data-score="safe"]     .atc-mtt-val { color: #4ade80; }
.atc-mtt-alert[data-score="caution"]  .atc-mtt-val { color: #fbbf24; }
.atc-mtt-alert[data-score="highrisk"] .atc-mtt-val { color: #f87171; }

/* Safety badge (used in old tooltip, kept for reference panel) */
.atc-mtt-badge {
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 99px; flex-shrink: 0;
}
.atc-mtt-badge[data-score="safe"]     { background: rgba(74,222,128,.15); color: #4ade80; border: 1px solid rgba(74,222,128,.3); }
.atc-mtt-badge[data-score="caution"]  { background: rgba(251,191,36,.15); color: #fbbf24; border: 1px solid rgba(251,191,36,.3); }
.atc-mtt-badge[data-score="highrisk"] { background: rgba(248,113,113,.15); color: #f87171; border: 1px solid rgba(248,113,113,.3); }

/* ═══════════════ RIGHT — Insights ═══════════════ */
.atc-detail { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.atc-detail-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  flex: 1; text-align: center; padding: 32px 24px; gap: 12px;
  color: var(--atc-ink-mute);
}
.atc-detail-empty[hidden],
.atc-detail-body[hidden] { display: none !important; }
.atc-detail-empty-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 26px; background: rgba(255, 178, 78, 0.08); border: 1px solid rgba(255, 178, 78, 0.18); }
.atc-detail-empty h4 { margin: 8px 0 0; font-size: 15px; color: var(--atc-ink); }
.atc-detail-empty p { margin: 0; font-size: 12px; line-height: 1.55; max-width: 240px; }

.atc-detail-body { display: flex; flex-direction: column; min-height: 0; flex: 1; overflow: hidden; }
.atc-detail-hero {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.atc-hero-thumb { width: 56px; height: 56px; border-radius: 12px; flex-shrink: 0; background: rgba(255, 178, 78, 0.08); display: flex; align-items: center; justify-content: center; }
.atc-hero-thumb svg { width: 100%; height: 100%; }
.atc-hero-meta { flex: 1; min-width: 0; }
.atc-hero-name { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--atc-ink); line-height: 1.15; }
.atc-hero-type { display: inline-block; margin-top: 4px; padding: 2px 8px; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ffd089; background: rgba(255, 178, 78, 0.10); border: 1px solid rgba(255, 178, 78, 0.3); border-radius: 999px; }
.atc-detail-close { width: 28px; height: 28px; border-radius: 50%; background: rgba(10, 18, 31, 0.6); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--atc-ink); font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all .15s ease; flex-shrink: 0; }
.atc-detail-close:hover { color: #ffd089; border-color: rgba(255, 178, 78, 0.4); }

.atc-detail-scroll {
  flex: 1; overflow-y: auto; min-height: 0;
  padding: 16px 18px 20px;
  scrollbar-width: thin; scrollbar-color: rgba(197, 160, 89, 0.35) transparent;
}
.atc-detail-scroll::-webkit-scrollbar { width: 5px; }
.atc-detail-scroll::-webkit-scrollbar-thumb { background: rgba(197, 160, 89, 0.25); border-radius: 3px; }

/* Status card */
.atc-status-card { background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.06); border-radius: 11px; padding: 11px 14px; margin-bottom: 14px; }
.atc-status-row { display: flex; align-items: center; justify-content: space-between; }
.atc-status-row + .atc-status-row { margin-top: 4px; }
.atc-status-label { font-size: 11px; color: var(--atc-ink-mute); text-transform: uppercase; letter-spacing: .06em; }
.atc-status-sub { font-size: 10.5px; color: var(--atc-ink-mute); }
.atc-status-pill { display: inline-block; padding: 3px 11px; font-size: 11px; font-weight: 700; border-radius: 999px; letter-spacing: .04em; }
.atc-status-pill[data-status="open"]        { color: #10D483; background: rgba(16,212,131,0.10); border: 1px solid rgba(16,212,131,0.32); }
.atc-status-pill[data-status="caution"],
.atc-status-pill[data-status="advisory"]    { color: #F5A623; background: rgba(245,166,35,0.10); border: 1px solid rgba(245,166,35,0.32); }
.atc-status-pill[data-status="high-caution"],
.atc-status-pill[data-status="closed"]      { color: #ff6b6b; background: rgba(255,107,107,0.10); border: 1px solid rgba(255,107,107,0.32); }

/* Cards list */
.atc-cards { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.atc-card { display: flex; align-items: center; gap: 10px; padding: 10px 13px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; cursor: pointer; transition: all .15s ease; }
.atc-card:hover { background: rgba(255,178,78,0.05); border-color: rgba(255,178,78,0.32); }
.atc-card-icon { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,178,78,0.10); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.atc-card-body { flex: 1; min-width: 0; }
.atc-card-body strong { display: block; font-size: 12.5px; color: var(--atc-ink); font-weight: 600; }
.atc-card-body span { display: block; font-size: 11px; color: var(--atc-ink-mute); margin-top: 1px; }
.atc-card-arrow { color: var(--atc-ink-mute); font-size: 16px; flex-shrink: 0; }
.atc-card:hover .atc-card-arrow { color: #ffd089; }

/* Meta grid */
.atc-metagrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; }
.atc-meta { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 9px; padding: 9px 11px; }
.atc-meta--full { grid-column: 1 / -1; }
.atc-meta span { display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--atc-ink-mute); }
.atc-meta strong { display: block; font-size: 12.5px; color: var(--atc-ink); margin-top: 2px; font-weight: 600; }
.atc-meta strong[data-region="North"]     { color: #38BDF8; }
.atc-meta strong[data-region="South"]     { color: #10D483; }
.atc-meta strong[data-region="East"]      { color: #F5A623; }
.atc-meta strong[data-region="West"]      { color: #FF6B35; }
.atc-meta strong[data-region="Central"]   { color: #8B5CF6; }
.atc-meta strong[data-region="Northeast"] { color: #FF8C00; }
.atc-meta strong[data-region="Islands"]   { color: #0FB8A0; }
.atc-tier-pill { display: inline-block; padding: 1.5px 7px; border-radius: 999px; font-size: 9.5px; letter-spacing: .04em; font-weight: 700; text-transform: uppercase; }
.atc-tier-pill[data-tier="Known"]   { color: #38BDF8; background: rgba(56,189,248,0.10); border: 1px solid rgba(56,189,248,0.32); }
.atc-tier-pill[data-tier="Unknown"] { color: #ffd089; background: rgba(255,178,78,0.10); border: 1px solid rgba(255,178,78,0.32); }
.atc-tier-pill[data-tier="Offbeat"] { color: #ff7ab6; background: rgba(255,122,182,0.10); border: 1px solid rgba(255,122,182,0.32); }

/* Safety */
.atc-safety { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 11px; padding: 12px 14px; margin: 0 0 14px; }
.atc-safety-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.atc-safety-label { font-size: 10.5px; color: var(--atc-ink-mute); text-transform: uppercase; letter-spacing: .06em; }
.atc-safety-badge { display: inline-flex; padding: 2.5px 9px; border-radius: 999px; font-size: 10.5px; letter-spacing: .06em; font-weight: 700; text-transform: uppercase; margin-left: auto; }
.atc-safety-badge[data-score="Safe"]        { color: #10D483; background: rgba(16,212,131,0.10); border: 1px solid rgba(16,212,131,0.32); }
.atc-safety-badge[data-score="Caution"]     { color: #F5A623; background: rgba(245,166,35,0.10); border: 1px solid rgba(245,166,35,0.32); }
.atc-safety-badge[data-score="High Risk"],
.atc-safety-badge[data-score="Restricted"]  { color: #ff6b6b; background: rgba(255,107,107,0.10); border: 1px solid rgba(255,107,107,0.32); }
.atc-safety-reason { font-size: 11.5px; color: var(--atc-ink); line-height: 1.45; margin: 0; }

/* Weather */
.atc-weather { background: rgba(56,189,248,0.04); border: 1px solid rgba(56,189,248,0.16); border-radius: 11px; padding: 10px 13px; margin: 0 0 14px; min-height: 70px; }
.atc-weather .weather-widget { font-family: inherit; }
.atc-weather .wx-current { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.atc-weather .wx-main { display: flex; align-items: center; gap: 6px; }
.atc-weather .wx-temp { font-size: 22px; font-weight: 700; color: var(--atc-ink); }
.atc-weather .wx-icon { font-size: 20px; }
.atc-weather .wx-details { display: flex; flex-direction: column; gap: 1px; font-size: 10.5px; color: var(--atc-ink-mute); text-align: right; }
.atc-weather .wx-details span:first-child { color: var(--atc-ink); font-weight: 500; }
.atc-weather .wx-forecast { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; padding-top: 6px; border-top: 1px dashed rgba(255,255,255,0.08); }
.atc-weather .wx-day { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 3px 1px; border-radius: 6px; background: rgba(255,255,255,0.02); font-size: 9.5px; }
.atc-weather .wx-day-name { color: var(--atc-ink-mute); font-size: 9px; text-transform: uppercase; letter-spacing: .04em; }
.atc-weather .wx-day-icon { font-size: 13px; }
.atc-weather .wx-day-hi { color: #ffd089; font-weight: 600; font-size: 10px; }
.atc-weather .wx-day-lo { color: var(--atc-ink-mute); font-size: 10px; }
.atc-weather .wx-source { margin: 6px 0 0; font-size: 9px; color: var(--atc-ink-mute); text-align: center; }
.atc-weather .weather-offline-msg,
.atc-weather-loading { font-size: 11px; color: var(--atc-ink-mute); display: flex; align-items: center; justify-content: center; min-height: 50px; }
.atc-weather-loading::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border: 2px solid rgba(56,189,248,0.25); border-top-color: rgba(56,189,248,0.85); border-radius: 50%; animation: atc-spin 0.8s linear infinite; }
@keyframes atc-spin { to { transform: rotate(360deg); } }

/* Route stops */
.atc-route { background: rgba(255,178,78,0.04); border: 1px solid rgba(255,178,78,0.18); border-radius: 11px; padding: 11px 14px; margin: 0 0 14px; }
.atc-route-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.atc-route-head strong { font-size: 12px; color: var(--atc-ink); }
.atc-route-head span { font-size: 10px; color: var(--atc-ink-mute); }
.atc-route-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.atc-route-li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--atc-ink); padding: 4px 0; cursor: pointer; }
.atc-route-li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--atc-amber); flex-shrink: 0; box-shadow: 0 0 6px var(--atc-gold-glow); }
.atc-route-li:hover { color: #ffd089; }

/* Section headers */
.atc-section-label {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--atc-ink-mute); margin: 14px 0 8px;
  display: flex; align-items: center; justify-content: space-between;
}
.atc-section-link { font-size: 10px; color: #ff8c00; text-decoration: none; text-transform: none; letter-spacing: 0; }
.atc-section-link:hover { text-decoration: underline; }
.atc-popchips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.atc-popchip { display: inline-flex; padding: 5px 10px; font-size: 11.5px; border-radius: 999px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: var(--atc-ink); cursor: pointer; transition: all .15s ease; }
.atc-popchip:hover { background: rgba(255,178,78,0.07); border-color: rgba(255,178,78,0.4); color: #ffd089; }
.atc-popchip.is-active { background: rgba(255,178,78,0.18); border-color: rgba(255,178,78,0.55); color: #ffe1b4; }

/* AI draft */
.atc-draft { background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.07); border-radius: 11px; padding: 11px 13px; margin: 0 0 14px; }
.atc-draft-head { font-size: 10px; color: var(--atc-ink-mute); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 4px; }
.atc-draft-body { font-size: 11.5px; line-height: 1.5; color: var(--atc-ink); margin: 0; }

/* Actions */
.atc-action { padding: 10px 13px; border-radius: 10px; border: 1px solid rgba(255,178,78,0.3); background: rgba(255,178,78,0.06); color: #ffd089; font-size: 12px; font-weight: 600; cursor: pointer; letter-spacing: .02em; transition: all .15s ease; }
.atc-action:hover { background: rgba(255,178,78,0.14); border-color: rgba(255,178,78,0.55); color: #ffe1b4; }
.atc-action--plan { width: 100%; padding: 12px 14px; font-size: 13px; font-weight: 700; background: linear-gradient(135deg, #ffc878 0%, #ff8c00 100%); color: #0a121f; border: 0; border-radius: 11px; cursor: pointer; letter-spacing: .02em; margin-top: 4px; }
.atc-action--plan:hover { filter: brightness(1.05); }

/* ═══════════════ BOTTOM — Latest Updates ═══════════════ */
.atc-updates { padding: 12px 16px 14px; flex-shrink: 0; }
.atc-updates[hidden] { display: none; }
.atc-updates-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.atc-updates-title { display: flex; align-items: baseline; gap: 8px; }
.atc-updates-title strong { font-size: 13px; color: var(--atc-ink); }
.atc-updates-for { font-size: 12px; color: var(--atc-ink-mute); }
.atc-updates-for .atc-updates-region { color: #ffd089; font-weight: 600; }
.atc-updates-count { font-size: 11px; color: var(--atc-ink-mute); }
.atc-updates-tools { display: inline-flex; align-items: center; gap: 6px; }
.atc-link { background: transparent; border: 0; color: #ffd089; font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 4px 6px; }
.atc-icon-btn { width: 28px; height: 28px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; color: var(--atc-ink); cursor: pointer; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; transition: all .15s ease; }
.atc-icon-btn:hover { color: #ffd089; border-color: rgba(255,178,78,0.4); }
.atc-updates-row { display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: rgba(197,160,89,0.35) transparent; }
.atc-updates-row::-webkit-scrollbar { height: 6px; }
.atc-updates-row::-webkit-scrollbar-thumb { background: rgba(197,160,89,0.3); border-radius: 3px; }
.atc-updates-empty { font-size: 12px; color: var(--atc-ink-mute); padding: 8px 4px; }
.atc-update { flex: 0 0 268px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 11px; padding: 11px 13px; display: flex; flex-direction: column; gap: 4px; min-height: 100px; }
.atc-update-head { display: flex; align-items: center; gap: 6px; }
.atc-update-icon { font-size: 14px; }
.atc-update-cat { font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--atc-ink-mute); }
.atc-update-pill { margin-left: auto; padding: 2px 7px; border-radius: 999px; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.atc-update-pill[data-status="open"]    { color: #10D483; background: rgba(16,212,131,0.10); border: 1px solid rgba(16,212,131,0.32); }
.atc-update-pill[data-status="warning"],
.atc-update-pill[data-status="closed"] { color: #ff6b6b; background: rgba(255,107,107,0.10); border: 1px solid rgba(255,107,107,0.32); }
.atc-update-pill[data-status="advisory"]{ color: #F5A623; background: rgba(245,166,35,0.10); border: 1px solid rgba(245,166,35,0.32); }
.atc-update-pill[data-status="info"],
.atc-update-pill[data-status="partial"] { color: #38BDF8; background: rgba(56,189,248,0.10); border: 1px solid rgba(56,189,248,0.32); }
.atc-update-title { font-size: 12.5px; font-weight: 700; color: var(--atc-ink); margin: 2px 0; line-height: 1.3; }
.atc-update-summary { font-size: 11px; line-height: 1.45; color: var(--atc-ink-mute); margin: 0; }
.atc-update-foot { margin-top: auto; display: flex; gap: 6px; font-size: 10px; color: var(--atc-ink-mute); }

/* ═══════════════ Responsive ═══════════════ */
@media (max-width: 1400px) {
  .atc-controls { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1280px) {
  .atc { padding: 16px 18px calc(var(--disclaimer-h, 44px) + 4px); gap: 16px; }
  .atc-workspace { grid-template-columns: 1fr minmax(260px, 340px); gap: 16px; }
  .atc-controls { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .atc-controls-bar { padding: 16px 18px; }
}
@media (max-width: 1100px) {
  .atc { padding: 14px 14px calc(var(--disclaimer-h, 44px) + 4px); gap: 14px; }
  .atc-controls { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .atc-workspace {
    grid-template-columns: 1fr;
    grid-template-rows: 55vw auto;
    min-height: auto;
    gap: 14px;
  }
  .atc-detail { max-height: 60vh; }
  .atc-mapcol { min-height: 340px; }
}

/* ── Travel Insights cards ── */
.atc-insights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.atc-insight-card {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 11px;
  padding: 10px 11px;
}
.atc-insight-icon { font-size: 20px; flex-shrink: 0; }
.atc-insight-title {
  font-size: 10px;
  font-weight: 600;
  color: var(--atc-ink-mute);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 2px;
}
.atc-insight-sub {
  font-size: 12px;
  font-weight: 700;
  color: var(--atc-ink);
  line-height: 1.2;
}

/* ── Top Destinations cards ── */
.atc-dest-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.atc-dest-card {
  display: flex;
  align-items: center;
  gap: 11px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 11px;
  padding: 8px 12px 8px 8px;
  transition: background .15s, border-color .15s;
}
.atc-dest-card:hover {
  background: rgba(255,178,78,0.06);
  border-color: rgba(255,178,78,0.25);
}
.atc-dest-thumb {
  width: 44px; height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.atc-dest-thumb-icon { font-size: 18px; opacity: 0.7; }
.atc-dest-info { flex: 1; min-width: 0; }
.atc-dest-name {
  font-size: 13px; font-weight: 600;
  color: var(--atc-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.atc-dest-tag {
  font-size: 11px; color: var(--atc-ink-mute); margin-top: 2px;
}
.atc-dest-rating {
  font-size: 12px; font-weight: 700;
  color: #ffc878; flex-shrink: 0;
}

/* ── Selected state glow — stronger, like the reference lime glow ── */
.atc-svg-state.is-hover-active {
  filter: drop-shadow(0 0 12px rgba(255, 220, 50, 0.7));
}
@media (max-width: 768px) {
  .atc { padding: 10px 10px calc(var(--disclaimer-h, 44px) + 4px); gap: 10px; }
  .atc-controls-bar { padding: 12px 12px 14px; }
  .atc-controls { grid-template-columns: 1fr 1fr; gap: 8px; }
  .atc-workspace { grid-template-rows: auto 70vw auto; gap: 10px; }
  .atc-side   { max-height: none; }
  .atc-detail { max-height: 80vh; }
  .atc-mapcol { min-height: 280px; }
}
@media (max-width: 480px) {
  .atc-controls { grid-template-columns: 1fr; }
}
