/* =========================================================
   Дом Компания – основни стилове на сайта
   Bootstrap 5.3.8 се зарежда преди този файл.
   Съдържание:
     1. Променливи и общи
     2. Бутони
     3. Навигация (хедър)
     4. Hero
     5. Търсачка
     6. Активни филтри
     7. Резултати
     8. Карти на имоти
     9. Странициране
    10. Футър
    11. Адаптивност (таблет и мобилни)
   ========================================================= */

/* ---------- Променливи и общи ---------- */
:root {
  --brand: #F5EFE6;               /* основен цвят (фонове на бутони, футър, активни елементи) */
  --brand-hover: #ECE2D4;
  --brand-text: #8B6A47;          /* акцент за текст и икони върху бял фон */
  --brand-text-hover: #6E5236;
  --brand-border: #DCC9AF;        /* рамка на бежовите бутони */
  --on-brand: #2B241D;            /* текст върху бежовото */
  --brand-soft: #FAF6F0;
  --brand-soft-border: #E8DCCB;
  --ink: #18241e;
  --muted: #6c7570;
  --line: #e3e7e4;
  --bg-soft: #f5f7f5;
  --radius: 8px;

  --bs-body-font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --bs-body-color: var(--ink);
  --bs-link-color-rgb: 139, 106, 71;
  --bs-link-hover-color-rgb: 110, 82, 54;
}

/* Еднаква кирилица на БГ и EN: изключваме българските форми на буквите (д, в, т, л …),
   които браузърът включва автоматично при <html lang="bg"> */
body,
input,
select,
textarea,
button {
  font-feature-settings: "locl" 0;
}

body {
  font-family: var(--bs-body-font-family);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

.container-xl {
  max-width: 1240px;
}

/* ---------- Бутони ---------- */
.btn-brand {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand-border);
  --bs-btn-color: var(--on-brand);
  --bs-btn-hover-bg: var(--brand-hover);
  --bs-btn-hover-border-color: var(--brand-border);
  --bs-btn-hover-color: var(--on-brand);
  --bs-btn-active-color: var(--on-brand);
  --bs-btn-active-bg: var(--brand-hover);
  --bs-btn-active-border-color: var(--brand-border);
  --bs-btn-focus-shadow-rgb: 139, 106, 71;
  font-weight: 700;
  border-radius: 6px;
}

/* ---------- Навигация ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.site-header .navbar {
  min-height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--brand-text);
}

.brand-logo svg {
  width: 46px;
  height: 42px;
  flex: none;
}

.brand-logo .brand-text {
  line-height: 1;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .02em;
}

.brand-logo .brand-text span {
  display: block;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .04em;
  margin-top: 2px;
}

.main-nav .nav-link {
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  padding: 26px 0 !important;
  margin: 0 14px;
  position: relative;
}

.main-nav .nav-link:hover {
  color: var(--brand-text);
}

.main-nav .nav-link.active {
  color: var(--brand-text);
}

.main-nav .nav-link:focus-visible {
  outline: 2px solid var(--brand-text);
  outline-offset: 4px;
  border-radius: 2px;
}

.main-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  bottom: 16px;
  height: 2px;
  background: var(--brand-text);
  border-radius: 2px;
}

/* Превключвател на езика (БГ / EN) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.lang-switch a {
  color: var(--muted);
  text-decoration: none;
  padding: 4px 7px;
  border-radius: 6px;
  line-height: 1;
  transition: color .15s, background-color .15s;
}

.lang-switch a + a {
  position: relative;
  margin-left: 1px;
}

.lang-switch a + a::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 50%;
  width: 1px;
  height: 12px;
  margin-top: -6px;
  background: var(--line);
}

.lang-switch a:hover {
  color: var(--brand-text);
}

.lang-switch a.active {
  color: var(--brand-text);
  background: var(--brand-soft);
}

.lang-switch a.active::before {
  display: none;
}

.lang-switch a.active + a::before {
  display: none;
}

.fav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  text-decoration: none;
  font-size: 21px;
}

.fav-link .count {
  background: var(--brand);
  color: var(--on-brand);
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.btn-contact {
  padding: 11px 20px;
  font-size: 14px;
}

.btn-contact i {
  margin-right: 8px;
}

/* „Моят профил“ – зелен бутон с падащо меню */
.profile-btn {
  --bs-btn-active-color: var(--on-brand);
  display: inline-flex;
  align-items: center;
}

.profile-btn::after {
  display: none;
}

.btn-contact.profile-btn .chev {
  font-size: 11px;
  margin: 0 0 0 10px;
  transition: transform .2s;
}

.profile-btn[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

/* „Любими имоти“ в менюто на профила – с брой */
.dropdown-item.fav-item {
  display: flex;
  align-items: center;
}

.fav-item .fav-label {
  padding-right: 18px;
}

.fav-item .count {
  min-width: 22px;
  height: 20px;
  margin-left: auto;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.profile-toggle .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eef1ef;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 15px;
}

.profile-toggle::after {
  display: none;
}

.profile-toggle .fa-chevron-down {
  font-size: 12px;
  margin-left: 4px;
}

.dropdown-menu {
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(20, 40, 30, .1);
  font-size: 14px;
}

.dropdown-item:active {
  background: var(--brand);
  color: var(--on-brand);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background-color: #f4f1ec;
  padding: 34px 0 150px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1800&q=80') right 30% / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .93) 30%, rgba(255, 255, 255, .55) 48%, rgba(255, 255, 255, 0) 66%);
}

.hero .container-xl {
  position: relative;
  z-index: 1;
}

.hero .breadcrumb {
  font-size: 12px;
  margin-bottom: 38px;
  --bs-breadcrumb-divider: '›';
  --bs-breadcrumb-divider-color: var(--muted);
}

.hero .breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.hero .breadcrumb-item.active {
  color: var(--muted);
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(2.3rem, 4.2vw, 3.3rem);
  letter-spacing: -.02em;
  line-height: 1.05;
  margin-bottom: 22px;
  color: #121a16;
}

.hero h1 span {
  color: var(--brand-text);
}

.hero .lead {
  font-size: 17px;
  color: #39443e;
  max-width: 520px;
  line-height: 1.55;
  font-weight: 500;
}

/* ---------- Търсачка ---------- */
.search-card {
  position: relative;
  z-index: 2;
  margin-top: -118px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(25, 45, 35, .10);
  padding: 14px 20px 18px;
}

.type-tabs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.type-tabs::-webkit-scrollbar {
  display: none;
}

.type-tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #edf0ee;
  background: #f6f7f6;
  color: #2c3631;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 6px;
  transition: .15s;
}

.type-tab i {
  font-size: 15px;
}

.type-tab:hover {
  border-color: var(--brand-soft-border);
  background: var(--brand-soft);
}

.type-tab.active {
  background: var(--brand);
  border-color: var(--brand-border);
  color: var(--on-brand);
}

.search-row {
  margin-top: 18px;
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 14px 9px 16px;
  height: 58px;
  background: #fff;
  transition: border-color .15s;
}

.search-field:focus-within {
  border-color: var(--brand-text);
  box-shadow: 0 0 0 3px rgba(139, 106, 71, .16);
}

.search-field>i {
  font-size: 17px;
  color: #2c3631;
  width: 20px;
  text-align: center;
}

.search-field .field-body {
  flex: 1;
  min-width: 0;
}

.search-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #2c3631;
  margin-bottom: 1px;
}

.search-field select,
.search-field input {
  width: 100%;
  border: 0;
  padding: 0;
  font-size: 14px;
  color: var(--muted);
  background: transparent;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-family: inherit;
}

.search-field .chev {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: #2c3631;
  pointer-events: none;
}

.btn-search {
  height: 58px;
  width: 100%;
  font-size: 16px;
}

.btn-search i {
  margin-right: 10px;
}

.more-filters-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 4px 8px;
}

.more-filters-toggle .fa-chevron-down {
  font-size: 11px;
  margin-left: 4px;
  transition: transform .2s;
}

.more-filters-toggle[aria-expanded="true"] .fa-chevron-down {
  transform: rotate(180deg);
}

.more-filters .form-select,
.more-filters .form-control {
  height: 46px;
  font-size: 14px;
  border-color: var(--line);
  border-radius: 6px;
  color: var(--ink);
}

.more-filters .form-label {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}

.form-check-input:checked {
  background-color: var(--brand-text);
  border-color: var(--brand-text);
}

/* ---------- Активни филтри ---------- */
.active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.active-filters .af-label {
  font-size: 13px;
  font-weight: 700;
  margin-right: 2px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-soft-border);
  color: #5C4630;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
}

.filter-chip button {
  border: 0;
  background: none;
  padding: 0;
  line-height: 1;
  color: #5C4630;
  font-size: 13px;
}

.clear-all {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
}

.clear-all:hover {
  color: var(--brand-text);
}

/* ---------- Резултати ---------- */
.results-head {
  margin-top: 34px;
  margin-bottom: 18px;
}

.results-head h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -.01em;
}

.results-head h2 span {
  color: var(--brand-text);
}

.sort-label {
  font-size: 13px;
  color: #3b4640;
  font-weight: 500;
}

.sort-select {
  width: 190px;
  height: 40px;
  font-size: 13px;
  font-weight: 600;
  border-color: var(--line);
  border-radius: 6px;
}

.sort-select:focus,
.more-filters .form-select:focus,
.more-filters .form-control:focus {
  border-color: var(--brand-text);
  box-shadow: 0 0 0 3px rgba(139, 106, 71, .16);
}

.view-btn {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid #edf0ee;
  background: #f3f5f4;
  color: #2c3631;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.view-btn.active {
  background: var(--brand);
  border-color: var(--brand-border);
  color: var(--on-brand);
}

/* ---------- Карти ---------- */
.property-card {
  position: relative;
  background: #fff;
  border: 1px solid #e9ecea;
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(20, 40, 30, .04);
  transition: box-shadow .2s, transform .2s;
}

.property-card:hover {
  box-shadow: 0 14px 30px rgba(20, 40, 30, .12);
  transform: translateY(-2px);
}

.property-media {
  position: relative;
  aspect-ratio: 2.12 / 1;
  overflow: hidden;
  background: #e9ecea;
  display: block;
}

.property-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.property-card:hover .property-media img {
  transform: scale(1.04);
}

.type-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #fff;
  color: var(--brand-text);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

.fav-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #18241e;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
  transition: transform .15s;
}

.fav-btn:hover {
  transform: scale(1.08);
}

.fav-btn.is-fav {
  color: var(--brand-text);
}

.property-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.property-title {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -.005em;
}

.property-title a {
  color: var(--ink);
  text-decoration: none;
}

.property-title a:hover {
  color: var(--brand-text);
}

.property-location {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.property-location i {
  color: var(--brand-text);
  font-size: 12px;
}

.property-price {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -.01em;
}

.property-features {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  font-size: 12.5px;
  color: #3b4640;
}

.property-features span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.property-features i {
  color: #5d6862;
  font-size: 14px;
}

/* Изглед "списък" */
.listing.is-list>[class*="col-"] {
  width: 100%;
}

.listing.is-list .property-card {
  flex-direction: row;
}

.listing.is-list .property-media {
  width: 38%;
  aspect-ratio: auto;
  min-height: 190px;
  flex: none;
}

.listing.is-list .property-body {
  padding: 22px 26px;
}

.listing.is-list .property-title {
  font-size: 18px;
}

.listing.is-list .property-price {
  font-size: 22px;
}

.listing.is-list .property-features {
  justify-content: flex-start;
  gap: 34px;
}

.empty-state {
  display: none;
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
}

/* ---------- Странициране ---------- */
.pager {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 36px 0 0;
}

/* въздух между имотите и футъра (със и без страници) */
.listing-page {
  padding-bottom: 80px;
}

.pager a {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid #e3e7e4;
  background: #f3f5f4;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: .15s;
}

.pager a.arrow {
  background: #fff;
  font-size: 12px;
}

.pager a:hover {
  border-color: var(--brand-text);
  color: var(--brand-text);
}

.pager a.active {
  background: var(--brand);
  border-color: var(--brand-border);
  color: var(--on-brand);
}

.pager a.disabled {
  pointer-events: none;
  opacity: .5;
}

/* ---------- Имоти от базата ---------- */
/* горе в търсачката: табове по вид имот + Купи / Наем */
.search-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.search-top .type-tabs {
  min-width: 0;
}

.deal-switch {
  flex: none;
  display: inline-flex;
  padding: 3px;
  border-radius: 8px;
  background: #F7F2EB;
  border: 1px solid #EADFCE;
}

.deal-switch label {
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #59635e;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}

.deal-switch .btn-check:checked + label {
  background: #fff;
  color: var(--brand-text);
  box-shadow: 0 1px 3px rgba(20, 40, 30, .12);
}

.deal-switch .btn-check:focus-visible + label {
  outline: 2px solid var(--brand-text);
  outline-offset: 1px;
}

/* активни филтри – хиксчето е връзка */
.filter-chip a {
  color: #5C4630;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
}

.filter-chip a:hover {
  color: var(--brand-text-hover);
}

a.clear-all {
  text-decoration: none;
}

.pager-dots {
  align-self: center;
  color: var(--muted);
  padding: 0 4px;
}

/* имот без снимка */
.property-noimg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b8c2bc;
  font-size: 34px;
  background: linear-gradient(135deg, #eef1ef, #e3e8e5);
}

/* етикет „Резервиран“ */
.status-badge {
  position: absolute;
  top: 10px;
  right: 54px;
  background: #b7791f;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 4px;
}

.pd-main .status-badge.pd-status {
  top: 16px;
  left: 16px;
  right: auto;
  font-size: 12.5px;
  padding: 6px 12px;
}

/* галерия с една снимка */
.pd-gallery.pd-gallery-single {
  grid-template-columns: 1fr;
}

.pd-main .property-noimg {
  font-size: 54px;
}

/* описанието от редактора */
.pd-text > *:last-child {
  margin-bottom: 0;
}

.pd-text img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.pd-text h2,
.pd-text h3 {
  font-size: 19px;
  font-weight: 800;
  margin: 18px 0 8px;
  color: var(--ink);
}

/* имотът не е намерен */
.pd-notfound {
  text-align: center;
  padding: 90px 0 110px;
}

.pd-notfound i {
  font-size: 46px;
  color: #b8c2bc;
  margin-bottom: 18px;
}

.pd-notfound h1 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 22px;
}

@media (max-width: 767.98px) {
  .search-top {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .deal-switch {
    align-self: flex-start;
  }
}

/* ---------- Бисквитки – банер за съгласие ---------- */
.cc-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 1080;
  width: min(560px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(30, 24, 18, .18);
  padding: 22px 22px 18px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s;
}

.cc-banner.is-open {
  opacity: 1;
  transform: none;
}

.cc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.cc-icon {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.cc-banner h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}

.cc-banner p {
  font-size: 14px;
  line-height: 1.6;
  color: #4a544f;
  margin-bottom: 16px;
}

.cc-banner p a {
  color: var(--brand-text);
  font-weight: 700;
}

.cc-prefs {
  border-top: 1px solid var(--line);
  margin-bottom: 14px;
}

.cc-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  margin: 0;
}

.cc-cat-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cc-cat-text strong {
  font-size: 14px;
}

.cc-cat-text span {
  font-size: 12.5px;
  color: var(--muted);
}

.cc-always {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-text);
}

