.n-panel--map {
  padding: 0;
  overflow: hidden;
  border-radius: var(--n-radius-lg);
}

.n-map-layout {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 300px);
}

@media (max-width: 800px) {
  .n-map-layout { grid-template-columns: 1fr; }
  .n-map-sidebar { border-top: 1px solid var(--border, rgba(255,255,255,0.08)); border-left: none; }
}

.n-map-main { position: relative; }

.n-map {
  height: 420px;
  width: 100%;
  border-radius: 0;
  z-index: 0;
}

@media (max-width: 800px) { .n-map { height: 300px; } }

.n-map-hint {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.82);
  color: #f1f5f9;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--n-radius-md);
  padding: 0.45rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  pointer-events: none;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: opacity 0.3s ease;
}

.theme-light .n-map-hint {
  background: rgba(15, 23, 42, 0.88);
  color: #f8fafc;
}

.n-map-hint.hidden { opacity: 0; }

.n-map-sidebar {
  padding: 1.5rem 1.35rem;
  border-left: 1px solid var(--n-border-subtle);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  max-height: 420px;
  background: rgba(0, 0, 0, 0.28);
}

.theme-light .n-map-sidebar {
  background: #f8fafc;
  border-left-color: rgba(15, 23, 42, 0.08);
}

.n-site-default {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.n-site-default-icon {
  font-size: 1.25rem;
  opacity: 0.45;
  line-height: 1;
}

.n-site-default-text {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted, #64748b);
  line-height: 1.55;
}

.n-site-default-hints {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  list-style: disc;
  font-size: 0.72rem;
  color: var(--text-muted, #64748b);
  line-height: 1.7;
}

.n-site-network-summary {
  width: 100%;
  margin-top: 0.25rem;
}

.n-site-viewing-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent, #22c55e);
  margin-bottom: 0.2rem;
}

.n-site-summary {
  margin: 0.4rem 0 0.2rem;
  font-size: 0.77rem;
  line-height: 1.55;
  color: var(--text-secondary, #94a3b8);
  font-style: italic;
}
.theme-light .n-site-summary { color: #475569; }

.n-site-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.n-site-name {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary, #f1f5f9);
  line-height: 1.2;
}

.theme-light .n-site-name { color: #1e293b; }

.n-site-source-tag {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--bg-surface, rgba(255,255,255,0.08));
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  color: var(--text-muted, #94a3b8);
  white-space: nowrap;
}

.theme-light .n-site-source-tag { background: #f1f5f9; }

.n-site-coords {
  font-size: 0.7rem;
  color: var(--text-muted, #64748b);
  font-family: monospace;
}

.n-site-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.n-site-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.78rem;
}

.n-site-metric-row span:first-child { color: var(--text-muted, #64748b); }
.n-site-metric-row span:last-child  { font-weight: 700; color: var(--text-primary, #f1f5f9); }
.theme-light .n-site-metric-row span:last-child { color: #1e293b; }

.n-site-age {
  margin: 0.5rem 0 0;
  font-size: 0.68rem;
  color: var(--text-muted, #64748b);
  border-top: 1px solid var(--border, rgba(255,255,255,0.06));
  padding-top: 0.4rem;
}

/* Leaflet marker color encoding */
.n-marker-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
}

/* ── CONTEXT PANEL ──────────────────────────────────────────── */
.n-panel--context {
  padding: 1.85rem 2rem;
}

/* Collapsible science-background variant (folded into Pandora section). */
.n-context-details {
  padding: 0;
  margin-bottom: 1.5rem;
}

.n-context-details[open] {
  padding: 1.25rem 1.5rem;
}

.n-context-summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-muted, #64748b);
  list-style: none;
  user-select: none;
  transition: background-color 0.15s;
}

.n-context-summary:hover {
  background: rgba(148, 163, 184, 0.08);
}

.n-context-summary::-webkit-details-marker { display: none; }
.n-context-summary::marker { display: none; }

.n-context-summary::after {
  content: '▸';
  margin-left: auto;
  font-size: 0.9rem;
  transition: transform 0.15s;
  color: var(--text-muted, #94a3b8);
  opacity: 0.7;
}

.n-context-details[open] .n-context-summary::after {
  transform: rotate(90deg);
}

.n-context-summary strong {
  color: var(--text-primary, #0f172a);
}

/* Dark-theme override: readable on the dark panel background. */
body:not(.theme-light) .n-context-summary {
  color: rgba(226, 232, 240, 0.78);
}
body:not(.theme-light) .n-context-summary strong {
  color: #f8fafc;
}
body:not(.theme-light) .n-context-summary:hover {
  background: rgba(255, 255, 255, 0.04);
}

.n-context-summary-icon {
  font-size: 1.1rem;
}

.n-context-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 700px) {
  .n-context-grid { grid-template-columns: 1fr; }
  .n-context-divider { display: none; }
}

.n-context-divider { display: none; }

.n-context-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.n-context-icon {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 3px;
  opacity: 0.55;
}

.n-context-title {
  margin: 0 0 0.55rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary, #f1f5f9);
}

.theme-light .n-context-title { color: #0f172a; }

.n-context-desc {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted, #64748b);
  line-height: 1.65;
}

/* ── CREST COLLAPSED ─────────────────────────────────────────── */
