/* BPP_PROPERTY_SPECIFICATIONS_DISPLAY_REFINEMENT_V2_1
 * Additive frontend refinement only.
 * Header/footer/global typography/contact actions are intentionally untouched.
 */

/* ==========================================================
   Shared Grid/List/Profile property specification row
   ========================================================== */

[data-bpp-spec-runtime-v2] {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 5px 12px !important;
    min-height: 20px !important;
    margin-top: 7px !important;
    margin-bottom: 7px !important;
}

.bpp-spec-runtime-item-v2 {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    min-width: 0 !important;
    color: inherit !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    font-weight: 650 !important;
    white-space: nowrap !important;
}

.bpp-spec-runtime-item-v2__icon {
    width: 15px !important;
    height: 15px !important;
    min-width: 15px !important;
    object-fit: contain !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* ==========================================================
   Property Detail: specifications live inside the existing
   facts row. No detached block above/below the gallery.
   ========================================================== */

.bpp-property-spec-detail-v2,
.rpgpd-v29-specs,
.rpgpd-v302-specs {
    display: none !important;
}

[data-bpp-spec-detail-container-v21] {
    align-items: stretch !important;
}

.bpp-spec-detail-fact-v21 {
    min-width: 0 !important;
}

.bpp-spec-detail-fact-v21__icon-wrap {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
}

.bpp-spec-detail-fact-v21__icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    object-fit: contain !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.bpp-spec-detail-fact-v21__copy {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
    gap: 2px !important;
}

.bpp-spec-detail-fact-v21__copy small {
    display: block !important;
    margin: 0 !important;
    color: #6f7d76 !important;
    font-family: inherit !important;
    font-size: 9px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    letter-spacing: .01em !important;
}

.bpp-spec-detail-fact-v21__copy strong {
    display: block !important;
    margin: 0 !important;
    color: #173a2f !important;
    font-family: inherit !important;
    font-size: 13px !important;
    line-height: 1.15 !important;
    font-weight: 850 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

[data-bpp-spec-legacy-hidden-v2="1"] {
    display: none !important;
}

/* Only used if the live detail template does not expose its normal facts row. */
.bpp-spec-detail-fallback-v21 {
    display: flex !important;
    align-items: stretch !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 10px !important;
}

.bpp-spec-detail-fallback-v21 .bpp-spec-detail-fact-v21 {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 120px !important;
    padding: 9px 11px !important;
    border: 1px solid #e1ebe6 !important;
    border-radius: 10px !important;
    background: #fff !important;
}

/* ==========================================================
   Agency page only: stop the property-card body from stretching
   and creating the large empty vertical gap seen in the review.
   ========================================================== */

body#page-agency-profile
.bpp-search-owner-card-v466[data-bpp-spec-display-ready-v2="1"] {
    height: auto !important;
    min-height: 0 !important;
    align-self: start !important;
}

body#page-agency-profile
.bpp-search-owner-card-v466[data-bpp-spec-display-ready-v2="1"]
.bpp-search-owner-card-v466__body {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
}

body#page-agency-profile
.bpp-search-owner-card-v466[data-bpp-spec-display-ready-v2="1"]
.bpp-search-owner-card-v466__description {
    min-height: 0 !important;
    margin-bottom: 7px !important;
}

body#page-agency-profile
.bpp-search-owner-card-v466[data-bpp-spec-display-ready-v2="1"]
.bpp-search-owner-card-v466__taxonomy {
    min-height: 0 !important;
    margin-bottom: 7px !important;
}

body#page-agency-profile
.bpp-search-owner-card-v466[data-bpp-spec-display-ready-v2="1"]
.bpp-search-owner-card-v466__meta {
    min-height: 0 !important;
    margin-top: 7px !important;
    margin-bottom: 6px !important;
}

body#page-agency-profile
.bpp-search-owner-card-v466[data-bpp-spec-display-ready-v2="1"]
.bpp-search-owner-card-v466__identity {
    min-height: 0 !important;
    margin-top: 7px !important;
    padding-top: 7px !important;
    padding-bottom: 7px !important;
}

/* Do not stretch the listing grid rows just because one card is taller. */
body#page-agency-profile .rpg-storefront__featured-grid,
body#page-agency-profile .rpg-storefront__properties-grid,
body#page-agency-profile [class*="property-grid"] {
    align-items: start !important;
}

/* ==========================================================
   Mobile compaction
   ========================================================== */

@media (max-width: 767px) {
    [data-bpp-spec-runtime-v2] {
        gap: 4px 8px !important;
        min-height: 18px !important;
        margin-top: 5px !important;
        margin-bottom: 5px !important;
    }

    .bpp-spec-runtime-item-v2 {
        gap: 3px !important;
        font-size: 10px !important;
    }

    .bpp-spec-runtime-item-v2__icon {
        width: 13px !important;
        height: 13px !important;
        min-width: 13px !important;
    }

    .bpp-spec-detail-fact-v21__icon {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
    }

    .bpp-spec-detail-fact-v21__copy small {
        font-size: 8.5px !important;
    }

    .bpp-spec-detail-fact-v21__copy strong {
        font-size: 12px !important;
    }

    .bpp-spec-detail-fallback-v21 {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .bpp-spec-detail-fallback-v21 .bpp-spec-detail-fact-v21 {
        min-width: 0 !important;
    }
}

/* ==========================================================
   V2.2 exact live detail overview support
   ========================================================== */

.rpgpd2-overview-grid[data-bpp-spec-detail-container-v21="1"] {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)) !important;
    gap: 10px !important;
    align-items: stretch !important;
}

.rpgpd2-overview-grid[data-bpp-spec-detail-container-v21="1"]
.rpgpd2-overview-item.bpp-spec-detail-fact-v21 {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.rpgpd2-overview-grid[data-bpp-spec-detail-container-v21="1"]
.rpgpd2-overview-item.bpp-spec-detail-fact-v21
.bpp-spec-detail-fact-v21__icon-wrap {
    width: auto !important;
    min-width: 0 !important;
}

@media (max-width: 767px) {
    .rpgpd2-overview-grid[data-bpp-spec-detail-container-v21="1"] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
}


/* BPP_PROPERTY_DETAIL_RAW_BACKEND_SVG_V2_6
 * Quick Overview uses backend SVG files in their native/raw state.
 * No green icon bubble, no recoloring, no pastel icon treatment.
 */
.rpg-property-detail-exact-v2 [data-bpp-spec-detail-container-v21] > .bpp-spec-detail-fact-v21,
.rpg-property-detail-exact-v2 .bpp-spec-detail-fallback-v21 .bpp-spec-detail-fact-v21 {
    min-height: 78px !important;
    padding: 13px !important;
    border: 1px solid #edf2ef !important;
    border-radius: 14px !important;
    background: #fbfcfb !important;
    box-shadow: none !important;
    gap: 10px !important;
}
.rpg-property-detail-exact-v2 .bpp-property-detail-overview-svg-v26 {
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    flex: 0 0 20px !important;
    object-fit: contain !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    vertical-align: middle !important;
}
.rpg-property-detail-exact-v2 .bpp-spec-detail-fact-v21__icon-wrap {
    display: contents !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}
