.trc-route {
	--trc-primary: #1f5d46;
	--trc-primary-dark: #163f32;
	--trc-accent: #c56a2d;
	--trc-ink: #1d2925;
	--trc-muted: #64716c;
	--trc-surface: #f4f7f5;
	--trc-border: #dce5e0;
	--trc-radius: 14px;
	--trc-shadow: 0 14px 36px rgba(22, 63, 50, 0.10);
	color: var(--trc-ink);
	background: #fff;
}

.trc-route *,
.trc-route *::before,
.trc-route *::after { box-sizing: border-box; }

.trc-route__container {
	width: min(1180px, calc(100% - 40px));
	margin-inline: auto;
}


.trc-route__hero {
	padding-block: clamp(28px, 4vw, 52px);
	background: linear-gradient(180deg, #f7f8f5 0%, #ffffff 100%);
	color: var(--trc-ink);
}

.trc-route__hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
	gap: clamp(16px, 2vw, 24px);
	align-items: stretch;
}

.trc-route__hero-info,
.trc-route__hero-media {
	min-height: clamp(350px, 33vw, 430px);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: var(--trc-shadow);
}

.trc-route__hero-info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(30px, 4vw, 50px);
	background:
		radial-gradient(circle at 12% 8%, rgba(197, 106, 45, 0.20), transparent 28%),
		linear-gradient(145deg, #173f33 0%, #102f27 100%);
	color: #fff;
}

.trc-route__hero-media {
	position: relative;
	background: #dce5e0;
}

.trc-route__hero-media--placeholder {
	background:
		radial-gradient(circle at 72% 22%, rgba(197, 106, 45, 0.30), transparent 26%),
		linear-gradient(135deg, #dce8e1, #bdd0c5);
}

.trc-route__hero-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.trc-route__hero-placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	min-height: inherit;
}

.trc-route__hero-placeholder-mark {
	display: grid;
	place-items: center;
	width: 84px;
	height: 84px;
	border: 2px solid rgba(23, 63, 51, 0.18);
	border-radius: 50%;
	color: var(--trc-primary-dark);
	font-size: 2.4rem;
	font-weight: 700;
}