.cc-cat .form-check-input {
  width: 2.4em;
  height: 1.3em;
  cursor: pointer;
}

.cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cc-btn {
  flex: 1 1 0;
  min-width: 120px;
  height: 44px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
}

/* „Отказвам“ е толкова видим, колкото „Приемам“ – изискване на GDPR */
.cc-reject,
.cc-save {
  border: 1px solid var(--brand-border);
  background: #fff;
  color: var(--on-brand);
}

.cc-reject:hover,
.cc-save:hover {
  background: var(--brand-soft);
  color: var(--on-brand);
}

.cc-settings {
  border: 0;
  background: none;
  color: var(--brand-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cc-settings:hover {
  color: var(--brand-text-hover);
}

/* карта преди съгласие */
.pd-map {
  position: relative;
}

.cc-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  background: var(--brand-soft);
  color: var(--muted);
  font-size: 13.5px;
}

.contact-map .map-card {
  z-index: 2;
}

.contact-map .cc-placeholder {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  justify-content: flex-start;
  gap: 10px 14px;
  padding: 18px 20px;
  text-align: left;
}

.contact-map .cc-placeholder i {
  font-size: 22px;
}

.contact-map .cc-placeholder p {
  flex: 1 1 160px;
  max-width: none;
}

/* докато картата чака съгласие, картичката на офиса слиза долу */
.contact-map:has(.cc-placeholder) .map-card {
  top: auto;
  bottom: 18px;
  transform: none;
}

.cc-placeholder i {
  font-size: 28px;
  color: var(--brand-text);
}

.cc-placeholder p {
  margin: 0;
  max-width: 260px;
}

@media (max-width: 575.98px) {
  .cc-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    padding: 18px 16px 14px;
  }

  .cc-btn {
    flex-basis: 100%;
  }

  .cc-accept {
    order: -1;
  }
}

/* „За нас“ – член без снимка и партньор с връзка */
.team-noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1.4 / 1;
  background: var(--brand-soft);
  color: var(--brand-text);
  font-size: 40px;
}

a.partner-logo {
  text-decoration: none;
}

/* ---------- Футър ---------- */
.site-footer {
  background: var(--brand);
  color: rgba(43, 36, 29, .86);
  font-size: 14px;
}

.site-footer .footer-main {
  padding-top: 38px;
  padding-bottom: 30px;
}

.site-footer .brand-logo {
  color: var(--on-brand);
  margin-bottom: 18px;
}

.site-footer .footer-about {
  max-width: 290px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.site-footer h5 {
  color: var(--on-brand);
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 14px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a {
  color: rgba(43, 36, 29, .86);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--on-brand);
  text-decoration: underline;
}

.social a {
  color: var(--brand-text);
  font-size: 18px;
  margin-right: 18px;
}

.social a:hover {
  text-decoration: none;
  opacity: .8;
}

.contact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.contact-list i {
  color: var(--brand-text);
  width: 16px;
  margin-top: 3px;
  text-align: center;
}

.footer-bottom {
  border-top: 1px solid rgba(43, 36, 29, .14);
  padding: 16px 0;
  font-size: 12.5px;
}

.footer-bottom .sep {
  opacity: .5;
  margin: 0 8px;
}

/* ---------- Обикновена страница (pages.php) ---------- */
.page-content {
  min-height: 50vh;
  padding: 48px 0 64px;
}

/* ---------- Страница „Контакти“ (contacts.php) ---------- */
.contact-hero {
  position: relative;
  overflow: hidden;
  background-color: #f4f1ec;
  padding: 58px 0 64px;
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--contact-hero-img, url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=1800&q=80')) right 60% / cover no-repeat;
}

.contact-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .92) 32%, rgba(255, 255, 255, .5) 50%, rgba(255, 255, 255, 0) 64%);
}

.contact-hero .container-xl {
  position: relative;
  z-index: 1;
}

.contact-hero .eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-text);
  margin-bottom: 14px;
}

.contact-hero h1 {
  font-weight: 800;
  font-size: clamp(2.3rem, 4.2vw, 3.3rem);
  letter-spacing: -.02em;
  line-height: 1.05;
  margin-bottom: 20px;
  color: #121a16;
}

.contact-hero h1 span {
  color: var(--brand-text);
}

.contact-hero .lead {
  font-size: 17px;
  color: #39443e;
  max-width: 520px;
  line-height: 1.55;
  font-weight: 500;
  margin: 0;
}

.contact-main {
  padding: 20px 0 26px;
}

.contact-sub {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 26px;
  line-height: 1.5;
}

/* Формата */
.contact-form-card {
  background: #fbfcfb;
  border: 1px solid #edf0ee;
  border-radius: 12px;
  padding: 34px 32px 32px;
  height: 100%;
  box-shadow: 0 6px 24px rgba(20, 40, 30, .04);
}

.contact-form-card h2 {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 8px;
}

.input-icon {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 58px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 16px;
  margin: 0;
  cursor: text;
  transition: border-color .15s, box-shadow .15s;
}

.input-icon:focus-within {
  border-color: var(--brand-text);
  box-shadow: 0 0 0 3px rgba(139, 106, 71, .16);
}

.input-icon > i:first-child {
  font-size: 16px;
  color: #4D443B;
  width: 18px;
  text-align: center;
  flex: none;
}

.input-icon input,
.input-icon select,
.input-icon textarea {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  padding: 0;
}

.input-icon input::placeholder,
.input-icon textarea::placeholder {
  color: #7a837e;
}

.input-icon select {
  height: 56px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  color: #7a837e;
}

.input-icon select.has-value {
  color: var(--ink);
}

.input-icon .chev {
  font-size: 13px;
  color: #2c3631;
  pointer-events: none;
}

.input-icon.is-textarea {
  align-items: flex-start;
  padding-top: 16px;
  padding-bottom: 30px;
}

.input-icon.is-textarea > i:first-child {
  margin-top: 3px;
}

.input-icon textarea {
  resize: none;
  min-height: 92px;
  line-height: 1.5;
}

.char-count {
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-size: 12px;
  color: #8a928d;
}

.contact-consent {
  display: flex;
  gap: 12px;
  padding-left: 0;
  margin: 6px 0 4px;
}

.contact-consent .form-check-input {
  float: none;
  margin: 2px 0 0;
  width: 20px;
  height: 20px;
  flex: none;
  border: 2px solid #4D443B;
  border-radius: 3px;
}

.contact-consent .form-check-label {
  font-size: 13.5px;
  color: #3b4640;
  line-height: 1.55;
}

.btn-send {
  width: 100%;
  height: 58px;
  font-size: 15px;
  border-radius: 6px;
}

.btn-send i {
  margin-right: 14px;
}

/* Съобщение след изпращане на формата */
.contact-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 20px;
}

.contact-alert i {
  font-size: 18px;
  margin-top: 1px;
}

.contact-alert.is-success {
  background: var(--brand-soft);
  border: 1px solid var(--brand-soft-border);
  color: var(--brand-text);
}

.contact-alert.is-error {
  background: #fdecea;
  border: 1px solid #f5c6c0;
  color: #a12a1e;
}

/* поле-капан за ботове – скрито за хората */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-info-list a + a strong {
  margin-top: 2px;
}

/* Карта с контакти */
.contact-info-card {
  background: #f3f5f3;
  border-radius: 12px;
  padding: 26px 24px 18px;
}

.contact-info-card h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 6px;
}

.contact-info-card .contact-sub {
  font-size: 13.5px;
  margin-bottom: 16px;
}

.contact-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-info-list li {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 8px 0;
}

.ci-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e5eae6;
  color: #4A3D31;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex: none;
}

.contact-info-list strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.contact-info-list a {
  text-decoration: none;
}

.contact-info-list a:hover strong {
  color: var(--brand-text);
}

.contact-info-list span:not(.ci-icon) {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 2px;
}

/* Карта (Google Maps) */
.contact-map {
  position: relative;
  flex: 1;
  min-height: 230px;
  border-radius: 12px;
  overflow: hidden;
  background: #e9ecea;
}

.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-card {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 14px;
  background: #fff;
  border-radius: 8px;
  padding: 10px 16px 10px 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
  max-width: calc(100% - 48px);
}

.map-card img {
  width: 104px;
  height: 104px;
  object-fit: cover;
  border-radius: 4px;
  flex: none;
}

.map-card strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin: 4px 0 6px;
}

.map-card span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 12px;
}

.map-card a {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}

.map-card a i {
  margin-left: 6px;
  font-size: 11px;
}

.map-card a:hover {
  color: var(--brand-text);
}

/* Предимства */
.contact-features {
  background: #f3f5f3;
  padding: 30px 0;
}

.feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #e5eae6;
  color: #4A3D31;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex: none;
}

.feature h4 {
  font-size: 14.5px;
  font-weight: 800;
  margin: 2px 0 6px;
}

.feature p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* ---------- Начална страница (index.php) ---------- */
.home-hero {
  position: relative;
  overflow: hidden;
  background-color: #f4f1ec;
  padding: 92px 0 210px;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=2000&q=80') right 40% / cover no-repeat;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .9) 28%, rgba(255, 255, 255, .45) 48%, rgba(255, 255, 255, 0) 62%);
}

.home-hero .container-xl {
  position: relative;
  z-index: 1;
}

.home-hero h1 {
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 4.1rem);
  letter-spacing: -.025em;
  line-height: 1.05;
  margin-bottom: 26px;
  color: #121a16;
}

.home-hero h1 span {
  color: var(--brand-text);
}

.home-hero .lead {
  font-size: 18px;
  color: #39443e;
  max-width: 520px;
  line-height: 1.55;
  font-weight: 500;
  margin-bottom: 30px;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 28px;
  font-size: 15px;
}

.btn-hero i {
  font-size: 14px;
}

.home-search {
  margin-top: -130px;
}

/* Заглавия на секции */
.section-head {
  margin-bottom: 28px;
}

.section-head h2,
.home-why h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}

.section-head h2 span,
.home-why h2 span {
  color: var(--brand-text);
}

.section-head p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.link-arrow {
  font-size: 14px;
  font-weight: 800;
  color: var(--brand-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.link-arrow:hover {
  color: var(--brand-text-hover);
}

/* Избрани имоти */
.home-featured {
  padding: 70px 0 34px;
}

.featured-card .property-media {
  aspect-ratio: 1.4 / 1;
}

.featured-card .property-body {
  padding: 18px 20px 20px;
}

.featured-card .property-price {
  font-size: 23px;
  margin-bottom: 8px;
}

.featured-card .property-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.featured-card .property-location {
  margin-bottom: 18px;
}

.featured-card .property-features {
  margin-bottom: 18px;
}

.btn-more {
  width: 100%;
  background: #eef1ee;
  border: 0;
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
  padding: 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn-more:hover {
  background: var(--brand);
  color: var(--on-brand);
}

/* За нас */
.home-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 34px;
  min-height: 460px;
}

.about-text {
  background: var(--brand);
  color: var(--on-brand);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 70px 64px 70px 24px;
}

.about-text-inner {
  max-width: 560px;
  width: 100%;
}

.eyebrow-line {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-text);
  margin-bottom: 18px;
}

.eyebrow-line::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--brand-border);
}

.about-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(43, 36, 29, .88);
  margin-bottom: 30px;
}

