/* Featured listings (Stage 1: visual styling) - shared by every search results template (Control\SearchSkins\*, ctrlpropdetail, controlgalleryview, controlOFIview).
   A featured listing (the existing Weblisting.ShowFeature flag) gets the class .listing-featured on its card; the card keeps the standard card's own classes, so its
   box is the standard box. Nothing here changes a width, height, padding, margin, border width or image size:
     - the card gets a champagne background and a 1px inset outline (drawn over the existing 1px border, never outside the box);
     - the "Featured" badge is a zero-height overlay anchored to the top-left of the photo (position:absolute inside a height:0 block), so it takes no space;
     - the badge steps out of the way of the existing status labels (Open home / Just listed banners, Sold images).
   Colours: card #FFFBF2, border #C5A568, badge background #EFE2C2, badge text and star #75551E. The rules use !important and extra specificity so a client website's
   own stylesheet (including the old .displayFeature theme) does not override them. The star is the site's own icon (/i/favorite.svg). */

.lf-anchor{display:none;}

html body .listing-featured.listing-featured{
    background:#FFFBF2 !important;background-color:#FFFBF2 !important;background-image:none !important;
    border-color:#C5A568 !important;
    outline:1px solid #C5A568 !important;outline-offset:-1px !important;
}
/* the existing property information area paints the card in some templates: same champagne, background only */
html body .listing-featured.listing-featured .display,
html body .listing-featured.listing-featured .displayContainer,
html body .listing-featured.listing-featured .PropertyInfo,
html body .listing-featured.listing-featured #PropertyInfo,
html body .listing-featured.listing-featured .proInfoContainerDiv,
html body .listing-featured.listing-featured .lstinfo,
html body .listing-featured.listing-featured .details,
html body .listing-featured.listing-featured .pnlOpt8Info,
html body .listing-featured.listing-featured .pnlListRsInfoAgts,
html body .listing-featured.listing-featured .propertyinfo,
html body .listing-featured.listing-featured .white-card,
html body .listing-featured.listing-featured .horizontal-content-wrapper{
    background:#FFFBF2 !important;background-color:#FFFBF2 !important;
}

/* the badge: a height:0 block at the top of the photo holds an absolutely positioned label */
html body .listing-featured .lf-anchor{
    display:block !important;position:relative !important;height:0 !important;width:auto;margin:0 !important;padding:0 !important;border:0 !important;
    overflow:visible !important;line-height:0 !important;z-index:6;float:none !important;
}
html body .listing-featured .lf-badge{
    position:absolute;top:8px;left:8px;display:inline-flex;align-items:center;gap:5px;box-sizing:border-box;margin:0;
    padding:3px 9px 3px 7px;background:#EFE2C2 !important;color:#75551E !important;border-radius:3px;width:auto !important;height:auto !important;min-height:0;max-width:none;
    font-family:inherit;font-size:12px;font-weight:600;font-style:normal;line-height:1.2;letter-spacing:.02em;text-transform:none;white-space:nowrap;
    pointer-events:none;box-shadow:none;
}
.lf-badge .lf-star{display:inline-block !important;flex:0 0 13px;width:13px !important;height:13px !important;min-height:0;margin:0;padding:0;font-style:normal;background-color:currentColor;
    -webkit-mask:url(/i/favorite.svg) center/contain no-repeat;mask:url(/i/favorite.svg) center/contain no-repeat;}

/* existing status labels: the banner (Open home / Just listed, .OFILabel) sits in the same corner - the badge goes just below it; a Sold / Open home picture (.ShowSold) is
   bigger and varies, so the badge moves to the top-right corner of the photo instead */
html body .listing-featured:has(.OFILabel) .lf-badge{top:34px;}
html body .listing-featured:has(.ShowSold) .lf-badge{top:8px;left:auto;right:8px;}

@media (max-width:600px){
    html body .listing-featured .lf-badge{top:6px;left:6px;padding:2px 7px 2px 5px;font-size:11px;}
    html body .listing-featured:has(.OFILabel) .lf-badge{top:30px;}
    html body .listing-featured:has(.ShowSold) .lf-badge{top:6px;left:auto;right:6px;}
}

/* templates whose information area is a coloured band set by the website's button colours (inline style, white text: Two columns / Option 8 caption bar, List option 10 heading bar):
   the band becomes champagne with the badge's brown text, keeping its own size and position */
html body .listing-featured .lstinfo > div[style*="background"],
html body .listing-featured .pnlHeading{background:#FFFBF2 !important;background-color:#FFFBF2 !important;color:#75551E !important;}
html body .listing-featured .lstinfo > div[style*="background"] *,
html body .listing-featured .pnlHeading *{color:#75551E !important;}
