/* Izvoarele Barcăului — stiluri. Mobile-first. */

/* ---------- Tokens ---------- */
:root {
	--c-bg: #f6f3ec;
	--c-surface: #ffffff;
	--c-alt: #ebf0e6;
	--c-ink: #14231d;
	--c-muted: #586860;
	--c-line: #e2dccf;
	--c-brand: #0f3d2e;
	--c-brand-2: #1c6b50;
	--c-link: #14664b;
	--c-water: #0e8f8a;
	--c-accent: #e9a53d;
	--c-accent-ink: #2a1c05;
	--c-glass: rgba(246, 243, 236, .82);
	--shadow: 0 1px 2px rgba(15, 61, 46, .06), 0 8px 24px rgba(15, 61, 46, .08);
	--r-s: 12px;
	--r-m: 18px;
	--r-l: 28px;
	--gap: 16px;
	--header-h: 56px;
	--tabbar-h: 62px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--c-bg: #0b1512;
		--c-surface: #13211c;
		--c-alt: #0f1c18;
		--c-ink: #e8efe9;
		--c-muted: #9bb0a5;
		--c-line: #223731;
		--c-brand: #17513d;
		--c-brand-2: #2a8a68;
		--c-link: #7fd6ac;
		--c-water: #4cc9c2;
		--c-glass: rgba(11, 21, 18, .82);
		--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--c-bg: #0b1512;
	--c-surface: #13211c;
	--c-alt: #0f1c18;
	--c-ink: #e8efe9;
	--c-muted: #9bb0a5;
	--c-line: #223731;
	--c-brand: #17513d;
	--c-brand-2: #2a8a68;
	--c-link: #7fd6ac;
	--c-water: #4cc9c2;
	--c-glass: rgba(11, 21, 18, .82);
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
	color-scheme: dark;
}

@view-transition { navigation: auto; }

/* ---------- Bază ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-ink);
	font: 400 1rem/1.6 var(--font);
	-webkit-font-smoothing: antialiased;
	padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-link); text-underline-offset: .18em; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font: 700 clamp(2rem, 7vw, 3.4rem)/1.05 var(--font-display); letter-spacing: -.015em; }
h2 { font-size: clamp(1.35rem, 4.5vw, 1.9rem); letter-spacing: -.015em; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 6px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--c-accent); color: var(--c-accent-ink); padding: 10px 16px; border-radius: var(--r-s); font-weight: 600; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 16px; }
.wrap--narrow { max-width: 800px; }

:root:not([data-theme="dark"]) .only-dark { display: none; }
:root[data-theme="dark"] .only-light { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .only-light { display: none; }
	:root:not([data-theme="light"]) .only-dark { display: block; }
}

/* ---------- Butoane, chip-uri ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 20px; border: 0; border-radius: 999px;
	font-weight: 650; text-decoration: none; white-space: nowrap;
	transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn--primary { background: var(--c-brand-2); color: #fff; }
.btn--primary:hover { background: var(--c-brand); }
.btn--accent { background: var(--c-accent); color: var(--c-accent-ink); }
.btn--light { background: var(--c-surface); color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-line); }
.btn--glass { background: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }

.icon-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px;
	border: 0; border-radius: 50%; background: transparent; color: inherit; text-decoration: none;
}
.icon-btn:hover { background: color-mix(in srgb, var(--c-ink) 8%, transparent); }

.chip {
	display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
	background: var(--c-alt); color: var(--c-ink); font-size: .8rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.chip--on-media { position: absolute; left: 12px; top: 12px; background: var(--c-glass); backdrop-filter: blur(8px); }
.chip--link { min-height: 40px; padding-inline: 16px; background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line); font-size: .9rem; }
.chip--link[aria-current="true"] { background: var(--c-brand-2); color: #fff; box-shadow: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 4px 16px 12px; scrollbar-width: none; }
.chips--scroll::-webkit-scrollbar { display: none; }

.eyebrow { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; color: var(--c-water); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow--light { color: #fff; opacity: .92; }

/* ---------- Antet ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50; height: var(--header-h);
	background: var(--c-glass); backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid color-mix(in srgb, var(--c-line) 70%, transparent);
	transition: transform .25s ease;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { display: flex; align-items: center; gap: 12px; height: 100%; }
.site-header__actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.site-header__cta, .nav { display: none; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--c-ink); text-decoration: none; }
.brand__logo { width: 34px; height: 34px; border-radius: 10px; }
.brand__name { margin: 0; font: 600 1.05rem/1 var(--font-display); letter-spacing: -.01em; white-space: nowrap; }
.brand__name b { color: var(--c-brand-2); font-weight: 700; }

/* ---------- Bara de navigare mobilă ---------- */
.tabbar {
	position: fixed; inset: auto 0 0 0; z-index: 60;
	display: grid; grid-template-columns: repeat(5, 1fr);
	height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
	background: var(--c-glass); backdrop-filter: saturate(1.4) blur(16px);
	border-top: 1px solid var(--c-line);
}
.tabbar__item {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
	border: 0; background: none; color: var(--c-muted); font-size: .68rem; font-weight: 600; text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}
