/* ==========================================================================
   Tropic Home - базов слой (B1.1)
   Източник: makets/final/assets/maket.css (одобрен 28.09.2026), секциите,
   общи за всички страници - копирани 1:1. Специфичните за начална / имоти /
   имот / вътрешни страници са в home.css / imoti.css / imot.css / pages.css
   (партида B2; разпределението е в tropichome/README.md).
   Петте забранени свойства (PLAN 7) - само където maket.css ги има:
   overflow:hidden на .card-imot__img (снимка), position:absolute за чиповете
   върху снимката, падащото меню, CTA/футър фоновата снимка; .sr-only и
   .ff_screen_reader_title; textarea min-height (поле, не текст) - REPORT т.10.
   ========================================================================== */

/* ---------- 3.1 Палитра A „Лагуна" (избрана от Denislav 28.09.2026; B отпадна) ---------- */
:root {
  --c-bg: #FFFFFF;
  --c-surface: #F4F7F8;
  --c-sand: #F3EBDD;
  --c-text: #0F1E24;
  --c-muted: #5A6B72;
  --c-border: #DCE5E8;
  --c-primary: #1F5F78;
  --c-primary-deep: #0F1E24;
  --c-accent: #00A9B5;
  --c-accent-hover: #008E99;
  --c-accent-soft: #E3F6F7;
  --c-on-accent: #FFFFFF;
  --c-error: #C0392B;

  /* 3.3 Типография: 390px → 1024px плавно с clamp() */
  --f-head: "Manrope", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --t-display: clamp(40px, 25.24px + 3.785vw, 64px);
  --t-h1: clamp(34px, 25.39px + 2.208vw, 48px);
  --t-h2: clamp(30px, 23.85px + 1.577vw, 40px);
  --t-h3: clamp(20px, 17.54px + 0.631vw, 24px);
  --t-h4: clamp(18px, 16.77px + 0.315vw, 20px);
  --t-lead: clamp(18px, 16.77px + 0.315vw, 20px);
  --t-body: clamp(16px, 15.38px + 0.158vw, 17px);
  --t-small: 14px;
  --t-eyebrow: 13px;

  /* 3.4 Мрежа, отстояния, форми */
  --container: 1200px;
  --gutter: clamp(16px, 11.08px + 1.262vw, 24px);
  --sp-section: clamp(56px, 31.39px + 6.309vw, 96px);
  --sp-block: clamp(32px, 22.16px + 2.524vw, 48px);
  --gap: 24px;
  --r-card: 16px;
  --r-img: 12px;
  --r-btn: 10px;
  --r-chip: 999px;
  --r-field: 10px;
  --shadow-hover: 0 12px 32px rgba(15, 30, 36, .12);
  --header-h: 80px;
  --ease: 180ms ease;
}

@media (max-width: 1023px) {
  :root { --header-h: 64px; }
}

/* ---------- Reset + база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); font-feature-settings: "locl" 0; }
/* Manrope/Inter при lang="bg" рисуват българските форми на в, т, д, п (locl);
   изключени са - решение на Denislav 28.09.2026: стандартна кирилица. */
/* hidden печели срещу display от класове (скритите снимки на галерията) */
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--c-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-accent-hover); }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 700; color: var(--c-text); margin: 0; }
h1 { font-size: var(--t-h1); line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-size: var(--t-h2); line-height: 1.15; letter-spacing: -0.01em; }
h3 { font-size: var(--t-h3); line-height: 1.25; }
h4 { font-size: var(--t-h4); line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--sp-section); }
.section--surface { background: var(--c-surface); }
.stack > * + * { margin-top: 16px; }

