/* world-location.css — Location detail page styles */

/* ---------------------------------------------------------------------------
 * Page header
 * ------------------------------------------------------------------------- */
.page-header--location { padding: 2rem 1.5rem 1.25rem; }
.page-header--location h1 { margin-bottom: 0.25rem; }
.page-header--secret h1 { color: var(--crimson); }

.location-header__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-family: 'Inconsolata', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.location-header__type { color: var(--gold); }

.location-header__fantasy-name {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.secret-badge {
  background: rgba(122,31,31,0.15);
  color: var(--crimson);
  border: 1px solid rgba(122,31,31,0.3);
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 9px;
  letter-spacing: 0.2em;
}

/* ---------------------------------------------------------------------------
 * Stats row & badges
 * ------------------------------------------------------------------------- */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0;
}

.stat-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-family: 'Inconsolata', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(184,137,42,0.12);
  color: var(--gold);
  border: 1px solid rgba(184,137,42,0.25);
  white-space: nowrap;
}

.stat-badge--type { background: rgba(44,107,180,0.12); color: var(--steel); border-color: rgba(44,107,180,0.25); }
.stat-badge--elevation { background: rgba(154,142,122,0.12); color: var(--muted); border-color: rgba(154,142,122,0.25); }
.stat-badge--region a { color: inherit; text-decoration: none; }
.stat-badge--region a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------------
 * Danger pips
 * ------------------------------------------------------------------------- */
.danger-pips {
  font-size: 13px;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}
.pips-filled { color: var(--crimson); }
.pips-empty  { color: var(--muted); opacity: 0.4; }

/* ---------------------------------------------------------------------------
 * Mini-map
 * ------------------------------------------------------------------------- */
.mini-map {
  height: 300px;
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 4px;
  margin-bottom: 1.5rem;
  background: var(--surface);
}

.map-attribution {
  font-family: 'Inconsolata', monospace;
  font-size: 10px;
  color: var(--muted);
  text-align: right;
  margin-top: 3px;
  margin-bottom: 0.75rem;
}
.map-attribution a { color: var(--muted); }
.map-attribution a:hover { color: var(--gold); }

.mini-map--no-coords {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.location-map-panel { margin-bottom: 1.5rem; }

/* ---------------------------------------------------------------------------
 * Body layout
 * ------------------------------------------------------------------------- */
.location-body { max-width: 860px; }

.location-description {
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--muted);
  border-left: 3px solid var(--rule);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

.location-prose { margin-bottom: 2rem; }

/* ---------------------------------------------------------------------------
 * Faction table
 * ------------------------------------------------------------------------- */
.faction-table { margin-bottom: 1.5rem; }
.faction-table__heading {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.faction-table table { width: 100%; border-collapse: collapse; }
.faction-table td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
}
.faction-table tr:last-child td { border-bottom: none; }

/* ---------------------------------------------------------------------------
 * Resources
 * ------------------------------------------------------------------------- */
.location-resources { margin-bottom: 1.5rem; }
.resources-heading {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.resources-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.resource-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--fg);
}

/* ---------------------------------------------------------------------------
 * Cross-reference stub
 * ------------------------------------------------------------------------- */
.xref-stub {
  padding: 0.6rem 1rem;
  background: var(--surface);
  border: 1px dashed var(--rule);
  border-radius: 4px;
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.85rem;
  margin-top: 1.5rem;
}
.xref-stub__label { color: var(--muted); font-family: 'Inconsolata', monospace; letter-spacing: 0.1em; }
.xref-stub__note  { color: var(--muted); font-style: italic; }