.btn-light-brand {
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
  padding: 14px 30px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.btn-light-brand:hover {
  background: var(--brand-soft);
  color: var(--brand-text);
}

.about-media {
  position: relative;
  background: #dfe3e0 url('https://images.unsplash.com/photo-1502672260266-1c1ef2d93688?auto=format&fit=crop&w=1400&q=80') center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 40px 6%;
}

.about-points {
  list-style: none;
  margin: 0;
  padding: 26px 30px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
  min-width: 290px;
}

.about-points li {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  padding: 10px 0;
}

.about-points i {
  font-size: 20px;
  color: var(--brand-text);
  width: 24px;
  text-align: center;
}

/* Защо да изберете нас */
.home-why {
  padding: 72px 0 70px;
}

.home-why h2 {
  margin-bottom: 34px;
}

.why-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: #eef1ee;
  color: var(--brand-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.why-item h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}

.why-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  max-width: 240px;
}

/* Свържете се с нас */
.home-cta {
  position: relative;
  overflow: hidden;
  background-color: #f1f2ef;
  padding: 64px 0;
}

.home-cta::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 60%;
  background: url('https://images.unsplash.com/photo-1586023492125-27b2c045efd7?auto=format&fit=crop&w=1400&q=80') center / cover no-repeat;
}

.home-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(241, 242, 239, 0) 0%, rgba(241, 242, 239, 0) 35%, rgba(241, 242, 239, .85) 52%, #f1f2ef 60%);
}

.home-cta .container-xl {
  position: relative;
  z-index: 1;
}

.home-cta .eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-text);
  margin-bottom: 10px;
}

.home-cta h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}

.home-cta h2 span {
  color: var(--brand-text);
}

.home-cta p {
  font-size: 15.5px;
  color: #3b4640;
  line-height: 1.6;
  max-width: 500px;
  margin-bottom: 26px;
}

/* ---------- Страница „За нас“ (about_us.php) ---------- */
.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-text);
  margin-bottom: 12px;
}

.section-sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 600px;
  margin-bottom: 30px;
}

/* Hero */
.about-hero {
  position: relative;
  overflow: hidden;
  background-color: #f4f1ec;
  padding: 30px 0 76px;
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--about-hero-img, url('https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?auto=format&fit=crop&w=2000&q=80')) right center / cover no-repeat;
}

.about-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .92) 32%, rgba(255, 255, 255, .5) 50%, rgba(255, 255, 255, 0) 64%);
}

.about-hero .container-xl {
  position: relative;
  z-index: 1;
}

.about-hero .breadcrumb {
  font-size: 12px;
  margin-bottom: 34px;
  --bs-breadcrumb-divider: '/';
  --bs-breadcrumb-divider-color: var(--muted);
}

.about-hero .breadcrumb a,
.about-hero .breadcrumb-item.active {
  color: var(--muted);
  text-decoration: none;
}

.about-hero h1 {
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: -.02em;
  line-height: 1.12;
  margin-bottom: 22px;
  color: #121a16;
}

.about-hero h1 span {
  color: var(--brand-text);
}

.about-hero .lead {
  font-size: 16.5px;
  color: #39443e;
  max-width: 470px;
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 28px;
}

/* Цифри */
.about-stats {
  background: #f3f5f3;
  padding: 34px 0;
}

.stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.stat > i {
  font-size: 36px;
  color: var(--brand-text);
  width: 42px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--brand-text);
}

.stat span {
  font-size: 14px;
  color: #3b4640;
}

/* Секции снимка + текст */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
  padding: 64px 0 40px;
}

.split-media img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  max-height: 520px;
  object-fit: cover;
  border-radius: 0 12px 12px 0;
  display: block;
}

.split-text {
  padding-right: max(24px, calc((100vw - 1240px) / 2 + 12px));
  max-width: 100%;
}

.split-text h2,
.about-values h2,
.about-team h2,
.about-partners h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.2;
  margin-bottom: 18px;
}

.split-text p {
  font-size: 15px;
  color: #4a544f;
  line-height: 1.65;
  margin-bottom: 16px;
  max-width: 560px;
}

.split-text .btn-hero {
  margin-top: 12px;
}

/* Мисия, визия, ценности */
.about-values {
  padding: 40px 0 60px;
}

.about-values h2 {
  margin-bottom: 10px;
}

.value-card {
  background: #f5f7f5;
  border-radius: 12px;
  padding: 30px 28px;
  height: 100%;
}

.value-card > i {
  font-size: 30px;
  color: var(--brand-text);
  margin-bottom: 20px;
}

.value-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 10px;
}

.value-card p {
  font-size: 14px;
  color: #4a544f;
  line-height: 1.6;
  margin: 0;
}

.value-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.value-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #4a544f;
  padding: 4px 0;
}

.value-card li i {
  color: var(--brand-text);
  font-size: 14px;
}

/* Защо да изберете нас */
.about-why {
  padding-top: 20px;
}

.why-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
}

.why-list li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 11px 0;
}

.wl-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #eef1ee;
  color: var(--brand-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex: none;
}

.why-list strong {
  display: block;
  font-size: 15.5px;
  font-weight: 800;
  margin-bottom: 4px;
}

.why-list span:not(.wl-icon) {
  display: block;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Хоризонтални ленти (екип, партньори) */
.scroller-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.scroller-track::-webkit-scrollbar {
  display: none;
}

.scroller-nav {
  display: flex;
  gap: 12px;
}

.scroller-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #fff;
  color: #8a928d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: .15s;
}

.scroller-btn:last-child {
  border-color: var(--brand-text);
  color: var(--brand-text);
}

.scroller-btn:hover {
  background: var(--brand);
  border-color: var(--brand-border);
  color: var(--on-brand);
}

/* Екип */
.about-team {
  padding: 50px 0 60px;
}

.about-team h2 {
  margin-bottom: 10px;
}

.team-card {
  flex: 0 0 calc((100% - 54px) / 4);
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #e9ecea;
  border-radius: 8px;
  overflow: hidden;
}

.team-card img {
  width: 100%;
  aspect-ratio: 1.4 / 1;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  background: #e9ecea;
}

.team-card div {
  padding: 14px 16px 16px;
}

.team-card strong {
  display: block;
  font-size: 15.5px;
  font-weight: 800;
}

.team-card span {
  font-size: 13px;
  color: var(--muted);
}

/* Партньори */
.about-partners {
  background: #f7f8f7;
  padding: 50px 0 60px;
}

.partners-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

.partners-track {
  flex: 1;
  gap: 40px;
  align-items: center;
}

.partner-logo {
  flex: 0 0 auto;
  min-width: 170px;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 70px;
  font-size: 18px;
  font-weight: 800;
  color: #3a4540;
  filter: grayscale(1);
  opacity: .8;
  transition: .2s;
}

.partner-logo:hover {
  filter: none;
  opacity: 1;
  color: var(--brand-text);
}

.partner-logo img {
  max-height: 44px;
  max-width: 170px;
}

.partners-arrow {
  border: 0;
  background: none;
  color: #8a928d;
  font-size: 16px;
  padding: 8px;
  flex: none;
}

.partners-arrow:hover {
  color: var(--brand-text);
}

/* Призив */
.about-cta {
  position: relative;
  overflow: hidden;
  padding: 70px 0;
  color: var(--on-brand);
  background: var(--brand) var(--about-cta-img, url('https://images.unsplash.com/photo-1586023492125-27b2c045efd7?auto=format&fit=crop&w=2000&q=80')) right center / cover no-repeat;
}

.about-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(245, 239, 230, .97) 0%, rgba(245, 239, 230, .92) 40%, rgba(245, 239, 230, .7) 100%);
}

.about-cta .container-xl {
  position: relative;
  z-index: 1;
}

.about-cta .eyebrow {
  color: rgba(43, 36, 29, .8);
}

.about-cta h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.about-cta p {
  font-size: 15.5px;
  color: rgba(43, 36, 29, .85);
  max-width: 470px;
  line-height: 1.6;
  margin-bottom: 26px;
}

/* ---------- Страница на имот (property.php) ---------- */
.pd-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 20px;
  padding-bottom: 16px;
}

.pd-topbar .breadcrumb {
  font-size: 12.5px;
  margin: 0;
  --bs-breadcrumb-divider: '›';
  --bs-breadcrumb-divider-color: var(--muted);
}

.pd-topbar .breadcrumb a {
  color: #4a544f;
  text-decoration: none;
}

.pd-topbar .breadcrumb a:hover {
  color: var(--brand-text);
}

.pd-topbar .breadcrumb-item.active {
  color: var(--ink);
  font-weight: 600;
}

.pd-prevnext {
  display: flex;
  gap: 26px;
}

.pd-prevnext a {
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pd-prevnext a:hover {
  color: var(--brand-text);
}

.pd-prevnext i {
  font-size: 10px;
}

/* Галерия */
.pd-gallery {
  display: grid;
  grid-template-columns: 3.8fr 1fr;
  gap: 8px;
  height: 470px;
}

.pd-main {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #e9ecea;
}

.pd-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: transform .15s;
}

.pd-arrow:hover {
  transform: translateY(-50%) scale(1.06);
}

.pd-prev {
  left: 16px;
}

.pd-next {
  right: 16px;
}

.pd-counter {
  position: absolute;
  left: 14px;
  bottom: 14px;
  border: 0;
  background: rgba(20, 28, 24, .72);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pd-counter i {
  margin-right: 8px;
}

.pd-thumbs {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  min-height: 0;
}

.pd-thumb {
  position: relative;
  border: 0;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #e9ecea;
  min-height: 0;
}

.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}

.pd-thumb:hover img {
  transform: scale(1.05);
}

.pd-more span {
  position: absolute;
  inset: 0;
  background: rgba(15, 22, 18, .6);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pd-more span i {
  font-size: 20px;
}

/* Основни данни вдясно */
.pd-summary h1 {
  font-size: clamp(1.6rem, 2.2vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.pd-summary .property-location {
  font-size: 13.5px;
  margin-bottom: 14px;
}

.pd-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.pd-price {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.fav-btn.pd-fav {
  position: static;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: none;
  font-size: 19px;
}

.pd-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 12px;
  background: #f3f5f3;
  border-radius: 10px;
  padding: 20px 18px;
  margin-bottom: 18px;
}

.pd-specs div {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 8px;
  align-items: center;
}

.pd-specs i {
  grid-row: span 2;
  font-size: 20px;
  color: #4D443B;
}

.pd-specs strong {
  font-size: 14.5px;
  font-weight: 700;
}

.pd-specs span {
  font-size: 12px;
  color: var(--muted);
}

.pd-btn {
  width: 100%;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 800;
  border-radius: 6px;
  margin-bottom: 10px;
}

.pd-btn-outline {
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--ink);
}

.pd-btn-outline:hover,
.pd-btn-outline.is-saved {
  border-color: var(--brand-text);
  color: var(--brand-text);
  background: var(--brand-soft);
}

/* Табове */
.pd-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
  margin-top: 26px;
  max-width: calc(66.666% - 12px);
}

.pd-tabs::-webkit-scrollbar {
  display: none;
}

.pd-tabs a {
  flex: none;
  position: relative;
  padding: 16px 22px;
  font-size: 14px;
  font-weight: 600;
  color: #3b4640;
  text-decoration: none;
}

.pd-tabs a:hover {
  color: var(--brand-text);
}

.pd-tabs a.active {
  color: var(--brand-text);
}

.pd-tabs a.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  background: var(--brand-text);
}

/* Съдържание */
.pd-body {
  padding-top: 30px;
}

.pd-section {
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.pd-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.pd-section,
#pdLocation,
#pdSimilar,
#pdInquiry {
  scroll-margin-top: 100px;
}

.pd-section h2,
.pd-similar h2 {
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -.015em;
  margin-bottom: 14px;
}

.pd-lead {
  font-size: 16px;
  color: #4a544f;
  line-height: 1.65;
  max-width: 720px;
  margin-bottom: 24px;
}

.pd-section .pd-lead:last-child {
  margin-bottom: 0;
}

.pd-info-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.pd-info-grid div {
  background: #f5f7f5;
  border-radius: 8px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pd-info-grid i {
  font-size: 19px;
  color: var(--brand-text);
  margin-bottom: 12px;
}

.pd-info-grid span {
  font-size: 12px;
  color: var(--muted);
}

.pd-info-grid strong {
  font-size: 15px;
  font-weight: 700;
}

.pd-checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 30px;
  max-width: 560px;
}

.pd-checks li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: #3b4640;
}

.pd-checks i {
  color: var(--brand-text);
  font-size: 18px;
}

/* Запитване и карта */
.pd-inquiry {
  background: #f3f5f3;
  border-radius: 12px;
  padding: 24px 20px 14px;
}

.pd-inquiry h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 6px;
}

.pd-inquiry p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.pd-inquiry .input-icon {
  min-height: 46px;
  margin-bottom: 10px;
  border-color: #fff;
}

.pd-inquiry .input-icon.is-textarea {
  padding: 12px 14px;
}

.pd-inquiry textarea {
  min-height: 70px;
  resize: none;
}

.pd-inquiry .pd-btn {
  margin-top: 6px;
}

.pd-map {
  margin-top: 22px;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  background: #e9ecea;
}

.pd-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Подобни имоти */
.pd-similar {
  padding-top: 30px;
  padding-bottom: 56px;
}

.pd-similar .section-head {
  margin-bottom: 18px;
}

.pd-similar h2 {
  margin: 0;
}

.similar-card .property-media {
  aspect-ratio: 2.4 / 1;
}

.similar-card .property-features {
  margin: 4px 0 12px;
  justify-content: flex-start;
  gap: 26px;
}