.eyebrow {
  display: block;
  font-family: var(--f-body);
  font-size: var(--t-eyebrow);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.lead { font-size: var(--t-lead); line-height: 1.55; color: var(--c-muted); }
.muted { color: var(--c-muted); }
.small { font-size: var(--t-small); line-height: 1.5; }

/* 12-колонна мрежа - ширината на текст идва от колони, не от max-width */
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.col-8-center { grid-column: 3 / span 8; }
.col-8 { grid-column: 1 / span 8; }
@media (max-width: 767px) {
  .col-8-center, .col-8 { grid-column: 1 / -1; }
}

/* ---------- 3.5 Бутони ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px;
  border-radius: var(--r-btn);
  border: 1.5px solid transparent;
  font-family: var(--f-body); font-weight: 600; font-size: 16px; line-height: 1.5;
  text-decoration: none; cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
  white-space: normal; text-align: center;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--c-accent); color: var(--c-on-accent); }
.btn-primary:hover { background: var(--c-accent-hover); color: var(--c-on-accent); }
.btn-outline { background: transparent; border-color: var(--c-primary); color: var(--c-primary); }
.btn-outline:hover { background: var(--c-primary); color: #fff; }
.btn-ghost-light { background: transparent; border-color: #fff; color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--c-primary); }
.btn-white { background: #fff; color: var(--c-text); }
.btn-white:hover { background: var(--c-surface); color: var(--c-text); }
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }

/* ---------- Чипове ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-chip);
  background: var(--c-accent-soft); color: var(--c-primary);
  font-family: var(--f-body); font-weight: 500; font-size: 13px; line-height: 1.6;
  text-decoration: none;
}
.chip svg { width: 16px; height: 16px; flex: none; }
.chip-dark { background: rgba(15, 30, 36, .65); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Заглавие на секция ---------- */
.sec-head { display: grid; gap: 14px; margin-bottom: var(--sp-block); }
.sec-head--center { text-align: center; justify-items: center; }
.sec-head--row { grid-template-columns: 1fr auto; align-items: end; column-gap: var(--gap); }
.sec-head--row .sec-head__text { display: grid; gap: 14px; }
@media (max-width: 767px) {
  .sec-head--row { grid-template-columns: 1fr; row-gap: 20px; }
  .sec-head--row .btn { width: 100%; }
}

/* ==========================================================================
   Header (4.1)
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--c-border);
}
.site-header__in {
  display: flex; align-items: center; gap: 24px;
  padding-block: 18px;
}
.site-logo { display: block; flex: none; }
.site-logo img { height: 44px; width: auto; }
.nav { margin-inline: auto; }
.nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav a, .nav .nav__parent {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px; border-radius: 8px;
  color: var(--c-text); text-decoration: none;
  font-weight: 500; font-size: 15px; line-height: 1.5;
}
.nav a:hover, .nav .nav__parent:hover { color: var(--c-accent-hover); background: var(--c-surface); }
.nav a[aria-current="page"] { color: var(--c-accent-hover); }
.nav__has-sub { position: relative; }
.nav__parent svg { width: 16px; height: 16px; transition: transform var(--ease); }
.nav__sub {
  /* падащото меню е плаващ панел (overlay) - единственото absolute в хедъра */
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 5;
  display: grid; gap: 2px;
  padding: 8px; min-width: 220px;
  background: #fff; border: 1px solid var(--c-border); border-radius: 12px;
  box-shadow: var(--shadow-hover);
  list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
}
.nav__sub a { display: flex; font-size: 16px; padding: 10px 12px; }
.nav__has-sub:hover .nav__sub,
.nav__has-sub:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__has-sub:hover .nav__parent svg,
.nav__has-sub:focus-within .nav__parent svg { transform: rotate(180deg); }
.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.lang { font-weight: 600; }
.burger {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--c-border); border-radius: 10px; background: #fff; cursor: pointer;
}
.burger svg { width: 22px; height: 22px; }

@media (max-width: 1023px) {
  .site-header__in { padding-block: 10px; gap: 12px; }
  .site-logo img { height: 40px; }
  .nav, .header-actions .btn { display: none; }
  .header-actions { margin-left: auto; }
  .burger { display: inline-flex; }
}

