/* ==========================================================================
   Боровата къща — main.css
   Организация: 1) fonts  2) tokens  3) base  4) layout  5) components
                6) utilities  7) pages  8) responsive
   Пиши нови правила в съответната секция. Без inline CSS в темплейтите.
   ========================================================================== */

/* ==========================================================================
   1. FONTS
   @font-face правилата се генерират от inc/assets.php (bk_font_face_css) и се
   вмъкват inline — така липсващ файл не води до 404 заявка, а сайтът просто
   ползва системните шрифтове. Файловете са в assets/fonts/.
   ========================================================================== */

/* ==========================================================================
   2. TOKENS
   ========================================================================== */

:root {
	/* Палитра от брифа. */
	--pine: #234638;
	--forest: #315a46;
	--cream: #f5f0e6;
	--beige: #ded1bc;
	--wood: #76533c;
	--charcoal: #272a28;

	/* Производни нюанси (само толкова, колкото са нужни за контраст). */
	--pine-dark: #1a3429;
	--cream-soft: #faf7f1;
	--beige-line: #cfbfa5;       /* декоративни рамки (карти, разделители) */
	--line-input: #a68858;       /* рамки на полета за въвеждане — 3.13:1 (WCAG 1.4.11) */
	--wood-light: #8e6a51; /* WCAG AA: 4.61:1 с текста на бутона */

	/* Семантични цветове. */
	--bg: var(--cream-soft);
	--bg-alt: var(--cream);
	--bg-dark: var(--pine);
	--text: var(--charcoal);
	--text-muted: #55605a;
	--text-invert: #fbf9f5;
	--line: var(--beige-line);
	--accent: var(--wood);
	--focus: #a86a3d;

	/* Типография. */
	--font-display: "Literata", "Iowan Old Style", Georgia, "Times New Roman", serif;
	--font-body: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

	--fs-100: 0.8125rem;  /* 13px — дребен текст */
	--fs-200: 0.9375rem;  /* 15px */
	--fs-300: 1.0625rem;  /* 17px — базов */
	--fs-400: 1.1875rem;
	--fs-500: 1.4375rem;
	--fs-600: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
	--fs-700: clamp(1.875rem, 1.3rem + 2.6vw, 2.75rem);
	--fs-800: clamp(2.25rem, 1.4rem + 4.2vw, 4rem);

	--lh-tight: 1.15;
	--lh-heading: 1.22;
	--lh-body: 1.65;
	--ls-eyebrow: 0.14em;

	/* Разстояния (4px скала). */
	--sp-1: 0.25rem;
	--sp-2: 0.5rem;
	--sp-3: 0.75rem;
	--sp-4: 1rem;
	--sp-5: 1.5rem;
	--sp-6: 2rem;
	--sp-7: 3rem;
	--sp-8: 4rem;
	--sp-9: 6rem;

	/* Радиуси — умерени, с един „дърводелски“ детайл (вижте --radius-notch). */
	--radius-sm: 4px;
	--radius: 8px;
	--radius-lg: 14px;
	--radius-notch: 18px 4px 18px 4px;
	--radius-pill: 999px;

	/* Сенки — фини. */
	--shadow-sm: 0 1px 2px rgba(39, 42, 40, 0.06);
	--shadow: 0 6px 18px rgba(39, 42, 40, 0.08);
	--shadow-lg: 0 18px 40px rgba(39, 42, 40, 0.12);

	/* Layout. */
	--container: 1200px;
	--container-narrow: 760px;
	--gutter: 1.25rem;
	--header-h: 72px;
	--topbar-h: 38px;
	--maxw-prose: 68ch;
	--mobile-bar-h: 60px;

	/* Преходи. */
	--t-fast: 150ms ease;
	--t: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   3. BASE
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + var(--sp-4));
}

body {
	margin: 0;
	background-color: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: var(--fs-300);
	line-height: var(--lh-body);
	font-feature-settings: "locl" 1; /* български форми на кирилицата, ако шрифтът ги поддържа */
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
	margin: 0 0 var(--sp-4);
	font-family: var(--font-display);
	font-weight: 600;
	line-height: var(--lh-heading);
	letter-spacing: -0.01em;
	color: var(--pine);
}

h1 { font-size: var(--fs-700); }
h2 { font-size: var(--fs-600); }
h3 { font-size: var(--fs-500); }
h4 { font-size: var(--fs-400); }

p,
ul,
ol {
	margin: 0 0 var(--sp-4);
}

a {
	color: var(--forest);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color var(--t-fast);
}

a:hover {
	color: var(--wood);
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

figure {
	margin: 0;
}

address {
	font-style: normal;
}

/* Видим focus за клавиатурна навигация (WCAG 2.2). */
:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
	border-radius: var(--radius-sm);
}