.tabbar__item .icon { width: 24px; height: 24px; padding: 0; border-radius: 999px; box-sizing: content-box; padding: 3px 16px; transition: background-color .2s ease; }
.tabbar__item[aria-current="page"] { color: var(--c-brand-2); }
.tabbar__item[aria-current="page"] .icon { background: color-mix(in srgb, var(--c-brand-2) 16%, transparent); }
.tabbar__item:active .icon { background: color-mix(in srgb, var(--c-ink) 10%, transparent); }

/* ---------- Meniul tip „sheet” ---------- */
.sheet { position: fixed; inset: 0; z-index: 70; }
.sheet[hidden] { display: none; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(5, 15, 11, .5); animation: fade .2s ease; }
.sheet__panel {
	position: absolute; inset: auto 0 0 0; max-height: 88dvh; display: flex; flex-direction: column;
	background: var(--c-bg); border-radius: var(--r-l) var(--r-l) 0 0; box-shadow: var(--shadow);
	animation: slide-up .28s cubic-bezier(.2, .8, .2, 1);
}
.sheet__head { position: relative; display: flex; justify-content: flex-end; padding: 8px 8px 0; }
.sheet__grip { position: absolute; left: 50%; top: 10px; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--c-line); }
.sheet__body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px calc(24px + env(safe-area-inset-bottom)); }
.sheet__group { padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.sheet__title { display: flex; align-items: center; justify-content: space-between; color: var(--c-ink); font-size: 1.15rem; font-weight: 700; text-decoration: none; }
.sheet__title .icon { color: var(--c-muted); }
.sheet__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sheet__links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line); color: var(--c-ink); font-size: .9rem; text-decoration: none; }
.sheet__foot { display: flex; flex-wrap: wrap; gap: 18px; padding-top: 18px; font-size: .92rem; }
.sheet__foot button { border: 0; background: none; padding: 0; color: var(--c-link); text-decoration: underline; }
@keyframes slide-up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Căutare ---------- */
.searchbar { position: relative; display: flex; align-items: center; gap: 8px; margin: 8px 0 16px; padding: 6px 6px 6px 44px; border-radius: 999px; background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line); }
.searchbar > .icon { position: absolute; left: 16px; color: var(--c-muted); }
.searchbar input { flex: 1; min-width: 0; height: 40px; border: 0; background: none; color: var(--c-ink); font: inherit; font-size: 1rem; outline: none; }