/* Мобилно меню - цял екран, отваря се с бургера или с котвата #menu */
.menu-panel {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  flex-direction: column;
  background: #fff;
  overflow-y: auto;
}
.menu-panel:target, .menu-panel.is-open { display: flex; }
.menu-panel__top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px var(--gutter);
  border-bottom: 1px solid var(--c-border);
}
.menu-panel__top img { height: 40px; width: auto; }
.menu-panel__close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--c-border); border-radius: 10px; background: #fff; color: var(--c-text);
}
.menu-panel__close svg { width: 22px; height: 22px; }
.menu-panel__nav { padding: 16px var(--gutter) 8px; }
.menu-panel__nav ul { list-style: none; display: grid; }
.menu-panel__nav a {
  display: block; padding: 12px 0;
  font-family: var(--f-head); font-weight: 700; font-size: 24px; line-height: 1.3;
  color: var(--c-text); text-decoration: none;
  border-bottom: 1px solid var(--c-border);
}
.menu-panel__nav .sub a { padding-left: 20px; font-family: var(--f-body); font-weight: 500; font-size: 18px; }
.menu-panel__foot { display: grid; gap: 16px; padding: 24px var(--gutter) 32px; }
.menu-panel__phone { display: inline-flex; align-items: center; gap: 10px; color: var(--c-text); font-weight: 600; font-size: 18px; text-decoration: none; }
.menu-panel__phone svg { width: 20px; height: 20px; color: var(--c-accent); }

/* ==========================================================================
   Снимка + съдържание в една клетка (без absolute за подредба и без
   фиксирана височина на текст): височината идва от <img>, текстът расте.
   ========================================================================== */
.stackcell { display: grid; grid-template-columns: minmax(0, 1fr); }
.stackcell > * { grid-area: 1 / 1; min-width: 0; }
/* Височината идва от снимката (фиксирана или по съотношение); min-height:100%
   я разпъва, ако текстът в клетката е по-висок - текстът никога не се реже. */
.stackcell__img { width: 100%; height: auto; min-height: 100%; object-fit: cover; }
.stackcell__shade { z-index: 1; }
.stackcell__body { z-index: 2; }

/* Бутоните под заглавие върху снимка (хирото на началната и 404).
   От секцията на хирото в maket.css - тук, защото 404 е в базовия слой. */
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
@media (max-width: 767px) {
  .hero__btns { display: grid; width: 100%; }
  .hero__btns .btn { width: 100%; }
}

/* ---------- Карта на имот (4.2.3) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 1023px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .cards { grid-template-columns: 1fr; } }
.card-imot {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  padding: 8px;
  color: var(--c-text); text-decoration: none;
  transition: box-shadow var(--ease), transform var(--ease);
}
.card-imot:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); color: var(--c-text); }
.card-imot__img {
  position: relative;
  overflow: hidden; /* разрешено: само снимка */
  border-radius: var(--r-img);
  aspect-ratio: 4 / 3;
  background: var(--c-surface);
}
.card-imot__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.card-imot:hover .card-imot__img img { transform: scale(1.03); }
.card-imot__img .chip { position: absolute; top: 12px; }
.card-imot__img .chip--tl { left: 12px; }
.card-imot__img .chip--tr { right: 12px; }
.card-imot__noimg { display: grid; place-items: center; width: 100%; height: 100%; color: var(--c-muted); }
.card-imot__noimg svg { width: 32px; height: 32px; }
.card-imot__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 12px 12px; flex: 1; }
.card-imot__body h3 { font-size: 20px; line-height: 1.3; overflow-wrap: anywhere; }
.card-imot__meta { display: flex; align-items: center; gap: 6px; font-size: var(--t-small); color: var(--c-muted); }
.card-imot__meta svg { width: 16px; height: 16px; color: var(--c-accent); flex: none; }
.card-imot__price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.card-imot__price small { color: var(--c-muted); font-size: 14px; }
.card-imot__price strong { font-family: var(--f-head); font-weight: 700; font-size: 20px; color: var(--c-accent-hover); letter-spacing: -0.01em; }
.card-imot__price { margin-bottom: 12px; }
.card-imot__body .btn { margin-top: auto; }

