/* Map and timeline. Colours come from the theme where possible so a palette
   change in theme.json carries through; the fallbacks match the mockup. */

.wwr-map-wrap { margin: 0 0 1.5rem; }

.wwr-map {
	border-radius: 14px;
	border: 1px solid var(--wp--preset--color--line, #e3ddd4);
	z-index: 1;                 /* keep Leaflet panes under sticky headers */
}

.wwr-map-key {
	font-size: 13px;
	color: var(--wp--preset--color--muted, #6b7280);
	margin: 12px 0 0;
}

.wwr-pop b { font-size: 1.05rem; }
.wwr-pop-when { color: #6b7280; font-size: 12.5px; }

.wwr-empty { color: #6b7280; }

/* ---------- timeline ---------- */

.wwr-tl-scroll {
	overflow-x: auto;
	padding: 8px 0 26px;
	-webkit-overflow-scrolling: touch;
}

.wwr-tl {
	display: flex;
	position: relative;
	min-width: min-content;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* The rail sits behind the dots; both are positioned against each item's own
   top padding, so they can't drift apart when the card grows. */
.wwr-tl::before {
	content: "";
	position: absolute;
	top: 28px;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--wp--preset--color--line, #e3ddd4);
}

.wwr-tl-item {
	position: relative;
	flex: 0 0 178px;
	padding: 40px 12px 0;
	margin: 0;
}

.wwr-tl-dot {
	position: absolute;
	top: 22px;
	left: 50%;
	transform: translateX(-50%);
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent, #c2622d);
	border: 3px solid var(--wp--preset--color--base, #fbf9f6);
	z-index: 2;
}

.wwr-tl-item.is-park .wwr-tl-dot {
	background: var(--wp--preset--color--contrast, #0e1c3d);
}

.wwr-tl-year {
	position: absolute;
	top: 0;
	left: 12px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted, #6b7280);
}

.wwr-tl-card {
	background: #fff;
	border: 1px solid var(--wp--preset--color--line, #e3ddd4);
	border-radius: 11px;
	padding: 13px 14px;
	min-height: 104px;
}

.wwr-tl-card a {
	color: var(--wp--preset--color--contrast, #0e1c3d);
	font-family: var(--wp--preset--font-family--display, Georgia, serif);
	font-size: 1.02rem;
	line-height: 1.2;
	display: block;
	text-decoration: none;
}

.wwr-tl-card a:hover { text-decoration: underline; }

.wwr-tl-when {
	display: block;
	font-size: 12px;
	color: var(--wp--preset--color--muted, #6b7280);
	margin-top: 5px;
}

.wwr-tl-hint {
	font-size: 13px;
	color: var(--wp--preset--color--muted, #6b7280);
	margin: -14px 0 0;
}

@media (prefers-reduced-motion: no-preference) {
	.wwr-tl-scroll { scroll-behavior: smooth; }
}
