/* Presentation bridge only: Flexmls retains query, routing, portal and IDX disclosure behavior. */
.wpresidence-flexmls-ui .flexmls-listings-list-wrapper,
.wfr-flexmls-results .flexmls-listings-list-wrapper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 20px;
}
.wfr-property-card { width: 100%; padding: 0; margin: 0; float: none; }
.wfr-property-card .property_listing { height: 100%; }
.wfr-property-card .listing-unit-img-wrapper { position: relative; aspect-ratio: 525 / 328; min-height: 0; overflow: hidden; background: #e9ecef; }
.wfr-property-card .wfr-card-image-link, .wfr-property-card .wfr-card-image { display: block; width: 100%; height: 100%; }
.wfr-property-card .wfr-card-image { object-fit: cover; transition: transform .35s ease; }
.wfr-property-card .property_listing:hover .wfr-card-image { transform: scale(1.025); }
.wfr-property-card .featured_gradient { position: absolute; z-index: 1; inset: 40% 0 0; background: linear-gradient(transparent,rgba(0,0,0,.36)); pointer-events: none; }
.wfr-property-card .tag-wrapper { position: absolute; z-index: 2; top: 14px; left: 14px; }
.wfr-property-card .action_tag_wrapper { background: var(--wfr-accent); color: #fff; }
.wfr-flexmls-favorite { position: absolute; z-index: 3; top: 12px; right: 12px; }
.wfr-flexmls-favorite .flexmls-portal-links { margin: 0; }
.wfr-property-card .property-unit-information-wrapper { padding: 20px 0 0; }
.wfr-property-card h4 { margin: 0 0 9px; line-height: 1.35; }
.wfr-property-card h4 a { color: inherit; text-decoration: none; }
.wfr-property-card .property_card_categories_wrapper { min-height: 20px; }
.wfr-property-card .property_listing_details_v2 { min-height: 24px; }
.wfr-property-card .wfr-unparsed-details { color: #6c757d; font-size: 13px; }
.wfr-property-card .listing_unit_price_wrapper { margin-top: 13px; }
.wfr-property-card .wfr-flexmls-attribution { margin-top: 10px; color: #5f6871; font-size: 11px; line-height: 1.45; }
.wfr-property-card .wfr-flexmls-compliance { margin-top: 12px; color: #77818b; font-size: 11px; line-height: 1.45; }
.wfr-property-card .wfr-flexmls-compliance .flexmls-last-modified-and-idx-wrapper { display: block; }

/* Use the theme's content width and spacing while retaining all Flexmls controls. */
.wfr-flexmls-results { max-width: 1320px; margin: 0 auto; }
.wfr-flexmls-results .flexmls-listings-list-wrapper { margin-top: 25px; }
.wfr-flexmls-search { padding: 24px; border-radius: 3px; box-shadow: 0 1px 12px rgba(0,0,0,.08); }
.wfr-flexmls-search .flexmls_connect__search_v2_main { gap: 14px; }

/* Layout-2 bridge. Data and controls remain in Flexmls' native DOM. */
.wfr-flexmls-single { max-width: 1320px; margin: 0 auto; padding: 0; color: inherit; }
.wfr-flexmls-single .wfr-layout2-gallery { width: 100%; margin: 0 0 28px; }
.wfr-flexmls-single .flexmls-v2-slideshow-frame { position: relative; overflow: hidden; background: #171717; }
.wfr-flexmls-single #listing-slideshow .owl-item,
.wfr-flexmls-single #listing-slideshow .listing-image { height: min(52vw, 620px); }
.wfr-flexmls-single #listing-slideshow img { width: 100%; height: min(52vw, 620px); object-fit: cover; }
.wfr-flexmls-single .wfr-layout2-title { display: flex; align-items: flex-start; gap: 18px; margin: 0 0 22px; padding: 0 0 20px; border-bottom: 1px solid #ececec; }
.wfr-flexmls-single .wfr-layout2-title .title-and-details-wrapper { display: flex; flex: 1; justify-content: space-between; gap: 20px; }
.wfr-flexmls-single .property-title { margin: 0; color: inherit; font-size: clamp(25px, 3vw, 36px); line-height: 1.2; }
.wfr-flexmls-single .price-and-actions-wrapper { text-align: right; white-space: nowrap; }
.wfr-flexmls-single .flexmls-price { color: var(--wfr-accent); font-weight: 700; }
.wfr-flexmls-single .wfr-layout2-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; margin: 0; }
.wfr-flexmls-single .wfr-layout2-actions .back-to-search-link { color: inherit; font-size: 13px; text-decoration: none; }
.wfr-flexmls-single .wfr-layout2-actions .flexmls-btn { border-radius: 0; font-size: 13px; }
.wfr-flexmls-single .wfr-layout2-section { margin: 0 0 26px; padding: 24px 0; border-bottom: 1px solid #ececec; }
.wfr-flexmls-single .main-details-section { display: flex; justify-content: space-between; gap: 24px; }
.wfr-flexmls-single .main-details-section .flexmls-details { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.wfr-flexmls-single .main-details-section .flexmls-detail { margin: 0; }
.wfr-flexmls-single .wfr-overview-item { display: inline-flex; align-items: center; gap: 7px; }
.wfr-flexmls-single .wfr-overview-item::before { color: var(--wfr-accent); font-family: "Font Awesome 5 Free"; font-size: 15px; font-weight: 900; }
.wfr-flexmls-single .wfr-overview-bedrooms::before { content: "\f236"; }
.wfr-flexmls-single .wfr-overview-baths::before,
.wfr-flexmls-single .wfr-overview-bathrooms::before { content: "\f2cd"; }
.wfr-flexmls-single .wfr-overview-square-footage::before,
.wfr-flexmls-single .wfr-overview-living-area::before { content: "\f1ad"; }
.wfr-flexmls-single .wfr-overview-property-type::before { content: "\f015"; }
.wfr-flexmls-single .wfr-overview-status::before { content: "\f058"; }
.wfr-flexmls-single .overview-section h2,
.wfr-flexmls-single .more-information-toggle h2 { font-size: 22px; color: inherit; }
.wfr-flexmls-single .overview-subhead { font-size: 16px; }
.wfr-flexmls-single .flexmls-description { max-width: 900px; line-height: 1.75; }
.wfr-flexmls-single .details-section { padding: 17px 0; border-bottom: 1px solid #ececec; }
.wfr-flexmls-single .detail-section-header { margin: 0; color: inherit; font-size: 17px; }
.wfr-flexmls-single .listing-detail-rows { display: grid; grid-template-columns: minmax(160px, .7fr) 1.3fr; gap: 8px 20px; margin: 18px 0 0; }
.wfr-flexmls-single .listing-detail-rows dt,
.wfr-flexmls-single .listing-detail-rows dd { margin: 0; }
.wfr-flexmls-single .disclosure-section { color: #69727d; font-size: 12px; line-height: 1.6; }
.wfr-flexmls-single > .flexmls-actions-wrapper { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.wfr-flexmls-single .flexmls-btn-primary { background: var(--wfr-accent); border-color: var(--wfr-accent); }
@media (max-width: 1199px) { .wfr-flexmls-results .flexmls-listings-list-wrapper { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 991px) { .wfr-flexmls-results .flexmls-listings-list-wrapper { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; } }
@media (max-width: 767px) { .wfr-flexmls-single .wfr-layout2-title, .wfr-flexmls-single .wfr-layout2-title .title-and-details-wrapper, .wfr-flexmls-single .main-details-section { flex-direction: column; } .wfr-flexmls-single .price-and-actions-wrapper { text-align: left; } .wfr-flexmls-single .wfr-layout2-actions { flex-wrap: wrap; } .wfr-flexmls-single #listing-slideshow .owl-item, .wfr-flexmls-single #listing-slideshow img { height: 62vw; } .wfr-flexmls-single .listing-detail-rows { grid-template-columns: 1fr; gap: 3px; } }
@media (max-width: 575px) { .wfr-flexmls-results .flexmls-listings-list-wrapper { grid-template-columns: 1fr; } .wfr-flexmls-single { padding: 0 10px; } }
