/* ================================================================
   BPP HOMEPAGE RECOMMENDED PROFESSIONALS V1
   Approved layout:
   Row 1: Agencies | Agents
   Row 2: Landlords (Coming Soon) | Developers
   ================================================================ */

.bpp-home-rec-pros-v1 {
    --bpp-rp-green: #079b54;
    --bpp-rp-green-dark: #075a41;
    --bpp-rp-ink: #173d30;
    --bpp-rp-muted: #71827b;
    --bpp-rp-line: #dce9e3;
    --bpp-rp-soft: #f1f8f4;
    --bpp-rp-header: #eef9f3;
}

.bpp-home-rec-pros-v1__layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
}

.bpp-rec-pro-block {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--bpp-rp-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(23, 61, 48, .065);
}

.bpp-rec-pro-block__head {
    min-height: 58px;
    display: grid;
    grid-template-columns: minmax(175px, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 9px 12px 9px 16px;
    border-bottom: 1px solid #dcebe4;
    background:
        linear-gradient(90deg, rgba(226, 247, 237, .9), rgba(252, 254, 253, .96));
    position: relative;
}

.bpp-rec-pro-block__head::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 4px;
    border-radius: 0 99px 99px 0;
    background: var(--bpp-rp-green);
}

.bpp-rec-pro-block__head h2 {
    margin: 0;
    color: var(--bpp-rp-ink);
    font-size: 20px;
    line-height: 1.15;
    font-weight: 800;
}

.bpp-rec-pro-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid #d7e7df;
    border-radius: 10px;
    background: rgba(255, 255, 255, .9);
}

.bpp-rec-pro-tabs button {
    min-height: 31px;
    padding: 6px 11px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #476157;
    font: inherit;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.bpp-rec-pro-tabs button:hover {
    background: #eaf6f0;
    color: var(--bpp-rp-green-dark);
}

.bpp-rec-pro-tabs button.active,
.bpp-rec-pro-tabs button[aria-selected="true"] {
    background: var(--bpp-rp-green);
    color: #fff;
    box-shadow: 0 4px 10px rgba(7, 155, 84, .17);
}

.bpp-rec-pro-view-all {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border: 1px solid #cfe4d9;
    border-radius: 999px;
    color: #087a49;
    background: #fff;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    text-decoration: none !important;
    white-space: nowrap;
}

.bpp-rec-pro-view-all:hover {
    border-color: #a8d5bf;
    background: #f0faf5;
}

.bpp-rec-pro-view-all--disabled {
    color: #7b8d85;
    cursor: default;
}

.bpp-rec-pro-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    min-height: 238px;
    padding: 12px;
    transition: opacity .16s ease;
}

.bpp-rec-pro-block[data-loading="1"] .bpp-rec-pro-grid {
    opacity: .56;
}

.bpp-rec-pro-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 10px 10px;
    border: 1px solid #e4ece8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(16, 61, 44, .04);
    text-align: center;
    transition: transform .16s ease, box-shadow .16s ease;
}

.bpp-rec-pro-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 61, 44, .08);
}

