.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  font-size: 11px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}

.back-link { color: var(--text-muted); text-decoration: none; }
.back-link:hover { color: var(--amber); }

.map-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .map-layout { grid-template-columns: 1fr; }
}

#map {
  height: 560px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  min-height: 560px;
}

.panel-inner { padding: 2rem 1.75rem; display: flex; flex-direction: column; height: 100%; }
.panel--empty .panel-inner { align-items: center; justify-content: center; text-align: center; gap: 0.5rem; }

.panel-hint { font-family: 'Fraunces', serif; font-size: 18px; color: var(--paper); margin: 0; }
.panel-hint-sub { font-size: 13px; color: var(--text-muted); margin: 0; max-width: 26ch; }

.town-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 0.3rem;
}

.town-name { font-size: 28px; color: var(--paper); }

.town-community {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 3px 10px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
}

.town-summary, .town-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  margin: 1rem 0 0;
}

.video-slot {
  margin-top: 1.25rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.follow-link {
  margin-top: 1.25rem;
  display: inline-flex;
  width: fit-content;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid var(--amber-dim);
  padding-bottom: 2px;
}

.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  background: var(--panel-raised);
  color: var(--text);
}

.leaflet-container { background: #0f1926 !important; }

.leaflet-tile { filter: hue-rotate(-8deg) saturate(1.15); }

.town-pin-wrap {
  position: relative;
  width: 28px;
  height: 36px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.55));
  transition: transform 0.15s ease;
  cursor: pointer;
}
.town-pin-wrap:hover { transform: translateY(-3px) scale(1.08); }

.town-pin-wrap svg { width: 100%; height: 100%; display: block; }


/* Warm the land toward orange while keeping the water bluish.
   Tile-based maps can't color land and water separately, so this is a
   whole-image tint tuned to push the cream land orange. */
.leaflet-tile {
  filter: saturate(1.5) sepia(0.28) hue-rotate(-12deg) brightness(1.02) contrast(1.05);
}