::selection {
	background: var(--beige);
	color: var(--pine-dark);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

/* ==========================================================================
   4. LAYOUT
   ========================================================================== */

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--narrow {
	max-width: var(--container-narrow);
}

.site-main {
	display: block;
	min-height: 50vh;
}

.section {
	padding-block: var(--sp-7);
}

.section--welcome {
	background: var(--bg-alt);
}

.section__title {
	margin-bottom: var(--sp-4);
}

/* Signature: тънка дървена черта под заглавието на секция. */
.section__title::after {
	content: "";
	display: block;
	width: 56px;
	height: 3px;
	margin-top: var(--sp-3);
	background: var(--wood);
	border-radius: 2px;
}

.section__lead {
	max-width: 62ch;
	font-size: var(--fs-400);
	color: var(--text-muted);
}

.page-header {
	padding-block: var(--sp-6) var(--sp-4);
}

.page-thumb {
	margin-bottom: var(--sp-6);
}

.entry-content {
	padding-bottom: var(--sp-7);
}

/* ==========================================================================
   5. COMPONENTS
   ========================================================================== */

/* --- Skip link ----------------------------------------------------------- */
.skip-link {
	position: absolute;
	left: -9999px;
	z-index: 1000;
	padding: var(--sp-3) var(--sp-4);
	background: var(--pine);
	color: var(--text-invert);
	border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
	left: 0;
	top: 0;
	color: var(--text-invert);
}

/* --- Header -------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(250, 247, 241, 0.94);
	border-bottom: 1px solid var(--line);
	backdrop-filter: saturate(140%) blur(6px);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-4);
	min-height: var(--header-h);
}

.site-branding__text {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	text-decoration: none;
	color: var(--pine);
}

.site-branding__name {
	font-family: var(--font-display);
	font-size: var(--fs-400);
	font-weight: 600;
	letter-spacing: 0.01em;
}

.bk-icon--logo {
	color: var(--forest);
}

.custom-logo {
	max-height: 52px;
	width: auto;
}

/* --- Навигация ----------------------------------------------------------- */
.main-navigation {
	display: flex;
	align-items: center;
	gap: var(--sp-5);
}

.nav-menu {
	display: flex;
	align-items: center;
	gap: var(--sp-5);
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-menu a {
	display: inline-block;
	padding-block: var(--sp-2);
	color: var(--charcoal);
	font-size: var(--fs-200);
	font-weight: 500;
	text-decoration: none;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a {
	color: var(--pine);
	box-shadow: inset 0 -2px 0 var(--wood);
}

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 20px;
	height: 2px;
	margin-inline: auto;
	background: var(--pine);
	transition: transform var(--t), opacity var(--t-fast);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	position: relative;
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 4px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
	background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
	transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
	transform: translateY(-4px) rotate(-45deg);
}

.bk-menu-hint {
	margin: 0;
	font-size: var(--fs-100);
	color: var(--wood);
}

/* --- Бутони -------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-2);
	min-height: 48px;
	padding: var(--sp-3) var(--sp-5);
	border: 1px solid transparent;
	border-radius: var(--radius);
	font-family: var(--font-body);
	font-size: var(--fs-200);
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}

.btn:hover {
	transform: translateY(-1px);
}

.btn--primary {
	background: var(--pine);
	color: var(--text-invert);
}

.btn--primary:hover {
	background: var(--pine-dark);
	color: var(--text-invert);
}

.btn--ghost {
	background: transparent;
	border-color: currentColor;
	color: var(--text-invert);
}

.btn--ghost:hover {
	background: rgba(251, 249, 245, 0.14);
	color: var(--text-invert);
}

.btn--cta {
	background: var(--wood);
	color: var(--text-invert);
	border-radius: var(--radius-notch);
}

.btn--cta:hover {
	background: var(--wood-light);
	color: var(--text-invert);
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: min(78vh, 720px);
	background: var(--pine);
	color: var(--text-invert);
	overflow: clip;
}

.hero__media {
	position: absolute;
	inset: 0;
}

.hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(160deg, var(--pine) 0%, var(--forest) 100%);
}

.hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(26, 52, 41, 0.86) 0%,
		rgba(26, 52, 41, 0.45) 45%,
		rgba(26, 52, 41, 0.15) 100%
	);
}

.hero__content {
	position: relative;
	padding-block: var(--sp-8) var(--sp-7);
}

.hero__eyebrow {
	margin-bottom: var(--sp-3);
	font-size: var(--fs-100);
	font-weight: 500;
	letter-spacing: var(--ls-eyebrow);
	text-transform: uppercase;
	color: var(--beige);
}

.hero__title {
	max-width: 22ch;
	margin-bottom: var(--sp-3);
	font-size: var(--fs-800);
	line-height: var(--lh-tight);
	color: var(--text-invert);
}

.hero__subtitle {
	max-width: 40ch;
	font-size: var(--fs-400);
	color: #ecebe3;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
	margin-top: var(--sp-5);
}

/* --- Карти --------------------------------------------------------------- */
.card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	transition: box-shadow var(--t), transform var(--t);
}

.card:hover {
	box-shadow: var(--shadow);
	transform: translateY(-2px);
}

.card__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.card__body {
	padding: var(--sp-5);
}

.card__title {
	font-size: var(--fs-400);
	margin-bottom: var(--sp-2);
}

.card__title a {
	text-decoration: none;
	color: inherit;
}

.card__text {
	color: var(--text-muted);
	font-size: var(--fs-200);
}

.post-list {
	display: grid;
	gap: var(--sp-5);
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* --- Удобства (icon grid) ------------------------------------------------ */
.amenities {
	display: grid;
	gap: var(--sp-4);
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	margin: var(--sp-6) 0 0;
	padding: 0;
	list-style: none;
}

.amenities__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--sp-2);
	padding: var(--sp-4) var(--sp-2);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-size: var(--fs-200);
	text-align: center;
}

.amenities__icon {
	color: var(--forest);
}

/* --- Footer -------------------------------------------------------------- */
.site-footer {
	margin-top: var(--sp-8);
	background: var(--pine);
	color: var(--text-invert);
}

.site-footer a {
	color: var(--beige);
}

.site-footer a:hover {
	color: #fff;
}

.site-footer__grid {
	display: grid;
	gap: var(--sp-6);
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	padding-block: var(--sp-7);
}

.site-footer__title {
	margin-bottom: var(--sp-3);
	font-size: var(--fs-300);
	letter-spacing: 0.02em;
	color: var(--beige);
}

.site-footer__text {
	color: #dfe3de;
	font-size: var(--fs-200);
	max-width: 40ch;
}

.site-footer__menu {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--fs-200);
}

.site-footer__menu li + li {
	margin-top: var(--sp-2);
}

.site-footer__address {
	display: grid;
	gap: var(--sp-2);
	font-size: var(--fs-200);
}

.site-footer__line {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	color: #dfe3de;
}

.site-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
	margin: var(--sp-4) 0 0;
	padding: 0;
	list-style: none;
	font-size: var(--fs-200);
}

.site-footer__bottom {
	border-top: 1px solid rgba(222, 209, 188, 0.24);
	padding-block: var(--sp-4);
}

.site-footer__copy {
	margin: 0;
	font-size: var(--fs-100);
	color: #c9cfc8;
}

/* --- Мобилна лента с действия -------------------------------------------- */
.mobile-bar {
	display: none;
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 90;
	background: var(--cream-soft);
	border-top: 1px solid var(--line);
	padding-bottom: env(safe-area-inset-bottom, 0);
	box-shadow: 0 -4px 16px rgba(39, 42, 40, 0.1);
}

.mobile-bar__item {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-height: var(--mobile-bar-h);
	padding: var(--sp-2);
	color: var(--pine);
	font-size: var(--fs-100);
	font-weight: 500;
	text-decoration: none;
}

.mobile-bar__item--cta {
	background: var(--wood);
	color: var(--text-invert);
}

/* --- Форми --------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="number"],
input[type="search"],
select,
textarea {
	width: 100%;
	min-height: 48px;
	padding: var(--sp-3);
	background: #fff;
	/* По-тъмна рамка от декоративната: границата на активен елемент трябва
	   да е с контраст поне 3:1 спрямо фона (WCAG 2.2, критерий 1.4.11). */
	border: 1px solid var(--line-input);
	border-radius: var(--radius);
	font-family: inherit;
	font-size: var(--fs-300);
	color: var(--text);
}

textarea {
	min-height: 140px;
	resize: vertical;
}

label {
	display: block;
	margin-bottom: var(--sp-1);
	font-size: var(--fs-200);
	font-weight: 500;
}

/* Honeypot — скрит за хора, достъпен за ботове. */
.bk-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --- Служебни бележки за админа ------------------------------------------ */
.bk-placeholder-note {
	display: inline-block;
	margin-top: var(--sp-2);
	padding: 2px 8px;
	background: #fff3cd;
	border: 1px dashed #b58105;
	border-radius: var(--radius-sm);
	color: #7a5600;
	font-size: var(--fs-100);
}

/* --- Topbar (само desktop) ------------------------------------------------ */
.topbar {
	background: var(--pine-dark);
	color: #cfd6cf;
	font-size: var(--fs-100);
}

