/* dalas2.bg: статична версия на сайта на Почивна станция „Далас 2“ */

:root {
	/* Морска палитра: синьо от водата, пясък от плажа, корал от покривите */
	--navy: #0e4c6e;
	--navy-dark: #0a3550;
	--sand: #f4ede1;
	--sand-line: #e6dac6;
	--coral: #e07a5f;
	--coral-dark: #b4472f;   /* за текст и връзки върху бяло (контраст ≥ 4.5:1) */
	--text: #2b3a42;
	--muted: #5f6f78;
	--heading: var(--navy);
	--accent: var(--coral-dark);
	--radius: 12px;
	--shadow: 0 6px 18px rgba(14, 76, 110, .12);
	--serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--sans: "Sofia Sans", system-ui, sans-serif;
	--header-h: 72px;
	--wrap: 1200px;
	--measure: 680px;        /* удобна ширина за четене (~70 знака на ред) */
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-h);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--sans);
	font-size: 18px;
	line-height: 1.6;
	color: var(--text);
	background: #fff;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color .2s ease;
}

a:hover {
	color: var(--accent);
}

/* Ясен контур при навигация с клавиатура */
:focus-visible {
	outline: 3px solid var(--coral);
	outline-offset: 3px;
	border-radius: 4px;
}

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 30px;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	padding: 10px 16px;
	background: #fff;
	color: var(--heading);
}

.skip-link:focus {
	left: 10px;
	top: 10px;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Горно меню ---------- */

.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 50;
	height: var(--header-h);
	background: rgba(255, 255, 255, .97);
	border-bottom: 1px solid var(--sand-line);
	transition: box-shadow .3s ease, height .4s cubic-bezier(.2, .7, .2, 1);
}

.site-header.is-scrolled {
	box-shadow: 0 2px 14px rgba(10, 53, 80, .12);
}

/* При превъртане надолу лентата се свива; при превъртане нагоре се връща (main.js) */
.site-header.is-compact {
	height: 56px;
}

.site-header.is-compact .logo img {
	width: 128px;
}

.site-header .wrap {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.logo img {
	width: 160px;
	height: auto;
	transition: width .4s cubic-bezier(.2, .7, .2, 1);
}

.main-nav ul {
	position: relative;     /* спрямо нея се мести плъзгащата се линия */
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 34px;
}

.main-nav a {
	position: relative;
	display: block;
	font-size: 15px;
	letter-spacing: .06em;
	color: var(--text);
	padding: 6px 0;
	transition: color .3s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
	color: var(--navy);
}

/* Една коралова линия, която се плъзга под текущия (или посочения) раздел и сменя ширината си */
.nav-indicator {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 2px;
	border-radius: 1px;
	background: var(--coral);
	opacity: 0;
	pointer-events: none;
	transition: transform .5s cubic-bezier(.2, .7, .2, 1), width .5s cubic-bezier(.2, .7, .2, 1), opacity .3s ease;
}

/* Без JavaScript: линия под текущата страница, както преди */
html:not(.js) .main-nav a[aria-current="page"] {
	color: var(--navy);
	box-shadow: inset 0 -2px 0 var(--coral);
}

.menu-toggle {
	display: none;
	background: none;
	border: 0;
	padding: 10px;
	cursor: pointer;
	color: var(--navy);
}

.menu-toggle svg {
	width: 26px;
	height: 26px;
}

/* ---------- Заглавна снимка ---------- */

/* Снимката не заема целия екран: под нея се вижда началото на „За нас“ и е ясно, че има още */
.hero {
	position: relative;
	height: clamp(460px, 72vh, 760px);
	color: #fff;
	overflow: hidden;
}

/* Снимката е по-висока от рамката, за да има място за паралакса (data-scroll-speed) */
.hero-media {
	position: absolute;
	inset: -15% 0;
}

.hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	animation: hero-zoom 2.6s cubic-bezier(.2, .7, .2, 1) both;
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(10, 53, 80, .6), rgba(10, 53, 80, .15) 55%, rgba(10, 53, 80, 0));
}

.hero-intro {
	position: relative;
	z-index: 1;
	width: 90%;
	margin: 0 auto;
	top: 55%;
	transform: translateY(-50%);
}

.hero-intro h1 {
	margin: 0 0 22px;
	font-family: var(--serif);
	font-size: 72px;
	line-height: 1.05;
	font-weight: 600;
	letter-spacing: .005em;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .25);
}