.similar-card .property-price {
  margin: 0;
  font-size: 19px;
}

/* Прозорец с всички снимки */
.pd-modal .modal-content {
  background: #0f1512;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
}

.pd-modal .btn-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
}

.pd-modal .carousel-item img {
  width: 100%;
  height: 80vh;
  object-fit: contain;
  display: block;
}

.pd-modal .carousel-control-prev,
.pd-modal .carousel-control-next {
  font-size: 26px;
  color: #fff;
}

/* ---------- Страница „Вход“ (login.php) ---------- */
.auth-body {
  background: #f6f7f5;
}

.auth-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* Ляво – снимка и посрещане */
.auth-aside {
  position: relative;
  overflow: hidden;
  background: #e9e4dc url('https://images.unsplash.com/photo-1613490493576-7fde63acd811?auto=format&fit=crop&w=1600&q=80') 70% center / cover no-repeat;
}

.auth-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .82) 38%, rgba(255, 255, 255, .35) 60%, rgba(255, 255, 255, 0) 78%);
}

.auth-aside-inner {
  position: relative;
  z-index: 1;
  padding: 54px 9% 60px 13%;
  max-width: 720px;
}

.auth-aside .brand-logo svg {
  width: 52px;
  height: 48px;
}

.auth-aside .brand-logo .brand-text,
.auth-aside .brand-logo .brand-text span {
  font-size: 17px;
}

.auth-line {
  display: block;
  width: 46px;
  height: 2px;
  background: var(--brand-text);
  margin: 50px 0 46px;
}

.auth-aside h1 {
  font-weight: 800;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  letter-spacing: -.025em;
  line-height: 1.05;
  margin-bottom: 26px;
  color: #121a16;
}

.auth-aside h1 span {
  display: block;
  color: var(--brand-text);
}

.auth-lead {
  font-size: 18px;
  line-height: 1.55;
  color: #3b4640;
  font-weight: 500;
  max-width: 460px;
  margin-bottom: 30px;
}

.auth-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
}

.auth-benefits li {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 10px 0;
}

.ab-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(232, 237, 233, .92);
  color: var(--brand-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  flex: none;
}

.auth-benefits strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}

.auth-benefits span:not(.ab-icon) {
  font-size: 14.5px;
  color: #3b4640;
}

/* Дясно – формата */
.auth-main {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 6% 70px;
}

.auth-main::before,
.auth-main::after {
  content: "";
  position: absolute;
  border-radius: 50% 0;
  background: #EFE6DA;
  opacity: .7;
  pointer-events: none;
}

.auth-main::before {
  width: 160px;
  height: 320px;
  right: -70px;
  top: 120px;
  transform: rotate(18deg);
}

.auth-main::after {
  width: 230px;
  height: 330px;
  left: -40px;
  bottom: -150px;
  transform: rotate(-35deg);
}

.auth-back {
  position: absolute;
  top: 54px;
  right: 9%;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  z-index: 1;
}

.auth-back:hover {
  color: var(--brand-text);
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 508px;
  background: #fff;
  border: 1px solid #eceeec;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(20, 40, 30, .06);
  padding: 46px 46px 34px;
}

.auth-card h2 {
  font-size: clamp(1.9rem, 2.6vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}

.auth-sub {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 32px;
}

.auth-field {
  margin-bottom: 20px;
}

.auth-field label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

.auth-field .input-icon {
  min-height: 54px;
}

.pass-toggle {
  border: 0;
  background: none;
  padding: 4px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
}

.pass-toggle:hover {
  color: var(--brand-text);
}

.auth-forgot {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-text);
  text-decoration: none;
}

.auth-forgot:hover {
  text-decoration: underline;
}

.auth-submit {
  width: 100%;
  height: 56px;
  margin-top: 26px;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 26px 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-social {
  width: 100%;
  height: 52px;
  margin-bottom: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.auth-social:hover {
  border-color: var(--brand-text);
  background: #fbfcfb;
}

.auth-social svg {
  width: 20px;
  height: 20px;
}

.auth-social i {
  font-size: 21px;
}

.auth-register {
  background: #f5f6f4;
  border-radius: 10px;
  text-align: center;
  padding: 24px 28px 26px;
  margin: 26px -14px 0;
}

.auth-register strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}

.auth-register p {
  font-size: 14px;
  color: #4a544f;
  line-height: 1.55;
  margin-bottom: 18px;
}

.auth-register-btn {
  width: 100%;
  height: 52px;
  border: 1.5px solid var(--brand-text);
  color: var(--brand-text);
  background: #fff;
  font-weight: 800;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.auth-register-btn:hover {
  background: var(--brand);
  color: var(--on-brand);
}

.input-icon.is-invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, .08);
}

/* ---------- Мобилни ---------- */
@media (max-width: 1199.98px) {
  .main-nav .nav-link {
    margin: 0 10px;
  }
}

@media (max-width: 991.98px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-aside::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .8) 70%, rgba(255, 255, 255, .55) 100%);
  }

  .auth-aside-inner {
    padding: 32px 24px 40px;
    max-width: none;
  }

  .auth-line {
    margin: 28px 0;
  }

  .auth-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }

  .auth-main {
    padding: 80px 20px 50px;
  }

  .auth-back {
    top: 28px;
    right: 20px;
  }

  .pd-gallery {
    height: 400px;
  }

  .pd-tabs {
    max-width: 100%;
  }

  .pd-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-hero::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .85) 60%, rgba(255, 255, 255, .4) 100%);
  }

  .about-split {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 44px 0 20px;
  }

  .split-media img {
    border-radius: 0;
    min-height: 0;
    max-height: 360px;
  }

  .split-text {
    padding: 0 24px;
  }

  .team-card {
    flex-basis: calc((100% - 18px) / 2);
  }

  .home-hero::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .85) 60%, rgba(255, 255, 255, .4) 100%);
  }

  .home-about {
    grid-template-columns: 1fr;
  }

  .about-text {
    justify-content: flex-start;
    padding: 56px 24px;
  }

  .about-media {
    min-height: 380px;
    justify-content: center;
  }

  .home-cta::before {
    width: 100%;
  }

  .home-cta::after {
    background: rgba(241, 242, 239, .88);
  }

  .contact-hero::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .85) 60%, rgba(255, 255, 255, .4) 100%);
  }

  .contact-map {
    min-height: 300px;
  }

  .main-nav .nav-link {
    padding: 10px 0 !important;
    margin: 0;
  }

  .main-nav .nav-link.active::after {
    bottom: 4px;
    left: 0;
    right: auto;
    width: 40px;
  }

  .header-actions {
    padding: 12px 0 16px;
    border-top: 1px solid var(--line);
  }

  .hero {
    padding-bottom: 140px;
  }

  .hero::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .85) 55%, rgba(255, 255, 255, .35) 100%);
  }
}

@media (max-width: 767.98px) {
  .auth-lead {
    font-size: 16px;
  }

  .auth-benefits {
    display: none;
  }

  .auth-lead {
    margin-bottom: 0;
  }

  .ab-icon {
    width: 46px;
    height: 46px;
    font-size: 17px;
  }

  .auth-benefits strong {
    font-size: 15px;
  }

  .auth-card {
    padding: 30px 20px 24px;
  }

  .auth-register {
    margin: 24px 0 0;
    padding: 22px 18px;
  }

  .pd-gallery {
    grid-template-columns: 1fr;
    height: auto;
  }

  .pd-main {
    height: 280px;
  }

  .pd-thumbs {
    grid-template-rows: none;
    grid-template-columns: repeat(3, 1fr);
    height: 80px;
  }

  .pd-arrow {
    width: 38px;
    height: 38px;
  }

  .pd-prevnext {
    display: none;
  }

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

  .pd-checks {
    grid-template-columns: 1fr;
  }

  .about-hero {
    padding-bottom: 50px;
  }

  .stat {
    justify-content: flex-start;
    gap: 14px;
  }

  .stat > i {
    font-size: 26px;
    width: 30px;
  }

  .stat strong {
    font-size: 24px;
  }

  .team-card {
    flex-basis: 78%;
  }

  .partner-logo {
    min-width: 140px;
    font-size: 16px;
  }

  .home-hero {
    padding: 48px 0 170px;
  }

  .home-hero .lead {
    font-size: 16px;
  }

  .home-featured {
    padding-top: 48px;
  }

  .home-why {
    padding: 52px 0;
  }

  .about-points {
    min-width: 0;
    width: 100%;
  }

  .contact-hero {
    padding: 36px 0 40px;
  }

  .contact-hero .lead {
    font-size: 15px;
  }

  .contact-form-card {
    padding: 24px 18px;
  }

  .contact-form-card h2 {
    font-size: 21px;
  }

  .map-card {
    left: 12px;
    max-width: calc(100% - 24px);
  }

  .map-card img {
    width: 76px;
    height: 76px;
  }

  .hero {
    padding: 22px 0 130px;
  }

  .hero .breadcrumb {
    margin-bottom: 22px;
  }

  .hero .lead {
    font-size: 15px;
  }

  .search-card {
    padding: 14px;
  }

  .type-tab {
    padding: 9px 14px;
  }

  .listing.is-list .property-card {
    flex-direction: column;
  }

  .listing.is-list .property-media {
    width: 100%;
    aspect-ratio: 2.12 / 1;
    min-height: 0;
  }

  .results-head .sort-select {
    width: 160px;
  }
}

/* ================= ИМОТИ НА КАРТАТА (като в Booking) ================= */
.map-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid var(--brand-border);
  background: var(--brand);
  color: var(--on-brand);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.map-open-btn:hover,
.map-open-btn:focus-visible {
  background: var(--brand-hover);
  color: var(--on-brand);
  border-color: var(--brand-border);
}

.map-open-btn i {
  color: var(--brand-text);
  font-size: 15px;
}

.pd-map-all {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
  height: 44px;
}

.map-modal .modal-content {
  border: 0;
  border-radius: 0;
  background: #fff;
}

.map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}

.map-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-head h2 > i {
  color: var(--brand-text);
}

.map-count {
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 13px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.map-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  height: 40px;
  padding: 0 14px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}

.map-close:hover {
  background: var(--bg-soft);
}

.map-body {
  flex: 1;
  display: flex;
  min-height: 0;
}

.map-list {
  width: 380px;
  flex-shrink: 0;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-soft);
}

.map-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}

.map-item:hover,
.map-item.is-active {
  border-color: var(--brand-text);
  box-shadow: 0 4px 14px rgba(43, 36, 29, .08);
  color: var(--ink);
}

.map-item-img {
  width: 104px;
  height: 84px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #eceeed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a5aca8;
}

.map-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-item-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  font-size: 12.5px;
}

.map-item-body strong {
  font-size: 13.5px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.map-item-loc {
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-item-loc i {
  color: var(--brand-text);
  margin-right: 5px;
}

.map-item-meta {
  color: var(--muted);
}

.map-item-price {
  margin-top: auto;
  font-weight: 800;
  font-size: 14px;
  color: var(--brand-text);
}

.map-empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 10px;
}

.map-canvas-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.map-canvas {
  position: absolute;
  inset: 0;
  background: #eef0ee;
  font-family: inherit;
}

/* по-спокойни цветове на картата */
.map-canvas .leaflet-tile-pane {
  filter: saturate(.6) brightness(1.03);
}

.map-consent {
  position: absolute;
  inset: 0;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background: var(--bg-soft);
}

.map-consent[hidden] {
  display: none;
}

.map-consent i {
  font-size: 34px;
  color: var(--brand-text);
}

.map-consent p {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
}

/* етикет с цената */
.map-pin-wrap {
  background: none;
  border: 0;
}

.map-pin {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -100%);
  display: inline-block;
  padding: 7px 12px;
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .22);
  border: 1px solid rgba(0, 0, 0, .06);
  cursor: pointer;
  transition: background .12s, color .12s, transform .12s;
}

.map-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: inherit;
  transform: translateX(-50%) rotate(45deg);
  border-right: 1px solid rgba(0, 0, 0, .06);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.map-pin.is-reserved {
  color: var(--muted);
}

.map-pin:hover,
.map-pin.is-hover,
.map-pin.is-active {
  background: var(--on-brand);
  color: #fff;
  transform: translate(-50%, -100%) scale(1.06);
  z-index: 2;
}

.leaflet-marker-icon:has(.is-hover),
.leaflet-marker-icon:has(.is-active) {
  z-index: 10000 !important;
}

.map-cluster::after {
  display: none;
}

.map-cluster {
  background: var(--brand);
  color: var(--on-brand);
  border-color: var(--brand-border);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-width: 3px;
  border-style: solid;
}

.map-cluster:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

/* карта на имот в балончето */
.map-popup .leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}

.map-popup .leaflet-popup-content {
  margin: 0;
  width: 270px !important;
  font-family: var(--bs-body-font-family);
}

.map-popup a.leaflet-popup-close-button {
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: var(--ink);
  font: 18px/28px Arial, sans-serif;
  z-index: 2;
}

.map-pop {
  display: block;
  color: var(--ink);
  text-decoration: none;
}

.map-popup a.map-pop,
.map-popup a.map-pop:hover {
  color: var(--ink);
}

.map-pop-img {
  display: block;
  position: relative;
  height: 150px;
  background: #eceeed;
}

.map-pop-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-pop-img em {
  position: absolute;
  left: 10px;
  top: 10px;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  background: #fff;
  color: var(--brand-text);
}

.map-pop-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px 14px;
  font-size: 12.5px;
}

