/* ==========================================================================
   Costa Rica Transit — design system
   ========================================================================== */

@font-face {
	font-family: "Bricolage";
	src: url("../fonts/bricolage-latin-wght.woff2") format("woff2-variations"), url("../fonts/bricolage-latin-wght.woff2") format("woff2");
	font-weight: 200 800;
	font-display: swap;
}
@font-face {
	font-family: "Inter Fallback";
	src: local("Arial");
	ascent-override: 90.49%;
	descent-override: 22.56%;
	line-gap-override: 0%;
	size-adjust: 107.06%;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-latin-wght.woff2") format("woff2-variations"), url("../fonts/inter-latin-wght.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}

:root {
	--ink: #10201b;
	--ink-2: #34453f;
	--muted: #66766f;
	--bg: #fbfaf5;
	--surface: #ffffff;
	--sand: #f3efe3;
	--line: #e6e1d3;
	--forest: #0d4a3a;
	--forest-2: #13664f;
	--jungle: #082a21;
	--leaf: #1f9d6c;
	--sun: #f5a524;
	--sunset: #ee6a2f;
	--sky: #2386ad;
	--sedan: #16a34a;
	--suv: #d97706;
	--x4: #dc2626;
	--radius: 18px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(16, 32, 27, .05), 0 8px 24px -8px rgba(16, 32, 27, .12);
	--shadow-lg: 0 2px 4px rgba(16, 32, 27, .06), 0 24px 48px -16px rgba(16, 32, 27, .22);
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--f-display: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-body: "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 17px/1.65 var(--f-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--forest-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sunset); }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 750; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1.1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.screen-reader-text, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; background: var(--sun); color: var(--ink); padding: 10px 16px; border-radius: 8px; clip: auto; width: auto; height: auto; }
.icon { flex: none; vertical-align: middle; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 780px; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--tight { padding: clamp(32px, 5vw, 56px) 0; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--jungle); color: #e7f0ec; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: end; justify-content: space-between; margin-bottom: 32px; }
.section__head h2 { margin: 0; max-width: 20ch; }
.section__head p { margin: 0; color: var(--muted); max-width: 52ch; }
.section--dark .section__head p { color: #a9c2b8; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 .78rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--leaf); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section--dark .eyebrow { color: var(--sun); }

/* Buttons & chips ---------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 650; font-size: .96rem; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--sunset); color: #fff; box-shadow: 0 6px 16px -6px rgba(238, 106, 47, .7); }
.btn--primary:hover { background: #d9561d; color: #fff; }
.btn--dark { background: var(--forest); color: #fff; }
.btn--dark:hover { background: var(--jungle); color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--forest); background: transparent; }
.btn--light { background: #fff; color: var(--forest); }
.btn--light:hover { color: var(--sunset); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .88rem; font-weight: 550; cursor: pointer; color: var(--ink-2); text-decoration: none; transition: all .15s; }
.chip:hover, .chip.is-active { background: var(--forest); color: #fff; border-color: var(--forest); }

/* Vehicle badges & difficulty dots ---------------------------------------- */
.vbadge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; font: 700 .74rem/1.3 var(--f-body); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.vbadge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.vbadge--sedan { color: #0f7a37; background: #e3f6ea; }
.vbadge--suv { color: #a45a05; background: #fdf0da; }
.vbadge--4x4 { color: #b41c1c; background: #fde4e2; }
.dots { display: inline-flex; gap: 3px; vertical-align: middle; }
.dots i { width: 9px; height: 9px; border-radius: 2px; background: var(--line); transform: skewX(-12deg); }
.dots i.on { background: var(--sunset); }

/* Header ------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 245, .88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -14px rgba(0, 0, 0, .3); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.header__inner { display: flex; align-items: center; gap: 24px; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.2rem/1 var(--f-display); letter-spacing: -.03em; }
.logo svg { width: 42px; height: 42px; }
.logo span b { color: var(--sunset); font-weight: 800; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; white-space: nowrap; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 560; font-size: .95rem; }
.nav a:hover, .nav .current-menu-item > a, .nav .current_page_item > a { background: var(--sand); color: var(--forest); }
.header__cta { margin-left: 8px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
@media (max-width: 1120px) {
	.menu-toggle { display: inline-flex; }
	.header__cta { display: none; }
	.nav { position: fixed; inset: 70px 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 24px; margin: 0; box-shadow: var(--shadow-lg); visibility: hidden; opacity: 0; transform: translateY(-10px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
	.nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease, transform .2s ease; }
	.nav ul { flex-direction: column; }
	.nav a { padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
}

/* Hero --------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% -10%, #1b7a5c 0%, transparent 60%), radial-gradient(900px 500px at -10% 110%, #0e5a45 0%, transparent 55%), var(--jungle); color: #e9f3ef; padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 9vw, 110px); }
.hero__topo { position: absolute; inset: 0; opacity: .16; pointer-events: none; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 6.2vw, 4.6rem); letter-spacing: -.035em; margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--sun); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em; background: var(--sunset); border-radius: 4px; opacity: .8; z-index: -1; }
.hero__lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: #bcd3ca; max-width: 34em; margin-bottom: 28px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 30px; }
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats b { font: 800 1.8rem/1 var(--f-display); color: #fff; }
.hero__stats span { font-size: .85rem; color: #9fbcb1; }
.hero__card { background: rgba(255, 255, 255, .97); color: var(--ink); border-radius: 24px; padding: clamp(20px, 3vw, 28px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); }
.hero__card h2 { font-size: 1.35rem; margin-bottom: 4px; }
.hero__card > p { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }
@media (max-width: 900px) { .hero__inner { grid-template-columns: 1fr; } }

/* Page hero (inner pages) -------------------------------------------------- */
.phero { background: linear-gradient(180deg, var(--sand), var(--bg)); padding: clamp(28px, 5vw, 56px) 0 clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.phero--dark { background: radial-gradient(900px 400px at 90% 0%, #1b7a5c, transparent 60%), var(--jungle); color: #d7e7e0; border: 0; }
.phero--dark h1, .phero--dark .crumbs a, .phero--dark .crumbs { color: #fff; }
.phero--dark .phero__lead { color: #b3cbc1; }
.phero h1 { margin-bottom: .3em; max-width: 22ch; }
.phero__lead { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; margin: 0; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--sunset); }
.crumbs span[aria-hidden] { opacity: .5; }
.kicker { display: inline-block; font: 700 .75rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; background: var(--sun); color: var(--jungle); padding: 7px 10px; border-radius: 6px; margin-bottom: 16px; text-decoration: none; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: .9rem; color: var(--muted); margin-top: 18px; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.phero--dark .meta { color: #a6c0b5; }

/* Stat strip (routes) ------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 28px; }
.stat { background: var(--surface); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat small { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 650; display: flex; align-items: center; gap: 6px; }
.stat b { font: 750 1.25rem/1.2 var(--f-display); }
.stat s { color: var(--muted); font-weight: 500; }
.stat--hl { background: #fff8ec; }
@media (max-width: 1000px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat b { font-size: 1.08rem; } }

/* Maps --------------------------------------------------------------------- */
.map { width: 100%; border-radius: var(--radius); overflow: hidden; background: #dfe9e4; border: 1px solid var(--line); position: relative; z-index: 0; }
.map--route { height: clamp(300px, 45vw, 460px); margin: 28px 0; }
.map--all { height: clamp(380px, 60vw, 600px); }
.map--dest { height: 340px; }
.mpin { background: none; border: 0; }
.mpin span { display: grid; place-items: center; transform: translate(-50%, -50%); min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; font: 800 .78rem/1 var(--f-body); color: #fff; background: var(--forest); border: 2.5px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.mpin--a span { background: var(--forest); }
.mpin--b span { background: var(--sunset); }
.mpin--num span { background: var(--jungle); }
.mpin--dot span { min-width: 14px; width: 14px; height: 14px; padding: 0; background: var(--forest-2); }
.mpin--air span { min-width: 18px; width: 18px; height: 18px; padding: 0; background: var(--sky); }
.mpop { text-decoration: none; color: var(--ink); line-height: 1.4; }
.map-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: .88rem; color: var(--ink-2); margin-top: 14px; }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.map-legend i { width: 22px; height: 4px; border-radius: 2px; display: inline-block; }
.section--dark .map-legend { color: #bcd3ca; }

/* Cards -------------------------------------------------------------------- */
.grid { display: grid; gap: clamp(16px, 2.5vw, 24px); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
@media (max-width: 400px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }

.rcard { position: relative; display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--ink); transition: transform .18s, box-shadow .18s, border-color .18s; min-width: 0; }
.rcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--ink); }
.rcard__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rcard__title { font-size: 1.12rem; margin: 0; line-height: 1.25; }
.rcard__title small { font: 500 .8rem var(--f-body); color: var(--muted); }
.rcard__stats { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; color: var(--ink-2); }
.rcard__stats b { color: var(--ink); }
.rcard__verdict { font-size: .9rem; color: var(--muted); margin: 0; }
.rcard__cta { margin-top: auto; font-weight: 650; font-size: .92rem; color: var(--sunset); }
.rcard__line { height: 4px; border-radius: 4px; margin: -20px -20px 6px; border-radius: var(--radius) var(--radius) 0 0; }
.rcard--result { border: 2px solid var(--sun); background: #fffdf7; }

.dcard { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 250px; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: #fff; padding: 20px; isolation: isolate; transition: transform .2s, box-shadow .2s; }
.dcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: #fff; }
.dcard__bg { position: absolute; inset: 0; z-index: -2; }
.dcard__bg img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.dcard:hover .dcard__bg img { transform: scale(1.05); }
.dcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 25%, rgba(5, 25, 19, .88)); }
.dcard__art { position: absolute; right: -10px; top: -10px; width: 60%; opacity: .25; z-index: -1; color: #fff; }
.dcard .vbadge { position: absolute; top: 16px; left: 16px; }
.dcard h3 { color: #fff; margin: 0 0 4px; font-size: 1.35rem; }
.dcard p { margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .82); line-height: 1.45; }
.dcard__meta { display: flex; gap: 12px; font-size: .8rem; margin-top: 10px; color: rgba(255, 255, 255, .75); }

.acard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .18s, box-shadow .18s; }
.acard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.acard__img { aspect-ratio: 1200 / 630; background: var(--sand); overflow: hidden; }
.acard__img img { width: 100%; height: 100%; object-fit: cover; }
.acard__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.acard__kicker { font: 700 .72rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--leaf); }
.acard h3 { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.acard p { margin: 0; font-size: .92rem; color: var(--muted); }
.acard__meta { margin-top: auto; padding-top: 8px; font-size: .82rem; color: var(--muted); }
.acard--feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; }
.acard--feature .acard__img { aspect-ratio: auto; min-height: 280px; }
.acard--feature h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
@media (max-width: 760px) { .acard--feature { grid-template-columns: 1fr; } .acard--feature .acard__img { aspect-ratio: 1200 / 630; min-height: 0; } }

.fcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.fcard__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--sand); color: var(--forest); }
.fcard__icon .icon { width: 26px; height: 26px; }
.fcard h3 { margin: 6px 0 0; }
.fcard p { color: var(--muted); margin: 0; font-size: .96rem; }
.fcard a.more { margin-top: auto; font-weight: 650; text-decoration: none; color: var(--sunset); }
.fcard__num { font: 800 2.4rem/1 var(--f-display); color: var(--sunset); }
.section--dark .fcard { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); }
.section--dark .fcard p { color: #a9c2b8; }
.section--dark .fcard__icon { background: rgba(245, 165, 36, .15); color: var(--sun); }

/* Vehicle legend (home) ---------------------------------------------------- */
.vlegend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.vlegend__item { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.vlegend__item p { margin: 6px 0 0; font-size: .92rem; color: var(--muted); }
.vlegend__sign { flex: none; width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; transform: rotate(45deg); font: 800 .8rem var(--f-display); }
.vlegend__sign span { transform: rotate(-45deg); }
.vlegend__sign--sedan { background: #e3f6ea; color: #0f7a37; border: 2px solid #0f7a37; }
.vlegend__sign--suv { background: #fdf0da; color: #a45a05; border: 2px solid #a45a05; }
.vlegend__sign--4x4 { background: #fde4e2; color: #b41c1c; border: 2px solid #b41c1c; }
@media (max-width: 800px) { .vlegend { grid-template-columns: 1fr; } }

/* Filters ------------------------------------------------------------------ */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; align-items: center; }
.filters__label { font-size: .85rem; color: var(--muted); font-weight: 600; margin-right: 4px; }
.filters + .filters { margin-top: -12px; }
[data-filter-item].is-hidden { display: none !important; }

/* Layout with sidebar ------------------------------------------------------ */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 64px); align-items: start; padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(48px, 6vw, 80px); }
.layout__side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 1000px) { .layout { grid-template-columns: minmax(0, 1fr); } .layout__side { position: static; } }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font-size: .92rem; }
.toc h2 { font: 700 .75rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 6px 0; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc a::before { content: counter(toc, decimal-leading-zero); font: 700 .75rem/1.6 var(--f-display); color: var(--line); min-width: 18px; transition: color .15s; }
.toc a:hover, .toc a.is-active { color: var(--forest); }
.toc a.is-active::before, .toc a:hover::before { color: var(--sunset); }
.toc--inline { display: none; margin: 0 0 28px; }
.toc--inline summary { cursor: pointer; font-weight: 650; list-style: none; }
.toc--inline summary::-webkit-details-marker { display: none; }
.toc--inline[open] summary { margin-bottom: 10px; }
@media (max-width: 1000px) { .toc--inline { display: block; } .layout__side .toc { display: none; } }

.side-box { background: var(--jungle); color: #cfe0d9; border-radius: var(--radius); padding: 22px; }
.side-box h3 { color: #fff; font-size: 1.15rem; }
.side-box p { font-size: .9rem; margin-bottom: 14px; }

/* Article typography ------------------------------------------------------- */
.prose { font-size: 1.08rem; line-height: 1.75; color: #1d2b27; max-width: 72ch; }
.prose > * + h2 { margin-top: 2em; }
.prose > * + h3 { margin-top: 1.6em; }
.prose h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); padding-top: 4px; }
.prose h3 { font-size: 1.28rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--leaf); font-weight: 700; }
.prose strong { color: var(--ink); font-weight: 680; }
.prose a { font-weight: 550; color: var(--forest-2); text-decoration-color: rgba(19, 102, 79, .35); text-decoration-thickness: 2px; }
.prose a:hover { color: var(--sunset); text-decoration-color: var(--sunset); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--sun); font-family: var(--f-display); font-size: 1.25rem; line-height: 1.45; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { background: var(--jungle); color: #fff; font-weight: 650; white-space: nowrap; }
.prose thead th:first-child { border-radius: 10px 0 0 0; }
.prose thead th:last-child { border-radius: 0 10px 0 0; }
.prose tbody tr:nth-child(even) { background: rgba(243, 239, 227, .55); }
.prose img { border-radius: var(--radius-sm); margin: 1.5em 0; }
.prose figure { margin: 1.5em 0; }
.prose figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.5em 0; }

.callout { position: relative; margin: 1.6em 0; padding: 18px 20px 18px 56px; border-radius: 14px; background: #eef7f3; border: 1px solid #cfe7dd; font-size: 1rem; line-height: 1.6; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout::before { content: ""; position: absolute; left: 18px; top: 19px; width: 24px; height: 24px; background: var(--leaf); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-4 10.5c.7.7 1 1.5 1 2.5h6c0-1 .3-1.8 1-2.5A6 6 0 0 0 12 3z'/%3E%3C/svg%3E"); }
.callout--warning { background: #fff5eb; border-color: #fbd9b8; }
.callout--warning::before { background: var(--sunset); --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 2 21h20L12 3z'/%3E%3Cpath d='M12 10v5M12 18v.5'/%3E%3C/svg%3E"); }
.callout--info { background: #fffbea; border-color: #f6e3a6; }
.callout--info::before { background: #c28a00; --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7.5v.5'/%3E%3C/svg%3E"); }

/* Route guide blocks ------------------------------------------------------- */
.verdict { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 0 0 32px; }
.verdict--sedan { border-color: #a7e3bd; background: #f3fbf6; }
.verdict--suv { border-color: #f7cf8f; background: #fffaf0; }
.verdict--4x4 { border-color: #f6b1ab; background: #fff6f5; }
.verdict h2 { font-size: 1.25rem; margin: 0 0 4px; }
.verdict p { margin: 0; font-size: .98rem; color: var(--ink-2); }
.verdict .vlegend__sign { width: 54px; height: 54px; }

.timeline { list-style: none; padding: 0; margin: 0 0 2em; position: relative; }
.timeline::before { content: ""; position: absolute; left: 17px; top: 8px; bottom: 8px; width: 3px; background: repeating-linear-gradient(to bottom, var(--sun) 0 10px, transparent 10px 18px); }
.timeline li { position: relative; padding: 0 0 22px 56px; margin: 0; }
.timeline li::marker { content: none; }
.timeline__n { position: absolute; left: 0; top: 0; width: 37px; height: 37px; border-radius: 50%; display: grid; place-items: center; background: var(--jungle); color: #fff; font: 800 .95rem var(--f-display); box-shadow: 0 0 0 5px var(--bg); }
.timeline h3 { font-size: 1.12rem; margin: 5px 0 6px; }
.timeline p { margin: 0; }

.hazards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 0 0 2em; padding: 0; list-style: none; }
.hazards li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: #fff5eb; border: 1px solid #fbd9b8; border-radius: 12px; font-size: .96rem; line-height: 1.5; margin: 0; }
.hazards li::marker { content: none; }
.hazards .icon { color: var(--sunset); margin-top: 2px; }

.stops { display: grid; gap: 12px; margin: 0 0 2em; padding: 0; list-style: none; }
.stops li { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: 0; }
.stops li::marker { content: none; }
.stops b { display: flex; align-items: center; gap: 8px; font-family: var(--f-display); font-size: 1.05rem; margin-bottom: 4px; }
.stops b .icon { color: var(--leaf); }
.stops p { margin: 0; font-size: .96rem; color: var(--ink-2); }

.facts { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 2em; font-size: .98rem; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: table; }
.facts th, .facts td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { width: 34%; background: var(--sand); font-weight: 650; }
.facts th .icon { color: var(--forest-2); margin-right: 6px; }
.facts td { background: var(--surface); }

.faq { margin: 2.5em 0 0; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-bottom: 10px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 650; font-family: var(--f-display); font-size: 1.08rem; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--f-body); color: var(--sunset); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 20px 18px; color: var(--ink-2); }
.faq details > div p:last-child { margin: 0; }

.author-box { display: flex; gap: 16px; align-items: flex-start; margin-top: 40px; padding: 22px; border-radius: var(--radius); background: var(--sand); }
.author-box__avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--jungle); color: var(--sun); }
.author-box h3 { font-size: 1.05rem; margin: 0 0 4px; }
.author-box p { margin: 0; font-size: .93rem; color: var(--ink-2); }

.updated-note { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; background: #e3f6ea; color: #0f7a37; padding: 6px 12px; border-radius: 999px; font-weight: 600; }

/* Featured image ----------------------------------------------------------- */
.feature-img { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1200 / 630; background: var(--sand); }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }

/* Tools -------------------------------------------------------------------- */
.tool { margin: 1.5em 0 2em; }
.tool__note { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }
.finder { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; }
.finder__field { display: flex; flex-direction: column; gap: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); min-width: 0; }
.finder select, .calc select, .calc input[type=number], .trip select, .contact-form input, .contact-form select, .contact-form textarea {
	width: 100%; appearance: none; -webkit-appearance: none; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 40px 13px 14px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2366766f' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; font-size: 1rem; font-weight: 550; color: var(--ink); text-transform: none; letter-spacing: 0; transition: border-color .15s;
}
.calc input[type=number], .contact-form input, .contact-form textarea { background-image: none; padding-right: 14px; }
.finder select:focus, .calc select:focus, .calc input:focus, .trip select:focus, .contact-form :is(input, select, textarea):focus { border-color: var(--leaf); outline: none; box-shadow: 0 0 0 4px rgba(31, 157, 108, .15); }
.finder__swap { width: 46px; height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--sand); cursor: pointer; display: grid; place-items: center; color: var(--forest); }
.finder__swap:hover { background: var(--forest); color: #fff; }
.finder__result { margin-top: 16px; }
.finder__result .rcard { padding: 18px; }
.finder__none { background: var(--sand); padding: 16px; border-radius: 12px; font-size: .93rem; }
.finder__none p { margin: 0 0 8px; }
.finder__none ul { margin: 0; padding-left: 1.2em; }

.tool--compact .finder { grid-template-columns: 1fr; position: relative; gap: 12px; }
.tool--compact .finder__swap { position: absolute; right: 14px; top: 50%; transform: translateY(-2px); width: 38px; height: 38px; border-radius: 50%; z-index: 2; background: #fff; box-shadow: var(--shadow); }
.tool--compact .finder__swap .icon { transform: rotate(90deg); }
.tool--compact .finder select { padding-right: 60px; background-position: right 64px center; }
@media (max-width: 520px) { .finder { grid-template-columns: 1fr; } .finder__swap { width: 100%; height: 40px; } }

.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); }
.calc__inputs { display: flex; flex-direction: column; gap: 14px; }
.calc__inputs label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 650; color: var(--ink-2); }
.calc__check { flex-direction: row !important; align-items: center; gap: 10px !important; font-weight: 550 !important; }
.calc__check input { width: 18px; height: 18px; accent-color: var(--forest); }
.calc__total { background: var(--jungle); color: #fff; border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.calc__total small { color: #a6c0b5; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 650; }
.calc__total b { font: 800 2.6rem/1 var(--f-display); color: var(--sun); }
.calc__total span { color: #cfe0d9; font-size: .92rem; }
.calc__table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.calc__table td { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.calc__table td:last-child { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.calc__deposit { margin-top: 14px; font-size: .9rem; background: var(--sand); padding: 12px 14px; border-radius: 10px; }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; } }

.trip { display: grid; grid-template-columns: 380px 1fr; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.trip__panel { padding: 8px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.trip__title { margin: 0; font-size: 1.35rem; }
.trip__hint { margin: 0; font-size: .92rem; color: var(--muted); }
.trip__stops { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.trip__stops li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--sand); border-radius: 10px; font-weight: 600; font-size: .95rem; }
.trip__n { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--jungle); color: #fff; display: grid; place-items: center; font-size: .75rem; font-weight: 800; }
.trip__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trip__btns { display: flex; gap: 2px; }
.trip__btns button { width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; color: var(--muted); font-size: 1rem; }
.trip__btns button:hover { background: #fff; color: var(--ink); }
.trip__presets { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .85rem; color: var(--muted); }
.trip__presets .chip { padding: 5px 10px; font-size: .8rem; }
.trip__totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 10px; }
.trip__totals div { background: var(--jungle); color: #fff; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.trip__totals small { color: #9fbcb1; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 650; }
.trip__totals b { font: 750 1rem/1.25 var(--f-display); color: var(--sun); }
.trip__legs { margin: 0; padding-left: 1.2em; font-size: .9rem; display: flex; flex-direction: column; gap: 6px; }
.trip__legs a { font-weight: 650; }
.trip__legs span { color: var(--muted); }
.trip__legs .vbadge { font-size: .64rem; padding: 2px 7px; }
.trip__map { min-height: 420px; }
@media (max-width: 900px) { .trip { grid-template-columns: 1fr; } .trip__map { min-height: 340px !important; } }

.contact-form { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 650; font-size: .9rem; }
.contact-form__hp { position: absolute; left: -9999px; }
.contact-form__note { font-size: .85rem; color: var(--muted); }
.notice { padding: 14px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 550; }
.notice--ok { background: #e3f6ea; color: #0f7a37; }
.notice--err { background: #fde4e2; color: #b41c1c; }

/* Ads ---------------------------------------------------------------------- */
.ad { margin: 32px auto; text-align: center; min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; clear: both; }
.ad ins { width: 100%; }
.ad__label { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #9aa7a2; margin-bottom: 6px; }
.ad--top { min-height: 100px; margin: 0 auto 28px; }
.ad--sidebar { min-height: 600px; margin: 0; }
.ad--section { max-width: var(--wrap); padding: 0 var(--gutter); min-height: 250px; }
.ad--footer { min-height: 250px; }
.ad--debug .ad__slot { width: 100%; height: 100%; min-height: inherit; flex: 1; display: grid; place-items: center; border: 2px dashed #c9d3cf; border-radius: 12px; color: #9aa7a2; font-size: .85rem; background: repeating-linear-gradient(45deg, #fafaf7 0 10px, #f3f3ee 10px 20px); }
@media (max-width: 1000px) { .ad--sidebar { display: none; } }
@media (max-width: 600px) { .ad--top { min-height: 60px; } }

/* Pagination --------------------------------------------------------------- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 600; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--forest); color: #fff; border-color: var(--forest); }

/* CTA band ----------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; background: linear-gradient(120deg, var(--sunset), #f09a2e); color: #fff; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.4fr auto; gap: 24px; align-items: center; }
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .9); max-width: 52ch; }
.cta-band svg.cta-band__road { position: absolute; right: -40px; bottom: -40px; width: 320px; opacity: .15; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* Footer ------------------------------------------------------------------- */
.site-footer { background: var(--jungle); color: #a9c2b8; padding: 64px 0 28px; margin-top: 0; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h3 { color: #fff; font: 700 .8rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: #cfe0d9; text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.footer__about p { max-width: 36ch; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }
.footer__bottom ul { flex-direction: row; flex-wrap: wrap; gap: 18px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__about { grid-column: 1 / -1; } }

/* Misc --------------------------------------------------------------------- */
.page-content { padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(56px, 7vw, 88px); }
.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form input[type=search] { flex: 1; border: 1.5px solid var(--line); border-radius: 999px; padding: 12px 18px; background: #fff; }
.empty { text-align: center; padding: 64px 0; }
.empty h1 { font-size: clamp(3rem, 10vw, 6rem); color: var(--sunset); }
.route-dir { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 700 1.05rem var(--f-display); color: var(--ink-2); margin-bottom: 10px; }
.phero--dark .route-dir { color: #cfe0d9; }
.route-dir .icon { color: var(--sun); }
.region-group + .region-group { margin-top: 48px; }
.region-group > h2 { display: flex; align-items: baseline; gap: 12px; }
.region-group > h2 small { font: 500 .95rem var(--f-body); color: var(--muted); }
.region-group > p { color: var(--muted); max-width: 70ch; margin-top: -4px; }
.keyfacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.keyfacts div { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 14px 16px; }
.keyfacts small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #9fbcb1; font-weight: 650; margin-bottom: 4px; }
.keyfacts b { color: #fff; font: 700 1.02rem/1.3 var(--f-display); }
@media (max-width: 800px) { .keyfacts { grid-template-columns: 1fr 1fr; } }
.highlights { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 0 0 2em; padding: 0; list-style: none; }
.highlights li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 0; }
.highlights li::marker { content: none; }
.highlights b { display: block; font: 700 1.05rem var(--f-display); margin-bottom: 4px; }
.highlights span { font-size: .95rem; color: var(--ink-2); }
.related { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 40px; }
.back-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; background: var(--forest); color: #fff; border: 0; display: grid; place-items: center; box-shadow: var(--shadow-lg); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.back-top.is-visible { opacity: 1; pointer-events: auto; }
.back-top .icon { transform: rotate(-90deg); }
.progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--sunset); width: 0; z-index: 60; }
.admin-bar .progress { top: 32px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
	.site-header, .site-footer, .ad, .layout__side, .back-top, .map { display: none !important; }
	.layout { display: block; }
}

/* Tools & cards inside prose ------------------------------------------------ */
.prose .rcard, .prose .acard, .prose .dcard, .prose .btn, .prose .chip { text-decoration: none; font-weight: inherit; }
.prose .rcard, .prose .acard { color: var(--ink); }
.prose .btn--primary, .prose .dcard { color: #fff; }
.prose .rcard__cta { font-weight: 650; }
.prose .trip__stops { padding: 0; margin: 0; }
.prose .trip__stops li { margin: 0; }
.prose .trip__legs { padding-left: 1.2em; margin: 0; }
.prose .calc__table { display: table; margin: 0; font-size: .93rem; }
.prose .calc__table td { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.prose .calc__table tr { background: none !important; }
.prose .finder__none ul { margin: 0; }
.prose .tool h3 { margin-top: 0; }
.prose--wide > h2 { max-width: 30ch; }
.prose--wide > p, .prose--wide > ul, .prose--wide > ol, .prose--wide > .callout, .prose--wide > h3 { max-width: 72ch; }

/* Leaflet fixes (global img rules break map tiles) */
.leaflet-container img, .leaflet-container svg { max-width: none !important; max-height: none !important; }
.leaflet-container img { display: inline; }
.leaflet-container { font: inherit; }
.stats { color: var(--ink); }
.prose .timeline, .prose .hazards, .prose .stops, .prose .highlights { padding-left: 0; }

@media (max-width: 782px) { }

/* Unsplash photos ------------------------------------------------------------ */
.phero--photo { position: relative; overflow: hidden; isolation: isolate; }
.phero--photo > .wrap { position: relative; }
.phero__photo { position: absolute; inset: 0; z-index: -1; }
.phero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 28, 22, .92) 0%, rgba(6, 28, 22, .78) 45%, rgba(6, 28, 22, .4) 100%), linear-gradient(0deg, rgba(6, 28, 22, .85) 0%, rgba(6, 28, 22, 0) 45%); }
.phero--photo .phero__lead { color: #d6e6df; }
.photo-credit { font-size: .74rem; color: var(--muted); margin: -24px 0 28px; text-align: right; }
.photo-credit a { color: inherit; }
.photo-credit--hero { position: absolute; right: 14px; top: 10px; margin: 0; color: rgba(255, 255, 255, .6); z-index: 1; }
.photo-credit--hero a { color: rgba(255, 255, 255, .8); }
.rcard__img { display: block; margin: -20px -20px 0; aspect-ratio: 16 / 7; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--sand); }
.rcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.rcard:hover .rcard__img img { transform: scale(1.04); }
.rcard__img + .rcard__line { margin-top: 0; border-radius: 0; }
.acard__img img, .dcard__bg img { display: block; }
@media (max-width: 760px) { .photo-credit--hero { top: auto; bottom: 6px; } }
.dcard:has(.dcard__bg)::after { background: linear-gradient(180deg, rgba(5, 25, 19, .2) 0%, rgba(5, 25, 19, .55) 38%, rgba(5, 25, 19, .93) 100%); }
.dcard:has(.dcard__bg) h3, .dcard:has(.dcard__bg) p, .dcard:has(.dcard__bg) .dcard__meta { text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.hero--photo { background: var(--jungle); }
.hero__photo { position: absolute; inset: 0; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 38, 30, .95) 0%, rgba(7, 38, 30, .82) 38%, rgba(7, 38, 30, .38) 72%, rgba(7, 38, 30, .3) 100%), linear-gradient(0deg, rgba(7, 38, 30, .7) 0%, rgba(7, 38, 30, 0) 40%); }
.hero--photo .hero__topo { opacity: .07; }
@media (max-width: 900px) { .hero__photo::after { background: linear-gradient(180deg, rgba(7, 38, 30, .7) 0%, rgba(7, 38, 30, .88) 45%, rgba(7, 38, 30, .96) 100%); } }

/* Route explorer (home) -------------------------------------------------------- */
.explorer { display: grid; grid-template-columns: minmax(300px, 370px) 1fr; background: #0b3329; border: 1px solid rgba(255, 255, 255, .09); border-radius: 24px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.explorer__panel { contain: size; display: flex; flex-direction: column; gap: 12px; padding: 18px 14px 14px 18px; border-right: 1px solid rgba(255, 255, 255, .08); min-height: 0; }
.seg { display: grid; grid-template-columns: repeat(4, auto); gap: 2px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.seg button { border: 0; background: none; color: #bcd3ca; font: 600 .8rem/1 var(--f-body); padding: 9px 6px; border-radius: 9px; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.seg button:hover { color: #fff; }
.seg button.is-on { background: #fff; color: var(--jungle); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.vchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.vchip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04); color: #e3efe9; font: 600 .8rem/1 var(--f-body); padding: 7px 11px; border-radius: 999px; cursor: pointer; transition: opacity .15s, background .15s; }
.vchip i { width: 10px; height: 10px; border-radius: 50%; }
.vchip--sedan i { background: var(--sedan); } .vchip--suv i { background: var(--suv); } .vchip--4x4 i { background: var(--x4); }
.vchip b { font-weight: 700; opacity: .6; }
.vchip:not(.is-on) { opacity: .45; background: none; }
.vchip:not(.is-on) i { background: #7f958d; }
.explorer__count { margin: 0; font-size: .8rem; color: #9fbcb1; }
.explorer__count b { color: #fff; }
.explorer__list { list-style: none; margin: 0 -6px 0 0; padding: 0 6px 0 0; overflow-y: auto; flex: 1; min-height: 0; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
.xgroup { position: sticky; top: 0; z-index: 1; background: #0b3329; padding: 12px 4px 6px; font: 700 .68rem/1.2 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--sun); }
.xitem { margin: 0; }
.xr { display: grid; grid-template-columns: 4px 1fr auto; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; color: #e9f3ef; text-decoration: none; transition: background .15s; }
.xr:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.xr.is-active { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.xr__bar { width: 4px; height: 30px; border-radius: 4px; background: var(--suv); }
.xr[data-vehicle="sedan"] .xr__bar { background: var(--sedan); } .xr[data-vehicle="4x4"] .xr__bar { background: var(--x4); }
.xr__main { min-width: 0; }
.xr__main b { display: block; font-weight: 650; font-size: .93rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xr__main small { font-size: .78rem; color: #9fbcb1; }
.xr__v { font: 700 .68rem/1 var(--f-body); letter-spacing: .04em; text-transform: uppercase; color: #fbbf24; }
.xr[data-vehicle="sedan"] .xr__v { color: #4ade80; } .xr[data-vehicle="4x4"] .xr__v { color: #f87171; }
.explorer__stage { position: relative; min-width: 0; container-type: inline-size; display: flex; flex-direction: column; }
.explorer__map { border-radius: 0; flex: 1 1 auto; }
.map--dark { background: #0e2a23; }
.map--dark .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) saturate(.4) brightness(.9) contrast(.9); }
.map--dark .leaflet-control-attribution { background: rgba(8, 42, 33, .8); color: #9fbcb1; }
.map--dark .leaflet-control-attribution a { color: #cfe0d9; }
.explorer__card { position: absolute; left: 16px; bottom: 16px; z-index: 600; width: min(380px, calc(100% - 32px)); background: #fff; color: var(--ink); border-radius: 18px; padding: 18px 18px 16px; box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .6); animation: xcard-in .25s ease; }
@keyframes xcard-in { from { opacity: 0; transform: translateY(10px); } }
.explorer__card h3 { color: var(--ink); font-size: 1.08rem; line-height: 1.25; margin: 10px 28px 12px 0; }
.xcard__stats { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.xcard__stats small { display: block; font: 650 .66rem/1.2 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.xcard__stats b { font-size: .92rem; }
.xcard__cta { display: flex; justify-content: center; width: 100%; margin-top: 14px; }
.xcard__close { position: absolute; top: 10px; right: 12px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--sand); color: var(--ink); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.explorer__reset { position: absolute; top: 14px; right: 14px; z-index: 600; border: 1px solid rgba(255, 255, 255, .25); background: rgba(8, 42, 33, .88); color: #fff; font: 600 .8rem/1 var(--f-body); padding: 10px 14px; border-radius: 999px; cursor: pointer; backdrop-filter: blur(6px); }
.leaflet-tooltip.xlabel { background: #fff; color: var(--jungle); border: 0; border-radius: 8px; padding: 5px 9px; font: 700 .78rem/1.2 var(--f-body); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5); }
.leaflet-tooltip.xlabel::before { display: none; }
.mpin--air span { min-width: 24px; width: 24px; height: 24px; font-size: .78rem; }
@media (max-width: 900px) {
	.explorer { grid-template-columns: 1fr; }
	.explorer__stage { order: -1; }
	.explorer__map { min-height: 400px !important; }
	.explorer__panel { contain: none; border-right: 0; border-top: 1px solid rgba(255, 255, 255, .08); padding: 16px; }
	.explorer__list { max-height: 420px; }
	.explorer__card { position: static; width: auto; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--line); }
	.explorer__reset { top: 10px; right: 10px; padding: 8px 12px; }
	.seg { grid-template-columns: repeat(2, 1fr); }
}
/* Narrow map: the info card sits under the map instead of covering it. */
@container (max-width: 680px) { .explorer__card { position: static; width: auto; border-radius: 0; box-shadow: none; } }
