/* ==========================================================================
   Rites of Passage — Realm Map (public reference map)
   Static SVG-based fantasy cartography. No interactive elements.
   ========================================================================== */

.realm-map__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .realm-map__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
}

.realm-map__figure {
  margin: 0;
  width: 100%;
}

.realm-map__svg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rop-steel-border, #3a3f44);
  border-radius: 8px;
  box-shadow:
    0 0 0 3px #090b0d,
    0 0 0 4px rgba(90, 128, 176, 0.22),
    0 0 0 6px #111417,
    0 8px 28px rgba(0, 0, 0, 0.78),
    inset 0 0 0 1px rgba(90, 128, 176, 0.08),
    inset 0 0 18px rgba(0, 0, 0, 0.5);
}

.realm-map__legend {
  padding: 0;
}

.realm-map__legend-title {
  font-family: var(--rop-font-display, Georgia, serif);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rop-text-muted, #8a8a8a);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(90, 128, 176, 0.15);
}

.realm-map__legend-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.realm-map__legend-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #c8c8c8;
}

.realm-map__legend-swatch {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  margin-top: 2px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.realm-map__legend-swatch--valorian {
  background: #2d3a2e;
  border-color: #4a6b4e;
}

.realm-map__legend-swatch--mordrath {
  background: #3a2d2d;
  border-color: #6b4a4a;
}

.realm-map__legend-swatch--marches {
  background: #33302a;
  border-color: #5a5248;
}

.realm-map__legend-swatch--mountain {
  background: linear-gradient(135deg, #4a5a4e 0%, #2a3a2e 100%);
  border-color: #6b7a6e;
}

.realm-map__legend-swatch--forest {
  background: #2a4a2e;
  border-color: #3a6b42;
}

.realm-map__legend-swatch--river {
  background: #2a3a4a;
  border-color: #4a6b8a;
}

.realm-map__legend-swatch--capital {
  background: radial-gradient(circle, #c8a85b 0%, #8a6b3a 100%);
  border-color: #f0d878;
}

.realm-map__note {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(90, 128, 176, 0.1);
  font-size: 0.85rem;
  color: var(--rop-text-muted, #8a8a8a);
  font-style: italic;
}