.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-4);
	min-height: var(--topbar-h);
}

.topbar__claim {
	margin: 0;
	letter-spacing: 0.02em;
}

.topbar__dot {
	margin-inline: 6px;
	opacity: 0.5;
}

.topbar__contacts {
	display: flex;
	gap: var(--sp-5);
	margin: 0;
	padding: 0;
	list-style: none;
}

.topbar__contacts a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--beige);
	text-decoration: none;
}

.topbar__contacts a:hover {
	color: #fff;
}

/* --- Branding (лого) ----------------------------------------------------- */
.branding {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-3);
	color: var(--pine);
	text-decoration: none;
}

.branding__svg {
	color: var(--forest);
	transition: transform var(--t);
}

.branding:hover .branding__svg {
	transform: translateY(-2px);
}

.branding__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	line-height: 1.05;
}

.branding__name {
	font-family: var(--font-display);
	font-size: var(--fs-400);
	font-weight: 600;
}

.branding__tagline {
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.branding--footer {
	margin-bottom: var(--sp-4);
}

.branding--footer .branding__svg { color: var(--beige); }
.branding--footer .branding__name { color: var(--cream); }
.branding--footer .branding__tagline { color: #a9b5ac; }

/* --- Sticky състояние на хедъра ------------------------------------------ */
.site-header__inner {
	transition: min-height var(--t);
}

.site-header.is-stuck {
	box-shadow: var(--shadow);
}

.site-header.is-stuck .site-header__inner {
	min-height: 60px;
}

/* --- Подменюта ----------------------------------------------------------- */
.nav-menu .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.submenu-toggle {
	display: inline-grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	background: transparent;
	border: 0;
	cursor: pointer;
	color: inherit;
}

.submenu-toggle__chevron {
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-1px);
	transition: transform var(--t);
}

.submenu-toggle[aria-expanded="true"] .submenu-toggle__chevron {
	transform: rotate(225deg) translateY(-1px);
}

.menu-item--cta .menu-link--cta {
	min-height: 42px;
	padding-inline: var(--sp-4);
	color: var(--text-invert);
}

.menu-item--cta .menu-link--cta:hover {
	box-shadow: none;
}

/* --- Breadcrumbs --------------------------------------------------------- */
.breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--fs-100);
	color: var(--text-muted);
}

.breadcrumbs__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.breadcrumbs a {
	color: var(--forest);
	text-decoration: none;
}

.breadcrumbs a:hover {
	text-decoration: underline;
}

.breadcrumbs__sep {
	color: var(--beige-line);
}

/* --- Eyebrow (signature: вертикална дървена черта) ----------------------- */
.eyebrow {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	margin: 0 0 var(--sp-3);
	font-size: var(--fs-100);
	font-weight: 500;
	letter-spacing: var(--ls-eyebrow);
	text-transform: uppercase;
	color: var(--wood);
}

.eyebrow::before {
	content: "";
	width: 3px;
	height: 1.1em;
	background: var(--wood);
	border-radius: 2px;
}

/* --- Варианти на секции -------------------------------------------------- */
.section--cream { background: var(--bg-alt); }

.section--beige { background: var(--beige); }

.section--pine {
	background: var(--pine);
	color: #e4e8e3;
}

.section--pine h2,
.section--pine h3 { color: var(--cream); }

.section--pine .section__lead { color: #ccd4cd; }

.section--pine .eyebrow,
.section--pine .eyebrow::before { color: var(--beige); }

.section--pine .eyebrow::before { background: var(--beige); }

.section--tight { padding-block: var(--sp-6); }

/* --- Заглавна част на вътрешна страница ---------------------------------- */
.page-header {
	padding-block: var(--sp-6) var(--sp-5);
	background: var(--bg-alt);
	border-bottom: 1px solid var(--line);
}

.page-header .page-title {
	margin: var(--sp-3) 0 0;
}

.page-header .page-title::after {
	content: "";
	display: block;
	width: 56px;
	height: 3px;
	margin-top: var(--sp-4);
	background: var(--wood);
	border-radius: 2px;
}

.page-header__subtitle {
	margin: var(--sp-4) 0 0;
	max-width: 60ch;
	color: var(--text-muted);
}

.page-header--compact {
	background: transparent;
	border-bottom: 0;
	padding-bottom: 0;
}

/* --- Текстово съдържание (prose) ----------------------------------------- */
.entry-content {
	max-width: var(--maxw-prose);
	font-size: var(--fs-400);
}

.entry-content > * + * {
	margin-top: var(--sp-4);
}

.entry-content h2 { margin-top: var(--sp-7); }
.entry-content h3 { margin-top: var(--sp-6); }

.entry-content ul,
.entry-content ol {
	padding-left: 1.25em;
}

.entry-content li + li {
	margin-top: var(--sp-2);
}

.entry-content img {
	border-radius: var(--radius-lg);
}

.entry-content figcaption {
	margin-top: var(--sp-2);
	font-size: var(--fs-100);
	color: var(--text-muted);
}

.entry-content blockquote {
	margin-block: var(--sp-6);
	padding: var(--sp-4) var(--sp-5);
	background: var(--bg-alt);
	border-left: 3px solid var(--wood);
	border-radius: 0 var(--radius) var(--radius) 0;
	font-family: var(--font-display);
	font-size: var(--fs-500);
	color: var(--pine);
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--fs-200);
}

.entry-content th,
.entry-content td {
	padding: var(--sp-3);
	border-bottom: 1px solid var(--line);
	text-align: left;
}

.entry-content thead th {
	background: var(--bg-alt);
	color: var(--pine);
	font-weight: 500;
}

/* --- Chips и badges ------------------------------------------------------ */
.chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	background: var(--bg-alt);
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	font-size: var(--fs-100);
	color: var(--text-muted);
	text-decoration: none;
}

.chip:hover,
.chip.is-active {
	background: var(--pine);
	border-color: var(--pine);
	color: var(--text-invert);
}

.badge {
	display: inline-block;
	padding: 3px 10px;
	background: var(--wood);
	border-radius: var(--radius-pill);
	font-size: var(--fs-100);
	font-weight: 500;
	color: var(--text-invert);
}

/* --- Допълнителни бутони ------------------------------------------------- */
.btn--outline {
	background: transparent;
	border-color: var(--pine);
	color: var(--pine);
}

.btn--outline:hover {
	background: var(--pine);
	color: var(--text-invert);
}

.btn--sm {
	min-height: 40px;
	padding: var(--sp-2) var(--sp-4);
	font-size: var(--fs-100);
}

.btn--block {
	width: 100%;
}

/* --- Grid помощници ------------------------------------------------------ */
.grid {
	display: grid;
	gap: var(--sp-5);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* --- Карти: стая и забележителност (структура за PHASE 4/6) -------------- */
.card__media {
	position: relative;
	display: block;
}

.card__ribbon {
	position: absolute;
	top: var(--sp-3);
	left: var(--sp-3);
	z-index: 2;
}

.card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
	margin: 0 0 var(--sp-3);
	padding: 0;
	list-style: none;
	font-size: var(--fs-100);
	color: var(--text-muted);
}