.hero-intro hr {
	width: 80px;
	height: 3px;
	margin: 0 0 22px;
	border: 0;
	border-radius: 2px;
	background: var(--coral);
}

.hero-intro p {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: .2em;
	text-transform: uppercase;
}

.hero-more {
	position: absolute;
	z-index: 1;
	left: 50%;
	bottom: 8%;
	transform: translateX(-50%);
	color: #fff;
}

.hero-more svg {
	width: 48px;
	height: 48px;
	animation: bounce 2s infinite;
}

.hero-more:hover {
	color: #fff;
}

@keyframes bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-20px); }
}

/* Влизане на заглавната част: снимката леко се приближава, текстът изплува, линията се разтяга */
.hero-text h1 { animation: hero-up .9s .15s cubic-bezier(.2, .7, .2, 1) both; }
.hero-text hr { transform-origin: left center; animation: line-grow .8s .55s cubic-bezier(.2, .7, .2, 1) both; }
.hero-text p { animation: hero-up .9s .75s cubic-bezier(.2, .7, .2, 1) both; }
.hero-more { animation: fade-in 1s 1.3s both; }

@keyframes hero-zoom {
	from { transform: scale(1.1); }
	to { transform: scale(1); }
}

@keyframes hero-up {
	from { opacity: 0; transform: translateY(30px); }
	to { opacity: 1; transform: none; }
}

@keyframes line-grow {
	from { transform: scaleX(0); }
	to { transform: scaleX(1); }
}

@keyframes fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* Лента за прочетеното най-горе */
.scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 60;
	height: 3px;
	background: var(--coral);
	transform: scaleX(0);
	transform-origin: left center;
	pointer-events: none;
}

/* „Глава“ в долния ляв ъгъл: номер, тире, име на раздела и колко е прочетено от него */
.chapter {
	position: fixed;
	left: 28px;
	bottom: 26px;
	z-index: 40;
	display: none;
	align-items: center;
	gap: 12px;
	padding: 10px 18px 10px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .86);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 4px 18px rgba(10, 53, 80, .12);
	pointer-events: none;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .5s ease, transform .5s ease, bottom .3s ease;
}

.chapter.is-on {
	opacity: 1;
	transform: none;
}

