/*
======================================================================
BPP AGENCY PROFILE V4.5.6 — PROPERTY CARD AGENCY IDENTITY
Scope: Agency Profile Detail page only
Root: body#page-agency-profile .rpg-storefront
======================================================================
*/

body#page-agency-profile .rpg-storefront .property-item > .archive-bottom{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:10px!important;
    padding:10px 12px!important;
    border-top:1px solid #e6eee9!important;
    background:#fff!important;
}

/* Override older Agency responsive rule that hid the identity row. */
body#page-agency-profile .rpg-storefront .property-item .property-card-agent{
    min-width:0!important;
    display:flex!important;
    align-items:center!important;
    gap:9px!important;
    visibility:visible!important;
    opacity:1!important;
}

body#page-agency-profile .rpg-storefront .property-item .property-card-agent .avatar{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    flex:0 0 38px!important;
    display:grid!important;
    place-items:center!important;
    overflow:hidden!important;
    border:1px solid #d9e7df!important;
    border-radius:50%!important;
    background:#eef8f2!important;
    box-shadow:0 3px 9px rgba(10,70,48,.055)!important;
}

body#page-agency-profile .rpg-storefront .property-item .property-card-agent .avatar img{
    width:100%!important;
    height:100%!important;
    display:block!important;
    object-fit:cover!important;
    object-position:center!important;
    border-radius:50%!important;
    background:#fff!important;
}

body#page-agency-profile .rpg-storefront .property-item .property-card-agent .bpp-agency-card-initial{
    width:100%!important;
    height:100%!important;
    display:grid!important;
    place-items:center!important;
    background:linear-gradient(145deg,#e7f7ee,#d8f1e4)!important;
    color:#087746!important;
    font-family:"Josefin Sans","DM Sans",sans-serif!important;
    font-size:15px!important;
    line-height:1!important;
    font-weight:900!important;
}

body#page-agency-profile .rpg-storefront .property-item .property-author-identity{
    min-width:0!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:center!important;
    gap:2px!important;
}

body#page-agency-profile .rpg-storefront .property-item .property-author-role{
    display:block!important;
    color:#75847c!important;
    font-family:"DM Sans",system-ui,sans-serif!important;
    font-size:10px!important;
    line-height:1!important;
    font-weight:900!important;
    letter-spacing:.08em!important;
    text-transform:uppercase!important;
}

body#page-agency-profile .rpg-storefront .property-item .property-author-name{
    max-width:170px!important;
    display:flex!important;
    align-items:center!important;
    gap:5px!important;
    overflow:hidden!important;
    color:#30463a!important;
    font-family:"DM Sans",system-ui,sans-serif!important;
    font-size:12px!important;
    line-height:1.2!important;
    font-weight:850!important;
    white-space:nowrap!important;
    text-overflow:ellipsis!important;
}

body#page-agency-profile .rpg-storefront .property-item .property-author-name::after{
    content:"✓"!important;
    width:15px!important;
    height:15px!important;
    flex:0 0 15px!important;
    display:inline-grid!important;
    place-items:center!important;
    border-radius:50%!important;
    background:#0a9b5c!important;
    color:#fff!important;
    font-size:9px!important;
    line-height:1!important;
    font-weight:900!important;
}

body#page-agency-profile .rpg-storefront .property-item .property-card-price{
    min-width:max-content!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    text-align:right!important;
}

body#page-agency-profile .rpg-storefront .property-item .property-card-price .h6,
body#page-agency-profile .rpg-storefront .property-item .property-card-price .h7{
    margin:0!important;
    color:#075f41!important;
    font-family:"DM Sans",system-ui,sans-serif!important;
    font-size:14px!important;
    line-height:1.15!important;
    font-weight:900!important;
    letter-spacing:-.01em!important;
}

/* Contact strip remains beneath the agency identity/price row. */
body#page-agency-profile .rpg-storefront .property-item .property-contact-actions,
body#page-agency-profile .rpg-storefront .property-item .property-contact-actions--card{
    margin:0!important;
}

/* Tablet */
@media (max-width:1024px){
    body#page-agency-profile .rpg-storefront .property-item > .archive-bottom{
        gap:8px!important;
        padding:9px 10px!important;
    }

    body#page-agency-profile .rpg-storefront .property-item .property-card-agent .avatar{
        width:34px!important;
        height:34px!important;
        min-width:34px!important;
        flex-basis:34px!important;
    }

    body#page-agency-profile .rpg-storefront .property-item .property-author-name{
        max-width:135px!important;
        font-size:12px!important;
    }

    body#page-agency-profile .rpg-storefront .property-item .property-card-price .h6,
    body#page-agency-profile .rpg-storefront .property-item .property-card-price .h7{
        font-size:13px!important;
    }
}

/* Mobile */
@media (max-width:767px){
    body#page-agency-profile .rpg-storefront .property-item > .archive-bottom{
        grid-template-columns:minmax(0,1fr) auto!important;
        gap:7px!important;
        padding:8px!important;
    }

    body#page-agency-profile .rpg-storefront .property-item .property-card-agent{
        gap:7px!important;
    }

    body#page-agency-profile .rpg-storefront .property-item .property-card-agent .avatar{
        width:31px!important;
        height:31px!important;
        min-width:31px!important;
        flex-basis:31px!important;
    }

    body#page-agency-profile .rpg-storefront .property-item .property-author-role{
        font-size:10px!important;
    }

    body#page-agency-profile .rpg-storefront .property-item .property-author-name{
        max-width:105px!important;
        font-size:12px!important;
    }

    body#page-agency-profile .rpg-storefront .property-item .property-card-price .h6,
    body#page-agency-profile .rpg-storefront .property-item .property-card-price .h7{
        font-size:12.5px!important;
    }
}
