.building-detail { padding-bottom: 0; }
.building-detail > .buildings-shell, .bd-specstrip > .buildings-shell { width: calc(100% - 64px); max-width: 1280px; padding-inline: 0; }
.bd-breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; padding-block: 14px; font-size: 11px; line-height: 1.6; color: #626d74; }
.bd-breadcrumb a { color: #59656d; }
.bd-breadcrumb span:last-child { overflow-wrap: anywhere; }
.bd-top { display: grid;    grid-template-columns: minmax(0, 56fr) minmax(0, 44fr);    gap: 24px;    padding-top: 4px;    padding-bottom: 24px; }
.bd-gallery { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 1fr); gap: 6px; height: 360px; min-width: 0; }
.bd-gallery:not(:has(.bd-gallery__side)) { grid-template-columns: minmax(0, 1fr); }
.bd-gallery__stage { position: relative; min-width: 0; min-height: 0; }
.bd-gallery button { border: 0; padding: 0; cursor: pointer; border-radius: 4px; overflow: hidden; background: #e6e2d9; }
.bd-gallery .bd-gallery__main { position: relative; display: block; width: 100%; height: 100%; min-width: 0; }
.bd-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bd-gallery__side { display: grid; grid-template-rows: repeat(var(--bd-visible-thumbs), minmax(0, 1fr)); gap: 6px; min-height: 0; }
.bd-gallery .bd-gallery__thumb { width: 100%; height: 100%; min-height: 0; margin: 0; }
.bd-gallery__thumb[aria-pressed="true"] { box-shadow: inset 0 0 0 3px #bd944d; }
.bd-gallery__thumb[aria-pressed="true"] img { opacity: .76; }
.bd-gallery .bd-gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: #102536b3; color: #fff; font: 26px/1 sans-serif; }
.bd-gallery__nav--prev { left: 10px; }
.bd-inquiry {font-size: 14px;}
.bd-gallery__nav--next { right: 10px; }
.bd-gallery .bd-gallery__nav:hover { background: #102536; }
.bd-gallery__counter { position: absolute; bottom: 14px; left: 14px; color: #fff; background: #102536c9; padding: 6px 10px; border-radius: 3px; font: 12px var(--font-primary); }
.bd-gallery__empty { width: 100%; background: #e8e5de; border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: #907548; }
.bd-gallery__empty svg { width: 70px; height: 70px; }
.bd-summary h1 { margin: 7px 0 11px; font-size: clamp(30px, 2.8vw, 40px); line-height: 1.12; font-weight: 600; overflow-wrap: anywhere; text-wrap: balance; }
.bd-summary > .buildings-eyebrow { font-size: 12px; letter-spacing: .16em; }
.bd-summary .building-card__prices { margin-top: 15px; margin-bottom: 16px; padding-top: 13px; }
.bd-summary .building-card__prices strong { font-size: 24px; }
.bd-location-line { display: flex; align-items: center; gap: 7px; font-size: 13px; line-height: 1.6; color: #5f6970; }
.building-detail svg { flex-shrink: 0; }
.bd-location-line svg { width: 19px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.bd-inquiry { width: 100%; min-height: 46px; padding: 11px 18px; color: #fff; }
.bd-inquiry:hover { background: #b18740; border-color: #b18740; }
.bd-facts { display: flex; flex-wrap: wrap; gap: 18px 24px; margin: 23px 0 0; }
.bd-summary { display: flex; flex-direction: column; min-width: 0; }
.bd-summary > .bd-facts { margin-top: 18px; padding-top: 0px; }
.bd-summary .building-card__prices {
    margin-top: 12px;
    margin-bottom: 12px;
    padding-top: 12px;
}

.bd-summary h1 {
    margin-bottom: 8px;
}
.bd-facts > div { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 10px; row-gap: 4px; font-size: 13px; }
.bd-facts svg { grid-row: span 2; width: 27px; height: 30px; fill: none; stroke: #a47c3c; stroke-width: 1.3; align-self: center; }
.bd-facts dt { color: #5c666b; }
.bd-facts dd { margin: 0; font-weight: 600; }
.bd-section { padding-block: 24px; }
.building-detail .bd-section h2 { margin-top: 7px; margin-bottom: 16px; font-size: clamp(27px, 2.5vw, 34px); line-height: 1.15; }
.bd-about { display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); gap: 24px; align-items: start; }
.bd-about:has(> div:only-child) { grid-template-columns: minmax(0, 850px); }
.bd-about__image { display: block; width: 100%; height: 360px; max-height: 400px; object-fit: cover; border-radius: 4px; }
.bd-description { font-size: 15px; line-height: 1.6; color: #515e66; overflow-wrap: anywhere; }
.bd-description.is-collapsed { max-height: 232px; overflow: hidden; mask-image: linear-gradient(#000 88%, transparent); }
.bd-read-more { display: inline-block; margin-top: 8px; padding: 0; border: 0; background: transparent; color: #886328; font: 600 13px/1.6 var(--font-primary); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.bd-read-more[hidden] { display: none; }
.bd-read-more:focus-visible { outline: 2px solid #a47c3c; outline-offset: 4px; }
.building-detail .bd-description p + p { margin-top: 12px; }
.bd-address { font-size: 14px; line-height: 1.65; color: #515e66; overflow-wrap: anywhere; }
.bd-outline { display: inline-flex; gap: 18px; align-items: center; border: 1px solid #b68d48; padding: 10px 16px; color: #8a6428; border-radius: 3px; margin-top: 17px; font-size: 12px; }
.bd-specstrip { padding-block: 16px; background: #eeebe4; }
.bd-facts--strip { margin: 0; gap: 16px 28px; }
.bd-facts--strip > div { min-width: 150px; }
.bd-facts--strip > div + div { border-left: 1px solid #dcd5c8; padding-left: 28px; }
.bd-text-features { margin-top: 14px; border-top: 1px solid #ddd6c9; padding-top: 12px; font-size: 13px; line-height: 1.6; color: #515e66; }
.bd-text-features:only-child { margin-top: 0; border-top: 0; padding-top: 0; }
.bd-text-features summary { cursor: pointer; color: #73572b; font-weight: 600; width: fit-content; }
.bd-text-features ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; padding-left: 18px; margin: 14px 0 0; }
.bd-text-features li { overflow-wrap: anywhere; }
.bd-text-features li::marker { color: #a47c3c; }
.bd-map-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; align-items: start; }
.bd-map-section:has(.bd-map):has(.bd-nearby-panel) { grid-template-columns: minmax(0, 30fr) minmax(0, 38fr) minmax(0, 32fr); }
.bd-map { width: 100%; height: 250px; border: 0; border-radius: 4px; background: #e7e4dd; }
.building-detail .bd-nearby-panel h2 { margin: 0 0 12px; font-family: var(--font-primary); font-size: 11px; line-height: 1.7; font-weight: 600; letter-spacing: .16em; color: #9d7334; text-transform: uppercase; }
.bd-nearby { display: flex; flex-direction: column; gap: 0; padding: 0; margin: 0; list-style: none; }
.bd-nearby svg { width: 23px; height: 25px; flex: 0 0 23px; fill: none; stroke: #a47c3c; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.bd-nearby li { display: flex; align-items: center; gap: 10px; padding-block: 9px; border-bottom: 1px solid #ded8cc; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.bd-properties .properties-results__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bd-properties .property-card { min-width: 0; }
.bd-properties { min-height: 0; padding-top: 24px; padding-bottom: 34px; }
.bd-message { padding-block: 24px; line-height: 1.8; color: #5e6a72; }
.buildings-index .property-lightbox__close { font-size: 30px; }
.buildings-index .property-lightbox__arrow { font-size: 38px; }
.building-detail a:focus-visible, .bd-gallery button:focus-visible { outline: 3px solid #a47c3c; outline-offset: 4px; }
/* Компактна информационна колона */
.bd-summary {
    justify-content: flex-start;
}

.bd-summary .building-card__prices {
    margin-top: 10px;
    margin-bottom: 10px;
    padding-top: 10px;
}

.bd-inquiry {
    margin-top: 0;
}

.bd-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 12px;
    margin-top: 22px;
}

.bd-highlight {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #26313a;
}

.bd-highlight__icon {
    flex-shrink: 0;
    width: 28px;
    font-size: 26px;
    line-height: 1;
    color: #b78b42;
}

@media (max-width: 480px) {
    .bd-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1023px) {
    .bd-top { grid-template-columns: minmax(0, 1fr); }
    .bd-gallery { height: 380px; }
    .bd-summary > .bd-facts { margin-top: 0; }
    .bd-properties .properties-results__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bd-map-section:has(.bd-map):has(.bd-nearby-panel) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bd-nearby-panel { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .building-detail > .buildings-shell, .bd-specstrip > .buildings-shell { width: calc(100% - 40px); }
    .bd-top { gap: 25px; }
    .bd-gallery { height: auto; grid-template-columns: minmax(0, 1fr); }
    .bd-gallery__stage { aspect-ratio: 4/3; }
    .bd-gallery__side { grid-template-rows: 70px; grid-template-columns: repeat(var(--bd-visible-thumbs), minmax(0, 1fr)); }
    .bd-gallery .bd-gallery__thumb { height: 70px; }
    .bd-gallery__empty { aspect-ratio: 4/3; }
    .bd-summary h1 { font-size: 32px; }
    .bd-section { padding-block: 25px; }
    .bd-about, .bd-map-section, .bd-map-section:has(.bd-map):has(.bd-nearby-panel) { grid-template-columns: minmax(0, 1fr); gap: 23px; }
    .bd-about__image { height: auto; max-height: 260px; }
    .bd-map { height: 230px; }
    .bd-facts { gap: 16px; }
    .bd-text-features ul, .bd-properties .properties-results__grid { grid-template-columns: minmax(0, 1fr); }
    .bd-facts--strip > div { min-width: 0; }
    .bd-facts--strip > div + div { padding-left: 16px; }
}
.bd-highlight__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    color: #b78b42;
}

.bd-highlight__icon svg {
    display: block;
    width: 26px;
    height: 26px;
}

.bd-highlight__text {
    min-width: 0;
    line-height: 1.4;
}

.building-about-image-field .building-about-image-upload {
    display: flex;
    min-height: 150px;
}

.building-about-image-field .building-about-image-upload input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.building-about-image-field .building-about-image-remove {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.building-about-image-field .building-about-image-remove input[type="checkbox"] {
    appearance: auto;
    -webkit-appearance: checkbox;
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin: 0;
    accent-color: #c79b48;
}
/* Бутон "Свържете се с нас" - секция "За сградата" */

.bd-about .bd-outline {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    min-width: 190px;
    min-height: 46px;
    padding: 12px 18px;

    background: transparent;
    border: 1px solid #c59b50;
    border-radius: 4px;
    color: #a77b34;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;

    transition:
        background-color .25s ease,
        border-color .25s ease,
        color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.bd-about .bd-outline:hover {
    background: #c59b50;
    border-color: #c59b50;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(197, 155, 80, .2);
}

.bd-about .bd-outline span {
    display: inline-block;
    transition: transform .25s ease;
}

.bd-about .bd-outline:hover span {
    transform: translateX(5px);
}

.bd-about .bd-outline:focus-visible {
    outline: 2px solid #c59b50;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .bd-about .bd-outline,
    .bd-about .bd-outline span {
        transition: none;
    }
}


/* =========================================
   ИНФОРМАЦИЯ ЗА СГРАДАТА — 5 ХАРАКТЕРИСТИКИ
========================================= */

.bd-specstrip {
    background: #eeebe5;
    padding: 24px 0;
}

.bd-specstrip .bd-facts--strip {
    display: grid;
    grid-template-columns: 1fr 1fr 1.45fr 0.85fr 1.15fr;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
}

.bd-specstrip .bd-facts--strip > div {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: 14px;
    row-gap: 4px;
    min-width: 0;
    padding: 8px 20px;
    border-right: 1px solid #d8d0c4;
}

.bd-specstrip .bd-facts--strip > div:first-child {
    padding-left: 0;
}

.bd-specstrip .bd-facts--strip > div:last-child {
    padding-right: 0;
    border-right: 0;
}

.bd-specstrip .bd-facts--strip svg {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    width: 28px;
    height: 28px;
    color: #b88337;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
    flex-shrink: 0;
}

.bd-specstrip .bd-facts--strip dt {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    color: #667078;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 400;
}

.bd-specstrip .bd-facts--strip dd {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    color: #17283b;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* Таблет */
@media (max-width: 1100px) {
    .bd-specstrip .bd-facts--strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 18px;
    }

    .bd-specstrip .bd-facts--strip > div {
        padding: 12px 16px;
    }

    .bd-specstrip .bd-facts--strip > div:first-child {
        padding-left: 16px;
    }

    .bd-specstrip .bd-facts--strip > div:nth-child(3) {
        border-right: 0;
    }
}

/* Телефон */
@media (max-width: 650px) {
    .bd-specstrip {
        padding: 18px 0;
    }

    .bd-specstrip .bd-facts--strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 0;
    }

    .bd-specstrip .bd-facts--strip > div {
        grid-template-columns: 25px minmax(0, 1fr);
        column-gap: 10px;
        padding: 15px 10px;
        border-bottom: 1px solid #d8d0c4;
    }

    .bd-specstrip .bd-facts--strip > div:first-child {
        padding-left: 10px;
    }

    .bd-specstrip .bd-facts--strip > div:nth-child(3) {
        border-right: 1px solid #d8d0c4;
    }

    .bd-specstrip .bd-facts--strip > div:nth-child(even) {
        border-right: 0;
    }

    .bd-specstrip .bd-facts--strip > div:last-child {
        border-bottom: 0;
    }

    .bd-specstrip .bd-facts--strip svg {
        width: 24px;
        height: 24px;
    }

    .bd-specstrip .bd-facts--strip dt {
        font-size: 12px;
    }

    .bd-specstrip .bd-facts--strip dd {
        font-size: 13px;
    }
}