.chapter-num {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .16em;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

.chapter-dash {
	width: 22px;
	height: 2px;
	border-radius: 1px;
	background: var(--coral);
}

/* Кутия с фиксирана височина: старото име излиза нагоре, новото влиза отдолу */
.chapter-title-box {
	position: relative;
	display: grid;
	height: 24px;
	overflow: hidden;
	transition: width .45s ease;
}

.chapter-title {
	grid-area: 1 / 1;
	justify-self: start;   /* ширината е по текста, за да може кутията да я „догони“ плавно */
	font-family: var(--serif);
	font-style: italic;
	font-size: 18px;
	line-height: 24px;
	color: var(--navy);
	white-space: nowrap;
	transition: transform .55s cubic-bezier(.2, .7, .2, 1), opacity .55s ease;
}

.chapter-title.is-enter { transform: translateY(100%); opacity: 0; }
.chapter-title.is-leave { transform: translateY(-100%); opacity: 0; }

.chapter-line {
	width: 56px;
	height: 2px;
	border-radius: 1px;
	background: var(--sand-line);
	overflow: hidden;
}

.chapter-line-fill {
	display: block;
	height: 100%;
	background: var(--navy);
	transform: scaleX(0);
	transform-origin: left center;
}

@media (min-width: 900px) {
	.chapter { display: flex; }
}

/* Lenis (плавно превъртане): стиловете от lenis.css + изключено CSS плавно превъртане, за да не се бият */
html.lenis,
html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---------- Раздели ---------- */

main {
	display: block;
}

.section {
	padding: 6em 0 5em;
}

/* Разделите се редуват: бяло и пясъчно */
.section-sand {
	background: var(--sand);
}

.page-main {
	padding-top: calc(var(--header-h) + 3.5em);
	padding-bottom: 5em;
	background: var(--sand);
}

/* Еднакво заглавие за всеки раздел и страница */
.section-title {
	margin: 0 0 1.4em;
	color: var(--heading);
	font-family: var(--serif);
	font-size: 42px;
	font-weight: 600;
	line-height: 1.15;
	text-align: center;
}

.section-title::after {
	content: "";
	display: block;
	width: 56px;
	height: 3px;
	margin: .45em auto 0;
	border-radius: 2px;
	background: var(--coral);
}

.prose {
	max-width: var(--measure);
	margin: 0 auto;
	font-size: 18px;
	line-height: 1.8;
}

.prose p {
	margin: 0 0 1.3em;
}

.prose p:last-child {
	margin-bottom: 0;
}

/* ---------- Бледи тематични елементи зад „За нас“ ---------- */

.section-deco {
	position: relative;
	overflow: hidden;
}

.section-deco > .wrap {
	position: relative;
	z-index: 1;
}

.deco-layer {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.deco-layer > * {
	position: absolute;
}

/* Голям контур на слънце */
.deco-sun {
	top: -40px;
	right: -140px;
	width: 460px;
	height: 460px;
	border: 1.5px solid rgba(224, 122, 95, .22);
	border-radius: 50%;
}

.deco-sun::after {
	content: "";
	position: absolute;
	inset: 46px;
	border: 1px solid rgba(224, 122, 95, .12);
	border-radius: 50%;
}

/* Огромна дума само с контур; плъзга се хоризонтално според --progress (0 → 1) от Locomotive */
.deco-word {
	top: 34%;
	left: 0;
	right: 0;
	text-align: center;
	white-space: nowrap;
}

.deco-word span {
	display: inline-block;
	font-family: var(--serif);
	font-style: italic;
	font-weight: 500;
	font-size: clamp(120px, 19vw, 300px);
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1px rgba(14, 76, 110, .09);
	transform: translateX(calc((var(--progress, .5) - .5) * -36vw));
	will-change: transform;
}

/* Вълнообразни линии */
.deco-waves {
	width: 900px;
	height: 140px;
	fill: none;
	stroke: rgba(14, 76, 110, .08);
	stroke-width: 1.5;
	vector-effect: non-scaling-stroke;
	/* краищата избледняват, за да не се вижда къде свършват линиите */
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
}

.deco-waves path {
	vector-effect: non-scaling-stroke;
}

.deco-waves-1 {
	left: -260px;
	top: 16%;
}

.deco-waves-2 {
	right: -300px;
	bottom: 12%;
	stroke: rgba(224, 122, 95, .14);
}

/* Чайки: по две дъги */
.deco-gulls {
	top: 8%;
	right: 11%;
	width: 160px;
	height: 70px;
	fill: none;
	stroke: rgba(14, 76, 110, .2);
	stroke-width: 1.6;
	stroke-linecap: round;
}

/* Координатите на станцията, вертикално край левия ръб */
.deco-coords {
	left: 26px;
	top: 50%;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .32em;
	color: rgba(95, 111, 120, .55);
	white-space: nowrap;
	writing-mode: vertical-rl;
	transform-origin: center;
}

/* „Цени“: слънцето залязва в долния ляв ъгъл, хоризонтът минава през него, „Лято“ се движи обратно */
.deco-prices .deco-sun {
	top: auto;
	right: auto;
	left: -150px;
	bottom: -250px;
}

.deco-horizon {
	left: 0;
	right: 0;
	bottom: 150px;
	height: 1px;
	background: linear-gradient(90deg, rgba(224, 122, 95, .28), rgba(224, 122, 95, .1) 45%, transparent 80%);
}

.deco-prices .deco-word {
	top: 22%;
}

.deco-word.is-reverse span {
	transform: translateX(calc((var(--progress, .5) - .5) * 36vw));
}

.deco-prices .deco-waves-1 {
	left: auto;
	right: -280px;
	top: 10%;
	stroke: rgba(14, 76, 110, .08);
}

.deco-prices .deco-gulls {
	right: auto;
	left: 9%;
	top: 9%;
}

.deco-prices .deco-coords {
	left: auto;
	right: 26px;
	top: 38%;
}

@media (max-width: 1100px) {
	.deco-coords { display: none; }      /* няма място край текста */
}

@media (max-width: 720px) {
	.deco-sun { width: 260px; height: 260px; right: -110px; top: -30px; }
	.deco-sun::after { inset: 28px; }
	.deco-waves { width: 600px; height: 100px; }
	.deco-gulls { right: 3%; top: 1.5%; width: 90px; height: 40px; }
	.deco-word { top: 40%; }
}

/* Плавно появяване при превъртане (само с JavaScript и без „намалено движение“) */
.js .reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .8s ease, transform .8s ease;
}

.js .reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* Последователно появяване на елементите в раздела (--i се задава от main.js) */
.js .reveal .stagger > * {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .6s ease, transform .6s ease;
	transition-delay: calc(var(--i, 0) * 80ms + 200ms);
}

.js .reveal.is-visible .stagger > * {
	opacity: 1;
	transform: none;
}

/* ---------- Цени: семпла таблица без рамки и цветни полета ---------- */

.price-table,
.price-table-v {
	width: 100%;
	border-collapse: collapse;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.price-table {
	max-width: 820px;
	margin: 0 auto;
}

/* Месеците: дребни, приглушени главни букви с тънка коралова линия отдолу */
.price-table thead th,
.price-table-v thead th {
	padding: 0 10px 16px;
	border-bottom: 1px solid var(--coral);
	color: var(--muted);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .18em;
}

.price-table thead td,
.price-table-v thead td {
	border-bottom: 1px solid var(--coral);
}

/* Вид настаняване: курсив като заглавията */
.price-table tbody th,
.price-table-v tbody th {
	padding: 22px 10px;
	text-align: left;
	color: var(--navy);
	font-family: var(--serif);
	font-style: italic;
	font-size: 22px;
	font-weight: 500;
	letter-spacing: 0;
}

.price-table tbody td,
.price-table-v tbody td {
	padding: 22px 10px;
	color: var(--navy);
	font-size: 22px;
	font-weight: 600;
}

.price-table tbody tr + tr > *,
.price-table-v tbody tr + tr > * {
	border-top: 1px solid var(--sand-line);
}

.price-table-v {
	display: none;
}

.price-table-v tbody td {
	font-size: 19px;
}

.price-table-v tbody th {
	font-size: 18px;
}

.price-note {
	max-width: 760px;
	margin: 44px auto 0;
	padding: 2px 0 2px 20px;
	border-left: 2px solid var(--coral);
	color: var(--muted);
	line-height: 1.7;
	font-size: 16px;
}

/* ---------- Галерия: бутони за категориите и лента със стрелки ---------- */

.gallery {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gallery a {
	display: block;
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--sand-line);
	box-shadow: var(--shadow);
}

.gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s ease;
}

.gallery a:hover img,
.gallery a:focus-visible img {
	transform: scale(1.06);
}

.gallery-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: -.4em 0 2em;
}