.map-pop-body strong {
  font-size: 14px;
  line-height: 1.3;
}

.map-pop-loc,
.map-pop-meta {
  color: var(--muted);
}

.map-pop-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.map-pop-foot b {
  font-size: 15px;
  color: var(--brand-text);
}

.map-pop-foot span {
  color: var(--brand-text);
  font-weight: 700;
  font-size: 12.5px;
  white-space: nowrap;
}

.map-canvas .leaflet-control-attribution {
  font-size: 10px;
}

@media (max-width: 991.98px) {
  .map-list {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .map-open-btn span,
  .map-close span {
    display: none;
  }

  .pd-map-all span {
    display: inline;
  }

  .map-head {
    padding: 10px 14px;
  }

  .map-head h2 {
    font-size: 16px;
  }

  .map-popup .leaflet-popup-content {
    width: 240px !important;
  }
}

/* ================= ПРОФИЛИ: вход, регистрация, моят профил ================= */
.auth-top {
  position: absolute;
  top: 54px;
  right: 9%;
  left: 6%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.auth-top .auth-back {
  position: static;
}

.auth-alert,
.acc-alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 22px;
  border: 1px solid transparent;
}

.acc-alert i {
  font-size: 17px;
  margin-top: 1px;
}

.acc-alert-success {
  background: #eef7f0;
  border-color: #cfe7d5;
  color: #1e5a33;
}

.acc-alert-error {
  background: #fdf1ef;
  border-color: #f2d0ca;
  color: #8f2d1f;
}

.acc-alert-info {
  background: var(--brand-soft);
  border-color: var(--brand-soft-border);
  color: var(--on-brand);
}

.auth-error {
  color: #b23a2a;
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
}

.auth-opt {
  color: var(--muted);
  font-weight: 500;
}

.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.auth-row .auth-field {
  min-width: 0;
}

.auth-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: #3b4640;
  margin-bottom: 12px;
  cursor: pointer;
}

.auth-check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--brand-text);
  cursor: pointer;
}

.auth-check a {
  color: var(--brand-text);
  font-weight: 700;
}

.auth-check.is-invalid span {
  color: #b23a2a;
}

.auth-check.is-invalid input {
  outline: 2px solid #c0392b;
  outline-offset: 1px;
}

.pass-meter {
  height: 4px;
  border-radius: 2px;
  background: #eceeec;
  margin: -12px 0 20px;
  overflow: hidden;
}

.pass-meter span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width .2s, background-color .2s;
}

.pass-meter.s1 span { width: 25%; background: #d9534f; }
.pass-meter.s2 span { width: 50%; background: #e8a33d; }
.pass-meter.s3 span { width: 75%; background: #8fb04a; }
.pass-meter.s4 span { width: 100%; background: #3f8f53; }

.auth-switch {
  text-align: center;
  margin-top: 22px;
  font-size: 14.5px;
  color: var(--muted);
}

.auth-switch a {
  color: var(--brand-text);
  font-weight: 800;
  text-decoration: none;
  margin-left: 4px;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.auth-v-register .auth-card {
  max-width: 560px;
}

.auth-v-register .auth-main {
  padding-top: 120px;
}

/* меню на профила в хедъра */
.profile-menu {
  min-width: 270px;
}

.profile-menu-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.profile-menu-head strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}

.profile-menu-head small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-avatar,
.acc-avatar {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand);
  border: 1px solid var(--brand-border);
  color: var(--brand-text);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* страница „Моят профил“ */
.acc-hero {
  background: #f4f1ec;
  padding: 30px 0 34px;
  border-bottom: 1px solid #ece6dc;
}

.acc-hello {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}

.acc-avatar {
  width: 64px;
  height: 64px;
  font-size: 26px;
  background: #fff;
}

.acc-hello h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 4px;
}

.acc-hello p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.acc-wrap {
  padding-top: 34px;
  padding-bottom: 90px;
}

.acc-nav {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  position: sticky;
  top: 20px;
}

.acc-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
}

.acc-nav a i {
  width: 18px;
  text-align: center;
  color: var(--brand-text);
}

.acc-nav a span {
  flex: 1;
}

.acc-nav a em {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  border-radius: 11px;
  background: var(--brand);
  color: var(--on-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.acc-nav a:hover {
  background: var(--bg-soft);
}

.acc-nav a.active {
  background: var(--brand);
  color: var(--on-brand);
}

.acc-nav a.active em {
  background: #fff;
}

.acc-nav a.is-danger i {
  color: #b23a2a;
}

.acc-nav a + a:last-child {
  margin-top: 6px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
}

.acc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px 32px 32px;
}

.acc-card h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.acc-sub {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 24px;
}

.acc-card .form-label {
  font-size: 14px;
  font-weight: 600;
}

.acc-input {
  height: 50px;
  border-color: var(--line);
  font-size: 14.5px;
}

.acc-input:focus {
  border-color: var(--brand-text);
  box-shadow: 0 0 0 3px rgba(139, 106, 71, .16);
}

.acc-actions {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.acc-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  font-weight: 700;
}

.acc-danger {
  border-color: #f2d0ca;
}

.acc-empty {
  text-align: center;
  padding: 40px 10px 20px;
  color: var(--muted);
}

.acc-empty i {
  font-size: 36px;
  color: var(--brand-text);
  display: block;
  margin-bottom: 12px;
}

.acc-fav-col {
  transition: opacity .25s, transform .25s;
}

.acc-fav-col.is-removing {
  opacity: 0;
  transform: scale(.96);
}

@media (max-width: 991.98px) {
  .auth-top {
    top: 28px;
    right: 20px;
    left: 20px;
  }

  .acc-nav {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 4px;
  }

  .acc-nav a {
    flex: none;
  }

  .acc-nav a + a:last-child {
    margin-top: 0;
    border-top: 0;
    border-radius: 8px;
  }
}

@media (max-width: 575.98px) {
  .auth-row {
    grid-template-columns: 1fr;
  }

  .auth-top .auth-back span,
  .auth-top .auth-back {
    font-size: 13px;
  }

  .acc-card {
    padding: 22px 18px 24px;
  }
}

.acc-toast {
  position: fixed;
  left: 50%;
  top: 90px;
  transform: translateX(-50%);
  z-index: 1080;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 32px);
  padding: 14px 14px 14px 18px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #cfe7d5;
  box-shadow: 0 14px 34px rgba(20, 40, 30, .16);
  font-size: 14.5px;
  font-weight: 600;
  animation: accToastIn .35s ease;
  transition: opacity .4s, transform .4s;
}

.acc-toast > i {
  color: #3f8f53;
  font-size: 18px;
}

.acc-toast-info {
  border-color: var(--brand-soft-border);
}

.acc-toast-info > i {
  color: var(--brand-text);
}

.acc-toast button {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 2px 6px;
}

.acc-toast.is-hiding {
  opacity: 0;
  transform: translate(-50%, -10px);
}

@keyframes accToastIn {
  from { opacity: 0; transform: translate(-50%, -12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.acc-hero .breadcrumb {
  font-size: 12px;
  margin-bottom: 0;
  --bs-breadcrumb-divider: '›';
  --bs-breadcrumb-divider-color: var(--muted);
}

.acc-hero .breadcrumb a,
.acc-hero .breadcrumb-item.active {
  color: var(--muted);
  text-decoration: none;
}

/* Вход с Google */
.auth-google {
  margin-bottom: 0;
}

.auth-google-note {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 0;
}

.google-who {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfa;
  margin-bottom: 24px;
}

.google-who img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.google-who div {
  flex: 1;
  min-width: 0;
}

.google-who div > span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.google-who div > strong {
  display: block;
  font-size: 14.5px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.google-who > i {
  color: #3f8f53;
  font-size: 18px;
}

.pm-avatar img,
.acc-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.pm-avatar,
.acc-avatar {
  overflow: hidden;
}

.acc-google-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- Обикновена страница от админа (internal.php) ---------- */
.ip-hero {
  background: #f4f1ec;
  border-bottom: 1px solid #ece6dc;
  padding: 34px 0 44px;
}

.ip-hero .breadcrumb {
  font-size: 12px;
  margin-bottom: 26px;
  --bs-breadcrumb-divider: '›';
  --bs-breadcrumb-divider-color: var(--muted);
}

.ip-hero .breadcrumb a,
.ip-hero .breadcrumb-item.active {
  color: var(--muted);
  text-decoration: none;
}

.ip-hero h1 {
  font-weight: 800;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  letter-spacing: -.02em;
  line-height: 1.1;
  margin: 0;
  max-width: 820px;
}

.ip-lead {
  font-size: 17px;
  line-height: 1.6;
  color: #3b4640;
  max-width: 720px;
  margin: 16px 0 0;
}

.ip-body {
  max-width: 820px;
  padding: 44px 0 90px;
}

.ip-text {
  font-size: 16px;
  line-height: 1.75;
  color: #2c3631;
}

.ip-text h2,
.ip-text h3,
.ip-text h4 {
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 1.8em 0 .6em;
  color: var(--ink);
}

.ip-text h2 { font-size: 1.55rem; }
.ip-text h3 { font-size: 1.25rem; }
.ip-text h4 { font-size: 1.08rem; }

.ip-text > :first-child {
  margin-top: 0;
}

.ip-text p,
.ip-text ul,
.ip-text ol {
  margin-bottom: 1.1em;
}

.ip-text li {
  margin-bottom: .4em;
}

.ip-text a {
  color: var(--brand-text);
  font-weight: 600;
}

.ip-text img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.ip-text table {
  width: 100%;
  margin-bottom: 1.2em;
  border-collapse: collapse;
}

.ip-text td,
.ip-text th {
  border: 1px solid var(--line);
  padding: 8px 12px;
}

.ip-text blockquote {
  border-left: 3px solid var(--brand-text);
  background: var(--brand-soft);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
}

.ip-empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
}

.ip-404 {
  padding: 70px 0 90px;
  border-bottom: 0;
}

.ip-404-code {
  display: block;
  font-size: 64px;
  font-weight: 800;
  color: var(--brand-text);
  line-height: 1;
  margin-bottom: 12px;
}

.ip-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  font-weight: 700;
}

.ip-btn-outline {
  border: 1.5px solid var(--brand-text);
  color: var(--brand-text);
  background: #fff;
}

.ip-btn-outline:hover {
  background: var(--brand);
  color: var(--on-brand);
}

/* ---------- Ипотечен калкулатор (страница на имот) ---------- */
.mc {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.mc-inputs {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mc-field label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.mc-field label output {
  font-weight: 600;
  color: var(--muted);
}

.mc-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 50px;
  padding: 0 14px;
}

.mc-input:focus-within {
  border-color: var(--brand-text);
  box-shadow: 0 0 0 3px rgba(139, 106, 71, .16);
}

.mc-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  font-size: 17px;
  font-weight: 700;
  background: transparent;
}

.mc-input span {
  color: var(--muted);
  font-weight: 700;
}

.mc-range {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mc-range input {
  --p: 50%;
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--brand-text) var(--p), #e7e2da var(--p));
  outline: none;
}

.mc-range input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand-text);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
  cursor: pointer;
}

.mc-range input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand-text);
  cursor: pointer;
}

.mc-range input:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(139, 106, 71, .25);
}

.mc-val {
  min-width: 64px;
  text-align: right;
  font-size: 14px;
  color: var(--muted);
}

.mc-val b {
  font-size: 17px;
  color: var(--ink);
}

.mc-result {
  background: var(--brand-soft);
  border-left: 1px solid var(--line);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
}

.mc-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
}

.mc-monthly {
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 4px 0 16px;
}

.mc-bar {
  display: flex;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  background: #e7e2da;
  margin-bottom: 16px;
}

.mc-bar span {
  transition: width .2s;
}

#mcBarLoan,
.mc-dot.is-loan {
  background: var(--brand-text);
}

#mcBarInt,
.mc-dot.is-int {
  background: #d9c3a3;
}

.mc-list {
  margin: 0 0 18px;
}

.mc-list > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--brand-soft-border);
  font-size: 14px;
}

.mc-list dt {
  font-weight: 500;
  color: #4a544f;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mc-list dd {
  margin: 0;
  font-weight: 800;
}

.mc-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.mc-cta {
  margin-top: auto;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
}

.mc-note {
  font-size: 12.5px;
  color: var(--muted);
  margin: 12px 0 0;
}

