/* One card system for search, favorites, strips, featured and sales previews.
   Photo aspect ratios remain owned by their existing page/strip rules. */
.marketplace-result-grid:has(> .rn-profile-card) { grid-auto-rows:1fr; }
html body .rn-profile-card {
    box-sizing:border-box; min-width:0; padding:0; border:0 !important;
    border-radius:18px !important; overflow:hidden !important; background:#fff;
    box-shadow:0 0 0 1px #e4eaf1 !important; color:#253c57; container-type:inline-size;
}
html body .rn-profile-card .mini-result-card-content { display:flex; flex-direction:column; height:100%; }
html body .rn-profile-card .rn-profile-card-photo {
    position:relative; margin:0 !important; padding:0 !important;
    border:0 !important; border-radius:18px 18px 0 0 !important; overflow:hidden;
}
html body .rn-profile-card .rn-profile-card-copy {
    box-sizing:border-box; display:grid !important; grid-template-rows:22px 18px 50px 36px;
    gap:4px; padding:5px 10px !important; height:148px; min-height:148px; flex:none;
    margin-top:auto; min-width:0; overflow:hidden; color:#253c57; background:#fff;
    text-decoration:none; text-align:left;
}
html body .rn-profile-card .rn-profile-card-price {
    display:flex; align-items:baseline; gap:3px; min-width:0; margin:0;
    white-space:nowrap; overflow:hidden; color:#223b59; line-height:22px;
}
html body .rn-profile-card .rn-profile-card-price strong { font-size:20px; font-weight:650; overflow:hidden; text-overflow:ellipsis; }
html body .rn-profile-card .rn-profile-card-price > span { font-size:11px; font-weight:400; flex:none; color:#526781; }
html body .rn-profile-card .rn-profile-card-heading { display:flex; align-items:baseline; gap:0; min-width:0; overflow:hidden; height:22px; }
html body .rn-profile-card .rn-profile-card-name {
    display:flex; align-items:baseline; flex:1 1 0; min-width:0; margin:0; font-size:14px; font-weight:600;
    line-height:22px; color:#223b59; white-space:nowrap; overflow:hidden;
}
.rn-profile-card-name .rn-profile-card-name-text { flex:0 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rn-profile-card-name .rn-profile-card-name-divider { flex:none; margin-inline:3px; font-size:12px; font-weight:400; white-space:nowrap; }
.rn-profile-card-name .rn-profile-card-age { flex:none; font-size:14px; font-weight:500; white-space:nowrap; }
html body .rn-profile-card .rn-profile-card-budget {
    display:flex; align-items:baseline; gap:0; flex:0 0 auto; max-width:none;
    margin:0 0 0 auto; font-size:14px; font-weight:600; line-height:22px; color:#223b59;
    white-space:nowrap; text-align:right;
}
.rn-profile-card-budget > span { flex:none; white-space:nowrap; }
.rn-profile-card-budget .rn-profile-card-budget-divider {
    margin-inline:5px; color:#9CAABD; font-size:12px; font-weight:400;
}
.rn-profile-card-budget small { flex:none; margin-left:2px; font-size:10px; font-weight:400; color:#526781; }
html body .rn-profile-card .rn-profile-card-location {
    display:flex; align-items:center; gap:4px; box-sizing:border-box; margin:0;
    min-width:0; height:18px; min-height:18px; font-size:12px; line-height:18px;
    color:#304961; white-space:nowrap; overflow:hidden;
}
html body .rn-profile-card .rn-profile-card-location svg { width:12px; height:14px; min-width:12px; flex:none; fill:currentColor; }
.rn-profile-card-location > span { min-width:0; line-height:18px; overflow:hidden; text-overflow:ellipsis; }
html body :is(.rn-profile-card,.rn-profile-card-inline) .rn-profile-card-attributes {
    display:flex; flex-wrap:wrap; align-content:start; justify-content:flex-start; gap:4px;
    height:50px; min-height:50px; overflow:hidden; margin:0; padding:0; list-style:none; position:relative;
}
html body :is(.rn-profile-card,.rn-profile-card-inline) .rn-profile-card-attributes li {
    display:inline-flex; flex:0 0 auto; align-items:center; gap:3px; box-sizing:border-box;
    height:23px; padding:4px 7px; margin:0; border:1px solid #D9E6F6;
    border-radius:999px; background:#EAF2FD; color:#365675; font-size:11.5px;
    font-weight:500; line-height:13px; white-space:nowrap;
}
html body :is(.rn-profile-card,.rn-profile-card-inline) .rn-profile-card-attributes li[hidden] { display:none; }
html body :is(.rn-profile-card,.rn-profile-card-inline) .rn-profile-card-attributes li[data-measuring] { position:absolute; visibility:hidden; }
.rn-profile-card-attribute-icon { display:flex; flex:none; }
html body :is(.rn-profile-card,.rn-profile-card-inline) .rn-profile-card-attributes svg {
    width:12px; min-width:12px; max-width:12px; height:12px; min-height:12px;
    flex:none; fill:none; color:#356A9F; stroke-width:1.4;
}
.rn-profile-card-attributes li > span { white-space:nowrap; }
html body :is(.rn-profile-card,.rn-profile-card-inline) .rn-profile-card-attributes .rn-profile-card-attribute--verified {
    background:#f5fbf7; border-color:#bde4d4; color:var(--rn-id-verified-green);
    font-family:inherit; font-size:12px; font-weight:600;
    box-shadow:0 1px 3px rgba(21,93,73,.08);
}
html body :is(.rn-profile-card,.rn-profile-card-inline) .rn-profile-card-attributes .rn-profile-card-attribute--verified svg {
    color:var(--rn-id-shield-green); stroke-width:1.8;
}
html body .rn-profile-card .rn-profile-card-summary {
    display:-webkit-box !important; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2;
    height:36px; min-height:36px; margin:0; padding:0; overflow:hidden; overflow-wrap:anywhere;
    font-size:12px; font-weight:400; line-height:18px; color:#30465F;
}
html body .rn-profile-card .rn-profile-card-dwelling {
    position:absolute; z-index:2; display:inline-flex; align-items:center; gap:4px;
    top:8px; left:8px; max-width:calc(100% - 56px); padding:6px 10px;
    border-radius:999px; background:rgba(255,255,255,.96); color:#222;
    box-shadow:0 2px 5px rgba(0,0,0,.16); font-size:11px; font-weight:600;
    line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; pointer-events:none;
}
.rn-profile-card-dwelling > span { display:flex; flex:none; }
html body .rn-profile-card .rn-profile-card-dwelling svg { width:12px; min-width:12px; height:12px; flex:none; }
html body .rn-profile-card .featured-listing-card__badge { top:auto; bottom:8px; left:8px; }
@container (max-width:210px) {
    html body .rn-profile-card .rn-profile-card-copy { padding-inline:8px !important; }
    html body :is(.rn-profile-card,.rn-profile-card-inline) .rn-profile-card-attributes li { padding-inline:4px; gap:2px; }
}
/* Browse-all destinations stay in their existing strip lane and keep their links. */
html body .listing-strip:has(> .rn-profile-card) > .listing-view-more-image {
    box-sizing:border-box; display:flex; flex-direction:column; align-items:center;
    align-self:stretch !important; justify-content:center !important; height:100%;
    min-height:0; aspect-ratio:auto !important; gap:10px; padding:16px 10px;
}
html body .listing-strip:has(> .rn-profile-card) > .listing-view-more-image .listing-view-more-collage {
    flex:none !important; width:100%; max-width:180px; aspect-ratio:1;
}
@media (max-width:767px) {
    html body .rn-profile-card .rn-profile-card-dwelling { padding:5px 9px; font-size:10px; }
}