.trc-route__hero--plain .trc-route__hero-info {
	background:
		radial-gradient(circle at 88% 14%, rgba(197, 106, 45, 0.36), transparent 34%),
		linear-gradient(145deg, #173f33 0%, #1f5d46 100%);
}

.trc-route__eyebrow,
.trc-route__section-kicker {
	margin: 0 0 9px;
	font-size: 0.78rem;
	font-weight: 750;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.trc-route__eyebrow { color: #f2c9a8; }

.trc-route__title {
	max-width: 760px;
	margin: 0;
	color: #fff;
	font-size: clamp(1.75rem, 2.65vw, 2.55rem);
	font-weight: 760;
	line-height: 1.1;
	letter-spacing: -0.025em;
}

.trc-route__summary {
	display: -webkit-box;
	max-width: 680px;
	margin: 16px 0 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	color: rgba(255, 255, 255, 0.88);
	font-size: clamp(0.95rem, 1.15vw, 1.05rem);
	line-height: 1.58;
}

.trc-route__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.trc-route__badge {
	display: inline-flex;
	align-items: center;
	min-height: 31px;
	padding: 5px 11px;
	border: 1px solid rgba(255, 255, 255, 0.34);
	border-radius: 999px;
	background: rgba(13, 44, 33, 0.46);
	backdrop-filter: blur(6px);
	color: #fff;
	font-size: 0.82rem;
	font-weight: 650;
}

.trc-route__badge--difficulty { border-color: rgba(242, 201, 168, 0.75); background: rgba(197, 106, 45, 0.78); }
.trc-route__section { margin-block: clamp(58px, 7vw, 88px); }

.trc-route__section-heading h2 {
	margin: 0;
	color: var(--trc-ink);
	font-size: clamp(1.7rem, 3vw, 2.35rem);
	line-height: 1.16;
}

.trc-route__section-kicker { color: var(--trc-accent); }
.trc-route__metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 28px 0 0; }

.trc-route__metric {
	position: relative;
	min-height: 118px;
	padding: 22px 20px 18px;
	overflow: hidden;
	border: 1px solid var(--trc-border);
	border-radius: var(--trc-radius);
	background: var(--trc-surface);
}

.trc-route__metric::before { position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--trc-accent); content: ""; }
.trc-route__metric dt { margin-bottom: 9px; color: var(--trc-muted); font-size: 0.8rem; font-weight: 650; line-height: 1.35; text-transform: uppercase; }
.trc-route__metric dd { margin: 0; color: var(--trc-primary-dark); font-size: 1.28rem; font-weight: 760; line-height: 1.22; }

.trc-route__map-section {
	padding: clamp(24px, 4vw, 42px);
	border-radius: calc(var(--trc-radius) + 6px);
	background: var(--trc-primary-dark);
	box-shadow: var(--trc-shadow);
}

.trc-route__map-section .trc-route__section-heading h2 { color: #fff; }
.trc-route__map-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }

.trc-route__download {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 17px;
	border: 2px solid #fff;
	border-radius: 999px;
	color: #fff;
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
	transition: background 160ms ease, color 160ms ease;
}

.trc-route__download:hover,
.trc-route__download:focus-visible { background: #fff; color: var(--trc-primary-dark); text-decoration: none; }

.trc-route-map {
	width: 100%;
	height: clamp(390px, 55vw, 610px);
	border: 5px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--trc-radius);
	background: #dce7e1;
}

.trc-route-map:focus-visible { outline: 3px solid #f2c9a8; outline-offset: 3px; }
.trc-route-map__status,
.trc-route-map__notice { margin: 13px 0 0; color: rgba(255, 255, 255, 0.82); font-size: 0.9rem; }
.trc-route-map__status.is-error { color: #ffd5cf; }
.trc-route .leaflet-control-attribution { font-size: 10px; }

.trc-route__content-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(310px, 0.85fr);
	align-items: start;
	gap: clamp(38px, 6vw, 76px);
}

.trc-route__content-grid > :only-child { grid-column: 1 / -1; }
.trc-route__description,
.trc-route__practical { margin-top: 0; }

.trc-route__prose { margin-top: 26px; color: #34413c; font-size: 1.05rem; line-height: 1.8; }
.trc-route__prose > *:first-child { margin-top: 0; }
.trc-route__prose img { max-width: 100%; height: auto; border-radius: 10px; }

.trc-route__practical {
	padding: 28px;
	border: 1px solid var(--trc-border);
	border-radius: var(--trc-radius);
	background: var(--trc-surface);
}

.trc-route__practical .trc-route__section-heading h2 { font-size: 1.65rem; }
.trc-route__practical-list,
.trc-route__verification { margin: 24px 0 0; }
.trc-route__practical-item { padding-block: 16px; border-top: 1px solid var(--trc-border); }
.trc-route__practical-item:first-child { padding-top: 0; border-top: 0; }
.trc-route__practical-item dt,
.trc-route__verification dt { color: var(--trc-primary-dark); font-size: 0.88rem; font-weight: 740; }
.trc-route__practical-item dd { margin: 6px 0 0; color: #4e5c56; line-height: 1.58; }
.trc-route__verification { padding-top: 19px; border-top: 2px solid var(--trc-border); }
.trc-route__verification > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding-block: 6px; }
.trc-route__verification dd { margin: 0; color: var(--trc-muted); text-align: right; }

@media (max-width: 980px) {
	.trc-route__hero-grid { grid-template-columns: 1fr; }
	.trc-route__hero-media { order: -1; min-height: clamp(260px, 52vw, 390px); }
	.trc-route__hero-info { min-height: 0; }
	.trc-route__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.trc-route__content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
	.trc-route__container { width: min(100% - 28px, 1180px); }
	.trc-route__hero { padding-block: 18px 26px; }
	.trc-route__hero-grid { gap: 12px; }
	.trc-route__hero-info,
	.trc-route__hero-media { border-radius: 15px; }
	.trc-route__hero-media { min-height: 235px; }
	.trc-route__hero-info { padding: 26px 22px; }
	.trc-route__title { font-size: clamp(1.65rem, 7.2vw, 2.15rem); }
	.trc-route__summary { font-size: 0.96rem; line-height: 1.5; -webkit-line-clamp: 5; }
	.trc-route__metrics { grid-template-columns: 1fr; }
	.trc-route__metric { min-height: 0; }
	.trc-route__map-section { margin-inline: -14px; border-radius: 0; }
	.trc-route__map-heading { align-items: flex-start; flex-direction: column; }
	.trc-route-map { height: 430px; }
	.trc-route__practical { padding: 22px; }
	.trc-route__verification > div { grid-template-columns: 1fr; gap: 2px; }
	.trc-route__verification dd { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
	.trc-route__download { transition: none; }
}

/* GPX elevation profile — rendered from the same GeoJSON response as the map. */
.trc-route-elevation {
	margin-top: 22px;
	padding: 20px 20px 14px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: var(--trc-radius);
	background: rgba(255, 255, 255, 0.07);
}

.trc-route-elevation[hidden] { display: none !important; }
.trc-route-elevation__heading { margin-bottom: 10px; }
.trc-route-elevation__heading h3 {
	margin: 0;
	color: #fff;
	font-size: clamp(1.08rem, 2vw, 1.35rem);
	font-weight: 720;
}

.trc-route-elevation__chart {
	position: relative;
	width: 100%;
	min-height: 220px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.96);
	overflow: hidden;
	touch-action: pan-y;
}

.trc-route-elevation__svg {
	display: block;
	width: 100%;
	height: 250px;
}

.trc-route-elevation__grid line {
	stroke: #dfe6e2;
	stroke-width: 1;
	vector-effect: non-scaling-stroke;
}

.trc-route-elevation__grid text {
	fill: #66746e;
	font-size: 15px;
	font-family: inherit;
}

.trc-route-elevation__area { fill: rgba(31, 93, 70, 0.16); }
.trc-route-elevation__line {
	fill: none;
	stroke: var(--trc-accent);
	stroke-width: 4;
	stroke-linecap: round;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

.trc-route-elevation__guide {
	stroke: rgba(23, 57, 47, 0.46);
	stroke-width: 1;
	stroke-dasharray: 5 4;
	vector-effect: non-scaling-stroke;
}

.trc-route-elevation__dot {
	fill: var(--trc-accent);
	stroke: #fff;
	stroke-width: 3;
	vector-effect: non-scaling-stroke;
}

.trc-route-elevation__hit { cursor: crosshair; }
.trc-route-elevation__tooltip {
	position: absolute;
	z-index: 2;
	transform: translate(-50%, calc(-100% - 10px));
	padding: 6px 9px;
	border-radius: 7px;
	background: var(--trc-primary-dark);
	box-shadow: 0 5px 16px rgba(0, 0, 0, 0.18);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	pointer-events: none;
}

.trc-route-elevation__empty {
	margin: 4px 0 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.9rem;
}

@media (max-width: 680px) {
	.trc-route-elevation { padding: 16px 10px 10px; }
	.trc-route-elevation__chart { min-height: 190px; }
	.trc-route-elevation__svg { height: 220px; }
	.trc-route-elevation__grid text { font-size: 14px; }
}

