/* REH_CARD_DARK_MODE_V1. Dark-only palette for public, professional, Super Admin and map cards. */
/* Keep the approved primary colour: override the more specific generic Admin button rule. */
#reh-v2-app .property-card .sa-listing-controls .sa-make-live {background:#20a878!important;border-color:#20a878!important;color:#fff!important}
html[data-reh-theme="dark"] #reh-v2-app .property-card,
html[data-reh-theme="dark"] :is(#reh-v2-app .reh-map-v1,.reh-map-v1.reh-map-expanded) .reh-map-card {
  --reh-surface:#202522;--reh-soft:#2c3530;--reh-ink:#f1f6f3;--reh-muted:#bac9c0;--reh-border:#45564c;
  --card-ink:#f1f6f3;--card-muted:#bac9c0;--card-line:#45564c;--card-action:#20a878;
  --popup-paper:#202522;--popup-ink:#f1f6f3;--popup-muted:#bac9c0;--popup-line:#45564c;--popup-action:#20a878;
  background:#202522!important;color:#f1f6f3!important;border-color:#45564c!important;
  box-shadow:0 5px 22px #0005!important;color-scheme:dark;
}
html[data-reh-theme="dark"] #reh-v2-app .property-card.selected {outline-color:#6ee0b7!important;border-color:#6ee0b7!important}
html[data-reh-theme="dark"] #reh-v2-app .property-card .card-copy,
html[data-reh-theme="dark"] :is(#reh-v2-app .reh-map-v1,.reh-map-v1.reh-map-expanded) .reh-card-copy {background:#202522!important;color:#f1f6f3!important}
html[data-reh-theme="dark"] #reh-v2-app .property-card :is(.card-copy h3,.price-row strong,.agency-name,.reh-listing-identity-name,.reh-listing-identity-copy strong),
html[data-reh-theme="dark"] :is(#reh-v2-app .reh-map-v1,.reh-map-v1.reh-map-expanded) :is(.reh-card-copy h3,.reh-card-price,.agency-name,.reh-listing-identity-name,.reh-listing-identity-copy strong) {color:#f1f6f3!important}
html[data-reh-theme="dark"] #reh-v2-app .property-card :is(.spec-row,.agent-row,.agency-person,.reh-listing-identity-person,.reh-listing-identity-copy span,.sa-live-state,.sa-control-status),
html[data-reh-theme="dark"] :is(#reh-v2-app .reh-map-v1,.reh-map-v1.reh-map-expanded) :is(.reh-card-spec,.reh-card-agent,.agency-person,.reh-listing-identity-person,.reh-listing-identity-copy span,.reh-card-nearby) {color:#bac9c0!important;opacity:1}
html[data-reh-theme="dark"] #reh-v2-app .property-card :is(.reh-listing-identity,.card-management,.ah-card-tools,.sa-listing-controls),
html[data-reh-theme="dark"] :is(#reh-v2-app .reh-map-v1,.reh-map-v1.reh-map-expanded) :is(.reh-listing-identity,.reh-card-nearby) {border-color:#45564c!important;background:transparent!important}
html[data-reh-theme="dark"] #reh-v2-app .property-card .sa-live-state[data-live="true"] {color:#83e5be!important}
html[data-reh-theme="dark"] #reh-v2-app .property-card .map-pin {color:#6ee0b7!important;border-color:#6ee0b7!important;background:transparent!important}
html[data-reh-theme="dark"] #reh-v2-app .property-card .agency-contacts a {color:#6ee0b7!important}
html[data-reh-theme="dark"] #reh-v2-app .property-card :is(.ah-card-tool,.sa-listing-controls button),
html[data-reh-theme="dark"] :is(#reh-v2-app .reh-map-v1,.reh-map-v1.reh-map-expanded) .reh-card-nearby button {background:#29332d!important;border-color:#657b6e!important;color:#f1f6f3!important;box-shadow:none!important}
html[data-reh-theme="dark"] #reh-v2-app .property-card :is(.card-contact,.ah-card-publish,.sa-listing-controls .sa-make-live),
html[data-reh-theme="dark"] :is(#reh-v2-app .reh-map-v1,.reh-map-v1.reh-map-expanded) .reh-card-link {background:#20a878!important;border-color:#20a878!important;color:#fff!important}
html[data-reh-theme="dark"] #reh-v2-app .property-card :is(.heart,.reh-card-share),
html[data-reh-theme="dark"] :is(#reh-v2-app .reh-map-v1,.reh-map-v1.reh-map-expanded) :is(.reh-card-close,.reh-map-share,.reh-map-favourite .heart) {background:#17221eeF!important;border-color:#ffffff70!important;color:#f1f6f3!important;box-shadow:0 2px 8px #0004!important}
html[data-reh-theme="dark"] #reh-v2-app .property-card .heart.active,
html[data-reh-theme="dark"] :is(#reh-v2-app .reh-map-v1,.reh-map-v1.reh-map-expanded) .reh-map-favourite .heart.active {color:#6ee0b7!important;background:#233b2e!important;border-color:#6ee0b7!important}
html[data-reh-theme="dark"] #reh-v2-app .property-card :is(.card-media,.media-empty,.reh-video-cover),
html[data-reh-theme="dark"] :is(#reh-v2-app .reh-map-v1,.reh-map-v1.reh-map-expanded) .reh-card-photo {background:#2c3530!important;color:#bac9c0!important}
html[data-reh-theme="dark"] #reh-v2-app .property-card :is(.reh-video-badge,.reh-card-gallery-launch,.media-arrow),
html[data-reh-theme="dark"] :is(#reh-v2-app .reh-map-v1,.reh-map-v1.reh-map-expanded) :is(.reh-photo-prev,.reh-photo-next,.reh-photo-count) {background:#17221eeF!important;color:#f1f6f3!important;border-color:#ffffff70!important}
html[data-reh-theme="dark"] #reh-v2-app .property-card .match-badge {background:#263e32!important;color:#a1efce!important;border:1px solid #54886b!important}
html[data-reh-theme="dark"] #reh-v2-app .property-card :is(.agency-agent-photo,.reh-listing-identity-photo),
html[data-reh-theme="dark"] :is(#reh-v2-app .reh-map-v1,.reh-map-v1.reh-map-expanded) :is(.agency-agent-photo,.reh-listing-identity-photo) {border-color:#657b6e!important;background:#2c3530!important}
/* Respect the existing per-logo contrast classifier. Artwork/portraits are never blanket-filtered. */
html[data-reh-theme="dark"] #reh-v2-app .property-card img[data-reh-identity-panel="1"]:is(.agency-logo,.reh-listing-identity-logo),
html[data-reh-theme="dark"] :is(#reh-v2-app .reh-map-v1,.reh-map-v1.reh-map-expanded) img[data-reh-identity-panel="1"]:is(.agency-logo,.reh-listing-identity-logo) {background:#fff!important;padding:3px!important;border-radius:4px!important}
html[data-reh-theme="dark"] #reh-v2-app .property-card :is(button,a):focus-visible,
html[data-reh-theme="dark"] :is(#reh-v2-app .reh-map-v1,.reh-map-v1.reh-map-expanded) .reh-map-card :is(button,a):focus-visible {outline-color:#6ee0b7!important}
@media(hover:hover){
 html[data-reh-theme="dark"] #reh-v2-app .property-card :is(.ah-card-tool,.sa-listing-controls button):not(:disabled):hover,
 html[data-reh-theme="dark"] :is(#reh-v2-app .reh-map-v1,.reh-map-v1.reh-map-expanded) .reh-card-nearby button:not(:disabled):hover {background:#35473c!important;border-color:#6ee0b7!important}
 html[data-reh-theme="dark"] #reh-v2-app .property-card :is(.card-contact,.ah-card-publish,.sa-listing-controls .sa-make-live):not(:disabled):hover,
 html[data-reh-theme="dark"] :is(#reh-v2-app .reh-map-v1,.reh-map-v1.reh-map-expanded) .reh-card-link:hover {background:#20a878!important;color:#fff!important;filter:brightness(1.08)}
 html[data-reh-theme="dark"] #reh-v2-app .property-card :is(.heart,.reh-card-share):hover {background:#2d4035!important;color:#f1f6f3!important}
}

/* REH_BUTTON_COLOURS_V2 */
@media (hover:hover) {
  html:root[data-reh-theme] #reh-v2-app .property-card
  :is(a.card-contact,button.ah-card-publish,.sa-listing-controls button.sa-make-live):not(:disabled):hover,
  html:root[data-reh-theme]
  :is(#reh-v2-app .reh-map-v1,.reh-map-v1.reh-map-expanded)
  .reh-map-card a.reh-card-link:hover {
    background:#178d65!important;
    border-color:#178d65!important;
    color:#fff!important;
    filter:none!important;
  }
}
/* FOOTER_WRAP_V2 */
#reh-v2-app .property-card{container-type:inline-size;container-name:reh-listing-card}
#reh-v2-app .property-card :is(.card-management,.ah-card-tools,.sa-listing-controls){min-width:0!important;max-width:100%!important;box-sizing:border-box}
#reh-v2-app .property-card :is(.agency-attribution-visuals,.reh-listing-identity-visuals){max-width:none!important;flex:0 0 auto!important}
#reh-v2-app .property-card :is(.agency-attribution-copy,.reh-listing-identity-copy){min-width:0!important;flex:1 1 0%!important}
@container reh-listing-card (max-width:460px){
#reh-v2-app .property-card .card-management{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;align-items:stretch!important}
#reh-v2-app .property-card .card-management>:is(.ah-card-tools,.sa-listing-controls){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;gap:8px!important;justify-content:stretch!important}
#reh-v2-app .property-card :is(.ah-card-tool,.sa-listing-controls button){width:100%!important;min-width:0!important;min-height:44px!important;margin:0!important;padding:9px 10px!important;box-sizing:border-box!important;justify-content:center!important;white-space:normal!important;text-align:center!important}
#reh-v2-app .property-card :is(.ah-card-publish,.ah-card-sold,.ah-card-unpublish){grid-column:1/-1!important;order:-1}
#reh-v2-app .property-card :is(.sa-live-state,.sa-control-status){grid-column:1/-1!important;width:100%!important;margin:0!important;white-space:normal!important;overflow-wrap:anywhere!important}
#reh-v2-app .property-card .sa-live-state{font-size:12px!important;line-height:1.4!important}
#reh-v2-app .property-card .sa-listing-controls button:only-of-type{grid-column:1/-1!important}
#reh-v2-app .property-card .card-contact{width:100%!important;min-height:44px!important;box-sizing:border-box!important;justify-self:stretch!important;text-align:center!important}
}
@container reh-listing-card (max-width:360px){
#reh-v2-app .property-card .reh-listing-identity{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;align-items:start!important}
#reh-v2-app .property-card :is(.agency-attribution-visuals,.reh-listing-identity-visuals){width:auto!important;max-width:100%!important;justify-self:start!important;justify-content:flex-start!important}
#reh-v2-app .property-card :is(.agency-attribution-copy,.reh-listing-identity-copy){width:100%!important;max-width:100%!important;justify-self:stretch!important}
}
/* END_FOOTER_WRAP */
/* REH_CONTACT_ROW_V1 */
#reh-v2-app article.property-card {
 border-radius:18px!important;
 overflow:hidden!important;
}
#reh-v2-app .property-card .card-copy {
 border-radius:0 0 17px 17px!important;
}
#reh-v2-app .property-card .card-copy>.reh-listing-identity,
#reh-v2-app .property-card .card-copy>.agent-row:not([hidden]) {
 grid-column:1!important;
 grid-row:4!important;
 align-self:center!important;
 min-width:0!important;
}
#reh-v2-app .property-card .card-copy>.card-contact {
 grid-column:2!important;
 grid-row:4!important;
 align-self:center!important;
 justify-self:end!important;
 width:auto!important;
 max-width:100%!important;
 margin:0!important;
 white-space:nowrap!important;
}
#reh-v2-app .property-card .reh-listing-identity {
 padding-top:10px!important;
 padding-bottom:10px!important;
}
@container reh-listing-card (max-width:360px) {
 #reh-v2-app .property-card .reh-listing-identity {
  gap:6px!important;
 }
 #reh-v2-app .property-card .reh-listing-identity-visuals,
 #reh-v2-app .property-card .agency-attribution-visuals {
  flex-wrap:wrap!important;
  gap:6px!important;
 }
 #reh-v2-app .property-card .agency-logo,
 #reh-v2-app .property-card .reh-listing-identity-logo {
  width:52px!important;
 }
 #reh-v2-app .property-card .agency-agent-photo,
 #reh-v2-app .property-card .reh-listing-identity-photo {
  width:32px!important;
  height:32px!important;
 }
 #reh-v2-app .property-card .card-copy>.card-contact {
  padding:9px 8px!important;
  font-size:11px!important;
 }
}
/* END_REH_CONTACT_ROW_V1 */
/* REH_MAP_ICON_ONLY_V1 */
#reh-v2-app .property-card .map-pin span{display:none!important}
#reh-v2-app .property-card .map-pin{
 width:40px!important;height:40px!important;
 min-width:40px!important;min-height:40px!important;
 padding:0!important;gap:0!important;
 border-radius:50%!important;
}
#reh-v2-app .property-card .map-pin svg{
 width:19px!important;height:19px!important;
}