/* ---------- CTA лента ---------- */
.cta-band { position: relative; color: #fff; background: var(--c-primary-deep); text-align: center; }
.cta-band__img, .cta-band__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta-band__img { object-fit: cover; }
.cta-band__shade { background: linear-gradient(rgba(15, 30, 36, .78), rgba(15, 30, 36, .55)); }
.cta-band__body { position: relative; display: grid; gap: 18px; justify-items: center; padding-block: var(--sp-section); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .85); font-size: var(--t-lead); line-height: 1.55; }
.cta-band .btn { margin-top: 8px; }

/* ---------- Защо да изберете нас (4.2.7) ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 1023px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .why-grid { grid-template-columns: 1fr; } }
.why-card { display: grid; align-content: start; gap: 14px; padding: 28px; background: #fff; border-radius: var(--r-card); border: 1px solid var(--c-border); }
.why-card p { color: var(--c-muted); }
.icon-circle { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--c-accent-soft); color: var(--c-primary); flex: none; }
.icon-circle svg { width: 24px; height: 24px; }
.icon-circle--40 { width: 40px; height: 40px; }
.icon-circle--40 svg { width: 20px; height: 20px; }

/* ---------- Акордеон (4.2.8) ---------- */
.acc { display: grid; gap: 12px; }
.acc-item { border: 1px solid var(--c-border); border-radius: 12px; background: #fff; border-left-width: 1px; transition: border-color var(--ease); }
.acc-item.is-open { border-left: 3px solid var(--c-accent); }
.acc-item h3 { font-size: 20px; line-height: 1.35; }
.acc-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; padding: 20px 24px;
  background: none; border: 0; text-align: left; cursor: pointer;
  font-family: var(--f-head); font-weight: 700; font-size: 20px; line-height: 1.35; color: var(--c-text);
}
.acc-btn svg { width: 22px; height: 22px; flex: none; color: var(--c-accent); transition: transform var(--ease); }
.acc-item.is-open .acc-btn svg { transform: rotate(180deg); }
.acc-panel { padding: 0 24px 24px; color: var(--c-text); }
.acc-panel[hidden] { display: none; }
.acc-panel ul, .acc-panel ol { padding-left: 22px; display: grid; gap: 6px; margin-block: 8px; }
.acc-panel li > p { margin: 0; }
.acc-panel p + p { margin-top: 10px; }
.acc-panel strong { font-weight: 600; }
@media (max-width: 767px) {
  .acc-btn { padding: 16px 18px; font-size: 18px; }
  .acc-panel { padding: 0 18px 18px; }
}

/* ==========================================================================
   Хиро на вътрешна страница
   ========================================================================== */
.page-hero { color: #fff; background: var(--c-primary-deep); }
.page-hero .stackcell__img { height: 320px; }
.page-hero .stackcell__shade { background: linear-gradient(180deg, rgba(15, 30, 36, .35), rgba(15, 30, 36, .72)); }
.page-hero .stackcell__body { align-self: end; padding-block: 40px 36px; display: grid; gap: 10px; }
.page-hero h1 { color: #fff; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .8); list-style: none; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .7; }
.page-hero--plain { background: var(--c-surface); color: var(--c-text); }
.page-hero--plain .page-hero__in { padding-block: 64px 40px; display: grid; gap: 10px; }
.page-hero--plain h1 { color: var(--c-text); }
.page-hero--plain .crumbs { color: var(--c-muted); }
.page-hero--plain .crumbs a:hover { color: var(--c-primary); }
.page-hero--full .stackcell__img { height: 70vh; }
.page-hero--full .stackcell__body { align-self: center; display: grid; gap: 18px; justify-items: start; }
@media (max-width: 767px) {
  .page-hero .stackcell__img { height: 220px; }
  .page-hero .stackcell__body { padding-block: 24px; }
  .page-hero--plain .page-hero__in { padding-block: 40px 28px; }
  .page-hero--full .stackcell__img { height: 70vh; }
}

/* ---------- Полета (филтърът и общите форми) ---------- */
.field-sel, .field-in {
  width: 100%; padding: 12px 38px 12px 14px;
  border: 1px solid var(--c-border); border-radius: var(--r-field);
  background: #fff; color: var(--c-text);
  font: 500 15px/1.4 var(--f-body);
  -webkit-appearance: none; appearance: none;
}
.field-sel { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235A6B72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.field-in { padding-right: 14px; }
.field-sel:focus, .field-in:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent); }

.pag { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: var(--sp-block); list-style: none; }
.pag a, .pag span {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  min-width: 44px; padding: 10px 14px;
  border: 1px solid var(--c-border); border-radius: 10px;
  color: var(--c-text); text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.5;
}
.pag a:hover { border-color: var(--c-accent); color: var(--c-accent-hover); }
.pag .is-current { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-on-accent); }
.pag .dots { border: 0; min-width: auto; padding-inline: 4px; }
.pag svg { width: 16px; height: 16px; }
@media (max-width: 767px) { .pag .pag__label { display: none; } }

