/* Izvoarele Barcăului — stratul de brand (v1.2): emblemă, „linii de apă”, module interactive. Se încarcă după main.css. */

:root {
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--c-aqua: #5fd4cb;
	/* Motivul grafic al brandului: linii de apă (curbe de nivel). */
	--lines: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='160' viewBox='0 0 480 160'%3E%3Cg fill='none' stroke='%231c6b50' stroke-width='1.5' opacity='.22'%3E%3Cpath d='M0 30C80 0 160 60 240 30S400 0 480 30'/%3E%3Cpath d='M0 80C80 50 160 110 240 80S400 50 480 80'/%3E%3Cpath d='M0 130C80 100 160 160 240 130S400 100 480 130'/%3E%3C/g%3E%3C/svg%3E");
}

.emblem { flex: none; }
.brand__logo { width: 36px; height: 36px; border-radius: 50%; }
.home .site-header:not(.is-scrolled) .brand__logo circle:first-child { fill: rgba(255, 255, 255, .16); }

.section--tight-top { padding-top: 12px; }
.section--alt { background: var(--c-alt) var(--lines); }
.section--dark { background: #0c2f24 var(--lines); color: #e8efe9; }
.section--dark .section__head p { color: #b7cbc0; }
.section--dark .more { color: var(--c-aqua); }
.site-footer { background: #0c2f24 var(--lines); }
.page-head { background: var(--lines) repeat-x left bottom; }
.more--inline { display: inline-flex; margin-top: 10px; font-size: .92rem; }

.site-header { position: sticky; }
.progress { position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--c-water); transform: scaleX(0); transform-origin: left; }

/* ---------- „Știai că?” ---------- */
.curio { grid-auto-columns: min(80vw, 320px); align-items: start; }
.curio__card { position: relative; display: flex; flex-direction: column; min-height: 210px; padding: 20px; border-radius: var(--r-m); background: #0f3d2e; color: #fff; scroll-snap-align: start; overflow: hidden; }
.curio__card:nth-child(3n+2) { background: #0b5f5c; }
.curio__card:nth-child(3n) { background: #1c6b50; }
.curio__card::after { content: ""; position: absolute; inset: 0; background: var(--lines); opacity: .5; filter: brightness(3); pointer-events: none; }
.curio__no { font: 700 .8rem var(--font); letter-spacing: .12em; opacity: .7; }
.curio__icon { position: absolute; right: 18px; top: 18px; width: 28px; height: 28px; color: var(--c-aqua); }
.curio__card h3 { margin: auto 0 0; font: 600 1.35rem/1.2 var(--font-display); }
.curio__q { position: relative; z-index: 1; display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; }
.curio__hint { display: flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--c-aqua); font: 600 .8rem var(--font); letter-spacing: .04em; }
.curio__hint::before { content: "+"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .16); font-size: 1rem; }
.curio__q[aria-expanded="true"] .curio__hint { display: none; }
.curio__a { position: relative; z-index: 1; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .22); animation: drop .25s ease; }
.curio__a p { margin: 0; font-size: .98rem; line-height: 1.5; }
.curio__a .more { color: var(--c-aqua); }

/* ---------- „Drumul apei” ---------- */
.water { display: grid; gap: 18px; }
.water__svg { width: 100%; height: auto; border-radius: var(--r-m); background: linear-gradient(#143f31, #0f3327); }
.water__rock { fill: #dcd6c6; }
.water__grass { fill: none; stroke: #5aa377; stroke-width: 7; stroke-linecap: round; }
.water text { fill: #fff; font: 600 15px var(--font); }
.water .wp-s2 text { fill: #14231d; }
.water__cloud { fill: #e8efe9; }
.water__rain path { stroke: var(--c-aqua); stroke-width: 4; stroke-linecap: round; fill: none; }
.water__hole { fill: #14231d; }
.water__flow { fill: none; stroke: #0e8f8a; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 3 12; animation: flow 1.2s linear infinite; }
.water__spring { fill: var(--c-aqua); }
.water__ring { fill: none; stroke: var(--c-aqua); stroke-width: 2; transform-origin: 378px 197px; animation: ping 1.8s ease-out infinite; }
.water__fall { fill: none; stroke: #fff; stroke-width: 7; stroke-linejoin: round; stroke-linecap: round; }
.water__river { fill: none; stroke: var(--c-aqua); stroke-width: 10; stroke-linecap: round; }
.water .wp { opacity: .14; transition: opacity .4s ease; }
.water[data-step="1"] .wp-s1,
.water[data-step="2"] :is(.wp-s1, .wp-s2),
.water[data-step="3"] :is(.wp-s1, .wp-s2, .wp-s3),
.water[data-step="4"] :is(.wp-s1, .wp-s2, .wp-s3, .wp-s4),
.water[data-step="5"] :is(.wp-s1, .wp-s2, .wp-s3, .wp-s4, .wp-s5),
.water[data-step="6"] .wp { opacity: 1; }
.water__panel { padding: 18px; border-radius: var(--r-m); background: rgba(255, 255, 255, .08); color: #e8efe9; }
.water__steps { min-height: 118px; }
.water__count { color: var(--c-aqua); font-size: .78rem; font-weight: 700; letter-spacing: .1em; }
.water__step h3 { margin: 4px 0 6px; font: 600 1.4rem/1.2 var(--font-display); color: #fff; }
.water__step p { margin: 0; }
.water__nav { display: flex; gap: 10px; margin-top: 16px; }
.water__nav .btn--light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.water__nav .btn[disabled] { opacity: .4; }
.water__nav .btn--primary { background: var(--c-aqua); color: #06241c; }
.water__note { margin: 12px 0 0; font-size: .78rem; opacity: .7; }
.extra { margin: 28px 0; }
.extra .water { padding: 16px; border-radius: var(--r-m); background: #0c2f24; }
@keyframes flow { to { stroke-dashoffset: -30; } }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

/* ---------- Anotimpuri ---------- */
.seasons { border-radius: var(--r-m); background: var(--c-surface); box-shadow: var(--shadow); overflow: hidden; }
.seasons__tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--c-line); }
.seasons__tabs button { min-height: 52px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--c-muted); font-size: .9rem; font-weight: 650; }
.seasons__tabs button[aria-selected="true"] { color: var(--c-brand-2); border-bottom-color: var(--c-brand-2); }
.seasons__panel { padding: 20px; animation: fade .25s ease; }
.seasons__text { font: 500 1.2rem/1.45 var(--font-display); }
.seasons__meta { display: grid; gap: 12px; margin: 0; }
.seasons__meta dt { color: var(--c-muted); font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.seasons__meta dd { margin: 2px 0 0; font-weight: 600; }
.drops { display: flex; gap: 2px; color: var(--c-line); }
.drops .is-on { color: var(--c-water); fill: currentColor; }

/* ---------- Quiz ---------- */
.quiz { padding: 22px; border-radius: var(--r-m); background: var(--c-surface); box-shadow: var(--shadow); }
.quiz__bar { height: 6px; border-radius: 6px; background: var(--c-alt); overflow: hidden; }
.quiz__bar span { display: block; height: 100%; background: var(--c-water); transition: width .3s ease; }
.quiz__count { margin: 14px 0 4px; color: var(--c-muted); font-size: .8rem; font-weight: 600; }
.quiz__q { font: 600 1.4rem/1.25 var(--font-display); }
.quiz__options { display: grid; gap: 10px; margin: 16px 0; }
.quiz__option { min-height: 52px; padding: 10px 16px; border: 0; border-radius: var(--r-s); background: var(--c-alt); color: var(--c-ink); font-weight: 600; text-align: left; transition: transform .12s ease; }
.quiz__option:active { transform: scale(.98); }
.quiz__option.is-right { background: #1c6b50; color: #fff; }
.quiz__option.is-wrong { background: #b3402a; color: #fff; }
.quiz__feedback { min-height: 1.5em; color: var(--c-muted); }
.quiz__score { margin: 0; font: 700 3.4rem/1 var(--font-display); color: var(--c-brand-2); }
.quiz__verdict { font-size: 1.15rem; }

/* ---------- Bare comparative ---------- */
.bars { display: grid; gap: 14px; padding: 20px; border-radius: var(--r-m); background: var(--c-surface); box-shadow: var(--shadow); }
.bars__row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.bars__label { font-size: .88rem; font-weight: 600; }
.bars__value { font: 700 1.1rem var(--font-display); }
.bars__track { grid-column: 1 / -1; grid-row: 2; height: 14px; border-radius: 14px; background: var(--c-alt); overflow: hidden; }
.bars__fill { display: block; height: 100%; width: 0; border-radius: 14px; background: var(--c-muted); transition: width 1.1s cubic-bezier(.2, .8, .2, 1); }
.bars__fill--now { background: var(--c-water); transition-delay: .2s; }
.bars__fill--hu { background: var(--c-accent); transition-delay: .4s; }
.bars.is-in .bars__fill { width: var(--w); }

/* ---------- Continuă explorarea ---------- */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; }
.pager__link { display: grid; gap: 2px; align-content: start; padding: 16px; border-radius: var(--r-m); background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line); color: var(--c-ink); text-decoration: none; }
.pager__link small { color: var(--c-muted); font-size: .76rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.pager__link--next { text-align: right; background: var(--c-brand-2); color: #fff; box-shadow: none; }
.pager__link--next small { color: #bfe6d3; }

/* ---------- Manualul de brand ---------- */
.bk { padding-block: 8px 48px; }
.bk h2 { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--c-line); }
.bk__lead { max-width: 46em; font: 500 1.25rem/1.5 var(--font-display); }
.bk__grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 20px 0; }
.bk__tile { display: grid; gap: 12px; align-content: start; padding: 18px; border-radius: var(--r-m); background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line); }
.bk__tile--dark { background: #0f3d2e; color: #fff; box-shadow: none; }
.bk__tile img { width: 100%; max-height: 180px; object-fit: contain; }
.bk__tile a { font-size: .85rem; font-weight: 600; }
.bk__tile--dark a { color: var(--c-aqua); }
.bk__tile p { margin: 0; color: var(--c-muted); font-size: .9rem; }
.bk__tile--dark p { color: #cfe0d6; }
.bk__swatch { height: 96px; border-radius: var(--r-s); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.bk__codes { margin: 0; font: 500 .82rem/1.6 ui-monospace, Consolas, monospace; color: var(--c-muted); }
.bk__codes b { display: block; color: var(--c-ink); font: 700 1rem var(--font); }
.bk__type-display { font: 600 clamp(2rem, 6vw, 3.2rem)/1.05 var(--font-display); letter-spacing: -.015em; }
.bk__type-body { font-size: 1.05rem; }
.bk__list { display: grid; gap: 8px; padding: 0; }
.bk__list li { position: relative; padding-left: 1.6em; }
.bk__list li::before { content: ""; position: absolute; left: .2em; top: .6em; width: .55em; height: .55em; border-radius: 50%; background: var(--c-water); }
.bk__list--no li::before { background: #b3402a; }
.bk__print { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: start; }
.bk__print figure { margin: 0; }
.bk__print img { width: 100%; border-radius: 8px; box-shadow: var(--shadow); background: #fff; }
.bk__print figcaption { margin-top: 10px; font-size: .9rem; }
.bk__lines { height: 120px; border-radius: var(--r-m); background: #0f3d2e var(--lines); background-size: 360px; }

@media (min-width: 640px) {
	.seasons__meta { grid-template-columns: auto 1fr; gap: 28px; }
	.quiz__options { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
	.curio { grid-auto-columns: calc((100% - 3 * 20px) / 4); }
	.water { grid-template-columns: 1.6fr 1fr; align-items: center; gap: 32px; }
	.water__step h3 { font-size: 1.7rem; }
	.section--tight-top { padding-top: 24px; }
}

/* ---------- „Oameni și tradiții” ---------- */
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.people__item { display: flex; }
.people__item--lead { grid-column: 1 / -1; }
.people__link { position: relative; display: flex; flex-direction: column; flex: 1; padding: 18px; border-radius: var(--r-m); background: var(--c-surface); box-shadow: var(--shadow); color: var(--c-ink); text-decoration: none; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.people__link:hover { transform: translateY(-3px); }
.people__link:active { transform: scale(.98); }
.people__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 14px; background: var(--c-alt); color: var(--c-brand-2); }
.people__hook { color: var(--c-water); font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.people__title { margin: 4px 0 6px; font: 600 1.15rem/1.2 var(--font-display); }
.people__text { margin: 0 0 14px; color: var(--c-muted); font-size: .88rem; line-height: 1.45; }
.people__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; color: var(--c-link); font-size: .85rem; font-weight: 650; }
.people__more .icon { transition: transform .2s ease; }
.people__link:hover .people__more .icon { transform: translateX(4px); }

.people__item--lead .people__link { min-height: 260px; padding: 24px; justify-content: flex-end; background: #0f3d2e; color: #fff; box-shadow: none; }
.people__item--lead .people__link::before { content: ""; position: absolute; inset: 0; background: var(--lines); background-size: 420px; filter: brightness(2.4); opacity: .7; }
.people__item--lead .people__link > * { position: relative; }
.people__item--lead .people__icon { position: absolute; left: 24px; top: 24px; margin: 0; background: rgba(255, 255, 255, .14); color: var(--c-aqua); }
.people__item--lead .people__hook { color: var(--c-aqua); }
.people__item--lead .people__title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
.people__item--lead .people__text { color: #cfe0d6; font-size: 1rem; max-width: 34em; }
.people__item--lead .people__more { color: var(--c-aqua); }

@media (max-width: 420px) {
	.people__link { padding: 14px; }
	.people__title { font-size: 1.02rem; }
	.people__text { display: none; }
	.people__item--lead .people__text { display: block; }
	.people__more { font-size: .8rem; }
}
@media (min-width: 1000px) {
	.people { grid-template-columns: 1.25fr 1fr 1fr; gap: 20px; }
	.people__item--lead { grid-column: 1; grid-row: 1 / span 2; }
	.people__link { padding: 22px; }
}
.people__item--lead .people__link > .people__icon { position: absolute; }
.people__item--lead .people__link { padding-top: 84px; }
.people__item--lead .people__hook { margin-top: auto; }
.people__item--lead .people__more { margin-top: 0; }

/* ---------- Hartă: comutator de zonă, listă pe distanțe ---------- */
.map__toggle { position: absolute; z-index: 500; left: 50%; bottom: 14px; transform: translateX(-50%); min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: #0f3d2e; color: #fff; font-size: .88rem; font-weight: 650; white-space: nowrap; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.map-list__title { display: flex; align-items: baseline; gap: 10px; margin: 32px 0 14px; font-size: 1.25rem; }
.map-list__title small { color: var(--c-muted); font-size: .85rem; font-weight: 500; }
.linklist .km { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--c-alt); color: var(--c-brand-2); font-size: .78rem; font-weight: 700; white-space: nowrap; }
/* Listele de linkuri: fără celule goale gri când rândurile au înălțimi diferite sau numărul e impar. */
.linklist { gap: 0; background: var(--c-surface); }
.linklist li { display: flex; border-bottom: 1px solid var(--c-line); }
.linklist a { flex: 1; }
@media (min-width: 640px) { .linklist li:nth-child(odd) { border-right: 1px solid var(--c-line); } }
@media (min-width: 1000px) { .linklist li { border-right: 1px solid var(--c-line); } }

/* =====================================================================
   Pagina Hartă: hartă + panou de explorare
   ===================================================================== */
.wrap--wide { max-width: 1440px; }
.page-head--compact { padding-block: 16px 14px; background: none; }
.page-head--compact h1 { margin-bottom: .2em; font-size: clamp(1.6rem, 6vw, 2.4rem); }
.page-head--compact .lead { font-size: 1rem; color: var(--c-muted); }
.page-template-harta .site-header.is-hidden { transform: none; }
.page-template-harta .site-footer { margin-top: 0; }

.mapui { padding-bottom: 32px; }
.mapui__map { position: sticky; top: var(--header-h); z-index: 5; margin-inline: -16px; }
.map--ui { aspect-ratio: auto; height: 44svh; min-height: 260px; border-radius: 0 0 var(--r-m) var(--r-m); }
.mapui__locate { position: absolute; z-index: 600; right: 12px; bottom: 28px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--c-surface); color: var(--c-ink); font-size: .88rem; font-weight: 650; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.mapui__locate .icon { color: #2a7de1; }
.mapui__locate.is-busy { opacity: .6; }
.mapui__locate[hidden] { display: none; }

.mapui__panel { padding-top: 16px; }
.mapui__controls { display: grid; gap: 12px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--c-alt); }
.segmented button { min-height: 44px; border: 0; border-radius: 999px; background: none; color: var(--c-muted); font-size: .92rem; font-weight: 650; transition: background-color .2s ease, color .2s ease; }
.segmented button small { margin-left: 4px; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, currentColor 14%, transparent); font-size: .74rem; }
.segmented button[aria-pressed="true"] { background: var(--c-brand-2); color: #fff; box-shadow: 0 2px 8px rgba(15, 61, 46, .25); }
.mapui__types { margin-block: 0; padding-block: 2px 4px; }
.mapui__types .chip { border: 0; cursor: pointer; font-family: inherit; }
.mapui__types .chip .icon { width: 1.05em; height: 1.05em; }
.mapui__types .chip[aria-pressed="true"] { background: #0f3d2e; color: #fff; box-shadow: none; }
.mapui__count { margin: 0; color: var(--c-muted); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.mapui__list { display: grid; gap: 10px; margin-top: 12px; }
.mapui__item { border-radius: var(--r-m); background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line); overflow: hidden; transition: box-shadow .2s ease; }
.mapui__item[hidden] { display: none; }
.mapui__item.is-active { box-shadow: inset 0 0 0 2px var(--c-brand-2), var(--shadow); }
.mapui__select { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; background: none; color: var(--c-ink); text-align: left; }
.mapui__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50% 50% 50% 0; background: var(--c-brand-2); color: #fff; transform: rotate(-45deg); }
.mapui__icon .icon { transform: rotate(45deg); }
.mapui__item--main .mapui__icon { background: var(--c-accent); color: var(--c-accent-ink); }
.mapui__text b { display: block; line-height: 1.25; }
.mapui__text small { display: block; color: var(--c-muted); font-size: .82rem; }
.mapui__select .km { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--c-alt); color: var(--c-brand-2); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.mapui__actions { display: none; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--c-line); }
.mapui__item.is-active .mapui__actions { display: grid; animation: drop .2s ease; }
.mapui__actions a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; color: var(--c-link); font-size: .9rem; font-weight: 650; text-decoration: none; }
.mapui__actions a + a { border-left: 1px solid var(--c-line); }
.mapui__actions a:last-child { background: var(--c-brand-2); color: #fff; }
.mapui__actions .icon { width: 1.1em; height: 1.1em; }
.mapui__empty { margin: 16px 0 0; padding: 18px; border-radius: var(--r-m); background: var(--c-alt); color: var(--c-muted); }
.mapui__note { margin: 14px 0 0; color: var(--c-muted); font-size: .8rem; }
.mapui__more { margin-top: 20px; border-top: 1px solid var(--c-line); }
.mapui__more summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-weight: 650; cursor: pointer; list-style: none; }
.mapui__more summary::-webkit-details-marker { display: none; }
.mapui__more summary .icon { color: var(--c-muted); transition: transform .2s ease; }
.mapui__more[open] summary .icon { transform: rotate(90deg); }
.mapui__more li a { display: block; padding: 8px 0; }

.leaflet-marker-icon.is-active .map-pin { background: #e9a53d; transform: rotate(-45deg) scale(1.3); }
.map-pin { transition: transform .2s ease, background-color .2s ease; }

@media (min-width: 640px) {
	.mapui__map { margin-inline: -24px; }
	.map--ui { height: 48svh; }
}
@media (min-width: 1000px) {
	.mapui { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 28px; align-items: start; }
	.mapui__map { order: 2; top: calc(var(--header-h) + 16px); margin-inline: 0; }
	.map--ui { height: calc(100vh - var(--header-h) - 32px); border-radius: var(--r-m); }
	.mapui__panel { padding-top: 0; }
	.mapui__types { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
	.mapui__select:hover { background: color-mix(in srgb, var(--c-brand-2) 6%, transparent); }
}

/* =====================================================================
   Pagina-hub „Izvoarele Barcăului”
   ===================================================================== */
.hub-hero { position: relative; display: grid; align-items: end; min-height: min(62svh, 560px); color: #fff; border-radius: 0 0 var(--r-l) var(--r-l); overflow: hidden; isolation: isolate; }
.hub-hero__media { position: absolute; inset: 0; z-index: -1; }
.hub-hero__media > * { width: 100%; height: 100%; object-fit: cover; }
.hub-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 28, 21, .3) 0%, rgba(8, 28, 21, .15) 30%, rgba(8, 28, 21, .85) 100%); }
.hub-hero__content { padding-block: 28px 56px; }
.hub-hero .crumbs { color: rgba(255, 255, 255, .8); }
.hub-hero h1 { font-size: clamp(2.3rem, 9vw, 4.2rem); margin-bottom: .25em; }
.hub-hero__lead { max-width: 38em; font-size: clamp(1.02rem, 3.4vw, 1.2rem); line-height: 1.5; opacity: .95; }

.hub-facts { position: relative; z-index: 2; margin-top: -32px; }
.hub-facts .facts { margin: 0; padding: 10px; border-radius: var(--r-m); background: var(--c-surface); box-shadow: var(--shadow); gap: 0; }
.hub-facts .facts__item { box-shadow: none; background: none; }

.anchors { position: sticky; top: var(--header-h); z-index: 20; margin-top: 18px; background: var(--c-glass); backdrop-filter: saturate(1.4) blur(14px); border-block: 1px solid var(--c-line); }
.anchors ul { display: flex; gap: 6px; overflow-x: auto; padding-block: 8px; scrollbar-width: none; }
.anchors ul::-webkit-scrollbar { display: none; }
.anchors a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; color: var(--c-muted); font-size: .9rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.anchors a[aria-current="true"] { background: var(--c-brand-2); color: #fff; }
.has-anchors .site-header.is-hidden { transform: none; }
.hub-hero ~ .section, .hub-hero ~ * [id] { scroll-margin-top: calc(var(--header-h) + 64px); }
.section[id] { scroll-margin-top: calc(var(--header-h) + 56px); }

.hub-split { display: grid; gap: 36px; }
.stops { position: relative; display: grid; gap: 0; margin-top: 20px; }
.stops__item { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding-bottom: 26px; }
.stops__item::before { content: ""; position: absolute; left: 22px; top: 48px; bottom: 0; width: 4px; border-radius: 4px; background: linear-gradient(var(--c-water), color-mix(in srgb, var(--c-water) 40%, var(--c-brand-2))); }
.stops__item:last-child { padding-bottom: 0; }
.stops__item:last-child::before { display: none; }
.stops__dot { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--c-surface); color: var(--c-water); box-shadow: inset 0 0 0 2px var(--c-water); }
.stops__item:first-child .stops__dot { background: var(--c-brand-2); color: #fff; box-shadow: none; }
.stops__body h3 { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 4px; font: 600 1.3rem/1.2 var(--font-display); }
.stops__no { color: var(--c-water); font: 700 .8rem var(--font); letter-spacing: .08em; }
.stops__body p { margin: 0; color: var(--c-muted); }
.stops__body .more { margin-top: 6px; }

.hub-about { padding: 22px; border-radius: var(--r-m); background: var(--c-alt) var(--lines); align-self: start; }
.hub-about h2 { font-size: 1.2rem; }
.hub-about .prose { font-size: 1rem; }
.hub-about .prose > :last-child { margin-bottom: 0; }

.hub-plan { display: grid; gap: 16px; }
.map--plan { aspect-ratio: 4 / 3; }
.hub-plan__links { align-self: start; }

@media (min-width: 640px) {
	.hub-plan__links { grid-template-columns: 1fr 1fr; }
	.hub-facts .facts { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
	.hub-hero { min-height: min(66svh, 620px); }
	.hub-hero__content { padding-block: 40px 76px; }
	.hub-facts .facts { grid-template-columns: repeat(6, 1fr); }
	.hub-split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; }
	.hub-about { position: sticky; top: calc(var(--header-h) + 76px); padding: 28px; }
	.hub-plan { grid-template-columns: 1.4fr 1fr; gap: 28px; }
	.hub-plan__links { grid-template-columns: 1fr; }
	.hub-plan__links li { border-right: 0; }
	.map--plan { aspect-ratio: 16 / 10; }
	.anchors ul { justify-content: center; }
}

/* =====================================================================
   Pagina-hub „Râul Barcău”
   ===================================================================== */
.journey { border-radius: var(--r-m); background: var(--c-surface); box-shadow: var(--shadow); overflow: hidden; }
.journey__track { display: flex; overflow-x: auto; padding: 22px 12px 14px; scroll-snap-type: x proximity; scrollbar-width: none; background: var(--c-alt) var(--lines); }
.journey__track::-webkit-scrollbar { display: none; }
.journey__stop { --tone: var(--c-brand-2); position: relative; flex: 0 0 auto; display: grid; justify-items: center; gap: 8px; width: 104px; padding: 0 4px; border: 0; background: none; color: var(--c-muted); font: inherit; font-size: .8rem; font-weight: 650; line-height: 1.2; scroll-snap-align: center; }
.journey__stop--bihor { --tone: var(--c-water); }
.journey__stop--ungaria { --tone: #c9852a; }
.journey__stop::before { content: ""; position: absolute; left: -50%; right: 50%; top: 20px; height: 4px; background: var(--c-line); }
.journey__stop:first-child::before { display: none; }
.journey__stop.is-passed::before, .journey__stop[aria-selected="true"]::before { background: var(--tone); }
.journey__dot { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-surface); color: var(--tone); box-shadow: inset 0 0 0 2px var(--tone); transition: transform .2s ease, background-color .2s ease; }
.journey__stop.is-passed .journey__dot { background: color-mix(in srgb, var(--tone) 18%, var(--c-surface)); }
.journey__stop[aria-selected="true"] { color: var(--c-ink); }
.journey__stop[aria-selected="true"] .journey__dot { background: var(--tone); color: #fff; transform: scale(1.14); box-shadow: 0 4px 12px color-mix(in srgb, var(--tone) 40%, transparent); }
.journey__panel { padding: 20px; min-height: 150px; animation: fade .25s ease; }
.journey__meta { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; color: var(--c-muted); font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.journey__panel h3 { font: 600 1.7rem/1.15 var(--font-display); margin-bottom: .3em; }
.journey__panel p { margin: 0; max-width: 40em; }
.journey__nav { display: flex; justify-content: space-between; gap: 10px; padding: 0 20px 20px; }
.journey__nav .btn[disabled] { opacity: .4; }

.river-stats { display: grid; gap: 16px; }
.river-stats__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.river-stats__tiles > div { padding: 16px; border-radius: var(--r-m); background: var(--c-surface); box-shadow: var(--shadow); }
.river-stats__tiles dt { color: var(--c-muted); font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.river-stats__tiles dd { margin: 4px 0 0; font: 700 1.7rem/1.1 var(--font-display); color: var(--c-brand-2); }
.river-stats__tiles small { font: 600 .85rem var(--font); color: var(--c-muted); }

.names { display: grid; gap: 14px; counter-reset: name; }
.names li { position: relative; padding: 20px; border-radius: var(--r-m); background: var(--c-surface); box-shadow: var(--shadow); border-top: 5px solid var(--c-brand-2); }
.names li:nth-child(2) { border-top-color: var(--c-water); }
.names li:nth-child(3) { border-top-color: var(--c-accent); }
.names__where { color: var(--c-muted); font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.names h3 { margin: 4px 0 6px; font: 600 1.8rem/1.1 var(--font-display); }
.names p { margin: 0; color: var(--c-muted); font-size: .95rem; }

.scopes { display: grid; gap: 10px; margin-top: 18px; }
.scopes a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-m); background: var(--c-surface); box-shadow: var(--shadow); color: var(--c-ink); text-decoration: none; transition: transform .2s ease; }
.scopes a:hover { transform: translateX(4px); }
.scopes__no { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-brand-2); color: #fff; font: 700 1.1rem var(--font-display); }
.scopes b { display: block; font-size: 1.05rem; }
.scopes small { display: block; color: var(--c-muted); font-size: .88rem; line-height: 1.4; }
.scopes .icon { color: var(--c-muted); }
.hub-about--plain { background: var(--c-surface); box-shadow: var(--shadow); }

@media (min-width: 640px) {
	.names { grid-template-columns: repeat(3, 1fr); }
	.river-stats__tiles { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1000px) {
	.journey__track { justify-content: space-between; padding-inline: 20px; }
	.journey__stop { flex: 1 1 0; width: auto; font-size: .85rem; }
	.journey__panel { padding: 28px; }
	.journey__nav { padding: 0 28px 28px; justify-content: flex-start; }
	.river-stats { grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: stretch; }
	.river-stats__tiles { grid-template-columns: 1fr 1fr; }
	.names li + li::before { content: "→"; position: absolute; left: -22px; top: 50%; color: var(--c-muted); font-size: 1.3rem; transform: translateY(-50%); }
	.names { gap: 28px; }
}

/* =====================================================================
   Pagina-hub „Planifică vizita”
   ===================================================================== */
.routes { border-radius: var(--r-m); background: var(--c-surface); box-shadow: var(--shadow); overflow: hidden; align-self: start; }
.routes__tabs { grid-template-columns: 1fr 1fr; }
.routes__panel { padding: 20px 20px 4px; animation: fade .25s ease; }
.routes__steps { display: grid; gap: 0; margin-top: 6px; }
.routes__steps li { position: relative; display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 0 10px 22px; }
.routes__steps li::before { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 3px; background: var(--c-line); }
.routes__steps li:first-child::before { top: 50%; }
.routes__steps li:last-child::before { bottom: 50%; }
.routes__steps li::after { content: ""; position: absolute; left: 0; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; background: var(--c-surface); box-shadow: inset 0 0 0 3px var(--c-brand-2); }
.routes__road { display: inline-grid; place-items: center; min-height: 30px; padding: 0 8px; border-radius: 8px; background: var(--c-brand-2); color: #fff; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.routes__last .routes__road { background: var(--c-alt); color: var(--c-brand-2); }
.routes__last::after { box-shadow: inset 0 0 0 3px var(--c-water); }
.routes__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 20px 20px; color: var(--c-muted); font-size: .85rem; font-weight: 600; }

.checklist { margin-top: 16px; border-radius: var(--r-m); background: var(--c-surface); box-shadow: var(--shadow); overflow: hidden; }
.checklist__count { margin: 0; padding: 12px 18px; background: var(--c-alt); color: var(--c-brand-2); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.checklist.is-done .checklist__count { background: var(--c-brand-2); color: #fff; }
.checklist li + li { border-top: 1px solid var(--c-line); }
.checklist label { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; min-height: 64px; padding: 12px 18px; cursor: pointer; }
.checklist input { position: absolute; opacity: 0; }
.checklist__box { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; box-shadow: inset 0 0 0 2px var(--c-line); transition: background-color .15s ease, box-shadow .15s ease; }
.checklist__box::after { content: ""; width: 12px; height: 7px; border: solid #fff; border-width: 0 0 3px 3px; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .15s ease; }
.checklist input:checked + .checklist__box { background: var(--c-brand-2); box-shadow: none; }
.checklist input:checked + .checklist__box::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.checklist input:focus-visible + .checklist__box { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.checklist b { display: block; line-height: 1.3; }
.checklist small { display: block; color: var(--c-muted); font-size: .85rem; }
.checklist input:checked ~ span b { color: var(--c-muted); text-decoration: line-through; }

.stops--day { margin-top: 24px; }
.stops__when { display: block; margin-top: 4px; }
.stops--day .stops__body h3 { margin-top: 2px; }
.stops--day .stops__dot { background: var(--c-surface); }

.duo { display: grid; gap: 14px; }
.duo__card { display: flex; flex-direction: column; padding: 22px; border-radius: var(--r-m); background: var(--c-surface); box-shadow: var(--shadow); color: var(--c-ink); text-decoration: none; transition: transform .2s ease; }
.duo__card:hover { transform: translateY(-3px); }
.duo__card h3 { font: 600 1.4rem/1.2 var(--font-display); margin-bottom: 6px; }
.duo__card p { color: var(--c-muted); }

.rules { display: grid; gap: 14px; }
.rules__col { padding: 22px; border-radius: var(--r-m); background: rgba(255, 255, 255, .08); }
.rules__col h3 { font: 600 1.4rem var(--font-display); color: var(--c-aqua); }
.rules__col:last-child h3 { color: #f0a48f; }
.rules .bk__list--no li::before { background: #e2674a; }

@media (min-width: 640px) {
	.duo, .rules { grid-template-columns: 1fr 1fr; }
}