/* ---------- Hero ---------- */
.hero { position: relative; display: grid; align-items: end; min-height: min(78svh, 680px); margin-top: calc(var(--header-h) * -1); padding-top: var(--header-h); color: #fff; border-radius: 0 0 var(--r-l) var(--r-l); overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media > * { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 28, 21, .25) 0%, rgba(8, 28, 21, .1) 35%, rgba(8, 28, 21, .82) 100%); }
.hero__content { padding-block: 40px 72px; }
.hero h1 { font-size: clamp(2.6rem, 11vw, 5rem); margin-bottom: .25em; }
.hero__lead { max-width: 34em; font-size: clamp(1.05rem, 3.6vw, 1.3rem); line-height: 1.45; opacity: .95; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.home .site-header:not(.is-scrolled) { background: transparent; border-color: transparent; backdrop-filter: none; color: #fff; }
.home .site-header:not(.is-scrolled) .brand, .home .site-header:not(.is-scrolled) .nav__item > a { color: #fff; }
.home .site-header:not(.is-scrolled) .brand__name b { color: #fff; }

.stats { position: relative; z-index: 2; margin-top: -44px; }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 0; overflow: hidden; border-radius: var(--r-m); background: var(--c-line); box-shadow: var(--shadow); }
.stats__grid > div { padding: 14px 16px; background: var(--c-surface); }
.stats dt { color: var(--c-muted); font-size: .76rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.stats dd { margin: 2px 0 0; font: 700 1.6rem/1.1 var(--font-display); color: var(--c-brand-2); }
.stats small { font: 600 .9rem var(--font); color: var(--c-muted); }

/* ---------- Secțiuni ---------- */
.section { padding-block: 36px; }
.section--tight { padding-block: 24px 4px; }
.section--alt { background: var(--c-alt); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section__head h2 { margin: 0; }
.section__head p { max-width: 46em; margin: 6px 0 0; color: var(--c-muted); }
.more { display: none; align-items: center; gap: 6px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.section__head + * + .more, .section .more--below { display: inline-flex; }

.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 8px; }
.actions a { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--c-ink); font-size: .76rem; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; }
.actions__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--c-surface); color: var(--c-brand-2); box-shadow: var(--shadow); transition: transform .15s ease; }
.actions__icon .icon { width: 26px; height: 26px; }
.actions a:active .actions__icon { transform: scale(.92); }

.answer { padding: 20px; border-radius: var(--r-m); background: var(--c-surface); border-left: 5px solid var(--c-water); box-shadow: var(--shadow); }
.answer h2 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c-water); }
.answer p { margin: 0; font-size: 1.1rem; line-height: 1.55; }

/* ---------- Carduri, grile, șiruri ---------- */
.card { border-radius: var(--r-m); background: var(--c-surface); box-shadow: var(--shadow); overflow: hidden; scroll-snap-align: start; }
.card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-alt); }
.card__media > img, .card__media > svg { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card__link:hover .card__media > :first-child { transform: scale(1.05); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.card__title { margin: 0 0 6px; font-size: 1.08rem; }
.card__text { margin: 0 0 12px; color: var(--c-muted); font-size: .92rem; line-height: 1.45; }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: auto 0 0; color: var(--c-muted); font-size: .82rem; font-weight: 600; }
.card__meta span { display: inline-flex; align-items: center; gap: 4px; }
.card__meta .icon { width: 1.1em; height: 1.1em; }

.grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(76vw, 300px); gap: 14px; margin-inline: -16px; padding: 4px 16px 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }

.reasons { display: grid; gap: 14px; }
.reasons li { padding: 18px; border-radius: var(--r-m); background: var(--c-surface); }
.reasons .icon { width: 30px; height: 30px; margin-bottom: 10px; color: var(--c-water); }
.reasons h3 { margin-bottom: 4px; }
.reasons p { margin: 0; color: var(--c-muted); font-size: .95rem; }

/* Cursul râului */
.river { display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 220px); margin-inline: -16px; padding: 8px 16px 16px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 16px; scrollbar-width: none; }
.river::-webkit-scrollbar { display: none; }
.river__stop { position: relative; padding: 58px 18px 0 0; scroll-snap-align: start; }
.river__stop::before { content: ""; position: absolute; left: 0; right: 0; top: 21px; height: 4px; background: linear-gradient(90deg, var(--c-water), color-mix(in srgb, var(--c-water) 55%, var(--c-brand-2))); }
.river__stop:first-child::before { border-radius: 4px 0 0 4px; }
.river__stop:last-child::before { right: 50%; border-radius: 0 4px 4px 0; }
.river__dot { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--c-surface); color: var(--c-water); box-shadow: 0 0 0 4px var(--c-bg), inset 0 0 0 2px var(--c-water); }
.river__stop h3 { margin: 8px 0 4px; }
.river__stop p { margin: 0; color: var(--c-muted); font-size: .9rem; line-height: 1.4; }

