/* BPP Property Search Grid Metadata Dedupe V2.2
   Scope: /properties GRID cards only.
   Purpose:
   - exactly one posted-age item, at far right of location row
   - exactly one listing-status badge, on same row as lister role
   - verified property => Verified Listing only
   - normal property => Active Listing only
   - LIST view untouched
*/

body.rpg-properties-exact-v2 .rpgp2-property-grid
article.bpp-search-owner-card-v466[data-bpp-search-owner-card-v466]
.bpp-search-owner-card-v466__location {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-width: 0 !important;
}

body.rpg-properties-exact-v2 .rpgp2-property-grid
article.bpp-search-owner-card-v466[data-bpp-search-owner-card-v466]
.bpp-search-owner-card-v466__location > span:not(.bpp-grid-meta-v22__posted) {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.rpg-properties-exact-v2 .rpgp2-property-grid
.bpp-grid-meta-v22__posted {
    margin-left: auto !important;
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    white-space: nowrap !important;
    color: #7d8d86 !important;
    font: inherit !important;
    font-size: .92em !important;
    line-height: 1 !important;
}

body.rpg-properties-exact-v2 .rpgp2-property-grid
.bpp-grid-meta-v22__posted svg {
    width: 15px !important;
    height: 15px !important;
    flex: 0 0 15px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

body.rpg-properties-exact-v2 .rpgp2-property-grid
.bpp-grid-meta-v22__role-row {
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
}

body.rpg-properties-exact-v2 .rpgp2-property-grid
.bpp-grid-meta-v22__role-row
.bpp-search-owner-card-v466__role {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.rpg-properties-exact-v2 .rpgp2-property-grid
.bpp-grid-meta-v22__listing-status {
    margin-left: auto !important;
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 24px !important;
    padding: 4px 9px !important;
    border: 1px solid #c8ead9 !important;
    border-radius: 999px !important;
    background: #eaf8f1 !important;
    color: #087b49 !important;
    font: inherit !important;
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

/* Mobile: retain the same single-source metadata but keep it compact. */
@media (max-width: 767.98px) {
    body.rpg-properties-exact-v2 .rpgp2-property-grid
    .bpp-grid-meta-v22__posted {
        gap: 4px !important;
        font-size: 11px !important;
    }

    body.rpg-properties-exact-v2 .rpgp2-property-grid
    .bpp-grid-meta-v22__listing-status {
        min-height: 22px !important;
        padding: 3px 7px !important;
        font-size: 10px !important;
    }
}