.gallery-tabs button {
	padding: 8px 22px;
	border: 1px solid var(--sand-line);
	border-radius: 999px;
	background: #fff;
	font: inherit;
	font-size: 15px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--text);
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.gallery-tabs button:hover {
	border-color: var(--coral);
	color: var(--navy);
}

.gallery-tabs button[aria-selected="true"] {
	background: var(--navy);
	border-color: var(--navy);
	color: #fff;
}

.carousel {
	position: relative;
}

.gallery-strip {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	padding: 6px 0 22px;     /* място за сянката под снимките */
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
}

.gallery-strip::-webkit-scrollbar {
	display: none;
}

.gallery-strip li {
	flex: 0 0 calc((100% - 42px) / 4);
	scroll-snap-align: start;
}

.carousel-btn {
	position: absolute;
	top: calc(50% - 8px);
	z-index: 2;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--navy);
	box-shadow: 0 4px 14px rgba(10, 53, 80, .25);
	cursor: pointer;
	transform: translateY(-50%);
	transition: opacity .25s ease, color .2s ease, background-color .2s ease;
}

.carousel-btn:hover {
	background: var(--navy);
	color: #fff;
}

.carousel-btn svg {
	width: 24px;
	height: 24px;
}

.carousel-prev { left: -24px; }
.carousel-next { right: -24px; }

.carousel-btn:disabled {
	opacity: 0;
	pointer-events: none;
}

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(6, 30, 45, .94);
}

.lightbox[hidden] {
	display: none;
}

.lightbox img {
	max-width: calc(100vw - 140px);
	max-height: calc(100vh - 100px);
	width: auto;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 0 30px rgba(0, 0, 0, .5);
}

.lightbox button {
	position: absolute;
	background: none;
	border: 0;
	padding: 12px;
	color: #fff;
	cursor: pointer;
	opacity: .8;
}

.lightbox button:hover,
.lightbox button:focus-visible {
	opacity: 1;
}