.linklist { display: grid; gap: 1px; overflow: hidden; border-radius: var(--r-m); background: var(--c-line); box-shadow: var(--shadow); }
.linklist a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 12px 16px; background: var(--c-surface); color: var(--c-ink); text-decoration: none; }
.linklist b { display: block; }
.linklist small { display: block; color: var(--c-muted); font-size: .85rem; line-height: 1.35; }
.linklist .icon { color: var(--c-muted); }

/* ---------- Pagini de conținut ---------- */
.page-head { padding-block: 22px 8px; }
.page-head h1 { font-size: clamp(1.9rem, 7.5vw, 3rem); }
.lead { max-width: 44em; margin: 0; color: var(--c-ink); font-size: clamp(1.05rem, 3.4vw, 1.22rem); line-height: 1.55; }
.crumbs { margin-bottom: 14px; font-size: .82rem; color: var(--c-muted); }
.crumbs ol { display: flex; gap: 6px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: inherit; }

.layout { display: grid; gap: 28px; padding-block: 16px 40px; }
.content { min-width: 0; padding-block: 8px 24px; }
.content__cover { margin: 0 0 22px; border-radius: var(--r-m); overflow: hidden; }
.content__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 8px 0 24px; }
.facts__item { padding: 12px 14px; border-radius: var(--r-s); background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line); }
.facts dt { color: var(--c-muted); font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.facts dd { margin: 2px 0 0; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }

.prose { max-width: 70ch; font-size: 1.05rem; line-height: 1.7; }
.prose > * + h2 { margin-top: 1.8em; }
.prose h2 { font-size: clamp(1.3rem, 4.5vw, 1.6rem); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.2em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.5em; margin-bottom: .45em; }
.prose ul li::before { content: ""; position: absolute; left: .2em; top: .62em; width: .5em; height: .5em; border-radius: 50%; background: var(--c-water); }
.prose ol { list-style: decimal; }
.prose img { border-radius: var(--r-m); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--c-accent); font: italic 1.15rem/1.5 var(--font-display); }
.prose figcaption { margin-top: 8px; color: var(--c-muted); font-size: .85rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: 10px; border-bottom: 1px solid var(--c-line); text-align: left; }
.content > .grid { margin-top: 24px; }