.card__meta li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.card__meta .bk-icon {
	color: var(--forest);
}

.card__price {
	font-family: var(--font-display);
	font-size: var(--fs-400);
	color: var(--pine);
}

.card__price small {
	font-family: var(--font-body);
	font-size: var(--fs-100);
	color: var(--text-muted);
}

.card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
	margin-top: var(--sp-4);
}

/* Signature: скосен ъгъл на картите за стаи — дърводелски детайл. */
.card--room {
	border-radius: var(--radius-notch);
}

/* --- Галерия и lightbox (база за PHASE 5) -------------------------------- */
.gallery-filter {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
	margin-bottom: var(--sp-5);
	padding: 0;
	list-style: none;
}

.gallery-grid {
	display: grid;
	gap: var(--sp-3);
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.gallery-grid__item img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--radius);
	transition: transform var(--t), filter var(--t);
}

.gallery-grid__item:hover img {
	transform: scale(1.02);
	filter: saturate(108%);
}

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: none;
	place-items: center;
	padding: var(--sp-4);
	background: rgba(26, 52, 41, 0.95);
}

.lightbox.is-open {
	display: grid;
}

.lightbox__img {
	max-width: min(1200px, 92vw);
	max-height: 82vh;
	object-fit: contain;
	border-radius: var(--radius);
}

.lightbox__btn {
	position: absolute;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	background: rgba(251, 249, 245, 0.12);
	border: 1px solid rgba(222, 209, 188, 0.4);
	border-radius: 50%;
	color: var(--cream);
	cursor: pointer;
}

.lightbox__btn--close { top: var(--sp-4); right: var(--sp-4); }
.lightbox__btn--prev { left: var(--sp-4); }
.lightbox__btn--next { right: var(--sp-4); }

/* --- Форми (разширено) --------------------------------------------------- */
.form-row {
	display: grid;
	gap: var(--sp-4);
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-field {
	display: flex;
	flex-direction: column;
}

.form-field .required {
	color: var(--wood);
}

.form-note {
	font-size: var(--fs-100);
	color: var(--text-muted);
}

.form-consent {
	display: flex;
	align-items: flex-start;
	gap: var(--sp-3);
	font-size: var(--fs-200);
	font-weight: 400;
}

.form-consent input[type="checkbox"] {
	width: 22px;
	height: 22px;
	margin-top: 2px;
	accent-color: var(--forest);
	flex: 0 0 auto;
}

.form-message {
	padding: var(--sp-4);
	border-radius: var(--radius);
	border-left: 3px solid;
	font-size: var(--fs-200);
}

.form-message--success {
	background: #eef5ee;
	border-color: var(--forest);
	color: #1f4030;
}

.form-message--error {
	background: #fbeeea;
	border-color: #a3402c;
	color: #7a2d1e;
}

.form-field--invalid input,
.form-field--invalid select,
.form-field--invalid textarea {
	border-color: #a3402c;
}

.field-error {
	margin: var(--sp-1) 0 0;
	font-size: var(--fs-100);
	color: #a3402c;
}

/* --- Пагинация ----------------------------------------------------------- */
.pagination {
	margin-top: var(--sp-6);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
}

.page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	min-height: 44px;
	padding-inline: var(--sp-2);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--pine);
	text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover {
	background: var(--pine);
	border-color: var(--pine);
	color: var(--text-invert);
}

/* --- Футър: допълнения --------------------------------------------------- */
.site-footer__cta {
	margin-top: var(--sp-5);
}

.site-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-2);
}

.site-footer__copy--nap {
	color: #a3afa5; /* WCAG AA: 4.61:1 върху тъмнозеленото */
}

.site-footer__line > span {
	flex: 1;
}

/* --- Hero: допълнения (PHASE 3) ------------------------------------------ */
.hero__price {
	margin: var(--sp-5) 0 0;
	font-size: var(--fs-200);
	color: var(--beige);
}

.hero__scroll {
	position: absolute;
	bottom: var(--sp-4);
	left: 50%;
	transform: translateX(-50%);
	width: 26px;
	height: 40px;
	border: 1px solid rgba(222, 209, 188, 0.5);
	border-radius: var(--radius-pill);
}

.hero__scroll span {
	display: block;
	width: 3px;
	height: 8px;
	margin: 8px auto 0;
	background: var(--beige);
	border-radius: 2px;
	animation: bk-scroll 1.8s ease-in-out infinite;
}

@keyframes bk-scroll {
	0%, 100% { transform: translateY(0); opacity: 1; }
	50% { transform: translateY(12px); opacity: 0.3; }
}

/* --- Quick booking widget ------------------------------------------------ */
.booking-bar {
	position: relative;
	z-index: 3;
	margin-top: calc(var(--sp-7) * -1);
	padding-bottom: var(--sp-6);
}

.booking-bar__form {
	display: grid;
	gap: var(--sp-4);
	grid-template-columns: 1fr;
	padding: var(--sp-5);
	background: var(--cream-soft);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
}

.booking-bar__field label {
	font-size: var(--fs-100);
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.booking-bar__submit {
	display: flex;
	align-items: flex-end;
}

.booking-bar__note {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	margin: var(--sp-3) 0 0;
	font-size: var(--fs-100);
	color: var(--text-muted);
}

.booking-bar__note .bk-icon {
	color: var(--wood);
}

/* --- Глава на секция с линк „виж всички“ --------------------------------- */
.section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--sp-4);
	margin-bottom: var(--sp-6);
}

.section__head .section__title {
	margin-bottom: 0;
}

.section__more {
	font-size: var(--fs-200);
	font-weight: 500;
	color: var(--forest);
	text-decoration: none;
	white-space: nowrap;
}

.section__more::after {
	content: " →";
}

.section__more:hover {
	color: var(--wood);
}

/* --- „Добре дошли“ + факти ------------------------------------------------ */
.welcome {
	display: grid;
	gap: var(--sp-6);
}

.welcome__actions {
	margin-top: var(--sp-5);
}

.facts {
	display: grid;
	gap: var(--sp-3);
	grid-template-columns: repeat(2, 1fr);
	margin: 0;
	padding: 0;
	list-style: none;
}

.facts__item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--sp-1);
	padding: var(--sp-4);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-notch);
}

.facts__item .bk-icon {
	margin-bottom: var(--sp-2);
	color: var(--wood);
}

.facts__num {
	font-family: var(--font-display);
	font-size: var(--fs-500);
	font-weight: 600;
	line-height: 1;
	color: var(--pine);
}

.facts__label {
	font-size: var(--fs-100);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.amenities--highlights {
	margin-top: var(--sp-7);
}

/* --- Карти: липсваща снимка и kicker ------------------------------------- */
.card__noimage {
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 3;
	background: var(--bg-alt);
	color: var(--beige-line);
}

.card__kicker {
	margin: 0 0 var(--sp-2);
	font-size: var(--fs-100);
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wood);
}