.lightbox button svg {
	width: 36px;
	height: 36px;
}

.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

.lb-count {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	color: #cfd8dc;
	font-size: 14px;
	letter-spacing: .1em;
}

/* ---------- Правила и инструкция: карти ---------- */

.doc-intro {
	max-width: var(--measure);
	margin: 0 auto 2.2em;
	text-align: center;
	font-size: 18px;
	line-height: 1.7;
}

.doc-list {
	max-width: 860px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
	counter-reset: rule;
	display: grid;
	gap: 14px;
}

.doc-list > li {
	position: relative;
	counter-increment: rule;
	padding: 20px 24px 20px 78px;
	background: #fff;
	border: 1px solid var(--sand-line);
	border-radius: var(--radius);
	box-shadow: 0 2px 8px rgba(14, 76, 110, .06);
	line-height: 1.7;
}

.doc-list > li::before {
	content: counter(rule);
	position: absolute;
	left: 22px;
	top: 18px;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--navy);
	color: #fff;
	font-weight: 700;
	font-size: 16px;
}

.doc-cards {
	max-width: 1000px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 22px;
}

.doc-card {
	padding: 26px 28px;
	background: #fff;
	border: 1px solid var(--sand-line);
	border-top: 4px solid var(--navy);
	border-radius: var(--radius);
	box-shadow: 0 2px 8px rgba(14, 76, 110, .06);
}

.doc-card.is-alert {
	border-top-color: var(--coral);
}

.doc-card h2 {
	margin: 0 0 .7em;
	font-family: var(--serif);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--navy);
}

.doc-card ul {
	margin: 0;
	padding-left: 1.2em;
	line-height: 1.7;
}

.doc-card li + li {
	margin-top: .45em;
}

.doc-card li::marker {
	color: var(--coral);
}

/* ---------- Страница 404 и бутони ---------- */

.not-found {
	min-height: calc(100vh - 140px);
	display: flex;
	align-items: center;
}

.not-found .wrap {
	width: 100%;
}

.not-found-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 0;
}

.btn {
	display: inline-block;
	padding: 12px 26px;
	border: 2px solid var(--navy);
	border-radius: 999px;
	background: var(--navy);
	color: #fff;
	font-weight: 600;
	letter-spacing: .04em;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.btn:hover {
	background: var(--navy-dark);
	border-color: var(--navy-dark);
	color: #fff;
}

.btn-outline {
	background: transparent;
	color: var(--navy);
}

.btn-outline:hover {
	background: var(--navy);
	color: #fff;
}

/* ---------- Контакти и долна лента ---------- */

/* Картата е лента на цялата ширина, а контактите са „плаваща“ карта върху нея */
.contacts {
	position: relative;
	background: var(--sand);
}

.contacts-map {
	position: relative;
	z-index: 0;             /* слоевете на Leaflet остават под картата с контактите */
	height: 660px;          /* картата с контактите (~580 px) + място за вълната на футъра */
	background: #e7dfd1;
}

.map-fallback {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	margin: 0;
	padding: 0 8%;
	color: var(--muted);
	font-size: 15px;
	text-align: right;
}

.contacts-map.is-ready .map-fallback {
	display: none;
}

/* Тоновете на картата към палитрата на сайта (морето остава синкаво) */
.contacts-map .leaflet-tile-pane {
	filter: saturate(.55) sepia(.18) brightness(1.04) contrast(.96);
}

.contacts-map .leaflet-container,
.contacts-map.leaflet-container {
	font-family: var(--sans);
	background: #e7dfd1;
}

.contacts-layer {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	padding-bottom: 70px;   /* картата с контактите да не слиза върху вълната на футъра */
	pointer-events: none;   /* картата отдолу остава достъпна извън картата с контактите */
}

.contacts-layer .wrap {
	width: 100%;
}

.contacts-card {
	width: 400px;
	max-width: 100%;
	padding: 34px 34px 30px;
	background: #fff;
	border-radius: var(--radius);
	box-shadow: 0 18px 50px rgba(10, 53, 80, .22);
	pointer-events: auto;
}

.contacts-card .section-title {
	margin-bottom: 1em;
	font-size: 32px;
	text-align: left;
}

.contacts-card .section-title::after {
	margin-left: 0;
}

.contacts dl {
	margin: 0;
	display: grid;
	gap: 16px;
}

.directions-title {
	margin: 24px 0 10px;
	padding-top: 20px;
	border-top: 1px solid var(--sand-line);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--muted);
}

