/* =====================================================
   locations.css  —  full-viewport locations map
   ===================================================== */

/* Stack header, map, footer vertically filling the full viewport */
body.locations-page {
	display: flex;
	flex-direction: column;
	height: 100vh;
	overflow: hidden;
}

/* ── Map + sidebar row ───────────────────────────────── */
#map-area {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: row;
}

#map {
	flex: 3;
	min-height: 0;
}

#loc-sidebar {
	flex: 0 0 25%;
	max-width: 25%;
	min-height: 0;
	overflow-y: auto;
	background: var(--color-surface);
	border-left: 1px solid var(--color-border);
	padding: var(--space-md);
	box-sizing: border-box;
	font-size: var(--font-size-lg);
	line-height: 1.45;
}

.loc-sidebar-hint {
	font-size: var(--font-size-lg);
	color: var(--color-dim);
	margin: 0;
}

/* ── Placename labels ─────────────────────────────────────
   Implemented as Leaflet permanent tooltips (equivalent to
   the archived leaflet/leaflet.label plugin, now in core).
   ────────────────────────────────────────────────────── */
.leaflet-tooltip.loc-label {
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 1px 4px;
	font-size: 11px;
	/* intentionally small — no token this size */
	font-weight: 600;
	/* color is set per-marker via JS (hue-derived from marker fill) */
	white-space: nowrap;
}

.loc-wd-link {
	display: inline-block;
	vertical-align: middle;
	margin-left: var(--space-xs);
}

/* ── Location sidebar content ────────────────────────── */
.loc-content h2 {
	margin: 0 0 var(--space-sm);
	font-size: var(--font-size-xl);
	font-weight: 700;
	border-bottom: 1px solid var(--color-border);
	padding-bottom: var(--space-sm);
	line-height: 1.3;
}

.loc-desc {
	font-size: var(--font-size-lg);
	color: var(--color-muted);
	margin: 0 0 var(--space-sm);
}

.loc-content section {
	margin-top: var(--space-sm);
}

.loc-content h4 {
	margin: 0 0 var(--space-xs);
	font-size: var(--font-size-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--color-dim);
}

.loc-content ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.loc-content li {
	display: flex;
	flex-direction: column;
	padding: var(--space-xs) 0;
	border-bottom: 1px solid var(--color-border);
}

.loc-content li:last-child {
	border-bottom: none;
}

.loc-person-name {
	font-size: var(--font-size-lg);
	font-weight: 500;
	color: var(--color-text);
}

.loc-person-meta {
	font-size: var(--font-size-lg);
	color: var(--color-muted);
	margin-top: 2px;
}

.loc-content-empty {
	font-size: var(--font-size-lg);
	color: var(--color-dim);
	margin: var(--space-sm) 0 0;
}

/* ── PoE grouped stints ─────────────────────────────── */
.loc-poe-group {
	border-bottom: 1px solid var(--color-border);
	padding: var(--space-xs) 0;
}

.loc-poe-group:last-child {
	border-bottom: none;
}

.loc-poe-stints {
	list-style: none;
	margin: var(--space-xs) 0 0 0;
	padding: 0 0 0 12px;
}

.loc-poe-stints li {
	border: none;
	padding: 1px 0;
	font-size: var(--font-size-base);
	color: var(--color-muted);
	line-height: 1.4;
}