.card__link {
	display: inline-block;
	margin-top: var(--sp-3);
	font-size: var(--fs-200);
	font-weight: 500;
	color: var(--forest);
	text-decoration: none;
}

.card__link::after {
	content: " →";
}

/* --- Отзиви -------------------------------------------------------------- */
.review {
	display: flex;
	flex-direction: column;
	gap: var(--sp-3);
	margin: 0;
	padding: var(--sp-5);
	background: var(--cream-soft);
	border-radius: var(--radius-notch);
}

.review__rating {
	margin: 0;
	font-size: var(--fs-300);
	letter-spacing: 0.1em;
	color: var(--wood);
}

.review__quote {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-family: var(--font-display);
	font-size: var(--fs-400);
	line-height: 1.5;
	color: var(--pine);
}

.review__quote p {
	margin: 0;
}

.review__quote p::before { content: "„"; }
.review__quote p::after { content: "“"; }

.review__meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: auto;
	font-size: var(--fs-100);
}

.review__name {
	font-weight: 500;
	color: var(--charcoal);
}

.review__details {
	color: var(--text-muted);
}

/* --- Карта --------------------------------------------------------------- */
.map {
	position: relative;
	aspect-ratio: 16 / 9;
	min-height: 320px;
	background: var(--bg-alt);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.map__placeholder {
	display: grid;
	place-content: center;
	justify-items: center;
	gap: var(--sp-2);
	height: 100%;
	padding: var(--sp-5);
	text-align: center;
	color: var(--text-muted);
}

.map__placeholder .bk-icon {
	color: var(--wood);
}

.map__consent {
	display: grid;
	place-content: center;
	justify-items: center;
	gap: var(--sp-3);
	height: 100%;
	padding: var(--sp-5);
	text-align: center;
}

/* --- Финална CTA лента --------------------------------------------------- */
.cta-band__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-5);
}

.cta-band__title {
	margin-bottom: var(--sp-2);
}

.cta-band__title::after {
	background: var(--beige);
}

.cta-band__text {
	margin: 0;
	color: #ccd4cd;
}

.cta-band__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
}

/* --- Празно състояние (само за администратор) ---------------------------- */
.empty-state {
	padding: var(--sp-5);
	background: #fffaf0;
	border: 1px dashed #b58105;
	border-radius: var(--radius);
	text-align: center;
}

.empty-state__text {
	margin: 0 0 var(--sp-3);
	color: #7a5600;
}

.empty-state__note {
	margin: var(--sp-3) 0 0;
	font-size: var(--fs-100);
	color: #9a7a3a;
}

/* --- Стая: layout ------------------------------------------------------- */
.room-layout {
	display: grid;
	gap: var(--sp-6);
}

.room-section-title {
	margin: var(--sp-7) 0 var(--sp-4);
	font-size: var(--fs-500);
}

.room-layout__main > .room-section-title:first-of-type {
	margin-top: var(--sp-6);
}

.room-extra {
	max-width: var(--maxw-prose);
	color: var(--text-muted);
}

/* --- Галерия на стая ----------------------------------------------------- */
.room-gallery__main {
	position: relative;
	display: block;
	border-radius: var(--radius-notch);
	overflow: hidden;
}

.room-gallery__main img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform var(--t);
}

.room-gallery__main:hover img {
	transform: scale(1.015);
}

.room-gallery__zoom {
	position: absolute;
	right: var(--sp-3);
	bottom: var(--sp-3);
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	background: rgba(26, 52, 41, 0.72);
	border-radius: 50%;
	color: var(--cream);
}

.room-gallery__thumbs {
	display: grid;
	gap: var(--sp-2);
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	margin: var(--sp-2) 0 0;
	padding: 0;
	list-style: none;
}

.room-gallery__thumbs img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: var(--radius-sm);
	transition: opacity var(--t-fast);
}

.room-gallery__thumbs a:hover img {
	opacity: 0.82;
}

/* --- Характеристики ------------------------------------------------------ */
.specs {
	display: grid;
	gap: var(--sp-3);
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.specs__item {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	gap: 0 var(--sp-3);
	align-items: center;
	padding: var(--sp-3) var(--sp-4);
	background: var(--bg-alt);
	border-radius: var(--radius);
}

.specs__icon {
	grid-row: span 2;
	color: var(--wood);
}

.specs__label {
	font-size: var(--fs-100);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.specs__value {
	font-weight: 500;
	color: var(--pine);
}

/* --- Блок с цена --------------------------------------------------------- */
.booking-box {
	padding: var(--sp-5);
	background: var(--cream-soft);
	border: 1px solid var(--line);
	border-radius: var(--radius-notch);
	box-shadow: var(--shadow);
}

.booking-box__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
	margin: 0 0 var(--sp-4);
	padding-bottom: var(--sp-4);
	border-bottom: 1px solid var(--line);
}

.booking-box__price strong {
	font-family: var(--font-display);
	font-size: var(--fs-600);
	font-weight: 600;
	line-height: 1;
	color: var(--pine);
}

.booking-box__from,
.booking-box__unit {
	font-size: var(--fs-100);
	color: var(--text-muted);
}

.booking-box__price--ask {
	font-family: var(--font-display);
	font-size: var(--fs-500);
	color: var(--pine);
}

.booking-box__terms {
	display: grid;
	gap: var(--sp-3);
	margin: 0 0 var(--sp-5);
	padding: 0;
	list-style: none;
	font-size: var(--fs-200);
	color: var(--text-muted);
}

.booking-box__terms li {
	display: grid;
	grid-template-columns: 20px 1fr;
	gap: var(--sp-2);
	align-items: start;
}

.booking-box__terms .bk-icon {
	margin-top: 3px;
	color: var(--forest);
}

.booking-box .btn + .btn {
	margin-top: var(--sp-3);
}

.booking-box__unavailable {
	margin: 0 0 var(--sp-3);
	padding: var(--sp-3);
	background: var(--beige);
	border-radius: var(--radius);
	font-size: var(--fs-200);
	text-align: center;
}

.booking-box__alt {
	margin: var(--sp-3) 0 0;
	font-size: var(--fs-200);
	text-align: center;
}

.booking-box__offer {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	margin: var(--sp-4) 0 0;
	padding: var(--sp-3);
	background: var(--bg-alt);
	border-radius: var(--radius);
	font-size: var(--fs-200);
}

.booking-box__offer .bk-icon {
	color: var(--wood);
}

.booking-box__note {
	margin: var(--sp-4) 0 0;
	font-size: var(--fs-100);
	line-height: 1.5;
	color: var(--text-muted);
	text-align: center;
}

/* --- Lightbox: допълнения ------------------------------------------------ */
.lightbox__figure {
	display: grid;
	justify-items: center;
	gap: var(--sp-3);
	margin: 0;
}

.lightbox__caption {
	max-width: 60ch;
	font-size: var(--fs-200);
	color: var(--beige);
	text-align: center;
}

.lightbox__counter {
	position: absolute;
	bottom: var(--sp-4);
	left: 50%;
	transform: translateX(-50%);
	margin: 0;
	font-size: var(--fs-100);
	letter-spacing: 0.08em;
	color: var(--beige);
}

html.bk-lightbox-open {
	overflow: hidden;
}

/* --- Галерия: филтър и брояч --------------------------------------------- */
.gallery-filter-nav {
	margin-bottom: var(--sp-4);
}

.chip__count {
	padding-left: 6px;
	font-size: 0.75rem;
	opacity: 0.65;
}

.gallery-count {
	margin: 0 0 var(--sp-5);
	font-size: var(--fs-100);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.gallery-empty {
	padding: var(--sp-6);
	background: var(--bg-alt);
	border-radius: var(--radius-lg);
	text-align: center;
	color: var(--text-muted);
}

/* --- Галерия: мрежа ------------------------------------------------------ */
.gallery-masonry {
	display: grid;
	gap: var(--sp-3);
	grid-template-columns: repeat(2, 1fr);
	grid-auto-rows: 150px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gallery-masonry__item {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius);
}

/* Всяка седма снимка е двойно висока — мрежата спира да изглежда механична. */
.gallery-masonry__item--tall {
	grid-row: span 2;
}

.gallery-masonry__item a {
	display: block;
	width: 100%;
	height: 100%;
}

.gallery-masonry__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--t), filter var(--t);
}