/* ---------- Форма (Fluent Forms класове 1:1 от design/live/kontakti-dom.md) ---------- */
.fluentform fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.ff_screen_reader_title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fluentform .ff-t-container { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fluentform .ff-el-group { margin-bottom: 18px; }
.fluentform .ff-t-container .ff-el-group { margin-bottom: 18px; }
.fluentform .ff-el-input--label label { display: inline-block; margin-bottom: 6px; font-weight: 500; font-size: 14px; line-height: 1.5; color: var(--c-text); }
.fluentform .ff-el-is-required.asterisk-right label::after { content: " *"; color: var(--c-error); }
.fluentform .ff-el-form-control {
  display: block; width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--c-border); border-radius: var(--r-field);
  background: #fff; color: var(--c-text);
  font: 400 16px/1.5 var(--f-body);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.fluentform textarea.ff-el-form-control { min-height: 132px; resize: vertical; }
.fluentform .ff-el-form-control:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent); }
.fluentform .iti { display: flex; width: 100%; }
.fluentform .iti__country-container { display: flex; }
.fluentform .iti__selected-country {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 12px;
  border: 1px solid var(--c-border); border-right: 0;
  border-radius: var(--r-field) 0 0 var(--r-field);
  background: var(--c-surface); cursor: pointer; font-size: 14px;
}
.fluentform .iti .ff-el-form-control { border-radius: 0 var(--r-field) var(--r-field) 0; }
.fluentform .iti__flag-bg { display: inline-block; width: 20px; height: 14px; border-radius: 2px; background: linear-gradient(#fff 0 33%, #00966E 33% 66%, #D62612 66%); box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.fluentform .iti__arrow { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--c-muted); }
.fluentform .ff-btn-submit {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border: 0; border-radius: var(--r-btn);
  background: var(--c-accent); color: var(--c-on-accent);
  font: 600 16px/1.5 var(--f-body); cursor: pointer; transition: background var(--ease);
}
.fluentform .ff-btn-submit:hover { background: var(--c-accent-hover); }
.fluentform .ff-el-is-error .ff-el-form-control { border-color: var(--c-error); box-shadow: 0 0 0 1px var(--c-error); }
.fluentform .ff-el-is-error .error { margin-top: 6px; font-size: 14px; color: var(--c-error); }
@media (max-width: 767px) {
  .fluentform .ff-t-container { grid-template-columns: 1fr; gap: 0; }
  .fluentform .ff-btn-submit { width: 100%; }
}

/* ---------- Базов слой за съдържание от редактора (4.8) ---------- */
.entry-content { font-size: var(--t-body); line-height: 1.7; }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2 { margin-top: 1.8em; font-size: var(--t-h3); }
.entry-content h3 { margin-top: 1.5em; font-size: var(--t-h4); }
.entry-content h4 { margin-top: 1.3em; font-size: 18px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; display: grid; gap: .4em; }
.entry-content li::marker { color: var(--c-accent); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { padding: 12px 14px; border-bottom: 1px solid var(--c-border); text-align: left; vertical-align: top; }
.entry-content th { background: var(--c-surface); font-weight: 600; }
.entry-content blockquote { margin-inline: 0; padding: 16px 22px; border-left: 3px solid var(--c-accent); background: var(--c-surface); border-radius: 0 12px 12px 0; font-family: var(--f-head); font-weight: 600; font-size: var(--t-h4); line-height: 1.5; }
.entry-content figure { margin-inline: 0; }
.entry-content figure img { border-radius: var(--r-img); }
.entry-content figcaption { margin-top: 8px; font-size: 14px; color: var(--c-muted); }
.entry-content hr { border: 0; border-top: 1px solid var(--c-border); margin-block: 2em; }
.entry-content code { padding: 2px 6px; background: var(--c-surface); border-radius: 6px; font-size: .9em; }
.entry-content .table-wrap { overflow-x: auto; }

/* ==========================================================================
   Футър (4.2.9)
   ========================================================================== */
.site-footer { position: relative; background: var(--c-primary-deep); color: rgba(255, 255, 255, .75); }
.site-footer__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .12; }
.site-footer__in { position: relative; padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-col { display: grid; align-content: start; gap: 16px; }
.footer-logo img { height: 48px; width: auto; filter: brightness(0) invert(1); }
.footer-col p { font-size: 15px; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: 18px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: rgba(255, 255, 255, .8); text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-contacts { display: grid; gap: 10px; list-style: none; }
.footer-contacts li, .footer-contacts a { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.footer-contacts svg { width: 18px; height: 18px; color: var(--c-accent); flex: none; margin-top: 2px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.footer-bottom a { color: #fff; }
@media (max-width: 1023px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__in { padding-top: 48px; }
}

/* ==========================================================================
   Допълнения на темата (не са в макета като клас, поведението е по правило)
   ========================================================================== */
/* Макетът има тези два реда като inline style="justify-self:start". */
.footer-col .btn { justify-self: start; }
.menu-panel__foot .lang { justify-self: start; }
/* 404: абзацът върху снимката (в макета inline style). */
.page-hero--full .lead { color: rgba(255, 255, 255, .85); }

/* Връзката „Към съдържанието" се показва при фокус от клавиатура. */
.sr-only:focus-visible {
  position: fixed; top: 8px; left: 8px; z-index: 300;
  width: auto; height: auto; margin: 0; padding: 10px 16px; clip: auto; white-space: normal;
  background: #fff; color: var(--c-primary); border-radius: var(--r-btn); box-shadow: var(--shadow-hover);
}
/* Класът на WP за скрит текст = .sr-only. */
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Падащото „Имоти": Esc го затваря, докато фокусът/мишката не излязат (main.js). */
.nav__has-sub.is-closed .nav__sub { opacity: 0; visibility: hidden; transform: translateY(-4px); }
.nav__has-sub.is-closed .nav__parent svg { transform: none; }

/* Защитена страница (PLAN 4.10): формата за парола в стила на формите. */
.post-password-form { display: grid; gap: 14px; }
.post-password-form p { margin: 0; }
.post-password-form label { display: grid; gap: 6px; font-weight: 500; font-size: 14px; line-height: 1.5; }
.post-password-form input[type="password"] {
  display: block; width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--c-border); border-radius: var(--r-field);
  background: #fff; color: var(--c-text);
  font: 400 16px/1.5 var(--f-body);
}
.post-password-form input[type="password"]:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent); }
.post-password-form input[type="submit"] {
  justify-self: start; margin-top: 8px;
  padding: 14px 28px; border: 0; border-radius: var(--r-btn);
  background: var(--c-accent); color: var(--c-on-accent);
  font: 600 16px/1.5 var(--f-body); cursor: pointer; transition: background var(--ease);
}
.post-password-form input[type="submit"]:hover { background: var(--c-accent-hover); }

/* Подравняване от редактора. */
.entry-content .aligncenter { margin-inline: auto; }
.entry-content .alignleft { float: left; margin: .3em 1.5em 1em 0; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.5em; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content .wp-caption-text { margin-top: 8px; font-size: 14px; color: var(--c-muted); }
@media (max-width: 767px) {
  .entry-content .alignleft, .entry-content .alignright { float: none; margin: 1em 0; }
}