.directions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.dir-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 14px;
	border: 1px solid var(--sand-line);
	border-radius: 999px;
	background: #fff;
	color: var(--navy);
	font-size: 14px;
	font-weight: 600;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.dir-btn svg {
	width: 18px;
	height: 18px;
	flex: none;
}

.dir-btn:hover {
	background: var(--navy);
	border-color: var(--navy);
	color: #fff;
}

/* Маркер на станцията: коралова карфица с пулсиращ кръг */
.map-pin {
	position: relative;
	display: block;
	width: 44px;
	height: 56px;
}

.map-pin svg {
	position: relative;
	z-index: 1;
	width: 44px;
	height: 56px;
	filter: drop-shadow(0 4px 6px rgba(10, 53, 80, .35));
}

.map-pin::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -6px;
	width: 22px;
	height: 22px;
	margin-left: -11px;
	border-radius: 50%;
	background: rgba(224, 122, 95, .45);
	animation: pin-pulse 2.2s ease-out infinite;
}

@keyframes pin-pulse {
	0% { transform: scale(.4); opacity: 1; }
	100% { transform: scale(2.6); opacity: 0; }
}

.leaflet-popup-content {
	margin: 14px 18px;
	font-size: 15px;
	line-height: 1.5;
}

.leaflet-popup-content strong {
	font-family: var(--serif);
	font-size: 17px;
	color: var(--navy);
}

.leaflet-popup-content a {
	color: var(--coral-dark);
	font-weight: 600;
}

.contact-field dt {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .14em;
	color: var(--muted);
}

.contact-field dd {
	margin: 4px 0 0;
	font-size: 18px;
	color: var(--text);
}

.contact-field dd a {
	color: var(--navy);
	font-weight: 600;
}

.contact-field dd a:hover {
	color: var(--accent);
}


/* Футър: тъмносин, разреден, с вълна отгоре и голямо „Далас 2“ с контур */
.site-footer {
	position: relative;
	padding: 90px 0 0;
	background: linear-gradient(180deg, var(--navy-dark) 0%, #072a40 100%);
	color: rgba(223, 232, 238, .82);
	font-size: 15px;
	line-height: 1.7;
}

/* Вълната е над долния край на предишния раздел (картата) */
.footer-wave {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 80px;
	transform: translateY(-79px);
	fill: var(--navy-dark);
	pointer-events: none;
}

.footer-main {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr;
	gap: 60px;
	align-items: start;
}

.footer-name {
	margin: 0 0 14px;
	font-family: var(--serif);
	font-style: italic;
	font-size: 46px;
	font-weight: 500;
	line-height: 1;
	color: #fff;
}

.footer-tagline {
	margin: 0;
	max-width: 280px;
	color: rgba(223, 232, 238, .7);
	line-height: 1.8;
}

.footer-heading {
	margin: 6px 0 18px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: rgba(242, 178, 159, .85);
}

.footer-col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.footer-col a {
	position: relative;
	color: #fff;
	padding-bottom: 2px;
}

/* Тънка коралова линия под връзката при посочване */
.footer-col a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--coral);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .35s ease;
}

.footer-col a:hover {
	color: #fff;
}

.footer-col a:hover::after,
.footer-col a[aria-current="page"]::after {
	transform: scaleX(1);
}

.footer-col span {
	color: rgba(223, 232, 238, .7);
}

.footer-bottom {
	position: relative;
	margin-top: 64px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 14px 30px;
	padding-top: 26px;
	padding-bottom: 30px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: 13px;
	letter-spacing: .04em;
	color: rgba(223, 232, 238, .6);
}

.footer-bottom p {
	margin: 0;
}

.footer-bottom .sep {
	margin: 0 .4em;
	color: rgba(242, 178, 159, .7);
}

/* Надписът за OpenStreetMap не бива да остане под вълната на футъра */
.contacts-map .leaflet-bottom {
	bottom: 46px;
}

.to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 40;
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--navy);
	color: #fff;
	box-shadow: 0 4px 14px rgba(10, 53, 80, .3);
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s ease, background-color .2s ease;
}

.to-top.is-visible {
	opacity: .9;
	pointer-events: auto;
}

.to-top:hover {
	color: #fff;
	background: var(--coral-dark);
	opacity: 1;
}