.gallery-masonry__item a:hover img,
.gallery-masonry__item a:focus-visible img {
	transform: scale(1.04);
}

.gallery-masonry__caption {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	padding: var(--sp-4) var(--sp-3) var(--sp-2);
	background: linear-gradient(to top, rgba(26, 52, 41, 0.82), transparent);
	color: var(--cream);
	font-size: var(--fs-100);
	line-height: 1.35;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity var(--t), transform var(--t);
}

.gallery-masonry__item a:hover .gallery-masonry__caption,
.gallery-masonry__item a:focus-visible .gallery-masonry__caption {
	opacity: 1;
	transform: translateY(0);
}

/* --- Карта: варианти и състояния ----------------------------------------- */
.map--short { aspect-ratio: 21 / 9; min-height: 260px; }
.map--tall { aspect-ratio: 3 / 2; min-height: 420px; }

.map__canvas {
	width: 100%;
	height: 100%;
}

.map__consent {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: var(--bg-alt);
}

.map__consent-text {
	max-width: 46ch;
	margin: 0;
	font-size: var(--fs-200);
	color: var(--text-muted);
}

.map__consent-alt {
	font-size: var(--fs-100);
}

.map__error,
.map__noscript {
	padding: var(--sp-4);
	font-size: var(--fs-200);
	text-align: center;
	color: var(--text-muted);
}

/* Leaflet: вписваме контролите в дизайна на темата. */
.map .leaflet-container {
	font-family: var(--font-body);
	background: var(--bg-alt);
}

.map .leaflet-popup-content-wrapper {
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.map .leaflet-popup-content {
	margin: var(--sp-3) var(--sp-4);
	font-size: var(--fs-200);
	line-height: 1.45;
}

.map .leaflet-popup-content strong {
	font-family: var(--font-display);
	font-size: var(--fs-300);
	color: var(--pine);
}

.map .leaflet-popup-content a {
	display: inline-block;
	margin-top: var(--sp-2);
	color: var(--forest);
	font-weight: 500;
}

.map .leaflet-control-zoom a {
	color: var(--pine);
}

.map .leaflet-control-attribution {
	background: rgba(250, 247, 241, 0.86);
	font-size: 10px;
}

/* --- Забележителност: единична страница ---------------------------------- */
.attraction-hero {
	margin-bottom: var(--sp-5);
	border-radius: var(--radius-notch);
	overflow: hidden;
}

.attraction-hero img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.attraction-meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3) var(--sp-5);
	margin: 0 0 var(--sp-6);
	padding: var(--sp-4) 0;
	border-block: 1px solid var(--line);
	list-style: none;
	font-size: var(--fs-200);
	color: var(--text-muted);
}

.attraction-meta li {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
}

.attraction-meta .bk-icon {
	color: var(--wood);
}

.attraction-content {
	margin-inline: 0;
}

/* --- Цени: таблици ------------------------------------------------------- */
.price-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: #fff;
}

.price-table {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	font-size: var(--fs-200);
}

.price-table th,
.price-table td {
	padding: var(--sp-4);
	text-align: left;
	border-bottom: 1px solid var(--line);
}

.price-table thead th {
	background: var(--bg-alt);
	font-size: var(--fs-100);
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--text-muted);
	white-space: nowrap;
}

.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td {
	border-bottom: 0;
}

.price-table tbody th {
	font-family: var(--font-display);
	font-size: var(--fs-300);
	font-weight: 600;
	color: var(--pine);
}

.price-table tbody th a {
	color: inherit;
	text-decoration: none;
}

.price-table tbody th a:hover {
	color: var(--wood);
}

.price-table__price {
	font-weight: 500;
	color: var(--pine);
	white-space: nowrap;
}

.price-note {
	margin: var(--sp-4) 0 0;
	font-size: var(--fs-100);
	color: var(--text-muted);
}

/* --- Цени: карти за цялата къща ------------------------------------------ */
.price-cards {
	display: grid;
	gap: var(--sp-4);
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	margin: var(--sp-6) 0 0;
	padding: 0;
	list-style: none;
}

.price-card {
	display: flex;
	flex-direction: column;
	gap: var(--sp-2);
	padding: var(--sp-5);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-notch);
}