@media (max-width: 767.98px) {
  .mc {
    grid-template-columns: 1fr;
  }

  .mc-result {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .mc-inputs,
  .mc-result {
    padding: 20px 18px;
  }
}

/* ---------- Сравнение на имоти ---------- */
.cmp-btn {
  position: absolute;
  top: 46px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #18241e;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
  transition: transform .15s, background-color .15s, color .15s;
}

.cmp-btn:hover {
  transform: scale(1.08);
}

.cmp-btn.is-on {
  background: var(--on-brand);
  color: #fff;
}

.cmp-btn-wide.is-on {
  background: var(--brand);
  border-color: var(--brand-border);
  color: var(--on-brand);
}

.cmp-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 1040;
  width: min(760px, calc(100% - 24px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(20, 30, 25, .18);
  animation: accToastIn .3s ease;
}

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

.cmp-bar.shake {
  animation: cmpShake .35s;
}

@keyframes cmpShake {
  0%, 100% { transform: translateX(-50%); }
  25% { transform: translateX(calc(-50% - 6px)); }
  75% { transform: translateX(calc(-50% + 6px)); }
}

.cmp-bar-in {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px 10px 18px;
  flex-wrap: wrap;
  position: relative;
}

.cmp-bar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  white-space: nowrap;
}

.cmp-bar-title i {
  color: var(--brand-text);
}

.cmp-bar-title span {
  color: var(--muted);
  font-weight: 600;
}

.cmp-bar-items {
  display: flex;
  gap: 8px;
  flex: 1;
}

.cmp-bar-item {
  position: relative;
  width: 64px;
  height: 46px;
  border-radius: 8px;
  overflow: hidden;
  background: #eceeed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a5aca8;
}

.cmp-bar-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cmp-bar-item.is-empty {
  background: #fff;
  border: 1.5px dashed var(--line);
  font-size: 12px;
}

.cmp-bar-item button {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.cmp-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.cmp-bar-clear {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
}

.cmp-bar-go {
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  padding: 0 18px;
}

.cmp-bar-hint {
  font-size: 13px;
  color: var(--muted);
}

.cmp-bar-msg {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  background: var(--on-brand);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

/* страница „Сравнение“ */
.cmp-page {
  padding: 34px 12px 90px;
}

.cmp-empty {
  text-align: center;
  max-width: 520px;
  margin: 20px auto 40px;
  color: var(--muted);
}

.cmp-empty > i {
  font-size: 40px;
  color: var(--brand-text);
  margin-bottom: 14px;
}

.cmp-empty h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}

.cmp-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.cmp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  table-layout: fixed;
}

.cmp-table th,
.cmp-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: 14.5px;
}

.cmp-table thead th {
  vertical-align: top;
  padding-top: 18px;
  padding-bottom: 18px;
}

.cmp-table .cmp-label {
  width: 200px;
  font-weight: 600;
  color: #4a544f;
  background: #fafbfa;
  position: sticky;
  left: 0;
  z-index: 1;
}

.cmp-table tbody tr:hover td {
  background: #fcfbf9;
}

.cmp-table td.is-best {
  font-weight: 800;
  color: var(--ink);
  background: var(--brand-soft);
}

.cmp-best-ico {
  color: #3f8f53;
  margin-left: 6px;
  font-size: 13px;
}

.cmp-na {
  color: #b5bab7;
}

.cmp-group th {
  background: #f4f1ec;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--brand-text);
  font-weight: 800;
}

.cmp-yesno .is-yes {
  color: #3f8f53;
}

.cmp-yesno .is-no {
  color: #c9cdca;
}

.cmp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cmp-img {
  position: relative;
  display: block;
  height: 150px;
  border-radius: 10px;
  overflow: hidden;
  background: #eceeed;
}

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

.cmp-img .status-badge {
  position: absolute;
  left: 8px;
  top: 8px;
}

.cmp-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
}

.cmp-title:hover {
  color: var(--brand-text);
}

.cmp-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--brand-text);
}

.cmp-view {
  border: 1.5px solid var(--brand-text);
  color: var(--brand-text);
  font-weight: 700;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
}

.cmp-view:hover {
  background: var(--brand);
  color: var(--on-brand);
}

.cmp-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
  color: var(--ink);
}

.cmp-remove:hover {
  color: #b23a2a;
}

@media (max-width: 575.98px) {
  .cmp-bar-in {
    gap: 10px;
    padding: 10px 12px;
  }

  .cmp-bar-title {
    display: none;
  }

  .cmp-bar-item {
    width: 52px;
    height: 40px;
  }

  .cmp-table .cmp-label {
    width: 120px;
  }

  .cmp-bar-clear {
    display: none;
  }
}

.cmp-img .status-badge {
  right: auto;
  width: auto;
}

/* ---------- Запазени търсения ---------- */
.ss-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  margin-bottom: 18px;
  border: 1px solid var(--brand-soft-border);
  background: var(--brand-soft);
  border-radius: 12px;
}

.ss-ico {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--brand-border);
  color: var(--brand-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.ss-box.is-saved .ss-ico {
  background: var(--brand-text);
  border-color: var(--brand-text);
  color: #fff;
}

.ss-text {
  flex: 1;
  min-width: 0;
}

.ss-text strong {
  display: block;
  font-size: 15px;
}

.ss-text span {
  font-size: 13.5px;
  color: #4a544f;
}

.ss-btn {
  height: 44px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  font-weight: 700;
  white-space: nowrap;
}

.ss-btn-outline {
  border: 1.5px solid var(--brand-text);
  color: var(--brand-text);
  background: #fff;
}

.ss-btn-outline:hover {
  background: var(--brand);
  color: var(--on-brand);
}

.ss-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ss-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.ss-item.is-off .ss-item-name {
  color: var(--muted);
}

.ss-item-main {
  flex: 1;
  min-width: 0;
}

.ss-item-name {
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
}

.ss-item-name:hover {
  color: var(--brand-text);
}

.ss-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.ss-item-meta i {
  margin-right: 5px;
  color: var(--brand-text);
}

.ss-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.ss-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 4px;
}

.ss-switch span {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: #d5d9d6;
  transition: background .15s;
}

.ss-switch span::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left .15s;
}

.ss-switch.is-on {
  color: var(--ink);
}

.ss-switch.is-on span {
  background: var(--brand-text);
}

.ss-switch.is-on span::after {
  left: 18px;
}

.ss-small {
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
}

.ss-small:hover {
  border-color: var(--brand-text);
  color: var(--brand-text);
}

.ss-del {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: #b23a2a;
}

@media (max-width: 767.98px) {
  .ss-box {
    flex-wrap: wrap;
  }

  .ss-box form,
  .ss-box > .ss-btn {
    width: 100%;
  }

  .ss-btn {
    width: 100%;
    justify-content: center;
  }

  .ss-item {
    flex-direction: column;
    align-items: stretch;
  }

  .ss-item-actions {
    justify-content: space-between;
  }
}

/* =====================================================================
   НАЧАЛНА СТРАНИЦА – нов дизайн (index.php, .page-home)
   ===================================================================== */
.page-home {
  --hm-brown: #8B6A47;
  --hm-brown-dark: #6E5236;
  --hm-sand: #F5EFE6;
  --hm-sand-2: #EFE6DA;
  --hm-cream: #FAF7F2;
  overflow-x: clip;
}

.hm-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 26px;
  border-radius: 8px;
  background: var(--hm-brown);
  border: 1px solid var(--hm-brown);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(139, 106, 71, .22);
  transition: background-color .15s, transform .15s, box-shadow .15s;
}

.hm-btn:hover,
.hm-btn:focus-visible {
  background: var(--hm-brown-dark);
  border-color: var(--hm-brown-dark);
  color: #fff;
  transform: translateY(-1px);
}

.hm-btn i {
  transition: transform .15s;
}

.hm-btn:hover i {
  transform: translateX(3px);
}

.hm-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 24px;
  border-radius: 8px;
  background: #fff;
  border: 1.5px solid var(--hm-brown);
  color: var(--hm-brown-dark);
  font-weight: 700;
  font-size: 15px;
}

.hm-btn-outline:hover {
  background: var(--hm-brown);
  color: #fff;
}

.hm-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hm-brown);
  margin-bottom: 14px;
}

/* ---------- Hero ---------- */
.hm-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 70px 0 150px;
  background: #fff;
}

.hm-hero::before {
  /* бежова вълна вляво долу */
  content: "";
  position: absolute;
  left: -160px;
  bottom: -40px;
  width: 420px;
  height: 300px;
  border-radius: 50%;
  background: var(--hm-sand);
  z-index: 0;
}

.hm-hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 56%;
  z-index: 0;
}

.hm-hero-media::before {
  /* бежова ивица по извивката */
  content: "";
  position: absolute;
  inset: 0 0 -6% -5%;
  background: var(--hm-sand-2);
  border-radius: 48% 0 0 52% / 58% 0 0 42%;
}

.hm-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% center;
  border-radius: 46% 0 0 50% / 56% 0 0 44%;
}

.hm-hero-card {
  position: absolute;
  right: 6%;
  top: 30%;
  width: 250px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(30, 24, 18, .16);
}

.hm-hero-card strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}

.hm-line {
  display: block;
  width: 34px;
  height: 2px;
  background: var(--hm-brown);
  margin: 14px 0 12px;
}

.hm-hero-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #4a544f;
}

.hm-hero .container-xl {
  position: relative;
  z-index: 1;
}

.hm-hero-text {
  max-width: 470px;
}

.hm-hero-text h1 {
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.03em;
  color: #121a16;
  margin-bottom: 22px;
}

.hm-hero-text h1 span {
  color: var(--hm-brown);
}

.hm-lead {
  font-size: 17px;
  line-height: 1.6;
  color: #3b4640;
  margin-bottom: 30px;
}

/* ---------- Търсачка ---------- */
.hm-search-wrap {
  position: relative;
  z-index: 2;
  margin-top: -110px;
}

.page-home .search-card {
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(30, 24, 18, .10);
  border: 1px solid #efe9e1;
  padding: 18px 22px 16px;
}

.page-home .type-tab {
  border-radius: 8px;
  background: transparent;
  border-color: transparent;
}

.page-home .type-tab:hover {
  background: var(--hm-cream);
  color: var(--hm-brown-dark);
}

.page-home .type-tab.active {
  background: var(--hm-brown);
  border-color: var(--hm-brown);
  color: #fff;
  box-shadow: 0 6px 14px rgba(139, 106, 71, .25);
}

.page-home .type-tab.active i {
  color: #fff;
}

.page-home .search-field {
  border-radius: 10px;
}

.page-home .btn-search {
  --bs-btn-bg: var(--hm-brown);
  --bs-btn-border-color: var(--hm-brown);
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--hm-brown-dark);
  --bs-btn-hover-border-color: var(--hm-brown-dark);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--hm-brown-dark);
  --bs-btn-active-color: #fff;
  border-radius: 10px;
}

.page-home .deal-switch .btn-check:checked + label {
  background: var(--hm-brown);
  color: #fff;
}

.search-more-link {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.search-more-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand-text);
  text-decoration: none;
}

.search-more-link a .fa-chevron-down {
  font-size: 10px;
}

.search-more-link a:hover {
  color: var(--brand-text-hover);
}

/* ---------- Заглавия на секциите ---------- */
.hm-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.hm-head h2,
.hm-why h2,
.hm-about h2,
.hm-cta h2 {
  font-weight: 800;
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  letter-spacing: -.02em;
  line-height: 1.12;
  color: #121a16;
}

.hm-head h2 span,
.hm-why h2 span,
.hm-cta h2 span {
  color: var(--hm-brown);
}

.hm-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15.5px;
}

.hm-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
  color: var(--hm-brown);
  text-decoration: none;
}

.hm-link:hover {
  color: var(--hm-brown-dark);
}

.hm-link i {
  transition: transform .15s;
}

.hm-link:hover i {
  transform: translateX(3px);
}

/* ---------- Избрани имоти ---------- */
.hm-featured {
  padding-top: 64px;
  padding-bottom: 84px;
}

.page-home .featured-card {
  border-radius: 14px;
  border: 1px solid #eee8e0;
  box-shadow: 0 10px 30px rgba(30, 24, 18, .06);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}

.page-home .featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(30, 24, 18, .12);
}

.page-home .featured-card .property-media {
  height: 220px;
}

.page-home .featured-card .property-body {
  padding: 18px 18px 18px;
}

.page-home .featured-card .property-title {
  font-size: 17px;
}

.page-home .featured-card .property-price {
  font-size: 22px;
  color: var(--ink);
}

.page-home .featured-card .type-badge {
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.page-home .btn-more {
  background: var(--hm-sand);
  border: 1px solid var(--hm-sand-2);
  color: var(--on-brand);
  border-radius: 8px;
}

.page-home .btn-more:hover {
  background: var(--hm-brown);
  border-color: var(--hm-brown);
  color: #fff;
}

/* ---------- За нас ---------- */
.hm-about {
  position: relative;
  background: var(--hm-cream);
  padding: 86px 0;
  min-height: 460px;
}

.hm-about-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 52%;
}

.hm-about-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 44% 0 0 0 / 60% 0 0 0;
}

.hm-about-media::before {
  content: "";
  position: absolute;
  inset: 8% 0 0 -4%;
  background: var(--hm-sand-2);
  border-radius: 44% 0 0 0 / 60% 0 0 0;
}

.hm-about .container-xl {
  position: relative;
  z-index: 1;
}

.hm-about-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.hm-about-text {
  max-width: 470px;
}

.hm-about-text p {
  color: #4a544f;
  font-size: 15.5px;
  line-height: 1.7;
  margin: 18px 0 28px;
}

.hm-points {
  list-style: none;
  margin: 0;
  padding: 18px 22px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(30, 24, 18, .16);
  min-width: 270px;
}

.hm-points li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 0;
  font-weight: 600;
  font-size: 14.5px;
}

.hm-points li + li {
  border-top: 1px solid #f0ebe4;
}

.hm-points span {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--hm-sand);
  color: var(--hm-brown);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* ---------- Защо нас ---------- */
.hm-why {
  padding-top: 80px;
  padding-bottom: 80px;
}

.hm-why h2 {
  margin-bottom: 36px;
}

.hm-why-item h3 {
  font-size: 16.5px;
  font-weight: 800;
  margin: 18px 0 6px;
}

.hm-why-item p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
  max-width: 230px;
}

.hm-why-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--hm-sand);
  color: var(--hm-brown);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: background-color .2s, color .2s;
}