.bpp-rec-pro-card__avatar {
    width: 68px;
    height: 68px;
    margin: 0 auto 10px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 1px solid #dce8e2;
    border-radius: 12px;
    background:
        linear-gradient(135deg, #f5faf7, #e9f4ee);
    color: #0d7450;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -.03em;
}

.bpp-rec-pro-card__avatar--round,
.bpp-rec-pro-card[data-entity="agent"] .bpp-rec-pro-card__avatar {
    border-radius: 50%;
}

.bpp-rec-pro-card__avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.bpp-rec-pro-card__name {
    margin: 0;
    color: var(--bpp-rp-ink);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 800;
}

.bpp-rec-pro-card__role {
    margin-top: 3px;
    color: #72847c;
    font-size: 10px;
    line-height: 1.25;
}

.bpp-rec-pro-card__meta {
    margin-top: 9px;
    display: grid;
    gap: 5px;
    color: #5f746b;
    font-size: 10px;
    line-height: 1.25;
}

.bpp-rec-pro-card__meta span {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bpp-rec-pro-card__cta {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 7px 8px;
    border: 1px solid #12a764;
    border-radius: 8px;
    color: #087a49 !important;
    background: #fff;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    text-decoration: none !important;
}

.bpp-rec-pro-card__cta:hover {
    background: #effaf4;
}

.bpp-rec-pro-card--skeleton {
    pointer-events: none;
}

.bpp-rec-pro-card--skeleton .bpp-rec-pro-card__avatar,
.bpp-rec-pro-card--skeleton .bpp-rec-pro-card__lines span {
    background:
        linear-gradient(90deg, #eef4f1 20%, #f8fbfa 40%, #eef4f1 60%);
    background-size: 200% 100%;
    animation: bpp-rp-shimmer 1.15s linear infinite;
}

.bpp-rec-pro-card__lines span {
    display: block;
    height: 9px;
    margin: 8px auto;
    border-radius: 999px;
}

.bpp-rec-pro-card__lines span:nth-child(1) { width: 90%; }
.bpp-rec-pro-card__lines span:nth-child(2) { width: 72%; }
.bpp-rec-pro-card__lines span:nth-child(3) { width: 54%; }

@keyframes bpp-rp-shimmer {
    to { background-position: -200% 0; }
}

.bpp-rec-pro-empty {
    grid-column: 1 / -1;
    min-height: 180px;
    display: grid;
    place-items: center;
    padding: 20px;
    border: 1px dashed #d6e6de;
    border-radius: 12px;
    background: #f8fbf9;
    color: #687b73;
    font-size: 12px;
    text-align: center;
}

/* LANDLORD COMING SOON */

.bpp-rec-landlords-soon {
    min-height: 238px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 28px 22px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 20%, rgba(229, 247, 238, .75), transparent 42%);
}

.bpp-rec-landlords-soon__art {
    position: relative;
    width: 170px;
    height: 92px;
    margin-bottom: 8px;
}

.bpp-rec-landlords-soon__sun {
    position: absolute;
    width: 56px;
    height: 34px;
    left: 56px;
    top: 10px;
    border-radius: 50%;
    background: #dff2e8;
}

.bpp-rec-landlords-soon__house {
    position: absolute;
    left: 55px;
    top: 25px;
    width: 72px;
    height: 58px;
}

.bpp-rec-landlords-soon__house .roof {
    position: absolute;
    left: 7px;
    top: 0;
    width: 58px;
    height: 58px;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 20px solid #0a684b;
    transform: translateY(-18px);
}

.bpp-rec-landlords-soon__house .body {
    position: absolute;
    inset: 12px 6px 0;
    border-radius: 4px 4px 2px 2px;
    background: #f7fbf9;
    border: 3px solid #3f9f78;
}

.bpp-rec-landlords-soon__house .door {
    position: absolute;
    width: 14px;
    height: 28px;
    left: 29px;
    bottom: 1px;
    background: #147654;
    border-radius: 3px 3px 0 0;
}

.bpp-rec-landlords-soon__house .window {
    position: absolute;
    width: 13px;
    height: 13px;
    top: 27px;
    border: 2px solid #55a987;
    background: #dff4e9;
}

.bpp-rec-landlords-soon__house .w1 { left: 13px; }
.bpp-rec-landlords-soon__house .w2 { right: 13px; }

.bpp-rec-landlords-soon .bush {
    position: absolute;
    bottom: 8px;
    width: 44px;
    height: 24px;
    border-radius: 50% 50% 35% 35%;
    background: #bce7d0;
}

.bpp-rec-landlords-soon .bush-a { left: 23px; }
.bpp-rec-landlords-soon .bush-b { right: 13px; width: 36px; }

.bpp-rec-landlords-soon h3 {
    margin: 0;
    color: #183d31;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
}

.bpp-rec-landlords-soon p {
    max-width: 500px;
    margin: 8px auto 0;
    color: #76877f;
    font-size: 12px;
    line-height: 1.55;
}

.bpp-rec-landlords-soon__notify {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 13px;
    padding: 8px 18px;
    border-radius: 9px;
    background: #def5e9;
    color: #0a6f4d !important;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none !important;
}

/* RESPONSIVE */

@media (max-width: 1199px) {
    .bpp-rec-pro-block__head {
        grid-template-columns: 1fr auto;
    }

    .bpp-rec-pro-tabs {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: start;
    }

    .bpp-rec-pro-view-all {
        grid-column: 2;
        grid-row: 1;
    }

    .bpp-rec-pro-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .bpp-home-rec-pros-v1__layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .bpp-rec-pro-block__head {
        min-height: 0;
        padding: 11px 10px 10px 14px;
    }

    .bpp-rec-pro-block__head h2 {
        font-size: 17px;
    }

    .bpp-rec-pro-tabs {
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none;
    }

    .bpp-rec-pro-tabs::-webkit-scrollbar {
        display: none;
    }

    .bpp-rec-pro-tabs button {
        flex: 0 0 auto;
        min-height: 34px;
    }

    .bpp-rec-pro-grid {
        display: flex;
        min-height: 0;
        gap: 10px;
        overflow-x: auto;
        padding: 11px 11px 13px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .bpp-rec-pro-grid::-webkit-scrollbar {
        display: none;
    }

    .bpp-rec-pro-card {
        flex: 0 0 min(65vw, 230px);
        min-height: 228px;
        scroll-snap-align: start;
    }

    .bpp-rec-landlords-soon {
        min-height: 260px;
        padding-inline: 20px;
    }
}

/* BPP_HOME_REC_PROS_FONT_SCALE_V101_START */

@media (min-width: 992px) {
    .bpp-home-rec-pros-v1 .bpp-rec-pro-block__head {
        min-height: 68px;
        padding-top: 11px;
        padding-bottom: 11px;
    }

    .bpp-home-rec-pros-v1 .bpp-rec-pro-block__head h2 {
        font-size: 26px !important;
        line-height: 1.08 !important;
        letter-spacing: -0.02em;
    }

    .bpp-home-rec-pros-v1 .bpp-rec-pro-tabs button {
        min-height: 35px;
        padding: 8px 13px;
        font-size: 13px !important;
        line-height: 1 !important;
    }

    .bpp-home-rec-pros-v1 .bpp-rec-pro-view-all {
        min-height: 36px;
        padding: 8px 12px;
        font-size: 13px !important;
    }

    .bpp-home-rec-pros-v1 .bpp-rec-pro-grid {
        min-height: 276px;
        padding: 14px;
        gap: 12px;
    }

    .bpp-home-rec-pros-v1 .bpp-rec-pro-card {
        min-height: 250px;
        padding: 14px 11px 11px;
    }

    .bpp-home-rec-pros-v1 .bpp-rec-pro-card__avatar {
        width: 76px;
        height: 76px;
        margin-bottom: 12px;
        font-size: 26px;
    }

    .bpp-home-rec-pros-v1 .bpp-rec-pro-card__name {
        font-size: 16px !important;
        line-height: 1.2 !important;
    }

    .bpp-home-rec-pros-v1 .bpp-rec-pro-card__role {
        margin-top: 5px;
        font-size: 13px !important;
        line-height: 1.3 !important;
    }

    .bpp-home-rec-pros-v1 .bpp-rec-pro-card__meta {
        margin-top: 10px;
        gap: 6px;
        font-size: 12px !important;
        line-height: 1.3 !important;
    }

    .bpp-home-rec-pros-v1 .bpp-rec-pro-card__cta {
        min-height: 39px;
        padding: 9px 10px;
        font-size: 13px !important;
        line-height: 1 !important;
    }

    .bpp-home-rec-pros-v1 .bpp-rec-landlords-soon {
        min-height: 276px;
        padding-top: 20px;
        padding-bottom: 24px;
    }

    .bpp-home-rec-pros-v1 .bpp-rec-landlords-soon h3 {
        font-size: 24px !important;
        line-height: 1.18 !important;
    }

    .bpp-home-rec-pros-v1 .bpp-rec-landlords-soon p {
        max-width: 560px;
        margin-top: 10px;
        font-size: 15px !important;
        line-height: 1.55 !important;
    }

    .bpp-home-rec-pros-v1 .bpp-rec-landlords-soon__notify {
        min-height: 42px;
        margin-top: 15px;
        padding: 10px 20px;
        font-size: 14px !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .bpp-home-rec-pros-v1 .bpp-rec-pro-block__head h2 {
        font-size: 23px !important;
        line-height: 1.1 !important;
    }

    .bpp-home-rec-pros-v1 .bpp-rec-pro-tabs button,
    .bpp-home-rec-pros-v1 .bpp-rec-pro-view-all {
        font-size: 12px !important;
    }

    .bpp-home-rec-pros-v1 .bpp-rec-pro-card__name {
        font-size: 15px !important;
    }

    .bpp-home-rec-pros-v1 .bpp-rec-pro-card__role,
    .bpp-home-rec-pros-v1 .bpp-rec-pro-card__meta {
        font-size: 12px !important;
    }

    .bpp-home-rec-pros-v1 .bpp-rec-pro-card__cta {
        font-size: 12px !important;
    }

    .bpp-home-rec-pros-v1 .bpp-rec-landlords-soon h3 {
        font-size: 22px !important;
    }

    .bpp-home-rec-pros-v1 .bpp-rec-landlords-soon p {
        font-size: 14px !important;
    }
}

@media (max-width: 767px) {
    .bpp-home-rec-pros-v1 .bpp-rec-pro-block__head h2 {
        font-size: 20px !important;
        line-height: 1.12 !important;
    }

    .bpp-home-rec-pros-v1 .bpp-rec-pro-tabs button {
        min-height: 36px;
        font-size: 12px !important;
    }

    .bpp-home-rec-pros-v1 .bpp-rec-pro-view-all {
        min-height: 34px;
        font-size: 12px !important;
    }

    .bpp-home-rec-pros-v1 .bpp-rec-pro-card {
        min-height: 242px;
    }

    .bpp-home-rec-pros-v1 .bpp-rec-pro-card__avatar {
        width: 72px;
        height: 72px;
        font-size: 24px;
    }

    .bpp-home-rec-pros-v1 .bpp-rec-pro-card__name {
        font-size: 15px !important;
        line-height: 1.2 !important;
    }

    .bpp-home-rec-pros-v1 .bpp-rec-pro-card__role {
        font-size: 12px !important;
    }

    .bpp-home-rec-pros-v1 .bpp-rec-pro-card__meta {
        font-size: 12px !important;
    }

    .bpp-home-rec-pros-v1 .bpp-rec-pro-card__cta {
        min-height: 38px;
        font-size: 12px !important;
    }

    .bpp-home-rec-pros-v1 .bpp-rec-landlords-soon h3 {
        font-size: 21px !important;
    }

    .bpp-home-rec-pros-v1 .bpp-rec-landlords-soon p {
        font-size: 14px !important;
    }

    .bpp-home-rec-pros-v1 .bpp-rec-landlords-soon__notify {
        font-size: 13px !important;
    }
}

/* BPP_HOME_REC_PROS_FONT_SCALE_V101_END */

/* BPP_HOME_PROPERTY_OWNERS_SERVER_CSS_V1 */
.bpp-rec-owner-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px;
    padding:14px;
}
.bpp-rec-owner-card{
    min-width:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    padding:14px 10px 10px;
    border:1px solid #dfeae5;
    border-radius:12px;
    background:#fff;
    text-align:center;
}
.bpp-rec-owner-card[hidden]{display:none!important}
.bpp-rec-owner-card__avatar{
    width:72px;height:72px;display:grid;place-items:center;overflow:hidden;
    border:1px solid #d8e7df;border-radius:50%;background:#eff8f4;
    color:#174a3a!important;font-size:27px;font-weight:900;text-decoration:none!important
}
.bpp-rec-owner-card__avatar img{width:100%;height:100%;display:block;object-fit:cover}
.bpp-rec-owner-card__name{
    max-width:100%;display:flex;align-items:center;justify-content:center;
    gap:5px;margin-top:9px
}
.bpp-rec-owner-card__name a{
    color:#173e31!important;font-size:13px;line-height:1.2;font-weight:900;text-decoration:none!important
}
.bpp-rec-owner-card__verified{
    width:16px;height:16px;flex:0 0 16px;display:grid;place-items:center;
    border-radius:50%;background:#168eea;color:#fff;font-size:10px;font-weight:900
}
.bpp-rec-owner-card__role{margin-top:4px;color:#83938c;font-size:10px;font-weight:700}
.bpp-rec-owner-card__meta{margin-top:7px;color:#687b72;font-size:10px;line-height:1.2}
.bpp-rec-owner-card__meta + .bpp-rec-owner-card__meta{margin-top:4px}
.bpp-rec-owner-card__split{
    display:flex;align-items:center;justify-content:center;gap:8px;
    margin-top:6px;color:#71847b;font-size:9px;font-weight:800
}
.bpp-rec-owner-card__split span + span::before{content:"•";margin-right:8px;color:#a7b8b0}
.bpp-rec-owner-card__button{
    width:100%;min-height:35px;display:flex;align-items:center;justify-content:center;
    margin-top:8px;padding:7px 8px;border:1px solid #08a45b;border-radius:8px;
    background:#fff;color:#08794a!important;font-size:10px;line-height:1;
    font-weight:900;text-decoration:none!important
}
.bpp-rec-owner-empty{
    grid-column:1/-1;padding:30px 15px;color:#71847b;text-align:center;font-size:12px
}
@media(max-width:767px){
    .bpp-rec-owner-grid{
        display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;
        scrollbar-width:none;padding:12px
    }
    .bpp-rec-owner-grid::-webkit-scrollbar{display:none}
    .bpp-rec-owner-card{flex:0 0 min(72vw,250px);scroll-snap-align:start}
}