.price-card__label {
	font-size: var(--fs-100);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.price-card__value {
	font-family: var(--font-display);
	font-size: var(--fs-500);
	font-weight: 600;
	line-height: 1.1;
	color: var(--pine);
}

.price-card--muted {
	background: var(--bg-alt);
}

.price-card--muted .price-card__value {
	font-size: var(--fs-400);
}

/* --- Специални предложения ------------------------------------------------ */
.offer {
	display: flex;
	flex-direction: column;
	gap: var(--sp-2);
	padding: var(--sp-5);
	background: var(--cream-soft);
	border-left: 3px solid var(--wood);
	border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.offer__title {
	margin: 0;
	font-size: var(--fs-400);
}

.offer__text {
	margin: 0;
	color: var(--text-muted);
	font-size: var(--fs-200);
}

.offer__valid {
	margin: auto 0 0;
	padding-top: var(--sp-3);
	font-size: var(--fs-100);
	color: var(--wood);
}

/* --- Условия ------------------------------------------------------------- */
.terms-grid {
	display: grid;
	gap: var(--sp-6);
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	margin-top: var(--sp-5);
}

.terms-col h3 {
	font-size: var(--fs-400);
}

.terms-list {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--fs-200);
	color: var(--text-muted);
}

.terms-list li {
	position: relative;
	padding-left: var(--sp-5);
}

.terms-list li + li {
	margin-top: var(--sp-3);
}

.terms-list li::before {
	content: "—";
	position: absolute;
	left: 0;
	color: var(--beige-line);
}

.terms-list--check li::before {
	content: "✓";
	color: var(--forest);
	font-weight: 700;
}

/* --- Форми за резервация и контакт --------------------------------------- */
.booking-layout,
.contacts-layout {
	display: grid;
	gap: var(--sp-6);
}

.booking-layout__intro {
	margin-bottom: var(--sp-5);
}

.booking-form-wrap {
	scroll-margin-top: calc(var(--header-h) + var(--sp-5));
}

.booking-form {
	padding: var(--sp-5);
	background: var(--cream-soft);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
}

.booking-form__group {
	margin: 0 0 var(--sp-5);
	padding: 0;
	border: 0;
}

.booking-form__group + .booking-form__group {
	padding-top: var(--sp-5);
	border-top: 1px solid var(--line);
}

.booking-form__legend {
	margin-bottom: var(--sp-4);
	padding: 0;
	font-family: var(--font-display);
	font-size: var(--fs-400);
	font-weight: 600;
	color: var(--pine);
}

.booking-form .form-field {
	margin: 0 0 var(--sp-4);
}

.booking-form .form-row {
	margin-bottom: var(--sp-4);
}

.booking-form__nights {
	margin: calc(var(--sp-3) * -1) 0 var(--sp-4);
	padding: var(--sp-2) var(--sp-3);
	background: var(--beige);
	border-radius: var(--radius-sm);
	font-size: var(--fs-100);
	color: var(--pine);
}

.booking-form__submit {
	margin: var(--sp-5) 0 var(--sp-3);
}

.booking-form__submit .btn {
	width: 100%;
}

.form-message {
	margin-bottom: var(--sp-5);
}

.form-message:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
}

.form-message strong {
	display: block;
	margin-bottom: var(--sp-1);
}

/* --- Странична колона на страницата за резервация ------------------------ */
.booking-box__heading {
	margin: 0 0 var(--sp-4);
	font-size: var(--fs-400);
}

.booking-steps {
	margin: 0 0 var(--sp-5);
	padding-left: 1.2em;
	font-size: var(--fs-200);
	color: var(--text-muted);
}

.booking-steps li + li {
	margin-top: var(--sp-3);
}

.booking-steps::marker {
	color: var(--wood);
}

/* --- Контакти ------------------------------------------------------------ */
.contacts-list {
	display: grid;
	gap: var(--sp-4);
	margin: var(--sp-5) 0;
	padding: 0;
	list-style: none;
	font-size: var(--fs-300);
}

.contacts-list li {
	display: grid;
	grid-template-columns: 24px 1fr;
	gap: var(--sp-3);
	align-items: start;
}

.contacts-list .bk-icon {
	margin-top: 3px;
	color: var(--wood);
}

.contacts-list a {
	color: var(--forest);
	text-decoration: none;
}

.contacts-list a:hover {
	text-decoration: underline;
}

.contacts-messengers {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
}

/* --- Cookie банер (по избор) --------------------------------------------- */
.cookie-bar {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 95;
	background: var(--pine);
	color: #e4e8e3;
	box-shadow: 0 -6px 20px rgba(39, 42, 40, 0.18);
	padding-bottom: env(safe-area-inset-bottom, 0);
}

.cookie-bar[hidden] {
	display: none;
}

.cookie-bar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-4);
	padding-block: var(--sp-4);
}

.cookie-bar__text {
	max-width: 62ch;
	margin: 0;
	font-size: var(--fs-200);
}

.cookie-bar__text a {
	color: var(--beige);
}

.cookie-bar__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
}

.cookie-bar .btn--outline {
	border-color: var(--beige);
	color: var(--beige);
}

.cookie-bar .btn--outline:hover {
	background: rgba(222, 209, 188, 0.16);
	color: #fff;
}

/* Ако банерът е активен на телефон, вдига мобилната лента над себе си. */
@media (max-width: 991px) {
	.cookie-bar {
		bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom, 0px));
	}
}

/* ==========================================================================
   6. UTILITIES
   ========================================================================== */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* --- Достъпност: фокус и намалено движение --------------------------------- */

/* Фокусът върху тъмен фон има нужда от светъл ореол, за да се вижда. */
.site-footer :focus-visible,
.section--pine :focus-visible,
.topbar :focus-visible,
.hero :focus-visible,
.lightbox :focus-visible {
	outline-color: var(--cream);
	outline-offset: 3px;
}

/* Скриване на съдържание само визуално, но достъпно за четци. */
.visually-hidden:not(:focus):not(:active) {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Изключено анимиране на hero стрелката при prefers-reduced-motion
   (правилото по-горе покрива transition, това спира и keyframes). */
@media (prefers-reduced-motion: reduce) {
	.hero__scroll span {
		animation: none;
	}

	.card:hover,
	.btn:hover,
	.room-gallery__main:hover img,
	.gallery-masonry__item a:hover img {
		transform: none;
	}
}

/* При включен висок контраст в Windows принудително се показват границите. */
@media (forced-colors: active) {
	.btn,
	.card,
	.chip,
	input,
	select,
	textarea {
		border: 1px solid ButtonBorder;
	}

	.bk-icon {
		forced-color-adjust: auto;
	}
}

/* Полетата за въвеждане получават по-ясен фокус от общото правило. */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 1px;
	border-color: var(--forest);
}

/* ==========================================================================
   7. PAGES
   ========================================================================== */

.error-404 {
	padding-block: var(--sp-8);
	text-align: center;
}

.error-404__code {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(4rem, 12vw, 8rem);
	line-height: 1;
	color: var(--beige);
}

.error-404 .section__lead {
	margin-inline: auto;
}

.error-404 .section__title::after,
.error-404 .page-title::after {
	margin-inline: auto;
}

.error-404__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
	justify-content: center;
	margin-top: var(--sp-5);
}

.error-404__search {
	max-width: 420px;
	margin: var(--sp-6) auto 0;
}

.no-results {
	padding-block: var(--sp-7);
}

/* ==========================================================================
   8. RESPONSIVE (mobile-first: тук са override-ите за по-големи екрани
      и специфичните мобилни корекции)
   ========================================================================== */