.hm-why-item:hover .hm-why-icon {
  background: var(--hm-brown);
  color: #fff;
}

/* ---------- Свържете се ---------- */
.hm-cta {
  position: relative;
  background: linear-gradient(90deg, #fff 0%, var(--hm-cream) 45%, var(--hm-sand) 100%);
  min-height: 300px;
  display: flex;
  align-items: center;
  padding: 56px 0;
}

.hm-cta-media {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 48%;
}

.hm-cta-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 48% 0 0 / 0 70% 0 0;
}

.hm-cta .container-xl {
  position: relative;
  z-index: 1;
}

.hm-cta-text {
  margin-left: 52%;
  max-width: 560px;
}

.hm-cta-text p {
  color: #4a544f;
  font-size: 15.5px;
  line-height: 1.65;
  margin: 12px 0 24px;
}

/* ---------- Мобилни ---------- */
@media (max-width: 991.98px) {
  .hm-hero {
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 130px;
    min-height: 0;
  }

  .hm-hero-media {
    position: relative;
    width: 100%;
    height: 340px;
    margin-bottom: 30px;
  }

  .hm-hero-media img,
  .hm-hero-media::before {
    border-radius: 0 0 0 60% / 0 0 0 26%;
  }

  .hm-hero-card {
    right: 16px;
    top: auto;
    bottom: 20px;
    width: 220px;
    padding: 16px 18px;
  }

  .hm-hero::before {
    display: none;
  }

  .hm-search-wrap {
    margin-top: -100px;
  }

  .hm-about {
    padding: 0 0 50px;
  }

  .hm-about-media {
    position: relative;
    width: 100%;
    height: 300px;
  }

  .hm-about-media img,
  .hm-about-media::before {
    border-radius: 0 0 0 60% / 0 0 0 30%;
  }

  .hm-about-grid {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .hm-points {
    margin-top: -70px;
  }

  .hm-about-text {
    max-width: none;
  }

  .hm-cta {
    flex-direction: column;
    padding: 0 0 50px;
  }

  .hm-cta-media {
    position: relative;
    width: 100%;
    height: 240px;
    margin-bottom: 30px;
  }

  .hm-cta-media img {
    border-radius: 0 0 60% 0 / 0 0 30% 0;
  }

  .hm-cta-text {
    margin-left: 0;
  }
}

@media (max-width: 575.98px) {
  .hm-hero-media {
    height: 280px;
  }

  .hm-hero-card {
    display: none;
  }

  .hm-why-item p {
    font-size: 13.5px;
  }

  .hm-featured {
    padding-top: 44px;
    padding-bottom: 56px;
  }
}

/* ---------- Хедър и футър – цветове по новия дизайн (структурата е същата) ---------- */
.site-footer {
  background: #FBF8F4;
  border-top: 1px solid #efe8de;
  color: #4a443d;
}

.site-footer .brand-logo {
  color: var(--brand-text);
}

.site-footer h5 {
  color: #1f1a15;
}

.site-footer a {
  color: #4a443d;
}

.site-footer a:hover {
  color: var(--brand-text);
}

.footer-bottom {
  border-top-color: #ece4d9;
  color: #6c655d;
}

.site-header .brand-logo {
  color: var(--brand-text);
}

/* картите на началната: заглавие → място → цена → данни → бутон */
.page-home .featured-card .property-title { order: 1; }
.page-home .featured-card .property-location { order: 2; }
.page-home .featured-card .property-price { order: 3; margin: 12px 0 4px; }
.page-home .featured-card .property-features { order: 4; }
.page-home .featured-card .btn-more { order: 5; }

/* =====================================================================
   СТРАНИЦА „ИМОТИ“ – нов дизайн (properties.php)
   ===================================================================== */
.lst-hero {
  background: #fff;
  padding: 34px 0 150px;
  min-height: 380px;
}

.lst-hero::before,
.lst-hero::after {
  display: none;
}

.lst-hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
}

.lst-hero-media::before {
  content: "";
  position: absolute;
  inset: 0 0 -4% -4%;
  background: #EFE6DA;
  border-radius: 50% 0 0 0 / 70% 0 0 0;
}

.lst-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  border-radius: 48% 0 0 0 / 68% 0 0 0;
}

.lst-hero .container-xl::before {
  /* бежова дъга вляво */
  content: "";
  position: absolute;
  left: -260px;
  top: 150px;
  width: 360px;
  height: 260px;
  border-radius: 50%;
  background: #F5EFE6;
  z-index: -1;
}

.lst-hero h1 span {
  color: #8B6A47;
}

.lst-hero .lead {
  max-width: 470px;
}

/* търсачка, бутони и карти – като на началната */
.page-listing {
  --hm-brown: #8B6A47;
  --hm-brown-dark: #6E5236;
}

.page-listing .search-card {
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(30, 24, 18, .10);
  border: 1px solid #efe9e1;
  position: relative;
  z-index: 2;
}

.page-listing .type-tab {
  border-radius: 8px;
}

.page-listing .type-tab:hover {
  color: var(--hm-brown-dark);
}

.page-listing .type-tab.active {
  background: var(--hm-brown);
  border-color: var(--hm-brown);
  color: #fff;
  box-shadow: 0 6px 14px rgba(139, 106, 71, .25);
}

.page-listing .type-tab.active i {
  color: #fff;
}

.page-listing .search-field {
  border-radius: 10px;
}

.page-listing .btn-search {
  --bs-btn-bg: var(--hm-brown);
  --bs-btn-border-color: var(--hm-brown);
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--hm-brown-dark);
  --bs-btn-hover-border-color: var(--hm-brown-dark);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--hm-brown-dark);
  --bs-btn-active-color: #fff;
  border-radius: 10px;
}

.page-listing .deal-switch .btn-check:checked + label {
  background: var(--hm-brown);
  color: #fff;
}

.page-listing .results-head h2 span {
  color: var(--hm-brown);
}

.page-listing .view-btn {
  border-radius: 8px;
}

.page-listing .view-btn.active {
  background: var(--hm-brown);
  border-color: var(--hm-brown);
  color: #fff;
}

.page-listing .sort-select {
  border-radius: 8px;
}

.page-listing .property-card {
  border-radius: 14px;
  border-color: #eee8e0;
  box-shadow: 0 10px 30px rgba(30, 24, 18, .06);
}

.page-listing .property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(30, 24, 18, .12);
}

.page-listing .property-card .type-badge {
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.page-listing .property-card .property-price {
  color: var(--ink);
}

.page-listing .pager a {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #fff;
}

.page-listing .pager a.active {
  background: var(--hm-brown);
  border-color: var(--hm-brown);
  color: #fff;
}

.page-listing .filter-chip {
  border-radius: 8px;
}

@media (max-width: 991.98px) {
  .lst-hero {
    padding: 0 0 130px;
  }

  .lst-hero-media {
    position: relative;
    width: 100%;
    height: 220px;
    margin-bottom: 22px;
  }

  .lst-hero-media img,
  .lst-hero-media::before {
    border-radius: 0 0 0 60% / 0 0 0 30%;
  }

  .lst-hero .container-xl::before {
    display: none;
  }
}

/* =====================================================================
   „ЗА НАС“ – нов дизайн (about_us.php, .page-about)
   ===================================================================== */
.page-about {
  --ab-brown: #8B6A47;
  --ab-brown-dark: #6E5236;
  --ab-sand: #F5EFE6;
  --ab-sand-2: #EFE6DA;
  --ab-cream: #FAF7F2;
  overflow-x: clip;
}

.page-about h2 {
  font-weight: 800;
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  letter-spacing: -.02em;
  line-height: 1.15;
  color: #121a16;
}

.ab-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ab-brown);
  margin-bottom: 12px;
}

.ab-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 50px;
  padding: 0 24px;
  border-radius: 8px;
  background: var(--ab-brown);
  border: 1px solid var(--ab-brown);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  box-shadow: 0 8px 20px rgba(139, 106, 71, .22);
}

.ab-btn:hover,
.ab-btn:focus-visible {
  background: var(--ab-brown-dark);
  border-color: var(--ab-brown-dark);
  color: #fff;
}

.ab-float {
  position: absolute;
  background: rgba(250, 247, 242, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(30, 24, 18, .16);
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: #2b241d;
}

.ab-line {
  display: block;
  width: 36px;
  height: 2px;
  background: var(--ab-brown);
  margin-top: 12px;
}

/* ---------- Горна част ---------- */
.ab-hero {
  position: relative;
  background: #fff;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 30px 0 60px;
}

.ab-hero::before {
  content: "";
  position: absolute;
  left: -180px;
  bottom: -60px;
  width: 440px;
  height: 260px;
  border-radius: 50%;
  background: var(--ab-sand);
}

.ab-hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
}

.ab-hero-media::before {
  content: "";
  position: absolute;
  inset: 0 0 -4% -5%;
  background: var(--ab-sand-2);
  border-radius: 50% 0 0 50% / 62% 0 0 38%;
}

.ab-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 48% 0 0 48% / 60% 0 0 40%;
}

.ab-hero-card {
  right: 7%;
  top: 34%;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 240px;
}

.ab-hero-card > i {
  font-size: 30px;
  color: var(--ab-brown);
  margin-top: 2px;
}

.ab-hero .container-xl {
  position: relative;
  z-index: 1;
}

.ab-hero-text {
  max-width: 600px;
}

@media (min-width: 992px) {
  .ab-hero-text {
    max-width: min(600px, 52%);
  }
}

.ab-hero .breadcrumb {
  font-size: 12px;
  margin-bottom: 30px;
  --bs-breadcrumb-divider: '›';
  --bs-breadcrumb-divider-color: var(--muted);
}

.ab-hero .breadcrumb a,
.ab-hero .breadcrumb-item.active {
  color: var(--muted);
  text-decoration: none;
}

.ab-hero h1 {
  font-weight: 800;
  font-size: clamp(2.1rem, 3.5vw, 2.9rem);
  letter-spacing: -.025em;
  line-height: 1.12;
  color: #121a16;
  margin-bottom: 18px;
}

.ab-hero h1 span {
  color: var(--ab-brown);
}

.ab-lead {
  font-size: 16px;
  line-height: 1.65;
  color: #3b4640;
  margin-bottom: 26px;
}

/* ---------- Цифри ---------- */
.ab-stats {
  background: #fff;
  border-top: 1px solid #f0ebe4;
  border-bottom: 1px solid #f0ebe4;
  padding: 26px 0;
}

.ab-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.ab-stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 6px 12px;
}

.ab-stat + .ab-stat {
  border-left: 1px solid #ece5db;
}

.ab-stat > i {
  font-size: 30px;
  color: var(--ab-brown);
}

.ab-stat strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ab-brown);
}

.ab-stat span {
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- Нашата история ---------- */
.ab-story {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 70px 0 60px;
}

.ab-story-media {
  position: relative;
  min-height: 420px;
  height: 100%;
}

.ab-story-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 18px 18px 0;
}

.ab-story-card {
  left: 6%;
  top: 9%;
}

.ab-story-text {
  max-width: 560px;
  padding-right: 24px;
}

.ab-story-text p {
  font-size: 15px;
  line-height: 1.7;
  color: #4a544f;
  margin: 14px 0 0;
}

.ab-story-text h2 {
  margin-bottom: 4px;
}

.ab-story-text .ab-btn {
  margin-top: 26px;
}

.ab-sign {
  position: absolute;
  right: 0;
  bottom: -40px;
  width: 260px;
  height: 150px;
  color: var(--ab-brown);
  pointer-events: none;
}

.ab-sign svg {
  position: absolute;
  inset: 0;
  opacity: .55;
}

.ab-sign span {
  position: absolute;
  right: 26px;
  top: 34px;
  font-family: 'Caveat', 'Segoe Script', 'Brush Script MT', cursive;
  font-size: 30px;
  line-height: 1;
  transform: rotate(-12deg);
  white-space: nowrap;
}

/* ---------- Мисия, визия, ценности ---------- */
.ab-values {
  padding: 40px 0 70px;
}

.ab-values-title {
  max-width: 760px;
  font-weight: 700 !important;
  margin-bottom: 30px;
}

.ab-card {
  height: 100%;
  background: #F7F3EE;
  border: 1px solid #efe8de;
  border-radius: 16px;
  padding: 28px 28px 26px;
  transition: transform .2s, box-shadow .2s;
}

.ab-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(30, 24, 18, .08);
}

.ab-card-ico {
  font-size: 28px;
  color: var(--ab-brown);
  margin-bottom: 18px;
  display: block;
}

.ab-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
}

.ab-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #4a544f;
  margin: 0;
}

.ab-dots {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ab-dots li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: #4a544f;
  margin-bottom: 8px;
}

.ab-dots li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ab-brown);
}

/* ---------- Защо нас ---------- */
.ab-why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
  padding: 10px 0 70px;
}

.ab-why-media {
  position: relative;
  min-height: 460px;
  height: 100%;
}

.ab-why-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 50% 50% 0 / 0 46% 54% 0;
}

.ab-why-text {
  max-width: 600px;
  padding-right: 24px;
}

.ab-why-lead {
  color: #4a544f;
  font-size: 15px;
  line-height: 1.65;
  margin: 12px 0 0;
}

.ab-why-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ab-why-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: #F9F6F2;
  border: 1px solid #f0e9df;
  border-radius: 12px;
  transition: border-color .15s, background-color .15s;
}

.ab-why-list li:hover {
  border-color: #e2d4c1;
  background: #fff;
}