.faq { margin-top: 36px; }
.faq__item { border-bottom: 1px solid var(--c-line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 0; font-weight: 650; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { color: var(--c-muted); transition: transform .2s ease; }
.faq__item[open] summary .icon { transform: rotate(90deg); }
.faq__answer { padding: 0 0 16px; color: var(--c-muted); max-width: 64ch; }
.faq__answer p { margin: 0; }

.sources { margin-top: 36px; padding: 18px; border-radius: var(--r-m); background: var(--c-alt); font-size: .9rem; }
.sources h2 { font-size: 1rem; }
.sources ol { list-style: decimal; padding-left: 1.3em; }
.sources li { margin-bottom: 4px; overflow-wrap: anywhere; }
.updated { margin-top: 24px; color: var(--c-muted); font-size: .85rem; }
.empty { padding: 40px 0; color: var(--c-muted); }

.subnav { padding: 18px; border-radius: var(--r-m); background: var(--c-surface); box-shadow: var(--shadow); }
.subnav h2 { font-size: 1rem; }
.subnav h2 a { color: inherit; text-decoration: none; }
.subnav li a { display: flex; align-items: center; min-height: 44px; padding: 6px 12px; margin-inline: -12px; border-radius: var(--r-s); color: var(--c-ink); text-decoration: none; }
.subnav li a[aria-current="page"] { background: var(--c-alt); color: var(--c-brand-2); font-weight: 650; }

/* ---------- Hartă ---------- */
.map { position: relative; display: grid; place-content: center; justify-items: center; gap: 10px; aspect-ratio: 4 / 3; border-radius: var(--r-m); overflow: hidden; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--c-water) 28%, var(--c-surface)), var(--c-surface)); box-shadow: var(--shadow); z-index: 0; }
.map--small { aspect-ratio: 16 / 10; margin-top: 28px; }
.map__note { margin: 0; padding-inline: 20px; color: var(--c-muted); font-size: .8rem; text-align: center; }
.map.is-loaded { display: block; }
.map.is-loaded > .map__load, .map.is-loaded > .map__note { display: none; }
.map .leaflet-container { position: absolute; inset: 0; font: inherit; }
.map .leaflet-popup-content-wrapper { border-radius: var(--r-s); }
.map .leaflet-popup-content { margin: 12px 14px; font-size: .92rem; }
.map .leaflet-popup-content small { display: block; color: #586860; }
.map-pin { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; background: #1c6b50; border: 2px solid #fff; transform: rotate(-45deg); box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.map-pin--main { width: 38px; height: 38px; background: #e9a53d; }

/* ---------- Paginare ---------- */
.pagination { margin: 32px 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line); color: var(--c-ink); font-weight: 600; text-decoration: none; }
.pagination .current { background: var(--c-brand-2); color: #fff; box-shadow: none; }

/* ---------- Subsol ---------- */
.site-footer { --f-ink: #e3eee8; --f-muted: rgba(207, 224, 214, .78); --f-accent: #8fdcb6; --f-line: rgba(255, 255, 255, .12); margin-top: 56px; padding-bottom: 24px; background: #0c2f24; color: var(--f-muted); font-size: .95rem; }
.site-footer a { color: var(--f-ink); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.site-footer .icon { flex: none; }

/* Banda de sus: sloganul și cele două acțiuni principale */
.site-footer__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-block: 32px; border-bottom: 1px solid var(--f-line); }
.site-footer__pitch { display: flex; align-items: center; gap: 16px; min-width: 0; }
.site-footer__emblem { flex: none; width: 48px; height: 48px; }
.site-footer__slogan { margin: 0; color: #fff; font: 600 clamp(1.45rem, 4.5vw, 2rem)/1.15 var(--font-display); letter-spacing: -.01em; }
.site-footer__where { margin: 6px 0 0; color: var(--f-accent); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.site-footer__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer__actions .btn:hover { text-decoration: none; }
.site-footer .btn--accent, .site-footer .btn--accent:hover { color: var(--c-accent-ink); }
.site-footer .btn--accent:hover { filter: brightness(1.06); }
.site-footer .btn--glass, .site-footer .btn--glass:hover { color: #fff; }
.site-footer .btn--glass:hover { background: rgba(255, 255, 255, .26); }

/* Brandul, contactul și coloanele de linkuri */
.site-footer__grid { display: grid; gap: 8px 32px; padding-block: 32px 8px; }
.site-footer__about { padding-bottom: 20px; }
.site-footer__brand { display: inline-block; color: #fff !important; font: 600 1.35rem/1.1 var(--font-display); text-decoration: none !important; }
.site-footer__brand b { color: var(--f-accent); }
.site-footer__text { max-width: 38ch; margin: 10px 0 18px; line-height: 1.6; }
.site-footer__contact { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-footer__contact li { display: flex; align-items: flex-start; gap: 10px; color: var(--f-ink); }
.site-footer__contact .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--f-accent); }
.site-footer__contact small { display: block; margin-top: 2px; color: var(--f-muted); font-size: .8rem; }
.site-footer__contact a { overflow-wrap: anywhere; }
.site-footer__social { display: flex; gap: 8px; margin: 18px 0 0; }
.site-footer__social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); transition: background .2s ease; }
.site-footer__social a:hover { background: rgba(255, 255, 255, .1); }
.site-footer__social .icon { width: 20px; height: 20px; }

.site-footer__col summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; }
.site-footer__col summary::-webkit-details-marker { display: none; }
.site-footer__col h2 { margin: 0; color: var(--f-accent); font: 700 .78rem/1.3 var(--font); letter-spacing: .1em; text-transform: uppercase; }
.site-footer__col summary .icon { width: 18px; height: 18px; color: var(--f-accent); transition: transform .2s ease; }
.site-footer__col[open] summary .icon { transform: rotate(90deg); }
.site-footer__col ul { margin: 12px 0 0; padding: 0; list-style: none; }
.site-footer__col li a { display: inline-block; padding: 6px 0; color: var(--f-ink); opacity: .88; }
.site-footer__col li a:hover { opacity: 1; }
.site-footer__col li a[aria-current="page"] { color: var(--f-accent); opacity: 1; }

/* Bara de jos: drepturi, documente legale, înapoi sus */
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 16px; padding-top: 20px; border-top: 1px solid var(--f-line); font-size: .85rem; }
.site-footer__copy { margin: 0; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer__legal a { color: var(--f-muted); }
.site-footer__consent { padding: 0; border: 0; background: none; color: var(--f-muted); font: inherit; cursor: pointer; }
.site-footer__consent:hover { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.site-footer__top { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 6px 12px 6px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); color: var(--f-ink) !important; font-weight: 600; }
.site-footer__top:hover { background: rgba(255, 255, 255, .1); text-decoration: none !important; }
.site-footer__top .icon { width: 16px; height: 16px; }

/* Telefon: acțiuni pe toată lățimea, coloanele de linkuri pliabile */
@media (max-width: 639px) {
	.site-footer { margin-top: 40px; }
	.site-footer__cta { padding-block: 28px; }
	.site-footer__actions { width: 100%; }
	.site-footer__actions .btn { flex: 1 1 100%; justify-content: center; }
	.site-footer__grid { gap: 0; padding-top: 28px; }
	.site-footer__about { padding-bottom: 24px; }
	.site-footer__col { border-top: 1px solid var(--f-line); }
	.site-footer__col:last-child { border-bottom: 1px solid var(--f-line); }
	.site-footer__col summary { min-height: 52px; cursor: pointer; }
	.site-footer__col ul { margin: 0 0 12px; }
	.site-footer__col li a { display: block; padding: 10px 0; }
	.site-footer__bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
	.site-footer__top { margin-left: 0; }
}
/* Tabletă și desktop: coloanele mereu deschise */
@media (min-width: 640px) {
	.site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.site-footer__about { grid-column: 1 / -1; }
	.site-footer__col summary { pointer-events: none; }
	.site-footer__col summary .icon { display: none; }
}
@media (min-width: 1000px) {
	.site-footer__grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px 48px; padding-block: 44px 16px; }
	.site-footer__about { grid-column: auto; padding-bottom: 0; }
	.site-footer__cta { padding-block: 40px; }
}

/* ---------- Caseta de cookie-uri ---------- */
.consent { position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px); display: grid; gap: 12px; max-width: 560px; margin-inline: auto; padding: 16px 18px; border-radius: 16px; background: var(--c-surface); color: var(--c-ink); box-shadow: 0 12px 40px rgba(0, 0, 0, .22), 0 0 0 1px var(--c-line); font-size: .92rem; line-height: 1.5; }
.consent[hidden] { display: none; }
.consent p { margin: 0; }
.consent a { color: var(--c-link); }
.consent__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 1000px) {
	.consent { left: 24px; right: auto; bottom: 24px; margin: 0; }
}
@media print { .consent { display: none !important; } }

