/* Страницата на комплекс: важно, параметри, карта, бърза консултация. Основата е в builders.css. */
.cx-important, .cx-facts, .cx-consult { margin-top: clamp(30px, 5vw, 56px); }
.cx-important h2, .cx-facts h2 { margin: 0 0 16px; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.cx-important__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.cx-important__list li { display: flex; gap: 12px; padding: 16px 18px; border: 1px solid var(--bp-line, #e3e7ec); border-radius: 12px; background: #fff; }
.cx-important__list .material-icons-outlined { flex: none; color: var(--bp-accent, #e8622c); }
.cx-important__list p { margin: 0; line-height: 1.55; }
.cx-important__list b { display: block; margin-bottom: 3px; }
.cx-features { margin-top: clamp(30px, 5vw, 56px); }
.cx-features h2 { margin: 0 0 16px; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.cx-features__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.cx-features__list li { display: flex; align-items: center; gap: 13px; min-height: 64px; padding: 12px 16px; border: 1px solid var(--bp-line, #e3e7ec); border-radius: 12px; background: #fff; font-weight: 600; line-height: 1.3; }
.cx-features__check { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--bp-accent, #e8622c); color: #fff; }
.cx-facts { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr); gap: clamp(18px, 3vw, 32px); align-items: stretch; }
.cx-facts--nomap { grid-template-columns: minmax(0, 520px); }
.cx-params { margin: 0; }
.cx-params > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--bp-line, #e3e7ec); }
.cx-params dt { font-weight: 500; color: var(--bp-ink-3, #667); }
.cx-params dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.cx-map { min-height: 320px; border-radius: 14px; overflow: hidden; z-index: 0; }
.cx-consult { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: clamp(18px, 3vw, 36px); padding: clamp(22px, 3.5vw, 36px); border-radius: 18px; background: #14283c; color: #fff; }
.cx-consult h2 { margin: 0 0 6px; color: #fff; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.cx-consult__sub { margin: 0 0 18px; color: #d3dde6; line-height: 1.4; }
.cx-consult__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.cx-consult input[type=text], .cx-consult input[type=tel], .cx-consult input[type=email], .cx-consult textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 9px; background: rgba(255,255,255,.1); color: #fff; font: inherit; }
.cx-consult ::placeholder { color: rgba(255,255,255,.72); }
.cx-consult input:focus, .cx-consult textarea:focus { outline: 2px solid #fff; outline-offset: 1px; }
.cx-consult__agree { display: flex; gap: 9px; align-items: flex-start; margin-top: 12px; font-size: .9rem; line-height: 1.4; cursor: pointer; }
.cx-consult__agree input { margin-top: 3px; accent-color: var(--bp-accent, #e8622c); }
.cx-consult__msg { margin: 12px 0 0; font-weight: 600; }
.cx-consult__msg.is-error { color: #ffc2b3; }
.cx-consult__broker { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; text-align: center; }
.cx-consult__broker img { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px rgba(255,255,255,.3); }
.cx-consult__broker a { color: #fff; }
.cx-consult__send { width: 100%; min-height: 46px; margin-top: 6px; border: 0; border-radius: 9px; background: var(--bp-accent, #e8622c); color: #fff; font-weight: 700; text-transform: uppercase; cursor: pointer; transition: filter .15s; }
.cx-consult__send:hover, .cx-consult__send:focus-visible { filter: brightness(1.1); }
.cx-consult__send:disabled { opacity: .6; cursor: wait; }
@media (max-width: 860px) {
  .cx-facts { grid-template-columns: minmax(0, 1fr); }
  .cx-consult { grid-template-columns: minmax(0, 1fr); }
  .cx-consult__row { grid-template-columns: minmax(0, 1fr); }
}
/* Основната снимка в героя: без рамка, запълва полето */
.cx-hero .bp-logo { padding: 0; overflow: hidden; }
.cx-hero .bp-logo img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; display: block; }

/* Голямата галерия */
.cx-gallery { min-width: 0; max-width: 100%; margin-top: clamp(20px, 3vw, 32px); }
.cx-gallery__stage { position: relative; aspect-ratio: 16 / 9; max-height: 680px; width: 100%; border-radius: 16px; overflow: hidden; background: #14283c; }
.cx-gallery__open, .cx-gallery__video { position: absolute; inset: 0; display: block; }
.cx-gallery__open[hidden], .cx-gallery__video[hidden], .cx-gallery__nav[hidden], .cx-gallery__count[hidden], .cx-gallery__thumbs[hidden] { display: none; }
.cx-gallery__open { cursor: zoom-in; }
.cx-gallery__open img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cx-gallery__video iframe { width: 100%; height: 100%; border: 0; display: block; }
.cx-gallery__nav { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #14283c; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); transition: background .15s, transform .15s; }
.cx-gallery__nav:hover { background: #fff; transform: scale(1.06); }
.cx-gallery__nav:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.cx-gallery__nav .material-icons-outlined { font-size: 30px; }
.cx-gallery__nav--prev { left: 16px; }
.cx-gallery__nav--next { right: 16px; }
.cx-gallery__count { position: absolute; left: 16px; bottom: 14px; padding: 4px 11px; border-radius: 999px; background: rgba(15, 28, 42, .78); color: #fff; font-size: .85rem; font-weight: 600; font-variant-numeric: tabular-nums; pointer-events: none; }
.cx-gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; padding: 3px; overflow-x: auto; scrollbar-width: thin; }
.cx-gallery__thumb { position: relative; flex: 0 0 132px; height: 84px; padding: 0; border: 0; border-radius: 9px; overflow: hidden; background: #e3e7ec; cursor: pointer; opacity: .72; transition: opacity .15s; }
.cx-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cx-gallery__thumb:hover, .cx-gallery__thumb.is-on { opacity: 1; }
.cx-gallery__thumb.is-on { outline: 3px solid var(--bp-accent, #e8622c); outline-offset: -3px; }
.cx-gallery__thumb:focus-visible { outline: 3px solid #14283c; outline-offset: 1px; opacity: 1; }
.cx-gallery__thumb--video .material-icons-outlined { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #fff; font-size: 38px; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
@media (max-width: 600px) {
  .cx-gallery__stage { aspect-ratio: 4 / 3; border-radius: 12px; }
  .cx-gallery__nav { width: 40px; height: 40px; margin-top: -20px; }
  .cx-gallery__nav--prev { left: 8px; }
  .cx-gallery__nav--next { right: 8px; }
  .cx-gallery__thumb { flex-basis: 96px; height: 64px; }
}

/* Карта в списъка: голяма снимка със стрелки */
.cx-card { padding: 0; gap: 10px; overflow: hidden; }
.cx-card > :not(.cx-card__media) { margin-left: 18px; margin-right: 18px; }
.cx-card > :last-child { margin-bottom: 16px; }
.cx-card__media { position: relative; aspect-ratio: 4 / 3; margin-bottom: 6px; background: #e3e7ec; }
.cx-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cx-card__nopic { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 56px; color: #9aa7b4; }
.cx-card__link { color: inherit; text-decoration: none; }
.cx-card__link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.cx-card__link:hover { color: inherit; text-decoration: none; }
.cx-card:has(.cx-card__link:focus-visible) { outline: 2px solid var(--bp-accent, #e8622c); outline-offset: 3px; }
.cx-card__nav { position: absolute; z-index: 2; top: 50%; width: 38px; height: 38px; margin-top: -19px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #14283c; cursor: pointer; box-shadow: 0 1px 6px rgba(0, 0, 0, .25); transition: background .15s, transform .15s; }
.cx-card__nav:hover { background: #fff; transform: scale(1.08); }
.cx-card__nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cx-card__nav--prev { left: 10px; }
.cx-card__nav--next { right: 10px; }
.cx-card__count { position: absolute; z-index: 2; right: 10px; bottom: 10px; padding: 2px 9px; border-radius: 999px; background: rgba(15, 28, 42, .78); color: #fff; font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; pointer-events: none; }

.cx-gallery__thumb--offer { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: #14283c; color: #fff; opacity: 1; }
.cx-gallery__thumb--offer .material-icons-outlined { font-size: 26px; }
.cx-gallery__thumb--offer small { font-size: .72rem; font-weight: 600; line-height: 1.15; }
.cx-gallery__stage:has(.cx-gallery__offer:not([hidden])) .cx-gallery__count { display: none; }
@media (max-width: 600px) {
  .cx-gallery__stage:has(.cx-gallery__offer:not([hidden])) { aspect-ratio: auto; height: 470px; max-height: none; }
  .cx-gallery__stage:has(.cx-gallery__offer:not([hidden])) .cx-gallery__nav { top: 26px; }
}

/* Заглавната част: само заглавие и бутони */
.cx-hero { grid-template-columns: minmax(0, 1fr); padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.cx-params dd { text-align: right; }

/* Общата карта в каталога */
.cx-allmap { margin: 18px 0 16px; }
#cxMapBox .leaflet-popup-content { margin: 10px; }
.cx-allmap__toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 0; border-radius: 10px; background: #14283c; color: #fff; font-weight: 700; cursor: pointer; transition: filter .15s, transform .15s; }
.cx-allmap__toggle:hover { filter: brightness(1.2); }
.cx-allmap__toggle:active { transform: translateY(1px); }
.cx-allmap__toggle:focus-visible { outline: 2px solid var(--bp-accent, #e8622c); outline-offset: 2px; }
.cx-allmap__box { height: clamp(320px, 55vh, 560px); margin-top: 12px; border: 1px solid #d5dde5; border-radius: 14px; overflow: hidden; background: #e3e7ec; }
.cx-allmap__box[hidden] { display: none; }
.cx-allmap__pop { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 3px; color: #14283c !important; text-decoration: none !important; }
.cx-allmap__pop img { width: 100%; height: 120px; margin-bottom: 6px; border-radius: 8px; object-fit: cover; }
.cx-allmap__pop b { font-size: 1rem; line-height: 1.25; }
.cx-allmap__pop:hover b { text-decoration: underline; }
.cx-allmap__pop span { font-size: .85rem; color: #4b5b6b; }
.cx-allmap__pop .cx-allmap__offers { color: #14283c; font-weight: 600; }

/* Как се променят цените: водещата графика е широка, другите две са под нея */
.cx-trend { margin: 48px 0; }
.cx-trend__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 20px; }
.cx-trend__head h2 { margin: 0 0 8px; }
.cx-trend__head p { max-width: 680px; margin: 0; color: var(--bp-ink-2); line-height: 1.55; }
.cx-trend__ranges { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bp-paper-2); }
.cx-trend__ranges[hidden] { display: none; }
.cx-trend__ranges button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 8px; background: none; color: var(--bp-ink-2); font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.cx-trend__ranges button[hidden] { display: none; }
.cx-trend__ranges button:hover { color: var(--bp-ink); }
.cx-trend__ranges button[aria-pressed="true"] { background: #fff; color: var(--bp-ink); box-shadow: 0 1px 3px rgba(16, 24, 32, .16); }
.cx-trend__ranges button:focus-visible { outline: 2px solid var(--bp-accent); outline-offset: 1px; }
.cx-trend__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cx-trend__grid[hidden] { display: none; }
.cx-trend__card { min-width: 0; margin: 0; padding: 20px 20px 12px; border: 1px solid var(--bp-line); border-radius: var(--bp-radius); background: #fff; }
.cx-trend__card[hidden] { display: none; }
.cx-trend__card--sale_sqm { grid-column: 1 / -1; box-shadow: var(--bp-shadow); }
.cx-trend__card figcaption { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: baseline; margin-bottom: 10px; }
.cx-trend__name { grid-column: 1 / -1; font-size: .9rem; color: var(--bp-ink-2); }
.cx-trend__value { font-size: 1.45rem; line-height: 1.2; color: var(--bp-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cx-trend__card--sale_sqm .cx-trend__value { font-size: 2.1rem; }
.cx-trend__delta { font-size: .86rem; font-weight: 600; color: var(--bp-ink-2); text-align: right; }
.cx-trend__plot { position: relative; width: 100%; touch-action: pan-y; border-radius: 8px; }
.cx-trend__plot:focus-visible { outline: 2px solid var(--bp-accent); outline-offset: 3px; }
.cx-trend__plot svg { display: block; max-width: 100%; }
.cx-trend__grid-line { stroke: var(--bp-line); stroke-width: 1; }
.cx-trend__tick { fill: var(--bp-ink-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.cx-trend__line { fill: none; stroke: var(--bp-accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.cx-trend__line--est { stroke-width: 2; stroke-dasharray: 2 6; }
.cx-trend__area { fill: var(--bp-accent); fill-opacity: .08; }
.cx-trend__dot { fill: var(--bp-accent); stroke: #fff; stroke-width: 2; }
.cx-trend__cross { stroke: var(--bp-ink-3); stroke-width: 1; stroke-dasharray: 3 3; }
.cx-trend__tip { position: absolute; z-index: 2; display: flex; flex-direction: column; gap: 1px; padding: 8px 11px; border-radius: 8px; background: #14283c; color: #fff; font-size: .8rem; line-height: 1.35; white-space: nowrap; pointer-events: none; }
.cx-trend__tip[hidden] { display: none; }
.cx-trend__tip b { font-size: .95rem; }
.cx-trend__tip em { font-style: normal; opacity: .75; }
.cx-trend__empty { margin: 0; padding: 40px 0; text-align: center; color: var(--bp-ink-3); }
.cx-trend__note { display: none; margin: 12px 0 0; font-size: .86rem; color: var(--bp-ink-3); }
.cx-trend.has-estimated .cx-trend__note { display: block; }
.cx-trend__data { margin-top: 12px; }
.cx-trend__data summary { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; cursor: pointer; }
@media (max-width: 720px) {
  .cx-trend__grid { grid-template-columns: minmax(0, 1fr); }
  .cx-trend__card { padding: 16px 14px 8px; }
  .cx-trend__card--sale_sqm .cx-trend__value { font-size: 1.75rem; }
  .cx-trend__delta { grid-column: 1 / -1; text-align: left; }
  .cx-trend__ranges { width: 100%; }
  .cx-trend__ranges button { flex: 1; }
}

/* Докато няма достатъчно данни за графика */
.cx-trend--pending h2 { margin: 0 0 16px; }
.cx-trend__pending-card { padding: 20px; border: 1px dashed var(--bp-line); border-radius: var(--bp-radius); background: var(--bp-paper-2); }
.cx-trend__pending-card svg { display: block; width: 100%; height: 40px; margin-bottom: 12px; }
.cx-trend__pending-card line { stroke: var(--bp-ink-3); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.cx-trend__pending-card p { margin: 0; color: var(--bp-ink-2); line-height: 1.55; }
.cx-trend__pending-card b { color: var(--bp-ink); }
/* Абонамент за изгодни цени: тънка лента, полетата и бутонът са на един ред */
.cx-sub { display: grid; gap: 10px; margin-top: 12px; padding: 12px 16px; border: 1px solid var(--bp-line); border-radius: 12px; background: #fafbfb; color: var(--bp-ink); }
.cx-sub__text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.cx-sub__text h3 { margin: 0; font-size: 1rem; line-height: 1.3; color: var(--bp-ink); }
.cx-sub__text p { margin: 0; font-size: .86rem; line-height: 1.35; color: var(--bp-ink-2); }
.cx-sub__fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1.15fr) auto; gap: 8px; }
.cx-sub__fields input[type="text"], .cx-sub__fields input[type="email"], .cx-sub__fields input[type="tel"] { width: 100%; min-height: 38px; padding: 0 11px; border: 1px solid var(--bp-line); border-radius: 8px; background: #fff; color: var(--bp-ink); font-size: .9rem; }
.cx-sub__fields input:focus-visible { outline: 2px solid var(--bp-accent, #e8622c); outline-offset: 1px; }
.cx-sub__send { min-height: 38px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--bp-accent, #e8622c); color: #fff; font-size: .9rem; font-weight: 700; white-space: nowrap; cursor: pointer; transition: filter .15s, transform .15s; }
.cx-sub__send:hover { filter: brightness(1.1); }
.cx-sub__send:active { transform: translateY(1px); }
.cx-sub__send:focus-visible { outline: 2px solid var(--bp-accent, #e8622c); outline-offset: 2px; }
.cx-sub__send:disabled { opacity: .6; cursor: wait; }
.cx-sub__agree { grid-column: 1 / -1; display: flex; gap: 7px; align-items: flex-start; font-size: .78rem; line-height: 1.35; color: var(--bp-ink-2); cursor: pointer; }
.cx-sub__agree input { flex: none; margin-top: 2px; accent-color: var(--bp-accent, #e8622c); }
.cx-sub__msg { grid-column: 1 / -1; margin: 0; font-size: .86rem; font-weight: 600; }
.cx-sub__msg.is-error { color: #b3261e; }
@media (min-width: 1100px) {
  .cx-sub { grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); column-gap: 20px; align-items: center; }
}
@media (max-width: 720px) {
  .cx-sub__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .cx-sub__fields { grid-template-columns: minmax(0, 1fr); }
}

/* Сгради на комплекса: входове, етажи, етажни планове */
.cx-bld { margin: 40px 0; }
.cx-bld h2 { margin-bottom: 16px; }
.cx-bld__building + .cx-bld__building { margin-top: 24px; }
.cx-bld__building h3 { font-size: 1.1rem; margin: 0 0 10px; }
.cx-bld__enter { border: 1px solid var(--bp-line); border-radius: var(--bp-radius); background: var(--bp-paper-2); margin-bottom: 12px; overflow: hidden; }
.cx-bld__enter summary { cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 14px 16px; font-weight: 600; list-style: none; }
.cx-bld__enter summary::-webkit-details-marker { display: none; }
.cx-bld__enter[open] summary { border-bottom: 1px solid var(--bp-line); }
.cx-bld__plans { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 12px 16px 0; }
.cx-bld__plans a, .cx-bld__links a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--bp-line); border-radius: 999px; text-decoration: none; color: inherit; background: #fff; }
.cx-bld__plans a:hover, .cx-bld__links a:hover { border-color: var(--bp-ink-3); }
.cx-bld__floors { width: 100%; border-collapse: collapse; margin: 12px 0 4px; }
.cx-bld__floors th, .cx-bld__floors td { text-align: left; padding: 8px 16px; border-top: 1px solid var(--bp-line); vertical-align: middle; }
.cx-bld__floors thead th { border-top: 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--bp-ink-3); }
.cx-bld__links { display: flex; flex-wrap: wrap; gap: 6px; }
.cx-bld__links a { padding: 2px; border-radius: 6px; font-size: .75rem; font-weight: 700; min-width: 40px; justify-content: center; }
.cx-bld__links img { display: block; width: 56px; height: 40px; object-fit: cover; border-radius: 4px; }
.cx-bld .is-free { color: #1a7f43; }
.cx-bld .is-sold { color: #b3261e; }
@media (max-width: 575px) { .cx-bld__floors th, .cx-bld__floors td { padding: 8px 10px; } }

/* Етап на строителството: кръгчета Акт 14/15/16 над прогрес бар */
.cx-stage { position: relative; margin: clamp(24px, 4vw, 40px) 0; padding-bottom: 34px; }
.cx-stage h2 { margin: 0 0 18px; }
.cx-stage h2 span { color: #d9001b; }
.cx-stage__acts { position: relative; height: 80px; margin: 0 48px 0 0; }
.cx-stage__act { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.cx-stage__act b { order: 1; width: 64px; height: 64px; border: 1px solid #d6d6d6; border-radius: 50%; display: grid; place-items: center; font-size: 30px; font-weight: 300; color: #ccc; background: #fff; }
.cx-stage__act em { position: absolute; right: 100%; top: 50%; margin: -24px 10px 0 0; font-style: normal; font-size: 13px; font-weight: 700; color: #d9001b; }
@media (max-width: 575px) { .cx-stage__act em { position: static; margin: 4px 0 0; order: 2; } }
.cx-stage__act::after { content: ""; order: 3; width: 1px; height: 12px; background: #ddd; }
.cx-stage__act.is-done b { border-color: #18191d; color: #18191d; }
.cx-stage__bar { height: 14px; background: #18191d; border-radius: 3px; overflow: hidden; }
.cx-stage__bar i { display: block; height: 100%; background: #d9001b; border-radius: 0 7px 7px 0; }
.cx-stage__pct { position: absolute; bottom: 0; transform: translateX(-100%); color: #d9001b; font-size: 22px; white-space: nowrap; }
.cx-stage__acts .cx-stage__act[style*="100%"] { transform: translateX(-30%); }
@media (max-width: 575px) { .cx-stage__act b { width: 48px; height: 48px; font-size: 22px; } .cx-stage__acts { height: 80px; } }

/* Броячи: голямо тънко число, вдясно иконка и надпис */
.cx-counters { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 28px 40px; margin: clamp(24px, 4vw, 40px) 0; padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 48px); background: #f7f7f7; }
.cx-counter { display: flex; align-items: flex-end; gap: 12px; }
.cx-counter__num { font-size: clamp(56px, 8vw, 116px); font-weight: 200; line-height: .85; letter-spacing: -.02em; color: #111; font-variant-numeric: tabular-nums; }
.cx-counter__side { display: flex; flex-direction: column; gap: 10px; padding-bottom: 2px; }
.cx-counter__side .material-icons-outlined { font-size: 38px; font-weight: 200; color: #111; }
.cx-counter__side em { font-style: normal; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: #111; }

/* Таблицата с етажите: типове имоти, иконки за плана (снимка -> попъп, PDF -> нов прозорец) и запитване */
.cx-bld__c { text-align: center !important; }
.cx-bld__c .cx-bld__links { justify-content: center; }
.cx-bld__types span { display: inline-block; margin: 2px 4px 2px 0; padding: 2px 9px; border-radius: 999px; background: #fff; border: 1px solid var(--bp-line); font-size: .8rem; white-space: nowrap; }
.cx-bld__links .cx-bld__ico, .cx-bld__ico { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; min-width: 0; padding: 0;
  border: 1.5px solid var(--bp-accent, #e8622c); border-radius: 10px; background: #fff; color: var(--bp-accent, #e8622c); cursor: pointer; text-decoration: none;
  transition: background .15s, color .15s, transform .15s, box-shadow .15s; }
.cx-bld__ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.cx-bld__ico .material-icons-outlined { font-size: 28px; }
.cx-bld__links .cx-bld__ico--pdf, .cx-bld__ico--pdf { width: auto; padding: 0 12px 0 8px; gap: 4px; }
.cx-bld__ico--pdf .material-icons-outlined { font-size: 24px; }
.cx-bld__ico--pdf b { font-size: 15px; font-weight: 800; letter-spacing: .03em; }
.cx-bld__ico--ask:hover { filter: brightness(1.1); }
.cx-bld__links .cx-bld__ico:hover, .cx-bld__ico:hover, .cx-bld__ico:focus-visible { background: var(--bp-accent, #e8622c); color: #fff; border-color: var(--bp-accent, #e8622c); transform: translateY(-1px); box-shadow: 0 4px 12px color-mix(in srgb, var(--bp-accent, #e8622c) 35%, transparent); outline: none; }
.cx-bld__ico--ask { background: var(--bp-accent, #e8622c); color: #fff; }

.cx-plan-pop { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(12,16,20,.82); }
.cx-plan-pop[hidden] { display: none; }
.cx-plan-pop figure { margin: 0; max-width: min(1200px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 10px; }
.cx-plan-pop img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; border-radius: 10px; background: #fff; }
.cx-plan-pop figcaption { color: #fff; font-weight: 600; text-align: center; }
.cx-plan-pop__close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.cx-plan-pop__close:hover { background: rgba(255,255,255,.3); }
@media (max-width: 700px) {
  .cx-bld__floors thead th:nth-child(2), .cx-bld__floors td.cx-bld__types { display: none; }
  .cx-bld__ico { width: 44px; height: 44px; }
}

/* ---------- цени: диапазон, ДДС, без комисиона, ценова листа, уведомление ---------- */
.cx-prices { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 0 0 24px; padding: 18px 22px;
  border: 1px solid color-mix(in srgb, var(--bp-accent) 22%, #e6e6e6); border-radius: 14px; background: var(--bp-accent-soft); }
.cx-prices__range { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.cx-prices__label { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #667; }
.cx-prices__range b { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); line-height: 1.15; color: #1b1f24; white-space: nowrap; }
.cx-prices__vat { font-size: .95rem; color: #556; }
.cx-prices__nocom { margin: 0; display: inline-flex; align-items: center; gap: 8px;
  color: var(--bp-accent); font-weight: 800; font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); line-height: 1.2; }
.cx-prices__nocom .material-icons-outlined { font-size: 1.3em; }
.cx-prices__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.cx-prices__actions .bp-btn { text-transform: uppercase; }
@media (max-width: 700px) {
  .cx-prices { padding: 16px; }
  .cx-prices__actions { margin-left: 0; width: 100%; }
  .cx-prices__actions { flex-direction: column; }
  /* всички бутони на телефон: цяла ширина, еднакъв шрифт */
  .cx-hero .bp-hero__actions { flex-direction: column; align-items: stretch; }
  .cx-hero .bp-hero__actions > *, .cx-prices__actions .bp-btn {
    width: 100%; box-sizing: border-box; justify-content: center; text-align: center;
    font-size: 1rem; font-weight: 700; letter-spacing: 0; text-transform: none; margin: 0; }
}
.cx-drop { width: min(440px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.cx-drop::backdrop { background: rgba(15,20,25,.55); }
.cx-drop form { position: relative; display: grid; gap: 10px; padding: 26px 22px 22px; }
.cx-drop h3 { margin: 0 28px 0 0; display: flex; align-items: center; gap: 8px; font-size: 1.15rem; }
.cx-drop h3 .material-icons-outlined { color: var(--bp-accent); }
.cx-drop p { margin: 0; color: #556; }
.cx-drop input[type=text], .cx-drop input[type=email], .cx-drop input[type=tel] { width: 100%; padding: 11px 12px; border: 1px solid #d5d8dc; border-radius: 10px; font: inherit; }
.cx-drop input:focus { outline: 2px solid var(--bp-accent); outline-offset: 1px; }
.cx-drop__agree { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; color: #556; }
.cx-drop__send { justify-content: center; }
.cx-drop__close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f1f2f4; cursor: pointer; display: grid; place-items: center; }
.cx-drop__close:hover { background: #e3e5e8; }
.cx-drop__msg { font-weight: 600; color: #0f8a4b; }
.cx-drop__msg.is-error { color: #c0262d; }

/* „Имоти в таблица“ (complexes.ads_view = table): групи по сграда/вход, редове по етаж; на телефон всеки ред е карта */
.cxu__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 18px; padding: 12px 16px; border: 1px solid var(--bp-line); border-radius: var(--bp-radius); background: var(--bp-paper-2); }
.cxu__select { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: .9rem; }
.cxu__select select { padding: 7px 30px 7px 10px; border: 1px solid var(--bp-line); border-radius: 8px; background-color: #fff; font: inherit; }
.cxu__check { display: inline-flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; font-size: .9rem; }
.cxu__check input { width: 18px; height: 18px; accent-color: var(--bp-accent, #e8622c); }
.cxu__count { margin-left: auto; font-size: .85rem; color: var(--bp-ink-3); }
.cxu__group + .cxu__group { margin-top: 28px; }
.cxu__title { font-size: 1.1rem; margin: 0 0 10px; }
.cxu__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cxu__table th, .cxu__table td { padding: 10px 12px; border-top: 1px solid var(--bp-line); text-align: left; vertical-align: middle; }
.cxu__table thead th { border-top: 0; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--bp-ink-3); white-space: nowrap; }
.cxu__table tbody tr:hover { background: var(--bp-paper-2); }
.cxu__table tbody th a { color: inherit; font-weight: 700; }
.cxu__n { text-align: right !important; white-space: nowrap; }
.cxu__c { text-align: center !important; }
.cxu__price { font-weight: 700; }
.cxu__row.is-sold { color: var(--bp-ink-3); }
.cxu__row.is-sold .cxu__price { font-weight: 400; }
.cxu__badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.cxu__badge--free { background: #e3f4ea; color: #1a7f43; }
.cxu__badge--reserved { background: #fff3cd; color: #8a5a00; }
.cxu__badge--sold { background: #ececec; color: #666; }
.cxu__btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1.5px solid var(--bp-accent, #e8622c); border-radius: 9px; background: #fff; color: var(--bp-accent, #e8622c); cursor: pointer; text-decoration: none; transition: background-color .15s, color .15s; }
.cxu__btn:hover, .cxu__btn:focus-visible { background: var(--bp-accent, #e8622c); color: #fff; }
.cxu__btn .material-icons-outlined { font-size: 22px; }
.cxu__empty { padding: 24px; text-align: center; color: var(--bp-ink-3); }
@media (max-width: 767px) {
  .cxu__count { margin-left: 0; width: 100%; }
  .cxu__table thead { display: none; }
  .cxu__table, .cxu__table tbody { display: block; }
  .cxu__table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-bottom: 12px; padding: 12px 14px; border: 1px solid var(--bp-line); border-radius: var(--bp-radius); background: #fff; }
  .cxu__table tr[hidden] { display: none; }
  .cxu__table th, .cxu__table td { display: flex; flex-direction: column; gap: 2px; padding: 0; border: 0; text-align: left !important; }
  .cxu__table th::before, .cxu__table td::before { content: attr(data-label); font-size: .7rem; font-weight: 400; text-transform: uppercase; letter-spacing: .04em; color: var(--bp-ink-3); }
  .cxu__table tbody th { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 8px; font-size: 1.05rem; }
  .cxu__table td.cxu__c { flex-direction: row; align-items: center; gap: 10px; }
  .cxu__badge { align-self: flex-start; }
}

/* Бутоните под името на комплекса: еднаква ширина, текстът на един ред */
.cx-hero .bp-hero__actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 10px; }
.cx-hero .bp-hero__actions > * { width: 100%; justify-content: center; white-space: nowrap; }
@media (max-width: 480px) { .cx-hero .bp-hero__actions { grid-template-columns: 1fr; } }

/* Превключвател „Всички / Само свободни“: плъзгащ се фон, мигаща зелена точка */
.cxu__switch { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 999px; background: #15171c; box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 6px 18px rgba(16,18,24,.18); isolation: isolate; }
.cxu__switch input { position: absolute; opacity: 0; pointer-events: none; }
.cxu__switch label { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 9px 18px; border-radius: 999px; font-size: .88rem; font-weight: 600; letter-spacing: .01em; color: rgba(255,255,255,.62); cursor: pointer; white-space: nowrap; transition: color .3s ease; }
.cxu__switch label b { font-weight: 700; font-size: .78rem; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.1); transition: background-color .3s ease; }
.cxu__switch label:hover { color: #fff; }
.cxu__switch input:checked + label { color: #15171c; }
.cxu__switch input:checked + label b { background: rgba(21,23,28,.08); }
.cxu__switch input:focus-visible + label { outline: 2px solid var(--bp-accent, #e8622c); outline-offset: 2px; }
.cxu__thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: linear-gradient(180deg, #fff 0%, #ece7dc 100%); box-shadow: 0 2px 10px rgba(0,0,0,.25), inset 0 -1px 0 rgba(0,0,0,.06); transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
#cxuFree:checked ~ .cxu__thumb { transform: translateX(100%); }
.cxu__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,.9); animation: cxuBlink 1.6s ease-in-out infinite; }
.cxu__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #22c55e; opacity: 0; animation: cxuRing 1.6s ease-out infinite; }
@keyframes cxuBlink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes cxuRing { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cxu__dot, .cxu__dot::after { animation: none; } .cxu__thumb { transition: none; } }
@media (max-width: 480px) { .cxu__switch { width: 100%; } .cxu__switch label { padding: 9px 10px; } }
/* ---------- „За комплекса“ + дясна колона (complex_side.html) ---------- */
.cx-aboutgrid { display: grid; grid-template-columns: minmax(0, 820px) minmax(340px, 400px); gap: 40px; align-items: start; justify-content: space-between; margin: 0 0 36px; }
.cx-aboutgrid > .bp-about { margin: 0; }
.cx-aboutgrid--side-only { grid-template-columns: minmax(0, 400px); }
.cx-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 14px; }
.cx-side__facts, .cx-side__broker { margin: 0; padding: 18px 20px; border: 1px solid var(--bp-line, #e3e7ec); border-radius: 16px; background: #fff; box-shadow: 0 10px 30px -18px rgba(16, 24, 40, .25); }
.cx-side__facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--bp-line, #e3e7ec); }
.cx-side__facts > div:first-child { padding-top: 0; }
.cx-side__facts > div:last-child { padding-bottom: 0; border-bottom: 0; }
.cx-side__facts dt { color: var(--bp-ink-3, #667); font-weight: 500; font-size: .9rem; }
.cx-side__facts dd { margin: 0; font-weight: 700; text-align: right; }
.cx-side__price { color: var(--bp-accent, #e8622c); font-size: 1.15rem; white-space: nowrap; }
.cx-side__price small { font-size: .8rem; font-weight: 600; }
.cx-side__builder { align-items: center !important; }
.cx-side__builder a { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.cx-side__builder a:hover span { color: var(--bp-accent, #e8622c); text-decoration: underline; }
.cx-side__builder img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--bp-line, #e3e7ec); }
.cx-side__who { display: flex; align-items: center; gap: 14px; }
.cx-side__who > div { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.cx-side__who small { color: var(--bp-ink-3, #667); font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.cx-side__who b { font-size: 1.05rem; }
.cx-side__who a { color: inherit; text-decoration: none; }
.cx-side__who a:hover b { color: var(--bp-accent, #e8622c); }
.cx-side__who span { color: var(--bp-ink-3, #667); font-size: .9rem; overflow-wrap: anywhere; }
.cx-side__photo { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; background: #f2f4f7; }
.cx-side__photo--logo { display: flex; align-items: center; justify-content: center; padding: 8px; border: 1px solid var(--bp-line, #e3e7ec); background: #fff; }
.cx-side__photo--logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cx-side__acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.cx-side__acts .bp-btn { justify-content: center; min-width: 0; }
.cx-side__acts .bp-btn:only-child { grid-column: 1 / -1; }
.cx-side__map { position: relative; display: block; height: 190px; border-radius: 16px; overflow: hidden; border: 1px solid var(--bp-line, #e3e7ec); }
.cx-side__mapbox { position: absolute; inset: 0; pointer-events: none; }
.cx-side__maplabel { position: absolute; left: 10px; bottom: 10px; z-index: 500; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff; color: #1d2633; font-size: .82rem; font-weight: 700; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); transition: transform .15s; }
.cx-side__maplabel .material-icons-outlined { font-size: 16px; color: var(--bp-accent, #e8622c); }
.cx-side__map:hover .cx-side__maplabel, .cx-side__map:focus-visible .cx-side__maplabel { transform: translateY(-2px); }
.cx-side__map:focus-visible { outline: 2px solid var(--bp-accent, #e8622c); outline-offset: 3px; }
@media (max-width: 991.98px) {
  .cx-aboutgrid, .cx-aboutgrid--side-only { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cx-side { position: static; }
}

/* Стрелките в попъпа с етажния план (cx_plans.js) */
.cx-plan-pop__nav { position: absolute; top: 50%; z-index: 1; width: 52px; height: 52px; margin-top: -26px; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; transition: background .15s, transform .15s; }
.cx-plan-pop__nav:hover, .cx-plan-pop__nav:focus-visible { background: var(--bp-accent, #e8622c); transform: scale(1.06); outline: none; }
.cx-plan-pop__nav--prev { left: 18px; }
.cx-plan-pop__nav--next { right: 18px; }
.cx-plan-pop__nav[hidden] { display: none; }
.cx-plan-pop__count { opacity: .7; font-weight: 500; }
@media (max-width: 767.98px) {
  .cx-plan-pop { padding: 24px 8px 70px; }
  .cx-plan-pop__nav { top: auto; bottom: 14px; margin-top: 0; width: 46px; height: 46px; }
  .cx-plan-pop__nav--prev { left: calc(50% - 56px); }
  .cx-plan-pop__nav--next { right: calc(50% - 56px); }
}

/* Лентата над таблицата: три еднакви контрола - светла „писта“ с бял избран бутон. Компактно, с подреждане:
   ред 1 - типовете (на телефон се плъзгат настрани), ред 2 - статус и подреждане, броячът вдясно. */
.cxu__filters { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 12px 14px; padding: 14px 16px; }
.cxu__filters > .cxu__seg--types { grid-column: 1 / -1; }
.cxu__count { justify-self: end; margin: 0; }
.cxu__seg, .cxu__switch { position: relative; display: inline-flex; flex-wrap: nowrap; gap: 2px; max-width: 100%; padding: 3px; border-radius: 12px; background: rgba(20,22,28,.06); box-shadow: inset 0 0 0 1px rgba(20,22,28,.05); overflow-x: auto; scrollbar-width: none; isolation: auto; grid-auto-flow: initial; }
.cxu__seg::-webkit-scrollbar { display: none; }
.cxu__seg input, .cxu__switch input { position: absolute; opacity: 0; pointer-events: none; }
.cxu__seg label, .cxu__switch label { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; margin: 0; padding: 7px 14px; border-radius: 9px; font-size: .86rem; font-weight: 600; line-height: 1.2; color: var(--bp-ink-3, #6b6f78); background: transparent; cursor: pointer; white-space: nowrap; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.cxu__seg label:hover, .cxu__switch label:hover { color: var(--bp-ink, #15171c); }
.cxu__seg input:checked + label, .cxu__switch input:checked + label { color: var(--bp-ink, #15171c); background: #fff; box-shadow: 0 1px 3px rgba(20,22,28,.12), 0 0 0 1px rgba(20,22,28,.04); }
.cxu__seg input:focus-visible + label, .cxu__switch input:focus-visible + label { outline: 2px solid var(--bp-accent, #e8622c); outline-offset: 1px; }
.cxu__switch label b { padding: 0 6px; border-radius: 6px; font-size: .75rem; background: rgba(20,22,28,.07); }
.cxu__switch input:checked + label b { background: var(--bp-accent, #e8622c); color: #fff; }
.cxu__thumb { display: none; }
.cxu__sortwrap { display: inline-flex; align-items: center; gap: 8px; }
.cxu__lbl { font-size: .84rem; color: var(--bp-ink-3, #6b6f78); }
@media (max-width: 640px) {
  .cxu__filters { grid-template-columns: 1fr; padding: 12px; }
  .cxu__seg--types { margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 0; background: none; box-shadow: none; }
  .cxu__seg--types label { background: rgba(20,22,28,.06); }
  .cxu__seg--types { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .cxu__switch, .cxu__sortwrap .cxu__seg { width: 100%; }
  .cxu__switch label, .cxu__sortwrap .cxu__seg label { flex: 1; justify-content: center; }
  .cxu__sortwrap { width: 100%; } .cxu__sortwrap .cxu__seg { flex: 1; }
  .cxu__count { justify-self: start; }
}

/* ==================================================================
   Дизайни на страницата на комплекса (complexes.page_layout)
   cover  - пълномащабна корица-слайдър от край до край
   mosaic - мозайка от край до край веднага под трохите
   ================================================================== */
.cx-layout-cover { padding-top: clamp(28px, 3vw, 44px); }
.cx-layout-mosaic { padding-top: clamp(20px, 2.4vw, 32px); }

/* ---------- корица ---------- */
.cx-cover, .cx-mosaicwrap { --bp-accent: var(--accent, var(--brand-accent, #c8743c)); --bp-accent-soft: color-mix(in srgb, var(--bp-accent) 9%, #fff); --bp-ink: var(--ink, #1f1b2d); --bp-ink-2: var(--ink-2, #4b5560); --bp-ink-3: var(--ink-3, #8795a0); --bp-line: var(--line, #e6eaed); --bp-radius: var(--radius-lg, 16px); }
.cx-cover .material-icons-outlined { font-size: 1.15em; vertical-align: -.18em; }
.cx-cover { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(540px, 88vh, 940px); color: #fff; overflow: hidden; background: #0d0f13; isolation: isolate; }
.cx-cover__slides, .cx-cover__slide, .cx-cover__shade { position: absolute; inset: 0; margin: 0; }
.cx-cover__slides { z-index: -2; }
.cx-cover__slide { opacity: 0; transition: opacity 1.4s cubic-bezier(.4, 0, .2, 1); }
.cx-cover__slide.is-on { opacity: 1; }
.cx-cover__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 9s cubic-bezier(.2, .6, .3, 1); }
.cx-cover__slide.is-on img { transform: scale(1); }
.cx-cover__shade { z-index: -1; background:
  linear-gradient(180deg, rgba(8,10,14,.55) 0%, rgba(8,10,14,0) 22%),
  linear-gradient(0deg, rgba(8,10,14,.86) 0%, rgba(8,10,14,.35) 38%, rgba(8,10,14,0) 62%),
  linear-gradient(90deg, rgba(8,10,14,.45) 0%, rgba(8,10,14,0) 55%); }
.cx-cover__inner { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding-top: clamp(22px, 3vw, 40px); }
.cx-cover .bp-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: .86rem; color: rgba(255,255,255,.7); }
.cx-cover .bp-crumbs li + li::before { content: '/'; margin-right: 6px; color: rgba(255,255,255,.35); }
.cx-cover .bp-crumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.cx-cover .bp-crumbs a:hover { color: #fff; }
.cx-cover__head { max-width: 920px; padding-bottom: clamp(18px, 2.5vw, 30px); animation: cxCoverIn 1s .15s cubic-bezier(.2, .7, .2, 1) both; }
.cx-cover__place { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: .85rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.cx-cover__title { margin: 0 0 22px; color: #fff; font-size: clamp(2.6rem, 1.2rem + 5.4vw, 6rem); line-height: .98; letter-spacing: -.035em; font-weight: 800; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.cx-cover__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cx-cover__actions .bp-btn--ghost, .cx-cover__actions button.bp-btn:not(.bp-btn--primary):not(.bp-btn--accent) {
  color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.cx-cover__actions .bp-btn--ghost:hover, .cx-cover__actions button.bp-btn:not(.bp-btn--primary):not(.bp-btn--accent):hover { background: rgba(255,255,255,.22); color: #fff; }
.cx-cover__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 16px; padding-bottom: 22px; border-top: 1px solid rgba(255,255,255,.18); font-size: .9rem; }
.cx-cover__count { font-variant-numeric: tabular-nums; color: rgba(255,255,255,.7); letter-spacing: .06em; }
.cx-cover__count b { color: #fff; font-size: 1.05rem; }
.cx-cover__progress { flex: 0 1 160px; height: 2px; background: rgba(255,255,255,.22); border-radius: 2px; overflow: hidden; }
.cx-cover__progress i { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.cx-cover__nav { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; cursor: pointer; transition: background-color .2s, color .2s; }
.cx-cover__nav:hover { background: #fff; color: #111; }
.cx-cover__all { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background-color .2s; }
.cx-cover__nav[data-cover-next] { margin-right: auto; }
.cx-cover__all:hover { background: rgba(255,255,255,.24); color: #fff; }
.cx-cover__down { display: none; }
.cx-cover :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@keyframes cxCoverIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) {
  .cx-cover { min-height: 86svh; }
  .cx-cover__title { margin-bottom: 16px; }
  .cx-cover__actions { flex-direction: column; align-items: stretch; }
  .cx-cover__actions > * { width: 100%; justify-content: center; }
  .cx-cover__bar { gap: 10px; }
  .cx-cover__progress { display: none; }
  .cx-cover__nav { width: 38px; height: 38px; }
  .cx-cover__nav[data-cover-next] { margin-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cx-cover__slide, .cx-cover__slide img { transition: none; }
  .cx-cover__slide img { transform: none; }
  .cx-cover__head { animation: none; }
}

/* ---------- мозайка ---------- */
.cx-mosaicwrap { position: relative; }
.cx-crumbs-top { padding-top: clamp(20px, 2.6vw, 32px); padding-bottom: 14px; }
.cx-crumbs-top .bp-crumbs { margin: 0; }
.cx-mosaic { position: relative; display: grid; gap: 6px; height: clamp(380px, 64vh, 720px); grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.cx-mosaic--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.cx-mosaic--2 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr; }
.cx-mosaic--3 { grid-template-columns: 2fr 1fr; }
.cx-mosaic--4 { grid-template-columns: 2fr 1fr 1fr; }
.cx-mosaic__tile { position: relative; padding: 0; border: 0; overflow: hidden; background: #e9e6e0; cursor: zoom-in; }
.cx-mosaic__tile:first-child { grid-row: 1 / -1; }
.cx-mosaic--4 .cx-mosaic__tile:nth-child(2) { grid-column: 2 / 4; }
.cx-mosaic__tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1), filter .4s; }
.cx-mosaic__tile:hover img { transform: scale(1.04); filter: brightness(1.04); }
.cx-mosaic__tile:focus-visible { outline: 3px solid var(--accent, #e8622c); outline-offset: -3px; }
.cx-mosaic__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10,12,16,.48); color: #fff; font-size: clamp(1.6rem, 1rem + 2vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; }
.cx-mosaic__all { position: absolute; right: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 999px; background: rgba(255,255,255,.94); color: #15171c; font: inherit; font-weight: 700; font-size: .9rem; box-shadow: 0 8px 26px rgba(0,0,0,.22); cursor: pointer; transition: transform .2s; }
.cx-mosaic__all:hover { transform: translateY(-2px); }
.cx-mosaic__all b { padding: 0 7px; border-radius: 6px; background: rgba(20,22,28,.08); font-size: .8rem; }
@media (max-width: 700px) {

  .cx-mosaic { display: flex; height: 64vw; min-height: 260px; gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .cx-mosaic::-webkit-scrollbar { display: none; }
  .cx-mosaic__tile { flex: 0 0 88%; scroll-snap-align: start; }
  .cx-mosaic__more { display: none; }
}

/* ---------- снимките в цял екран ---------- */
.cx-lb { position: fixed; inset: 0; z-index: 1600; display: grid; place-items: center; background: rgba(8,9,12,.94); }
.cx-lb[hidden] { display: none; }
.cx-lb img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.cx-lb__close, .cx-lb__nav { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.cx-lb__close { top: 18px; right: 18px; }
.cx-lb__nav { top: 50%; translate: 0 -50%; font-size: 34px; }
.cx-lb__nav--prev { left: 18px; }
.cx-lb__nav--next { right: 18px; }
.cx-lb__close:hover, .cx-lb__nav:hover { background: #fff; color: #111; }
.cx-lb.is-single .cx-lb__nav { display: none; }
.cx-lb__count { position: absolute; bottom: 20px; left: 50%; translate: -50% 0; color: rgba(255,255,255,.75); font-size: .9rem; letter-spacing: .08em; }
@media (max-width: 700px) { .cx-lb__nav { top: auto; bottom: 10px; translate: none; width: 42px; height: 42px; } }
.cx-layout-mosaic .cx-hero { margin-bottom: clamp(28px, 4vw, 52px); }  /* без галерията под бутоните дясната колона иначе ги допира */

/* ---------- няма оферти: тънка лента вместо голямо празно поле ----------
   Голямото пунктирано поле (общото .bp-empty) с иконата в средата правеше
   страницата на нов комплекс без снимки и обяви да изглежда счупена. */
.bp-offers .cx-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 16px; padding: 18px 22px;
  border: 1px solid var(--bp-line); border-radius: 14px; background: var(--bp-paper-2, #f6f7f9); text-align: left; }
.bp-offers .cx-empty .material-icons-outlined { display: inline-block; margin: 0; font-size: 2rem; color: var(--bp-accent); }
.bp-offers .cx-empty p { margin: 0; }
.bp-offers .cx-empty p:first-of-type { flex: 1 1 320px; }
.bp-offers .cx-empty .bp-btn .material-icons-outlined { font-size: 1.2em; color: inherit; }
@media (max-width: 700px) {
  .bp-offers .cx-empty { flex-direction: column; align-items: flex-start; }
  .bp-offers .cx-empty p:first-of-type { flex: 0 0 auto; }
}
/* без снимки и без цени заглавието „За комплекса“ лепнеше за бутоните горе */
.cx-hero + .cx-aboutgrid, .cx-hero + .bp-offers, .cx-hero + .cx-counters { margin-top: clamp(20px, 3vw, 32px); }
