/* BTA33KAR — bta-detail-1.3.css (UI-W2..W4 + W7 project page, 2026-10-14; 1.0-1.2 spent). Unit / project detail pages.
   The "Overview" was a 17-row, two-column striped table (~830px tall). Same markup, same data, shown as a
   responsive grid of fact tiles (label above, value below) — the way big property portals present key facts.
   CSS only; no Blade or data change. Immutable filename: a correction ships as 1.1. */

.detailproject table.table-striped.table-bordered {
    display: block;
    border: 0 !important;
    margin-bottom: 8px;
}
.detailproject table.table-striped.table-bordered > tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.detailproject table.table-striped.table-bordered > tbody > tr {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    background: #f6f8fb !important;
    border: 1px solid #e6ecf3;
    border-radius: 12px;
    padding: 10px 14px;
}
.detailproject table.table-striped.table-bordered > tbody > tr > td,
.detailproject table.table-striped.table-bordered > tbody > tr > th {
    display: block;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    min-width: 0;
    overflow-wrap: anywhere;
}
.detailproject table.table-striped.table-bordered > tbody > tr > :first-child {
    font-size: .78rem;
    color: #5b6876;
    font-weight: 500;
}
.detailproject table.table-striped.table-bordered > tbody > tr > :last-child {
    font-size: .98rem;
    color: #0b2540;
}
.detailproject table.table-striped.table-bordered > tbody > tr > :last-child strong { font-weight: 700; }
@media (min-width: 768px) {
    .detailproject table.table-striped.table-bordered > tbody { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}
@media (min-width: 1200px) {
    .detailproject table.table-striped.table-bordered > tbody { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---- 1.1 (UI-W3, 2026-10-14) ---------------------------------------------------------------- */
/* single-image gallery: blurred backdrop of the same photo instead of an empty band */
.boxsliderdetail .featured-image.bta-has-backdrop { position: relative; overflow: hidden; background: #0b2540; }
.boxsliderdetail .featured-image.bta-has-backdrop::before {
    content: ""; position: absolute; inset: -40px;
    background: var(--bta-gallery-bg) center / cover no-repeat;
    filter: blur(28px) brightness(.75); transform: scale(1.1);
}
.boxsliderdetail .featured-image.bta-has-backdrop > img { position: relative; z-index: 1; }

/* price: the most important number on the page */
.detailproject .pricehouse { font-size: 1.6rem; font-weight: 800; color: #08519b; margin: 4px 0 10px; }
.detailproject .pricehouse .label, .detailproject .pricehouse span[class*="badge"] { font-size: .8rem; vertical-align: middle; }

/* key facts strip */
.bta-keyfacts { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bta-keyfacts li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
    background: #fff; border: 1px solid #e3e9f1; border-radius: 12px; padding: 10px 12px; box-shadow: 0 1px 3px rgba(11,37,64,.05); min-width: 0; }
.bta-keyfacts i { grid-row: 1 / span 2; width: 36px; height: 36px; border-radius: 10px; background: #eef4fb; color: #08519b;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }
.bta-keyfacts .k { font-size: .75rem; color: #5b6876; line-height: 1.2; }
.bta-keyfacts .v { font-size: .98rem; font-weight: 700; color: #0b2540; line-height: 1.3; overflow-wrap: anywhere; }
@media (min-width: 768px) { .bta-keyfacts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .bta-keyfacts { grid-template-columns: repeat(7, minmax(0, 1fr)); max-width: 100%; } }

/* ---- 1.2 (UI-W4) ---------------------------------------------------------------------------- */
/* images pasted into descriptions rendered full width (e.g. 1086x1448): keep them readable, not page-long */
.detailproject .ck-content img {
    max-width: 100%;
    max-height: 520px;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    display: block;
    margin: 12px auto;
    border-radius: 12px;
}

/* ---- 1.3 (UI-W7) project page --------------------------------------------------------------- */
/* Overview + payment info were two columns of "label: value" lines -> the same fact tiles as the unit page */
.detailproject .general .row:has(> .lineheight220) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 12px;
}
.detailproject .general .row:has(> .lineheight220) > .lineheight220 { display: contents; }
.detailproject .general .row:has(> .lineheight220) > .lineheight220 > div {
    display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0;
    background: #f6f8fb; border: 1px solid #e6ecf3; border-radius: 12px; padding: 10px 14px; line-height: 1.35;
}
.detailproject .general .row:has(> .lineheight220) > .lineheight220 > div > span:first-child {
    font-size: .78rem; color: #5b6876; font-weight: 500;
}
.detailproject .general .row:has(> .lineheight220) > .lineheight220 > div > :is(strong, b) {
    font-size: .98rem; color: #0b2540; font-weight: 700; overflow-wrap: anywhere;
}
.detailproject .general .row:has(> .lineheight220) > .col-12 { grid-column: 1 / -1; padding: 10px 0 0 !important; margin: 0 !important; }
@media (min-width: 768px) {
    .detailproject .general .row:has(> .lineheight220) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}
@media (min-width: 1200px) {
    .detailproject .general .row:has(> .lineheight220) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* project header price range */
.detailproject .bta-proj-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.detailproject .bta-proj-price .sep { color: #8a97a6; font-weight: 400; }
.detailproject .bgmenupro .bta-keyfacts { margin-top: 6px; }