.ab-why-ico {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--ab-sand);
  color: var(--ab-brown);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.ab-why-list strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
}

.ab-why-list span {
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- Заглавия с бутони-стрелки (екип, партньори) ---------- */
.ab-sec-head {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 24px;
}

.ab-sec-head > div:first-child {
  flex: none;
}

.ab-sec-head h2 {
  margin: 0;
}

.ab-sec-text {
  flex: 1;
  margin: 0 0 4px auto;
  max-width: 420px;
  font-size: 14px;
  color: var(--muted);
}

.ab-arrows {
  display: flex;
  gap: 10px;
  margin-left: auto;
  flex: none;
}

.ab-sec-text + .ab-arrows {
  margin-left: 0;
}

.ab-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e3dbd0;
  background: #fff;
  color: var(--ab-brown);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .15s, color .15s;
}

.ab-arrow.is-next,
.ab-arrow:hover {
  border-color: var(--ab-brown);
}

.ab-arrow:hover {
  background: var(--ab-brown);
  color: #fff;
}

/* ---------- Екип ---------- */
.ab-team {
  padding: 20px 0 50px;
}

.ab-team-track {
  gap: 20px;
  padding-bottom: 6px;
}

.ab-member {
  flex: 0 0 calc((100% - 60px) / 4);
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #eee8e0;
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .2s;
}

.ab-member:hover {
  box-shadow: 0 16px 36px rgba(30, 24, 18, .10);
}

.ab-member-img {
  height: 220px;
  background: #ece6dd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b9ab99;
  font-size: 40px;
}

.ab-member-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.ab-member-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
}

.ab-member-body strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
}

.ab-member-body span {
  font-size: 12.5px;
  color: var(--muted);
}

.ab-in {
  flex: none;
  color: var(--ab-brown);
  font-size: 18px;
}

.ab-in:hover {
  color: var(--ab-brown-dark);
}

/* ---------- Партньори ---------- */
.ab-partners {
  padding: 10px 0 50px;
}

.ab-partners-track {
  gap: 14px;
  align-items: center;
}

.ab-partner {
  flex: 0 0 auto;
  min-width: 170px;
  height: 64px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  color: #5c544b;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  scroll-snap-align: start;
  transition: background-color .15s, color .15s;
}

.ab-partner i {
  font-size: 20px;
}

.ab-partner img {
  max-height: 40px;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .8;
}

a.ab-partner:hover {
  background: var(--ab-cream);
  color: var(--ab-brown);
}

a.ab-partner:hover img {
  filter: none;
  opacity: 1;
}

/* ---------- Призив ---------- */
.ab-cta-wrap {
  padding-bottom: 70px;
}

.ab-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 200px;
  padding: 36px 44px;
  border-radius: 20px;
  background: linear-gradient(90deg, #7d5e3e 0%, #8B6A47 45%, #a07c57 100%);
  color: #fff;
}

.ab-cta-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 55%;
}

.ab-cta-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #8B6A47 0%, rgba(139, 106, 71, .55) 30%, rgba(139, 106, 71, 0) 70%);
}

.ab-cta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ab-cta-text {
  position: relative;
  z-index: 1;
  max-width: 470px;
}

.ab-cta .ab-eyebrow {
  color: #f1e3d0;
}

.ab-cta h2 {
  color: #fff;
  margin-bottom: 10px;
}

.ab-cta p {
  margin: 0;
  color: rgba(255, 255, 255, .88);
  font-size: 14.5px;
  line-height: 1.6;
}

.ab-cta-btn {
  position: relative;
  z-index: 1;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 50px;
  padding: 0 26px;
  border-radius: 10px;
  background: #fff;
  color: #2b241d;
  font-weight: 800;
  font-size: 14.5px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .15);
}

.ab-cta-btn:hover {
  background: var(--ab-sand);
  color: #2b241d;
}

/* ---------- Мобилни ---------- */
@media (max-width: 991.98px) {
  .ab-hero {
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 40px;
    min-height: 0;
  }

  .ab-hero-media {
    position: relative;
    width: 100%;
    height: 300px;
    margin-bottom: 26px;
  }

  .ab-hero-media img,
  .ab-hero-media::before {
    border-radius: 0 0 0 60% / 0 0 0 26%;
  }

  .ab-hero-card {
    right: 16px;
    top: auto;
    bottom: 18px;
  }

  .ab-hero::before {
    display: none;
  }

  .ab-stats-row {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 18px;
  }

  .ab-stat {
    justify-content: flex-start;
  }

  .ab-stat:nth-child(3) {
    border-left: 0;
  }

  .ab-story,
  .ab-why {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 40px;
  }

  .ab-story-media,
  .ab-why-media {
    min-height: 280px;
  }

  .ab-story-text,
  .ab-why-text {
    padding: 0 20px;
    max-width: none;
  }

  .ab-sign {
    display: none;
  }

  .ab-member {
    flex-basis: calc((100% - 20px) / 2);
  }

  .ab-sec-head {
    flex-wrap: wrap;
  }

  .ab-sec-text {
    order: 3;
    flex-basis: 100%;
    max-width: none;
    margin: 0;
  }

  .ab-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 24px 220px;
  }

  .ab-cta-media {
    top: auto;
    width: 100%;
    height: 200px;
  }

  .ab-cta-media::after {
    background: linear-gradient(180deg, #8B6A47 0%, rgba(139, 106, 71, 0) 70%);
  }

  .ab-cta-btn {
    margin-left: 0;
  }
}

@media (max-width: 575.98px) {
  .ab-member {
    flex-basis: 78%;
  }

  .ab-hero-card {
    min-width: 0;
    padding: 14px 16px;
    font-size: 13.5px;
  }

  .ab-stat > i {
    font-size: 22px;
  }

  .ab-stat strong {
    font-size: 21px;
  }
}

/* =====================================================================
   „КОНТАКТИ“ – нов дизайн (contacts.php, .page-contact)
   ===================================================================== */
.page-contact {
  --ct-brown: #8B6A47;
  --ct-brown-dark: #6E5236;
  --ct-sand: #F5EFE6;
  --ct-sand-2: #EFE6DA;
  --ct-cream: #FAF7F2;
  overflow-x: clip;
}

.ct-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ct-brown);
  margin-bottom: 14px;
}

.ct-line {
  display: block;
  width: 36px;
  height: 2px;
  background: var(--ct-brown);
  margin-top: 12px;
}

/* ---------- Горна част ---------- */
.ct-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  padding: 40px 0 110px;
  background: #fff;
}

.ct-hero::before {
  content: "";
  position: absolute;
  left: -200px;
  bottom: 10px;
  width: 520px;
  height: 220px;
  border-radius: 50%;
  background: var(--ct-sand);
}

.ct-hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 70px;
  width: 54%;
}

.ct-hero-media::before {
  content: "";
  position: absolute;
  inset: 0 0 -6% -5%;
  background: var(--ct-sand-2);
  border-radius: 50% 0 0 60% / 62% 0 0 46%;
}

.ct-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 48% 0 0 58% / 60% 0 0 44%;
}

.ct-hero-card {
  position: absolute;
  right: 5%;
  top: 22%;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 240px;
  padding: 20px 22px;
  background: rgba(250, 247, 242, .84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(30, 24, 18, .16);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: #2b241d;
}

.ct-hero-card > i {
  font-size: 30px;
  color: var(--ct-brown);
}

.ct-hero .container-xl {
  position: relative;
  z-index: 1;
}

.ct-hero-text {
  max-width: 470px;
}

.ct-hero h1 {
  font-weight: 800;
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  letter-spacing: -.03em;
  line-height: 1.04;
  color: #121a16;
  margin-bottom: 18px;
}

.ct-hero h1 span {
  color: var(--ct-brown);
}

.ct-lead {
  font-size: 16px;
  line-height: 1.65;
  color: #3b4640;
  margin: 0;
}

/* ---------- Форма и контакти ---------- */
.ct-main {
  position: relative;
  z-index: 2;
  margin-top: -70px;
  padding-bottom: 40px;
}

.page-contact .contact-form-card {
  background: #fff;
  border: 1px solid #efe9e1;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(30, 24, 18, .08);
}

.page-contact .input-icon {
  border-radius: 10px;
}

.page-contact .input-icon > i:first-child {
  color: var(--ct-brown);
}

.page-contact .contact-consent .form-check-input:checked {
  background-color: var(--ct-brown);
  border-color: var(--ct-brown);
}

.ct-btn {
  width: 100%;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 10px;
  background: var(--ct-brown);
  border: 1px solid var(--ct-brown);
  color: #fff;
  font-weight: 700;
  font-size: 15.5px;
  box-shadow: 0 10px 24px rgba(139, 106, 71, .24);
}

.ct-btn:hover,
.ct-btn:focus-visible {
  background: var(--ct-brown-dark);
  border-color: var(--ct-brown-dark);
  color: #fff;
}

.ct-info {
  background: #F7F3EE;
  border: 1px solid #efe8de;
  border-radius: 18px;
  padding: 26px 26px 18px;
}

.page-contact .ci-icon {
  background: #EDE3D6;
  color: var(--ct-brown);
}

.ct-map {
  border-radius: 18px;
  min-height: 250px;
  border: 1px solid #efe8de;
}

.ct-map-big {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
  font-size: 12.5px;
  font-weight: 700;
  color: #1a73e8;
  text-decoration: none;
}

.ct-map-big i {
  font-size: 11px;
}

.ct-map-big:hover {
  color: #0b57d0;
}

.ct-map .map-card {
  top: auto;
  bottom: 14px;
  left: 14px;
  transform: none;
  border-radius: 12px;
  align-items: center;
}

.ct-map .map-card img {
  width: 76px;
  height: 64px;
  border-radius: 8px;
}

.ct-map .map-card strong {
  margin: 0 0 4px;
}

.ct-map .map-card span {
  margin: 0;
  font-size: 12.5px;
}

.ct-map:has(.cc-placeholder) .ct-map-big {
  display: none;
}

/* ---------- Предимства ---------- */
.ct-features {
  background: #fff;
  padding: 26px 0 50px;
}

.page-contact .feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ct-sand);
  color: var(--ct-brown);
  font-size: 20px;
}

/* ---------- Често задавани въпроси ---------- */
.ct-faq {
  position: relative;
  background: linear-gradient(90deg, var(--ct-cream) 0%, #fbf8f4 100%);
  padding: 0;
  overflow: hidden;
}

.ct-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  align-items: center;
  gap: 30px;
  min-height: 330px;
}

.ct-faq-text {
  padding: 40px 0;
}

.ct-faq-text h2 {
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -.02em;
  line-height: 1.1;
  color: #121a16;
  margin-bottom: 14px;
}

.ct-faq-text h2 span {
  color: var(--ct-brown);
}

.ct-faq-text p {
  font-size: 15px;
  line-height: 1.6;
  color: #4a544f;
  margin-bottom: 22px;
}

.ct-btn-light {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  background: var(--ct-sand-2);
  border: 1px solid #e3d5c2;
  color: #2b241d;
  font-weight: 700;
  font-size: 14px;
}

.ct-btn-light:hover {
  background: var(--ct-brown);
  border-color: var(--ct-brown);
  color: #fff;
}

.ct-btn-light.is-open i {
  transform: rotate(180deg);
}

.ct-faq-media {
  position: relative;
  align-self: stretch;
  min-height: 300px;
  margin: 0 -10px;
}

.ct-faq-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50% 0 0 50% / 40% 0 0 60%;
}

.ct-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px 0;
}

.ct-faq-item {
  background: #fff;
  border: 1px solid #efe8de;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(30, 24, 18, .04);
}

.ct-faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}

.ct-faq-item summary::-webkit-details-marker {
  display: none;
}

.ct-faq-item summary:focus-visible {
  outline: 2px solid var(--ct-brown);
  outline-offset: 2px;
  border-radius: 10px;
}

.ct-plus {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--ct-brown);
}

.ct-plus::before,
.ct-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1.5px;
  background: var(--ct-brown);
  transform: translate(-50%, -50%);
  transition: transform .2s;
}

.ct-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.ct-faq-item[open] .ct-plus {
  background: var(--ct-brown);
}

.ct-faq-item[open] .ct-plus::before,
.ct-faq-item[open] .ct-plus::after {
  background: #fff;
}

.ct-faq-item[open] .ct-plus::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.ct-faq-answer {
  padding: 0 16px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #4a544f;
}

/* ---------- Мобилни ---------- */
@media (max-width: 991.98px) {
  .ct-hero {
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 90px;
    min-height: 0;
  }

  .ct-hero-media {
    position: relative;
    width: 100%;
    height: 260px;
    margin-bottom: 24px;
    bottom: auto;
  }

  .ct-hero-media img,
  .ct-hero-media::before {
    border-radius: 0 0 0 60% / 0 0 0 26%;
  }

  .ct-hero-card {
    top: auto;
    bottom: 16px;
    right: 16px;
    min-width: 0;
    padding: 14px 16px;
    font-size: 13.5px;
  }

  .ct-hero::before {
    display: none;
  }

  .ct-main {
    margin-top: -60px;
  }

  .ct-faq-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ct-faq-media {
    order: -1;
    min-height: 220px;
    margin: 0 -12px;
  }

  .ct-faq-media img {
    border-radius: 0 0 0 60% / 0 0 0 28%;
  }

  .ct-faq-text {
    padding: 30px 0 10px;
  }
}