/* Телефони и таблети в портрет: мобилно меню + долна лента. */
@media (max-width: 991px) {
	.nav-toggle {
		display: block;
	}

	.main-navigation {
		position: fixed;
		inset: var(--header-h) 0 auto 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		max-height: calc(100dvh - var(--header-h));
		padding: var(--sp-4) var(--gutter) calc(var(--sp-6) + var(--mobile-bar-h));
		background: var(--cream-soft);
		border-bottom: 1px solid var(--line);
		overflow-y: auto;
		transform: translateY(-8px);
		opacity: 0;
		visibility: hidden;
		transition: opacity var(--t), transform var(--t), visibility var(--t);
	}

	.main-navigation.is-open {
		transform: translateY(0);
		opacity: 1;
		visibility: visible;
	}

	.nav-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.nav-menu li + li {
		border-top: 1px solid var(--line);
	}

	.nav-menu a {
		padding-block: var(--sp-4);
		font-size: var(--fs-400);
	}

	.nav-menu a:hover,
	.nav-menu .current-menu-item > a {
		box-shadow: none;
		color: var(--wood);
	}

	.main-navigation__cta {
		margin-top: var(--sp-5);
	}

	.main-navigation__cta .btn {
		width: 100%;
	}

	.mobile-bar {
		display: flex;
	}

	body {
		padding-bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom, 0px));
	}
}

/* Много малки телефони (360px). */
@media (max-width: 400px) {
	:root {
		--gutter: 1rem;
	}

	.hero__actions .btn {
		width: 100%;
	}

	.mobile-bar__item span {
		font-size: 0.75rem;
	}
}

/* Desktop: CTA в хедъра е винаги видим. */
@media (min-width: 992px) {
	.header__cta {
		min-height: 42px;
		padding-inline: var(--sp-4);
	}

	.section {
		padding-block: var(--sp-9);
	}

	.hero__content {
		padding-block: var(--sp-9) var(--sp-8);
	}
}

/* Големи екрани. */
@media (min-width: 1400px) {
	:root {
		--container: 1320px;
	}
}

/* --- PHASE 2: навигация и подменюта -------------------------------------- */

/* Мобилно: подменютата са част от потока и се сгъват. */
@media (max-width: 991px) {
	.topbar {
		display: none;
	}

	.nav-menu li {
		position: relative;
	}

	.nav-menu .menu-item-has-children > .menu-link {
		padding-right: 48px;
	}

	.submenu-toggle {
		position: absolute;
		top: 8px;
		right: 0;
		width: 44px;
		height: 44px;
		color: var(--pine);
	}

	.nav-menu .sub-menu {
		display: none;
		padding-left: var(--sp-4);
		border-top: 1px solid var(--line);
	}

	.submenu-toggle[aria-expanded="true"] + .sub-menu {
		display: block;
	}

	.nav-menu .sub-menu a {
		padding-block: var(--sp-3);
		font-size: var(--fs-300);
		color: var(--text-muted);
	}

	.main-navigation__cta {
		display: flex;
		flex-direction: column;
		gap: var(--sp-3);
	}

	.main-navigation__phone {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: var(--sp-2);
		min-height: 48px;
		color: var(--pine);
		font-weight: 500;
		text-decoration: none;
	}
}

/* Desktop: dropdown подменю. */
@media (min-width: 992px) {
	.nav-menu > li {
		position: relative;
		display: flex;
		align-items: center;
		gap: 2px;
	}

	.nav-menu .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 120;
		display: none;
		min-width: 240px;
		padding: var(--sp-2);
		background: var(--cream-soft);
		border: 1px solid var(--line);
		border-radius: var(--radius-lg);
		box-shadow: var(--shadow);
	}

	.submenu-toggle[aria-expanded="true"] + .sub-menu,
	.nav-menu > li:hover > .sub-menu,
	.nav-menu > li:focus-within > .sub-menu {
		display: block;
	}

	.nav-menu .sub-menu a {
		display: block;
		padding: var(--sp-2) var(--sp-3);
		border-radius: var(--radius-sm);
		font-size: var(--fs-200);
	}

	.nav-menu .sub-menu a:hover {
		background: var(--bg-alt);
		box-shadow: none;
	}

	.main-navigation__phone {
		display: none;
	}

	.main-navigation__cta {
		display: flex;
		align-items: center;
	}
}

/* --- PHASE 3: начална страница ------------------------------------------- */

@media (max-width: 767px) {
	/* Booking формата не се качва върху hero-то на телефон — няма място. */
	.booking-bar {
		margin-top: 0;
		padding-top: var(--sp-5);
		background: var(--bg-alt);
	}

	.booking-bar__form {
		box-shadow: var(--shadow);
	}

	.hero__scroll {
		display: none;
	}

	.facts {
		grid-template-columns: repeat(2, 1fr);
	}

	.section__head {
		align-items: flex-start;
		flex-direction: column;
		gap: var(--sp-3);
	}
}

@media (min-width: 768px) {
	.booking-bar__form {
		grid-template-columns: 1fr 1fr 120px 160px;
		align-items: end;
		padding: var(--sp-5) var(--sp-6);
	}

	.facts {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (min-width: 992px) {
	.welcome {
		grid-template-columns: 1.1fr 1fr;
		align-items: center;
		gap: var(--sp-8);
	}

	.facts {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--sp-4);
	}

	.cta-band__inner {
		flex-wrap: nowrap;
	}
}

/* --- PHASE 4: стаи ------------------------------------------------------- */

/* Мобилно: цената идва веднага след галерията, преди дългия текст. */
@media (max-width: 991px) {
	.room-layout__main {
		display: flex;
		flex-direction: column;
	}

	.room-layout__aside {
		order: -1;
	}

	.room-gallery__thumbs {
		grid-template-columns: repeat(4, 1fr);
	}

	.lightbox__btn--prev { left: var(--sp-2); }
	.lightbox__btn--next { right: var(--sp-2); }
}

@media (min-width: 992px) {
	.room-layout {
		grid-template-columns: minmax(0, 1fr) 340px;
		gap: var(--sp-7);
		align-items: start;
	}

	.room-layout__aside {
		position: sticky;
		top: calc(var(--header-h) + var(--sp-4));
	}
}

/* --- PHASE 5: галерия ---------------------------------------------------- */

@media (max-width: 599px) {
	/* На телефон надписът е винаги видим — hover няма. */
	.gallery-masonry__caption {
		opacity: 1;
		transform: none;
	}

	.gallery-masonry {
		grid-auto-rows: 130px;
	}
}

@media (min-width: 600px) {
	.gallery-masonry {
		grid-template-columns: repeat(3, 1fr);
		grid-auto-rows: 180px;
	}
}

@media (min-width: 992px) {
	.gallery-masonry {
		grid-template-columns: repeat(4, 1fr);
		grid-auto-rows: 200px;
	}
}

/* --- PHASE 8: форми ------------------------------------------------------ */

@media (min-width: 992px) {
	.booking-layout {
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: var(--sp-7);
		align-items: start;
	}

	.booking-layout__aside {
		position: sticky;
		top: calc(var(--header-h) + var(--sp-4));
	}

	.contacts-layout {
		grid-template-columns: 1fr 1fr;
		gap: var(--sp-8);
	}

	.booking-form {
		padding: var(--sp-6);
	}

	.booking-form__submit .btn {
		width: auto;
		min-width: 260px;
	}
}

/* Печат — най-важното е адресът и телефонът. */
@media print {
	.site-header,
	.mobile-bar,
	.hero__media,
	.site-footer__social {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
		padding-bottom: 0;
	}
}