.to-top svg {
	width: 22px;
	height: 22px;
}

/* ---------- Намалено движение ---------- */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hero-more svg { animation: none; }
	.gallery-strip { scroll-behavior: auto; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
	.js .reveal .stagger > * { opacity: 1; transform: none; transition: none; }
	.hero-media img, .hero-text h1, .hero-text hr, .hero-text p, .hero-more { animation: none; }
	.map-pin::before { animation: none; opacity: 0; }
	.chapter, .chapter-title, .chapter-title-box { transition: none; }
	.gallery img, .nav-indicator, .site-header, .logo img { transition: none; }
}

/* ---------- Мобилни ---------- */

@media (max-width: 860px) {
	.doc-cards { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
	:root { --header-h: 64px; }

	body { font-size: 16px; }

	.wrap { padding: 0 16px; }

	.logo img { width: 130px; }

	.menu-toggle { display: block; }

	.main-nav {
		position: absolute;
		top: 100%;              /* точно под лентата, и когато е свита */
		left: 0;
		right: 0;
		background: #fff;
		border-bottom: 1px solid var(--sand-line);
		box-shadow: 0 8px 16px rgba(10, 53, 80, .08);
		display: none;
	}

	.main-nav.is-open { display: block; }

	.main-nav ul {
		flex-direction: column;
		gap: 0;
		padding: 8px 16px 16px;
	}

	.main-nav a {
		display: block;
		padding: 12px 0;
		font-size: 17px;
		border-bottom: 1px solid var(--sand);
	}

	.nav-indicator { display: none; }

	.site-header.is-compact { height: 54px; }
	.site-header.is-compact .logo img { width: 112px; }

	.hero { height: clamp(420px, 68svh, 640px); }

	.hero-intro h1 { font-size: 46px; }
	.hero-intro p { font-size: 14px; letter-spacing: .14em; }

	.section { padding: 4em 0 3.5em; }

	.section-title { font-size: 32px; }

	.prose { font-size: 16px; }

	.price-table { display: none; }
	.price-table-v { display: table; }

	.price-note { font-size: 15px; }

	/* На телефон картата е отгоре, а контактите под нея */
	.contacts-map { height: 340px; }

	.map-fallback { justify-content: center; text-align: center; }

	.contacts-layer {
		position: static;
		display: block;
		padding-bottom: 0;
		pointer-events: auto;
	}

	.contacts-card {
		width: auto;
		margin: -48px 0 0;
		padding: 26px 20px 24px;
		position: relative;
		z-index: 1;
	}

	.contacts-card .section-title { font-size: 28px; }

	.contacts .contacts-layer .wrap { padding-bottom: 72px; }  /* място за вълната на футъра */

	.site-footer { padding-top: 70px; }

	.footer-wave { height: 44px; transform: translateY(-43px); }

	.footer-main {
		grid-template-columns: 1fr 1fr;
		gap: 44px 24px;
	}

	.footer-brand { grid-column: 1 / -1; }

	.footer-name { font-size: 40px; }

	.footer-bottom { margin-top: 48px; }

	.footer-bottom {
		flex-direction: column;
		align-items: flex-start;
	}

	.contacts-map .leaflet-bottom { bottom: 26px; }

	/* Лентата със снимки стига до ръба на екрана */
	.carousel {
		margin: 0 -16px;
	}

	.gallery-strip {
		gap: 10px;
		padding-left: 16px;
		padding-right: 16px;
		scroll-padding-inline: 16px;
	}

	.gallery-strip li {
		flex-basis: calc((100% - 10px) / 1.35);
	}

	.carousel-btn {
		width: 40px;
		height: 40px;
	}

	.carousel-prev { left: 10px; }
	.carousel-next { right: 10px; }

	.gallery-tabs {
		gap: 6px;
	}

	.gallery-tabs button {
		padding: 6px 12px;
		font-size: 13px;
		letter-spacing: .04em;
	}

	.doc-list > li {
		padding: 16px 16px 16px 62px;
	}

	.doc-list > li::before {
		left: 14px;
		top: 14px;
		width: 34px;
		height: 34px;
		font-size: 15px;
	}

	.doc-card { padding: 22px 20px; }

	.lightbox img {
		max-width: 100vw;
		max-height: calc(100vh - 120px);
		border-radius: 0;
	}

	.lb-prev, .lb-next { top: auto; bottom: 4px; transform: none; }
}