/* ---------- Offline ---------- */
.offline { display: grid; place-content: center; justify-items: center; gap: 4px; min-height: 100svh; padding: 24px; text-align: center; }
.offline > .icon { width: 56px; height: 56px; color: var(--c-water); }

/* ---------- Tabletă ---------- */
@media (min-width: 640px) {
	.wrap { padding-inline: 24px; }
	.grid { grid-template-columns: repeat(2, 1fr); }
	.stats__grid { grid-template-columns: repeat(4, 1fr); }
	.actions { grid-template-columns: repeat(8, 1fr); }
	.reasons { grid-template-columns: repeat(2, 1fr); }
	.facts { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
	.linklist { grid-template-columns: repeat(2, 1fr); }
	.rail, .river, .chips--scroll { margin-inline: -24px; padding-inline: 24px; scroll-padding-inline: 24px; }
	.more { display: inline-flex; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1000px) {
	:root { --header-h: 72px; --gap: 22px; }
	body { padding-bottom: 0; }
	.tabbar, .sheet { display: none; }
	.nav { margin-left: 8px; }
	.site-header.is-hidden { transform: none; }

	.nav { display: block; }
	.nav__list { display: flex; gap: 2px; }
	.nav__item { position: relative; }
	.nav__item > a { display: flex; align-items: center; height: 40px; padding: 0 11px; white-space: nowrap; border-radius: 999px; color: var(--c-ink); font-size: .93rem; font-weight: 600; text-decoration: none; }
	.nav__item > a:hover, .nav__item > a[aria-current] { background: color-mix(in srgb, currentColor 10%, transparent); }
	.nav__sub { position: absolute; left: 0; top: 100%; min-width: 250px; padding: 8px; border-radius: var(--r-m); background: var(--c-surface); box-shadow: var(--shadow), 0 0 0 1px var(--c-line); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s ease, transform .15s ease, visibility .15s; }
	.nav__item:hover > .nav__sub, .nav__item:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: none; }
	.nav__sub a { display: block; padding: 9px 12px; border-radius: var(--r-s); color: var(--c-ink); font-size: .93rem; text-decoration: none; }
	.nav__sub a:hover { background: var(--c-alt); }

	.hero { min-height: min(84svh, 760px); }
	.hero__content { padding-block: 60px 100px; }
	.section { padding-block: 64px; }
	.section--tight { padding-block: 40px 0; }
	.grid { grid-template-columns: repeat(3, 1fr); }
	.grid--2 { grid-template-columns: repeat(2, 1fr); }
	.rail { grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }
	.river { grid-auto-columns: minmax(190px, 1fr); margin-inline: 0; padding-inline: 0; }
	.reasons { grid-template-columns: repeat(4, 1fr); }
	.actions__icon { width: 64px; height: 64px; }
	.actions a { font-size: .88rem; }
	.layout--aside { grid-template-columns: minmax(0, 1fr) 290px; gap: 56px; }
	.aside { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
	.map { aspect-ratio: 21 / 9; }
	.map--large { aspect-ratio: 16 / 8; }
	.map--small { aspect-ratio: 16 / 8; }
	.linklist { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
	.site-header, .tabbar, .sheet, .site-footer, .btn-row, .map, .aside { display: none !important; }
	body { background: #fff; color: #000; padding: 0; }
}

@media (min-width: 1240px) {
	.site-header__cta { display: inline-flex; margin-left: 8px; }
	.nav { margin-left: 20px; }
}

/* ---------- Căutare: panoul din antet ---------- */
[data-search-open] .when-open, [data-search-open][aria-expanded="true"] .when-closed { display: none; }
[data-search-open][aria-expanded="true"] .when-open { display: block; }
[data-search-open][aria-expanded="true"] { background: color-mix(in srgb, var(--c-ink) 8%, transparent); }
.search-panel { position: absolute; inset: 100% 0 auto 0; padding: 14px 0 18px; background: var(--c-bg); border-bottom: 1px solid var(--c-line); box-shadow: 0 18px 30px -18px rgba(8, 28, 21, .35); color: var(--c-ink); animation: drop .2s ease; }
.search-panel[hidden] { display: none; }
.search-panel .searchbar { margin: 0; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

.searchbar { min-height: 56px; transition: box-shadow .15s ease; }
.searchbar:focus-within { box-shadow: inset 0 0 0 2px var(--c-brand-2); }
.searchbar input::placeholder { color: var(--c-muted); }
.searchbar input::-webkit-search-cancel-button { -webkit-appearance: none; }

.suggest { margin-top: 16px; }
.suggest__label { margin: 0 0 8px; color: var(--c-muted); font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.suggest .chips { margin: 0; }

/* ---------- Căutare: pagina de rezultate ---------- */
.search-head { padding-block: 28px 20px; background: var(--c-alt); border-bottom: 1px solid var(--c-line); }
.search-head h1 { margin-bottom: 18px; font-size: clamp(1.6rem, 6.5vw, 2.4rem); overflow-wrap: anywhere; }
.search-head .searchbar { margin: 0; box-shadow: var(--shadow), inset 0 0 0 1px var(--c-line); }
.search-head .searchbar:focus-within { box-shadow: var(--shadow), inset 0 0 0 2px var(--c-brand-2); }
.search-head__count { margin: 14px 0 0; color: var(--c-muted); font-size: .9rem; font-weight: 600; }
.search-body { padding-block: 24px 48px; }
.search-body__title { margin: 32px 0 14px; font-size: 1.2rem; }

.results { display: grid; gap: 12px; }
.result { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r-m); background: var(--c-surface); box-shadow: var(--shadow); color: var(--c-ink); text-decoration: none; transition: transform .15s ease; }
.result:active { transform: scale(.985); }
.result:hover .result__title { color: var(--c-link); }
.result__media { display: block; width: 76px; height: 76px; border-radius: var(--r-s); overflow: hidden; background: var(--c-alt); }
.result__media > * { width: 100%; height: 100%; object-fit: cover; }
.result__body { display: grid; gap: 4px; min-width: 0; }
.result__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--c-muted); font-size: .78rem; font-weight: 600; }
.result__meta > span:not(.chip) { display: inline-flex; align-items: center; gap: 3px; }
.result__meta .chip { padding: 2px 9px; font-size: .72rem; }
.result__meta .icon { width: 1.1em; height: 1.1em; }
.result__title { font-size: 1.05rem; font-weight: 700; line-height: 1.25; }
.result__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--c-muted); font-size: .9rem; line-height: 1.45; }
.result__arrow { color: var(--c-muted); }
.result mark { padding: 0 .12em; border-radius: 4px; background: color-mix(in srgb, var(--c-accent) 38%, transparent); color: inherit; }

.search-empty { padding: 28px 20px; margin-bottom: 8px; border-radius: var(--r-m); background: var(--c-surface); box-shadow: var(--shadow); text-align: center; }
.search-empty .icon { width: 44px; height: 44px; margin: 0 auto 10px; color: var(--c-water); }
.search-empty h2 { font-size: 1.2rem; overflow-wrap: anywhere; }
.search-empty p { margin: 0; color: var(--c-muted); }

@media (min-width: 640px) {
	.search-head { padding-block: 44px 28px; }
	.result { grid-template-columns: 112px minmax(0, 1fr) auto; gap: 18px; padding: 14px; }
	.result__media { width: 112px; height: 84px; }
	.result__title { font-size: 1.15rem; }
	.search-body .linklist { grid-template-columns: repeat(2, 1fr); }
}

/* Video de fundal în antet: apare peste imagine doar după ce pornește. */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; pointer-events: none; }
.hero-video.is-playing { opacity: 1; }
.hero-vbtn { position: absolute; z-index: 2; top: calc(var(--header-h, 64px) + 12px); right: 16px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: rgba(8, 28, 21, .35); color: #fff; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .2s ease; }
.hero-vbtn:hover { background: rgba(8, 28, 21, .6); }
.hero-vbtn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hero-vbtn svg { width: 18px; height: 18px; }
.hero-vbtn .hero-vbtn__play, .hero-vbtn[aria-pressed="true"] .hero-vbtn__pause { display: none; }
.hero-vbtn[aria-pressed="true"] .hero-vbtn__play { display: block; }
.hub-hero .hero-vbtn { top: 16px; }
@media (prefers-reduced-motion: reduce) { .hero-video, .hero-vbtn { display: none; } }
.admin-note { margin: 12px 0; padding: 10px 14px; border-left: 4px solid var(--c-accent); border-radius: var(--r-s); background: color-mix(in srgb, var(--c-accent) 14%, var(--c-surface)); font-size: .9rem; }
