Build without React: HTML, CSS and JavaScript
Build the same cards, listing page, search box, filters, forms and map as the React recipe components on any stack, with one stylesheet, the exact HTML of each widget and one small script.
The React components in @ruuster/idx-recipes also come as plain files, so a site built with PHP,
Python, Ruby on Rails, Go, WordPress templates or plain HTML shows the same UI. You print the HTML
from your own templates on your server, and two files do the rest:
| File | What it is |
|---|---|
ruuster-idx.css |
The stylesheet of the recipe components, with every rule scoped under .rw-recipes |
ruuster-idx.js |
One small script with no dependencies. It runs the card photos, the search box, the filters and the More filters drawer, the map and its drawing tools, every screen of the listing page (the header, the gallery and lightbox, the share, contact and tour screens, the mortgage calculator and the location map), the lead forms and the GA4 events |
html/<widget>.html |
The exact markup each React component renders, one file per widget, with the API field behind each value in a comment at the top |
fields.md and fields.json |
Which element or attribute takes which API field, for every widget |
HOOKS.md |
The data-rw-* attributes the script reads, and what it does with each one |
All of them are generated from the React components, so a page built from them matches a React
recipe page. Both files are served from idx.ruuster.com (step 1) and printed in full at the end of
this page.
No key in the page
The widgets that ask the API from the browser (the search box, the filter choices and the mortgage calculator) carry no key. Where they send their requests depends on your site:
- Your server runs JavaScript (Node.js, or a platform such as Cloudflare Workers, Vercel or
Netlify functions): add the SDK's ready-made listings route,
createListingsRoute({ basePath: "/api/idx" })from@ruuster/idx/route, and putdata-rw-base-url="/api/idx"on each of those widgets. The route adds your secret key on your server and passes on only what a page may ask for. No key in your pages shows it. - Your server runs another language (PHP, Python, Ruby on Rails, Go), or your site is built in a
page builder (WordPress, Squarespace, Webflow, Wix): set
data-rw-base-url="https://idx.ruuster.com/v1"(or leave the attribute out). The Listings API recognizes your site from its website address, which must be on your account's allowed domains and approved for your MLSs. A page onlocalhostcan't be recognized this way, so test these widgets on a staging address you added to your account. Your server's own calls keep using your secret key.
Either way, delete any data-rw-key attribute from the markup you copy below, and never write your
own pass-through route: a hand-written one can pass on calls only your secret key should make.
Step 1: Add the stylesheet and the script
Paste these two lines into the <head> of every page that shows listings. They load both files from
idx.ruuster.com, at a pinned version that never changes, and the integrity value makes the
browser refuse any file that isn't exactly this one:
packages/ruuster-idx-recipes/static/hosted.html
<!-- The Ruuster Listings API stylesheet and script, served from idx.ruuster.com.
This pinned version never changes, and the integrity value makes the browser refuse any other file.
To get fixes as they ship instead, use https://idx.ruuster.com/static/v1/ruuster-idx.css and .js without integrity. -->
<link rel="stylesheet" href="https://idx.ruuster.com/static/v1/c789dda97d0d/ruuster-idx.css" integrity="sha384-6oXzodFyrdREkYp/A7oMooDUoJI2qIDPWw1ZB7eqGZ6h49/joB4VPRzYHYxyeSfi" crossorigin="anonymous">
<script defer src="https://idx.ruuster.com/static/v1/c789dda97d0d/ruuster-idx.js" integrity="sha384-L/Q8Sn95IHC85Gbj69Dg/P3S5Ty3coze69MkmUpqsu2uaufrDroCaeXd8vTG0ME2" crossorigin="anonymous"></script>
To pick up fixes as they ship instead of a pinned version, load the current version 1 files:
<link rel="stylesheet" href="https://idx.ruuster.com/static/v1/ruuster-idx.css">
<script defer src="https://idx.ruuster.com/static/v1/ruuster-idx.js"></script>
A pinned version keeps working after a newer one ships, so you move to a new version when you choose.
https://idx.ruuster.com/static/v1/manifest.json always names the newest pinned version with its
integrity values. If you would rather serve the files yourself, copy them from the end of this page
into your public folder and point both tags at your own copies.
The script waits for the page to load, finds every widget by its data-rw-* attributes and enhances
it. Loading it twice changes nothing. When your page adds widgets later, such as after loading more
results, call window.RuusterIdx.enhance(window) and the script enhances only the new ones.
Step 2: Print your brand variables
Your brand colors and fonts are in data.themeVars of GET https://idx.ruuster.com/v1/meta. Read
them on your server with your secret key, keep them in your cache, and print them as one rule right
after the stylesheet:
<style>:where(.rw-recipes){--rw-colors-primary:#1f2a44;--rw-fonts-sans:Lato,Arial,sans-serif}</style>
Join every pair with ;. Print a pair only when its name matches --rw-[a-z0-9-]+ and its value
has no ;, {, }, <, > or backslash, so a stored value can never break out of the <style>
element. A .rw-recipes { } rule in your own stylesheet still wins over it, because :where() adds
no specificity. Match your brand lists every variable.
Step 3: Copy each widget's HTML and fill it from the API
Each widget below is the exact markup of its React component over sample data, followed by the table
of the API field that fills each value. Print the markup from your template, put each listing's own
values in place of the sample ones, and escape every value for HTML. JSON attributes, such as
data-rw-photos, hold the JSON text with its quotes escaped as ", which every template
language's HTML escape function does for you.
A few rules apply to every widget:
- Print the address with the rules in the table. When
address.hiddenis true, show only the city, state and ZIP code, and never a street, a unit or a map pin. - Print each board's attribution lines on cards and listing pages, and every board's disclaimer with the "Data last updated" line on every page that shows its listings.
- Ids only need to be unique on the page. Keep each label's
for, each input'saria-controlsand eacharia-labelledbypointing at the id it names.
Listing card
packages/ruuster-idx-recipes/static/html/listing-card.html
<!--
Listing card with photos and the attribution its board requires on cards.
From the React component ListingCard. Generated by npm run idx:recipes-static from @ruuster/idx-recipes. Do not edit it by hand.
Fill each value from:
article.rw-card[data-listing-id]: listing.id
article.rw-card[data-status]: listing.status
.rw-card__photo[src]: listing.photos[0].url
.rw-card__photo[srcset]: listing.photos[0].url with ?width=480, ?width=800 and ?width=1200 (photos.ruuster.com only; leave srcset and sizes out for photos on other hosts)
.rw-card__photo[width] and [height]: listing.photos[0].width and listing.photos[0].height (800 and 600 when missing)
.rw-card__photo[alt]: listing.photos[0].alt, else the listing name (the address, or "Home in {address.city}" when address.hidden is true)
.rw-card__photo[loading] and [fetchpriority]: loading="eager" and fetchpriority="high" on the first card of the page only; loading="lazy" and no fetchpriority on every other card
.rw-card__gallery[data-rw-photos]: listing.photos as JSON (url, width, height, alt of each photo), only when there are two or more photos
.rw-card__gallery[data-rw-photo-alt]: the listing name, used for a photo with no alt; only when there are two or more photos
.rw-card__arrow, .rw-card__dots: only when listing.photos has two or more photos; one .rw-card__dot per photo, up to five, the first with rw-card__dot--on
.rw-card__nophoto: in place of the photo when listing.photos is empty
.rw-card__badge: one pill: "Sold {listing.closeDate as Sep 1, 2026}" when listing.status is closed; else "Open {listing.openHouses[0], short form}" when listing.badges has open_house; else listing.badges[0].kind as New, Back on market, Price change or Coming soon. The modifier class is rw-card__badge--{kind}. Leave the pill out when none applies
.rw-card__price: listing.closePrice when listing.status is closed, else listing.price, as fmt.usd ($480,000); leave the line out when there is no price
.rw-card__facts li: listing.beds ("6 beds", "1 bed"), listing.baths ("5 baths"), listing.sqft ("6,838 sq ft"); leave out a fact that is missing or 0
.rw-card__link[href]: listing.href
.rw-card__link text: listing.address: street and unit, then city, state and ZIP; when listing.address.hidden is true, only city, state and ZIP
.rw-card__attribution: listing.attribution.line, when the listing's board (the meta.mls entry whose mlsId is listing.mls.id) lists listing_office, listing_agent or agent_contact with placement card in required
.rw-card__courtesy: listing.attribution.courtesy, when the board lists courtesy_line with placement card
.rw-card__logo: the board's logo (url, width, height, alt), when the board lists mls_logo with placement card
Every data-rw-* attribute is a hook for ruuster-idx.js; see ../HOOKS.md.
-->
<article class="rw-recipes rw-card" data-listing-id="0b6c3b52-7f0c-4a3e-9a51-6f0e2d1a0001" data-status="active">
<div class="rw-card__gallery" data-rw-gallery="card" data-rw-photos="[{"url":"https://photos.ruuster.com/l/1/0.jpg","width":1200,"height":800,"alt":"Two-story brick house with a two-car garage"},{"url":"https://photos.ruuster.com/l/1/1.jpg","width":1200,"height":800,"alt":"Kitchen with an island"},{"url":"https://photos.ruuster.com/l/1/2.jpg","width":1200,"height":800,"alt":"Fenced back yard with a patio"}]" data-rw-photo-alt="1417 Sterlingbrooke Dr SW, Powder Springs, GA 30127">
<img class="rw-card__photo" src="https://photos.ruuster.com/l/1/0.jpg" width="1200" height="800" alt="Two-story brick house with a two-car garage" loading="eager" decoding="async" srcSet="https://photos.ruuster.com/l/1/0.jpg?width=480 480w, https://photos.ruuster.com/l/1/0.jpg?width=800 800w, https://photos.ruuster.com/l/1/0.jpg?width=1200 1200w" sizes="(min-width: 1600px) 25vw, (min-width: 1280px) 33vw, (min-width: 602px) 50vw, 100vw" fetchpriority="high" data-rw-gallery-photo=""/>
<button type="button" class="rw-card__arrow rw-card__arrow--prev" aria-label="Previous photo" data-rw-gallery-prev="">
<svg class="rw-icon rw-card__arrow-icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="arrow-left-white" focusable="false" aria-hidden="true"><g fill="none"><path d="M13 17L7 11L13 5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></g></svg>
</button>
<button type="button" class="rw-card__arrow rw-card__arrow--next" aria-label="Next photo" data-rw-gallery-next="">
<svg class="rw-icon rw-card__arrow-icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="arrow-right-white" focusable="false" aria-hidden="true"><g fill="none"><path d="M9 17L15 11L9 5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></g></svg>
</button>
<span class="rw-card__dots" aria-hidden="true" data-rw-gallery-dots="">
<span class="rw-card__dot rw-card__dot--on" data-rw-gallery-dot=""></span>
<span class="rw-card__dot" data-rw-gallery-dot=""></span>
<span class="rw-card__dot" data-rw-gallery-dot=""></span>
</span>
</div>
<span class="rw-card__badge rw-card__badge--new">New</span>
<div class="rw-card__band">
<p class="rw-card__price">$480,000</p>
<ul class="rw-card__facts">
<li class="rw-fact"><svg class="rw-icon rw-fact__icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="beds" focusable="false" aria-hidden="true"><g fill="none"><path d="M10.4 10.0448V7.52239H9.00002C8.22881 7.52239 7.71077 7.52363 7.32434 7.57403C6.95517 7.62218 6.79717 7.7054 6.69292 7.80654C6.58866 7.90768 6.50288 8.06096 6.45325 8.41911C6.4013 8.79401 6.40002 9.29659 6.40002 10.0448L10.4 10.0448Z" fill="currentColor"/><path d="M15.6 10.0448C15.6 9.29659 15.5987 8.79401 15.5468 8.41911C15.4972 8.06096 15.4114 7.90768 15.3071 7.80654C15.2029 7.7054 15.0449 7.62218 14.6757 7.57403C14.2893 7.52363 13.7712 7.52239 13 7.52239H11.6V10.0448L15.6 10.0448Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M11.8 5H10.2C7.18303 5 5.67454 5 4.73728 5.90928C3.9193 6.70284 3.8152 7.9185 3.80195 10.1607V11.4158C3.49768 11.5857 3.2576 11.8491 3.12179 12.1672C3 12.4524 3 12.8141 3 13.5373C3 14.2606 3 14.6222 3.12179 14.9074C3.28418 15.2878 3.59566 15.59 3.98771 15.7475C4.18962 15.8287 4.42864 15.8541 4.8 15.862V17.4179C4.8 17.7394 5.06863 18 5.4 18C5.73137 18 6 17.7394 6 17.4179V15.8657H16V17.4179C16 17.7394 16.2686 18 16.6 18C16.9314 18 17.2 17.7394 17.2 17.4179V15.862C17.5714 15.8541 17.8104 15.8287 18.0123 15.7475C18.4043 15.59 18.7158 15.2878 18.8782 14.9074C19 14.6222 19 14.2606 19 13.5373C19 12.8141 19 12.4524 18.8782 12.1672C18.7424 11.8491 18.5023 11.5857 18.1981 11.4158V10.1607C18.1848 7.9185 18.0807 6.70284 17.2628 5.90928C16.3255 5 14.817 5 11.8 5ZM16.8 11.2091V10.0044C16.8 9.30712 16.8001 8.72559 16.7361 8.26399C16.6686 7.77674 16.52 7.33684 16.1557 6.98334C15.7913 6.62984 15.3378 6.48574 14.8356 6.42023C14.3598 6.35817 13.7604 6.35819 13.0416 6.35821H8.95842C8.23964 6.35819 7.64026 6.35817 7.16444 6.42023C6.6622 6.48574 6.20876 6.62984 5.84439 6.98334C5.48001 7.33684 5.33148 7.77674 5.26395 8.26399C5.19998 8.72561 5.2 9.30709 5.20002 10.0044V11.2091C5.26357 11.209 5.33015 11.209 5.4 11.209H16.6C16.6699 11.209 16.7365 11.209 16.8 11.2091Z" fill="currentColor"/></g></svg>6 beds</li>
<li class="rw-fact"><svg class="rw-icon rw-fact__icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="bath" focusable="false" aria-hidden="true"><g fill="none"><path d="M4.86047 5.33311C4.86047 4.66106 5.40528 4.11626 6.07733 4.11626C6.57491 4.11626 7.02237 4.4192 7.20716 4.88118L7.31379 5.14774C6.87136 5.47013 6.5099 5.91966 6.28724 6.46795C5.97445 7.23818 5.99132 8.06533 6.27278 8.77964C6.32816 8.92017 6.43812 9.03225 6.57756 9.0903C6.71701 9.14835 6.87403 9.1474 7.01276 9.08768L11.4487 7.17806C11.7256 7.05886 11.8578 6.7413 11.7473 6.46081C11.4657 5.74622 10.9159 5.13719 10.1603 4.8144C9.55652 4.55646 8.91592 4.52175 8.32557 4.67152L8.2436 4.46661C7.88928 3.58083 7.03137 3 6.07733 3C4.78877 3 3.74419 4.04457 3.74419 5.33311V10.4417H3.55814C3.24989 10.4417 3 10.6916 3 10.9999C3 11.3081 3.24989 11.558 3.55814 11.558H3.74419V11.7441C3.74419 11.7469 3.74421 11.7497 3.74425 11.7525C3.74418 11.7663 3.74418 11.7801 3.74419 11.7937L3.74419 11.8219C3.74419 12.1011 3.74419 12.2648 3.75577 12.4474C3.8614 14.1117 4.76078 15.6486 6.06424 16.6535C6.05401 16.6696 6.04451 16.6864 6.03579 16.7038L5.2916 18.1921C5.15375 18.4678 5.2655 18.8031 5.54121 18.941C5.81692 19.0788 6.15218 18.9671 6.29004 18.6914L7.0102 17.251C7.60683 17.553 8.25567 17.7518 8.9305 17.8201C9.11241 17.8385 9.22344 17.8427 9.41256 17.8498L9.41763 17.85C9.9685 17.8707 10.5077 17.8835 11 17.8835C11.4923 17.8835 12.0315 17.8707 12.5824 17.85L12.5874 17.8498C12.7765 17.8427 12.8876 17.8385 13.0695 17.8201C13.7444 17.7518 14.3933 17.553 14.99 17.251L15.7102 18.6914C15.8481 18.9671 16.1833 19.0788 16.459 18.941C16.7347 18.8031 16.8465 18.4678 16.7086 18.1921L15.9645 16.7038C15.9557 16.6863 15.9462 16.6695 15.9359 16.6534C17.2393 15.6485 18.1386 14.1117 18.2442 12.4474C18.2558 12.2649 18.2558 12.1012 18.2558 11.8219L18.2558 11.7937C18.2559 11.749 18.2559 11.7025 18.2531 11.6596C18.2509 11.6253 18.2473 11.5915 18.2425 11.558H18.4419C18.7501 11.558 19 11.3081 19 10.9999C19 10.6916 18.7501 10.4417 18.4419 10.4417H4.86047V5.33311Z" fill="currentColor"/></g></svg>5 baths</li>
<li class="rw-fact"><svg class="rw-icon rw-fact__icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="square" focusable="false" aria-hidden="true"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.02513 5.02513C4 6.05025 4 7.70017 4 11C4 14.2998 4 15.9497 5.02513 16.9749C6.05025 18 7.70017 18 11 18C14.2998 18 15.9497 18 16.9749 16.9749C18 15.9497 18 14.2998 18 11C18 7.70017 18 6.05025 16.9749 5.02513C15.9497 4 14.2998 4 11 4C7.70017 4 6.05025 4 5.02513 5.02513ZM10.1232 6.79555C10.1256 7.08549 9.89256 7.32252 9.60263 7.32498C9.00351 7.33006 8.58507 7.34985 8.27026 7.41152C7.9701 7.47031 7.80396 7.55998 7.68197 7.68197C7.55998 7.80396 7.47031 7.9701 7.41152 8.27026C7.34985 8.58507 7.33006 9.00351 7.32498 9.60263C7.32252 9.89256 7.08549 10.1256 6.79555 10.1232C6.50561 10.1207 6.27256 9.88366 6.27502 9.59372C6.28007 8.99824 6.2985 8.49011 6.3811 8.06842C6.46657 7.63208 6.62721 7.2518 6.93951 6.93951C7.2518 6.62721 7.63208 6.46657 8.06842 6.3811C8.49011 6.2985 8.99824 6.28007 9.59372 6.27502C9.88366 6.27256 10.1207 6.50561 10.1232 6.79555ZM11.8751 6.79555C11.8776 6.50561 12.1146 6.27256 12.4046 6.27502C13 6.28007 13.5082 6.2985 13.9299 6.3811C14.3662 6.46657 14.7465 6.62721 15.0588 6.93951C15.3711 7.2518 15.5317 7.63208 15.6172 8.06842C15.6998 8.49011 15.7182 8.99824 15.7233 9.59372C15.7257 9.88366 15.4927 10.1207 15.2027 10.1232C14.9128 10.1256 14.6758 9.89256 14.6733 9.60263C14.6682 9.00351 14.6484 8.58507 14.5868 8.27026C14.528 7.9701 14.4383 7.80396 14.3163 7.68197C14.1943 7.55998 14.0282 7.47031 13.728 7.41152C13.4132 7.34985 12.9948 7.33006 12.3957 7.32498C12.1057 7.32252 11.8727 7.08549 11.8751 6.79555ZM7.32498 12.396C7.32252 12.1061 7.08549 11.873 6.79555 11.8755C6.50561 11.8779 6.27256 12.115 6.27502 12.4049C6.28007 13.0004 6.2985 13.5085 6.3811 13.9302C6.46657 14.3666 6.62721 14.7468 6.93951 15.0591C7.2518 15.3714 7.63208 15.5321 8.06842 15.6175C8.49011 15.7001 8.99824 15.7186 9.59372 15.7236C9.88366 15.7261 10.1207 15.493 10.1232 15.2031C10.1256 14.9131 9.89256 14.6761 9.60263 14.6737C9.00351 14.6686 8.58507 14.6488 8.27026 14.5871C7.9701 14.5283 7.80396 14.4387 7.68197 14.3167C7.55998 14.1947 7.47031 14.0285 7.41152 13.7284C7.34985 13.4136 7.33006 12.9951 7.32498 12.396ZM15.2027 11.8755C15.4927 11.8779 15.7257 12.115 15.7233 12.4049C15.7182 13.0004 15.6998 13.5085 15.6172 13.9302C15.5317 14.3666 15.3711 14.7468 15.0588 15.0591C14.7465 15.3714 14.3662 15.5321 13.9299 15.6175C13.5082 15.7001 13 15.7186 12.4046 15.7236C12.1146 15.7261 11.8776 15.493 11.8751 15.2031C11.8727 14.9131 12.1057 14.6761 12.3957 14.6737C12.9948 14.6686 13.4132 14.6488 13.728 14.5871C14.0282 14.5283 14.1943 14.4387 14.3163 14.3167C14.4383 14.1947 14.528 14.0285 14.5868 13.7284C14.6484 13.4136 14.6682 12.9951 14.6733 12.396C14.6758 12.1061 14.9128 11.873 15.2027 11.8755Z" fill="currentColor"/></g></svg>6,838 sq ft</li>
</ul>
<h3 class="rw-card__address">
<a class="rw-card__link" href="/homes/1417-sterlingbrooke-dr-sw-powder-springs-ga-30127-0b6c3b52-7f0c-4a3e-9a51-6f0e2d1a0001">1417 Sterlingbrooke Dr SW, Powder Springs, GA 30127</a>
</h3>
<p class="rw-card__attribution">Listing provided by Peach Realty</p>
<p class="rw-card__courtesy">Listing courtesy of Peach Realty</p>
</div>
</article>
| Element | Filled from |
|---|---|
article.rw-card[data-listing-id] |
listing.id |
article.rw-card[data-status] |
listing.status |
.rw-card__photo[src] |
listing.photos[0].url |
.rw-card__photo[srcset] |
listing.photos[0].url with ?width=480, ?width=800 and ?width=1200 (photos.ruuster.com only; leave srcset and sizes out for photos on other hosts) |
.rw-card__photo[width] and [height] |
listing.photos[0].width and listing.photos[0].height (800 and 600 when missing) |
.rw-card__photo[alt] |
listing.photos[0].alt, else the listing name (the address, or "Home in {address.city}" when address.hidden is true) |
.rw-card__photo[loading] and [fetchpriority] |
loading="eager" and fetchpriority="high" on the first card of the page only; loading="lazy" and no fetchpriority on every other card |
.rw-card__gallery[data-rw-photos] |
listing.photos as JSON (url, width, height, alt of each photo), only when there are two or more photos |
.rw-card__gallery[data-rw-photo-alt] |
the listing name, used for a photo with no alt; only when there are two or more photos |
.rw-card__arrow, .rw-card__dots |
only when listing.photos has two or more photos; one .rw-card__dot per photo, up to five, the first with rw-card__dot--on |
.rw-card__nophoto |
in place of the photo when listing.photos is empty |
.rw-card__badge |
one pill: "Sold {listing.closeDate as Sep 1, 2026}" when listing.status is closed; else "Open {listing.openHouses[0], short form}" when listing.badges has open_house; else listing.badges[0].kind as New, Back on market, Price change or Coming soon. The modifier class is rw-card__badge--{kind}. Leave the pill out when none applies |
.rw-card__price |
listing.closePrice when listing.status is closed, else listing.price, as fmt.usd ($480,000); leave the line out when there is no price |
.rw-card__facts li |
listing.beds ("6 beds", "1 bed"), listing.baths ("5 baths"), listing.sqft ("6,838 sq ft"); leave out a fact that is missing or 0 |
.rw-card__link[href] |
listing.href |
.rw-card__link text |
listing.address: street and unit, then city, state and ZIP; when listing.address.hidden is true, only city, state and ZIP |
.rw-card__attribution |
listing.attribution.line, when the listing's board (the meta.mls entry whose mlsId is listing.mls.id) lists listing_office, listing_agent or agent_contact with placement card in required |
.rw-card__courtesy |
listing.attribution.courtesy, when the board lists courtesy_line with placement card |
.rw-card__logo |
the board's logo (url, width, height, alt), when the board lists mls_logo with placement card |
A card with no photos shows a panel in place of the photo, a card whose address is hidden shows only the city, state and ZIP code, and a sold card shows its close price and close date.
packages/ruuster-idx-recipes/static/html/listing-card-no-photos.html
<!--
Listing card for a home with no photos.
From the React component ListingCard. Generated by npm run idx:recipes-static from @ruuster/idx-recipes. Do not edit it by hand.
Fill each value from:
article.rw-card[data-listing-id]: listing.id
article.rw-card[data-status]: listing.status
.rw-card__photo[src]: listing.photos[0].url
.rw-card__photo[srcset]: listing.photos[0].url with ?width=480, ?width=800 and ?width=1200 (photos.ruuster.com only; leave srcset and sizes out for photos on other hosts)
.rw-card__photo[width] and [height]: listing.photos[0].width and listing.photos[0].height (800 and 600 when missing)
.rw-card__photo[alt]: listing.photos[0].alt, else the listing name (the address, or "Home in {address.city}" when address.hidden is true)
.rw-card__photo[loading] and [fetchpriority]: loading="eager" and fetchpriority="high" on the first card of the page only; loading="lazy" and no fetchpriority on every other card
.rw-card__gallery[data-rw-photos]: listing.photos as JSON (url, width, height, alt of each photo), only when there are two or more photos
.rw-card__gallery[data-rw-photo-alt]: the listing name, used for a photo with no alt; only when there are two or more photos
.rw-card__arrow, .rw-card__dots: only when listing.photos has two or more photos; one .rw-card__dot per photo, up to five, the first with rw-card__dot--on
.rw-card__nophoto: in place of the photo when listing.photos is empty
.rw-card__badge: one pill: "Sold {listing.closeDate as Sep 1, 2026}" when listing.status is closed; else "Open {listing.openHouses[0], short form}" when listing.badges has open_house; else listing.badges[0].kind as New, Back on market, Price change or Coming soon. The modifier class is rw-card__badge--{kind}. Leave the pill out when none applies
.rw-card__price: listing.closePrice when listing.status is closed, else listing.price, as fmt.usd ($480,000); leave the line out when there is no price
.rw-card__facts li: listing.beds ("6 beds", "1 bed"), listing.baths ("5 baths"), listing.sqft ("6,838 sq ft"); leave out a fact that is missing or 0
.rw-card__link[href]: listing.href
.rw-card__link text: listing.address: street and unit, then city, state and ZIP; when listing.address.hidden is true, only city, state and ZIP
.rw-card__attribution: listing.attribution.line, when the listing's board (the meta.mls entry whose mlsId is listing.mls.id) lists listing_office, listing_agent or agent_contact with placement card in required
.rw-card__courtesy: listing.attribution.courtesy, when the board lists courtesy_line with placement card
.rw-card__logo: the board's logo (url, width, height, alt), when the board lists mls_logo with placement card
Every data-rw-* attribute is a hook for ruuster-idx.js; see ../HOOKS.md.
-->
<article class="rw-recipes rw-card" data-listing-id="0b6c3b52-7f0c-4a3e-9a51-6f0e2d1a0003" data-status="active">
<div class="rw-card__gallery" data-rw-gallery="card">
<div class="rw-card__nophoto" role="img" aria-label="No photo is available for this home.">
<svg class="rw-icon rw-card__nophoto-icon" viewBox="0 0 120 120" width="40" height="40" data-rw-icon="listing-no-image" focusable="false" aria-hidden="true"><g fill="none"><path d="M90 40C90 45.5228 85.5228 50 80 50C74.4772 50 70 45.5228 70 40C70 34.4772 74.4772 30 80 30C85.5228 30 90 34.4772 90 40Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M60.2869 6.25H59.7131C48.1712 6.24994 39.1259 6.24989 32.0685 7.19874C24.8449 8.16993 19.1447 10.1966 14.6707 14.6707C10.1966 19.1447 8.16993 24.8449 7.19874 32.0685C6.24989 39.1259 6.24994 48.1711 6.25 59.713V60.2869C6.24994 71.8288 6.24989 80.8741 7.19874 87.9315C8.16993 95.1552 10.1966 100.855 14.6707 105.329C19.1447 109.803 24.8449 111.83 32.0685 112.801C39.126 113.75 48.1712 113.75 59.7131 113.75H60.2869C71.8288 113.75 80.874 113.75 87.9315 112.801C95.1552 111.83 100.855 109.803 105.329 105.329C109.803 100.855 111.83 95.1552 112.801 87.9315C113.75 80.874 113.75 71.8288 113.75 60.2869V59.7131C113.75 48.1712 113.75 39.126 112.801 32.0685C111.83 24.8449 109.803 19.1447 105.329 14.6707C100.855 10.1966 95.1552 8.16993 87.9315 7.19874C80.8741 6.24989 71.8288 6.24994 60.2869 6.25ZM19.974 19.974C22.8223 17.1257 26.6759 15.4912 33.0679 14.6319C39.5678 13.758 48.1089 13.75 60 13.75C71.8911 13.75 80.4322 13.758 86.9321 14.6319C93.3241 15.4912 97.1777 17.1257 100.026 19.974C102.874 22.8223 104.509 26.6759 105.368 33.0679C106.242 39.5678 106.25 48.1089 106.25 60C106.25 62.2511 106.25 64.3822 106.243 66.4021L105.133 66.2484C90.9142 64.2796 77.9025 71.6714 71.2768 82.8129C62.7295 61.1881 40.1422 46.4403 14.9037 50.0643L13.7748 50.2271C13.8317 43.1996 14.0184 37.6308 14.6319 33.0679C15.4912 26.6759 17.1257 22.8223 19.974 19.974Z" fill="currentColor"/></g></svg>
<span class="rw-card__nophoto-text">No photo available</span>
</div>
</div>
<div class="rw-card__band">
<p class="rw-card__price">$315,000</p>
<ul class="rw-card__facts">
<li class="rw-fact"><svg class="rw-icon rw-fact__icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="beds" focusable="false" aria-hidden="true"><g fill="none"><path d="M10.4 10.0448V7.52239H9.00002C8.22881 7.52239 7.71077 7.52363 7.32434 7.57403C6.95517 7.62218 6.79717 7.7054 6.69292 7.80654C6.58866 7.90768 6.50288 8.06096 6.45325 8.41911C6.4013 8.79401 6.40002 9.29659 6.40002 10.0448L10.4 10.0448Z" fill="currentColor"/><path d="M15.6 10.0448C15.6 9.29659 15.5987 8.79401 15.5468 8.41911C15.4972 8.06096 15.4114 7.90768 15.3071 7.80654C15.2029 7.7054 15.0449 7.62218 14.6757 7.57403C14.2893 7.52363 13.7712 7.52239 13 7.52239H11.6V10.0448L15.6 10.0448Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M11.8 5H10.2C7.18303 5 5.67454 5 4.73728 5.90928C3.9193 6.70284 3.8152 7.9185 3.80195 10.1607V11.4158C3.49768 11.5857 3.2576 11.8491 3.12179 12.1672C3 12.4524 3 12.8141 3 13.5373C3 14.2606 3 14.6222 3.12179 14.9074C3.28418 15.2878 3.59566 15.59 3.98771 15.7475C4.18962 15.8287 4.42864 15.8541 4.8 15.862V17.4179C4.8 17.7394 5.06863 18 5.4 18C5.73137 18 6 17.7394 6 17.4179V15.8657H16V17.4179C16 17.7394 16.2686 18 16.6 18C16.9314 18 17.2 17.7394 17.2 17.4179V15.862C17.5714 15.8541 17.8104 15.8287 18.0123 15.7475C18.4043 15.59 18.7158 15.2878 18.8782 14.9074C19 14.6222 19 14.2606 19 13.5373C19 12.8141 19 12.4524 18.8782 12.1672C18.7424 11.8491 18.5023 11.5857 18.1981 11.4158V10.1607C18.1848 7.9185 18.0807 6.70284 17.2628 5.90928C16.3255 5 14.817 5 11.8 5ZM16.8 11.2091V10.0044C16.8 9.30712 16.8001 8.72559 16.7361 8.26399C16.6686 7.77674 16.52 7.33684 16.1557 6.98334C15.7913 6.62984 15.3378 6.48574 14.8356 6.42023C14.3598 6.35817 13.7604 6.35819 13.0416 6.35821H8.95842C8.23964 6.35819 7.64026 6.35817 7.16444 6.42023C6.6622 6.48574 6.20876 6.62984 5.84439 6.98334C5.48001 7.33684 5.33148 7.77674 5.26395 8.26399C5.19998 8.72561 5.2 9.30709 5.20002 10.0044V11.2091C5.26357 11.209 5.33015 11.209 5.4 11.209H16.6C16.6699 11.209 16.7365 11.209 16.8 11.2091Z" fill="currentColor"/></g></svg>3 beds</li>
<li class="rw-fact"><svg class="rw-icon rw-fact__icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="bath" focusable="false" aria-hidden="true"><g fill="none"><path d="M4.86047 5.33311C4.86047 4.66106 5.40528 4.11626 6.07733 4.11626C6.57491 4.11626 7.02237 4.4192 7.20716 4.88118L7.31379 5.14774C6.87136 5.47013 6.5099 5.91966 6.28724 6.46795C5.97445 7.23818 5.99132 8.06533 6.27278 8.77964C6.32816 8.92017 6.43812 9.03225 6.57756 9.0903C6.71701 9.14835 6.87403 9.1474 7.01276 9.08768L11.4487 7.17806C11.7256 7.05886 11.8578 6.7413 11.7473 6.46081C11.4657 5.74622 10.9159 5.13719 10.1603 4.8144C9.55652 4.55646 8.91592 4.52175 8.32557 4.67152L8.2436 4.46661C7.88928 3.58083 7.03137 3 6.07733 3C4.78877 3 3.74419 4.04457 3.74419 5.33311V10.4417H3.55814C3.24989 10.4417 3 10.6916 3 10.9999C3 11.3081 3.24989 11.558 3.55814 11.558H3.74419V11.7441C3.74419 11.7469 3.74421 11.7497 3.74425 11.7525C3.74418 11.7663 3.74418 11.7801 3.74419 11.7937L3.74419 11.8219C3.74419 12.1011 3.74419 12.2648 3.75577 12.4474C3.8614 14.1117 4.76078 15.6486 6.06424 16.6535C6.05401 16.6696 6.04451 16.6864 6.03579 16.7038L5.2916 18.1921C5.15375 18.4678 5.2655 18.8031 5.54121 18.941C5.81692 19.0788 6.15218 18.9671 6.29004 18.6914L7.0102 17.251C7.60683 17.553 8.25567 17.7518 8.9305 17.8201C9.11241 17.8385 9.22344 17.8427 9.41256 17.8498L9.41763 17.85C9.9685 17.8707 10.5077 17.8835 11 17.8835C11.4923 17.8835 12.0315 17.8707 12.5824 17.85L12.5874 17.8498C12.7765 17.8427 12.8876 17.8385 13.0695 17.8201C13.7444 17.7518 14.3933 17.553 14.99 17.251L15.7102 18.6914C15.8481 18.9671 16.1833 19.0788 16.459 18.941C16.7347 18.8031 16.8465 18.4678 16.7086 18.1921L15.9645 16.7038C15.9557 16.6863 15.9462 16.6695 15.9359 16.6534C17.2393 15.6485 18.1386 14.1117 18.2442 12.4474C18.2558 12.2649 18.2558 12.1012 18.2558 11.8219L18.2558 11.7937C18.2559 11.749 18.2559 11.7025 18.2531 11.6596C18.2509 11.6253 18.2473 11.5915 18.2425 11.558H18.4419C18.7501 11.558 19 11.3081 19 10.9999C19 10.6916 18.7501 10.4417 18.4419 10.4417H4.86047V5.33311Z" fill="currentColor"/></g></svg>2 baths</li>
<li class="rw-fact"><svg class="rw-icon rw-fact__icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="square" focusable="false" aria-hidden="true"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.02513 5.02513C4 6.05025 4 7.70017 4 11C4 14.2998 4 15.9497 5.02513 16.9749C6.05025 18 7.70017 18 11 18C14.2998 18 15.9497 18 16.9749 16.9749C18 15.9497 18 14.2998 18 11C18 7.70017 18 6.05025 16.9749 5.02513C15.9497 4 14.2998 4 11 4C7.70017 4 6.05025 4 5.02513 5.02513ZM10.1232 6.79555C10.1256 7.08549 9.89256 7.32252 9.60263 7.32498C9.00351 7.33006 8.58507 7.34985 8.27026 7.41152C7.9701 7.47031 7.80396 7.55998 7.68197 7.68197C7.55998 7.80396 7.47031 7.9701 7.41152 8.27026C7.34985 8.58507 7.33006 9.00351 7.32498 9.60263C7.32252 9.89256 7.08549 10.1256 6.79555 10.1232C6.50561 10.1207 6.27256 9.88366 6.27502 9.59372C6.28007 8.99824 6.2985 8.49011 6.3811 8.06842C6.46657 7.63208 6.62721 7.2518 6.93951 6.93951C7.2518 6.62721 7.63208 6.46657 8.06842 6.3811C8.49011 6.2985 8.99824 6.28007 9.59372 6.27502C9.88366 6.27256 10.1207 6.50561 10.1232 6.79555ZM11.8751 6.79555C11.8776 6.50561 12.1146 6.27256 12.4046 6.27502C13 6.28007 13.5082 6.2985 13.9299 6.3811C14.3662 6.46657 14.7465 6.62721 15.0588 6.93951C15.3711 7.2518 15.5317 7.63208 15.6172 8.06842C15.6998 8.49011 15.7182 8.99824 15.7233 9.59372C15.7257 9.88366 15.4927 10.1207 15.2027 10.1232C14.9128 10.1256 14.6758 9.89256 14.6733 9.60263C14.6682 9.00351 14.6484 8.58507 14.5868 8.27026C14.528 7.9701 14.4383 7.80396 14.3163 7.68197C14.1943 7.55998 14.0282 7.47031 13.728 7.41152C13.4132 7.34985 12.9948 7.33006 12.3957 7.32498C12.1057 7.32252 11.8727 7.08549 11.8751 6.79555ZM7.32498 12.396C7.32252 12.1061 7.08549 11.873 6.79555 11.8755C6.50561 11.8779 6.27256 12.115 6.27502 12.4049C6.28007 13.0004 6.2985 13.5085 6.3811 13.9302C6.46657 14.3666 6.62721 14.7468 6.93951 15.0591C7.2518 15.3714 7.63208 15.5321 8.06842 15.6175C8.49011 15.7001 8.99824 15.7186 9.59372 15.7236C9.88366 15.7261 10.1207 15.493 10.1232 15.2031C10.1256 14.9131 9.89256 14.6761 9.60263 14.6737C9.00351 14.6686 8.58507 14.6488 8.27026 14.5871C7.9701 14.5283 7.80396 14.4387 7.68197 14.3167C7.55998 14.1947 7.47031 14.0285 7.41152 13.7284C7.34985 13.4136 7.33006 12.9951 7.32498 12.396ZM15.2027 11.8755C15.4927 11.8779 15.7257 12.115 15.7233 12.4049C15.7182 13.0004 15.6998 13.5085 15.6172 13.9302C15.5317 14.3666 15.3711 14.7468 15.0588 15.0591C14.7465 15.3714 14.3662 15.5321 13.9299 15.6175C13.5082 15.7001 13 15.7186 12.4046 15.7236C12.1146 15.7261 11.8776 15.493 11.8751 15.2031C11.8727 14.9131 12.1057 14.6761 12.3957 14.6737C12.9948 14.6686 13.4132 14.6488 13.728 14.5871C14.0282 14.5283 14.1943 14.4387 14.3163 14.3167C14.4383 14.1947 14.528 14.0285 14.5868 13.7284C14.6484 13.4136 14.6682 12.9951 14.6733 12.396C14.6758 12.1061 14.9128 11.873 15.2027 11.8755Z" fill="currentColor"/></g></svg>1,650 sq ft</li>
</ul>
<h3 class="rw-card__address">
<a class="rw-card__link" href="/homes/88-magnolia-ct-powder-springs-ga-30127-0b6c3b52-7f0c-4a3e-9a51-6f0e2d1a0003">88 Magnolia Ct, Powder Springs, GA 30127</a>
</h3>
</div>
</article>
packages/ruuster-idx-recipes/static/html/listing-card-hidden-address.html
<!--
Listing card for a home whose address is hidden (city, state and ZIP only).
From the React component ListingCard. Generated by npm run idx:recipes-static from @ruuster/idx-recipes. Do not edit it by hand.
Fill each value from:
article.rw-card[data-listing-id]: listing.id
article.rw-card[data-status]: listing.status
.rw-card__photo[src]: listing.photos[0].url
.rw-card__photo[srcset]: listing.photos[0].url with ?width=480, ?width=800 and ?width=1200 (photos.ruuster.com only; leave srcset and sizes out for photos on other hosts)
.rw-card__photo[width] and [height]: listing.photos[0].width and listing.photos[0].height (800 and 600 when missing)
.rw-card__photo[alt]: listing.photos[0].alt, else the listing name (the address, or "Home in {address.city}" when address.hidden is true)
.rw-card__photo[loading] and [fetchpriority]: loading="eager" and fetchpriority="high" on the first card of the page only; loading="lazy" and no fetchpriority on every other card
.rw-card__gallery[data-rw-photos]: listing.photos as JSON (url, width, height, alt of each photo), only when there are two or more photos
.rw-card__gallery[data-rw-photo-alt]: the listing name, used for a photo with no alt; only when there are two or more photos
.rw-card__arrow, .rw-card__dots: only when listing.photos has two or more photos; one .rw-card__dot per photo, up to five, the first with rw-card__dot--on
.rw-card__nophoto: in place of the photo when listing.photos is empty
.rw-card__badge: one pill: "Sold {listing.closeDate as Sep 1, 2026}" when listing.status is closed; else "Open {listing.openHouses[0], short form}" when listing.badges has open_house; else listing.badges[0].kind as New, Back on market, Price change or Coming soon. The modifier class is rw-card__badge--{kind}. Leave the pill out when none applies
.rw-card__price: listing.closePrice when listing.status is closed, else listing.price, as fmt.usd ($480,000); leave the line out when there is no price
.rw-card__facts li: listing.beds ("6 beds", "1 bed"), listing.baths ("5 baths"), listing.sqft ("6,838 sq ft"); leave out a fact that is missing or 0
.rw-card__link[href]: listing.href
.rw-card__link text: listing.address: street and unit, then city, state and ZIP; when listing.address.hidden is true, only city, state and ZIP
.rw-card__attribution: listing.attribution.line, when the listing's board (the meta.mls entry whose mlsId is listing.mls.id) lists listing_office, listing_agent or agent_contact with placement card in required
.rw-card__courtesy: listing.attribution.courtesy, when the board lists courtesy_line with placement card
.rw-card__logo: the board's logo (url, width, height, alt), when the board lists mls_logo with placement card
Every data-rw-* attribute is a hook for ruuster-idx.js; see ../HOOKS.md.
-->
<article class="rw-recipes rw-card" data-listing-id="0b6c3b52-7f0c-4a3e-9a51-6f0e2d1a0002" data-status="active">
<div class="rw-card__gallery" data-rw-gallery="card">
<img class="rw-card__photo" src="https://photos.ruuster.com/l/2/0.jpg" width="1200" height="800" alt="Two-story house in Powder Springs" loading="lazy" decoding="async" srcSet="https://photos.ruuster.com/l/2/0.jpg?width=480 480w, https://photos.ruuster.com/l/2/0.jpg?width=800 800w, https://photos.ruuster.com/l/2/0.jpg?width=1200 1200w" sizes="(min-width: 1600px) 25vw, (min-width: 1280px) 33vw, (min-width: 602px) 50vw, 100vw" data-rw-gallery-photo=""/>
</div>
<span class="rw-card__badge rw-card__badge--new">New</span>
<div class="rw-card__band">
<p class="rw-card__price">$480,000</p>
<ul class="rw-card__facts">
<li class="rw-fact"><svg class="rw-icon rw-fact__icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="beds" focusable="false" aria-hidden="true"><g fill="none"><path d="M10.4 10.0448V7.52239H9.00002C8.22881 7.52239 7.71077 7.52363 7.32434 7.57403C6.95517 7.62218 6.79717 7.7054 6.69292 7.80654C6.58866 7.90768 6.50288 8.06096 6.45325 8.41911C6.4013 8.79401 6.40002 9.29659 6.40002 10.0448L10.4 10.0448Z" fill="currentColor"/><path d="M15.6 10.0448C15.6 9.29659 15.5987 8.79401 15.5468 8.41911C15.4972 8.06096 15.4114 7.90768 15.3071 7.80654C15.2029 7.7054 15.0449 7.62218 14.6757 7.57403C14.2893 7.52363 13.7712 7.52239 13 7.52239H11.6V10.0448L15.6 10.0448Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M11.8 5H10.2C7.18303 5 5.67454 5 4.73728 5.90928C3.9193 6.70284 3.8152 7.9185 3.80195 10.1607V11.4158C3.49768 11.5857 3.2576 11.8491 3.12179 12.1672C3 12.4524 3 12.8141 3 13.5373C3 14.2606 3 14.6222 3.12179 14.9074C3.28418 15.2878 3.59566 15.59 3.98771 15.7475C4.18962 15.8287 4.42864 15.8541 4.8 15.862V17.4179C4.8 17.7394 5.06863 18 5.4 18C5.73137 18 6 17.7394 6 17.4179V15.8657H16V17.4179C16 17.7394 16.2686 18 16.6 18C16.9314 18 17.2 17.7394 17.2 17.4179V15.862C17.5714 15.8541 17.8104 15.8287 18.0123 15.7475C18.4043 15.59 18.7158 15.2878 18.8782 14.9074C19 14.6222 19 14.2606 19 13.5373C19 12.8141 19 12.4524 18.8782 12.1672C18.7424 11.8491 18.5023 11.5857 18.1981 11.4158V10.1607C18.1848 7.9185 18.0807 6.70284 17.2628 5.90928C16.3255 5 14.817 5 11.8 5ZM16.8 11.2091V10.0044C16.8 9.30712 16.8001 8.72559 16.7361 8.26399C16.6686 7.77674 16.52 7.33684 16.1557 6.98334C15.7913 6.62984 15.3378 6.48574 14.8356 6.42023C14.3598 6.35817 13.7604 6.35819 13.0416 6.35821H8.95842C8.23964 6.35819 7.64026 6.35817 7.16444 6.42023C6.6622 6.48574 6.20876 6.62984 5.84439 6.98334C5.48001 7.33684 5.33148 7.77674 5.26395 8.26399C5.19998 8.72561 5.2 9.30709 5.20002 10.0044V11.2091C5.26357 11.209 5.33015 11.209 5.4 11.209H16.6C16.6699 11.209 16.7365 11.209 16.8 11.2091Z" fill="currentColor"/></g></svg>6 beds</li>
<li class="rw-fact"><svg class="rw-icon rw-fact__icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="bath" focusable="false" aria-hidden="true"><g fill="none"><path d="M4.86047 5.33311C4.86047 4.66106 5.40528 4.11626 6.07733 4.11626C6.57491 4.11626 7.02237 4.4192 7.20716 4.88118L7.31379 5.14774C6.87136 5.47013 6.5099 5.91966 6.28724 6.46795C5.97445 7.23818 5.99132 8.06533 6.27278 8.77964C6.32816 8.92017 6.43812 9.03225 6.57756 9.0903C6.71701 9.14835 6.87403 9.1474 7.01276 9.08768L11.4487 7.17806C11.7256 7.05886 11.8578 6.7413 11.7473 6.46081C11.4657 5.74622 10.9159 5.13719 10.1603 4.8144C9.55652 4.55646 8.91592 4.52175 8.32557 4.67152L8.2436 4.46661C7.88928 3.58083 7.03137 3 6.07733 3C4.78877 3 3.74419 4.04457 3.74419 5.33311V10.4417H3.55814C3.24989 10.4417 3 10.6916 3 10.9999C3 11.3081 3.24989 11.558 3.55814 11.558H3.74419V11.7441C3.74419 11.7469 3.74421 11.7497 3.74425 11.7525C3.74418 11.7663 3.74418 11.7801 3.74419 11.7937L3.74419 11.8219C3.74419 12.1011 3.74419 12.2648 3.75577 12.4474C3.8614 14.1117 4.76078 15.6486 6.06424 16.6535C6.05401 16.6696 6.04451 16.6864 6.03579 16.7038L5.2916 18.1921C5.15375 18.4678 5.2655 18.8031 5.54121 18.941C5.81692 19.0788 6.15218 18.9671 6.29004 18.6914L7.0102 17.251C7.60683 17.553 8.25567 17.7518 8.9305 17.8201C9.11241 17.8385 9.22344 17.8427 9.41256 17.8498L9.41763 17.85C9.9685 17.8707 10.5077 17.8835 11 17.8835C11.4923 17.8835 12.0315 17.8707 12.5824 17.85L12.5874 17.8498C12.7765 17.8427 12.8876 17.8385 13.0695 17.8201C13.7444 17.7518 14.3933 17.553 14.99 17.251L15.7102 18.6914C15.8481 18.9671 16.1833 19.0788 16.459 18.941C16.7347 18.8031 16.8465 18.4678 16.7086 18.1921L15.9645 16.7038C15.9557 16.6863 15.9462 16.6695 15.9359 16.6534C17.2393 15.6485 18.1386 14.1117 18.2442 12.4474C18.2558 12.2649 18.2558 12.1012 18.2558 11.8219L18.2558 11.7937C18.2559 11.749 18.2559 11.7025 18.2531 11.6596C18.2509 11.6253 18.2473 11.5915 18.2425 11.558H18.4419C18.7501 11.558 19 11.3081 19 10.9999C19 10.6916 18.7501 10.4417 18.4419 10.4417H4.86047V5.33311Z" fill="currentColor"/></g></svg>5 baths</li>
<li class="rw-fact"><svg class="rw-icon rw-fact__icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="square" focusable="false" aria-hidden="true"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.02513 5.02513C4 6.05025 4 7.70017 4 11C4 14.2998 4 15.9497 5.02513 16.9749C6.05025 18 7.70017 18 11 18C14.2998 18 15.9497 18 16.9749 16.9749C18 15.9497 18 14.2998 18 11C18 7.70017 18 6.05025 16.9749 5.02513C15.9497 4 14.2998 4 11 4C7.70017 4 6.05025 4 5.02513 5.02513ZM10.1232 6.79555C10.1256 7.08549 9.89256 7.32252 9.60263 7.32498C9.00351 7.33006 8.58507 7.34985 8.27026 7.41152C7.9701 7.47031 7.80396 7.55998 7.68197 7.68197C7.55998 7.80396 7.47031 7.9701 7.41152 8.27026C7.34985 8.58507 7.33006 9.00351 7.32498 9.60263C7.32252 9.89256 7.08549 10.1256 6.79555 10.1232C6.50561 10.1207 6.27256 9.88366 6.27502 9.59372C6.28007 8.99824 6.2985 8.49011 6.3811 8.06842C6.46657 7.63208 6.62721 7.2518 6.93951 6.93951C7.2518 6.62721 7.63208 6.46657 8.06842 6.3811C8.49011 6.2985 8.99824 6.28007 9.59372 6.27502C9.88366 6.27256 10.1207 6.50561 10.1232 6.79555ZM11.8751 6.79555C11.8776 6.50561 12.1146 6.27256 12.4046 6.27502C13 6.28007 13.5082 6.2985 13.9299 6.3811C14.3662 6.46657 14.7465 6.62721 15.0588 6.93951C15.3711 7.2518 15.5317 7.63208 15.6172 8.06842C15.6998 8.49011 15.7182 8.99824 15.7233 9.59372C15.7257 9.88366 15.4927 10.1207 15.2027 10.1232C14.9128 10.1256 14.6758 9.89256 14.6733 9.60263C14.6682 9.00351 14.6484 8.58507 14.5868 8.27026C14.528 7.9701 14.4383 7.80396 14.3163 7.68197C14.1943 7.55998 14.0282 7.47031 13.728 7.41152C13.4132 7.34985 12.9948 7.33006 12.3957 7.32498C12.1057 7.32252 11.8727 7.08549 11.8751 6.79555ZM7.32498 12.396C7.32252 12.1061 7.08549 11.873 6.79555 11.8755C6.50561 11.8779 6.27256 12.115 6.27502 12.4049C6.28007 13.0004 6.2985 13.5085 6.3811 13.9302C6.46657 14.3666 6.62721 14.7468 6.93951 15.0591C7.2518 15.3714 7.63208 15.5321 8.06842 15.6175C8.49011 15.7001 8.99824 15.7186 9.59372 15.7236C9.88366 15.7261 10.1207 15.493 10.1232 15.2031C10.1256 14.9131 9.89256 14.6761 9.60263 14.6737C9.00351 14.6686 8.58507 14.6488 8.27026 14.5871C7.9701 14.5283 7.80396 14.4387 7.68197 14.3167C7.55998 14.1947 7.47031 14.0285 7.41152 13.7284C7.34985 13.4136 7.33006 12.9951 7.32498 12.396ZM15.2027 11.8755C15.4927 11.8779 15.7257 12.115 15.7233 12.4049C15.7182 13.0004 15.6998 13.5085 15.6172 13.9302C15.5317 14.3666 15.3711 14.7468 15.0588 15.0591C14.7465 15.3714 14.3662 15.5321 13.9299 15.6175C13.5082 15.7001 13 15.7186 12.4046 15.7236C12.1146 15.7261 11.8776 15.493 11.8751 15.2031C11.8727 14.9131 12.1057 14.6761 12.3957 14.6737C12.9948 14.6686 13.4132 14.6488 13.728 14.5871C14.0282 14.5283 14.1943 14.4387 14.3163 14.3167C14.4383 14.1947 14.528 14.0285 14.5868 13.7284C14.6484 13.4136 14.6682 12.9951 14.6733 12.396C14.6758 12.1061 14.9128 11.873 15.2027 11.8755Z" fill="currentColor"/></g></svg>6,838 sq ft</li>
</ul>
<h3 class="rw-card__address">
<a class="rw-card__link" href="/homes/0b6c3b52-7f0c-4a3e-9a51-6f0e2d1a0002">Powder Springs, GA 30127</a>
</h3>
</div>
</article>
packages/ruuster-idx-recipes/static/html/listing-card-sold.html
<!--
Listing card for a sold home (close price and close date).
From the React component ListingCard. Generated by npm run idx:recipes-static from @ruuster/idx-recipes. Do not edit it by hand.
Fill each value from:
article.rw-card[data-listing-id]: listing.id
article.rw-card[data-status]: listing.status
.rw-card__photo[src]: listing.photos[0].url
.rw-card__photo[srcset]: listing.photos[0].url with ?width=480, ?width=800 and ?width=1200 (photos.ruuster.com only; leave srcset and sizes out for photos on other hosts)
.rw-card__photo[width] and [height]: listing.photos[0].width and listing.photos[0].height (800 and 600 when missing)
.rw-card__photo[alt]: listing.photos[0].alt, else the listing name (the address, or "Home in {address.city}" when address.hidden is true)
.rw-card__photo[loading] and [fetchpriority]: loading="eager" and fetchpriority="high" on the first card of the page only; loading="lazy" and no fetchpriority on every other card
.rw-card__gallery[data-rw-photos]: listing.photos as JSON (url, width, height, alt of each photo), only when there are two or more photos
.rw-card__gallery[data-rw-photo-alt]: the listing name, used for a photo with no alt; only when there are two or more photos
.rw-card__arrow, .rw-card__dots: only when listing.photos has two or more photos; one .rw-card__dot per photo, up to five, the first with rw-card__dot--on
.rw-card__nophoto: in place of the photo when listing.photos is empty
.rw-card__badge: one pill: "Sold {listing.closeDate as Sep 1, 2026}" when listing.status is closed; else "Open {listing.openHouses[0], short form}" when listing.badges has open_house; else listing.badges[0].kind as New, Back on market, Price change or Coming soon. The modifier class is rw-card__badge--{kind}. Leave the pill out when none applies
.rw-card__price: listing.closePrice when listing.status is closed, else listing.price, as fmt.usd ($480,000); leave the line out when there is no price
.rw-card__facts li: listing.beds ("6 beds", "1 bed"), listing.baths ("5 baths"), listing.sqft ("6,838 sq ft"); leave out a fact that is missing or 0
.rw-card__link[href]: listing.href
.rw-card__link text: listing.address: street and unit, then city, state and ZIP; when listing.address.hidden is true, only city, state and ZIP
.rw-card__attribution: listing.attribution.line, when the listing's board (the meta.mls entry whose mlsId is listing.mls.id) lists listing_office, listing_agent or agent_contact with placement card in required
.rw-card__courtesy: listing.attribution.courtesy, when the board lists courtesy_line with placement card
.rw-card__logo: the board's logo (url, width, height, alt), when the board lists mls_logo with placement card
Every data-rw-* attribute is a hook for ruuster-idx.js; see ../HOOKS.md.
-->
<article class="rw-recipes rw-card" data-listing-id="0b6c3b52-7f0c-4a3e-9a51-6f0e2d1a0004" data-status="closed">
<div class="rw-card__gallery" data-rw-gallery="card">
<img class="rw-card__photo" src="https://photos.ruuster.com/l/4/0.jpg" width="1200" height="800" alt="Ranch house with a front porch" loading="lazy" decoding="async" srcSet="https://photos.ruuster.com/l/4/0.jpg?width=480 480w, https://photos.ruuster.com/l/4/0.jpg?width=800 800w, https://photos.ruuster.com/l/4/0.jpg?width=1200 1200w" sizes="(min-width: 1600px) 25vw, (min-width: 1280px) 33vw, (min-width: 602px) 50vw, 100vw" data-rw-gallery-photo=""/>
</div>
<span class="rw-card__badge rw-card__badge--sold">Sold Sep 1, 2026</span>
<div class="rw-card__band">
<p class="rw-card__price">$418,500</p>
<ul class="rw-card__facts">
<li class="rw-fact"><svg class="rw-icon rw-fact__icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="beds" focusable="false" aria-hidden="true"><g fill="none"><path d="M10.4 10.0448V7.52239H9.00002C8.22881 7.52239 7.71077 7.52363 7.32434 7.57403C6.95517 7.62218 6.79717 7.7054 6.69292 7.80654C6.58866 7.90768 6.50288 8.06096 6.45325 8.41911C6.4013 8.79401 6.40002 9.29659 6.40002 10.0448L10.4 10.0448Z" fill="currentColor"/><path d="M15.6 10.0448C15.6 9.29659 15.5987 8.79401 15.5468 8.41911C15.4972 8.06096 15.4114 7.90768 15.3071 7.80654C15.2029 7.7054 15.0449 7.62218 14.6757 7.57403C14.2893 7.52363 13.7712 7.52239 13 7.52239H11.6V10.0448L15.6 10.0448Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M11.8 5H10.2C7.18303 5 5.67454 5 4.73728 5.90928C3.9193 6.70284 3.8152 7.9185 3.80195 10.1607V11.4158C3.49768 11.5857 3.2576 11.8491 3.12179 12.1672C3 12.4524 3 12.8141 3 13.5373C3 14.2606 3 14.6222 3.12179 14.9074C3.28418 15.2878 3.59566 15.59 3.98771 15.7475C4.18962 15.8287 4.42864 15.8541 4.8 15.862V17.4179C4.8 17.7394 5.06863 18 5.4 18C5.73137 18 6 17.7394 6 17.4179V15.8657H16V17.4179C16 17.7394 16.2686 18 16.6 18C16.9314 18 17.2 17.7394 17.2 17.4179V15.862C17.5714 15.8541 17.8104 15.8287 18.0123 15.7475C18.4043 15.59 18.7158 15.2878 18.8782 14.9074C19 14.6222 19 14.2606 19 13.5373C19 12.8141 19 12.4524 18.8782 12.1672C18.7424 11.8491 18.5023 11.5857 18.1981 11.4158V10.1607C18.1848 7.9185 18.0807 6.70284 17.2628 5.90928C16.3255 5 14.817 5 11.8 5ZM16.8 11.2091V10.0044C16.8 9.30712 16.8001 8.72559 16.7361 8.26399C16.6686 7.77674 16.52 7.33684 16.1557 6.98334C15.7913 6.62984 15.3378 6.48574 14.8356 6.42023C14.3598 6.35817 13.7604 6.35819 13.0416 6.35821H8.95842C8.23964 6.35819 7.64026 6.35817 7.16444 6.42023C6.6622 6.48574 6.20876 6.62984 5.84439 6.98334C5.48001 7.33684 5.33148 7.77674 5.26395 8.26399C5.19998 8.72561 5.2 9.30709 5.20002 10.0044V11.2091C5.26357 11.209 5.33015 11.209 5.4 11.209H16.6C16.6699 11.209 16.7365 11.209 16.8 11.2091Z" fill="currentColor"/></g></svg>4 beds</li>
<li class="rw-fact"><svg class="rw-icon rw-fact__icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="bath" focusable="false" aria-hidden="true"><g fill="none"><path d="M4.86047 5.33311C4.86047 4.66106 5.40528 4.11626 6.07733 4.11626C6.57491 4.11626 7.02237 4.4192 7.20716 4.88118L7.31379 5.14774C6.87136 5.47013 6.5099 5.91966 6.28724 6.46795C5.97445 7.23818 5.99132 8.06533 6.27278 8.77964C6.32816 8.92017 6.43812 9.03225 6.57756 9.0903C6.71701 9.14835 6.87403 9.1474 7.01276 9.08768L11.4487 7.17806C11.7256 7.05886 11.8578 6.7413 11.7473 6.46081C11.4657 5.74622 10.9159 5.13719 10.1603 4.8144C9.55652 4.55646 8.91592 4.52175 8.32557 4.67152L8.2436 4.46661C7.88928 3.58083 7.03137 3 6.07733 3C4.78877 3 3.74419 4.04457 3.74419 5.33311V10.4417H3.55814C3.24989 10.4417 3 10.6916 3 10.9999C3 11.3081 3.24989 11.558 3.55814 11.558H3.74419V11.7441C3.74419 11.7469 3.74421 11.7497 3.74425 11.7525C3.74418 11.7663 3.74418 11.7801 3.74419 11.7937L3.74419 11.8219C3.74419 12.1011 3.74419 12.2648 3.75577 12.4474C3.8614 14.1117 4.76078 15.6486 6.06424 16.6535C6.05401 16.6696 6.04451 16.6864 6.03579 16.7038L5.2916 18.1921C5.15375 18.4678 5.2655 18.8031 5.54121 18.941C5.81692 19.0788 6.15218 18.9671 6.29004 18.6914L7.0102 17.251C7.60683 17.553 8.25567 17.7518 8.9305 17.8201C9.11241 17.8385 9.22344 17.8427 9.41256 17.8498L9.41763 17.85C9.9685 17.8707 10.5077 17.8835 11 17.8835C11.4923 17.8835 12.0315 17.8707 12.5824 17.85L12.5874 17.8498C12.7765 17.8427 12.8876 17.8385 13.0695 17.8201C13.7444 17.7518 14.3933 17.553 14.99 17.251L15.7102 18.6914C15.8481 18.9671 16.1833 19.0788 16.459 18.941C16.7347 18.8031 16.8465 18.4678 16.7086 18.1921L15.9645 16.7038C15.9557 16.6863 15.9462 16.6695 15.9359 16.6534C17.2393 15.6485 18.1386 14.1117 18.2442 12.4474C18.2558 12.2649 18.2558 12.1012 18.2558 11.8219L18.2558 11.7937C18.2559 11.749 18.2559 11.7025 18.2531 11.6596C18.2509 11.6253 18.2473 11.5915 18.2425 11.558H18.4419C18.7501 11.558 19 11.3081 19 10.9999C19 10.6916 18.7501 10.4417 18.4419 10.4417H4.86047V5.33311Z" fill="currentColor"/></g></svg>3 baths</li>
<li class="rw-fact"><svg class="rw-icon rw-fact__icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="square" focusable="false" aria-hidden="true"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.02513 5.02513C4 6.05025 4 7.70017 4 11C4 14.2998 4 15.9497 5.02513 16.9749C6.05025 18 7.70017 18 11 18C14.2998 18 15.9497 18 16.9749 16.9749C18 15.9497 18 14.2998 18 11C18 7.70017 18 6.05025 16.9749 5.02513C15.9497 4 14.2998 4 11 4C7.70017 4 6.05025 4 5.02513 5.02513ZM10.1232 6.79555C10.1256 7.08549 9.89256 7.32252 9.60263 7.32498C9.00351 7.33006 8.58507 7.34985 8.27026 7.41152C7.9701 7.47031 7.80396 7.55998 7.68197 7.68197C7.55998 7.80396 7.47031 7.9701 7.41152 8.27026C7.34985 8.58507 7.33006 9.00351 7.32498 9.60263C7.32252 9.89256 7.08549 10.1256 6.79555 10.1232C6.50561 10.1207 6.27256 9.88366 6.27502 9.59372C6.28007 8.99824 6.2985 8.49011 6.3811 8.06842C6.46657 7.63208 6.62721 7.2518 6.93951 6.93951C7.2518 6.62721 7.63208 6.46657 8.06842 6.3811C8.49011 6.2985 8.99824 6.28007 9.59372 6.27502C9.88366 6.27256 10.1207 6.50561 10.1232 6.79555ZM11.8751 6.79555C11.8776 6.50561 12.1146 6.27256 12.4046 6.27502C13 6.28007 13.5082 6.2985 13.9299 6.3811C14.3662 6.46657 14.7465 6.62721 15.0588 6.93951C15.3711 7.2518 15.5317 7.63208 15.6172 8.06842C15.6998 8.49011 15.7182 8.99824 15.7233 9.59372C15.7257 9.88366 15.4927 10.1207 15.2027 10.1232C14.9128 10.1256 14.6758 9.89256 14.6733 9.60263C14.6682 9.00351 14.6484 8.58507 14.5868 8.27026C14.528 7.9701 14.4383 7.80396 14.3163 7.68197C14.1943 7.55998 14.0282 7.47031 13.728 7.41152C13.4132 7.34985 12.9948 7.33006 12.3957 7.32498C12.1057 7.32252 11.8727 7.08549 11.8751 6.79555ZM7.32498 12.396C7.32252 12.1061 7.08549 11.873 6.79555 11.8755C6.50561 11.8779 6.27256 12.115 6.27502 12.4049C6.28007 13.0004 6.2985 13.5085 6.3811 13.9302C6.46657 14.3666 6.62721 14.7468 6.93951 15.0591C7.2518 15.3714 7.63208 15.5321 8.06842 15.6175C8.49011 15.7001 8.99824 15.7186 9.59372 15.7236C9.88366 15.7261 10.1207 15.493 10.1232 15.2031C10.1256 14.9131 9.89256 14.6761 9.60263 14.6737C9.00351 14.6686 8.58507 14.6488 8.27026 14.5871C7.9701 14.5283 7.80396 14.4387 7.68197 14.3167C7.55998 14.1947 7.47031 14.0285 7.41152 13.7284C7.34985 13.4136 7.33006 12.9951 7.32498 12.396ZM15.2027 11.8755C15.4927 11.8779 15.7257 12.115 15.7233 12.4049C15.7182 13.0004 15.6998 13.5085 15.6172 13.9302C15.5317 14.3666 15.3711 14.7468 15.0588 15.0591C14.7465 15.3714 14.3662 15.5321 13.9299 15.6175C13.5082 15.7001 13 15.7186 12.4046 15.7236C12.1146 15.7261 11.8776 15.493 11.8751 15.2031C11.8727 14.9131 12.1057 14.6761 12.3957 14.6737C12.9948 14.6686 13.4132 14.6488 13.728 14.5871C14.0282 14.5283 14.1943 14.4387 14.3163 14.3167C14.4383 14.1947 14.528 14.0285 14.5868 13.7284C14.6484 13.4136 14.6682 12.9951 14.6733 12.396C14.6758 12.1061 14.9128 11.873 15.2027 11.8755Z" fill="currentColor"/></g></svg>2,410 sq ft</li>
</ul>
<h3 class="rw-card__address">
<a class="rw-card__link" href="/homes/212-dogwood-ln-powder-springs-ga-30127-0b6c3b52-7f0c-4a3e-9a51-6f0e2d1a0004">212 Dogwood Ln, Powder Springs, GA 30127</a>
</h3>
</div>
</article>
Listing grid with the disclaimers
The grid carries the GA4 view_item_list event in data-rw-ga4-params, which the script pushes to
window.dataLayer once when the page loads.
packages/ruuster-idx-recipes/static/html/listing-grid.html
<!--
Listing grid with the disclaimers under it.
From the React component ListingGrid and MlsDisclaimers. Generated by npm run idx:recipes-static from @ruuster/idx-recipes. Do not edit it by hand.
Fill each value from:
.rw-grid__list[aria-label]: the list's name, for example "Homes in Powder Springs" (data.location.label)
.rw-grid__item (one per listing): each entry of data.listings, in order, holding one listing card (listing-card.html); only the first card's photo is eager with fetchpriority="high"
.rw-grid[data-rw-ga4-event] and [data-rw-ga4-params]: view_item_list and its ecommerce JSON: item_list_name, and items with item_id (listing.mlsNumber, else listing.id), item_name (the listing name), price, item_category (listing.type), item_category2 (listing.subtype), item_brand (listing.mls.name), index and item_list_name. Leave both attributes out to send no event
.rw-grid--empty .rw-empty: in place of the list when data.listings is empty
.rw-disclaimer (one per board): each entry of meta.mls, once per mlsId; data-mls-id is meta.mls[].mlsId
.rw-disclaimer .rw-board-logo: meta.mls[].logo (url, width, height, alt); leave the image out when logo is null
.rw-disclaimer__text p: meta.mls[].disclaimer.text, then each meta.mls[].notices[].text, one paragraph per line of text; the board's mlsName when there is no text. Print the text versions, never the html ones
.rw-asof time[datetime]: meta.freshness.asOf
.rw-asof time text: meta.freshness.asOf as "November 4, 2026 at 3:00 PM UTC"
Every data-rw-* attribute is a hook for ruuster-idx.js; see ../HOOKS.md.
-->
<div class="rw-recipes rw-grid" data-rw-ga4-event="view_item_list" data-rw-ga4-params="{"ecommerce":{"item_list_name":"Homes in Powder Springs","items":[{"item_id":"7400123","item_name":"1417 Sterlingbrooke Dr SW, Powder Springs, GA 30127","price":480000,"item_category":"Residential","item_category2":"house","item_brand":"Northwest MLS","index":0,"item_list_name":"Homes in Powder Springs"},{"item_id":"7400123","item_name":"Home in Powder Springs","price":480000,"item_category":"Residential","item_category2":"house","item_brand":"First MLS","index":1,"item_list_name":"Homes in Powder Springs"},{"item_id":"7400456","item_name":"88 Magnolia Ct, Powder Springs, GA 30127","price":315000,"item_category":"Residential","item_category2":"house","item_brand":"First MLS","index":2,"item_list_name":"Homes in Powder Springs"}]}}">
<ul class="rw-grid__list" aria-label="Homes in Powder Springs">
<li class="rw-grid__item">
<article class="rw-recipes rw-card" data-listing-id="0b6c3b52-7f0c-4a3e-9a51-6f0e2d1a0001" data-status="active">
<div class="rw-card__gallery" data-rw-gallery="card" data-rw-photos="[{"url":"https://photos.ruuster.com/l/1/0.jpg","width":1200,"height":800,"alt":"Two-story brick house with a two-car garage"},{"url":"https://photos.ruuster.com/l/1/1.jpg","width":1200,"height":800,"alt":"Kitchen with an island"},{"url":"https://photos.ruuster.com/l/1/2.jpg","width":1200,"height":800,"alt":"Fenced back yard with a patio"}]" data-rw-photo-alt="1417 Sterlingbrooke Dr SW, Powder Springs, GA 30127">
<img class="rw-card__photo" src="https://photos.ruuster.com/l/1/0.jpg" width="1200" height="800" alt="Two-story brick house with a two-car garage" loading="eager" decoding="async" srcSet="https://photos.ruuster.com/l/1/0.jpg?width=480 480w, https://photos.ruuster.com/l/1/0.jpg?width=800 800w, https://photos.ruuster.com/l/1/0.jpg?width=1200 1200w" sizes="(min-width: 1600px) 25vw, (min-width: 1280px) 33vw, (min-width: 602px) 50vw, 100vw" fetchpriority="high" data-rw-gallery-photo=""/>
<button type="button" class="rw-card__arrow rw-card__arrow--prev" aria-label="Previous photo" data-rw-gallery-prev="">
<svg class="rw-icon rw-card__arrow-icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="arrow-left-white" focusable="false" aria-hidden="true"><g fill="none"><path d="M13 17L7 11L13 5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></g></svg>
</button>
<button type="button" class="rw-card__arrow rw-card__arrow--next" aria-label="Next photo" data-rw-gallery-next="">
<svg class="rw-icon rw-card__arrow-icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="arrow-right-white" focusable="false" aria-hidden="true"><g fill="none"><path d="M9 17L15 11L9 5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></g></svg>
</button>
<span class="rw-card__dots" aria-hidden="true" data-rw-gallery-dots="">
<span class="rw-card__dot rw-card__dot--on" data-rw-gallery-dot=""></span>
<span class="rw-card__dot" data-rw-gallery-dot=""></span>
<span class="rw-card__dot" data-rw-gallery-dot=""></span>
</span>
</div>
<span class="rw-card__badge rw-card__badge--new">New</span>
<div class="rw-card__band">
<p class="rw-card__price">$480,000</p>
<ul class="rw-card__facts">
<li class="rw-fact"><svg class="rw-icon rw-fact__icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="beds" focusable="false" aria-hidden="true"><g fill="none"><path d="M10.4 10.0448V7.52239H9.00002C8.22881 7.52239 7.71077 7.52363 7.32434 7.57403C6.95517 7.62218 6.79717 7.7054 6.69292 7.80654C6.58866 7.90768 6.50288 8.06096 6.45325 8.41911C6.4013 8.79401 6.40002 9.29659 6.40002 10.0448L10.4 10.0448Z" fill="currentColor"/><path d="M15.6 10.0448C15.6 9.29659 15.5987 8.79401 15.5468 8.41911C15.4972 8.06096 15.4114 7.90768 15.3071 7.80654C15.2029 7.7054 15.0449 7.62218 14.6757 7.57403C14.2893 7.52363 13.7712 7.52239 13 7.52239H11.6V10.0448L15.6 10.0448Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M11.8 5H10.2C7.18303 5 5.67454 5 4.73728 5.90928C3.9193 6.70284 3.8152 7.9185 3.80195 10.1607V11.4158C3.49768 11.5857 3.2576 11.8491 3.12179 12.1672C3 12.4524 3 12.8141 3 13.5373C3 14.2606 3 14.6222 3.12179 14.9074C3.28418 15.2878 3.59566 15.59 3.98771 15.7475C4.18962 15.8287 4.42864 15.8541 4.8 15.862V17.4179C4.8 17.7394 5.06863 18 5.4 18C5.73137 18 6 17.7394 6 17.4179V15.8657H16V17.4179C16 17.7394 16.2686 18 16.6 18C16.9314 18 17.2 17.7394 17.2 17.4179V15.862C17.5714 15.8541 17.8104 15.8287 18.0123 15.7475C18.4043 15.59 18.7158 15.2878 18.8782 14.9074C19 14.6222 19 14.2606 19 13.5373C19 12.8141 19 12.4524 18.8782 12.1672C18.7424 11.8491 18.5023 11.5857 18.1981 11.4158V10.1607C18.1848 7.9185 18.0807 6.70284 17.2628 5.90928C16.3255 5 14.817 5 11.8 5ZM16.8 11.2091V10.0044C16.8 9.30712 16.8001 8.72559 16.7361 8.26399C16.6686 7.77674 16.52 7.33684 16.1557 6.98334C15.7913 6.62984 15.3378 6.48574 14.8356 6.42023C14.3598 6.35817 13.7604 6.35819 13.0416 6.35821H8.95842C8.23964 6.35819 7.64026 6.35817 7.16444 6.42023C6.6622 6.48574 6.20876 6.62984 5.84439 6.98334C5.48001 7.33684 5.33148 7.77674 5.26395 8.26399C5.19998 8.72561 5.2 9.30709 5.20002 10.0044V11.2091C5.26357 11.209 5.33015 11.209 5.4 11.209H16.6C16.6699 11.209 16.7365 11.209 16.8 11.2091Z" fill="currentColor"/></g></svg>6 beds</li>
<li class="rw-fact"><svg class="rw-icon rw-fact__icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="bath" focusable="false" aria-hidden="true"><g fill="none"><path d="M4.86047 5.33311C4.86047 4.66106 5.40528 4.11626 6.07733 4.11626C6.57491 4.11626 7.02237 4.4192 7.20716 4.88118L7.31379 5.14774C6.87136 5.47013 6.5099 5.91966 6.28724 6.46795C5.97445 7.23818 5.99132 8.06533 6.27278 8.77964C6.32816 8.92017 6.43812 9.03225 6.57756 9.0903C6.71701 9.14835 6.87403 9.1474 7.01276 9.08768L11.4487 7.17806C11.7256 7.05886 11.8578 6.7413 11.7473 6.46081C11.4657 5.74622 10.9159 5.13719 10.1603 4.8144C9.55652 4.55646 8.91592 4.52175 8.32557 4.67152L8.2436 4.46661C7.88928 3.58083 7.03137 3 6.07733 3C4.78877 3 3.74419 4.04457 3.74419 5.33311V10.4417H3.55814C3.24989 10.4417 3 10.6916 3 10.9999C3 11.3081 3.24989 11.558 3.55814 11.558H3.74419V11.7441C3.74419 11.7469 3.74421 11.7497 3.74425 11.7525C3.74418 11.7663 3.74418 11.7801 3.74419 11.7937L3.74419 11.8219C3.74419 12.1011 3.74419 12.2648 3.75577 12.4474C3.8614 14.1117 4.76078 15.6486 6.06424 16.6535C6.05401 16.6696 6.04451 16.6864 6.03579 16.7038L5.2916 18.1921C5.15375 18.4678 5.2655 18.8031 5.54121 18.941C5.81692 19.0788 6.15218 18.9671 6.29004 18.6914L7.0102 17.251C7.60683 17.553 8.25567 17.7518 8.9305 17.8201C9.11241 17.8385 9.22344 17.8427 9.41256 17.8498L9.41763 17.85C9.9685 17.8707 10.5077 17.8835 11 17.8835C11.4923 17.8835 12.0315 17.8707 12.5824 17.85L12.5874 17.8498C12.7765 17.8427 12.8876 17.8385 13.0695 17.8201C13.7444 17.7518 14.3933 17.553 14.99 17.251L15.7102 18.6914C15.8481 18.9671 16.1833 19.0788 16.459 18.941C16.7347 18.8031 16.8465 18.4678 16.7086 18.1921L15.9645 16.7038C15.9557 16.6863 15.9462 16.6695 15.9359 16.6534C17.2393 15.6485 18.1386 14.1117 18.2442 12.4474C18.2558 12.2649 18.2558 12.1012 18.2558 11.8219L18.2558 11.7937C18.2559 11.749 18.2559 11.7025 18.2531 11.6596C18.2509 11.6253 18.2473 11.5915 18.2425 11.558H18.4419C18.7501 11.558 19 11.3081 19 10.9999C19 10.6916 18.7501 10.4417 18.4419 10.4417H4.86047V5.33311Z" fill="currentColor"/></g></svg>5 baths</li>
<li class="rw-fact"><svg class="rw-icon rw-fact__icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="square" focusable="false" aria-hidden="true"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.02513 5.02513C4 6.05025 4 7.70017 4 11C4 14.2998 4 15.9497 5.02513 16.9749C6.05025 18 7.70017 18 11 18C14.2998 18 15.9497 18 16.9749 16.9749C18 15.9497 18 14.2998 18 11C18 7.70017 18 6.05025 16.9749 5.02513C15.9497 4 14.2998 4 11 4C7.70017 4 6.05025 4 5.02513 5.02513ZM10.1232 6.79555C10.1256 7.08549 9.89256 7.32252 9.60263 7.32498C9.00351 7.33006 8.58507 7.34985 8.27026 7.41152C7.9701 7.47031 7.80396 7.55998 7.68197 7.68197C7.55998 7.80396 7.47031 7.9701 7.41152 8.27026C7.34985 8.58507 7.33006 9.00351 7.32498 9.60263C7.32252 9.89256 7.08549 10.1256 6.79555 10.1232C6.50561 10.1207 6.27256 9.88366 6.27502 9.59372C6.28007 8.99824 6.2985 8.49011 6.3811 8.06842C6.46657 7.63208 6.62721 7.2518 6.93951 6.93951C7.2518 6.62721 7.63208 6.46657 8.06842 6.3811C8.49011 6.2985 8.99824 6.28007 9.59372 6.27502C9.88366 6.27256 10.1207 6.50561 10.1232 6.79555ZM11.8751 6.79555C11.8776 6.50561 12.1146 6.27256 12.4046 6.27502C13 6.28007 13.5082 6.2985 13.9299 6.3811C14.3662 6.46657 14.7465 6.62721 15.0588 6.93951C15.3711 7.2518 15.5317 7.63208 15.6172 8.06842C15.6998 8.49011 15.7182 8.99824 15.7233 9.59372C15.7257 9.88366 15.4927 10.1207 15.2027 10.1232C14.9128 10.1256 14.6758 9.89256 14.6733 9.60263C14.6682 9.00351 14.6484 8.58507 14.5868 8.27026C14.528 7.9701 14.4383 7.80396 14.3163 7.68197C14.1943 7.55998 14.0282 7.47031 13.728 7.41152C13.4132 7.34985 12.9948 7.33006 12.3957 7.32498C12.1057 7.32252 11.8727 7.08549 11.8751 6.79555ZM7.32498 12.396C7.32252 12.1061 7.08549 11.873 6.79555 11.8755C6.50561 11.8779 6.27256 12.115 6.27502 12.4049C6.28007 13.0004 6.2985 13.5085 6.3811 13.9302C6.46657 14.3666 6.62721 14.7468 6.93951 15.0591C7.2518 15.3714 7.63208 15.5321 8.06842 15.6175C8.49011 15.7001 8.99824 15.7186 9.59372 15.7236C9.88366 15.7261 10.1207 15.493 10.1232 15.2031C10.1256 14.9131 9.89256 14.6761 9.60263 14.6737C9.00351 14.6686 8.58507 14.6488 8.27026 14.5871C7.9701 14.5283 7.80396 14.4387 7.68197 14.3167C7.55998 14.1947 7.47031 14.0285 7.41152 13.7284C7.34985 13.4136 7.33006 12.9951 7.32498 12.396ZM15.2027 11.8755C15.4927 11.8779 15.7257 12.115 15.7233 12.4049C15.7182 13.0004 15.6998 13.5085 15.6172 13.9302C15.5317 14.3666 15.3711 14.7468 15.0588 15.0591C14.7465 15.3714 14.3662 15.5321 13.9299 15.6175C13.5082 15.7001 13 15.7186 12.4046 15.7236C12.1146 15.7261 11.8776 15.493 11.8751 15.2031C11.8727 14.9131 12.1057 14.6761 12.3957 14.6737C12.9948 14.6686 13.4132 14.6488 13.728 14.5871C14.0282 14.5283 14.1943 14.4387 14.3163 14.3167C14.4383 14.1947 14.528 14.0285 14.5868 13.7284C14.6484 13.4136 14.6682 12.9951 14.6733 12.396C14.6758 12.1061 14.9128 11.873 15.2027 11.8755Z" fill="currentColor"/></g></svg>6,838 sq ft</li>
</ul>
<h3 class="rw-card__address">
<a class="rw-card__link" href="/homes/1417-sterlingbrooke-dr-sw-powder-springs-ga-30127-0b6c3b52-7f0c-4a3e-9a51-6f0e2d1a0001">1417 Sterlingbrooke Dr SW, Powder Springs, GA 30127</a>
</h3>
<p class="rw-card__attribution">Listing provided by Peach Realty</p>
<p class="rw-card__courtesy">Listing courtesy of Peach Realty</p>
</div>
</article>
</li>
<li class="rw-grid__item">
<article class="rw-recipes rw-card" data-listing-id="0b6c3b52-7f0c-4a3e-9a51-6f0e2d1a0002" data-status="active">
<div class="rw-card__gallery" data-rw-gallery="card">
<img class="rw-card__photo" src="https://photos.ruuster.com/l/2/0.jpg" width="1200" height="800" alt="Two-story house in Powder Springs" loading="lazy" decoding="async" srcSet="https://photos.ruuster.com/l/2/0.jpg?width=480 480w, https://photos.ruuster.com/l/2/0.jpg?width=800 800w, https://photos.ruuster.com/l/2/0.jpg?width=1200 1200w" sizes="(min-width: 1600px) 25vw, (min-width: 1280px) 33vw, (min-width: 602px) 50vw, 100vw" data-rw-gallery-photo=""/>
</div>
<span class="rw-card__badge rw-card__badge--new">New</span>
<div class="rw-card__band">
<p class="rw-card__price">$480,000</p>
<ul class="rw-card__facts">
<li class="rw-fact"><svg class="rw-icon rw-fact__icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="beds" focusable="false" aria-hidden="true"><g fill="none"><path d="M10.4 10.0448V7.52239H9.00002C8.22881 7.52239 7.71077 7.52363 7.32434 7.57403C6.95517 7.62218 6.79717 7.7054 6.69292 7.80654C6.58866 7.90768 6.50288 8.06096 6.45325 8.41911C6.4013 8.79401 6.40002 9.29659 6.40002 10.0448L10.4 10.0448Z" fill="currentColor"/><path d="M15.6 10.0448C15.6 9.29659 15.5987 8.79401 15.5468 8.41911C15.4972 8.06096 15.4114 7.90768 15.3071 7.80654C15.2029 7.7054 15.0449 7.62218 14.6757 7.57403C14.2893 7.52363 13.7712 7.52239 13 7.52239H11.6V10.0448L15.6 10.0448Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M11.8 5H10.2C7.18303 5 5.67454 5 4.73728 5.90928C3.9193 6.70284 3.8152 7.9185 3.80195 10.1607V11.4158C3.49768 11.5857 3.2576 11.8491 3.12179 12.1672C3 12.4524 3 12.8141 3 13.5373C3 14.2606 3 14.6222 3.12179 14.9074C3.28418 15.2878 3.59566 15.59 3.98771 15.7475C4.18962 15.8287 4.42864 15.8541 4.8 15.862V17.4179C4.8 17.7394 5.06863 18 5.4 18C5.73137 18 6 17.7394 6 17.4179V15.8657H16V17.4179C16 17.7394 16.2686 18 16.6 18C16.9314 18 17.2 17.7394 17.2 17.4179V15.862C17.5714 15.8541 17.8104 15.8287 18.0123 15.7475C18.4043 15.59 18.7158 15.2878 18.8782 14.9074C19 14.6222 19 14.2606 19 13.5373C19 12.8141 19 12.4524 18.8782 12.1672C18.7424 11.8491 18.5023 11.5857 18.1981 11.4158V10.1607C18.1848 7.9185 18.0807 6.70284 17.2628 5.90928C16.3255 5 14.817 5 11.8 5ZM16.8 11.2091V10.0044C16.8 9.30712 16.8001 8.72559 16.7361 8.26399C16.6686 7.77674 16.52 7.33684 16.1557 6.98334C15.7913 6.62984 15.3378 6.48574 14.8356 6.42023C14.3598 6.35817 13.7604 6.35819 13.0416 6.35821H8.95842C8.23964 6.35819 7.64026 6.35817 7.16444 6.42023C6.6622 6.48574 6.20876 6.62984 5.84439 6.98334C5.48001 7.33684 5.33148 7.77674 5.26395 8.26399C5.19998 8.72561 5.2 9.30709 5.20002 10.0044V11.2091C5.26357 11.209 5.33015 11.209 5.4 11.209H16.6C16.6699 11.209 16.7365 11.209 16.8 11.2091Z" fill="currentColor"/></g></svg>6 beds</li>
<li class="rw-fact"><svg class="rw-icon rw-fact__icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="bath" focusable="false" aria-hidden="true"><g fill="none"><path d="M4.86047 5.33311C4.86047 4.66106 5.40528 4.11626 6.07733 4.11626C6.57491 4.11626 7.02237 4.4192 7.20716 4.88118L7.31379 5.14774C6.87136 5.47013 6.5099 5.91966 6.28724 6.46795C5.97445 7.23818 5.99132 8.06533 6.27278 8.77964C6.32816 8.92017 6.43812 9.03225 6.57756 9.0903C6.71701 9.14835 6.87403 9.1474 7.01276 9.08768L11.4487 7.17806C11.7256 7.05886 11.8578 6.7413 11.7473 6.46081C11.4657 5.74622 10.9159 5.13719 10.1603 4.8144C9.55652 4.55646 8.91592 4.52175 8.32557 4.67152L8.2436 4.46661C7.88928 3.58083 7.03137 3 6.07733 3C4.78877 3 3.74419 4.04457 3.74419 5.33311V10.4417H3.55814C3.24989 10.4417 3 10.6916 3 10.9999C3 11.3081 3.24989 11.558 3.55814 11.558H3.74419V11.7441C3.74419 11.7469 3.74421 11.7497 3.74425 11.7525C3.74418 11.7663 3.74418 11.7801 3.74419 11.7937L3.74419 11.8219C3.74419 12.1011 3.74419 12.2648 3.75577 12.4474C3.8614 14.1117 4.76078 15.6486 6.06424 16.6535C6.05401 16.6696 6.04451 16.6864 6.03579 16.7038L5.2916 18.1921C5.15375 18.4678 5.2655 18.8031 5.54121 18.941C5.81692 19.0788 6.15218 18.9671 6.29004 18.6914L7.0102 17.251C7.60683 17.553 8.25567 17.7518 8.9305 17.8201C9.11241 17.8385 9.22344 17.8427 9.41256 17.8498L9.41763 17.85C9.9685 17.8707 10.5077 17.8835 11 17.8835C11.4923 17.8835 12.0315 17.8707 12.5824 17.85L12.5874 17.8498C12.7765 17.8427 12.8876 17.8385 13.0695 17.8201C13.7444 17.7518 14.3933 17.553 14.99 17.251L15.7102 18.6914C15.8481 18.9671 16.1833 19.0788 16.459 18.941C16.7347 18.8031 16.8465 18.4678 16.7086 18.1921L15.9645 16.7038C15.9557 16.6863 15.9462 16.6695 15.9359 16.6534C17.2393 15.6485 18.1386 14.1117 18.2442 12.4474C18.2558 12.2649 18.2558 12.1012 18.2558 11.8219L18.2558 11.7937C18.2559 11.749 18.2559 11.7025 18.2531 11.6596C18.2509 11.6253 18.2473 11.5915 18.2425 11.558H18.4419C18.7501 11.558 19 11.3081 19 10.9999C19 10.6916 18.7501 10.4417 18.4419 10.4417H4.86047V5.33311Z" fill="currentColor"/></g></svg>5 baths</li>
<li class="rw-fact"><svg class="rw-icon rw-fact__icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="square" focusable="false" aria-hidden="true"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.02513 5.02513C4 6.05025 4 7.70017 4 11C4 14.2998 4 15.9497 5.02513 16.9749C6.05025 18 7.70017 18 11 18C14.2998 18 15.9497 18 16.9749 16.9749C18 15.9497 18 14.2998 18 11C18 7.70017 18 6.05025 16.9749 5.02513C15.9497 4 14.2998 4 11 4C7.70017 4 6.05025 4 5.02513 5.02513ZM10.1232 6.79555C10.1256 7.08549 9.89256 7.32252 9.60263 7.32498C9.00351 7.33006 8.58507 7.34985 8.27026 7.41152C7.9701 7.47031 7.80396 7.55998 7.68197 7.68197C7.55998 7.80396 7.47031 7.9701 7.41152 8.27026C7.34985 8.58507 7.33006 9.00351 7.32498 9.60263C7.32252 9.89256 7.08549 10.1256 6.79555 10.1232C6.50561 10.1207 6.27256 9.88366 6.27502 9.59372C6.28007 8.99824 6.2985 8.49011 6.3811 8.06842C6.46657 7.63208 6.62721 7.2518 6.93951 6.93951C7.2518 6.62721 7.63208 6.46657 8.06842 6.3811C8.49011 6.2985 8.99824 6.28007 9.59372 6.27502C9.88366 6.27256 10.1207 6.50561 10.1232 6.79555ZM11.8751 6.79555C11.8776 6.50561 12.1146 6.27256 12.4046 6.27502C13 6.28007 13.5082 6.2985 13.9299 6.3811C14.3662 6.46657 14.7465 6.62721 15.0588 6.93951C15.3711 7.2518 15.5317 7.63208 15.6172 8.06842C15.6998 8.49011 15.7182 8.99824 15.7233 9.59372C15.7257 9.88366 15.4927 10.1207 15.2027 10.1232C14.9128 10.1256 14.6758 9.89256 14.6733 9.60263C14.6682 9.00351 14.6484 8.58507 14.5868 8.27026C14.528 7.9701 14.4383 7.80396 14.3163 7.68197C14.1943 7.55998 14.0282 7.47031 13.728 7.41152C13.4132 7.34985 12.9948 7.33006 12.3957 7.32498C12.1057 7.32252 11.8727 7.08549 11.8751 6.79555ZM7.32498 12.396C7.32252 12.1061 7.08549 11.873 6.79555 11.8755C6.50561 11.8779 6.27256 12.115 6.27502 12.4049C6.28007 13.0004 6.2985 13.5085 6.3811 13.9302C6.46657 14.3666 6.62721 14.7468 6.93951 15.0591C7.2518 15.3714 7.63208 15.5321 8.06842 15.6175C8.49011 15.7001 8.99824 15.7186 9.59372 15.7236C9.88366 15.7261 10.1207 15.493 10.1232 15.2031C10.1256 14.9131 9.89256 14.6761 9.60263 14.6737C9.00351 14.6686 8.58507 14.6488 8.27026 14.5871C7.9701 14.5283 7.80396 14.4387 7.68197 14.3167C7.55998 14.1947 7.47031 14.0285 7.41152 13.7284C7.34985 13.4136 7.33006 12.9951 7.32498 12.396ZM15.2027 11.8755C15.4927 11.8779 15.7257 12.115 15.7233 12.4049C15.7182 13.0004 15.6998 13.5085 15.6172 13.9302C15.5317 14.3666 15.3711 14.7468 15.0588 15.0591C14.7465 15.3714 14.3662 15.5321 13.9299 15.6175C13.5082 15.7001 13 15.7186 12.4046 15.7236C12.1146 15.7261 11.8776 15.493 11.8751 15.2031C11.8727 14.9131 12.1057 14.6761 12.3957 14.6737C12.9948 14.6686 13.4132 14.6488 13.728 14.5871C14.0282 14.5283 14.1943 14.4387 14.3163 14.3167C14.4383 14.1947 14.528 14.0285 14.5868 13.7284C14.6484 13.4136 14.6682 12.9951 14.6733 12.396C14.6758 12.1061 14.9128 11.873 15.2027 11.8755Z" fill="currentColor"/></g></svg>6,838 sq ft</li>
</ul>
<h3 class="rw-card__address">
<a class="rw-card__link" href="/homes/0b6c3b52-7f0c-4a3e-9a51-6f0e2d1a0002">Powder Springs, GA 30127</a>
</h3>
</div>
</article>
</li>
<li class="rw-grid__item">
<article class="rw-recipes rw-card" data-listing-id="0b6c3b52-7f0c-4a3e-9a51-6f0e2d1a0003" data-status="active">
<div class="rw-card__gallery" data-rw-gallery="card" data-rw-photos="[{"url":"https://photos.ruuster.com/l/5/0.jpg","width":1200,"height":800,"alt":"Craftsman house with a covered front porch"},{"url":"https://photos.ruuster.com/l/5/1.jpg","width":1200,"height":800,"alt":"Living room with a fireplace"}]" data-rw-photo-alt="88 Magnolia Ct, Powder Springs, GA 30127">
<img class="rw-card__photo" src="https://photos.ruuster.com/l/5/0.jpg" width="1200" height="800" alt="Craftsman house with a covered front porch" loading="lazy" decoding="async" srcSet="https://photos.ruuster.com/l/5/0.jpg?width=480 480w, https://photos.ruuster.com/l/5/0.jpg?width=800 800w, https://photos.ruuster.com/l/5/0.jpg?width=1200 1200w" sizes="(min-width: 1600px) 25vw, (min-width: 1280px) 33vw, (min-width: 602px) 50vw, 100vw" data-rw-gallery-photo=""/>
<button type="button" class="rw-card__arrow rw-card__arrow--prev" aria-label="Previous photo" data-rw-gallery-prev="">
<svg class="rw-icon rw-card__arrow-icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="arrow-left-white" focusable="false" aria-hidden="true"><g fill="none"><path d="M13 17L7 11L13 5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></g></svg>
</button>
<button type="button" class="rw-card__arrow rw-card__arrow--next" aria-label="Next photo" data-rw-gallery-next="">
<svg class="rw-icon rw-card__arrow-icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="arrow-right-white" focusable="false" aria-hidden="true"><g fill="none"><path d="M9 17L15 11L9 5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></g></svg>
</button>
<span class="rw-card__dots" aria-hidden="true" data-rw-gallery-dots="">
<span class="rw-card__dot rw-card__dot--on" data-rw-gallery-dot=""></span>
<span class="rw-card__dot" data-rw-gallery-dot=""></span>
</span>
</div>
<div class="rw-card__band">
<p class="rw-card__price">$315,000</p>
<ul class="rw-card__facts">
<li class="rw-fact"><svg class="rw-icon rw-fact__icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="beds" focusable="false" aria-hidden="true"><g fill="none"><path d="M10.4 10.0448V7.52239H9.00002C8.22881 7.52239 7.71077 7.52363 7.32434 7.57403C6.95517 7.62218 6.79717 7.7054 6.69292 7.80654C6.58866 7.90768 6.50288 8.06096 6.45325 8.41911C6.4013 8.79401 6.40002 9.29659 6.40002 10.0448L10.4 10.0448Z" fill="currentColor"/><path d="M15.6 10.0448C15.6 9.29659 15.5987 8.79401 15.5468 8.41911C15.4972 8.06096 15.4114 7.90768 15.3071 7.80654C15.2029 7.7054 15.0449 7.62218 14.6757 7.57403C14.2893 7.52363 13.7712 7.52239 13 7.52239H11.6V10.0448L15.6 10.0448Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M11.8 5H10.2C7.18303 5 5.67454 5 4.73728 5.90928C3.9193 6.70284 3.8152 7.9185 3.80195 10.1607V11.4158C3.49768 11.5857 3.2576 11.8491 3.12179 12.1672C3 12.4524 3 12.8141 3 13.5373C3 14.2606 3 14.6222 3.12179 14.9074C3.28418 15.2878 3.59566 15.59 3.98771 15.7475C4.18962 15.8287 4.42864 15.8541 4.8 15.862V17.4179C4.8 17.7394 5.06863 18 5.4 18C5.73137 18 6 17.7394 6 17.4179V15.8657H16V17.4179C16 17.7394 16.2686 18 16.6 18C16.9314 18 17.2 17.7394 17.2 17.4179V15.862C17.5714 15.8541 17.8104 15.8287 18.0123 15.7475C18.4043 15.59 18.7158 15.2878 18.8782 14.9074C19 14.6222 19 14.2606 19 13.5373C19 12.8141 19 12.4524 18.8782 12.1672C18.7424 11.8491 18.5023 11.5857 18.1981 11.4158V10.1607C18.1848 7.9185 18.0807 6.70284 17.2628 5.90928C16.3255 5 14.817 5 11.8 5ZM16.8 11.2091V10.0044C16.8 9.30712 16.8001 8.72559 16.7361 8.26399C16.6686 7.77674 16.52 7.33684 16.1557 6.98334C15.7913 6.62984 15.3378 6.48574 14.8356 6.42023C14.3598 6.35817 13.7604 6.35819 13.0416 6.35821H8.95842C8.23964 6.35819 7.64026 6.35817 7.16444 6.42023C6.6622 6.48574 6.20876 6.62984 5.84439 6.98334C5.48001 7.33684 5.33148 7.77674 5.26395 8.26399C5.19998 8.72561 5.2 9.30709 5.20002 10.0044V11.2091C5.26357 11.209 5.33015 11.209 5.4 11.209H16.6C16.6699 11.209 16.7365 11.209 16.8 11.2091Z" fill="currentColor"/></g></svg>3 beds</li>
<li class="rw-fact"><svg class="rw-icon rw-fact__icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="bath" focusable="false" aria-hidden="true"><g fill="none"><path d="M4.86047 5.33311C4.86047 4.66106 5.40528 4.11626 6.07733 4.11626C6.57491 4.11626 7.02237 4.4192 7.20716 4.88118L7.31379 5.14774C6.87136 5.47013 6.5099 5.91966 6.28724 6.46795C5.97445 7.23818 5.99132 8.06533 6.27278 8.77964C6.32816 8.92017 6.43812 9.03225 6.57756 9.0903C6.71701 9.14835 6.87403 9.1474 7.01276 9.08768L11.4487 7.17806C11.7256 7.05886 11.8578 6.7413 11.7473 6.46081C11.4657 5.74622 10.9159 5.13719 10.1603 4.8144C9.55652 4.55646 8.91592 4.52175 8.32557 4.67152L8.2436 4.46661C7.88928 3.58083 7.03137 3 6.07733 3C4.78877 3 3.74419 4.04457 3.74419 5.33311V10.4417H3.55814C3.24989 10.4417 3 10.6916 3 10.9999C3 11.3081 3.24989 11.558 3.55814 11.558H3.74419V11.7441C3.74419 11.7469 3.74421 11.7497 3.74425 11.7525C3.74418 11.7663 3.74418 11.7801 3.74419 11.7937L3.74419 11.8219C3.74419 12.1011 3.74419 12.2648 3.75577 12.4474C3.8614 14.1117 4.76078 15.6486 6.06424 16.6535C6.05401 16.6696 6.04451 16.6864 6.03579 16.7038L5.2916 18.1921C5.15375 18.4678 5.2655 18.8031 5.54121 18.941C5.81692 19.0788 6.15218 18.9671 6.29004 18.6914L7.0102 17.251C7.60683 17.553 8.25567 17.7518 8.9305 17.8201C9.11241 17.8385 9.22344 17.8427 9.41256 17.8498L9.41763 17.85C9.9685 17.8707 10.5077 17.8835 11 17.8835C11.4923 17.8835 12.0315 17.8707 12.5824 17.85L12.5874 17.8498C12.7765 17.8427 12.8876 17.8385 13.0695 17.8201C13.7444 17.7518 14.3933 17.553 14.99 17.251L15.7102 18.6914C15.8481 18.9671 16.1833 19.0788 16.459 18.941C16.7347 18.8031 16.8465 18.4678 16.7086 18.1921L15.9645 16.7038C15.9557 16.6863 15.9462 16.6695 15.9359 16.6534C17.2393 15.6485 18.1386 14.1117 18.2442 12.4474C18.2558 12.2649 18.2558 12.1012 18.2558 11.8219L18.2558 11.7937C18.2559 11.749 18.2559 11.7025 18.2531 11.6596C18.2509 11.6253 18.2473 11.5915 18.2425 11.558H18.4419C18.7501 11.558 19 11.3081 19 10.9999C19 10.6916 18.7501 10.4417 18.4419 10.4417H4.86047V5.33311Z" fill="currentColor"/></g></svg>2 baths</li>
<li class="rw-fact"><svg class="rw-icon rw-fact__icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="square" focusable="false" aria-hidden="true"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.02513 5.02513C4 6.05025 4 7.70017 4 11C4 14.2998 4 15.9497 5.02513 16.9749C6.05025 18 7.70017 18 11 18C14.2998 18 15.9497 18 16.9749 16.9749C18 15.9497 18 14.2998 18 11C18 7.70017 18 6.05025 16.9749 5.02513C15.9497 4 14.2998 4 11 4C7.70017 4 6.05025 4 5.02513 5.02513ZM10.1232 6.79555C10.1256 7.08549 9.89256 7.32252 9.60263 7.32498C9.00351 7.33006 8.58507 7.34985 8.27026 7.41152C7.9701 7.47031 7.80396 7.55998 7.68197 7.68197C7.55998 7.80396 7.47031 7.9701 7.41152 8.27026C7.34985 8.58507 7.33006 9.00351 7.32498 9.60263C7.32252 9.89256 7.08549 10.1256 6.79555 10.1232C6.50561 10.1207 6.27256 9.88366 6.27502 9.59372C6.28007 8.99824 6.2985 8.49011 6.3811 8.06842C6.46657 7.63208 6.62721 7.2518 6.93951 6.93951C7.2518 6.62721 7.63208 6.46657 8.06842 6.3811C8.49011 6.2985 8.99824 6.28007 9.59372 6.27502C9.88366 6.27256 10.1207 6.50561 10.1232 6.79555ZM11.8751 6.79555C11.8776 6.50561 12.1146 6.27256 12.4046 6.27502C13 6.28007 13.5082 6.2985 13.9299 6.3811C14.3662 6.46657 14.7465 6.62721 15.0588 6.93951C15.3711 7.2518 15.5317 7.63208 15.6172 8.06842C15.6998 8.49011 15.7182 8.99824 15.7233 9.59372C15.7257 9.88366 15.4927 10.1207 15.2027 10.1232C14.9128 10.1256 14.6758 9.89256 14.6733 9.60263C14.6682 9.00351 14.6484 8.58507 14.5868 8.27026C14.528 7.9701 14.4383 7.80396 14.3163 7.68197C14.1943 7.55998 14.0282 7.47031 13.728 7.41152C13.4132 7.34985 12.9948 7.33006 12.3957 7.32498C12.1057 7.32252 11.8727 7.08549 11.8751 6.79555ZM7.32498 12.396C7.32252 12.1061 7.08549 11.873 6.79555 11.8755C6.50561 11.8779 6.27256 12.115 6.27502 12.4049C6.28007 13.0004 6.2985 13.5085 6.3811 13.9302C6.46657 14.3666 6.62721 14.7468 6.93951 15.0591C7.2518 15.3714 7.63208 15.5321 8.06842 15.6175C8.49011 15.7001 8.99824 15.7186 9.59372 15.7236C9.88366 15.7261 10.1207 15.493 10.1232 15.2031C10.1256 14.9131 9.89256 14.6761 9.60263 14.6737C9.00351 14.6686 8.58507 14.6488 8.27026 14.5871C7.9701 14.5283 7.80396 14.4387 7.68197 14.3167C7.55998 14.1947 7.47031 14.0285 7.41152 13.7284C7.34985 13.4136 7.33006 12.9951 7.32498 12.396ZM15.2027 11.8755C15.4927 11.8779 15.7257 12.115 15.7233 12.4049C15.7182 13.0004 15.6998 13.5085 15.6172 13.9302C15.5317 14.3666 15.3711 14.7468 15.0588 15.0591C14.7465 15.3714 14.3662 15.5321 13.9299 15.6175C13.5082 15.7001 13 15.7186 12.4046 15.7236C12.1146 15.7261 11.8776 15.493 11.8751 15.2031C11.8727 14.9131 12.1057 14.6761 12.3957 14.6737C12.9948 14.6686 13.4132 14.6488 13.728 14.5871C14.0282 14.5283 14.1943 14.4387 14.3163 14.3167C14.4383 14.1947 14.528 14.0285 14.5868 13.7284C14.6484 13.4136 14.6682 12.9951 14.6733 12.396C14.6758 12.1061 14.9128 11.873 15.2027 11.8755Z" fill="currentColor"/></g></svg>1,650 sq ft</li>
</ul>
<h3 class="rw-card__address">
<a class="rw-card__link" href="/homes/88-magnolia-ct-powder-springs-ga-30127-0b6c3b52-7f0c-4a3e-9a51-6f0e2d1a0003">88 Magnolia Ct, Powder Springs, GA 30127</a>
</h3>
</div>
</article>
</li>
</ul>
</div>
<aside class="rw-recipes rw-disclaimers rw-disclaimers--page" aria-label="Listing data notices">
<div class="rw-disclaimer" data-mls-id="nwmls">
<img class="rw-board-logo" src="https://photos.ruuster.com/mls/nwmls.png" alt="Northwest MLS logo" width="80" height="32" loading="lazy" decoding="async"/>
<div class="rw-disclaimer__text">
<p>Listing information is provided by Northwest MLS and is deemed reliable but not guaranteed.</p>
<p>To report a copyright concern, contact Northwest MLS.</p>
</div>
</div>
<div class="rw-disclaimer" data-mls-id="fmls">
<div class="rw-disclaimer__text">
<p>Information is deemed reliable but not guaranteed. First MLS.</p>
</div>
</div>
<p class="rw-asof">Data last updated <time dateTime="2026-11-04T15:00:00Z">November 4, 2026 at 3:00 PM UTC</time>.</p>
</aside>
| Element | Filled from |
|---|---|
.rw-grid__list[aria-label] |
the list's name, for example "Homes in Powder Springs" (data.location.label) |
.rw-grid__item (one per listing) |
each entry of data.listings, in order, holding one listing card (listing-card.html); only the first card's photo is eager with fetchpriority="high" |
.rw-grid[data-rw-ga4-event] and [data-rw-ga4-params] |
view_item_list and its ecommerce JSON: item_list_name, and items with item_id (listing.mlsNumber, else listing.id), item_name (the listing name), price, item_category (listing.type), item_category2 (listing.subtype), item_brand (listing.mls.name), index and item_list_name. Leave both attributes out to send no event |
.rw-grid--empty .rw-empty |
in place of the list when data.listings is empty |
.rw-disclaimer (one per board) |
each entry of meta.mls, once per mlsId; data-mls-id is meta.mls[].mlsId |
.rw-disclaimer .rw-board-logo |
meta.mls[].logo (url, width, height, alt); leave the image out when logo is null |
.rw-disclaimer__text p |
meta.mls[].disclaimer.text, then each meta.mls[].notices[].text, one paragraph per line of text; the board's mlsName when there is no text. Print the text versions, never the html ones |
.rw-asof time[datetime] |
meta.freshness.asOf |
.rw-asof time text |
meta.freshness.asOf as "November 4, 2026 at 3:00 PM UTC" |
Page links
packages/ruuster-idx-recipes/static/html/pagination.html
<!--
Page links (page 2 of 7).
From the React component Pagination. Generated by npm run idx:recipes-static from @ruuster/idx-recipes. Do not edit it by hand.
Fill each value from:
.rw-pagination__page[href]: your page's path with the current query, plus page=N; page 1 has no page parameter
.rw-pagination__page--current: the current page (meta.page.page), with aria-current="page"
the page numbers: the first and last pages, and two pages on each side of the current one, with an li.rw-pagination__gap (…) where pages are skipped; meta.page.pages is the last page
.rw-pagination__step[rel=prev] and [rel=next]: the previous and next pages; leave Previous out on page 1 and Next out on the last page. Print nothing when there is one page
Every data-rw-* attribute is a hook for ruuster-idx.js; see ../HOOKS.md.
-->
<nav class="rw-recipes rw-pagination" aria-label="Pages of results">
<a class="rw-pagination__step" href="/search?city=Powder+Springs&bedsMin=3" rel="prev">Previous page</a>
<ul class="rw-pagination__list">
<li><a class="rw-pagination__page" href="/search?city=Powder+Springs&bedsMin=3" aria-label="Page 1">1</a></li>
<li><a class="rw-pagination__page rw-pagination__page--current" href="/search?city=Powder+Springs&bedsMin=3&page=2" aria-current="page" aria-label="Page 2">2</a></li>
<li><a class="rw-pagination__page" href="/search?city=Powder+Springs&bedsMin=3&page=3" aria-label="Page 3">3</a></li>
<li><a class="rw-pagination__page" href="/search?city=Powder+Springs&bedsMin=3&page=4" aria-label="Page 4">4</a></li>
<li class="rw-pagination__gap" aria-hidden="true">…</li>
<li><a class="rw-pagination__page" href="/search?city=Powder+Springs&bedsMin=3&page=7" aria-label="Page 7">7</a></li>
</ul>
<a class="rw-pagination__step" href="/search?city=Powder+Springs&bedsMin=3&page=3" rel="next">Next page</a>
</nav>
| Element | Filled from |
|---|---|
.rw-pagination__page[href] |
your page's path with the current query, plus page=N; page 1 has no page parameter |
.rw-pagination__page--current |
the current page (meta.page.page), with aria-current="page" |
the page numbers |
the first and last pages, and two pages on each side of the current one, with an li.rw-pagination__gap (…) where pages are skipped; meta.page.pages is the last page |
.rw-pagination__step[rel=prev] and [rel=next] |
the previous and next pages; leave Previous out on page 1 and Next out on the last page. Print nothing when there is one page |
Listing page
The whole listing page, with every screen in it: the header, the photo grid, the price block, Agent
information, open houses, the property details, the mortgage calculator, the location map, the contact
and tour cards and the action bar. The full gallery and the share, contact and tour screens are in the
same HTML as closed <dialog> elements, each step a section with the inactive ones hidden, so the
script opens them without building markup. The mortgage calculator is printed with a first answer
from your server (GET /v1/mortgage/estimate with your secret key), and the script asks for a new one
through the address in data-rw-base-url as the visitor changes it. The page carries the GA4 view_item event.
What each screen does is on its own page: Photo gallery, Share a listing, Contact the agent, Book a tour and Mortgage calculator.
packages/ruuster-idx-recipes/static/html/listing-detail.html
<!--
Listing page with every screen: the header, the photo grid, the price block, the description, agent information, open houses, the property details, the mortgage calculator, the location map, the contact and tour cards, the mobile bar, and the closed full gallery, share, contact and tour dialogs.
From the React component ListingDetail with every screen prop. Generated by npm run idx:recipes-static from @ruuster/idx-recipes. Do not edit it by hand.
Fill each value from:
article.rw-detail[data-rw-detail]: listing.id. Every data-rw-open button inside this element opens the screen of the same article; the rw-detail--bar modifier is there when the mobile bar is
article.rw-detail[data-listing-id] and [data-status]: listing.id and listing.status
article.rw-detail[data-rw-ga4-event] and [data-rw-ga4-params]: view_item and its ecommerce JSON: currency USD, value (the shown price) and one item as on the grid. Leave both attributes out to send no event
header.rw-detail-header: detail-header.html: your search page as the Back link and the pinned summary
.rw-photogrid: photo-grid-5.html (and photo-grid-0 to photo-grid-4 for fewer photos)
.rw-detail__courtesy: listing.compliance.courtesyLine, else listing.attribution.courtesy, above the price block when the board requires courtesy_line at placement detail; the bottom attribution block then leaves it out
section.rw-price: price-block.html
.rw-detail__description: listing.description; leave the whole Description section out when it is empty
.rw-detail__tour[href]: listing.virtualTourUrl (http or https only); leave the paragraph out when there is none
.rw-detail__inline-attribution: the attribution line, inside the description card when the board requires listing_office, listing_agent or agent_contact at placement detail; the bottom block then leaves it out
section.rw-agentinfo: agent-info.html, when your agent has a license number or the board requires agent_contact at placement detail
section.rw-openhouses: open-houses.html
details.rw-accordion (one per section): each of listing.details with items: data-category-id is categoryId, the 24px icon by categoryId (checklist-minimalistic for listing details, lamp for interior, home for exterior and structure, garage for parking, lightning for utilities, point-on-map for location, money-bag for price and financial, more-horizontal for any other), the title is label, and each li is an item's label and value (true and false as Yes and No, lists joined with commas, a year as 2004). The first one carries open
section.rw-mortgage: mortgage-calculator.html, with your publishable key; leave it out for a closed listing, a lease or rental (type or subtype matching lease or rent) or a listing without a price
.rw-locmap: location-map.html, with your Google Maps key; leave it out without a key, without listing.geo or when listing.address.hidden is true
.rw-attribution__line: listing.compliance.attributionLine, else listing.attribution.line (unless it moved into the description card)
.rw-attribution__courtesy: listing.compliance.courtesyLine, else listing.attribution.courtesy (unless it moved above the price block)
.rw-attribution .rw-board-logo: the listing's board logo from meta.mls
.rw-detail__mlsnumber: "{listing.mls.name} MLS number {listing.mlsNumber}"
.rw-detail__compliance .rw-disclaimers: the listing's board from meta.mls, and listing.compliance.asOf for the Data last updated line
aside.rw-detail__aside--cards: agent-card.html and tour-card.html inside .rw-contactcards, when you have a lead route and consent wording; print your own aside.rw-detail__aside instead to replace them
.rw-mobilebar: mobile-bar.html, with the cards
dialog.rw-fullgallery: full-gallery.html, closed
.rw-modal-host[data-rw-screen]: share-modal.html (when you share a URL), contact-modal.html and tour-modal.html (when you have a lead route), each closed
Every data-rw-* attribute is a hook for ruuster-idx.js; see ../HOOKS.md.
-->
<article class="rw-recipes rw-detail rw-detail--bar" data-rw-detail="0b6c3b52-7f0c-4a3e-9a51-6f0e2d1a0001" data-listing-id="0b6c3b52-7f0c-4a3e-9a51-6f0e2d1a0001" data-status="active" data-rw-ga4-event="view_item" data-rw-ga4-params="{"ecommerce":{"currency":"USD","value":480000,"items":[{"item_id":"7400123","item_name":"1417 Sterlingbrooke Dr SW, Powder Springs, GA 30127","price":480000,"item_category":"Residential","item_category2":"house","item_brand":"Northwest MLS"}]}}">
<header class="rw-detail-header" data-rw-detail-header="">
<div class="rw-detail-header__row">
<a class="rw-detail-header__back" href="/search?city=Powder+Springs&state=GA" data-rw-header-back=""><svg class="rw-icon" viewBox="0 0 24 24" width="20" height="20" data-rw-icon="chevron-left" focusable="false" aria-hidden="true"><g fill="none"><path d="M15 5L8 12L15 19" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M15 5L8 12L15 19" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></g></svg>Back</a>
<div class="rw-detail-header__summary" data-rw-header-summary="">
<div class="rw-mini" data-rw-mini="">
<p class="rw-mini__line"><span class="rw-mini__price">$480,000</span><span class="rw-mini__dot" aria-hidden="true"></span><span class="rw-mini__address">1417 Sterlingbrooke Dr SW, Powder Springs, GA 30127</span></p>
<ul class="rw-mini__facts">
<li class="rw-mini__fact"><svg class="rw-icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="beds" focusable="false" aria-hidden="true"><g fill="none"><path d="M10.4 10.0448V7.52239H9.00002C8.22881 7.52239 7.71077 7.52363 7.32434 7.57403C6.95517 7.62218 6.79717 7.7054 6.69292 7.80654C6.58866 7.90768 6.50288 8.06096 6.45325 8.41911C6.4013 8.79401 6.40002 9.29659 6.40002 10.0448L10.4 10.0448Z" fill="currentColor"/><path d="M15.6 10.0448C15.6 9.29659 15.5987 8.79401 15.5468 8.41911C15.4972 8.06096 15.4114 7.90768 15.3071 7.80654C15.2029 7.7054 15.0449 7.62218 14.6757 7.57403C14.2893 7.52363 13.7712 7.52239 13 7.52239H11.6V10.0448L15.6 10.0448Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M11.8 5H10.2C7.18303 5 5.67454 5 4.73728 5.90928C3.9193 6.70284 3.8152 7.9185 3.80195 10.1607V11.4158C3.49768 11.5857 3.2576 11.8491 3.12179 12.1672C3 12.4524 3 12.8141 3 13.5373C3 14.2606 3 14.6222 3.12179 14.9074C3.28418 15.2878 3.59566 15.59 3.98771 15.7475C4.18962 15.8287 4.42864 15.8541 4.8 15.862V17.4179C4.8 17.7394 5.06863 18 5.4 18C5.73137 18 6 17.7394 6 17.4179V15.8657H16V17.4179C16 17.7394 16.2686 18 16.6 18C16.9314 18 17.2 17.7394 17.2 17.4179V15.862C17.5714 15.8541 17.8104 15.8287 18.0123 15.7475C18.4043 15.59 18.7158 15.2878 18.8782 14.9074C19 14.6222 19 14.2606 19 13.5373C19 12.8141 19 12.4524 18.8782 12.1672C18.7424 11.8491 18.5023 11.5857 18.1981 11.4158V10.1607C18.1848 7.9185 18.0807 6.70284 17.2628 5.90928C16.3255 5 14.817 5 11.8 5ZM16.8 11.2091V10.0044C16.8 9.30712 16.8001 8.72559 16.7361 8.26399C16.6686 7.77674 16.52 7.33684 16.1557 6.98334C15.7913 6.62984 15.3378 6.48574 14.8356 6.42023C14.3598 6.35817 13.7604 6.35819 13.0416 6.35821H8.95842C8.23964 6.35819 7.64026 6.35817 7.16444 6.42023C6.6622 6.48574 6.20876 6.62984 5.84439 6.98334C5.48001 7.33684 5.33148 7.77674 5.26395 8.26399C5.19998 8.72561 5.2 9.30709 5.20002 10.0044V11.2091C5.26357 11.209 5.33015 11.209 5.4 11.209H16.6C16.6699 11.209 16.7365 11.209 16.8 11.2091Z" fill="currentColor"/></g></svg>6 beds</li>
<li class="rw-mini__fact"><svg class="rw-icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="bath" focusable="false" aria-hidden="true"><g fill="none"><path d="M4.86047 5.33311C4.86047 4.66106 5.40528 4.11626 6.07733 4.11626C6.57491 4.11626 7.02237 4.4192 7.20716 4.88118L7.31379 5.14774C6.87136 5.47013 6.5099 5.91966 6.28724 6.46795C5.97445 7.23818 5.99132 8.06533 6.27278 8.77964C6.32816 8.92017 6.43812 9.03225 6.57756 9.0903C6.71701 9.14835 6.87403 9.1474 7.01276 9.08768L11.4487 7.17806C11.7256 7.05886 11.8578 6.7413 11.7473 6.46081C11.4657 5.74622 10.9159 5.13719 10.1603 4.8144C9.55652 4.55646 8.91592 4.52175 8.32557 4.67152L8.2436 4.46661C7.88928 3.58083 7.03137 3 6.07733 3C4.78877 3 3.74419 4.04457 3.74419 5.33311V10.4417H3.55814C3.24989 10.4417 3 10.6916 3 10.9999C3 11.3081 3.24989 11.558 3.55814 11.558H3.74419V11.7441C3.74419 11.7469 3.74421 11.7497 3.74425 11.7525C3.74418 11.7663 3.74418 11.7801 3.74419 11.7937L3.74419 11.8219C3.74419 12.1011 3.74419 12.2648 3.75577 12.4474C3.8614 14.1117 4.76078 15.6486 6.06424 16.6535C6.05401 16.6696 6.04451 16.6864 6.03579 16.7038L5.2916 18.1921C5.15375 18.4678 5.2655 18.8031 5.54121 18.941C5.81692 19.0788 6.15218 18.9671 6.29004 18.6914L7.0102 17.251C7.60683 17.553 8.25567 17.7518 8.9305 17.8201C9.11241 17.8385 9.22344 17.8427 9.41256 17.8498L9.41763 17.85C9.9685 17.8707 10.5077 17.8835 11 17.8835C11.4923 17.8835 12.0315 17.8707 12.5824 17.85L12.5874 17.8498C12.7765 17.8427 12.8876 17.8385 13.0695 17.8201C13.7444 17.7518 14.3933 17.553 14.99 17.251L15.7102 18.6914C15.8481 18.9671 16.1833 19.0788 16.459 18.941C16.7347 18.8031 16.8465 18.4678 16.7086 18.1921L15.9645 16.7038C15.9557 16.6863 15.9462 16.6695 15.9359 16.6534C17.2393 15.6485 18.1386 14.1117 18.2442 12.4474C18.2558 12.2649 18.2558 12.1012 18.2558 11.8219L18.2558 11.7937C18.2559 11.749 18.2559 11.7025 18.2531 11.6596C18.2509 11.6253 18.2473 11.5915 18.2425 11.558H18.4419C18.7501 11.558 19 11.3081 19 10.9999C19 10.6916 18.7501 10.4417 18.4419 10.4417H4.86047V5.33311Z" fill="currentColor"/></g></svg>5 baths</li>
<li class="rw-mini__fact"><svg class="rw-icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="square" focusable="false" aria-hidden="true"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.02513 5.02513C4 6.05025 4 7.70017 4 11C4 14.2998 4 15.9497 5.02513 16.9749C6.05025 18 7.70017 18 11 18C14.2998 18 15.9497 18 16.9749 16.9749C18 15.9497 18 14.2998 18 11C18 7.70017 18 6.05025 16.9749 5.02513C15.9497 4 14.2998 4 11 4C7.70017 4 6.05025 4 5.02513 5.02513ZM10.1232 6.79555C10.1256 7.08549 9.89256 7.32252 9.60263 7.32498C9.00351 7.33006 8.58507 7.34985 8.27026 7.41152C7.9701 7.47031 7.80396 7.55998 7.68197 7.68197C7.55998 7.80396 7.47031 7.9701 7.41152 8.27026C7.34985 8.58507 7.33006 9.00351 7.32498 9.60263C7.32252 9.89256 7.08549 10.1256 6.79555 10.1232C6.50561 10.1207 6.27256 9.88366 6.27502 9.59372C6.28007 8.99824 6.2985 8.49011 6.3811 8.06842C6.46657 7.63208 6.62721 7.2518 6.93951 6.93951C7.2518 6.62721 7.63208 6.46657 8.06842 6.3811C8.49011 6.2985 8.99824 6.28007 9.59372 6.27502C9.88366 6.27256 10.1207 6.50561 10.1232 6.79555ZM11.8751 6.79555C11.8776 6.50561 12.1146 6.27256 12.4046 6.27502C13 6.28007 13.5082 6.2985 13.9299 6.3811C14.3662 6.46657 14.7465 6.62721 15.0588 6.93951C15.3711 7.2518 15.5317 7.63208 15.6172 8.06842C15.6998 8.49011 15.7182 8.99824 15.7233 9.59372C15.7257 9.88366 15.4927 10.1207 15.2027 10.1232C14.9128 10.1256 14.6758 9.89256 14.6733 9.60263C14.6682 9.00351 14.6484 8.58507 14.5868 8.27026C14.528 7.9701 14.4383 7.80396 14.3163 7.68197C14.1943 7.55998 14.0282 7.47031 13.728 7.41152C13.4132 7.34985 12.9948 7.33006 12.3957 7.32498C12.1057 7.32252 11.8727 7.08549 11.8751 6.79555ZM7.32498 12.396C7.32252 12.1061 7.08549 11.873 6.79555 11.8755C6.50561 11.8779 6.27256 12.115 6.27502 12.4049C6.28007 13.0004 6.2985 13.5085 6.3811 13.9302C6.46657 14.3666 6.62721 14.7468 6.93951 15.0591C7.2518 15.3714 7.63208 15.5321 8.06842 15.6175C8.49011 15.7001 8.99824 15.7186 9.59372 15.7236C9.88366 15.7261 10.1207 15.493 10.1232 15.2031C10.1256 14.9131 9.89256 14.6761 9.60263 14.6737C9.00351 14.6686 8.58507 14.6488 8.27026 14.5871C7.9701 14.5283 7.80396 14.4387 7.68197 14.3167C7.55998 14.1947 7.47031 14.0285 7.41152 13.7284C7.34985 13.4136 7.33006 12.9951 7.32498 12.396ZM15.2027 11.8755C15.4927 11.8779 15.7257 12.115 15.7233 12.4049C15.7182 13.0004 15.6998 13.5085 15.6172 13.9302C15.5317 14.3666 15.3711 14.7468 15.0588 15.0591C14.7465 15.3714 14.3662 15.5321 13.9299 15.6175C13.5082 15.7001 13 15.7186 12.4046 15.7236C12.1146 15.7261 11.8776 15.493 11.8751 15.2031C11.8727 14.9131 12.1057 14.6761 12.3957 14.6737C12.9948 14.6686 13.4132 14.6488 13.728 14.5871C14.0282 14.5283 14.1943 14.4387 14.3163 14.3167C14.4383 14.1947 14.528 14.0285 14.5868 13.7284C14.6484 13.4136 14.6682 12.9951 14.6733 12.396C14.6758 12.1061 14.9128 11.873 15.2027 11.8755Z" fill="currentColor"/></g></svg>6,838 sq ft</li>
</ul>
</div>
</div>
<a class="rw-detail-header__close" href="/search?city=Powder+Springs&state=GA" aria-label="Close" data-rw-header-close=""><svg class="rw-icon" viewBox="0 0 24 24" width="20" height="20" data-rw-icon="close" focusable="false" aria-hidden="true"><g fill="none"><g clip-path="url(#rw-close-clip0_4_13476)"><path d="M18.3002 5.7107C17.9102 5.3207 17.2802 5.3207 16.8902 5.7107L12.0002 10.5907L7.11022 5.7007C6.72022 5.3107 6.09021 5.3107 5.70021 5.7007C5.31021 6.0907 5.31021 6.7207 5.70021 7.1107L10.5902 12.0007L5.70021 16.8907C5.31021 17.2807 5.31021 17.9107 5.70021 18.3007C6.09021 18.6907 6.72022 18.6907 7.11022 18.3007L12.0002 13.4107L16.8902 18.3007C17.2802 18.6907 17.9102 18.6907 18.3002 18.3007C18.6902 17.9107 18.6902 17.2807 18.3002 16.8907L13.4102 12.0007L18.3002 7.1107C18.6802 6.7307 18.6802 6.0907 18.3002 5.7107Z" fill="currentColor"/></g><defs><clipPath id="rw-close-clip0_4_13476"><rect width="24" height="24" fill="currentColor"/></clipPath></defs></g></svg></a>
</div>
</header>
<div class="rw-detail__content">
<div class="rw-photogrid rw-photogrid--n5" data-rw-photo-grid="" data-rw-photos="[{"url":"https://photos.ruuster.com/l/1/0.jpg","width":1200,"height":800,"alt":"Two-story brick house with a two-car garage"},{"url":"https://photos.ruuster.com/l/1/1.jpg","width":1200,"height":800,"alt":"Kitchen with an island"},{"url":"https://photos.ruuster.com/l/1/2.jpg","width":1200,"height":800,"alt":"Fenced back yard with a patio"},{"url":"https://photos.ruuster.com/l/1/3.jpg","width":1200,"height":800,"alt":"Living room with a fireplace"},{"url":"https://photos.ruuster.com/l/1/4.jpg","width":1200,"height":800,"alt":"Primary bedroom with a bay window"},{"url":"https://photos.ruuster.com/l/1/5.jpg","width":1200,"height":800,"alt":"Front porch at dusk"}]" data-rw-photo-alt="1417 Sterlingbrooke Dr SW, Powder Springs, GA 30127">
<button type="button" class="rw-photogrid__cell rw-photogrid__cell--0" aria-label="View photo 1" data-rw-open="gallery" data-rw-open-tab="photos" data-rw-open-index="0">
<img src="https://photos.ruuster.com/l/1/0.jpg" width="1200" height="800" alt="Two-story brick house with a two-car garage" loading="eager" decoding="async" srcSet="https://photos.ruuster.com/l/1/0.jpg?width=480 480w, https://photos.ruuster.com/l/1/0.jpg?width=800 800w, https://photos.ruuster.com/l/1/0.jpg?width=1200 1200w" sizes="(min-width: 768px) 50vw, 100vw" fetchpriority="high" class="rw-photogrid__img"/>
<img class="rw-photogrid__logo" src="https://photos.ruuster.com/mls/nwmls.png" alt="Northwest MLS logo" width="80" height="32" loading="lazy" decoding="async" data-rw-photo-logo=""/>
</button>
<button type="button" class="rw-photogrid__cell rw-photogrid__cell--1" aria-label="View photo 2" data-rw-open="gallery" data-rw-open-tab="photos" data-rw-open-index="1">
<img src="https://photos.ruuster.com/l/1/1.jpg" width="1200" height="800" alt="Kitchen with an island" loading="lazy" decoding="async" srcSet="https://photos.ruuster.com/l/1/1.jpg?width=480 480w, https://photos.ruuster.com/l/1/1.jpg?width=800 800w, https://photos.ruuster.com/l/1/1.jpg?width=1200 1200w" sizes="25vw" class="rw-photogrid__img"/>
</button>
<button type="button" class="rw-photogrid__cell rw-photogrid__cell--2" aria-label="View photo 3" data-rw-open="gallery" data-rw-open-tab="photos" data-rw-open-index="2">
<img src="https://photos.ruuster.com/l/1/2.jpg" width="1200" height="800" alt="Fenced back yard with a patio" loading="lazy" decoding="async" srcSet="https://photos.ruuster.com/l/1/2.jpg?width=480 480w, https://photos.ruuster.com/l/1/2.jpg?width=800 800w, https://photos.ruuster.com/l/1/2.jpg?width=1200 1200w" sizes="25vw" class="rw-photogrid__img"/>
</button>
<button type="button" class="rw-photogrid__cell rw-photogrid__cell--3" aria-label="View photo 4" data-rw-open="gallery" data-rw-open-tab="photos" data-rw-open-index="3">
<img src="https://photos.ruuster.com/l/1/3.jpg" width="1200" height="800" alt="Living room with a fireplace" loading="lazy" decoding="async" srcSet="https://photos.ruuster.com/l/1/3.jpg?width=480 480w, https://photos.ruuster.com/l/1/3.jpg?width=800 800w, https://photos.ruuster.com/l/1/3.jpg?width=1200 1200w" sizes="25vw" class="rw-photogrid__img"/>
</button>
<button type="button" class="rw-photogrid__cell rw-photogrid__cell--4" aria-label="View photo 5" data-rw-open="gallery" data-rw-open-tab="photos" data-rw-open-index="4">
<img src="https://photos.ruuster.com/l/1/4.jpg" width="1200" height="800" alt="Primary bedroom with a bay window" loading="lazy" decoding="async" srcSet="https://photos.ruuster.com/l/1/4.jpg?width=480 480w, https://photos.ruuster.com/l/1/4.jpg?width=800 800w, https://photos.ruuster.com/l/1/4.jpg?width=1200 1200w" sizes="25vw" class="rw-photogrid__img"/>
</button>
<div class="rw-photogrid__actions">
<button type="button" class="rw-photogrid__iconbtn" aria-label="Share this home" data-rw-open="share"><svg class="rw-icon rw-icon--white" viewBox="0 0 24 24" width="17" height="17" data-rw-icon="share-black" focusable="false" aria-hidden="true"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 15.75C12.4142 15.75 12.75 15.4142 12.75 15V4.02744L14.4306 5.98809C14.7001 6.30259 15.1736 6.33901 15.4881 6.06944C15.8026 5.79988 15.839 5.3264 15.5694 5.01191L12.5694 1.51191C12.427 1.34567 12.2189 1.25 12 1.25C11.7811 1.25 11.573 1.34567 11.4306 1.51191L8.43056 5.01191C8.16099 5.3264 8.19741 5.79988 8.51191 6.06944C8.8264 6.33901 9.29988 6.30259 9.56944 5.98809L11.25 4.02744L11.25 15C11.25 15.4142 11.5858 15.75 12 15.75Z" fill="currentColor"/><path d="M16 9C15.2978 9 14.9467 9 14.6945 9.16851C14.5853 9.24148 14.4915 9.33525 14.4186 9.44446C14.25 9.69667 14.25 10.0478 14.25 10.75L14.25 15C14.25 16.2426 13.2427 17.25 12 17.25C10.7574 17.25 9.75004 16.2426 9.75004 15L9.75004 10.75C9.75004 10.0478 9.75004 9.69664 9.58149 9.4444C9.50854 9.33523 9.41481 9.2415 9.30564 9.16855C9.05341 9 8.70227 9 8 9C5.17157 9 3.75736 9 2.87868 9.87868C2 10.7574 2 12.1714 2 14.9998V15.9998C2 18.8282 2 20.2424 2.87868 21.1211C3.75736 21.9998 5.17157 21.9998 8 21.9998H16C18.8284 21.9998 20.2426 21.9998 21.1213 21.1211C22 20.2424 22 18.8282 22 15.9998V14.9998C22 12.1714 22 10.7574 21.1213 9.87868C20.2426 9 18.8284 9 16 9Z" fill="currentColor"/></g></svg></button>
</div>
<button type="button" class="rw-photogrid__street" data-rw-open="gallery" data-rw-open-tab="street"><svg class="rw-icon rw-icon--white" viewBox="0 0 20 20" width="20" height="20" data-rw-icon="street-view-white" focusable="false" aria-hidden="true"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.7085 3.33464C7.7085 2.06898 8.73451 1.04297 10.0002 1.04297C11.2658 1.04297 12.2918 2.06898 12.2918 3.33464C12.2918 4.60029 11.2658 5.6263 10.0002 5.6263C8.73451 5.6263 7.7085 4.60029 7.7085 3.33464Z" fill="currentColor"/><path d="M6.85241 9.64394L5.03967 9.0397C4.51822 8.86588 4.1665 8.3779 4.1665 7.82825C4.1665 7.01527 4.91611 6.40927 5.71105 6.57962L7.29235 6.91847C7.38029 6.93731 7.42425 6.94673 7.46784 6.95575C9.13816 7.30125 10.8615 7.30125 12.5318 6.95575C12.5754 6.94673 12.6194 6.93731 12.7073 6.91847L14.2886 6.57961C15.0836 6.40927 15.8332 7.01527 15.8332 7.82825C15.8332 8.3779 15.4815 8.86588 14.96 9.0397L13.1473 9.64394C12.9282 9.71697 12.8187 9.75348 12.7363 9.80432C12.4558 9.97748 12.3037 10.2997 12.3484 10.6263C12.3615 10.7222 12.4029 10.83 12.4858 11.0455L13.5248 13.7469C13.8341 14.551 13.2405 15.4153 12.379 15.4153C11.9384 15.4153 11.5316 15.1792 11.313 14.7967L9.99984 12.4986L8.68665 14.7967C8.46807 15.1792 8.06128 15.4153 7.62072 15.4153C6.75915 15.4153 6.16558 14.551 6.47486 13.7469L7.51385 11.0455C7.59675 10.83 7.6382 10.7222 7.65131 10.6263C7.69597 10.2997 7.5439 9.97748 7.26338 9.80432C7.18101 9.75348 7.07148 9.71697 6.85241 9.64394Z" fill="currentColor"/><path d="M9.99984 18.3316C14.6022 18.3316 18.3332 16.6526 18.3332 14.5816C18.3332 13.1467 16.5423 11.9 13.9115 11.2695L14.6915 13.2976C15.3157 14.9205 14.1177 16.6647 12.379 16.6647C11.4898 16.6647 10.6689 16.1883 10.2277 15.4163L9.99984 15.0175L9.77195 15.4163C9.33082 16.1883 8.50985 16.6647 7.62072 16.6647C5.88193 16.6647 4.68399 14.9205 5.30818 13.2976L6.08819 11.2695C3.45739 11.9 1.6665 13.1467 1.6665 14.5816C1.6665 16.6526 5.39746 18.3316 9.99984 18.3316Z" fill="currentColor"/></g></svg>Street view</button>
<button type="button" class="rw-photogrid__count" data-rw-open="gallery" data-rw-open-tab="photos" data-rw-open-index="0"><svg class="rw-icon" viewBox="0 0 24 24" width="16" height="16" data-rw-icon="gallery-round" focusable="false" aria-hidden="true"><g fill="none"><path d="M18 8C18 9.10457 17.1046 10 16 10C14.8954 10 14 9.10457 14 8C14 6.89543 14.8954 6 16 6C17.1046 6 18 6.89543 18 8Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12.0574 1.25H11.9426C9.63424 1.24999 7.82519 1.24998 6.41371 1.43975C4.96897 1.63399 3.82895 2.03933 2.93414 2.93414C2.03933 3.82895 1.63399 4.96897 1.43975 6.41371C1.24998 7.82519 1.24999 9.63422 1.25 11.9426V12.0574C1.24999 14.3658 1.24998 16.1748 1.43975 17.5863C1.63399 19.031 2.03933 20.1711 2.93414 21.0659C3.82895 21.9607 4.96897 22.366 6.41371 22.5603C7.82519 22.75 9.63423 22.75 11.9426 22.75H12.0574C14.3658 22.75 16.1748 22.75 17.5863 22.5603C19.031 22.366 20.1711 21.9607 21.0659 21.0659C21.9607 20.1711 22.366 19.031 22.5603 17.5863C22.75 16.1748 22.75 14.3658 22.75 12.0574V11.9426C22.75 9.63423 22.75 7.82519 22.5603 6.41371C22.366 4.96897 21.9607 3.82895 21.0659 2.93414C20.1711 2.03933 19.031 1.63399 17.5863 1.43975C16.1748 1.24998 14.3658 1.24999 12.0574 1.25ZM3.9948 3.9948C4.56445 3.42514 5.33517 3.09825 6.61358 2.92637C7.91356 2.75159 9.62178 2.75 12 2.75C14.3782 2.75 16.0864 2.75159 17.3864 2.92637C18.6648 3.09825 19.4355 3.42514 20.0052 3.9948C20.5749 4.56445 20.9018 5.33517 21.0736 6.61358C21.2484 7.91356 21.25 9.62178 21.25 12C21.25 12.4502 21.2499 12.8764 21.2487 13.2804L21.0266 13.2497C18.1828 12.8559 15.5805 14.3343 14.2554 16.5626C12.5459 12.2376 8.02844 9.28807 2.98073 10.0129L2.75497 10.0454C2.76633 8.63992 2.80368 7.52616 2.92637 6.61358C3.09825 5.33517 3.42514 4.56445 3.9948 3.9948Z" fill="currentColor"/></g></svg>6 photos</button>
</div>
<div class="rw-detail__columns">
<div class="rw-detail__main">
<section class="rw-price" data-rw-price-block="">
<p class="rw-price__status rw-price__status--green"><span class="rw-price__dot" aria-hidden="true"></span>Active</p>
<p class="rw-price__amount">$480,000</p>
<ul class="rw-price__facts">
<li class="rw-price__fact"><svg class="rw-icon" viewBox="0 0 22 22" width="16" height="16" data-rw-icon="beds" focusable="false" aria-hidden="true"><g fill="none"><path d="M10.4 10.0448V7.52239H9.00002C8.22881 7.52239 7.71077 7.52363 7.32434 7.57403C6.95517 7.62218 6.79717 7.7054 6.69292 7.80654C6.58866 7.90768 6.50288 8.06096 6.45325 8.41911C6.4013 8.79401 6.40002 9.29659 6.40002 10.0448L10.4 10.0448Z" fill="currentColor"/><path d="M15.6 10.0448C15.6 9.29659 15.5987 8.79401 15.5468 8.41911C15.4972 8.06096 15.4114 7.90768 15.3071 7.80654C15.2029 7.7054 15.0449 7.62218 14.6757 7.57403C14.2893 7.52363 13.7712 7.52239 13 7.52239H11.6V10.0448L15.6 10.0448Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M11.8 5H10.2C7.18303 5 5.67454 5 4.73728 5.90928C3.9193 6.70284 3.8152 7.9185 3.80195 10.1607V11.4158C3.49768 11.5857 3.2576 11.8491 3.12179 12.1672C3 12.4524 3 12.8141 3 13.5373C3 14.2606 3 14.6222 3.12179 14.9074C3.28418 15.2878 3.59566 15.59 3.98771 15.7475C4.18962 15.8287 4.42864 15.8541 4.8 15.862V17.4179C4.8 17.7394 5.06863 18 5.4 18C5.73137 18 6 17.7394 6 17.4179V15.8657H16V17.4179C16 17.7394 16.2686 18 16.6 18C16.9314 18 17.2 17.7394 17.2 17.4179V15.862C17.5714 15.8541 17.8104 15.8287 18.0123 15.7475C18.4043 15.59 18.7158 15.2878 18.8782 14.9074C19 14.6222 19 14.2606 19 13.5373C19 12.8141 19 12.4524 18.8782 12.1672C18.7424 11.8491 18.5023 11.5857 18.1981 11.4158V10.1607C18.1848 7.9185 18.0807 6.70284 17.2628 5.90928C16.3255 5 14.817 5 11.8 5ZM16.8 11.2091V10.0044C16.8 9.30712 16.8001 8.72559 16.7361 8.26399C16.6686 7.77674 16.52 7.33684 16.1557 6.98334C15.7913 6.62984 15.3378 6.48574 14.8356 6.42023C14.3598 6.35817 13.7604 6.35819 13.0416 6.35821H8.95842C8.23964 6.35819 7.64026 6.35817 7.16444 6.42023C6.6622 6.48574 6.20876 6.62984 5.84439 6.98334C5.48001 7.33684 5.33148 7.77674 5.26395 8.26399C5.19998 8.72561 5.2 9.30709 5.20002 10.0044V11.2091C5.26357 11.209 5.33015 11.209 5.4 11.209H16.6C16.6699 11.209 16.7365 11.209 16.8 11.2091Z" fill="currentColor"/></g></svg>6 beds</li>
<li class="rw-price__fact"><svg class="rw-icon" viewBox="0 0 22 22" width="16" height="16" data-rw-icon="bath" focusable="false" aria-hidden="true"><g fill="none"><path d="M4.86047 5.33311C4.86047 4.66106 5.40528 4.11626 6.07733 4.11626C6.57491 4.11626 7.02237 4.4192 7.20716 4.88118L7.31379 5.14774C6.87136 5.47013 6.5099 5.91966 6.28724 6.46795C5.97445 7.23818 5.99132 8.06533 6.27278 8.77964C6.32816 8.92017 6.43812 9.03225 6.57756 9.0903C6.71701 9.14835 6.87403 9.1474 7.01276 9.08768L11.4487 7.17806C11.7256 7.05886 11.8578 6.7413 11.7473 6.46081C11.4657 5.74622 10.9159 5.13719 10.1603 4.8144C9.55652 4.55646 8.91592 4.52175 8.32557 4.67152L8.2436 4.46661C7.88928 3.58083 7.03137 3 6.07733 3C4.78877 3 3.74419 4.04457 3.74419 5.33311V10.4417H3.55814C3.24989 10.4417 3 10.6916 3 10.9999C3 11.3081 3.24989 11.558 3.55814 11.558H3.74419V11.7441C3.74419 11.7469 3.74421 11.7497 3.74425 11.7525C3.74418 11.7663 3.74418 11.7801 3.74419 11.7937L3.74419 11.8219C3.74419 12.1011 3.74419 12.2648 3.75577 12.4474C3.8614 14.1117 4.76078 15.6486 6.06424 16.6535C6.05401 16.6696 6.04451 16.6864 6.03579 16.7038L5.2916 18.1921C5.15375 18.4678 5.2655 18.8031 5.54121 18.941C5.81692 19.0788 6.15218 18.9671 6.29004 18.6914L7.0102 17.251C7.60683 17.553 8.25567 17.7518 8.9305 17.8201C9.11241 17.8385 9.22344 17.8427 9.41256 17.8498L9.41763 17.85C9.9685 17.8707 10.5077 17.8835 11 17.8835C11.4923 17.8835 12.0315 17.8707 12.5824 17.85L12.5874 17.8498C12.7765 17.8427 12.8876 17.8385 13.0695 17.8201C13.7444 17.7518 14.3933 17.553 14.99 17.251L15.7102 18.6914C15.8481 18.9671 16.1833 19.0788 16.459 18.941C16.7347 18.8031 16.8465 18.4678 16.7086 18.1921L15.9645 16.7038C15.9557 16.6863 15.9462 16.6695 15.9359 16.6534C17.2393 15.6485 18.1386 14.1117 18.2442 12.4474C18.2558 12.2649 18.2558 12.1012 18.2558 11.8219L18.2558 11.7937C18.2559 11.749 18.2559 11.7025 18.2531 11.6596C18.2509 11.6253 18.2473 11.5915 18.2425 11.558H18.4419C18.7501 11.558 19 11.3081 19 10.9999C19 10.6916 18.7501 10.4417 18.4419 10.4417H4.86047V5.33311Z" fill="currentColor"/></g></svg>5 baths</li>
<li class="rw-price__fact"><svg class="rw-icon" viewBox="0 0 22 22" width="16" height="16" data-rw-icon="square" focusable="false" aria-hidden="true"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.02513 5.02513C4 6.05025 4 7.70017 4 11C4 14.2998 4 15.9497 5.02513 16.9749C6.05025 18 7.70017 18 11 18C14.2998 18 15.9497 18 16.9749 16.9749C18 15.9497 18 14.2998 18 11C18 7.70017 18 6.05025 16.9749 5.02513C15.9497 4 14.2998 4 11 4C7.70017 4 6.05025 4 5.02513 5.02513ZM10.1232 6.79555C10.1256 7.08549 9.89256 7.32252 9.60263 7.32498C9.00351 7.33006 8.58507 7.34985 8.27026 7.41152C7.9701 7.47031 7.80396 7.55998 7.68197 7.68197C7.55998 7.80396 7.47031 7.9701 7.41152 8.27026C7.34985 8.58507 7.33006 9.00351 7.32498 9.60263C7.32252 9.89256 7.08549 10.1256 6.79555 10.1232C6.50561 10.1207 6.27256 9.88366 6.27502 9.59372C6.28007 8.99824 6.2985 8.49011 6.3811 8.06842C6.46657 7.63208 6.62721 7.2518 6.93951 6.93951C7.2518 6.62721 7.63208 6.46657 8.06842 6.3811C8.49011 6.2985 8.99824 6.28007 9.59372 6.27502C9.88366 6.27256 10.1207 6.50561 10.1232 6.79555ZM11.8751 6.79555C11.8776 6.50561 12.1146 6.27256 12.4046 6.27502C13 6.28007 13.5082 6.2985 13.9299 6.3811C14.3662 6.46657 14.7465 6.62721 15.0588 6.93951C15.3711 7.2518 15.5317 7.63208 15.6172 8.06842C15.6998 8.49011 15.7182 8.99824 15.7233 9.59372C15.7257 9.88366 15.4927 10.1207 15.2027 10.1232C14.9128 10.1256 14.6758 9.89256 14.6733 9.60263C14.6682 9.00351 14.6484 8.58507 14.5868 8.27026C14.528 7.9701 14.4383 7.80396 14.3163 7.68197C14.1943 7.55998 14.0282 7.47031 13.728 7.41152C13.4132 7.34985 12.9948 7.33006 12.3957 7.32498C12.1057 7.32252 11.8727 7.08549 11.8751 6.79555ZM7.32498 12.396C7.32252 12.1061 7.08549 11.873 6.79555 11.8755C6.50561 11.8779 6.27256 12.115 6.27502 12.4049C6.28007 13.0004 6.2985 13.5085 6.3811 13.9302C6.46657 14.3666 6.62721 14.7468 6.93951 15.0591C7.2518 15.3714 7.63208 15.5321 8.06842 15.6175C8.49011 15.7001 8.99824 15.7186 9.59372 15.7236C9.88366 15.7261 10.1207 15.493 10.1232 15.2031C10.1256 14.9131 9.89256 14.6761 9.60263 14.6737C9.00351 14.6686 8.58507 14.6488 8.27026 14.5871C7.9701 14.5283 7.80396 14.4387 7.68197 14.3167C7.55998 14.1947 7.47031 14.0285 7.41152 13.7284C7.34985 13.4136 7.33006 12.9951 7.32498 12.396ZM15.2027 11.8755C15.4927 11.8779 15.7257 12.115 15.7233 12.4049C15.7182 13.0004 15.6998 13.5085 15.6172 13.9302C15.5317 14.3666 15.3711 14.7468 15.0588 15.0591C14.7465 15.3714 14.3662 15.5321 13.9299 15.6175C13.5082 15.7001 13 15.7186 12.4046 15.7236C12.1146 15.7261 11.8776 15.493 11.8751 15.2031C11.8727 14.9131 12.1057 14.6761 12.3957 14.6737C12.9948 14.6686 13.4132 14.6488 13.728 14.5871C14.0282 14.5283 14.1943 14.4387 14.3163 14.3167C14.4383 14.1947 14.528 14.0285 14.5868 13.7284C14.6484 13.4136 14.6682 12.9951 14.6733 12.396C14.6758 12.1061 14.9128 11.873 15.2027 11.8755Z" fill="currentColor"/></g></svg>6,838 sq ft</li>
</ul>
<h1 class="rw-price__address">1417 Sterlingbrooke Dr SW, Powder Springs, GA 30127</h1>
</section>
<section class="rw-detail__block">
<h2 class="rw-detail__title">Description</h2>
<p class="rw-detail__description rw-detail__description--clamped" data-rw-description="">Bright two-story home with a renovated kitchen and a fenced yard.</p>
<p><a class="rw-detail__tour" href="https://tours.example.com/1417" target="_blank" rel="noopener noreferrer">Take the virtual tour</a></p>
</section>
<section class="rw-detail__block rw-agentinfo" data-rw-agent-info="">
<h2 class="rw-detail__title">Agent information</h2>
<ul class="rw-agentinfo__rows">
<li class="rw-agentinfo__row">
<div class="rw-agentinfo__text">
<p class="rw-agentinfo__label">Agent name</p>
<p class="rw-agentinfo__value">Jordan Lee</p>
</div>
<span class="rw-avatar rw-avatar--45 rw-avatar--grey" aria-hidden="true">JL</span>
</li>
<li class="rw-agentinfo__row">
<div class="rw-agentinfo__text">
<p class="rw-agentinfo__label">Brokerage</p>
<p class="rw-agentinfo__value">Peach Realty</p>
</div>
</li>
<li class="rw-agentinfo__row">
<div class="rw-agentinfo__text">
<p class="rw-agentinfo__label">License number</p>
<p class="rw-agentinfo__value">GA 123456</p>
</div>
</li>
<li class="rw-agentinfo__row">
<div class="rw-agentinfo__text">
<p class="rw-agentinfo__label">Email</p>
<p class="rw-agentinfo__value">jordan@peachrealty.example</p>
</div>
<a class="rw-agentinfo__round" href="mailto:jordan@peachrealty.example" aria-label="Email Jordan Lee"><svg class="rw-icon" viewBox="0 0 24 24" width="20" height="20" data-rw-icon="letter" focusable="false" aria-hidden="true"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.17157 5.17157C2 6.34315 2 8.22876 2 12C2 15.7712 2 17.6569 3.17157 18.8284C4.34315 20 6.22876 20 10 20H14C17.7712 20 19.6569 20 20.8284 18.8284C22 17.6569 22 15.7712 22 12C22 8.22876 22 6.34315 20.8284 5.17157C19.6569 4 17.7712 4 14 4H10C6.22876 4 4.34315 4 3.17157 5.17157ZM18.5762 7.51986C18.8413 7.83807 18.7983 8.31099 18.4801 8.57617L16.2837 10.4066C15.3973 11.1452 14.6789 11.7439 14.0448 12.1517C13.3843 12.5765 12.7411 12.8449 12 12.8449C11.2589 12.8449 10.6157 12.5765 9.95518 12.1517C9.32112 11.7439 8.60271 11.1452 7.71636 10.4066L5.51986 8.57617C5.20165 8.31099 5.15866 7.83807 5.42383 7.51986C5.68901 7.20165 6.16193 7.15866 6.48014 7.42383L8.63903 9.22291C9.57199 10.0004 10.2197 10.5384 10.7666 10.8901C11.2959 11.2306 11.6549 11.3449 12 11.3449C12.3451 11.3449 12.7041 11.2306 13.2334 10.8901C13.7803 10.5384 14.428 10.0004 15.361 9.22291L17.5199 7.42383C17.8381 7.15866 18.311 7.20165 18.5762 7.51986Z" fill="currentColor"/></g></svg></a>
</li>
<li class="rw-agentinfo__row">
<div class="rw-agentinfo__text">
<p class="rw-agentinfo__label">Phone number</p>
<p class="rw-agentinfo__value">404-555-0100</p>
</div>
<a class="rw-agentinfo__round" href="tel:4045550100" aria-label="Call Jordan Lee"><svg class="rw-icon" viewBox="0 0 24 24" width="20" height="20" data-rw-icon="phone" focusable="false" aria-hidden="true"><g fill="none"><path d="M15.5562 14.4062L15.1007 14.859C15.1007 14.859 14.0181 15.9355 11.0631 12.9972C8.10812 10.059 9.1907 8.98257 9.1907 8.98257L9.47752 8.69738C10.1841 7.99484 10.2507 6.86691 9.63424 6.04348L8.37326 4.35908C7.61028 3.33992 6.13596 3.20529 5.26145 4.07483L3.69185 5.63552C3.25823 6.06668 2.96765 6.62559 3.00289 7.24561C3.09304 8.83182 3.81071 12.2447 7.81536 16.2266C12.0621 20.4492 16.0468 20.617 17.6763 20.4651C18.1917 20.4171 18.6399 20.1546 19.0011 19.7954L20.4217 18.383C21.3806 17.4295 21.1102 15.7949 19.8833 15.128L17.9728 14.0894C17.1672 13.6515 16.1858 13.7801 15.5562 14.4062Z" fill="currentColor"/></g></svg></a>
</li>
</ul>
</section>
<section class="rw-detail__block rw-openhouses" data-rw-open-houses="">
<h2 class="rw-detail__title">Open houses</h2>
<ul class="rw-openhouses__grid" id="listing-detail-1">
<li class="rw-openhouses__entry">
<p class="rw-openhouses__day"><time dateTime="2026-11-05T14:00:00Z">Today</time></p>
<p class="rw-openhouses__date">Thursday, November 5</p>
<p class="rw-openhouses__time">9:00 AM to 12:00 PM</p>
<p class="rw-openhouses__live"><span class="rw-openhouses__dot" aria-hidden="true"></span>Happening now</p>
<p class="rw-openhouses__remarks">Park on the street.</p>
</li>
<li class="rw-openhouses__entry">
<p class="rw-openhouses__day"><time dateTime="2026-11-06T18:00:00Z">Tomorrow</time></p>
<p class="rw-openhouses__date">Friday, November 6</p>
<p class="rw-openhouses__time">1:00 PM to 3:00 PM</p>
</li>
<li class="rw-openhouses__entry">
<p class="rw-openhouses__day"><time dateTime="2026-11-07T18:00:00Z">Saturday, November 7</time></p>
<p class="rw-openhouses__time">1:00 PM to 3:00 PM</p>
</li>
<li class="rw-openhouses__entry" hidden="" data-rw-oh-extra="">
<p class="rw-openhouses__day"><time dateTime="2026-11-08T19:00:00Z">Sunday, November 8</time></p>
<p class="rw-openhouses__time">2:00 PM to 4:00 PM</p>
</li>
</ul>
<button type="button" class="rw-openhouses__toggle" aria-expanded="false" aria-controls="listing-detail-1" data-rw-oh-toggle="" data-rw-oh-more="Show all 4 open houses" data-rw-oh-fewer="Show fewer open houses">Show all 4 open houses</button>
<div class="rw-openhouses__tour">
<p class="rw-openhouses__prompt">Tour when it works for you.</p>
<button type="button" class="rw-button rw-button--accent" data-rw-open="tour">Schedule a tour</button>
</div>
</section>
<section class="rw-detail__block rw-details">
<h2 class="rw-detail__title">Property details</h2>
<div class="rw-details__list">
<details class="rw-accordion" open="" data-category-id="adabf788-a332-4729-98ef-9a950fe93aec">
<summary class="rw-accordion__summary">
<svg class="rw-icon rw-accordion__icon" viewBox="0 0 24 24" width="24" height="24" data-rw-icon="checklist-minimalistic" focusable="false" aria-hidden="true"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.46447 3.46447C2 4.92893 2 7.28595 2 12C2 16.714 2 19.0711 3.46447 20.5355C4.92893 22 7.28595 22 12 22C16.714 22 19.0711 22 20.5355 20.5355C22 19.0711 22 16.714 22 12C22 7.28595 22 4.92893 20.5355 3.46447C19.0711 2 16.714 2 12 2C7.28595 2 4.92893 2 3.46447 3.46447ZM10.5431 7.51724C10.8288 7.2173 10.8172 6.74256 10.5172 6.4569C10.2173 6.17123 9.74256 6.18281 9.4569 6.48276L7.14286 8.9125L6.5431 8.28276C6.25744 7.98281 5.78271 7.97123 5.48276 8.2569C5.18281 8.54256 5.17123 9.01729 5.4569 9.31724L6.59976 10.5172C6.74131 10.6659 6.9376 10.75 7.14286 10.75C7.34812 10.75 7.5444 10.6659 7.68596 10.5172L10.5431 7.51724ZM13 8.25C12.5858 8.25 12.25 8.58579 12.25 9C12.25 9.41422 12.5858 9.75 13 9.75H18C18.4142 9.75 18.75 9.41422 18.75 9C18.75 8.58579 18.4142 8.25 18 8.25H13ZM10.5431 14.5172C10.8288 14.2173 10.8172 13.7426 10.5172 13.4569C10.2173 13.1712 9.74256 13.1828 9.4569 13.4828L7.14286 15.9125L6.5431 15.2828C6.25744 14.9828 5.78271 14.9712 5.48276 15.2569C5.18281 15.5426 5.17123 16.0173 5.4569 16.3172L6.59976 17.5172C6.74131 17.6659 6.9376 17.75 7.14286 17.75C7.34812 17.75 7.5444 17.6659 7.68596 17.5172L10.5431 14.5172ZM13 15.25C12.5858 15.25 12.25 15.5858 12.25 16C12.25 16.4142 12.5858 16.75 13 16.75H18C18.4142 16.75 18.75 16.4142 18.75 16C18.75 15.5858 18.4142 15.25 18 15.25H13Z" fill="currentColor"/></g></svg>
<span class="rw-accordion__title">Listing details</span>
<svg class="rw-icon rw-accordion__chevron" viewBox="0 0 24 24" width="20" height="20" data-rw-icon="chevron-down" focusable="false" aria-hidden="true"><g fill="none"><path d="M19 9L12 16L5 9" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></g></svg>
</summary>
<ul class="rw-accordion__list">
<li class="rw-accordion__item"><span class="rw-accordion__label">Year built</span> 2004</li>
<li class="rw-accordion__item"><span class="rw-accordion__label">Association</span> Yes</li>
</ul>
</details>
<details class="rw-accordion" data-category-id="b1b0a859-8f18-4f10-8075-74e935e3ffd7">
<summary class="rw-accordion__summary">
<svg class="rw-icon rw-accordion__icon" viewBox="0 0 24 24" width="24" height="24" data-rw-icon="lamp" focusable="false" aria-hidden="true"><g fill="none"><path d="M6.66749 3.15144C5.88138 3.9264 5.57692 5.0991 4.96802 7.44451L4.88378 7.76897C4.05598 10.9576 3.64207 12.5519 4.39389 13.6719C4.46887 13.7837 4.55129 13.8902 4.64058 13.9909C5.5358 15 7.18295 15 10.4772 15H11.2559V21.25H9.00586C8.59165 21.25 8.25586 21.5858 8.25586 22C8.25586 22.4142 8.59165 22.75 9.00586 22.75H15.0059C15.4201 22.75 15.7559 22.4142 15.7559 22C15.7559 21.5858 15.4201 21.25 15.0059 21.25H12.7559V15H13.5358C14.8551 15 15.9102 15 16.7586 14.9352C16.7568 14.9565 16.7559 14.9782 16.7559 15V17C16.7559 17.4142 17.0916 17.75 17.5059 17.75C17.9201 17.75 18.2559 17.4142 18.2559 17V15V14.6817C18.7241 14.5324 19.0866 14.3131 19.3724 13.9909C19.4617 13.8902 19.5441 13.7837 19.6191 13.6719C20.3709 12.5519 19.957 10.9576 19.1292 7.76898L19.045 7.44451C18.4361 5.0991 18.1316 3.9264 17.3455 3.15144C17.1176 2.92678 16.8636 2.73028 16.5889 2.56616C15.6412 2 14.4297 2 12.0065 2C9.58334 2 8.37176 2 7.42412 2.56616C7.14941 2.73028 6.89538 2.92678 6.66749 3.15144Z" fill="currentColor"/></g></svg>
<span class="rw-accordion__title">Interior</span>
<svg class="rw-icon rw-accordion__chevron" viewBox="0 0 24 24" width="20" height="20" data-rw-icon="chevron-down" focusable="false" aria-hidden="true"><g fill="none"><path d="M19 9L12 16L5 9" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></g></svg>
</summary>
<ul class="rw-accordion__list">
<li class="rw-accordion__item"><span class="rw-accordion__label">Flooring</span> Hardwood, Tile</li>
</ul>
</details>
<details class="rw-accordion" data-category-id="bf41618a-39fb-4b9e-9b59-848ab86141dd">
<summary class="rw-accordion__summary">
<svg class="rw-icon rw-accordion__icon" viewBox="0 0 24 24" width="24" height="24" data-rw-icon="money-bag" focusable="false" aria-hidden="true"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.052 1.25H11.948C11.0495 1.24997 10.3003 1.24995 9.70552 1.32991C9.07773 1.41432 8.51093 1.59999 8.05546 2.05546C7.59999 2.51093 7.41432 3.07773 7.32991 3.70552C7.27259 4.13189 7.25637 5.15147 7.25179 6.02566C5.22954 6.09171 4.01536 6.32778 3.17157 7.17157C2 8.34315 2 10.2288 2 14C2 17.7712 2 19.6569 3.17157 20.8284C4.34314 22 6.22876 22 9.99998 22H14C17.7712 22 19.6569 22 20.8284 20.8284C22 19.6569 22 17.7712 22 14C22 10.2288 22 8.34315 20.8284 7.17157C19.9846 6.32778 18.7705 6.09171 16.7482 6.02566C16.7436 5.15147 16.7274 4.13189 16.6701 3.70552C16.5857 3.07773 16.4 2.51093 15.9445 2.05546C15.4891 1.59999 14.9223 1.41432 14.2945 1.32991C13.6997 1.24995 12.9505 1.24997 12.052 1.25ZM15.2479 6.00188C15.2434 5.15523 15.229 4.24407 15.1835 3.9054C15.1214 3.44393 15.0142 3.24644 14.8839 3.11612C14.7536 2.9858 14.5561 2.87858 14.0946 2.81654C13.6116 2.7516 12.964 2.75 12 2.75C11.036 2.75 10.3884 2.7516 9.90539 2.81654C9.44393 2.87858 9.24644 2.9858 9.11612 3.11612C8.9858 3.24644 8.87858 3.44393 8.81654 3.9054C8.771 4.24407 8.75661 5.15523 8.75208 6.00188C9.1435 6 9.55885 6 10 6H14C14.4412 6 14.8565 6 15.2479 6.00188ZM12 9.25C12.4142 9.25 12.75 9.58579 12.75 10V10.0102C13.8388 10.2845 14.75 11.143 14.75 12.3333C14.75 12.7475 14.4142 13.0833 14 13.0833C13.5858 13.0833 13.25 12.7475 13.25 12.3333C13.25 11.9493 12.8242 11.4167 12 11.4167C11.1758 11.4167 10.75 11.9493 10.75 12.3333C10.75 12.7174 11.1758 13.25 12 13.25C13.3849 13.25 14.75 14.2098 14.75 15.6667C14.75 16.857 13.8388 17.7155 12.75 17.9898V18C12.75 18.4142 12.4142 18.75 12 18.75C11.5858 18.75 11.25 18.4142 11.25 18V17.9898C10.1612 17.7155 9.25 16.857 9.25 15.6667C9.25 15.2525 9.58579 14.9167 10 14.9167C10.4142 14.9167 10.75 15.2525 10.75 15.6667C10.75 16.0507 11.1758 16.5833 12 16.5833C12.8242 16.5833 13.25 16.0507 13.25 15.6667C13.25 15.2826 12.8242 14.75 12 14.75C10.6151 14.75 9.25 13.7903 9.25 12.3333C9.25 11.143 10.1612 10.2845 11.25 10.0102V10C11.25 9.58579 11.5858 9.25 12 9.25Z" fill="currentColor"/></g></svg>
<span class="rw-accordion__title">Price and financial</span>
<svg class="rw-icon rw-accordion__chevron" viewBox="0 0 24 24" width="20" height="20" data-rw-icon="chevron-down" focusable="false" aria-hidden="true"><g fill="none"><path d="M19 9L12 16L5 9" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></g></svg>
</summary>
<ul class="rw-accordion__list">
<li class="rw-accordion__item"><span class="rw-accordion__label">Association fee</span> 125</li>
<li class="rw-accordion__item"><span class="rw-accordion__label">Association fee frequency</span> Monthly</li>
<li class="rw-accordion__item"><span class="rw-accordion__label">Yearly taxes</span> $5,400</li>
</ul>
</details>
</div>
</section>
<section class="rw-recipes rw-mortgage" aria-labelledby="listing-detail-2-title" data-rw-mortgage="" data-rw-base-url="/api/idx" data-rw-mortgage-query="{"price":480000,"downPaymentPercent":20,"loanType":null,"termYears":null,"state":"GA","zip":"30127","hoaMonthly":125,"propertyTaxAnnual":5400,"insuranceAnnual":null}" data-country="US">
<h2 class="rw-mortgage__title" id="listing-detail-2-title">Estimate your monthly payment</h2>
<div class="rw-mortgage__selects">
<div class="rw-field">
<label class="rw-field__label" for="listing-detail-2-loan">Loan type</label>
<select class="rw-select" id="listing-detail-2-loan" data-rw-mortgage-field="loanType">
<option value="conventional" selected="">Conventional</option>
<option value="fha">FHA</option>
<option value="va">VA</option>
<option value="usda">USDA</option>
<option value="jumbo">Jumbo</option>
</select>
</div>
<div class="rw-field">
<label class="rw-field__label" for="listing-detail-2-term">Term</label>
<select class="rw-select" id="listing-detail-2-term" data-rw-mortgage-field="term">
<option value="30" selected="">30 years, fixed</option>
<option value="20">20 years, fixed</option>
<option value="15">15 years, fixed</option>
<option value="30-arm">5/6 ARM</option>
</select>
</div>
</div>
<div class="rw-mortgage__sliders">
<div class="rw-mortgage__slider">
<div class="rw-mortgage__slider-head">
<label class="rw-field__label" id="listing-detail-2-price-label" for="listing-detail-2-price">Home price</label>
</div>
<input class="rw-input rw-mortgage__number" id="listing-detail-2-price" type="number" inputMode="decimal" min="50000" max="2500000" step="5000" data-rw-mortgage-field="price" value="480000"/>
<input class="rw-mortgage__range" type="range" aria-labelledby="listing-detail-2-price-label" min="50000" max="2500000" step="5000" data-rw-mortgage-field="price" value="480000"/>
</div>
<div class="rw-mortgage__slider">
<div class="rw-mortgage__slider-head">
<label class="rw-field__label" id="listing-detail-2-down-label" for="listing-detail-2-down">Down payment</label>
<fieldset class="rw-mortgage__mode"><legend class="rw-visually-hidden">Down payment</legend><label class="rw-mortgage__mode-option"><input type="radio" name="listing-detail-2-downmode" data-rw-mortgage-field="downMode" value="$"/><span>Dollars</span></label><label class="rw-mortgage__mode-option"><input type="radio" name="listing-detail-2-downmode" data-rw-mortgage-field="downMode" checked="" value="%"/><span>Percent</span></label></fieldset>
</div>
<input class="rw-input rw-mortgage__number" id="listing-detail-2-down" type="number" inputMode="decimal" min="0" max="100" step="0.5" data-rw-mortgage-field="downPayment" value="20"/>
<input class="rw-mortgage__range" type="range" aria-labelledby="listing-detail-2-down-label" min="0" max="100" step="0.5" data-rw-mortgage-field="downPayment" value="20"/>
<p class="rw-mortgage__hint" data-rw-mortgage-out="downHint">$96,000 down</p>
</div>
<div class="rw-mortgage__slider">
<div class="rw-mortgage__slider-head">
<label class="rw-field__label" id="listing-detail-2-rate-label" for="listing-detail-2-rate">Interest rate</label>
</div>
<input class="rw-input rw-mortgage__number" id="listing-detail-2-rate" type="number" inputMode="decimal" min="0" max="15" step="0.01" data-rw-mortgage-field="rate" value="6.568"/>
<input class="rw-mortgage__range" type="range" aria-labelledby="listing-detail-2-rate-label" min="0" max="15" step="0.01" data-rw-mortgage-field="rate" value="6.568"/>
<p class="rw-mortgage__hint" data-rw-mortgage-out="rateHint">Market rate on July 24, 2026</p>
</div>
</div>
<details class="rw-mortgage__more">
<summary class="rw-mortgage__more-summary">More options</summary>
<div class="rw-mortgage__more-grid">
<div class="rw-field">
<label class="rw-field__label" for="listing-detail-2-score">Credit score</label>
<select class="rw-select" id="listing-detail-2-score" data-rw-mortgage-field="creditScore">
<option value="760+" selected="">760+</option>
<option value="740-759">740-759</option>
<option value="720-739">720-739</option>
<option value="700-719">700-719</option>
<option value="680-699">680-699</option>
<option value="660-679">660-679</option>
<option value="640-659">640-659</option>
<option value="620-639">620-639</option>
<option value="<620"><620</option>
</select>
</div>
<div class="rw-field">
<label class="rw-field__label" for="listing-detail-2-propertyTaxAnnual">Yearly property tax</label>
<input class="rw-input" id="listing-detail-2-propertyTaxAnnual" type="text" inputMode="decimal" placeholder="5,400" data-rw-mortgage-field="propertyTaxAnnual" value="5400"/>
</div>
<div class="rw-field">
<label class="rw-field__label" for="listing-detail-2-insuranceAnnual">Yearly home insurance</label>
<input class="rw-input" id="listing-detail-2-insuranceAnnual" type="text" inputMode="decimal" placeholder="3,715" data-rw-mortgage-field="insuranceAnnual" value=""/>
</div>
<div class="rw-field">
<label class="rw-field__label" for="listing-detail-2-hoaMonthly">Monthly HOA dues</label>
<input class="rw-input" id="listing-detail-2-hoaMonthly" type="text" inputMode="decimal" placeholder="125" data-rw-mortgage-field="hoaMonthly" value="125"/>
</div>
</div>
</details>
<div class="rw-mortgage__result">
<div class="rw-mortgage__donut" data-rw-mortgage-donut=""><svg viewBox="0 0 140 140" width="160" height="160" aria-hidden="true" focusable="false"><circle class="rw-mortgage__track" cx="70" cy="70" r="54" fill="none" stroke-width="16"></circle><circle class="rw-mortgage__seg rw-mortgage__seg--principalAndInterest" cx="70" cy="70" r="54" fill="none" stroke-width="16" stroke-dasharray="249.132 90.160" stroke-dashoffset="0.000" transform="rotate(-90 70 70)" data-rw-mortgage-seg="principalAndInterest"></circle><circle class="rw-mortgage__seg rw-mortgage__seg--propertyTax" cx="70" cy="70" r="54" fill="none" stroke-width="16" stroke-dasharray="45.865 293.427" stroke-dashoffset="-249.132" transform="rotate(-90 70 70)" data-rw-mortgage-seg="propertyTax"></circle><circle class="rw-mortgage__seg rw-mortgage__seg--homeInsurance" cx="70" cy="70" r="54" fill="none" stroke-width="16" stroke-dasharray="31.555 307.737" stroke-dashoffset="-294.997" transform="rotate(-90 70 70)" data-rw-mortgage-seg="homeInsurance"></circle><circle class="rw-mortgage__seg rw-mortgage__seg--mortgageInsurance" cx="70" cy="70" r="54" fill="none" stroke-width="16" stroke-dasharray="0.000 339.292" stroke-dashoffset="-326.552" transform="rotate(-90 70 70)" data-rw-mortgage-seg="mortgageInsurance"></circle><circle class="rw-mortgage__seg rw-mortgage__seg--hoa" cx="70" cy="70" r="54" fill="none" stroke-width="16" stroke-dasharray="12.740 326.552" stroke-dashoffset="-326.552" transform="rotate(-90 70 70)" data-rw-mortgage-seg="hoa"></circle></svg><p class="rw-mortgage__center"><span class="rw-mortgage__total" data-rw-mortgage-out="total">$3,329</span><span class="rw-mortgage__per">per month</span></p></div>
<div class="rw-mortgage__lines">
<h3 class="rw-visually-hidden">Monthly payment breakdown</h3>
<ul class="rw-mortgage__list">
<li class="rw-mortgage__row" data-line="principalAndInterest">
<span class="rw-mortgage__dot rw-mortgage__dot--principalAndInterest" aria-hidden="true"></span>
<span class="rw-mortgage__label">Principal and interest</span>
<span class="rw-mortgage__value" data-rw-mortgage-out="principalAndInterest">$2,444</span>
</li>
<li class="rw-mortgage__row" data-line="propertyTax">
<span class="rw-mortgage__dot rw-mortgage__dot--propertyTax" aria-hidden="true"></span>
<span class="rw-mortgage__label">Property taxes</span>
<span class="rw-mortgage__est" title="Estimated. Enter your own figure under More options." hidden="" data-rw-mortgage-est="propertyTax"><span aria-hidden="true">est.</span><span class="rw-visually-hidden">Estimated. Enter your own figure under More options.</span></span>
<span class="rw-mortgage__value" data-rw-mortgage-out="propertyTax">$450</span>
</li>
<li class="rw-mortgage__row" data-line="homeInsurance">
<span class="rw-mortgage__dot rw-mortgage__dot--homeInsurance" aria-hidden="true"></span>
<span class="rw-mortgage__label">Home insurance</span>
<span class="rw-mortgage__est" title="Estimated. Enter your own figure under More options." data-rw-mortgage-est="homeInsurance"><span aria-hidden="true">est.</span><span class="rw-visually-hidden">Estimated. Enter your own figure under More options.</span></span>
<span class="rw-mortgage__value" data-rw-mortgage-out="homeInsurance">$310</span>
</li>
<li class="rw-mortgage__row" data-line="mortgageInsurance">
<span class="rw-mortgage__dot rw-mortgage__dot--mortgageInsurance" aria-hidden="true"></span>
<span class="rw-mortgage__label">Mortgage insurance</span>
<span class="rw-mortgage__value" data-rw-mortgage-out="mortgageInsurance">$0</span>
</li>
<li class="rw-mortgage__row" data-line="hoa">
<span class="rw-mortgage__dot rw-mortgage__dot--hoa" aria-hidden="true"></span>
<span class="rw-mortgage__label">HOA dues</span>
<span class="rw-mortgage__est" title="Estimated. Enter your own figure under More options." hidden="" data-rw-mortgage-est="hoa"><span aria-hidden="true">est.</span><span class="rw-visually-hidden">Estimated. Enter your own figure under More options.</span></span>
<span class="rw-mortgage__value" data-rw-mortgage-out="hoa">$125</span>
</li>
<li class="rw-mortgage__row rw-mortgage__row--total">
<span class="rw-mortgage__label">Total</span>
<span class="rw-mortgage__value" data-rw-mortgage-out="total">$3,329</span>
</li>
</ul>
<p class="rw-mortgage__note" data-rw-mortgage-out="note" hidden=""></p>
</div>
</div>
<div class="rw-mortgage__reasons" data-rw-mortgage-out="reasons" hidden="">
<p class="rw-mortgage__reasons-title">To qualify for this loan type, adjust the scenario:</p>
<ul></ul>
</div>
<p class="rw-mortgage__stale" data-rw-mortgage-out="stale" hidden="">Some rates may be a few days old.</p>
<p class="rw-mortgage__status" role="status" aria-live="polite"><span data-rw-mortgage-out="status"></span> <button type="button" class="rw-mortgage__link" hidden="" data-rw-mortgage-retry="">Try again</button></p>
<div class="rw-mortgage__disclosures" data-rw-mortgage-out="disclosures">
<p>This is an estimate, not a loan offer, quote, pre-qualification or pre-approval. Actual rates and payments depend on underwriting.</p>
<p>Rate source: FRED, Optimal Blue OBMMI.</p>
<p>Rates as of 2026-07-24.</p>
</div>
</section>
<div class="rw-locmap" role="region" aria-label="Map of this home's location" data-rw-location-map="" data-rw-maps-key="your-google-maps-browser-key" data-rw-map-id="your-map-id" data-rw-lat="33.86" data-rw-lng="-84.68" data-rw-price-label="$480K" data-rw-address="1417 Sterlingbrooke Dr SW, Powder Springs, GA 30127">
<div class="rw-locmap__canvas" data-rw-map-canvas=""></div>
<p class="rw-locmap__message" role="status">The map is loading.</p>
<button type="button" class="rw-locmap__street" disabled="" data-rw-street-toggle=""><svg class="rw-icon rw-icon--white" viewBox="0 0 20 20" width="20" height="20" data-rw-icon="street-view-white" focusable="false" aria-hidden="true"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.7085 3.33464C7.7085 2.06898 8.73451 1.04297 10.0002 1.04297C11.2658 1.04297 12.2918 2.06898 12.2918 3.33464C12.2918 4.60029 11.2658 5.6263 10.0002 5.6263C8.73451 5.6263 7.7085 4.60029 7.7085 3.33464Z" fill="currentColor"/><path d="M6.85241 9.64394L5.03967 9.0397C4.51822 8.86588 4.1665 8.3779 4.1665 7.82825C4.1665 7.01527 4.91611 6.40927 5.71105 6.57962L7.29235 6.91847C7.38029 6.93731 7.42425 6.94673 7.46784 6.95575C9.13816 7.30125 10.8615 7.30125 12.5318 6.95575C12.5754 6.94673 12.6194 6.93731 12.7073 6.91847L14.2886 6.57961C15.0836 6.40927 15.8332 7.01527 15.8332 7.82825C15.8332 8.3779 15.4815 8.86588 14.96 9.0397L13.1473 9.64394C12.9282 9.71697 12.8187 9.75348 12.7363 9.80432C12.4558 9.97748 12.3037 10.2997 12.3484 10.6263C12.3615 10.7222 12.4029 10.83 12.4858 11.0455L13.5248 13.7469C13.8341 14.551 13.2405 15.4153 12.379 15.4153C11.9384 15.4153 11.5316 15.1792 11.313 14.7967L9.99984 12.4986L8.68665 14.7967C8.46807 15.1792 8.06128 15.4153 7.62072 15.4153C6.75915 15.4153 6.16558 14.551 6.47486 13.7469L7.51385 11.0455C7.59675 10.83 7.6382 10.7222 7.65131 10.6263C7.69597 10.2997 7.5439 9.97748 7.26338 9.80432C7.18101 9.75348 7.07148 9.71697 6.85241 9.64394Z" fill="currentColor"/><path d="M9.99984 18.3316C14.6022 18.3316 18.3332 16.6526 18.3332 14.5816C18.3332 13.1467 16.5423 11.9 13.9115 11.2695L14.6915 13.2976C15.3157 14.9205 14.1177 16.6647 12.379 16.6647C11.4898 16.6647 10.6689 16.1883 10.2277 15.4163L9.99984 15.0175L9.77195 15.4163C9.33082 16.1883 8.50985 16.6647 7.62072 16.6647C5.88193 16.6647 4.68399 14.9205 5.30818 13.2976L6.08819 11.2695C3.45739 11.9 1.6665 13.1467 1.6665 14.5816C1.6665 16.6526 5.39746 18.3316 9.99984 18.3316Z" fill="currentColor"/></g></svg>Street view</button>
<button type="button" class="rw-locmap__expand" aria-label="Expand map" data-rw-expand="">
<svg class="rw-icon" viewBox="0 0 24 24" width="20" height="20" data-rw-icon="maximize" focusable="false" aria-hidden="true"><g fill="none"><path d="M16.1429 1.25C15.7286 1.25 15.3929 1.58579 15.3929 2C15.3929 2.41421 15.7286 2.75 16.1429 2.75H20.1893L14.4697 8.46967C14.1768 8.76256 14.1768 9.23744 14.4697 9.53033C14.7626 9.82322 15.2374 9.82322 15.5303 9.53033L21.25 3.81066V7.85714C21.25 8.27136 21.5858 8.60714 22 8.60714C22.4142 8.60714 22.75 8.27136 22.75 7.85714V2C22.75 1.58579 22.4142 1.25 22 1.25H16.1429Z" fill="currentColor"/><path d="M7.85714 22.75C8.27136 22.75 8.60714 22.4142 8.60714 22C8.60714 21.5858 8.27136 21.25 7.85714 21.25H3.81066L9.53033 15.5303C9.82322 15.2374 9.82322 14.7626 9.53033 14.4697C9.23744 14.1768 8.76256 14.1768 8.46967 14.4697L2.75 20.1893V16.1429C2.75 15.7286 2.41421 15.3929 2 15.3929C1.58579 15.3929 1.25 15.7286 1.25 16.1429V22C1.25 22.4142 1.58579 22.75 2 22.75H7.85714Z" fill="currentColor"/></g></svg>
</button>
</div>
<section class="rw-detail__block rw-detail__compliance" aria-label="Listing information">
<section class="rw-recipes rw-attribution" data-mls-id="nwmls">
<img class="rw-board-logo" src="https://photos.ruuster.com/mls/nwmls.png" alt="Northwest MLS logo" width="80" height="32" loading="lazy" decoding="async"/>
<div class="rw-attribution__text">
<p class="rw-attribution__line">Listing provided by Peach Realty</p>
<p class="rw-attribution__courtesy">Listing courtesy of Peach Realty</p>
</div>
</section>
<p class="rw-detail__mlsnumber">MLS number 7400123 (Northwest MLS)</p>
<aside class="rw-recipes rw-disclaimers rw-disclaimers--page" aria-label="Listing data notices">
<div class="rw-disclaimer" data-mls-id="nwmls">
<img class="rw-board-logo" src="https://photos.ruuster.com/mls/nwmls.png" alt="Northwest MLS logo" width="80" height="32" loading="lazy" decoding="async"/>
<div class="rw-disclaimer__text">
<p>Listing information is provided by Northwest MLS and is deemed reliable but not guaranteed.</p>
<p>To report a copyright concern, contact Northwest MLS.</p>
</div>
</div>
<p class="rw-asof">Data last updated <time dateTime="2026-11-04T15:00:00Z">November 4, 2026 at 3:00 PM UTC</time>.</p>
</aside>
</section>
</div>
<aside class="rw-detail__aside rw-detail__aside--cards">
<div class="rw-contactcards" data-rw-contact-cards="">
<div class="rw-agentcard" data-rw-agent-card="">
<div class="rw-agentcard__who">
<span class="rw-avatar rw-avatar--48 rw-avatar--dark" aria-hidden="true">JL</span>
<p class="rw-agentcard__name">Jordan Lee</p>
</div>
<h2 class="rw-agentcard__title">Questions about this home?</h2>
<p class="rw-agentcard__text">We are ready to answer any questions you have about this home, or to schedule a tour if you want to see it in person.</p>
<button type="button" class="rw-button rw-button--block" data-rw-open="contact">Contact Jordan Lee</button>
</div>
<div class="rw-tourcard" data-rw-tour-card="">
<h2 class="rw-tourcard__title">Schedule a tour</h2>
<p class="rw-tourcard__text">Choose a day and time that works for you to see this home in person or by video.</p>
<button type="button" class="rw-button rw-button--accent rw-button--block" data-rw-open="tour">Choose tour time</button>
</div>
</div>
</aside>
</div>
</div>
<div class="rw-mobilebar" data-rw-mobile-bar="">
<button type="button" class="rw-button rw-button--block" data-rw-open="contact">Contact Jordan Lee</button>
<button type="button" class="rw-button rw-button--accent rw-button--block" data-rw-open="tour">Choose tour time</button>
</div>
<dialog class="rw-recipes rw-fullgallery" aria-label="Photo gallery" data-rw-screen="gallery">
<div class="rw-fullgallery__header" data-rw-gallery-header="">
<div class="rw-fullgallery__header-inner">
<div role="tablist" aria-label="Photos and street view" class="rw-fullgallery__tabs">
<button type="button" role="tab" id="listing-detail-3-tab-photos" aria-selected="true" aria-controls="listing-detail-3-panel-photos" tabindex="0" class="rw-fullgallery__tab" data-rw-gallery-tab="photos">Photos</button>
<button type="button" role="tab" id="listing-detail-3-tab-street" aria-selected="false" aria-controls="listing-detail-3-panel-street" tabindex="-1" class="rw-fullgallery__tab" data-rw-gallery-tab="street">Street view</button>
</div>
<div class="rw-fullgallery__actions">
<button type="button" class="rw-fullgallery__share" data-rw-open="share"><svg class="rw-icon" viewBox="0 0 20 20" width="20" height="20" data-rw-icon="share-white" focusable="false" aria-hidden="true"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.99935 13.1243C10.3445 13.1243 10.6243 12.8445 10.6243 12.4993V3.35555L12.0248 4.98943C12.2495 5.25151 12.644 5.28186 12.9061 5.05722C13.1682 4.83258 13.1985 4.43802 12.9739 4.17594L10.4739 1.25927C10.3551 1.12074 10.1818 1.04102 9.99935 1.04102C9.8169 1.04102 9.64355 1.12074 9.52481 1.25927L7.02481 4.17594C6.80017 4.43802 6.83053 4.83258 7.0926 5.05722C7.35468 5.28186 7.74925 5.25151 7.97388 4.98943L9.37435 3.35555L9.37435 12.4993C9.37435 12.8445 9.65417 13.1243 9.99935 13.1243Z" fill="currentColor"/><path d="M13.3327 7.49935C12.7475 7.49935 12.4549 7.49935 12.2448 7.63978C12.1538 7.70058 12.0756 7.77872 12.0148 7.86973C11.8744 8.07991 11.8744 8.37249 11.8744 8.95765L11.8744 12.4993C11.8744 13.5349 11.0349 14.3743 9.99938 14.3743C8.96385 14.3743 8.12438 13.5349 8.12438 12.4993L8.12438 8.95772C8.12438 8.37249 8.12438 8.07988 7.98393 7.86968C7.92313 7.77871 7.84502 7.7006 7.75405 7.63981C7.54385 7.49935 7.25124 7.49935 6.66602 7.49935C4.30899 7.49935 3.13048 7.49935 2.39825 8.23158C1.66602 8.96381 1.66602 10.1421 1.66602 12.4992V13.3325C1.66602 15.6895 1.66602 16.868 2.39825 17.6003C3.13048 18.3325 4.30899 18.3325 6.66602 18.3325H13.3327C15.6897 18.3325 16.8682 18.3325 17.6004 17.6003C18.3327 16.868 18.3327 15.6895 18.3327 13.3325V12.4992C18.3327 10.1421 18.3327 8.96381 17.6004 8.23158C16.8682 7.49935 15.6897 7.49935 13.3327 7.49935Z" fill="currentColor"/></g></svg>Share</button>
</div>
<button type="button" class="rw-fullgallery__close" aria-label="Close the gallery" data-rw-gallery-close=""><svg class="rw-icon" viewBox="0 0 24 24" width="20" height="20" data-rw-icon="close" focusable="false" aria-hidden="true"><g fill="none"><g clip-path="url(#rw-close-clip0_4_13476)"><path d="M18.3002 5.7107C17.9102 5.3207 17.2802 5.3207 16.8902 5.7107L12.0002 10.5907L7.11022 5.7007C6.72022 5.3107 6.09021 5.3107 5.70021 5.7007C5.31021 6.0907 5.31021 6.7207 5.70021 7.1107L10.5902 12.0007L5.70021 16.8907C5.31021 17.2807 5.31021 17.9107 5.70021 18.3007C6.09021 18.6907 6.72022 18.6907 7.11022 18.3007L12.0002 13.4107L16.8902 18.3007C17.2802 18.6907 17.9102 18.6907 18.3002 18.3007C18.6902 17.9107 18.6902 17.2807 18.3002 16.8907L13.4102 12.0007L18.3002 7.1107C18.6802 6.7307 18.6802 6.0907 18.3002 5.7107Z" fill="currentColor"/></g><defs><clipPath id="rw-close-clip0_4_13476"><rect width="24" height="24" fill="currentColor"/></clipPath></defs></g></svg></button>
</div>
</div>
<div class="rw-fullgallery__content">
<div class="rw-fullgallery__columns">
<div class="rw-fullgallery__main">
<div class="rw-fullgallery__mark" data-rw-gallery-mark="" aria-hidden="true"></div>
<div class="rw-fullgallery__tabcontent">
<div role="tabpanel" id="listing-detail-3-panel-photos" aria-labelledby="listing-detail-3-tab-photos" class="rw-fullgallery__panel" data-rw-gallery-panel="photos">
<div class="rw-fullgallery__mosaic" data-rw-mosaic="">
<button type="button" class="rw-fullgallery__tile rw-fullgallery__tile--full" aria-label="Open photo 1 of 6" data-rw-mosaic-tile="0"><img src="https://photos.ruuster.com/l/1/0.jpg" width="1200" height="800" alt="" loading="lazy" decoding="async" srcSet="https://photos.ruuster.com/l/1/0.jpg?width=480 480w, https://photos.ruuster.com/l/1/0.jpg?width=800 800w, https://photos.ruuster.com/l/1/0.jpg?width=1200 1200w" sizes="(min-width: 1280px) 960px, (min-width: 992px) 60vw, 100vw"/></button>
<button type="button" class="rw-fullgallery__tile rw-fullgallery__tile--half" aria-label="Open photo 2 of 6" data-rw-mosaic-tile="1"><img src="https://photos.ruuster.com/l/1/1.jpg" width="1200" height="800" alt="" loading="lazy" decoding="async" srcSet="https://photos.ruuster.com/l/1/1.jpg?width=480 480w, https://photos.ruuster.com/l/1/1.jpg?width=800 800w, https://photos.ruuster.com/l/1/1.jpg?width=1200 1200w" sizes="(min-width: 1280px) 480px, (min-width: 992px) 30vw, (min-width: 768px) 50vw, 100vw"/></button>
<button type="button" class="rw-fullgallery__tile rw-fullgallery__tile--half" aria-label="Open photo 3 of 6" data-rw-mosaic-tile="2"><img src="https://photos.ruuster.com/l/1/2.jpg" width="1200" height="800" alt="" loading="lazy" decoding="async" srcSet="https://photos.ruuster.com/l/1/2.jpg?width=480 480w, https://photos.ruuster.com/l/1/2.jpg?width=800 800w, https://photos.ruuster.com/l/1/2.jpg?width=1200 1200w" sizes="(min-width: 1280px) 480px, (min-width: 992px) 30vw, (min-width: 768px) 50vw, 100vw"/></button>
<button type="button" class="rw-fullgallery__tile rw-fullgallery__tile--full" aria-label="Open photo 4 of 6" data-rw-mosaic-tile="3"><img src="https://photos.ruuster.com/l/1/3.jpg" width="1200" height="800" alt="" loading="lazy" decoding="async" srcSet="https://photos.ruuster.com/l/1/3.jpg?width=480 480w, https://photos.ruuster.com/l/1/3.jpg?width=800 800w, https://photos.ruuster.com/l/1/3.jpg?width=1200 1200w" sizes="(min-width: 1280px) 960px, (min-width: 992px) 60vw, 100vw"/></button>
<button type="button" class="rw-fullgallery__tile rw-fullgallery__tile--half" aria-label="Open photo 5 of 6" data-rw-mosaic-tile="4"><img src="https://photos.ruuster.com/l/1/4.jpg" width="1200" height="800" alt="" loading="lazy" decoding="async" srcSet="https://photos.ruuster.com/l/1/4.jpg?width=480 480w, https://photos.ruuster.com/l/1/4.jpg?width=800 800w, https://photos.ruuster.com/l/1/4.jpg?width=1200 1200w" sizes="(min-width: 1280px) 480px, (min-width: 992px) 30vw, (min-width: 768px) 50vw, 100vw"/></button>
<button type="button" class="rw-fullgallery__tile rw-fullgallery__tile--half" aria-label="Open photo 6 of 6" data-rw-mosaic-tile="5"><img src="https://photos.ruuster.com/l/1/5.jpg" width="1200" height="800" alt="" loading="lazy" decoding="async" srcSet="https://photos.ruuster.com/l/1/5.jpg?width=480 480w, https://photos.ruuster.com/l/1/5.jpg?width=800 800w, https://photos.ruuster.com/l/1/5.jpg?width=1200 1200w" sizes="(min-width: 1280px) 480px, (min-width: 992px) 30vw, (min-width: 768px) 50vw, 100vw"/></button>
</div>
</div>
<div role="tabpanel" id="listing-detail-3-panel-street" aria-labelledby="listing-detail-3-tab-street" class="rw-fullgallery__panel rw-fullgallery__panel--street" data-rw-gallery-panel="street" hidden="">
<div class="rw-fullgallery__street">
<div class="rw-fullgallery__pano" data-rw-street-pano=""></div>
<div class="rw-fullgallery__street-wait" role="status">
<svg class="rw-icon rw-fullgallery__street-icon" viewBox="0 0 20 20" width="48" height="48" data-rw-icon="street-view-white" focusable="false" aria-hidden="true"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.7085 3.33464C7.7085 2.06898 8.73451 1.04297 10.0002 1.04297C11.2658 1.04297 12.2918 2.06898 12.2918 3.33464C12.2918 4.60029 11.2658 5.6263 10.0002 5.6263C8.73451 5.6263 7.7085 4.60029 7.7085 3.33464Z" fill="currentColor"/><path d="M6.85241 9.64394L5.03967 9.0397C4.51822 8.86588 4.1665 8.3779 4.1665 7.82825C4.1665 7.01527 4.91611 6.40927 5.71105 6.57962L7.29235 6.91847C7.38029 6.93731 7.42425 6.94673 7.46784 6.95575C9.13816 7.30125 10.8615 7.30125 12.5318 6.95575C12.5754 6.94673 12.6194 6.93731 12.7073 6.91847L14.2886 6.57961C15.0836 6.40927 15.8332 7.01527 15.8332 7.82825C15.8332 8.3779 15.4815 8.86588 14.96 9.0397L13.1473 9.64394C12.9282 9.71697 12.8187 9.75348 12.7363 9.80432C12.4558 9.97748 12.3037 10.2997 12.3484 10.6263C12.3615 10.7222 12.4029 10.83 12.4858 11.0455L13.5248 13.7469C13.8341 14.551 13.2405 15.4153 12.379 15.4153C11.9384 15.4153 11.5316 15.1792 11.313 14.7967L9.99984 12.4986L8.68665 14.7967C8.46807 15.1792 8.06128 15.4153 7.62072 15.4153C6.75915 15.4153 6.16558 14.551 6.47486 13.7469L7.51385 11.0455C7.59675 10.83 7.6382 10.7222 7.65131 10.6263C7.69597 10.2997 7.5439 9.97748 7.26338 9.80432C7.18101 9.75348 7.07148 9.71697 6.85241 9.64394Z" fill="currentColor"/><path d="M9.99984 18.3316C14.6022 18.3316 18.3332 16.6526 18.3332 14.5816C18.3332 13.1467 16.5423 11.9 13.9115 11.2695L14.6915 13.2976C15.3157 14.9205 14.1177 16.6647 12.379 16.6647C11.4898 16.6647 10.6689 16.1883 10.2277 15.4163L9.99984 15.0175L9.77195 15.4163C9.33082 16.1883 8.50985 16.6647 7.62072 16.6647C5.88193 16.6647 4.68399 14.9205 5.30818 13.2976L6.08819 11.2695C3.45739 11.9 1.6665 13.1467 1.6665 14.5816C1.6665 16.6526 5.39746 18.3316 9.99984 18.3316Z" fill="currentColor"/></g></svg>
<span class="rw-visually-hidden">Street view is loading.</span>
</div>
</div>
</div>
<button type="button" class="rw-fullgallery__float-share" aria-label="Share this home" data-rw-open="share">
<svg class="rw-icon rw-icon--white" viewBox="0 0 20 20" width="16" height="16" data-rw-icon="share-white" focusable="false" aria-hidden="true"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.99935 13.1243C10.3445 13.1243 10.6243 12.8445 10.6243 12.4993V3.35555L12.0248 4.98943C12.2495 5.25151 12.644 5.28186 12.9061 5.05722C13.1682 4.83258 13.1985 4.43802 12.9739 4.17594L10.4739 1.25927C10.3551 1.12074 10.1818 1.04102 9.99935 1.04102C9.8169 1.04102 9.64355 1.12074 9.52481 1.25927L7.02481 4.17594C6.80017 4.43802 6.83053 4.83258 7.0926 5.05722C7.35468 5.28186 7.74925 5.25151 7.97388 4.98943L9.37435 3.35555L9.37435 12.4993C9.37435 12.8445 9.65417 13.1243 9.99935 13.1243Z" fill="currentColor"/><path d="M13.3327 7.49935C12.7475 7.49935 12.4549 7.49935 12.2448 7.63978C12.1538 7.70058 12.0756 7.77872 12.0148 7.86973C11.8744 8.07991 11.8744 8.37249 11.8744 8.95765L11.8744 12.4993C11.8744 13.5349 11.0349 14.3743 9.99938 14.3743C8.96385 14.3743 8.12438 13.5349 8.12438 12.4993L8.12438 8.95772C8.12438 8.37249 8.12438 8.07988 7.98393 7.86968C7.92313 7.77871 7.84502 7.7006 7.75405 7.63981C7.54385 7.49935 7.25124 7.49935 6.66602 7.49935C4.30899 7.49935 3.13048 7.49935 2.39825 8.23158C1.66602 8.96381 1.66602 10.1421 1.66602 12.4992V13.3325C1.66602 15.6895 1.66602 16.868 2.39825 17.6003C3.13048 18.3325 4.30899 18.3325 6.66602 18.3325H13.3327C15.6897 18.3325 16.8682 18.3325 17.6004 17.6003C18.3327 16.868 18.3327 15.6895 18.3327 13.3325V12.4992C18.3327 10.1421 18.3327 8.96381 17.6004 8.23158C16.8682 7.49935 15.6897 7.49935 13.3327 7.49935Z" fill="currentColor"/></g></svg>
</button>
</div>
</div>
<div class="rw-fullgallery__sidebar" data-rw-gallery-sidebar="">
<section class="rw-price" data-rw-price-block="">
<p class="rw-price__status rw-price__status--green"><span class="rw-price__dot" aria-hidden="true"></span>Active</p>
<p class="rw-price__amount">$480,000</p>
<ul class="rw-price__facts">
<li class="rw-price__fact"><svg class="rw-icon" viewBox="0 0 22 22" width="16" height="16" data-rw-icon="beds" focusable="false" aria-hidden="true"><g fill="none"><path d="M10.4 10.0448V7.52239H9.00002C8.22881 7.52239 7.71077 7.52363 7.32434 7.57403C6.95517 7.62218 6.79717 7.7054 6.69292 7.80654C6.58866 7.90768 6.50288 8.06096 6.45325 8.41911C6.4013 8.79401 6.40002 9.29659 6.40002 10.0448L10.4 10.0448Z" fill="currentColor"/><path d="M15.6 10.0448C15.6 9.29659 15.5987 8.79401 15.5468 8.41911C15.4972 8.06096 15.4114 7.90768 15.3071 7.80654C15.2029 7.7054 15.0449 7.62218 14.6757 7.57403C14.2893 7.52363 13.7712 7.52239 13 7.52239H11.6V10.0448L15.6 10.0448Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M11.8 5H10.2C7.18303 5 5.67454 5 4.73728 5.90928C3.9193 6.70284 3.8152 7.9185 3.80195 10.1607V11.4158C3.49768 11.5857 3.2576 11.8491 3.12179 12.1672C3 12.4524 3 12.8141 3 13.5373C3 14.2606 3 14.6222 3.12179 14.9074C3.28418 15.2878 3.59566 15.59 3.98771 15.7475C4.18962 15.8287 4.42864 15.8541 4.8 15.862V17.4179C4.8 17.7394 5.06863 18 5.4 18C5.73137 18 6 17.7394 6 17.4179V15.8657H16V17.4179C16 17.7394 16.2686 18 16.6 18C16.9314 18 17.2 17.7394 17.2 17.4179V15.862C17.5714 15.8541 17.8104 15.8287 18.0123 15.7475C18.4043 15.59 18.7158 15.2878 18.8782 14.9074C19 14.6222 19 14.2606 19 13.5373C19 12.8141 19 12.4524 18.8782 12.1672C18.7424 11.8491 18.5023 11.5857 18.1981 11.4158V10.1607C18.1848 7.9185 18.0807 6.70284 17.2628 5.90928C16.3255 5 14.817 5 11.8 5ZM16.8 11.2091V10.0044C16.8 9.30712 16.8001 8.72559 16.7361 8.26399C16.6686 7.77674 16.52 7.33684 16.1557 6.98334C15.7913 6.62984 15.3378 6.48574 14.8356 6.42023C14.3598 6.35817 13.7604 6.35819 13.0416 6.35821H8.95842C8.23964 6.35819 7.64026 6.35817 7.16444 6.42023C6.6622 6.48574 6.20876 6.62984 5.84439 6.98334C5.48001 7.33684 5.33148 7.77674 5.26395 8.26399C5.19998 8.72561 5.2 9.30709 5.20002 10.0044V11.2091C5.26357 11.209 5.33015 11.209 5.4 11.209H16.6C16.6699 11.209 16.7365 11.209 16.8 11.2091Z" fill="currentColor"/></g></svg>6 beds</li>
<li class="rw-price__fact"><svg class="rw-icon" viewBox="0 0 22 22" width="16" height="16" data-rw-icon="bath" focusable="false" aria-hidden="true"><g fill="none"><path d="M4.86047 5.33311C4.86047 4.66106 5.40528 4.11626 6.07733 4.11626C6.57491 4.11626 7.02237 4.4192 7.20716 4.88118L7.31379 5.14774C6.87136 5.47013 6.5099 5.91966 6.28724 6.46795C5.97445 7.23818 5.99132 8.06533 6.27278 8.77964C6.32816 8.92017 6.43812 9.03225 6.57756 9.0903C6.71701 9.14835 6.87403 9.1474 7.01276 9.08768L11.4487 7.17806C11.7256 7.05886 11.8578 6.7413 11.7473 6.46081C11.4657 5.74622 10.9159 5.13719 10.1603 4.8144C9.55652 4.55646 8.91592 4.52175 8.32557 4.67152L8.2436 4.46661C7.88928 3.58083 7.03137 3 6.07733 3C4.78877 3 3.74419 4.04457 3.74419 5.33311V10.4417H3.55814C3.24989 10.4417 3 10.6916 3 10.9999C3 11.3081 3.24989 11.558 3.55814 11.558H3.74419V11.7441C3.74419 11.7469 3.74421 11.7497 3.74425 11.7525C3.74418 11.7663 3.74418 11.7801 3.74419 11.7937L3.74419 11.8219C3.74419 12.1011 3.74419 12.2648 3.75577 12.4474C3.8614 14.1117 4.76078 15.6486 6.06424 16.6535C6.05401 16.6696 6.04451 16.6864 6.03579 16.7038L5.2916 18.1921C5.15375 18.4678 5.2655 18.8031 5.54121 18.941C5.81692 19.0788 6.15218 18.9671 6.29004 18.6914L7.0102 17.251C7.60683 17.553 8.25567 17.7518 8.9305 17.8201C9.11241 17.8385 9.22344 17.8427 9.41256 17.8498L9.41763 17.85C9.9685 17.8707 10.5077 17.8835 11 17.8835C11.4923 17.8835 12.0315 17.8707 12.5824 17.85L12.5874 17.8498C12.7765 17.8427 12.8876 17.8385 13.0695 17.8201C13.7444 17.7518 14.3933 17.553 14.99 17.251L15.7102 18.6914C15.8481 18.9671 16.1833 19.0788 16.459 18.941C16.7347 18.8031 16.8465 18.4678 16.7086 18.1921L15.9645 16.7038C15.9557 16.6863 15.9462 16.6695 15.9359 16.6534C17.2393 15.6485 18.1386 14.1117 18.2442 12.4474C18.2558 12.2649 18.2558 12.1012 18.2558 11.8219L18.2558 11.7937C18.2559 11.749 18.2559 11.7025 18.2531 11.6596C18.2509 11.6253 18.2473 11.5915 18.2425 11.558H18.4419C18.7501 11.558 19 11.3081 19 10.9999C19 10.6916 18.7501 10.4417 18.4419 10.4417H4.86047V5.33311Z" fill="currentColor"/></g></svg>5 baths</li>
<li class="rw-price__fact"><svg class="rw-icon" viewBox="0 0 22 22" width="16" height="16" data-rw-icon="square" focusable="false" aria-hidden="true"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.02513 5.02513C4 6.05025 4 7.70017 4 11C4 14.2998 4 15.9497 5.02513 16.9749C6.05025 18 7.70017 18 11 18C14.2998 18 15.9497 18 16.9749 16.9749C18 15.9497 18 14.2998 18 11C18 7.70017 18 6.05025 16.9749 5.02513C15.9497 4 14.2998 4 11 4C7.70017 4 6.05025 4 5.02513 5.02513ZM10.1232 6.79555C10.1256 7.08549 9.89256 7.32252 9.60263 7.32498C9.00351 7.33006 8.58507 7.34985 8.27026 7.41152C7.9701 7.47031 7.80396 7.55998 7.68197 7.68197C7.55998 7.80396 7.47031 7.9701 7.41152 8.27026C7.34985 8.58507 7.33006 9.00351 7.32498 9.60263C7.32252 9.89256 7.08549 10.1256 6.79555 10.1232C6.50561 10.1207 6.27256 9.88366 6.27502 9.59372C6.28007 8.99824 6.2985 8.49011 6.3811 8.06842C6.46657 7.63208 6.62721 7.2518 6.93951 6.93951C7.2518 6.62721 7.63208 6.46657 8.06842 6.3811C8.49011 6.2985 8.99824 6.28007 9.59372 6.27502C9.88366 6.27256 10.1207 6.50561 10.1232 6.79555ZM11.8751 6.79555C11.8776 6.50561 12.1146 6.27256 12.4046 6.27502C13 6.28007 13.5082 6.2985 13.9299 6.3811C14.3662 6.46657 14.7465 6.62721 15.0588 6.93951C15.3711 7.2518 15.5317 7.63208 15.6172 8.06842C15.6998 8.49011 15.7182 8.99824 15.7233 9.59372C15.7257 9.88366 15.4927 10.1207 15.2027 10.1232C14.9128 10.1256 14.6758 9.89256 14.6733 9.60263C14.6682 9.00351 14.6484 8.58507 14.5868 8.27026C14.528 7.9701 14.4383 7.80396 14.3163 7.68197C14.1943 7.55998 14.0282 7.47031 13.728 7.41152C13.4132 7.34985 12.9948 7.33006 12.3957 7.32498C12.1057 7.32252 11.8727 7.08549 11.8751 6.79555ZM7.32498 12.396C7.32252 12.1061 7.08549 11.873 6.79555 11.8755C6.50561 11.8779 6.27256 12.115 6.27502 12.4049C6.28007 13.0004 6.2985 13.5085 6.3811 13.9302C6.46657 14.3666 6.62721 14.7468 6.93951 15.0591C7.2518 15.3714 7.63208 15.5321 8.06842 15.6175C8.49011 15.7001 8.99824 15.7186 9.59372 15.7236C9.88366 15.7261 10.1207 15.493 10.1232 15.2031C10.1256 14.9131 9.89256 14.6761 9.60263 14.6737C9.00351 14.6686 8.58507 14.6488 8.27026 14.5871C7.9701 14.5283 7.80396 14.4387 7.68197 14.3167C7.55998 14.1947 7.47031 14.0285 7.41152 13.7284C7.34985 13.4136 7.33006 12.9951 7.32498 12.396ZM15.2027 11.8755C15.4927 11.8779 15.7257 12.115 15.7233 12.4049C15.7182 13.0004 15.6998 13.5085 15.6172 13.9302C15.5317 14.3666 15.3711 14.7468 15.0588 15.0591C14.7465 15.3714 14.3662 15.5321 13.9299 15.6175C13.5082 15.7001 13 15.7186 12.4046 15.7236C12.1146 15.7261 11.8776 15.493 11.8751 15.2031C11.8727 14.9131 12.1057 14.6761 12.3957 14.6737C12.9948 14.6686 13.4132 14.6488 13.728 14.5871C14.0282 14.5283 14.1943 14.4387 14.3163 14.3167C14.4383 14.1947 14.528 14.0285 14.5868 13.7284C14.6484 13.4136 14.6682 12.9951 14.6733 12.396C14.6758 12.1061 14.9128 11.873 15.2027 11.8755Z" fill="currentColor"/></g></svg>6,838 sq ft</li>
</ul>
<p class="rw-price__address">1417 Sterlingbrooke Dr SW, Powder Springs, GA 30127</p>
</section>
<div class="rw-fullgallery__sticky">
<div class="rw-contactcards" data-rw-contact-cards="">
<div class="rw-agentcard" data-rw-agent-card="">
<div class="rw-agentcard__who">
<span class="rw-avatar rw-avatar--48 rw-avatar--dark" aria-hidden="true">JL</span>
<p class="rw-agentcard__name">Jordan Lee</p>
</div>
<h2 class="rw-agentcard__title">Questions about this home?</h2>
<p class="rw-agentcard__text">We are ready to answer any questions you have about this home, or to schedule a tour if you want to see it in person.</p>
<button type="button" class="rw-button rw-button--block" data-rw-open="contact">Contact Jordan Lee</button>
</div>
<div class="rw-tourcard" data-rw-tour-card="">
<h2 class="rw-tourcard__title">Schedule a tour</h2>
<p class="rw-tourcard__text">Choose a day and time that works for you to see this home in person or by video.</p>
<button type="button" class="rw-button rw-button--accent rw-button--block" data-rw-open="tour">Choose tour time</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="rw-fullgallery__bar">
<div class="rw-mobilebar" data-rw-mobile-bar="">
<button type="button" class="rw-button rw-button--block" data-rw-open="contact">Contact Jordan Lee</button>
<button type="button" class="rw-button rw-button--accent rw-button--block" data-rw-open="tour">Choose tour time</button>
</div>
</div>
<dialog class="rw-lightbox" aria-label="Photo gallery" data-rw-lightbox="">
<button type="button" class="rw-lightbox__close" aria-label="Close the photo gallery" data-rw-lightbox-close="">
<svg class="rw-icon" viewBox="0 0 24 24" width="20" height="20" data-rw-icon="close" focusable="false" aria-hidden="true"><g fill="none"><g clip-path="url(#rw-close-clip0_4_13476)"><path d="M18.3002 5.7107C17.9102 5.3207 17.2802 5.3207 16.8902 5.7107L12.0002 10.5907L7.11022 5.7007C6.72022 5.3107 6.09021 5.3107 5.70021 5.7007C5.31021 6.0907 5.31021 6.7207 5.70021 7.1107L10.5902 12.0007L5.70021 16.8907C5.31021 17.2807 5.31021 17.9107 5.70021 18.3007C6.09021 18.6907 6.72022 18.6907 7.11022 18.3007L12.0002 13.4107L16.8902 18.3007C17.2802 18.6907 17.9102 18.6907 18.3002 18.3007C18.6902 17.9107 18.6902 17.2807 18.3002 16.8907L13.4102 12.0007L18.3002 7.1107C18.6802 6.7307 18.6802 6.0907 18.3002 5.7107Z" fill="currentColor"/></g><defs><clipPath id="rw-close-clip0_4_13476"><rect width="24" height="24" fill="currentColor"/></clipPath></defs></g></svg>
</button>
<button type="button" class="rw-lightbox__step rw-lightbox__step--prev" aria-label="Previous photo" data-rw-lightbox-prev="">
<svg class="rw-icon" viewBox="0 0 24 24" width="24" height="24" data-rw-icon="chevron-left" focusable="false" aria-hidden="true"><g fill="none"><path d="M15 5L8 12L15 19" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M15 5L8 12L15 19" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></g></svg>
</button>
<button type="button" class="rw-lightbox__step rw-lightbox__step--next" aria-label="Next photo" data-rw-lightbox-next="">
<svg class="rw-icon" viewBox="0 0 24 24" width="24" height="24" data-rw-icon="chevron-right" focusable="false" aria-hidden="true"><g fill="none"><path d="M9 5L16 12L9 19" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></g></svg>
</button>
</dialog>
</dialog>
<div class="rw-modal-host" data-rw-screen="share">
<dialog class="rw-recipes rw-modal rw-modal--md" data-rw-modal="share" aria-labelledby="listing-detail-4">
<div class="rw-modal__panel">
<div class="rw-modal__header">
<h2 class="rw-modal__title" id="listing-detail-4">Share this home</h2>
<button type="button" class="rw-modal__close" aria-label="Close" data-rw-modal-close="">
<svg class="rw-icon" viewBox="0 0 24 24" width="24" height="24" data-rw-icon="close-white" focusable="false" aria-hidden="true"><g fill="none"><g clip-path="url(#rw-close-white-clip0_close_white)"><path d="M18.3002 5.7107C17.9102 5.3207 17.2802 5.3207 16.8902 5.7107L12.0002 10.5907L7.11022 5.7007C6.72022 5.3107 6.09021 5.3107 5.70021 5.7007C5.31021 6.0907 5.31021 6.7207 5.70021 7.1107L10.5902 12.0007L5.70021 16.8907C5.31021 17.2807 5.31021 17.9107 5.70021 18.3007C6.09021 18.6907 6.72022 18.6907 7.11022 18.3007L12.0002 13.4107L16.8902 18.3007C17.2802 18.6907 17.9102 18.6907 18.3002 18.3007C18.6902 17.9107 18.6902 17.2807 18.3002 16.8907L13.4102 12.0007L18.3002 7.1107C18.6802 6.7307 18.6802 6.0907 18.3002 5.7107Z" fill="currentColor"/></g><defs><clipPath id="rw-close-white-clip0_close_white"><rect width="24" height="24" fill="currentColor"/></clipPath></defs></g></svg>
</button>
</div>
<div class="rw-modal__body">
<div class="rw-share" data-rw-share-url="https://www.peachrealty.example/homes/1417-sterlingbrooke-dr-sw-powder-springs-ga-30127-0b6c3b52-7f0c-4a3e-9a51-6f0e2d1a0001" data-rw-share-native="true">
<h3 class="rw-share__heading">Send this home to someone</h3>
<div class="rw-share__link">
<label class="rw-field__label" for="listing-detail-5-url">Link to this home</label>
<div class="rw-share__row">
<input class="rw-share__input" id="listing-detail-5-url" type="url" readonly="" data-rw-share-input="" value="https://www.peachrealty.example/homes/1417-sterlingbrooke-dr-sw-powder-springs-ga-30127-0b6c3b52-7f0c-4a3e-9a51-6f0e2d1a0001"/>
<button type="button" class="rw-share__copy" aria-describedby="listing-detail-5-copy-status" data-rw-copy=""><svg class="rw-icon" viewBox="0 0 16 16" width="18" height="18" data-rw-icon="link" focusable="false" aria-hidden="true"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M2.30981 13.691C3.28612 14.6673 4.85747 14.6673 8.00016 14.6673C11.1429 14.6673 12.7142 14.6673 13.6905 13.691C14.6668 12.7147 14.6668 11.1433 14.6668 8.00065C14.6668 4.85795 14.6668 3.28661 13.6905 2.3103C12.7142 1.33398 11.1429 1.33398 8.00016 1.33398C4.85747 1.33398 3.28612 1.33398 2.30981 2.3103C1.3335 3.28661 1.3335 4.85795 1.3335 8.00065C1.3335 11.1433 1.3335 12.7147 2.30981 13.691ZM6.3335 5.83398C5.13688 5.83398 4.16683 6.80403 4.16683 8.00065C4.16683 9.19727 5.13688 10.1673 6.3335 10.1673C7.53011 10.1673 8.50016 9.19727 8.50016 8.00065C8.50016 7.72451 8.72402 7.50065 9.00016 7.50065C9.2763 7.50065 9.50016 7.72451 9.50016 8.00065C9.50016 9.74955 8.0824 11.1673 6.3335 11.1673C4.58459 11.1673 3.16683 9.74955 3.16683 8.00065C3.16683 6.25175 4.58459 4.83398 6.3335 4.83398C6.60964 4.83398 6.8335 5.05784 6.8335 5.33398C6.8335 5.61013 6.60964 5.83398 6.3335 5.83398ZM11.8335 8.00065C11.8335 9.19727 10.8634 10.1673 9.66683 10.1673C9.39069 10.1673 9.16683 10.3912 9.16683 10.6673C9.16683 10.9435 9.39069 11.1673 9.66683 11.1673C11.4157 11.1673 12.8335 9.74955 12.8335 8.00065C12.8335 6.25175 11.4157 4.83398 9.66683 4.83398C7.91793 4.83398 6.50016 6.25175 6.50016 8.00065C6.50016 8.27679 6.72402 8.50065 7.00016 8.50065C7.2763 8.50065 7.50016 8.27679 7.50016 8.00065C7.50016 6.80403 8.47021 5.83398 9.66683 5.83398C10.8634 5.83398 11.8335 6.80403 11.8335 8.00065Z" fill="currentColor"/></g></svg><span data-rw-copy-label="">Copy link</span></button>
</div>
<p class="rw-share__status" id="listing-detail-5-copy-status" role="status" aria-live="polite" data-rw-copy-status=""></p>
</div>
<p class="rw-share__or">or</p>
<div class="rw-share__socials">
<a class="rw-share__social rw-share__social--facebook" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.peachrealty.example%2Fhomes%2F1417-sterlingbrooke-dr-sw-powder-springs-ga-30127-0b6c3b52-7f0c-4a3e-9a51-6f0e2d1a0001" target="_blank" rel="noopener noreferrer" aria-label="Share on Facebook" data-rw-share="facebook">
<svg class="rw-icon" viewBox="0 0 24 24" width="24" height="24" data-rw-icon="facebook" focusable="false" aria-hidden="true"><g fill="none"><path d="M17.2137 13.3278L17.8356 9.23262H13.9452V6.57631C13.9452 5.45568 14.4877 4.36272 16.2301 4.36272H18V0.876308C18 0.876308 16.3945 0.599609 14.8603 0.599609C11.6548 0.599609 9.56164 2.56141 9.56164 6.11145V9.23262H6V13.3278H9.56164V23.2281C10.2767 23.3415 11.0082 23.3996 11.7534 23.3996C12.4986 23.3996 13.2301 23.3415 13.9452 23.2281V13.3278H17.2137Z" fill="currentColor"/></g></svg>
</a>
<a class="rw-share__social rw-share__social--whatsapp" href="https://wa.me/?text=Take%20a%20look%20at%20this%20home%3A%20https%3A%2F%2Fwww.peachrealty.example%2Fhomes%2F1417-sterlingbrooke-dr-sw-powder-springs-ga-30127-0b6c3b52-7f0c-4a3e-9a51-6f0e2d1a0001" target="_blank" rel="noopener noreferrer" aria-label="Share on WhatsApp" data-rw-share="whatsapp">
<svg class="rw-icon" viewBox="0 0 24 24" width="24" height="24" data-rw-icon="whats-app" focusable="false" aria-hidden="true"><g fill="none"><g clip-path="url(#rw-whats-app-clip0_116032_4329)"><path d="M0 24L1.69627 17.8403C0.647564 16.0323 0.0974211 13.9848 0.103152 11.8916C0.103152 5.3327 5.46704 0 12.0516 0C15.2493 0 18.2521 1.23764 20.5043 3.48479C22.7622 5.73194 24.0057 8.72053 24 11.8973C24 18.4563 18.6361 23.789 12.0458 23.789H12.0401C10.0401 23.789 8.07449 23.2871 6.32664 22.3403L0 24ZM6.63037 20.1901L6.9914 20.4068C8.51575 21.308 10.2636 21.7814 12.0458 21.7871H12.0516C17.5243 21.7871 21.9828 17.3555 21.9828 11.903C21.9828 9.26236 20.9513 6.78137 19.0773 4.91065C17.2034 3.03992 14.7049 2.01331 12.0516 2.01331C6.57879 2.0076 2.12034 6.43916 2.12034 11.8916C2.12034 13.7567 2.64183 15.576 3.63897 17.1502L3.87392 17.5266L2.87106 21.1711L6.63037 20.1901Z" fill="white"/><path d="M0.418457 23.5833L2.05742 17.6347C1.0431 15.8951 0.510147 13.916 0.510147 11.897C0.515878 5.56621 5.69066 0.416016 12.0517 0.416016C15.1405 0.416016 18.0345 1.61373 20.2121 3.78104C22.3898 5.94834 23.5875 8.83427 23.5875 11.9027C23.5875 18.2335 18.407 23.3837 12.0517 23.3837H12.046C10.1147 23.3837 8.21788 22.8989 6.53307 21.9864L0.418457 23.5833Z" fill="url(#rw-whats-app-paint0_linear_116032_4329)"/><path d="M0 24L1.69627 17.8403C0.647564 16.0323 0.0974211 13.9848 0.103152 11.8916C0.103152 5.3327 5.46704 0 12.0516 0C15.2493 0 18.2521 1.23764 20.5043 3.48479C22.7622 5.73194 24.0057 8.72053 24 11.8973C24 18.4563 18.6361 23.789 12.0458 23.789H12.0401C10.0401 23.789 8.07449 23.2871 6.32664 22.3403L0 24ZM6.63037 20.1901L6.9914 20.4068C8.51575 21.308 10.2636 21.7814 12.0458 21.7871H12.0516C17.5243 21.7871 21.9828 17.3555 21.9828 11.903C21.9828 9.26236 20.9513 6.78137 19.0773 4.91065C17.2034 3.03992 14.7049 2.01331 12.0516 2.01331C6.57879 2.0076 2.12034 6.43916 2.12034 11.8916C2.12034 13.7567 2.64183 15.576 3.63897 17.1502L3.87392 17.5266L2.87106 21.1711L6.63037 20.1901Z" fill="url(#rw-whats-app-paint1_linear_116032_4329)"/><path fill-rule="evenodd" clip-rule="evenodd" d="M9.066 6.91745C8.84251 6.42125 8.60755 6.40984 8.39552 6.40414C8.2236 6.39844 8.02302 6.39844 7.82245 6.39844C7.62188 6.39844 7.30096 6.47258 7.02589 6.76916C6.75082 7.06574 5.98291 7.78437 5.98291 9.25015C5.98291 10.7102 7.05454 12.1247 7.20354 12.3243C7.35254 12.5239 9.27231 15.6209 12.3038 16.8129C14.8253 17.8053 15.3411 17.6057 15.8855 17.5543C16.4299 17.503 17.6505 16.8357 17.9027 16.1399C18.1491 15.4441 18.1491 14.8509 18.0746 14.7254C18.0001 14.6 17.7995 14.5258 17.5015 14.3775C17.2035 14.2292 15.7365 13.5106 15.4614 13.4079C15.1863 13.311 14.9858 13.2597 14.7909 13.5562C14.5904 13.8528 14.0173 14.5201 13.8454 14.7197C13.6734 14.9194 13.4958 14.9422 13.1978 14.7939C12.8998 14.6456 11.9371 14.3319 10.7967 13.3167C9.90841 12.5296 9.30669 11.5543 9.13477 11.2578C8.96285 10.9612 9.11758 10.8015 9.26658 10.6532C9.39838 10.522 9.56457 10.3053 9.71357 10.1342C9.86256 9.96308 9.91414 9.8376 10.0116 9.63798C10.109 9.43836 10.0631 9.26726 9.98864 9.11897C9.91414 8.97638 9.32961 7.5049 9.066 6.91745Z" fill="white"/></g><defs><linearGradient id="rw-whats-app-paint0_linear_116032_4329" x1="12.0024" y1="23.5822" x2="12.0024" y2="0.415205" gradientUnits="userSpaceOnUse"><stop stop-color="#20B038"/><stop offset="1" stop-color="#60D66A"/></linearGradient><linearGradient id="rw-whats-app-paint1_linear_116032_4329" x1="12.0023" y1="23.9977" x2="12.0023" y2="0" gradientUnits="userSpaceOnUse"><stop stop-color="#F9F9F9"/><stop offset="1" stop-color="white"/></linearGradient><clipPath id="rw-whats-app-clip0_116032_4329"><rect width="24" height="24" fill="white"/></clipPath></defs></g></svg>
</a>
<a class="rw-share__social rw-share__social--email" href="mailto:?subject=A%20home%20at%201417%20Sterlingbrooke%20Dr%20SW%2C%20Powder%20Springs%2C%20GA%2030127&body=Take%20a%20look%20at%20this%20home%3A%20https%3A%2F%2Fwww.peachrealty.example%2Fhomes%2F1417-sterlingbrooke-dr-sw-powder-springs-ga-30127-0b6c3b52-7f0c-4a3e-9a51-6f0e2d1a0001" target="_blank" rel="noopener noreferrer" aria-label="Share by email" data-rw-share="email">
<svg class="rw-icon" viewBox="0 0 24 24" width="24" height="24" data-rw-icon="letter" focusable="false" aria-hidden="true"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.17157 5.17157C2 6.34315 2 8.22876 2 12C2 15.7712 2 17.6569 3.17157 18.8284C4.34315 20 6.22876 20 10 20H14C17.7712 20 19.6569 20 20.8284 18.8284C22 17.6569 22 15.7712 22 12C22 8.22876 22 6.34315 20.8284 5.17157C19.6569 4 17.7712 4 14 4H10C6.22876 4 4.34315 4 3.17157 5.17157ZM18.5762 7.51986C18.8413 7.83807 18.7983 8.31099 18.4801 8.57617L16.2837 10.4066C15.3973 11.1452 14.6789 11.7439 14.0448 12.1517C13.3843 12.5765 12.7411 12.8449 12 12.8449C11.2589 12.8449 10.6157 12.5765 9.95518 12.1517C9.32112 11.7439 8.60271 11.1452 7.71636 10.4066L5.51986 8.57617C5.20165 8.31099 5.15866 7.83807 5.42383 7.51986C5.68901 7.20165 6.16193 7.15866 6.48014 7.42383L8.63903 9.22291C9.57199 10.0004 10.2197 10.5384 10.7666 10.8901C11.2959 11.2306 11.6549 11.3449 12 11.3449C12.3451 11.3449 12.7041 11.2306 13.2334 10.8901C13.7803 10.5384 14.428 10.0004 15.361 9.22291L17.5199 7.42383C17.8381 7.15866 18.311 7.20165 18.5762 7.51986Z" fill="currentColor"/></g></svg>
</a>
</div>
<button type="button" class="rw-share__more" hidden="" data-rw-share-more="">More ways to share</button>
</div>
</div>
</div>
</dialog>
</div>
<div class="rw-modal-host" data-rw-screen="contact">
<dialog class="rw-recipes rw-modal rw-modal--md" data-rw-modal="contact" aria-labelledby="listing-detail-6">
<div class="rw-modal__panel">
<div class="rw-modal__header">
<h2 class="rw-modal__title" id="listing-detail-6">Contact Jordan Lee</h2>
<button type="button" class="rw-modal__close" aria-label="Close" data-rw-modal-close="">
<svg class="rw-icon" viewBox="0 0 24 24" width="24" height="24" data-rw-icon="close-white" focusable="false" aria-hidden="true"><g fill="none"><g clip-path="url(#rw-close-white-clip0_close_white)"><path d="M18.3002 5.7107C17.9102 5.3207 17.2802 5.3207 16.8902 5.7107L12.0002 10.5907L7.11022 5.7007C6.72022 5.3107 6.09021 5.3107 5.70021 5.7007C5.31021 6.0907 5.31021 6.7207 5.70021 7.1107L10.5902 12.0007L5.70021 16.8907C5.31021 17.2807 5.31021 17.9107 5.70021 18.3007C6.09021 18.6907 6.72022 18.6907 7.11022 18.3007L12.0002 13.4107L16.8902 18.3007C17.2802 18.6907 17.9102 18.6907 18.3002 18.3007C18.6902 17.9107 18.6902 17.2807 18.3002 16.8907L13.4102 12.0007L18.3002 7.1107C18.6802 6.7307 18.6802 6.0907 18.3002 5.7107Z" fill="currentColor"/></g><defs><clipPath id="rw-close-white-clip0_close_white"><rect width="24" height="24" fill="currentColor"/></clipPath></defs></g></svg>
</button>
</div>
<div class="rw-modal__body">
<div class="rw-contact">
<form class="rw-form rw-modal__form rw-contact__step" method="post" action="/api/leads/fub" novalidate="" data-rw-step="form" data-rw-lead="contact" data-rw-success="Thank you. We will be in touch shortly." data-rw-lead-listing="{"id":"0b6c3b52-7f0c-4a3e-9a51-6f0e2d1a0001","mlsNumber":"7400123","url":"/homes/1417-sterlingbrooke-dr-sw-powder-springs-ga-30127-0b6c3b52-7f0c-4a3e-9a51-6f0e2d1a0001","name":"1417 Sterlingbrooke Dr SW, Powder Springs, GA 30127","price":480000}">
<h3 class="rw-modal__heading">How can we reach you?</h3>
<div class="rw-form__row">
<div class="rw-field">
<label class="rw-field__label rw-field__label--required" for="listing-detail-7-first">First name</label>
<input class="rw-input" id="listing-detail-7-first" name="firstName" autoComplete="given-name" required="" maxLength="80" value=""/>
</div>
<div class="rw-field">
<label class="rw-field__label rw-field__label--required" for="listing-detail-7-last">Last name</label>
<input class="rw-input" id="listing-detail-7-last" name="lastName" autoComplete="family-name" required="" maxLength="80" value=""/>
</div>
</div>
<div class="rw-field">
<label class="rw-field__label rw-field__label--required" for="listing-detail-7-email">Email</label>
<input class="rw-input" id="listing-detail-7-email" name="email" type="email" autoComplete="email" required="" maxLength="254" value=""/>
</div>
<div class="rw-field">
<label class="rw-field__label" for="listing-detail-7-phone">Phone (optional)</label>
<input class="rw-input" id="listing-detail-7-phone" name="phone" type="tel" autoComplete="tel" maxLength="40" value=""/>
</div>
<div class="rw-field">
<label class="rw-field__label" for="listing-detail-7-message">Message (optional)</label>
<textarea class="rw-input rw-textarea" id="listing-detail-7-message" name="message" rows="4" maxLength="2000">I would like more information about 1417 Sterlingbrooke Dr SW, Powder Springs, GA 30127.</textarea>
</div>
<div class="rw-hp" aria-hidden="true"><label for="listing-detail-7-website">Leave this field empty</label><input id="listing-detail-7-website" name="website" type="text" tabindex="-1" autoComplete="off" value=""/></div>
<div class="rw-modal__consent">
<label class="rw-check rw-consent" for="listing-detail-7-consent">
<input id="listing-detail-7-consent" type="checkbox" name="consentContact" aria-labelledby="listing-detail-7-consent-text" data-rw-consent="" value="yes"/>
<span id="listing-detail-7-consent-text" data-rw-consent-text="">I agree that Peach Realty may contact me by phone, text or email about this request.</span>
</label>
<label class="rw-check rw-consent" for="listing-detail-7-alerts">
<input id="listing-detail-7-alerts" type="checkbox" name="consentAlerts" aria-labelledby="listing-detail-7-alerts-text" value="yes"/>
<span id="listing-detail-7-alerts-text">Email me new listings like this one. I can unsubscribe at any time.</span>
</label>
</div>
<div class="rw-modal__footer rw-modal__footer--end">
<button class="rw-button" type="submit" disabled="" aria-describedby="listing-detail-7-needconsent" data-rw-submit="">Send message</button>
</div>
<p class="rw-form__hint" id="listing-detail-7-needconsent" data-rw-consent-hint="">Check the box above to agree to be contacted, then send your request.</p>
<p class="rw-form__status" role="status" aria-live="polite" data-rw-form-status=""></p>
</form>
<section class="rw-contact__step" hidden="" data-rw-step="tour">
<div class="rw-modal__intro">
<h3 class="rw-modal__heading" tabindex="-1">Thank you. We will be in touch shortly.</h3>
<p class="rw-modal__text">We can also set up a tour of this home. Which day and time work for you?</p>
</div>
<div class="rw-tour__card" data-rw-tour-listing="">
<img class="rw-tour__card-img" src="https://photos.ruuster.com/l/1/0.jpg" width="1200" height="800" alt="Two-story brick house with a two-car garage" loading="lazy" decoding="async" srcSet="https://photos.ruuster.com/l/1/0.jpg?width=480 480w, https://photos.ruuster.com/l/1/0.jpg?width=800 800w, https://photos.ruuster.com/l/1/0.jpg?width=1200 1200w" sizes="114px"/>
<div class="rw-tour__card-body">
<p class="rw-tour__card-price">$480,000</p>
<ul class="rw-tour__card-facts">
<li class="rw-tour__card-fact"><svg class="rw-icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="beds" focusable="false" aria-hidden="true"><g fill="none"><path d="M10.4 10.0448V7.52239H9.00002C8.22881 7.52239 7.71077 7.52363 7.32434 7.57403C6.95517 7.62218 6.79717 7.7054 6.69292 7.80654C6.58866 7.90768 6.50288 8.06096 6.45325 8.41911C6.4013 8.79401 6.40002 9.29659 6.40002 10.0448L10.4 10.0448Z" fill="currentColor"/><path d="M15.6 10.0448C15.6 9.29659 15.5987 8.79401 15.5468 8.41911C15.4972 8.06096 15.4114 7.90768 15.3071 7.80654C15.2029 7.7054 15.0449 7.62218 14.6757 7.57403C14.2893 7.52363 13.7712 7.52239 13 7.52239H11.6V10.0448L15.6 10.0448Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M11.8 5H10.2C7.18303 5 5.67454 5 4.73728 5.90928C3.9193 6.70284 3.8152 7.9185 3.80195 10.1607V11.4158C3.49768 11.5857 3.2576 11.8491 3.12179 12.1672C3 12.4524 3 12.8141 3 13.5373C3 14.2606 3 14.6222 3.12179 14.9074C3.28418 15.2878 3.59566 15.59 3.98771 15.7475C4.18962 15.8287 4.42864 15.8541 4.8 15.862V17.4179C4.8 17.7394 5.06863 18 5.4 18C5.73137 18 6 17.7394 6 17.4179V15.8657H16V17.4179C16 17.7394 16.2686 18 16.6 18C16.9314 18 17.2 17.7394 17.2 17.4179V15.862C17.5714 15.8541 17.8104 15.8287 18.0123 15.7475C18.4043 15.59 18.7158 15.2878 18.8782 14.9074C19 14.6222 19 14.2606 19 13.5373C19 12.8141 19 12.4524 18.8782 12.1672C18.7424 11.8491 18.5023 11.5857 18.1981 11.4158V10.1607C18.1848 7.9185 18.0807 6.70284 17.2628 5.90928C16.3255 5 14.817 5 11.8 5ZM16.8 11.2091V10.0044C16.8 9.30712 16.8001 8.72559 16.7361 8.26399C16.6686 7.77674 16.52 7.33684 16.1557 6.98334C15.7913 6.62984 15.3378 6.48574 14.8356 6.42023C14.3598 6.35817 13.7604 6.35819 13.0416 6.35821H8.95842C8.23964 6.35819 7.64026 6.35817 7.16444 6.42023C6.6622 6.48574 6.20876 6.62984 5.84439 6.98334C5.48001 7.33684 5.33148 7.77674 5.26395 8.26399C5.19998 8.72561 5.2 9.30709 5.20002 10.0044V11.2091C5.26357 11.209 5.33015 11.209 5.4 11.209H16.6C16.6699 11.209 16.7365 11.209 16.8 11.2091Z" fill="currentColor"/></g></svg>6 beds</li>
<li class="rw-tour__card-fact"><svg class="rw-icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="bath" focusable="false" aria-hidden="true"><g fill="none"><path d="M4.86047 5.33311C4.86047 4.66106 5.40528 4.11626 6.07733 4.11626C6.57491 4.11626 7.02237 4.4192 7.20716 4.88118L7.31379 5.14774C6.87136 5.47013 6.5099 5.91966 6.28724 6.46795C5.97445 7.23818 5.99132 8.06533 6.27278 8.77964C6.32816 8.92017 6.43812 9.03225 6.57756 9.0903C6.71701 9.14835 6.87403 9.1474 7.01276 9.08768L11.4487 7.17806C11.7256 7.05886 11.8578 6.7413 11.7473 6.46081C11.4657 5.74622 10.9159 5.13719 10.1603 4.8144C9.55652 4.55646 8.91592 4.52175 8.32557 4.67152L8.2436 4.46661C7.88928 3.58083 7.03137 3 6.07733 3C4.78877 3 3.74419 4.04457 3.74419 5.33311V10.4417H3.55814C3.24989 10.4417 3 10.6916 3 10.9999C3 11.3081 3.24989 11.558 3.55814 11.558H3.74419V11.7441C3.74419 11.7469 3.74421 11.7497 3.74425 11.7525C3.74418 11.7663 3.74418 11.7801 3.74419 11.7937L3.74419 11.8219C3.74419 12.1011 3.74419 12.2648 3.75577 12.4474C3.8614 14.1117 4.76078 15.6486 6.06424 16.6535C6.05401 16.6696 6.04451 16.6864 6.03579 16.7038L5.2916 18.1921C5.15375 18.4678 5.2655 18.8031 5.54121 18.941C5.81692 19.0788 6.15218 18.9671 6.29004 18.6914L7.0102 17.251C7.60683 17.553 8.25567 17.7518 8.9305 17.8201C9.11241 17.8385 9.22344 17.8427 9.41256 17.8498L9.41763 17.85C9.9685 17.8707 10.5077 17.8835 11 17.8835C11.4923 17.8835 12.0315 17.8707 12.5824 17.85L12.5874 17.8498C12.7765 17.8427 12.8876 17.8385 13.0695 17.8201C13.7444 17.7518 14.3933 17.553 14.99 17.251L15.7102 18.6914C15.8481 18.9671 16.1833 19.0788 16.459 18.941C16.7347 18.8031 16.8465 18.4678 16.7086 18.1921L15.9645 16.7038C15.9557 16.6863 15.9462 16.6695 15.9359 16.6534C17.2393 15.6485 18.1386 14.1117 18.2442 12.4474C18.2558 12.2649 18.2558 12.1012 18.2558 11.8219L18.2558 11.7937C18.2559 11.749 18.2559 11.7025 18.2531 11.6596C18.2509 11.6253 18.2473 11.5915 18.2425 11.558H18.4419C18.7501 11.558 19 11.3081 19 10.9999C19 10.6916 18.7501 10.4417 18.4419 10.4417H4.86047V5.33311Z" fill="currentColor"/></g></svg>5 baths</li>
<li class="rw-tour__card-fact"><svg class="rw-icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="square" focusable="false" aria-hidden="true"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.02513 5.02513C4 6.05025 4 7.70017 4 11C4 14.2998 4 15.9497 5.02513 16.9749C6.05025 18 7.70017 18 11 18C14.2998 18 15.9497 18 16.9749 16.9749C18 15.9497 18 14.2998 18 11C18 7.70017 18 6.05025 16.9749 5.02513C15.9497 4 14.2998 4 11 4C7.70017 4 6.05025 4 5.02513 5.02513ZM10.1232 6.79555C10.1256 7.08549 9.89256 7.32252 9.60263 7.32498C9.00351 7.33006 8.58507 7.34985 8.27026 7.41152C7.9701 7.47031 7.80396 7.55998 7.68197 7.68197C7.55998 7.80396 7.47031 7.9701 7.41152 8.27026C7.34985 8.58507 7.33006 9.00351 7.32498 9.60263C7.32252 9.89256 7.08549 10.1256 6.79555 10.1232C6.50561 10.1207 6.27256 9.88366 6.27502 9.59372C6.28007 8.99824 6.2985 8.49011 6.3811 8.06842C6.46657 7.63208 6.62721 7.2518 6.93951 6.93951C7.2518 6.62721 7.63208 6.46657 8.06842 6.3811C8.49011 6.2985 8.99824 6.28007 9.59372 6.27502C9.88366 6.27256 10.1207 6.50561 10.1232 6.79555ZM11.8751 6.79555C11.8776 6.50561 12.1146 6.27256 12.4046 6.27502C13 6.28007 13.5082 6.2985 13.9299 6.3811C14.3662 6.46657 14.7465 6.62721 15.0588 6.93951C15.3711 7.2518 15.5317 7.63208 15.6172 8.06842C15.6998 8.49011 15.7182 8.99824 15.7233 9.59372C15.7257 9.88366 15.4927 10.1207 15.2027 10.1232C14.9128 10.1256 14.6758 9.89256 14.6733 9.60263C14.6682 9.00351 14.6484 8.58507 14.5868 8.27026C14.528 7.9701 14.4383 7.80396 14.3163 7.68197C14.1943 7.55998 14.0282 7.47031 13.728 7.41152C13.4132 7.34985 12.9948 7.33006 12.3957 7.32498C12.1057 7.32252 11.8727 7.08549 11.8751 6.79555ZM7.32498 12.396C7.32252 12.1061 7.08549 11.873 6.79555 11.8755C6.50561 11.8779 6.27256 12.115 6.27502 12.4049C6.28007 13.0004 6.2985 13.5085 6.3811 13.9302C6.46657 14.3666 6.62721 14.7468 6.93951 15.0591C7.2518 15.3714 7.63208 15.5321 8.06842 15.6175C8.49011 15.7001 8.99824 15.7186 9.59372 15.7236C9.88366 15.7261 10.1207 15.493 10.1232 15.2031C10.1256 14.9131 9.89256 14.6761 9.60263 14.6737C9.00351 14.6686 8.58507 14.6488 8.27026 14.5871C7.9701 14.5283 7.80396 14.4387 7.68197 14.3167C7.55998 14.1947 7.47031 14.0285 7.41152 13.7284C7.34985 13.4136 7.33006 12.9951 7.32498 12.396ZM15.2027 11.8755C15.4927 11.8779 15.7257 12.115 15.7233 12.4049C15.7182 13.0004 15.6998 13.5085 15.6172 13.9302C15.5317 14.3666 15.3711 14.7468 15.0588 15.0591C14.7465 15.3714 14.3662 15.5321 13.9299 15.6175C13.5082 15.7001 13 15.7186 12.4046 15.7236C12.1146 15.7261 11.8776 15.493 11.8751 15.2031C11.8727 14.9131 12.1057 14.6761 12.3957 14.6737C12.9948 14.6686 13.4132 14.6488 13.728 14.5871C14.0282 14.5283 14.1943 14.4387 14.3163 14.3167C14.4383 14.1947 14.528 14.0285 14.5868 13.7284C14.6484 13.4136 14.6682 12.9951 14.6733 12.396C14.6758 12.1061 14.9128 11.873 15.2027 11.8755Z" fill="currentColor"/></g></svg>6,838 sq ft</li>
</ul>
<p class="rw-tour__card-address">1417 Sterlingbrooke Dr SW, Powder Springs, GA 30127</p>
</div>
</div>
<div class="rw-tour__days" data-rw-days="[{"iso":"2026-11-05","weekday":"Thu","day":"5","month":"Nov"},{"iso":"2026-11-06","weekday":"Fri","day":"6","month":"Nov"},{"iso":"2026-11-07","weekday":"Sat","day":"7","month":"Nov"},{"iso":"2026-11-08","weekday":"Sun","day":"8","month":"Nov"},{"iso":"2026-11-09","weekday":"Mon","day":"9","month":"Nov"},{"iso":"2026-11-10","weekday":"Tue","day":"10","month":"Nov"},{"iso":"2026-11-11","weekday":"Wed","day":"11","month":"Nov"},{"iso":"2026-11-12","weekday":"Thu","day":"12","month":"Nov"},{"iso":"2026-11-13","weekday":"Fri","day":"13","month":"Nov"},{"iso":"2026-11-14","weekday":"Sat","day":"14","month":"Nov"},{"iso":"2026-11-15","weekday":"Sun","day":"15","month":"Nov"},{"iso":"2026-11-16","weekday":"Mon","day":"16","month":"Nov"},{"iso":"2026-11-17","weekday":"Tue","day":"17","month":"Nov"},{"iso":"2026-11-18","weekday":"Wed","day":"18","month":"Nov"},{"iso":"2026-11-19","weekday":"Thu","day":"19","month":"Nov"},{"iso":"2026-11-20","weekday":"Fri","day":"20","month":"Nov"}]" data-rw-time-zone="America/New_York">
<button type="button" class="rw-tour__nav rw-tour__nav--prev" aria-label="Previous days" disabled="" data-rw-days-prev="">
<svg class="rw-icon" viewBox="0 0 24 24" width="20" height="20" data-rw-icon="chevron-left" focusable="false" aria-hidden="true"><g fill="none"><path d="M15 5L8 12L15 19" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M15 5L8 12L15 19" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></g></svg>
</button>
<div class="rw-tour__day-list" role="group" aria-label="Day">
<button type="button" class="rw-tour__day" aria-pressed="false" data-rw-day="2026-11-05">
<span class="rw-tour__weekday">Thu</span>
<span class="rw-tour__date">5</span>
<span class="rw-tour__month">Nov</span>
</button>
<button type="button" class="rw-tour__day" aria-pressed="false" data-rw-day="2026-11-06">
<span class="rw-tour__weekday">Fri</span>
<span class="rw-tour__date">6</span>
<span class="rw-tour__month">Nov</span>
</button>
<button type="button" class="rw-tour__day" aria-pressed="false" data-rw-day="2026-11-07">
<span class="rw-tour__weekday">Sat</span>
<span class="rw-tour__date">7</span>
<span class="rw-tour__month">Nov</span>
</button>
<button type="button" class="rw-tour__day" aria-pressed="false" data-rw-day="2026-11-08">
<span class="rw-tour__weekday">Sun</span>
<span class="rw-tour__date">8</span>
<span class="rw-tour__month">Nov</span>
</button>
<button type="button" class="rw-tour__day" aria-pressed="false" data-rw-day="2026-11-09">
<span class="rw-tour__weekday">Mon</span>
<span class="rw-tour__date">9</span>
<span class="rw-tour__month">Nov</span>
</button>
<button type="button" class="rw-tour__day" aria-pressed="false" data-rw-day="2026-11-10">
<span class="rw-tour__weekday">Tue</span>
<span class="rw-tour__date">10</span>
<span class="rw-tour__month">Nov</span>
</button>
<button type="button" class="rw-tour__day" aria-pressed="false" data-rw-day="2026-11-11">
<span class="rw-tour__weekday">Wed</span>
<span class="rw-tour__date">11</span>
<span class="rw-tour__month">Nov</span>
</button>
<button type="button" class="rw-tour__day" aria-pressed="false" hidden="" data-rw-day="2026-11-12">
<span class="rw-tour__weekday">Thu</span>
<span class="rw-tour__date">12</span>
<span class="rw-tour__month">Nov</span>
</button>
<button type="button" class="rw-tour__day" aria-pressed="false" hidden="" data-rw-day="2026-11-13">
<span class="rw-tour__weekday">Fri</span>
<span class="rw-tour__date">13</span>
<span class="rw-tour__month">Nov</span>
</button>
<button type="button" class="rw-tour__day" aria-pressed="false" hidden="" data-rw-day="2026-11-14">
<span class="rw-tour__weekday">Sat</span>
<span class="rw-tour__date">14</span>
<span class="rw-tour__month">Nov</span>
</button>
<button type="button" class="rw-tour__day" aria-pressed="false" hidden="" data-rw-day="2026-11-15">
<span class="rw-tour__weekday">Sun</span>
<span class="rw-tour__date">15</span>
<span class="rw-tour__month">Nov</span>
</button>
<button type="button" class="rw-tour__day" aria-pressed="false" hidden="" data-rw-day="2026-11-16">
<span class="rw-tour__weekday">Mon</span>
<span class="rw-tour__date">16</span>
<span class="rw-tour__month">Nov</span>
</button>
<button type="button" class="rw-tour__day" aria-pressed="false" hidden="" data-rw-day="2026-11-17">
<span class="rw-tour__weekday">Tue</span>
<span class="rw-tour__date">17</span>
<span class="rw-tour__month">Nov</span>
</button>
<button type="button" class="rw-tour__day" aria-pressed="false" hidden="" data-rw-day="2026-11-18">
<span class="rw-tour__weekday">Wed</span>
<span class="rw-tour__date">18</span>
<span class="rw-tour__month">Nov</span>
</button>
<button type="button" class="rw-tour__day" aria-pressed="false" hidden="" data-rw-day="2026-11-19">
<span class="rw-tour__weekday">Thu</span>
<span class="rw-tour__date">19</span>
<span class="rw-tour__month">Nov</span>
</button>
<button type="button" class="rw-tour__day" aria-pressed="false" hidden="" data-rw-day="2026-11-20">
<span class="rw-tour__weekday">Fri</span>
<span class="rw-tour__date">20</span>
<span class="rw-tour__month">Nov</span>
</button>
</div>
<button type="button" class="rw-tour__nav rw-tour__nav--next" aria-label="Next days" data-rw-days-next="">
<svg class="rw-icon" viewBox="0 0 24 24" width="20" height="20" data-rw-icon="chevron-right" focusable="false" aria-hidden="true"><g fill="none"><path d="M9 5L16 12L9 19" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></g></svg>
</button>
</div>
<fieldset class="rw-tour__parts" aria-labelledby="listing-detail-8">
<legend class="rw-field__label" id="listing-detail-8">Time of day</legend>
<div class="rw-tour__part-list">
<button type="button" class="rw-tour__part" aria-pressed="false" data-rw-part="anytime">Any time</button>
<button type="button" class="rw-tour__part" aria-pressed="false" data-rw-part="morning">Morning (8 AM to 12 PM)</button>
<button type="button" class="rw-tour__part" aria-pressed="false" data-rw-part="afternoon">Afternoon (12 PM to 4 PM)</button>
<button type="button" class="rw-tour__part" aria-pressed="false" data-rw-part="evening">Evening (4 PM to 8 PM)</button>
</div>
</fieldset>
<p class="rw-form__hint rw-tour__hint" id="listing-detail-7-date-hint" data-rw-tour-hint="">Choose a day to continue.</p>
<div class="rw-modal__footer rw-modal__footer--end">
<button type="button" class="rw-button" disabled="" aria-describedby="listing-detail-7-date-hint" data-rw-tour-submit="">Request a tour</button>
</div>
<p class="rw-form__status" role="status" aria-live="polite" data-rw-form-status=""></p>
</section>
<section class="rw-tour__success" hidden="" data-rw-step="sent" role="status">
<span class="rw-tour__check">
<svg class="rw-icon" viewBox="0 0 16 16" width="28" height="28" data-rw-icon="check-white" focusable="false" aria-hidden="true"><g fill="none"><g clip-path="url(#rw-check-white-clip0_116503_6723)"><path d="M6.00024 10.8009L3.66691 8.46753C3.40691 8.20753 2.99357 8.20753 2.73357 8.46753C2.47357 8.72753 2.47357 9.14086 2.73357 9.40086L5.52691 12.1942C5.78691 12.4542 6.20691 12.4542 6.46691 12.1942L13.5336 5.13419C13.7936 4.87419 13.7936 4.46086 13.5336 4.20086C13.2736 3.94086 12.8602 3.94086 12.6002 4.20086L6.00024 10.8009Z" fill="currentColor"/></g><defs><clipPath id="rw-check-white-clip0_116503_6723"><rect width="16" height="16" fill="currentColor"/></clipPath></defs></g></svg>
</span>
<h3 class="rw-tour__success-title" tabindex="-1">Tour request received</h3>
<p class="rw-tour__success-text">We received your request and will be in touch shortly to confirm.</p>
<dl class="rw-tour__summary">
<div class="rw-tour__summary-row" hidden="" data-rw-summary="date">
<dt>Tour date</dt>
<dd></dd>
</div>
<div class="rw-tour__summary-row" hidden="" data-rw-summary="time">
<dt>Tour time</dt>
<dd></dd>
</div>
<div class="rw-tour__summary-row" hidden="" data-rw-summary="phone">
<dt>Contact phone</dt>
<dd></dd>
</div>
<div class="rw-tour__summary-row" hidden="" data-rw-summary="email">
<dt>Email</dt>
<dd></dd>
</div>
</dl>
<div class="rw-modal__footer rw-modal__footer--end">
<button type="button" class="rw-button" data-rw-done="">Done</button>
</div>
</section>
</div>
</div>
</div>
</dialog>
</div>
<div class="rw-modal-host" data-rw-screen="tour">
<dialog class="rw-recipes rw-modal rw-modal--md" data-rw-modal="tour" aria-labelledby="listing-detail-9">
<div class="rw-modal__panel">
<div class="rw-modal__header">
<h2 class="rw-modal__title" id="listing-detail-9">Ready to tour?</h2>
<button type="button" class="rw-modal__close" aria-label="Close" data-rw-modal-close="">
<svg class="rw-icon" viewBox="0 0 24 24" width="24" height="24" data-rw-icon="close-white" focusable="false" aria-hidden="true"><g fill="none"><g clip-path="url(#rw-close-white-clip0_close_white)"><path d="M18.3002 5.7107C17.9102 5.3207 17.2802 5.3207 16.8902 5.7107L12.0002 10.5907L7.11022 5.7007C6.72022 5.3107 6.09021 5.3107 5.70021 5.7007C5.31021 6.0907 5.31021 6.7207 5.70021 7.1107L10.5902 12.0007L5.70021 16.8907C5.31021 17.2807 5.31021 17.9107 5.70021 18.3007C6.09021 18.6907 6.72022 18.6907 7.11022 18.3007L12.0002 13.4107L16.8902 18.3007C17.2802 18.6907 17.9102 18.6907 18.3002 18.3007C18.6902 17.9107 18.6902 17.2807 18.3002 16.8907L13.4102 12.0007L18.3002 7.1107C18.6802 6.7307 18.6802 6.0907 18.3002 5.7107Z" fill="currentColor"/></g><defs><clipPath id="rw-close-white-clip0_close_white"><rect width="24" height="24" fill="currentColor"/></clipPath></defs></g></svg>
</button>
</div>
<div class="rw-modal__body">
<div class="rw-tour">
<section class="rw-tour__step" data-rw-step="date">
<div class="rw-modal__intro">
<h3 class="rw-modal__heading" tabindex="-1">Choose a time that works for you.</h3>
<p class="rw-modal__text">Pick a day and a time of day, and we will confirm the tour with you.</p>
</div>
<div class="rw-tour__card" data-rw-tour-listing="">
<img class="rw-tour__card-img" src="https://photos.ruuster.com/l/1/0.jpg" width="1200" height="800" alt="Two-story brick house with a two-car garage" loading="lazy" decoding="async" srcSet="https://photos.ruuster.com/l/1/0.jpg?width=480 480w, https://photos.ruuster.com/l/1/0.jpg?width=800 800w, https://photos.ruuster.com/l/1/0.jpg?width=1200 1200w" sizes="114px"/>
<div class="rw-tour__card-body">
<p class="rw-tour__card-price">$480,000</p>
<ul class="rw-tour__card-facts">
<li class="rw-tour__card-fact"><svg class="rw-icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="beds" focusable="false" aria-hidden="true"><g fill="none"><path d="M10.4 10.0448V7.52239H9.00002C8.22881 7.52239 7.71077 7.52363 7.32434 7.57403C6.95517 7.62218 6.79717 7.7054 6.69292 7.80654C6.58866 7.90768 6.50288 8.06096 6.45325 8.41911C6.4013 8.79401 6.40002 9.29659 6.40002 10.0448L10.4 10.0448Z" fill="currentColor"/><path d="M15.6 10.0448C15.6 9.29659 15.5987 8.79401 15.5468 8.41911C15.4972 8.06096 15.4114 7.90768 15.3071 7.80654C15.2029 7.7054 15.0449 7.62218 14.6757 7.57403C14.2893 7.52363 13.7712 7.52239 13 7.52239H11.6V10.0448L15.6 10.0448Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M11.8 5H10.2C7.18303 5 5.67454 5 4.73728 5.90928C3.9193 6.70284 3.8152 7.9185 3.80195 10.1607V11.4158C3.49768 11.5857 3.2576 11.8491 3.12179 12.1672C3 12.4524 3 12.8141 3 13.5373C3 14.2606 3 14.6222 3.12179 14.9074C3.28418 15.2878 3.59566 15.59 3.98771 15.7475C4.18962 15.8287 4.42864 15.8541 4.8 15.862V17.4179C4.8 17.7394 5.06863 18 5.4 18C5.73137 18 6 17.7394 6 17.4179V15.8657H16V17.4179C16 17.7394 16.2686 18 16.6 18C16.9314 18 17.2 17.7394 17.2 17.4179V15.862C17.5714 15.8541 17.8104 15.8287 18.0123 15.7475C18.4043 15.59 18.7158 15.2878 18.8782 14.9074C19 14.6222 19 14.2606 19 13.5373C19 12.8141 19 12.4524 18.8782 12.1672C18.7424 11.8491 18.5023 11.5857 18.1981 11.4158V10.1607C18.1848 7.9185 18.0807 6.70284 17.2628 5.90928C16.3255 5 14.817 5 11.8 5ZM16.8 11.2091V10.0044C16.8 9.30712 16.8001 8.72559 16.7361 8.26399C16.6686 7.77674 16.52 7.33684 16.1557 6.98334C15.7913 6.62984 15.3378 6.48574 14.8356 6.42023C14.3598 6.35817 13.7604 6.35819 13.0416 6.35821H8.95842C8.23964 6.35819 7.64026 6.35817 7.16444 6.42023C6.6622 6.48574 6.20876 6.62984 5.84439 6.98334C5.48001 7.33684 5.33148 7.77674 5.26395 8.26399C5.19998 8.72561 5.2 9.30709 5.20002 10.0044V11.2091C5.26357 11.209 5.33015 11.209 5.4 11.209H16.6C16.6699 11.209 16.7365 11.209 16.8 11.2091Z" fill="currentColor"/></g></svg>6 beds</li>
<li class="rw-tour__card-fact"><svg class="rw-icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="bath" focusable="false" aria-hidden="true"><g fill="none"><path d="M4.86047 5.33311C4.86047 4.66106 5.40528 4.11626 6.07733 4.11626C6.57491 4.11626 7.02237 4.4192 7.20716 4.88118L7.31379 5.14774C6.87136 5.47013 6.5099 5.91966 6.28724 6.46795C5.97445 7.23818 5.99132 8.06533 6.27278 8.77964C6.32816 8.92017 6.43812 9.03225 6.57756 9.0903C6.71701 9.14835 6.87403 9.1474 7.01276 9.08768L11.4487 7.17806C11.7256 7.05886 11.8578 6.7413 11.7473 6.46081C11.4657 5.74622 10.9159 5.13719 10.1603 4.8144C9.55652 4.55646 8.91592 4.52175 8.32557 4.67152L8.2436 4.46661C7.88928 3.58083 7.03137 3 6.07733 3C4.78877 3 3.74419 4.04457 3.74419 5.33311V10.4417H3.55814C3.24989 10.4417 3 10.6916 3 10.9999C3 11.3081 3.24989 11.558 3.55814 11.558H3.74419V11.7441C3.74419 11.7469 3.74421 11.7497 3.74425 11.7525C3.74418 11.7663 3.74418 11.7801 3.74419 11.7937L3.74419 11.8219C3.74419 12.1011 3.74419 12.2648 3.75577 12.4474C3.8614 14.1117 4.76078 15.6486 6.06424 16.6535C6.05401 16.6696 6.04451 16.6864 6.03579 16.7038L5.2916 18.1921C5.15375 18.4678 5.2655 18.8031 5.54121 18.941C5.81692 19.0788 6.15218 18.9671 6.29004 18.6914L7.0102 17.251C7.60683 17.553 8.25567 17.7518 8.9305 17.8201C9.11241 17.8385 9.22344 17.8427 9.41256 17.8498L9.41763 17.85C9.9685 17.8707 10.5077 17.8835 11 17.8835C11.4923 17.8835 12.0315 17.8707 12.5824 17.85L12.5874 17.8498C12.7765 17.8427 12.8876 17.8385 13.0695 17.8201C13.7444 17.7518 14.3933 17.553 14.99 17.251L15.7102 18.6914C15.8481 18.9671 16.1833 19.0788 16.459 18.941C16.7347 18.8031 16.8465 18.4678 16.7086 18.1921L15.9645 16.7038C15.9557 16.6863 15.9462 16.6695 15.9359 16.6534C17.2393 15.6485 18.1386 14.1117 18.2442 12.4474C18.2558 12.2649 18.2558 12.1012 18.2558 11.8219L18.2558 11.7937C18.2559 11.749 18.2559 11.7025 18.2531 11.6596C18.2509 11.6253 18.2473 11.5915 18.2425 11.558H18.4419C18.7501 11.558 19 11.3081 19 10.9999C19 10.6916 18.7501 10.4417 18.4419 10.4417H4.86047V5.33311Z" fill="currentColor"/></g></svg>5 baths</li>
<li class="rw-tour__card-fact"><svg class="rw-icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="square" focusable="false" aria-hidden="true"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.02513 5.02513C4 6.05025 4 7.70017 4 11C4 14.2998 4 15.9497 5.02513 16.9749C6.05025 18 7.70017 18 11 18C14.2998 18 15.9497 18 16.9749 16.9749C18 15.9497 18 14.2998 18 11C18 7.70017 18 6.05025 16.9749 5.02513C15.9497 4 14.2998 4 11 4C7.70017 4 6.05025 4 5.02513 5.02513ZM10.1232 6.79555C10.1256 7.08549 9.89256 7.32252 9.60263 7.32498C9.00351 7.33006 8.58507 7.34985 8.27026 7.41152C7.9701 7.47031 7.80396 7.55998 7.68197 7.68197C7.55998 7.80396 7.47031 7.9701 7.41152 8.27026C7.34985 8.58507 7.33006 9.00351 7.32498 9.60263C7.32252 9.89256 7.08549 10.1256 6.79555 10.1232C6.50561 10.1207 6.27256 9.88366 6.27502 9.59372C6.28007 8.99824 6.2985 8.49011 6.3811 8.06842C6.46657 7.63208 6.62721 7.2518 6.93951 6.93951C7.2518 6.62721 7.63208 6.46657 8.06842 6.3811C8.49011 6.2985 8.99824 6.28007 9.59372 6.27502C9.88366 6.27256 10.1207 6.50561 10.1232 6.79555ZM11.8751 6.79555C11.8776 6.50561 12.1146 6.27256 12.4046 6.27502C13 6.28007 13.5082 6.2985 13.9299 6.3811C14.3662 6.46657 14.7465 6.62721 15.0588 6.93951C15.3711 7.2518 15.5317 7.63208 15.6172 8.06842C15.6998 8.49011 15.7182 8.99824 15.7233 9.59372C15.7257 9.88366 15.4927 10.1207 15.2027 10.1232C14.9128 10.1256 14.6758 9.89256 14.6733 9.60263C14.6682 9.00351 14.6484 8.58507 14.5868 8.27026C14.528 7.9701 14.4383 7.80396 14.3163 7.68197C14.1943 7.55998 14.0282 7.47031 13.728 7.41152C13.4132 7.34985 12.9948 7.33006 12.3957 7.32498C12.1057 7.32252 11.8727 7.08549 11.8751 6.79555ZM7.32498 12.396C7.32252 12.1061 7.08549 11.873 6.79555 11.8755C6.50561 11.8779 6.27256 12.115 6.27502 12.4049C6.28007 13.0004 6.2985 13.5085 6.3811 13.9302C6.46657 14.3666 6.62721 14.7468 6.93951 15.0591C7.2518 15.3714 7.63208 15.5321 8.06842 15.6175C8.49011 15.7001 8.99824 15.7186 9.59372 15.7236C9.88366 15.7261 10.1207 15.493 10.1232 15.2031C10.1256 14.9131 9.89256 14.6761 9.60263 14.6737C9.00351 14.6686 8.58507 14.6488 8.27026 14.5871C7.9701 14.5283 7.80396 14.4387 7.68197 14.3167C7.55998 14.1947 7.47031 14.0285 7.41152 13.7284C7.34985 13.4136 7.33006 12.9951 7.32498 12.396ZM15.2027 11.8755C15.4927 11.8779 15.7257 12.115 15.7233 12.4049C15.7182 13.0004 15.6998 13.5085 15.6172 13.9302C15.5317 14.3666 15.3711 14.7468 15.0588 15.0591C14.7465 15.3714 14.3662 15.5321 13.9299 15.6175C13.5082 15.7001 13 15.7186 12.4046 15.7236C12.1146 15.7261 11.8776 15.493 11.8751 15.2031C11.8727 14.9131 12.1057 14.6761 12.3957 14.6737C12.9948 14.6686 13.4132 14.6488 13.728 14.5871C14.0282 14.5283 14.1943 14.4387 14.3163 14.3167C14.4383 14.1947 14.528 14.0285 14.5868 13.7284C14.6484 13.4136 14.6682 12.9951 14.6733 12.396C14.6758 12.1061 14.9128 11.873 15.2027 11.8755Z" fill="currentColor"/></g></svg>6,838 sq ft</li>
</ul>
<p class="rw-tour__card-address">1417 Sterlingbrooke Dr SW, Powder Springs, GA 30127</p>
</div>
</div>
<div class="rw-tour__days" data-rw-days="[{"iso":"2026-11-05","weekday":"Thu","day":"5","month":"Nov"},{"iso":"2026-11-06","weekday":"Fri","day":"6","month":"Nov"},{"iso":"2026-11-07","weekday":"Sat","day":"7","month":"Nov"},{"iso":"2026-11-08","weekday":"Sun","day":"8","month":"Nov"},{"iso":"2026-11-09","weekday":"Mon","day":"9","month":"Nov"},{"iso":"2026-11-10","weekday":"Tue","day":"10","month":"Nov"},{"iso":"2026-11-11","weekday":"Wed","day":"11","month":"Nov"},{"iso":"2026-11-12","weekday":"Thu","day":"12","month":"Nov"},{"iso":"2026-11-13","weekday":"Fri","day":"13","month":"Nov"},{"iso":"2026-11-14","weekday":"Sat","day":"14","month":"Nov"},{"iso":"2026-11-15","weekday":"Sun","day":"15","month":"Nov"},{"iso":"2026-11-16","weekday":"Mon","day":"16","month":"Nov"},{"iso":"2026-11-17","weekday":"Tue","day":"17","month":"Nov"},{"iso":"2026-11-18","weekday":"Wed","day":"18","month":"Nov"},{"iso":"2026-11-19","weekday":"Thu","day":"19","month":"Nov"},{"iso":"2026-11-20","weekday":"Fri","day":"20","month":"Nov"}]" data-rw-time-zone="America/New_York">
<button type="button" class="rw-tour__nav rw-tour__nav--prev" aria-label="Previous days" disabled="" data-rw-days-prev="">
<svg class="rw-icon" viewBox="0 0 24 24" width="20" height="20" data-rw-icon="chevron-left" focusable="false" aria-hidden="true"><g fill="none"><path d="M15 5L8 12L15 19" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M15 5L8 12L15 19" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></g></svg>
</button>
<div class="rw-tour__day-list" role="group" aria-label="Day">
<button type="button" class="rw-tour__day" aria-pressed="false" data-rw-day="2026-11-05">
<span class="rw-tour__weekday">Thu</span>
<span class="rw-tour__date">5</span>
<span class="rw-tour__month">Nov</span>
</button>
<button type="button" class="rw-tour__day" aria-pressed="false" data-rw-day="2026-11-06">
<span class="rw-tour__weekday">Fri</span>
<span class="rw-tour__date">6</span>
<span class="rw-tour__month">Nov</span>
</button>
<button type="button" class="rw-tour__day" aria-pressed="false" data-rw-day="2026-11-07">
<span class="rw-tour__weekday">Sat</span>
<span class="rw-tour__date">7</span>
<span class="rw-tour__month">Nov</span>
</button>
<button type="button" class="rw-tour__day" aria-pressed="false" data-rw-day="2026-11-08">
<span class="rw-tour__weekday">Sun</span>
<span class="rw-tour__date">8</span>
<span class="rw-tour__month">Nov</span>
</button>
<button type="button" class="rw-tour__day" aria-pressed="false" data-rw-day="2026-11-09">
<span class="rw-tour__weekday">Mon</span>
<span class="rw-tour__date">9</span>
<span class="rw-tour__month">Nov</span>
</button>
<button type="button" class="rw-tour__day" aria-pressed="false" data-rw-day="2026-11-10">
<span class="rw-tour__weekday">Tue</span>
<span class="rw-tour__date">10</span>
<span class="rw-tour__month">Nov</span>
</button>
<button type="button" class="rw-tour__day" aria-pressed="false" data-rw-day="2026-11-11">
<span class="rw-tour__weekday">Wed</span>
<span class="rw-tour__date">11</span>
<span class="rw-tour__month">Nov</span>
</button>
<button type="button" class="rw-tour__day" aria-pressed="false" hidden="" data-rw-day="2026-11-12">
<span class="rw-tour__weekday">Thu</span>
<span class="rw-tour__date">12</span>
<span class="rw-tour__month">Nov</span>
</button>
<button type="button" class="rw-tour__day" aria-pressed="false" hidden="" data-rw-day="2026-11-13">
<span class="rw-tour__weekday">Fri</span>
<span class="rw-tour__date">13</span>
<span class="rw-tour__month">Nov</span>
</button>
<button type="button" class="rw-tour__day" aria-pressed="false" hidden="" data-rw-day="2026-11-14">
<span class="rw-tour__weekday">Sat</span>
<span class="rw-tour__date">14</span>
<span class="rw-tour__month">Nov</span>
</button>
<button type="button" class="rw-tour__day" aria-pressed="false" hidden="" data-rw-day="2026-11-15">
<span class="rw-tour__weekday">Sun</span>
<span class="rw-tour__date">15</span>
<span class="rw-tour__month">Nov</span>
</button>
<button type="button" class="rw-tour__day" aria-pressed="false" hidden="" data-rw-day="2026-11-16">
<span class="rw-tour__weekday">Mon</span>
<span class="rw-tour__date">16</span>
<span class="rw-tour__month">Nov</span>
</button>
<button type="button" class="rw-tour__day" aria-pressed="false" hidden="" data-rw-day="2026-11-17">
<span class="rw-tour__weekday">Tue</span>
<span class="rw-tour__date">17</span>
<span class="rw-tour__month">Nov</span>
</button>
<button type="button" class="rw-tour__day" aria-pressed="false" hidden="" data-rw-day="2026-11-18">
<span class="rw-tour__weekday">Wed</span>
<span class="rw-tour__date">18</span>
<span class="rw-tour__month">Nov</span>
</button>
<button type="button" class="rw-tour__day" aria-pressed="false" hidden="" data-rw-day="2026-11-19">
<span class="rw-tour__weekday">Thu</span>
<span class="rw-tour__date">19</span>
<span class="rw-tour__month">Nov</span>
</button>
<button type="button" class="rw-tour__day" aria-pressed="false" hidden="" data-rw-day="2026-11-20">
<span class="rw-tour__weekday">Fri</span>
<span class="rw-tour__date">20</span>
<span class="rw-tour__month">Nov</span>
</button>
</div>
<button type="button" class="rw-tour__nav rw-tour__nav--next" aria-label="Next days" data-rw-days-next="">
<svg class="rw-icon" viewBox="0 0 24 24" width="20" height="20" data-rw-icon="chevron-right" focusable="false" aria-hidden="true"><g fill="none"><path d="M9 5L16 12L9 19" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></g></svg>
</button>
</div>
<fieldset class="rw-tour__parts" aria-labelledby="listing-detail-10">
<legend class="rw-field__label" id="listing-detail-10">Time of day</legend>
<div class="rw-tour__part-list">
<button type="button" class="rw-tour__part" aria-pressed="false" data-rw-part="anytime">Any time</button>
<button type="button" class="rw-tour__part" aria-pressed="false" data-rw-part="morning">Morning (8 AM to 12 PM)</button>
<button type="button" class="rw-tour__part" aria-pressed="false" data-rw-part="afternoon">Afternoon (12 PM to 4 PM)</button>
<button type="button" class="rw-tour__part" aria-pressed="false" data-rw-part="evening">Evening (4 PM to 8 PM)</button>
</div>
</fieldset>
<p class="rw-form__hint rw-tour__hint" id="listing-detail-11-date-hint" data-rw-tour-hint="">Choose a day to continue.</p>
<div class="rw-modal__footer rw-modal__footer--end">
<button type="button" class="rw-button" disabled="" aria-describedby="listing-detail-11-date-hint" data-rw-next="">Next</button>
</div>
</section>
<form class="rw-form rw-modal__form rw-tour__step" method="post" action="/api/leads/fub" novalidate="" hidden="" data-rw-step="info" data-rw-lead="tour" data-rw-success="Tour request received" data-rw-lead-listing="{"id":"0b6c3b52-7f0c-4a3e-9a51-6f0e2d1a0001","mlsNumber":"7400123","url":"/homes/1417-sterlingbrooke-dr-sw-powder-springs-ga-30127-0b6c3b52-7f0c-4a3e-9a51-6f0e2d1a0001","name":"1417 Sterlingbrooke Dr SW, Powder Springs, GA 30127","price":480000}">
<h3 class="rw-modal__heading" tabindex="-1">How can we reach you?</h3>
<input type="hidden" name="tourDate" value=""/>
<input type="hidden" name="tourTime" value=""/>
<div class="rw-field">
<label class="rw-field__label rw-field__label--required" for="listing-detail-11-name">Name</label>
<input class="rw-input" id="listing-detail-11-name" name="fullName" autoComplete="name" required="" maxLength="160" placeholder="First and last name" value=""/>
<p class="rw-form__hint rw-field__error" id="listing-detail-11-name-hint" hidden="" data-rw-name-hint="">Enter your first and last name.</p>
</div>
<div class="rw-field">
<label class="rw-field__label" for="listing-detail-11-phone">Phone (optional)</label>
<input class="rw-input" id="listing-detail-11-phone" name="phone" type="tel" autoComplete="tel" maxLength="40" value=""/>
</div>
<div class="rw-field">
<label class="rw-field__label rw-field__label--required" for="listing-detail-11-email">Email</label>
<input class="rw-input" id="listing-detail-11-email" name="email" type="email" autoComplete="email" required="" maxLength="254" placeholder="you@example.com" value=""/>
</div>
<div class="rw-hp" aria-hidden="true"><label for="listing-detail-11-website">Leave this field empty</label><input id="listing-detail-11-website" name="website" type="text" tabindex="-1" autoComplete="off" value=""/></div>
<div class="rw-modal__consent">
<label class="rw-check rw-consent" for="listing-detail-11-consent">
<input id="listing-detail-11-consent" type="checkbox" name="consentContact" aria-labelledby="listing-detail-11-consent-text" data-rw-consent="" value="yes"/>
<span id="listing-detail-11-consent-text" data-rw-consent-text="">I agree that Peach Realty may contact me by phone, text or email about this request.</span>
</label>
<label class="rw-check rw-consent" for="listing-detail-11-alerts">
<input id="listing-detail-11-alerts" type="checkbox" name="consentAlerts" aria-labelledby="listing-detail-11-alerts-text" value="yes"/>
<span id="listing-detail-11-alerts-text">Email me new listings like this one. I can unsubscribe at any time.</span>
</label>
</div>
<div class="rw-modal__footer">
<button type="button" class="rw-modal__back" data-rw-back=""><svg class="rw-icon" viewBox="0 0 24 24" width="20" height="20" data-rw-icon="chevron-left" focusable="false" aria-hidden="true"><g fill="none"><path d="M15 5L8 12L15 19" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M15 5L8 12L15 19" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></g></svg>Back</button>
<button class="rw-button" type="submit" disabled="" aria-describedby="listing-detail-11-needconsent" data-rw-submit="">Request a tour</button>
</div>
<p class="rw-form__hint" id="listing-detail-11-needconsent" data-rw-consent-hint="">Check the box above to agree to be contacted, then send your request.</p>
<p class="rw-form__status" role="status" aria-live="polite" data-rw-form-status=""></p>
</form>
<section class="rw-tour__success" hidden="" data-rw-step="sent" role="status">
<span class="rw-tour__check">
<svg class="rw-icon" viewBox="0 0 16 16" width="28" height="28" data-rw-icon="check-white" focusable="false" aria-hidden="true"><g fill="none"><g clip-path="url(#rw-check-white-clip0_116503_6723)"><path d="M6.00024 10.8009L3.66691 8.46753C3.40691 8.20753 2.99357 8.20753 2.73357 8.46753C2.47357 8.72753 2.47357 9.14086 2.73357 9.40086L5.52691 12.1942C5.78691 12.4542 6.20691 12.4542 6.46691 12.1942L13.5336 5.13419C13.7936 4.87419 13.7936 4.46086 13.5336 4.20086C13.2736 3.94086 12.8602 3.94086 12.6002 4.20086L6.00024 10.8009Z" fill="currentColor"/></g><defs><clipPath id="rw-check-white-clip0_116503_6723"><rect width="16" height="16" fill="currentColor"/></clipPath></defs></g></svg>
</span>
<h3 class="rw-tour__success-title" tabindex="-1">Tour request received</h3>
<p class="rw-tour__success-text">We received your request and will be in touch shortly to confirm.</p>
<dl class="rw-tour__summary">
<div class="rw-tour__summary-row" hidden="" data-rw-summary="date">
<dt>Tour date</dt>
<dd></dd>
</div>
<div class="rw-tour__summary-row" hidden="" data-rw-summary="time">
<dt>Tour time</dt>
<dd></dd>
</div>
<div class="rw-tour__summary-row" hidden="" data-rw-summary="phone">
<dt>Contact phone</dt>
<dd></dd>
</div>
<div class="rw-tour__summary-row" hidden="" data-rw-summary="email">
<dt>Email</dt>
<dd></dd>
</div>
</dl>
<div class="rw-modal__footer rw-modal__footer--end">
<button type="button" class="rw-button" data-rw-done="">Done</button>
</div>
</section>
</div>
</div>
</div>
</dialog>
</div>
</article>
| Element | Filled from |
|---|---|
article.rw-detail[data-rw-detail] |
listing.id. Every data-rw-open button inside this element opens the screen of the same article; the rw-detail--bar modifier is there when the mobile bar is |
article.rw-detail[data-listing-id] and [data-status] |
listing.id and listing.status |
article.rw-detail[data-rw-ga4-event] and [data-rw-ga4-params] |
view_item and its ecommerce JSON: currency USD, value (the shown price) and one item as on the grid. Leave both attributes out to send no event |
header.rw-detail-header |
detail-header.html: your search page as the Back link and the pinned summary |
.rw-photogrid |
photo-grid-5.html (and photo-grid-0 to photo-grid-4 for fewer photos) |
.rw-detail__courtesy |
listing.compliance.courtesyLine, else listing.attribution.courtesy, above the price block when the board requires courtesy_line at placement detail; the bottom attribution block then leaves it out |
section.rw-price |
price-block.html |
.rw-detail__description |
listing.description; leave the whole Description section out when it is empty |
.rw-detail__tour[href] |
listing.virtualTourUrl (http or https only); leave the paragraph out when there is none |
.rw-detail__inline-attribution |
the attribution line, inside the description card when the board requires listing_office, listing_agent or agent_contact at placement detail; the bottom block then leaves it out |
section.rw-agentinfo |
agent-info.html, when your agent has a license number or the board requires agent_contact at placement detail |
section.rw-openhouses |
open-houses.html |
details.rw-accordion (one per section) |
each of listing.details with items: data-category-id is categoryId, the 24px icon by categoryId (checklist-minimalistic for listing details, lamp for interior, home for exterior and structure, garage for parking, lightning for utilities, point-on-map for location, money-bag for price and financial, more-horizontal for any other), the title is label, and each li is an item's label and value (true and false as Yes and No, lists joined with commas, a year as 2004). The first one carries open |
section.rw-mortgage |
mortgage-calculator.html, with your publishable key; leave it out for a closed listing, a lease or rental (type or subtype matching lease or rent) or a listing without a price |
.rw-locmap |
location-map.html, with your Google Maps key; leave it out without a key, without listing.geo or when listing.address.hidden is true |
.rw-attribution__line |
listing.compliance.attributionLine, else listing.attribution.line (unless it moved into the description card) |
.rw-attribution__courtesy |
listing.compliance.courtesyLine, else listing.attribution.courtesy (unless it moved above the price block) |
.rw-attribution .rw-board-logo |
the listing's board logo from meta.mls |
.rw-detail__mlsnumber |
"{listing.mls.name} MLS number {listing.mlsNumber}" |
.rw-detail__compliance .rw-disclaimers |
the listing's board from meta.mls, and listing.compliance.asOf for the Data last updated line |
aside.rw-detail__aside--cards |
agent-card.html and tour-card.html inside .rw-contactcards, when you have a lead route and consent wording; print your own aside.rw-detail__aside instead to replace them |
.rw-mobilebar |
mobile-bar.html, with the cards |
dialog.rw-fullgallery |
full-gallery.html, closed |
.rw-modal-host[data-rw-screen] |
share-modal.html (when you share a URL), contact-modal.html and tour-modal.html (when you have a lead route), each closed |
Attribution and disclaimers
packages/ruuster-idx-recipes/static/html/mls-attribution.html
<!--
A listing's attribution block.
From the React component MlsAttribution. Generated by npm run idx:recipes-static from @ruuster/idx-recipes. Do not edit it by hand.
Fill each value from:
section.rw-attribution[data-mls-id]: listing.compliance.mlsId
.rw-board-logo: the listing's board logo from meta.mls (url, width, height, alt); leave it out when logo is null
.rw-attribution__line: listing.compliance.attributionLine, else listing.attribution.line; leave it out when both are empty
.rw-attribution__courtesy: listing.compliance.courtesyLine, else listing.attribution.courtesy; leave it out when both are empty
Every data-rw-* attribute is a hook for ruuster-idx.js; see ../HOOKS.md.
-->
<section class="rw-recipes rw-attribution" data-mls-id="nwmls">
<img class="rw-board-logo" src="https://photos.ruuster.com/mls/nwmls.png" alt="Northwest MLS logo" width="80" height="32" loading="lazy" decoding="async"/>
<div class="rw-attribution__text">
<p class="rw-attribution__line">Listing provided by Peach Realty</p>
<p class="rw-attribution__courtesy">Listing courtesy of Peach Realty</p>
</div>
</section>
| Element | Filled from |
|---|---|
section.rw-attribution[data-mls-id] |
listing.compliance.mlsId |
.rw-board-logo |
the listing's board logo from meta.mls (url, width, height, alt); leave it out when logo is null |
.rw-attribution__line |
listing.compliance.attributionLine, else listing.attribution.line; leave it out when both are empty |
.rw-attribution__courtesy |
listing.compliance.courtesyLine, else listing.attribution.courtesy; leave it out when both are empty |
packages/ruuster-idx-recipes/static/html/mls-disclaimers.html
<!--
The disclaimers of every board in the answer, and the Data last updated line.
From the React component MlsDisclaimers. Generated by npm run idx:recipes-static from @ruuster/idx-recipes. Do not edit it by hand.
Fill each value from:
.rw-disclaimer (one per board): each entry of meta.mls, once per mlsId; data-mls-id is meta.mls[].mlsId
.rw-disclaimer .rw-board-logo: meta.mls[].logo (url, width, height, alt); leave the image out when logo is null
.rw-disclaimer__text p: meta.mls[].disclaimer.text, then each meta.mls[].notices[].text, one paragraph per line of text; the board's mlsName when there is no text. Print the text versions, never the html ones
.rw-asof time[datetime]: meta.freshness.asOf
.rw-asof time text: meta.freshness.asOf as "November 4, 2026 at 3:00 PM UTC"
Every data-rw-* attribute is a hook for ruuster-idx.js; see ../HOOKS.md.
-->
<aside class="rw-recipes rw-disclaimers rw-disclaimers--page" aria-label="Listing data notices">
<div class="rw-disclaimer" data-mls-id="nwmls">
<img class="rw-board-logo" src="https://photos.ruuster.com/mls/nwmls.png" alt="Northwest MLS logo" width="80" height="32" loading="lazy" decoding="async"/>
<div class="rw-disclaimer__text">
<p>Listing information is provided by Northwest MLS and is deemed reliable but not guaranteed.</p>
<p>To report a copyright concern, contact Northwest MLS.</p>
</div>
</div>
<div class="rw-disclaimer" data-mls-id="fmls">
<div class="rw-disclaimer__text">
<p>Information is deemed reliable but not guaranteed. First MLS.</p>
</div>
</div>
<p class="rw-asof">Data last updated <time dateTime="2026-11-04T15:00:00Z">November 4, 2026 at 3:00 PM UTC</time>.</p>
</aside>
| Element | Filled from |
|---|---|
.rw-disclaimer (one per board) |
each entry of meta.mls, once per mlsId; data-mls-id is meta.mls[].mlsId |
.rw-disclaimer .rw-board-logo |
meta.mls[].logo (url, width, height, alt); leave the image out when logo is null |
.rw-disclaimer__text p |
meta.mls[].disclaimer.text, then each meta.mls[].notices[].text, one paragraph per line of text; the board's mlsName when there is no text. Print the text versions, never the html ones |
.rw-asof time[datetime] |
meta.freshness.asOf |
.rw-asof time text |
meta.freshness.asOf as "November 4, 2026 at 3:00 PM UTC" |
Market numbers
packages/ruuster-idx-recipes/static/html/market-stats.html
<!--
Market tiles for an area.
From the React component MarketStats. Generated by npm run idx:recipes-static from @ruuster/idx-recipes. Do not edit it by hand.
Fill each value from:
.rw-market__tile (up to four): data.measures of GET /v1/market, in this order: medianSoldPrice, medianPricePerSqft, medianDaysOnMarket, monthsOfSupply; a measure with no value is skipped and the next of medianListPrice, activeInventory, newListings fills its place. data-measure is the measure's name
.rw-market__label: the measure's label, for example "Median sold price"
.rw-market__value: the latest series value with a number, in its unit: usd as $416,400; usd_per_sqft as "$190 per sq ft"; days as "21 days"; months as "2.4 months"
.rw-market__month time: that value's month (datetime 2026-10, text "October 2026")
.rw-market__change: for usd and usd_per_sqft only: the change from the same month a year earlier, as "Up 4.1% from a year earlier" or "Down 5.0% from a year earlier"; the modifier is --up, --down or --flat. Leave it out when that month has no value
.rw-market__source: "Based on listings in {board names from meta.mls}." then "Data last updated" and data.asOf
Every data-rw-* attribute is a hook for ruuster-idx.js; see ../HOOKS.md.
-->
<section class="rw-recipes rw-market" aria-label="Market numbers">
<ul class="rw-market__tiles">
<li class="rw-market__tile" data-measure="medianSoldPrice">
<p class="rw-market__label">Median sold price</p>
<p class="rw-market__value">$416,400</p>
<p class="rw-market__month"><time dateTime="2026-10">October 2026</time></p>
<p class="rw-market__change rw-market__change--up">Up 4.1% from a year earlier</p>
</li>
<li class="rw-market__tile" data-measure="medianPricePerSqft">
<p class="rw-market__label">Median price per square foot</p>
<p class="rw-market__value">$190 per sq ft</p>
<p class="rw-market__month"><time dateTime="2026-10">October 2026</time></p>
<p class="rw-market__change rw-market__change--down">Down 5.0% from a year earlier</p>
</li>
<li class="rw-market__tile" data-measure="medianDaysOnMarket">
<p class="rw-market__label">Median days on market</p>
<p class="rw-market__value">21 days</p>
<p class="rw-market__month"><time dateTime="2026-10">October 2026</time></p>
</li>
</ul>
<p class="rw-market__source">Based on listings in First MLS. Data last updated <time dateTime="2026-11-04T15:00:00Z">November 4, 2026 at 3:00 PM UTC</time>.</p>
</section>
| Element | Filled from |
|---|---|
.rw-market__tile (up to four) |
data.measures of GET /v1/market, in this order: medianSoldPrice, medianPricePerSqft, medianDaysOnMarket, monthsOfSupply; a measure with no value is skipped and the next of medianListPrice, activeInventory, newListings fills its place. data-measure is the measure's name |
.rw-market__label |
the measure's label, for example "Median sold price" |
.rw-market__value |
the latest series value with a number, in its unit: usd as $416,400; usd_per_sqft as "$190 per sq ft"; days as "21 days"; months as "2.4 months" |
.rw-market__month time |
that value's month (datetime 2026-10, text "October 2026") |
.rw-market__change |
for usd and usd_per_sqft only: the change from the same month a year earlier, as "Up 4.1% from a year earlier" or "Down 5.0% from a year earlier"; the modifier is --up, --down or --flat. Leave it out when that month has no value |
.rw-market__source |
"Based on listings in {board names from meta.mls}." then "Data last updated" and data.asOf |
Search box
The search box asks GET /v1/suggest from the browser, at the address in data-rw-base-url: your
listings route (/api/idx), or https://idx.ruuster.com/v1 on a page builder site. Delete the
data-rw-key attribute: the page carries no key. If it ever holds a secret key, the script sends
nothing.
packages/ruuster-idx-recipes/static/html/search-box.html
<!--
Location search box.
From the React component SearchBox. Generated by npm run idx:recipes-static from @ruuster/idx-recipes. Do not edit it by hand.
Fill each value from:
form[action]: your search page's path; a picked place goes to {action}?where={the row's where as JSON}
form[data-rw-base-url]: your own route made with @ruuster/idx/route, for example /api/idx (it adds your secret key on your server). On a site with no server, leave it out: the browser calls https://idx.ruuster.com/v1 with no key, from your approved website address
form[data-rw-groups]: optional: the suggest groups, comma separated, for example city,zip,neighborhood
form[data-rw-min-chars] and [data-rw-debounce-ms]: 3 and 300, or your own values
.rw-search__input[placeholder]: your placeholder, or the default shown here
id, for, aria-controls: any values that are unique on the page; keep the label's for, the input's aria-controls and the listbox's id matching
Every data-rw-* attribute is a hook for ruuster-idx.js; see ../HOOKS.md.
-->
<form class="rw-recipes rw-search" role="search" action="/search" method="get" data-rw-search="" data-rw-base-url="/api/idx" data-rw-min-chars="3" data-rw-debounce-ms="300">
<label class="rw-visually-hidden" for="search-box-1-input">Search by city, ZIP code, neighborhood or address</label>
<div class="rw-search__box">
<svg class="rw-search__icon" viewBox="0 0 24 24" width="20" height="20" aria-hidden="true" focusable="false"><circle cx="11" cy="11" r="7" fill="none" stroke="currentColor" stroke-width="2"></circle><path d="M20 20l-4-4" stroke="currentColor" stroke-width="2" stroke-linecap="round"></path></svg>
<input id="search-box-1-input" class="rw-search__input" type="text" role="combobox" autoComplete="off" spellcheck="false" aria-autocomplete="list" aria-expanded="false" aria-controls="search-box-1-list" placeholder="City, address or ZIP code" data-rw-search-input="" value=""/>
</div>
<div id="search-box-1-list" role="listbox" aria-label="Search by city, ZIP code, neighborhood or address" class="rw-search__menu" hidden="" data-rw-search-list=""></div>
<p class="rw-visually-hidden" role="status" aria-live="polite" data-rw-search-status=""></p>
</form>
| Element | Filled from |
|---|---|
form[action] |
your search page's path; a picked place goes to {action}?where={the row's where as JSON} |
form[data-rw-base-url] |
your own route made with @ruuster/idx/route, for example /api/idx (it adds your secret key on your server). On a site with no server, leave it out: the browser calls https://idx.ruuster.com/v1 with no key, from your approved website address |
form[data-rw-groups] |
optional: the suggest groups, comma separated, for example city,zip,neighborhood |
form[data-rw-min-chars] and [data-rw-debounce-ms] |
3 and 300, or your own values |
.rw-search__input[placeholder] |
your placeholder, or the default shown here |
id, for, aria-controls |
any values that are unique on the page; keep the label's for, the input's aria-controls and the listbox's id matching |
Filters
packages/ruuster-idx-recipes/static/html/filters.html
<!--
Filters and sort.
From the React component Filters. Generated by npm run idx:recipes-static from @ruuster/idx-recipes. Do not edit it by hand.
Fill each value from:
form[action]: your page's own path
input[type=hidden]: the current query's where, boundariesId, zip, city, state, shape, soldPeriod and openHousePeriod, one input per value (a where object as JSON)
[name=priceMin], [name=priceMax]: the current priceMin and priceMax as value; empty when not set
[name=bedsMin], [name=bathsMin], [name=subtype], [name=type], [name=sort]: the current value of each parameter, marked with selected on its option; the first option when not set
[name=status] checkboxes: checked for each status in the current query; For sale is checked when there is none. The Sold box appears only when the query already includes closed
a.rw-button--ghost[href]: your page's path with only the hidden inputs' parameters
form[id] and the ids inside it: any value that is unique on the page; keep each label's for matching its control's id
Every data-rw-* attribute is a hook for ruuster-idx.js; see ../HOOKS.md.
-->
<form class="rw-recipes rw-filters" method="get" action="/search" id="rw-filters-1g3123o" aria-label="Filter homes" data-rw-filters="">
<input type="hidden" name="city" value="Powder Springs"/>
<input type="hidden" name="state" value="GA"/>
<div class="rw-filters__row">
<div class="rw-field rw-field--price">
<label class="rw-field__label" for="rw-filters-1g3123o-pmin">Minimum price</label>
<input class="rw-input" id="rw-filters-1g3123o-pmin" name="priceMin" type="number" inputMode="numeric" min="0" step="1000" placeholder="Any price" value="300000"/>
<label class="rw-field__label" for="rw-filters-1g3123o-pmax">Maximum price</label>
<input class="rw-input" id="rw-filters-1g3123o-pmax" name="priceMax" type="number" inputMode="numeric" min="0" step="1000" placeholder="Any price" value=""/>
</div>
<div class="rw-field">
<label class="rw-field__label" for="rw-filters-1g3123o-beds">Bedrooms</label>
<select class="rw-select" id="rw-filters-1g3123o-beds" name="bedsMin">
<option value="">Any number</option>
<option value="1">1 or more</option>
<option value="2">2 or more</option>
<option value="3" selected="">3 or more</option>
<option value="4">4 or more</option>
<option value="5">5 or more</option>
<option value="6">6 or more</option>
</select>
</div>
<div class="rw-field">
<label class="rw-field__label" for="rw-filters-1g3123o-baths">Bathrooms</label>
<select class="rw-select" id="rw-filters-1g3123o-baths" name="bathsMin">
<option value="" selected="">Any number</option>
<option value="1">1 or more</option>
<option value="2">2 or more</option>
<option value="3">3 or more</option>
<option value="4">4 or more</option>
<option value="5">5 or more</option>
</select>
</div>
<div class="rw-field">
<label class="rw-field__label" for="rw-filters-1g3123o-subtype">Home type</label>
<select class="rw-select" id="rw-filters-1g3123o-subtype" name="subtype">
<option value="" selected="">Any home type</option>
<option value="house">House</option>
<option value="condo">Condo</option>
<option value="townhome">Townhome</option>
<option value="co-op">Co-op</option>
</select>
</div>
<div class="rw-field">
<label class="rw-field__label" for="rw-filters-1g3123o-type">Property type</label>
<select class="rw-select" id="rw-filters-1g3123o-type" name="type">
<option value="" selected="">Any property type</option>
<option value="ResidentialIncome">Multi-family</option>
<option value="ManufacturedInPark">Manufactured home</option>
<option value="Land">Land</option>
<option value="Farm">Farm</option>
</select>
</div>
<div class="rw-field">
<label class="rw-field__label" for="rw-filters-1g3123o-sort">Sort by</label>
<select class="rw-select" id="rw-filters-1g3123o-sort" name="sort">
<option value="">Newest listings</option>
<option value="price_desc" selected="">Price, high to low</option>
<option value="price_asc">Price, low to high</option>
<option value="beds_desc">Most bedrooms</option>
<option value="baths_desc">Most bathrooms</option>
<option value="sqft_desc">Largest homes</option>
<option value="lot_desc">Largest lots</option>
<option value="price_reduced">Recently reduced</option>
<option value="oldest">Oldest listings</option>
</select>
</div>
</div>
<fieldset class="rw-field rw-field--status">
<legend class="rw-field__label">Status</legend>
<label class="rw-check">
<input type="checkbox" name="status" checked="" value="active"/>
<span>For sale</span>
</label>
<label class="rw-check">
<input type="checkbox" name="status" value="coming_soon"/>
<span>Coming soon</span>
</label>
<label class="rw-check">
<input type="checkbox" name="status" value="pending"/>
<span>Pending</span>
</label>
<label class="rw-check">
<input type="checkbox" name="status" value="under_contract"/>
<span>Under contract</span>
</label>
</fieldset>
<div class="rw-filters__actions">
<a class="rw-button rw-button--ghost" href="/search?city=Powder+Springs&state=GA">Reset filters</a>
<button class="rw-button" type="submit">Show results</button>
</div>
</form>
| Element | Filled from |
|---|---|
form[action] |
your page's own path |
input[type=hidden] |
the current query's where, boundariesId, zip, city, state, shape, soldPeriod and openHousePeriod, one input per value (a where object as JSON) |
[name=priceMin], [name=priceMax] |
the current priceMin and priceMax as value; empty when not set |
[name=bedsMin], [name=bathsMin], [name=subtype], [name=type], [name=sort] |
the current value of each parameter, marked with selected on its option; the first option when not set |
[name=status] checkboxes |
checked for each status in the current query; For sale is checked when there is none. The Sold box appears only when the query already includes closed |
a.rw-button--ghost[href] |
your page's path with only the hidden inputs' parameters |
form[id] and the ids inside it |
any value that is unique on the page; keep each label's for matching its control's id |
More filters, with every filter your account offers
GET /v1/filters lists every filter your account can use. The drawer below prints one row per
filter after the basic controls: the filters of your own Ruuster filter panel first, then every
other filter under "Advanced filters". Build the rows on your server from the list, in the shape
this file shows, and the script loads a list's choices when the visitor opens it.
packages/ruuster-idx-recipes/static/html/filters-drawer-dynamic.html
<!--
The More filters drawer built from the account's filter list.
From the React component FiltersDrawer with filters. Generated by npm run idx:recipes-static from @ruuster/idx-recipes. Do not edit it by hand.
Fill each value from:
form[data-rw-filters-apply]: "submit"
form[data-rw-base-url]: your own route made with @ruuster/idx/route, for example /api/idx (it adds your secret key on your server). On a site with no server, leave it out: the browser calls https://idx.ruuster.com/v1 with no key, from your approved website address
.rw-field--price: the basic controls of filters-drawer.html come first, every one of them; this sample prints only the price row so the rows from the list are in view
.rw-filters__dynamic: one row per filter of GET /v1/filters `data`, in its order: `group` "based" first, then "advanced" inside details[data-rw-filters-section]. RuusterIdx.filterRowNodes builds the same rows from the list
[data-rw-filter]: the filter's key; the control follows its `type` (HOOKS.md lists each one)
input, select with a name: the parameter GET /v1/listings takes: f.{key}, f.{key}Min, f.{key}Max, f.{key}_o, or the filter's own name (sqftMin, yearMin, hoaMin, lotSqftMin and their Max, newConstruction, priceReduction, keywords); the value is the current one from the page's URL
details[data-rw-pick] [data-rw-pick-list]: one checkbox per choice of GET /v1/filters/options `data.options` when you have them; otherwise the values already in the URL, and the script loads the rest when the list opens
input[type=hidden]: the kept location parameters, and any filter in the URL that has no control in the form
Every data-rw-* attribute is a hook for ruuster-idx.js; see ../HOOKS.md.
-->
<div class="rw-recipes rw-morefilters-wrap" data-rw-drawer-root=""><button type="button" class="rw-morefilters" aria-haspopup="dialog" aria-expanded="false" aria-controls="rw-filters-1g3123o-drawer" data-rw-drawer-open="rw-filters-1g3123o-drawer"><svg class="rw-icon rw-morefilters__icon" viewBox="0 0 20 20" width="24" height="24" data-rw-icon="tuning-black" focusable="false" aria-hidden="true"><g fill="none"><path d="M7.7085 11.6654C9.08921 11.6654 10.2085 12.7847 10.2085 14.1654C10.2085 15.5461 9.08921 16.6654 7.7085 16.6654C6.32778 16.6654 5.2085 15.5461 5.2085 14.1654C5.2085 12.7847 6.32778 11.6654 7.7085 11.6654Z" fill="currentColor"/><path d="M11.8752 3.33203C10.4945 3.33203 9.37516 4.45132 9.37516 5.83203C9.37516 7.21274 10.4945 8.33203 11.8752 8.33203C13.2559 8.33203 14.3752 7.21274 14.3752 5.83203C14.3752 4.45132 13.2559 3.33203 11.8752 3.33203Z" fill="currentColor"/><path d="M7.29183 5.17247C7.63701 5.17247 7.91683 5.45229 7.91683 5.79747C7.91683 6.14264 7.63701 6.42247 7.29183 6.42247L1.4585 6.42246C1.11332 6.42246 0.833496 6.14264 0.833496 5.79746C0.833496 5.45229 1.11332 5.17247 1.4585 5.17247H7.29183Z" fill="currentColor"/><path d="M12.2918 13.5058C11.9467 13.5058 11.6668 13.7856 11.6668 14.1308C11.6668 14.476 11.9467 14.7558 12.2918 14.7558H18.1252C18.4703 14.7558 18.7502 14.476 18.7502 14.1308C18.7502 13.7856 18.4703 13.5058 18.1252 13.5058H12.2918Z" fill="currentColor"/><path d="M0.833496 14.1308C0.833496 13.7856 1.11332 13.5058 1.4585 13.5058H3.12516C3.47034 13.5058 3.75016 13.7856 3.75016 14.1308C3.75016 14.476 3.47034 14.7558 3.12516 14.7558H1.4585C1.11332 14.7558 0.833496 14.476 0.833496 14.1308Z" fill="currentColor"/><path d="M18.1252 5.17247C18.4703 5.17247 18.7502 5.45229 18.7502 5.79747C18.7502 6.14264 18.4703 6.42247 18.1252 6.42247L16.4585 6.42246C16.1133 6.42246 15.8335 6.14264 15.8335 5.79746C15.8335 5.45229 16.1133 5.17247 16.4585 5.17247H18.1252Z" fill="currentColor"/></g></svg><span class="rw-morefilters__label">More filters (5)</span><span class="rw-morefilters__badge" aria-hidden="true">5</span></button><dialog class="rw-drawer" id="rw-filters-1g3123o-drawer" aria-labelledby="rw-filters-1g3123o-drawer-title" data-rw-drawer=""><div class="rw-drawer__header"><h2 class="rw-drawer__title" id="rw-filters-1g3123o-drawer-title">More filters</h2><button type="button" class="rw-drawer__close" aria-label="Close the filters" data-rw-drawer-close=""><svg class="rw-icon" viewBox="0 0 24 24" width="24" height="24" data-rw-icon="drawer-header-close" focusable="false" aria-hidden="true"><g fill="none"><path d="M18 18L6 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M18 6L6 18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></g></svg></button></div><div class="rw-drawer__body"><form class="rw-recipes rw-filters" method="get" action="/search" id="rw-filters-1g3123o-drawer-form" aria-label="Filter homes" data-rw-filters="" data-rw-filters-apply="submit" data-rw-base-url="/api/idx"><input type="hidden" name="city" value="Powder Springs"/><input type="hidden" name="state" value="GA"/><div class="rw-filters__row"><div class="rw-field rw-field--price"><label class="rw-field__label" for="rw-filters-1g3123o-drawer-form-pmin">Minimum price</label><input class="rw-input" id="rw-filters-1g3123o-drawer-form-pmin" name="priceMin" type="number" inputMode="numeric" min="0" step="1000" placeholder="Any price" value="300000"/><label class="rw-field__label" for="rw-filters-1g3123o-drawer-form-pmax">Maximum price</label><input class="rw-input" id="rw-filters-1g3123o-drawer-form-pmax" name="priceMax" type="number" inputMode="numeric" min="0" step="1000" placeholder="Any price" value=""/></div></div><div class="rw-filters__dynamic" data-rw-filters-dynamic=""><fieldset class="rw-field rw-field--pick" data-rw-filter="highSchool" data-rw-filter-label="schools"><legend class="rw-field__label">Schools</legend><details class="rw-pick" data-rw-pick="multi" data-rw-pick-key="highSchool"><summary class="rw-pick__summary" data-rw-pick-summary="">Select options</summary><div class="rw-pick__panel"><input class="rw-input rw-pick__narrow" type="search" placeholder="Type to narrow the list" aria-label="Schools: type to narrow the list" autoComplete="off" data-rw-pick-narrow=""/><div class="rw-pick__list" data-rw-pick-list=""></div><input class="rw-input rw-pick__free" type="text" name="f.highSchool" placeholder="Type a value" aria-label="Schools: type a value" autoComplete="off" data-rw-pick-free="" data-rw-val="highSchool"/><p class="rw-pick__status" role="status" data-rw-pick-status=""></p></div></details><details class="rw-field__more"><summary class="rw-field__more-toggle">More options</summary><div class="rw-field__more-panel"><label class="rw-field__label" for="rw-filters-1g3123o-drawer-form-f-highSchool-o">How to match</label><select class="rw-select" id="rw-filters-1g3123o-drawer-form-f-highSchool-o" name="f.highSchool_o" data-rw-op="highSchool"><option value="" selected="">The usual way</option><option value="and">Homes with all of these</option><option value="or">Homes with any of these</option><option value="not">Homes with none of these</option></select></div></details></fieldset><div class="rw-field" data-rw-filter="mainLevelPrimary" data-rw-filter-label="primary bedroom on main"><label class="rw-field__label" for="rw-filters-1g3123o-drawer-form-f-mainLevelPrimary">Primary Bedroom on Main</label><select class="rw-select" id="rw-filters-1g3123o-drawer-form-f-mainLevelPrimary" name="f.mainLevelPrimary" data-rw-val="mainLevelPrimary"><option value="" selected="">Any</option><option value="true">Yes</option><option value="false">No</option></select></div><fieldset class="rw-field rw-field--pick" data-rw-filter="basement" data-rw-filter-label="basement"><legend class="rw-field__label">Basement</legend><details class="rw-pick" data-rw-pick="multi" data-rw-pick-key="basement" data-rw-pick-loaded=""><summary class="rw-pick__summary" data-rw-pick-summary="">2 selected</summary><div class="rw-pick__panel"><div class="rw-pick__list" data-rw-pick-list=""><label class="rw-check"><input type="checkbox" name="f.basement" data-rw-val="basement" checked="" value="Finished"/><span>Finished (412)</span></label><label class="rw-check"><input type="checkbox" name="f.basement" data-rw-val="basement" checked="" value="Daylight"/><span>Daylight (268)</span></label><label class="rw-check"><input type="checkbox" name="f.basement" data-rw-val="basement" value="Unfinished"/><span>Unfinished (191)</span></label><label class="rw-check"><input type="checkbox" name="f.basement" data-rw-val="basement" value="Crawl Space"/><span>Crawl Space (144)</span></label><label class="rw-check"><input type="checkbox" name="f.basement" data-rw-val="basement" value="None"/><span>None (97)</span></label></div><p class="rw-pick__status" role="status" data-rw-pick-status=""></p></div></details><details class="rw-field__more"><summary class="rw-field__more-toggle">More options</summary><div class="rw-field__more-panel"><label class="rw-field__label" for="rw-filters-1g3123o-drawer-form-f-basement-o">How to match</label><select class="rw-select" id="rw-filters-1g3123o-drawer-form-f-basement-o" name="f.basement_o" data-rw-op="basement"><option value="" selected="">The usual way</option><option value="and">Homes with all of these</option><option value="or">Homes with any of these</option><option value="not">Homes with none of these</option></select></div></details></fieldset><fieldset class="rw-field rw-field--range" data-rw-filter="yearBuilt" data-rw-filter-label="year built"><legend class="rw-field__label">Year Built</legend><div class="rw-range"><input class="rw-input" id="rw-filters-1g3123o-drawer-form-f-yearBuilt-min" name="yearMin" type="number" inputMode="decimal" step="any" placeholder="No min" aria-label="Year Built, minimum" data-rw-val="yearBuilt" value="1990"/><span class="rw-range__sep" aria-hidden="true"></span><input class="rw-input" id="rw-filters-1g3123o-drawer-form-f-yearBuilt-max" name="yearMax" type="number" inputMode="decimal" step="any" placeholder="No max" aria-label="Year Built, maximum" data-rw-val="yearBuilt" value=""/></div></fieldset><fieldset class="rw-field rw-field--range" data-rw-filter="square" data-rw-filter-label="square feet"><legend class="rw-field__label">Square Feet</legend><div class="rw-range"><input class="rw-input" id="rw-filters-1g3123o-drawer-form-f-square-min" name="sqftMin" type="number" inputMode="decimal" step="any" placeholder="No min" aria-label="Square Feet, minimum" data-rw-val="square" value=""/><span class="rw-range__sep" aria-hidden="true"></span><input class="rw-input" id="rw-filters-1g3123o-drawer-form-f-square-max" name="sqftMax" type="number" inputMode="decimal" step="any" placeholder="No max" aria-label="Square Feet, maximum" data-rw-val="square" value=""/></div></fieldset><details class="rw-filters__section" data-rw-filters-section="advanced" open=""><summary class="rw-filters__section-title">Advanced filters (1)</summary><div class="rw-field rw-filters__find"><input class="rw-input" type="search" placeholder="Find a filter" aria-label="Find a filter" autoComplete="off" data-rw-filters-find=""/></div><fieldset class="rw-field rw-field--range" data-rw-filter="garageSpaces" data-rw-filter-label="garage spaces"><legend class="rw-field__label">Garage Spaces</legend><div class="rw-range"><input class="rw-input" id="rw-filters-1g3123o-drawer-form-f-garageSpaces-min" name="f.garageSpacesMin" type="number" inputMode="decimal" step="any" placeholder="No min" aria-label="Garage Spaces, minimum" data-rw-val="garageSpaces" value=""/><span class="rw-range__sep" aria-hidden="true"></span><input class="rw-input" id="rw-filters-1g3123o-drawer-form-f-garageSpaces-max" name="f.garageSpacesMax" type="number" inputMode="decimal" step="any" placeholder="No max" aria-label="Garage Spaces, maximum" data-rw-val="garageSpaces" value=""/></div><details class="rw-field__more"><summary class="rw-field__more-toggle">More options</summary><div class="rw-field__more-panel"><label class="rw-check"><input type="checkbox" name="f.garageSpaces_o" data-rw-op="garageSpaces" value="zbyes"/><span>Also show homes with no value for this</span></label></div></details></fieldset><div class="rw-field" data-rw-filter="hasVirtualTour" data-rw-filter-label="virtual tour"><label class="rw-field__label" for="rw-filters-1g3123o-drawer-form-f-hasVirtualTour">Virtual Tour</label><select class="rw-select" id="rw-filters-1g3123o-drawer-form-f-hasVirtualTour" name="f.hasVirtualTour" data-rw-val="hasVirtualTour"><option value="" selected="">Any</option><option value="true">Yes</option><option value="false">No</option></select></div><fieldset class="rw-field rw-field--pick" data-rw-filter="architecturalStyle" data-rw-filter-label="architectural style"><legend class="rw-field__label">Architectural Style</legend><details class="rw-pick" data-rw-pick="multi" data-rw-pick-key="architecturalStyle"><summary class="rw-pick__summary" data-rw-pick-summary="">Select options</summary><div class="rw-pick__panel"><input class="rw-input rw-pick__narrow" type="search" placeholder="Type to narrow the list" aria-label="Architectural Style: type to narrow the list" autoComplete="off" data-rw-pick-narrow=""/><div class="rw-pick__list" data-rw-pick-list=""></div><input class="rw-input rw-pick__free" type="text" name="f.architecturalStyle" placeholder="Type a value" aria-label="Architectural Style: type a value" autoComplete="off" data-rw-pick-free="" data-rw-val="architecturalStyle"/><p class="rw-pick__status" role="status" data-rw-pick-status=""></p></div></details><details class="rw-field__more"><summary class="rw-field__more-toggle">More options</summary><div class="rw-field__more-panel"><label class="rw-field__label" for="rw-filters-1g3123o-drawer-form-f-architecturalStyle-o">How to match</label><select class="rw-select" id="rw-filters-1g3123o-drawer-form-f-architecturalStyle-o" name="f.architecturalStyle_o" data-rw-op="architecturalStyle"><option value="" selected="">The usual way</option><option value="and">Homes with all of these</option><option value="or">Homes with any of these</option><option value="not">Homes with none of these</option></select></div></details></fieldset><div class="rw-field" data-rw-filter="waterfront" data-rw-filter-label="waterfront"><label class="rw-field__label" for="rw-filters-1g3123o-drawer-form-f-waterfront">Waterfront</label><select class="rw-select" id="rw-filters-1g3123o-drawer-form-f-waterfront" name="f.waterfront" data-rw-val="waterfront"><option value="">Any</option><option value="true" selected="">Yes</option><option value="false">No</option></select></div><div class="rw-field" data-rw-filter="levels" data-rw-filter-label="levels"><label class="rw-field__label" for="rw-filters-1g3123o-drawer-form-f-levels">Levels</label><input class="rw-input" id="rw-filters-1g3123o-drawer-form-f-levels" name="f.levels" type="text" placeholder="Type a value" list="rw-filters-1g3123o-drawer-form-f-levels-list" autoComplete="off" data-rw-pick="single" data-rw-pick-key="levels" data-rw-val="levels" value=""/><datalist id="rw-filters-1g3123o-drawer-form-f-levels-list"></datalist></div><div class="rw-field" data-rw-filter="listedOn" data-rw-filter-label="listed"><label class="rw-field__label" for="rw-filters-1g3123o-drawer-form-f-listedOn">Listed</label><select class="rw-select" id="rw-filters-1g3123o-drawer-form-f-listedOn" name="f.listedOn" data-rw-val="listedOn"><option value="" selected="">Any time</option><option value="1">In the past day</option><option value="7">In the past 7 days</option><option value="14">In the past 14 days</option><option value="30">In the past 30 days</option><option value="90">In the past 90 days</option></select></div><div class="rw-field" data-rw-filter="poolPrivate" data-rw-filter-label="private pool"><label class="rw-field__label" for="rw-filters-1g3123o-drawer-form-f-poolPrivate">Private Pool</label><select class="rw-select" id="rw-filters-1g3123o-drawer-form-f-poolPrivate" name="f.poolPrivate" data-rw-val="poolPrivate"><option value="" selected="">Any</option><option value="true">Yes</option><option value="false">No</option></select></div><fieldset class="rw-field rw-field--range" data-rw-filter="fireplacesTotal" data-rw-filter-label="fireplaces"><legend class="rw-field__label">Fireplaces</legend><div class="rw-range"><input class="rw-input" id="rw-filters-1g3123o-drawer-form-f-fireplacesTotal-min" name="f.fireplacesTotalMin" type="number" inputMode="decimal" step="any" placeholder="No min" aria-label="Fireplaces, minimum" data-rw-val="fireplacesTotal" value=""/><span class="rw-range__sep" aria-hidden="true"></span><input class="rw-input" id="rw-filters-1g3123o-drawer-form-f-fireplacesTotal-max" name="f.fireplacesTotalMax" type="number" inputMode="decimal" step="any" placeholder="No max" aria-label="Fireplaces, maximum" data-rw-val="fireplacesTotal" value=""/></div></fieldset><fieldset class="rw-field rw-field--pick" data-rw-filter="heating" data-rw-filter-label="heating"><legend class="rw-field__label">Heating</legend><details class="rw-pick" data-rw-pick="multi" data-rw-pick-key="heating"><summary class="rw-pick__summary" data-rw-pick-summary="">Select options</summary><div class="rw-pick__panel"><input class="rw-input rw-pick__narrow" type="search" placeholder="Type to narrow the list" aria-label="Heating: type to narrow the list" autoComplete="off" data-rw-pick-narrow=""/><div class="rw-pick__list" data-rw-pick-list=""></div><input class="rw-input rw-pick__free" type="text" name="f.heating" placeholder="Type a value" aria-label="Heating: type a value" autoComplete="off" data-rw-pick-free="" data-rw-val="heating"/><p class="rw-pick__status" role="status" data-rw-pick-status=""></p></div></details><details class="rw-field__more"><summary class="rw-field__more-toggle">More options</summary><div class="rw-field__more-panel"><label class="rw-field__label" for="rw-filters-1g3123o-drawer-form-f-heating-o">How to match</label><select class="rw-select" id="rw-filters-1g3123o-drawer-form-f-heating-o" name="f.heating_o" data-rw-op="heating"><option value="" selected="">The usual way</option><option value="and">Homes with all of these</option><option value="or">Homes with any of these</option><option value="not">Homes with none of these</option></select></div></details></fieldset><fieldset class="rw-field rw-field--pick" data-rw-filter="cooling" data-rw-filter-label="cooling"><legend class="rw-field__label">Cooling</legend><details class="rw-pick" data-rw-pick="multi" data-rw-pick-key="cooling"><summary class="rw-pick__summary" data-rw-pick-summary="">Select options</summary><div class="rw-pick__panel"><input class="rw-input rw-pick__narrow" type="search" placeholder="Type to narrow the list" aria-label="Cooling: type to narrow the list" autoComplete="off" data-rw-pick-narrow=""/><div class="rw-pick__list" data-rw-pick-list=""></div><input class="rw-input rw-pick__free" type="text" name="f.cooling" placeholder="Type a value" aria-label="Cooling: type a value" autoComplete="off" data-rw-pick-free="" data-rw-val="cooling"/><p class="rw-pick__status" role="status" data-rw-pick-status=""></p></div></details><details class="rw-field__more"><summary class="rw-field__more-toggle">More options</summary><div class="rw-field__more-panel"><label class="rw-field__label" for="rw-filters-1g3123o-drawer-form-f-cooling-o">How to match</label><select class="rw-select" id="rw-filters-1g3123o-drawer-form-f-cooling-o" name="f.cooling_o" data-rw-op="cooling"><option value="" selected="">The usual way</option><option value="and">Homes with all of these</option><option value="or">Homes with any of these</option><option value="not">Homes with none of these</option></select></div></details></fieldset><fieldset class="rw-field rw-field--pick" data-rw-filter="flooring" data-rw-filter-label="flooring"><legend class="rw-field__label">Flooring</legend><details class="rw-pick" data-rw-pick="multi" data-rw-pick-key="flooring"><summary class="rw-pick__summary" data-rw-pick-summary="">Select options</summary><div class="rw-pick__panel"><input class="rw-input rw-pick__narrow" type="search" placeholder="Type to narrow the list" aria-label="Flooring: type to narrow the list" autoComplete="off" data-rw-pick-narrow=""/><div class="rw-pick__list" data-rw-pick-list=""></div><input class="rw-input rw-pick__free" type="text" name="f.flooring" placeholder="Type a value" aria-label="Flooring: type a value" autoComplete="off" data-rw-pick-free="" data-rw-val="flooring"/><p class="rw-pick__status" role="status" data-rw-pick-status=""></p></div></details><details class="rw-field__more"><summary class="rw-field__more-toggle">More options</summary><div class="rw-field__more-panel"><label class="rw-field__label" for="rw-filters-1g3123o-drawer-form-f-flooring-o">How to match</label><select class="rw-select" id="rw-filters-1g3123o-drawer-form-f-flooring-o" name="f.flooring_o" data-rw-op="flooring"><option value="" selected="">The usual way</option><option value="and">Homes with all of these</option><option value="or">Homes with any of these</option><option value="not">Homes with none of these</option></select></div></details></fieldset><fieldset class="rw-field rw-field--pick" data-rw-filter="lotFeatures" data-rw-filter-label="lot features"><legend class="rw-field__label">Lot Features</legend><details class="rw-pick" data-rw-pick="multi" data-rw-pick-key="lotFeatures"><summary class="rw-pick__summary" data-rw-pick-summary="">Select options</summary><div class="rw-pick__panel"><input class="rw-input rw-pick__narrow" type="search" placeholder="Type to narrow the list" aria-label="Lot Features: type to narrow the list" autoComplete="off" data-rw-pick-narrow=""/><div class="rw-pick__list" data-rw-pick-list=""></div><input class="rw-input rw-pick__free" type="text" name="f.lotFeatures" placeholder="Type a value" aria-label="Lot Features: type a value" autoComplete="off" data-rw-pick-free="" data-rw-val="lotFeatures"/><p class="rw-pick__status" role="status" data-rw-pick-status=""></p></div></details><details class="rw-field__more"><summary class="rw-field__more-toggle">More options</summary><div class="rw-field__more-panel"><label class="rw-field__label" for="rw-filters-1g3123o-drawer-form-f-lotFeatures-o">How to match</label><select class="rw-select" id="rw-filters-1g3123o-drawer-form-f-lotFeatures-o" name="f.lotFeatures_o" data-rw-op="lotFeatures"><option value="" selected="">The usual way</option><option value="and">Homes with all of these</option><option value="or">Homes with any of these</option><option value="not">Homes with none of these</option></select></div></details></fieldset><div class="rw-field" data-rw-filter="seniorCommunity" data-rw-filter-label="senior community"><label class="rw-field__label" for="rw-filters-1g3123o-drawer-form-f-seniorCommunity">Senior Community</label><select class="rw-select" id="rw-filters-1g3123o-drawer-form-f-seniorCommunity" name="f.seniorCommunity" data-rw-val="seniorCommunity"><option value="" selected="">Any</option><option value="true">Yes</option><option value="false">No</option></select></div></details></div></form></div><div class="rw-drawer__footer"><a class="rw-drawer__reset" href="/search?city=Powder+Springs&state=GA" data-rw-drawer-reset="">Reset filters</a><button class="rw-button rw-drawer__show" type="submit" form="rw-filters-1g3123o-drawer-form">Show results</button></div></dialog></div>
| Element | Filled from |
|---|---|
form[data-rw-filters-apply] |
"submit" |
form[data-rw-base-url] |
your own route made with @ruuster/idx/route, for example /api/idx (it adds your secret key on your server). On a site with no server, leave it out: the browser calls https://idx.ruuster.com/v1 with no key, from your approved website address |
.rw-field--price |
the basic controls of filters-drawer.html come first, every one of them; this sample prints only the price row so the rows from the list are in view |
.rw-filters__dynamic |
one row per filter of GET /v1/filters data, in its order: group "based" first, then "advanced" inside details[data-rw-filters-section]. RuusterIdx.filterRowNodes builds the same rows from the list |
[data-rw-filter] |
the filter's key; the control follows its type (HOOKS.md lists each one) |
input, select with a name |
the parameter GET /v1/listings takes: f.{key}, f.{key}Min, f.{key}Max, f.{key}_o, or the filter's own name (sqftMin, yearMin, hoaMin, lotSqftMin and their Max, newConstruction, priceReduction, keywords); the value is the current one from the page's URL |
details[data-rw-pick] [data-rw-pick-list] |
one checkbox per choice of GET /v1/filters/options data.options when you have them; otherwise the values already in the URL, and the script loads the rest when the list opens |
input[type=hidden] |
the kept location parameters, and any filter in the URL that has no control in the form |
On a page with no server, let the script build the rows. Put one empty element inside your filters form, with no key on the form. When the page loads, the script reads your filter list and fills the element, with each filter set to the value in the page's own URL.
packages/ruuster-idx-recipes/static/html/filters-auto.html
<!--
A filters form that builds its rows in the browser, for a page with no server.
From the React component none (a plain form the script fills). Generated by npm run idx:recipes-static from @ruuster/idx-recipes. Do not edit it by hand.
Fill each value from:
form[action], form[id]: your search page's path, and any id that is unique on the page (the rows' ids start with it)
form[data-rw-base-url]: your own route made with @ruuster/idx/route, for example /api/idx (it adds your secret key on your server). On a site with no server, leave it out: the browser calls https://idx.ruuster.com/v1 with no key, from your approved website address
[data-rw-filters-auto]: leave it empty: the script fills it with one row per filter of GET /v1/filters, set to the values in the page's URL
a[href]: your search page's path with only the location parameters
Every data-rw-* attribute is a hook for ruuster-idx.js; see ../HOOKS.md.
-->
<form class="rw-recipes rw-filters" method="get" action="/search" id="rw-filters-auto" aria-label="Filter homes" data-rw-filters="" data-rw-base-url="/api/idx">
<div class="rw-filters__dynamic" data-rw-filters-dynamic="" data-rw-filters-auto="" data-rw-filters-sections="based,advanced" data-rw-filters-show="" data-rw-filters-hide=""></div>
<div class="rw-filters__actions">
<a class="rw-button rw-button--ghost" href="/search">Reset filters</a>
<button class="rw-button" type="submit">Show results</button>
</div>
</form>
| Element | Filled from |
|---|---|
form[action], form[id] |
your search page's path, and any id that is unique on the page (the rows' ids start with it) |
form[data-rw-base-url] |
your own route made with @ruuster/idx/route, for example /api/idx (it adds your secret key on your server). On a site with no server, leave it out: the browser calls https://idx.ruuster.com/v1 with no key, from your approved website address |
[data-rw-filters-auto] |
leave it empty: the script fills it with one row per filter of GET /v1/filters, set to the values in the page's URL |
a[href] |
your search page's path with only the location parameters |
data-rw-filters-sections, data-rw-filters-show and data-rw-filters-hide on that element
make a smaller panel: data-rw-filters-sections="based" prints only your panel's own filters.
HOOKS.md lists the control each filter type gets and every attribute.
Tour, contact and registration forms
Each form posts to your own server route, which sends the lead to your CRM with your own CRM key. Registration, tour and contact forms shows the JSON the script sends and the route that receives it.
packages/ruuster-idx-recipes/static/html/tour-form.html
<!--
Tour request form for a listing.
From the React component TourForm. Generated by npm run idx:recipes-static from @ruuster/idx-recipes. Do not edit it by hand.
Fill each value from:
form[action]: your own server route that receives the lead and sends it to your CRM
form[data-rw-success]: the text shown after a successful send (yours, or the default shown here)
[data-rw-consent-text]: your consent wording for being contacted
label with name="consentAlerts": your wording for listing alerts; leave the whole label out when you have none
.rw-button[data-rw-submit] text: your button text, or the default shown here
id and for attributes: any values that are unique on the page; keep each label's for, aria-labelledby and aria-describedby pointing at the same ids
form[data-rw-lead-listing]: JSON of the listing: id (listing.id), mlsNumber, url (listing.href), name (the listing name) and price (the shown price)
textarea[name=message] text: "I would like more information about {the address}.", or "I would like more information about this home." when listing.address.hidden is true
Every data-rw-* attribute is a hook for ruuster-idx.js; see ../HOOKS.md.
-->
<form class="rw-recipes rw-form rw-form--tour" method="post" action="/api/leads/tour" data-rw-lead="tour" data-rw-success="Thank you. We received your tour request and will contact you soon to confirm a time." data-rw-lead-listing="{"id":"0b6c3b52-7f0c-4a3e-9a51-6f0e2d1a0001","mlsNumber":"7400123","url":"/homes/1417-sterlingbrooke-dr-sw-powder-springs-ga-30127-0b6c3b52-7f0c-4a3e-9a51-6f0e2d1a0001","name":"1417 Sterlingbrooke Dr SW, Powder Springs, GA 30127","price":480000}">
<div class="rw-form__row">
<div class="rw-field">
<label class="rw-field__label" for="tour-form-1-first">First name</label>
<input class="rw-input" id="tour-form-1-first" name="firstName" autoComplete="given-name" required="" maxLength="80"/>
</div>
<div class="rw-field">
<label class="rw-field__label" for="tour-form-1-last">Last name</label>
<input class="rw-input" id="tour-form-1-last" name="lastName" autoComplete="family-name" required="" maxLength="80"/>
</div>
</div>
<div class="rw-field">
<label class="rw-field__label" for="tour-form-1-email">Email</label>
<input class="rw-input" id="tour-form-1-email" name="email" type="email" autoComplete="email" required="" maxLength="254"/>
</div>
<div class="rw-field">
<label class="rw-field__label" for="tour-form-1-phone">Phone (optional)</label>
<input class="rw-input" id="tour-form-1-phone" name="phone" type="tel" autoComplete="tel" maxLength="40"/>
</div>
<div class="rw-form__row">
<div class="rw-field">
<label class="rw-field__label" for="tour-form-1-date">Preferred tour date</label>
<input class="rw-input" id="tour-form-1-date" name="tourDate" type="date"/>
</div>
<div class="rw-field">
<label class="rw-field__label" for="tour-form-1-time">Preferred time of day</label>
<select class="rw-select" id="tour-form-1-time" name="tourTime">
<option value="" selected="">Any time</option>
<option value="morning">Morning (8 AM to 12 PM)</option>
<option value="afternoon">Afternoon (12 PM to 4 PM)</option>
<option value="evening">Evening (4 PM to 8 PM)</option>
</select>
</div>
</div>
<div class="rw-field">
<label class="rw-field__label" for="tour-form-1-message">Message (optional)</label>
<textarea class="rw-input rw-textarea" id="tour-form-1-message" name="message" rows="4" maxLength="2000">I would like more information about 1417 Sterlingbrooke Dr SW, Powder Springs, GA 30127.</textarea>
</div>
<div class="rw-hp" aria-hidden="true"><label for="tour-form-1-website">Leave this field empty</label><input id="tour-form-1-website" name="website" type="text" tabindex="-1" autoComplete="off" value=""/></div>
<label class="rw-check rw-consent" for="tour-form-1-consent">
<input id="tour-form-1-consent" type="checkbox" name="consentContact" aria-labelledby="tour-form-1-consent-text" data-rw-consent="" value="yes"/>
<span id="tour-form-1-consent-text" data-rw-consent-text="">I agree that Peach Realty may contact me by phone, text or email about this request.</span>
</label>
<label class="rw-check rw-consent" for="tour-form-1-alerts">
<input id="tour-form-1-alerts" type="checkbox" name="consentAlerts" aria-labelledby="tour-form-1-alerts-text" value="yes"/>
<span id="tour-form-1-alerts-text">Email me new listings like this one. I can unsubscribe at any time.</span>
</label>
<button class="rw-button rw-button--block" type="submit" disabled="" aria-describedby="tour-form-1-needconsent" data-rw-submit="">Request a tour</button>
<p class="rw-form__hint" id="tour-form-1-needconsent" data-rw-consent-hint="">Check the box above to agree to be contacted, then send your request.</p>
<p class="rw-form__status" role="status" aria-live="polite" data-rw-form-status=""></p>
</form>
| Element | Filled from |
|---|---|
form[action] |
your own server route that receives the lead and sends it to your CRM |
form[data-rw-success] |
the text shown after a successful send (yours, or the default shown here) |
[data-rw-consent-text] |
your consent wording for being contacted |
label with name="consentAlerts" |
your wording for listing alerts; leave the whole label out when you have none |
.rw-button[data-rw-submit] text |
your button text, or the default shown here |
id and for attributes |
any values that are unique on the page; keep each label's for, aria-labelledby and aria-describedby pointing at the same ids |
form[data-rw-lead-listing] |
JSON of the listing: id (listing.id), mlsNumber, url (listing.href), name (the listing name) and price (the shown price) |
textarea[name=message] text |
"I would like more information about {the address}.", or "I would like more information about this home." when listing.address.hidden is true |
packages/ruuster-idx-recipes/static/html/contact-form.html
<!--
Contact form (no listing).
From the React component ContactForm. Generated by npm run idx:recipes-static from @ruuster/idx-recipes. Do not edit it by hand.
Fill each value from:
form[action]: your own server route that receives the lead and sends it to your CRM
form[data-rw-success]: the text shown after a successful send (yours, or the default shown here)
[data-rw-consent-text]: your consent wording for being contacted
label with name="consentAlerts": your wording for listing alerts; leave the whole label out when you have none
.rw-button[data-rw-submit] text: your button text, or the default shown here
id and for attributes: any values that are unique on the page; keep each label's for, aria-labelledby and aria-describedby pointing at the same ids
form[data-rw-lead-listing]: optional: the listing JSON as on the tour form, when the form is about a home
Every data-rw-* attribute is a hook for ruuster-idx.js; see ../HOOKS.md.
-->
<form class="rw-recipes rw-form rw-form--contact" method="post" action="/api/leads/contact" data-rw-lead="contact" data-rw-success="Thank you. We received your message and will reply soon.">
<div class="rw-form__row">
<div class="rw-field">
<label class="rw-field__label" for="contact-form-1-first">First name</label>
<input class="rw-input" id="contact-form-1-first" name="firstName" autoComplete="given-name" required="" maxLength="80"/>
</div>
<div class="rw-field">
<label class="rw-field__label" for="contact-form-1-last">Last name</label>
<input class="rw-input" id="contact-form-1-last" name="lastName" autoComplete="family-name" required="" maxLength="80"/>
</div>
</div>
<div class="rw-field">
<label class="rw-field__label" for="contact-form-1-email">Email</label>
<input class="rw-input" id="contact-form-1-email" name="email" type="email" autoComplete="email" required="" maxLength="254"/>
</div>
<div class="rw-field">
<label class="rw-field__label" for="contact-form-1-phone">Phone (optional)</label>
<input class="rw-input" id="contact-form-1-phone" name="phone" type="tel" autoComplete="tel" maxLength="40"/>
</div>
<div class="rw-field">
<label class="rw-field__label" for="contact-form-1-message">Message (optional)</label>
<textarea class="rw-input rw-textarea" id="contact-form-1-message" name="message" rows="4" maxLength="2000"></textarea>
</div>
<div class="rw-hp" aria-hidden="true"><label for="contact-form-1-website">Leave this field empty</label><input id="contact-form-1-website" name="website" type="text" tabindex="-1" autoComplete="off" value=""/></div>
<label class="rw-check rw-consent" for="contact-form-1-consent">
<input id="contact-form-1-consent" type="checkbox" name="consentContact" aria-labelledby="contact-form-1-consent-text" data-rw-consent="" value="yes"/>
<span id="contact-form-1-consent-text" data-rw-consent-text="">I agree that Peach Realty may contact me by phone, text or email about this request.</span>
</label>
<button class="rw-button rw-button--block" type="submit" disabled="" aria-describedby="contact-form-1-needconsent" data-rw-submit="">Send message</button>
<p class="rw-form__hint" id="contact-form-1-needconsent" data-rw-consent-hint="">Check the box above to agree to be contacted, then send your request.</p>
<p class="rw-form__status" role="status" aria-live="polite" data-rw-form-status=""></p>
</form>
packages/ruuster-idx-recipes/static/html/registration-form.html
<!--
Registration form for listing alerts.
From the React component RegistrationForm. Generated by npm run idx:recipes-static from @ruuster/idx-recipes. Do not edit it by hand.
Fill each value from:
form[action]: your own server route that receives the lead and sends it to your CRM
form[data-rw-success]: the text shown after a successful send (yours, or the default shown here)
[data-rw-consent-text]: your consent wording for being contacted
label with name="consentAlerts": your wording for listing alerts; leave the whole label out when you have none
.rw-button[data-rw-submit] text: your button text, or the default shown here
id and for attributes: any values that are unique on the page; keep each label's for, aria-labelledby and aria-describedby pointing at the same ids
Every data-rw-* attribute is a hook for ruuster-idx.js; see ../HOOKS.md.
-->
<form class="rw-recipes rw-form rw-form--registration" method="post" action="/api/leads/registration" data-rw-lead="registration" data-rw-success="Thank you. Your account request is in, and we will be in touch soon.">
<div class="rw-form__row">
<div class="rw-field">
<label class="rw-field__label" for="registration-form-1-first">First name</label>
<input class="rw-input" id="registration-form-1-first" name="firstName" autoComplete="given-name" required="" maxLength="80"/>
</div>
<div class="rw-field">
<label class="rw-field__label" for="registration-form-1-last">Last name</label>
<input class="rw-input" id="registration-form-1-last" name="lastName" autoComplete="family-name" required="" maxLength="80"/>
</div>
</div>
<div class="rw-field">
<label class="rw-field__label" for="registration-form-1-email">Email</label>
<input class="rw-input" id="registration-form-1-email" name="email" type="email" autoComplete="email" required="" maxLength="254"/>
</div>
<div class="rw-field">
<label class="rw-field__label" for="registration-form-1-phone">Phone (optional)</label>
<input class="rw-input" id="registration-form-1-phone" name="phone" type="tel" autoComplete="tel" maxLength="40"/>
</div>
<div class="rw-hp" aria-hidden="true"><label for="registration-form-1-website">Leave this field empty</label><input id="registration-form-1-website" name="website" type="text" tabindex="-1" autoComplete="off" value=""/></div>
<label class="rw-check rw-consent" for="registration-form-1-consent">
<input id="registration-form-1-consent" type="checkbox" name="consentContact" aria-labelledby="registration-form-1-consent-text" data-rw-consent="" value="yes"/>
<span id="registration-form-1-consent-text" data-rw-consent-text="">I agree that Peach Realty may contact me by phone, text or email about this request.</span>
</label>
<label class="rw-check rw-consent" for="registration-form-1-alerts">
<input id="registration-form-1-alerts" type="checkbox" name="consentAlerts" aria-labelledby="registration-form-1-alerts-text" value="yes"/>
<span id="registration-form-1-alerts-text">Email me new listings like this one. I can unsubscribe at any time.</span>
</label>
<button class="rw-button rw-button--block" type="submit" disabled="" aria-describedby="registration-form-1-needconsent" data-rw-submit="">Create my account</button>
<p class="rw-form__hint" id="registration-form-1-needconsent" data-rw-consent-hint="">Check the box above to agree to be contacted, then send your request.</p>
<p class="rw-form__status" role="status" aria-live="polite" data-rw-form-status=""></p>
</form>
Map
The map loads the Google Maps JavaScript API with your own browser key and Map ID once the frame scrolls near the screen. Get your Google Maps key shows how to get both and lock the key to your domains, step by step.
packages/ruuster-idx-recipes/static/html/area-map.html
<!--
Map frame with price pins, the area outline and the disclaimers.
From the React component AreaMap. Generated by npm run idx:recipes-static from @ruuster/idx-recipes. Do not edit it by hand.
Fill each value from:
.rw-map[data-rw-maps-key]: your Google Maps JavaScript API key, restricted to your domains
.rw-map[data-rw-map-id]: your Map ID for price pins; leave it out for the default markers
.rw-map[data-rw-viewport]: data.viewport of the search as JSON (south, west, north, east)
.rw-map[data-rw-boundary]: the area's outline: the geometry of GET data.boundary.href, as GeoJSON Polygon or MultiPolygon JSON; leave it out for none
.rw-map[data-rw-pins]: JSON, one pin per listing with geo and a price, never one for a listing whose address.hidden is true: id, lat and lng (listing.geo), label (the shown price as fmt.usd compact, $480K), title ("$480,000, {the address}"), href (listing.href), tone (active for active and coming_soon, pending for pending and under_contract, sold for closed)
.rw-map[style]: optional: height:{your height}; the default is 560px, and 360px under 768px
.rw-map__message: "The map is loading."; "Add your Google Maps key to show the map." when you have no key
.rw-map__disclaimer: the disclaimers of meta.mls (mls-disclaimers.html with rw-disclaimers--map); leave it out when meta.mls is empty
.rw-map[data-rw-search-href]: your page's own path and query (what Search this area and a finished drawing start from); without it the script reads the browser's address
.rw-map[data-rw-boundary-kind]: optional: the boundary's kind from GET /v1/boundaries/{id}; school adds the school pin at the outline's centre
.rw-map[data-rw-drawing]: optional: off leaves the draw and lock tools out
.rw-map__toolbar: with your key: the draw buttons, the lock button and the Clear the drawn area link (both only when the query has a polygon, whose href is the query without polygon and page), and the map type button
Every data-rw-* attribute is a hook for ruuster-idx.js; see ../HOOKS.md.
-->
<div class="rw-recipes rw-map" role="region" aria-label="Map of the homes in this search" data-rw-map="" data-rw-maps-key="your-google-maps-browser-key" data-rw-map-id="your-map-id" data-rw-viewport="{"south":33.83,"west":-84.72,"north":33.9,"east":-84.64}" data-rw-pins="[{"id":"0b6c3b52-7f0c-4a3e-9a51-6f0e2d1a0001","lat":33.86,"lng":-84.68,"label":"$480K","title":"$480,000, 1417 Sterlingbrooke Dr SW, Powder Springs, GA 30127","href":"/homes/1417-sterlingbrooke-dr-sw-powder-springs-ga-30127-0b6c3b52-7f0c-4a3e-9a51-6f0e2d1a0001","tone":"active"},{"id":"0b6c3b52-7f0c-4a3e-9a51-6f0e2d1a0003","lat":33.86,"lng":-84.68,"label":"$315K","title":"$315,000, 88 Magnolia Ct, Powder Springs, GA 30127","href":"/homes/88-magnolia-ct-powder-springs-ga-30127-0b6c3b52-7f0c-4a3e-9a51-6f0e2d1a0003","tone":"active"}]" data-rw-boundary="{"type":"Polygon","coordinates":[[[-84.71,33.84],[-84.65,33.84],[-84.65,33.89],[-84.71,33.89],[-84.71,33.84]]]}" data-rw-search-href="/search?city=Powder+Springs&state=GA&polygon=33.84,-84.71,33.84,-84.65,33.89,-84.65">
<div class="rw-map__canvas" data-rw-map-canvas=""></div>
<p class="rw-map__message" role="status" data-rw-map-message="">The map is loading.</p>
<div class="rw-map__disclaimer">
<aside class="rw-recipes rw-disclaimers rw-disclaimers--map" aria-label="Listing data notices">
<div class="rw-disclaimer" data-mls-id="fmls">
<div class="rw-disclaimer__text">
<p>Information is deemed reliable but not guaranteed. First MLS.</p>
</div>
</div>
</aside>
</div>
<div class="rw-map__toolbar" role="group" aria-label="Map tools" data-rw-map-toolbar="">
<button type="button" class="rw-map__tool" aria-label="Draw an area" aria-pressed="false" disabled="" data-rw-map-draw="polygon"><svg class="rw-icon" viewBox="0 0 24 24" width="22" height="22" data-rw-icon="pen-tool" focusable="false" aria-hidden="true"><g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 19l7-7 3 3-7 7-3-3z"></path><path d="M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z"></path><path d="M2 2l7.586 7.586"></path><circle cx="11" cy="11" r="2"></circle></g></svg></button>
<button type="button" class="rw-map__tool" aria-label="Draw a circle" aria-pressed="false" disabled="" data-rw-map-draw="circle"><svg class="rw-icon" viewBox="0 0 24 24" width="22" height="22" data-rw-icon="circle-draw" focusable="false" aria-hidden="true"><g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15.6 2.7a10 10 0 1 0 5.7 5.7"/><circle cx="12" cy="12" r="2"/><path d="M13.4 10.6 19 5"/></g></svg></button>
<button type="button" class="rw-map__tool" aria-label="Lock the drawn area" aria-pressed="false" disabled="" data-rw-map-lock=""><svg class="rw-icon" viewBox="0 0 24 24" width="22" height="22" data-rw-icon="lock" focusable="false" aria-hidden="true"><g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="16" r="1"/><rect width="18" height="12" x="3" y="10" rx="2"/><path d="M7 10V7a5 5 0 0 1 9.33-2.5"/></g></svg></button>
<div class="rw-map__toolrow">
<a class="rw-map__clear" href="/search?city=Powder+Springs&state=GA" data-rw-map-clear="">Clear the drawn area</a>
<button type="button" class="rw-map__tool" aria-label="Satellite" aria-pressed="false" disabled="" data-rw-map-type="roadmap"><svg class="rw-icon" viewBox="0 0 24 24" width="22" height="22" data-rw-icon="map-map" focusable="false" aria-hidden="true"><g fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z"/><path d="M15 5.764v15"/><path d="M9 3.236v15"/></g></svg></button>
</div>
</div>
</div>
| Element | Filled from |
|---|---|
.rw-map[data-rw-maps-key] |
your Google Maps JavaScript API key, restricted to your domains |
.rw-map[data-rw-map-id] |
your Map ID for price pins; leave it out for the default markers |
.rw-map[data-rw-viewport] |
data.viewport of the search as JSON (south, west, north, east) |
.rw-map[data-rw-boundary] |
the area's outline: the geometry of GET data.boundary.href, as GeoJSON Polygon or MultiPolygon JSON; leave it out for none |
.rw-map[data-rw-pins] |
JSON, one pin per listing with geo and a price, never one for a listing whose address.hidden is true: id, lat and lng (listing.geo), label (the shown price as fmt.usd compact, $480K), title ("$480,000, {the address}"), href (listing.href), tone (active for active and coming_soon, pending for pending and under_contract, sold for closed) |
.rw-map[style] |
optional: height:{your height}; the default is 560px, and 360px under 768px |
.rw-map__message |
"The map is loading."; "Add your Google Maps key to show the map." when you have no key |
.rw-map__disclaimer |
the disclaimers of meta.mls (mls-disclaimers.html with rw-disclaimers--map); leave it out when meta.mls is empty |
.rw-map[data-rw-search-href] |
your page's own path and query (what Search this area and a finished drawing start from); without it the script reads the browser's address |
.rw-map[data-rw-boundary-kind] |
optional: the boundary's kind from GET /v1/boundaries/{id}; school adds the school pin at the outline's centre |
.rw-map[data-rw-drawing] |
optional: off leaves the draw and lock tools out |
.rw-map__toolbar |
with your key: the draw buttons, the lock button and the Clear the drawn area link (both only when the query has a polygon, whose href is the query without polygon and page), and the map type button |
Featured homes strip
packages/ruuster-idx-recipes/static/html/featured-strip.html
<!--
Featured homes strip for a homepage.
From the React component ListingGrid and MlsDisclaimers, as examples/idx-nextjs/components/featured-strip.tsx renders them. Generated by npm run idx:recipes-static from @ruuster/idx-recipes. Do not edit it by hand.
Fill each value from:
section h2: your heading
.rw-grid: up to eight listings from GET /v1/collections/{collectionId}/listings, or your own listings (ownListings=true), as in listing-grid.html
.rw-disclaimers: meta.mls and meta.freshness.asOf of the same answer
Every data-rw-* attribute is a hook for ruuster-idx.js; see ../HOOKS.md.
-->
<section aria-labelledby="featured-homes">
<h2 id="featured-homes">Featured homes</h2>
<div class="rw-recipes rw-grid" data-rw-ga4-event="view_item_list" data-rw-ga4-params="{"ecommerce":{"item_list_name":"Featured homes","items":[{"item_id":"7400123","item_name":"1417 Sterlingbrooke Dr SW, Powder Springs, GA 30127","price":480000,"item_category":"Residential","item_category2":"house","item_brand":"Northwest MLS","index":0,"item_list_name":"Featured homes"},{"item_id":"7400789","item_name":"212 Dogwood Ln, Powder Springs, GA 30127","price":418500,"item_category":"Residential","item_category2":"house","item_brand":"First MLS","index":1,"item_list_name":"Featured homes"},{"item_id":"7400456","item_name":"88 Magnolia Ct, Powder Springs, GA 30127","price":315000,"item_category":"Residential","item_category2":"house","item_brand":"First MLS","index":2,"item_list_name":"Featured homes"}]}}">
<ul class="rw-grid__list" aria-label="Featured homes">
<li class="rw-grid__item">
<article class="rw-recipes rw-card" data-listing-id="0b6c3b52-7f0c-4a3e-9a51-6f0e2d1a0001" data-status="active">
<div class="rw-card__gallery" data-rw-gallery="card" data-rw-photos="[{"url":"https://photos.ruuster.com/l/1/0.jpg","width":1200,"height":800,"alt":"Two-story brick house with a two-car garage"},{"url":"https://photos.ruuster.com/l/1/1.jpg","width":1200,"height":800,"alt":"Kitchen with an island"},{"url":"https://photos.ruuster.com/l/1/2.jpg","width":1200,"height":800,"alt":"Fenced back yard with a patio"}]" data-rw-photo-alt="1417 Sterlingbrooke Dr SW, Powder Springs, GA 30127">
<img class="rw-card__photo" src="https://photos.ruuster.com/l/1/0.jpg" width="1200" height="800" alt="Two-story brick house with a two-car garage" loading="eager" decoding="async" srcSet="https://photos.ruuster.com/l/1/0.jpg?width=480 480w, https://photos.ruuster.com/l/1/0.jpg?width=800 800w, https://photos.ruuster.com/l/1/0.jpg?width=1200 1200w" sizes="(min-width: 1600px) 25vw, (min-width: 1280px) 33vw, (min-width: 602px) 50vw, 100vw" fetchpriority="high" data-rw-gallery-photo=""/>
<button type="button" class="rw-card__arrow rw-card__arrow--prev" aria-label="Previous photo" data-rw-gallery-prev="">
<svg class="rw-icon rw-card__arrow-icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="arrow-left-white" focusable="false" aria-hidden="true"><g fill="none"><path d="M13 17L7 11L13 5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></g></svg>
</button>
<button type="button" class="rw-card__arrow rw-card__arrow--next" aria-label="Next photo" data-rw-gallery-next="">
<svg class="rw-icon rw-card__arrow-icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="arrow-right-white" focusable="false" aria-hidden="true"><g fill="none"><path d="M9 17L15 11L9 5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></g></svg>
</button>
<span class="rw-card__dots" aria-hidden="true" data-rw-gallery-dots="">
<span class="rw-card__dot rw-card__dot--on" data-rw-gallery-dot=""></span>
<span class="rw-card__dot" data-rw-gallery-dot=""></span>
<span class="rw-card__dot" data-rw-gallery-dot=""></span>
</span>
</div>
<span class="rw-card__badge rw-card__badge--new">New</span>
<div class="rw-card__band">
<p class="rw-card__price">$480,000</p>
<ul class="rw-card__facts">
<li class="rw-fact"><svg class="rw-icon rw-fact__icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="beds" focusable="false" aria-hidden="true"><g fill="none"><path d="M10.4 10.0448V7.52239H9.00002C8.22881 7.52239 7.71077 7.52363 7.32434 7.57403C6.95517 7.62218 6.79717 7.7054 6.69292 7.80654C6.58866 7.90768 6.50288 8.06096 6.45325 8.41911C6.4013 8.79401 6.40002 9.29659 6.40002 10.0448L10.4 10.0448Z" fill="currentColor"/><path d="M15.6 10.0448C15.6 9.29659 15.5987 8.79401 15.5468 8.41911C15.4972 8.06096 15.4114 7.90768 15.3071 7.80654C15.2029 7.7054 15.0449 7.62218 14.6757 7.57403C14.2893 7.52363 13.7712 7.52239 13 7.52239H11.6V10.0448L15.6 10.0448Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M11.8 5H10.2C7.18303 5 5.67454 5 4.73728 5.90928C3.9193 6.70284 3.8152 7.9185 3.80195 10.1607V11.4158C3.49768 11.5857 3.2576 11.8491 3.12179 12.1672C3 12.4524 3 12.8141 3 13.5373C3 14.2606 3 14.6222 3.12179 14.9074C3.28418 15.2878 3.59566 15.59 3.98771 15.7475C4.18962 15.8287 4.42864 15.8541 4.8 15.862V17.4179C4.8 17.7394 5.06863 18 5.4 18C5.73137 18 6 17.7394 6 17.4179V15.8657H16V17.4179C16 17.7394 16.2686 18 16.6 18C16.9314 18 17.2 17.7394 17.2 17.4179V15.862C17.5714 15.8541 17.8104 15.8287 18.0123 15.7475C18.4043 15.59 18.7158 15.2878 18.8782 14.9074C19 14.6222 19 14.2606 19 13.5373C19 12.8141 19 12.4524 18.8782 12.1672C18.7424 11.8491 18.5023 11.5857 18.1981 11.4158V10.1607C18.1848 7.9185 18.0807 6.70284 17.2628 5.90928C16.3255 5 14.817 5 11.8 5ZM16.8 11.2091V10.0044C16.8 9.30712 16.8001 8.72559 16.7361 8.26399C16.6686 7.77674 16.52 7.33684 16.1557 6.98334C15.7913 6.62984 15.3378 6.48574 14.8356 6.42023C14.3598 6.35817 13.7604 6.35819 13.0416 6.35821H8.95842C8.23964 6.35819 7.64026 6.35817 7.16444 6.42023C6.6622 6.48574 6.20876 6.62984 5.84439 6.98334C5.48001 7.33684 5.33148 7.77674 5.26395 8.26399C5.19998 8.72561 5.2 9.30709 5.20002 10.0044V11.2091C5.26357 11.209 5.33015 11.209 5.4 11.209H16.6C16.6699 11.209 16.7365 11.209 16.8 11.2091Z" fill="currentColor"/></g></svg>6 beds</li>
<li class="rw-fact"><svg class="rw-icon rw-fact__icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="bath" focusable="false" aria-hidden="true"><g fill="none"><path d="M4.86047 5.33311C4.86047 4.66106 5.40528 4.11626 6.07733 4.11626C6.57491 4.11626 7.02237 4.4192 7.20716 4.88118L7.31379 5.14774C6.87136 5.47013 6.5099 5.91966 6.28724 6.46795C5.97445 7.23818 5.99132 8.06533 6.27278 8.77964C6.32816 8.92017 6.43812 9.03225 6.57756 9.0903C6.71701 9.14835 6.87403 9.1474 7.01276 9.08768L11.4487 7.17806C11.7256 7.05886 11.8578 6.7413 11.7473 6.46081C11.4657 5.74622 10.9159 5.13719 10.1603 4.8144C9.55652 4.55646 8.91592 4.52175 8.32557 4.67152L8.2436 4.46661C7.88928 3.58083 7.03137 3 6.07733 3C4.78877 3 3.74419 4.04457 3.74419 5.33311V10.4417H3.55814C3.24989 10.4417 3 10.6916 3 10.9999C3 11.3081 3.24989 11.558 3.55814 11.558H3.74419V11.7441C3.74419 11.7469 3.74421 11.7497 3.74425 11.7525C3.74418 11.7663 3.74418 11.7801 3.74419 11.7937L3.74419 11.8219C3.74419 12.1011 3.74419 12.2648 3.75577 12.4474C3.8614 14.1117 4.76078 15.6486 6.06424 16.6535C6.05401 16.6696 6.04451 16.6864 6.03579 16.7038L5.2916 18.1921C5.15375 18.4678 5.2655 18.8031 5.54121 18.941C5.81692 19.0788 6.15218 18.9671 6.29004 18.6914L7.0102 17.251C7.60683 17.553 8.25567 17.7518 8.9305 17.8201C9.11241 17.8385 9.22344 17.8427 9.41256 17.8498L9.41763 17.85C9.9685 17.8707 10.5077 17.8835 11 17.8835C11.4923 17.8835 12.0315 17.8707 12.5824 17.85L12.5874 17.8498C12.7765 17.8427 12.8876 17.8385 13.0695 17.8201C13.7444 17.7518 14.3933 17.553 14.99 17.251L15.7102 18.6914C15.8481 18.9671 16.1833 19.0788 16.459 18.941C16.7347 18.8031 16.8465 18.4678 16.7086 18.1921L15.9645 16.7038C15.9557 16.6863 15.9462 16.6695 15.9359 16.6534C17.2393 15.6485 18.1386 14.1117 18.2442 12.4474C18.2558 12.2649 18.2558 12.1012 18.2558 11.8219L18.2558 11.7937C18.2559 11.749 18.2559 11.7025 18.2531 11.6596C18.2509 11.6253 18.2473 11.5915 18.2425 11.558H18.4419C18.7501 11.558 19 11.3081 19 10.9999C19 10.6916 18.7501 10.4417 18.4419 10.4417H4.86047V5.33311Z" fill="currentColor"/></g></svg>5 baths</li>
<li class="rw-fact"><svg class="rw-icon rw-fact__icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="square" focusable="false" aria-hidden="true"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.02513 5.02513C4 6.05025 4 7.70017 4 11C4 14.2998 4 15.9497 5.02513 16.9749C6.05025 18 7.70017 18 11 18C14.2998 18 15.9497 18 16.9749 16.9749C18 15.9497 18 14.2998 18 11C18 7.70017 18 6.05025 16.9749 5.02513C15.9497 4 14.2998 4 11 4C7.70017 4 6.05025 4 5.02513 5.02513ZM10.1232 6.79555C10.1256 7.08549 9.89256 7.32252 9.60263 7.32498C9.00351 7.33006 8.58507 7.34985 8.27026 7.41152C7.9701 7.47031 7.80396 7.55998 7.68197 7.68197C7.55998 7.80396 7.47031 7.9701 7.41152 8.27026C7.34985 8.58507 7.33006 9.00351 7.32498 9.60263C7.32252 9.89256 7.08549 10.1256 6.79555 10.1232C6.50561 10.1207 6.27256 9.88366 6.27502 9.59372C6.28007 8.99824 6.2985 8.49011 6.3811 8.06842C6.46657 7.63208 6.62721 7.2518 6.93951 6.93951C7.2518 6.62721 7.63208 6.46657 8.06842 6.3811C8.49011 6.2985 8.99824 6.28007 9.59372 6.27502C9.88366 6.27256 10.1207 6.50561 10.1232 6.79555ZM11.8751 6.79555C11.8776 6.50561 12.1146 6.27256 12.4046 6.27502C13 6.28007 13.5082 6.2985 13.9299 6.3811C14.3662 6.46657 14.7465 6.62721 15.0588 6.93951C15.3711 7.2518 15.5317 7.63208 15.6172 8.06842C15.6998 8.49011 15.7182 8.99824 15.7233 9.59372C15.7257 9.88366 15.4927 10.1207 15.2027 10.1232C14.9128 10.1256 14.6758 9.89256 14.6733 9.60263C14.6682 9.00351 14.6484 8.58507 14.5868 8.27026C14.528 7.9701 14.4383 7.80396 14.3163 7.68197C14.1943 7.55998 14.0282 7.47031 13.728 7.41152C13.4132 7.34985 12.9948 7.33006 12.3957 7.32498C12.1057 7.32252 11.8727 7.08549 11.8751 6.79555ZM7.32498 12.396C7.32252 12.1061 7.08549 11.873 6.79555 11.8755C6.50561 11.8779 6.27256 12.115 6.27502 12.4049C6.28007 13.0004 6.2985 13.5085 6.3811 13.9302C6.46657 14.3666 6.62721 14.7468 6.93951 15.0591C7.2518 15.3714 7.63208 15.5321 8.06842 15.6175C8.49011 15.7001 8.99824 15.7186 9.59372 15.7236C9.88366 15.7261 10.1207 15.493 10.1232 15.2031C10.1256 14.9131 9.89256 14.6761 9.60263 14.6737C9.00351 14.6686 8.58507 14.6488 8.27026 14.5871C7.9701 14.5283 7.80396 14.4387 7.68197 14.3167C7.55998 14.1947 7.47031 14.0285 7.41152 13.7284C7.34985 13.4136 7.33006 12.9951 7.32498 12.396ZM15.2027 11.8755C15.4927 11.8779 15.7257 12.115 15.7233 12.4049C15.7182 13.0004 15.6998 13.5085 15.6172 13.9302C15.5317 14.3666 15.3711 14.7468 15.0588 15.0591C14.7465 15.3714 14.3662 15.5321 13.9299 15.6175C13.5082 15.7001 13 15.7186 12.4046 15.7236C12.1146 15.7261 11.8776 15.493 11.8751 15.2031C11.8727 14.9131 12.1057 14.6761 12.3957 14.6737C12.9948 14.6686 13.4132 14.6488 13.728 14.5871C14.0282 14.5283 14.1943 14.4387 14.3163 14.3167C14.4383 14.1947 14.528 14.0285 14.5868 13.7284C14.6484 13.4136 14.6682 12.9951 14.6733 12.396C14.6758 12.1061 14.9128 11.873 15.2027 11.8755Z" fill="currentColor"/></g></svg>6,838 sq ft</li>
</ul>
<h3 class="rw-card__address">
<a class="rw-card__link" href="/homes/1417-sterlingbrooke-dr-sw-powder-springs-ga-30127-0b6c3b52-7f0c-4a3e-9a51-6f0e2d1a0001">1417 Sterlingbrooke Dr SW, Powder Springs, GA 30127</a>
</h3>
<p class="rw-card__attribution">Listing provided by Peach Realty</p>
<p class="rw-card__courtesy">Listing courtesy of Peach Realty</p>
</div>
</article>
</li>
<li class="rw-grid__item">
<article class="rw-recipes rw-card" data-listing-id="0b6c3b52-7f0c-4a3e-9a51-6f0e2d1a0004" data-status="closed">
<div class="rw-card__gallery" data-rw-gallery="card">
<img class="rw-card__photo" src="https://photos.ruuster.com/l/4/0.jpg" width="1200" height="800" alt="Ranch house with a front porch" loading="lazy" decoding="async" srcSet="https://photos.ruuster.com/l/4/0.jpg?width=480 480w, https://photos.ruuster.com/l/4/0.jpg?width=800 800w, https://photos.ruuster.com/l/4/0.jpg?width=1200 1200w" sizes="(min-width: 1600px) 25vw, (min-width: 1280px) 33vw, (min-width: 602px) 50vw, 100vw" data-rw-gallery-photo=""/>
</div>
<span class="rw-card__badge rw-card__badge--sold">Sold Sep 1, 2026</span>
<div class="rw-card__band">
<p class="rw-card__price">$418,500</p>
<ul class="rw-card__facts">
<li class="rw-fact"><svg class="rw-icon rw-fact__icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="beds" focusable="false" aria-hidden="true"><g fill="none"><path d="M10.4 10.0448V7.52239H9.00002C8.22881 7.52239 7.71077 7.52363 7.32434 7.57403C6.95517 7.62218 6.79717 7.7054 6.69292 7.80654C6.58866 7.90768 6.50288 8.06096 6.45325 8.41911C6.4013 8.79401 6.40002 9.29659 6.40002 10.0448L10.4 10.0448Z" fill="currentColor"/><path d="M15.6 10.0448C15.6 9.29659 15.5987 8.79401 15.5468 8.41911C15.4972 8.06096 15.4114 7.90768 15.3071 7.80654C15.2029 7.7054 15.0449 7.62218 14.6757 7.57403C14.2893 7.52363 13.7712 7.52239 13 7.52239H11.6V10.0448L15.6 10.0448Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M11.8 5H10.2C7.18303 5 5.67454 5 4.73728 5.90928C3.9193 6.70284 3.8152 7.9185 3.80195 10.1607V11.4158C3.49768 11.5857 3.2576 11.8491 3.12179 12.1672C3 12.4524 3 12.8141 3 13.5373C3 14.2606 3 14.6222 3.12179 14.9074C3.28418 15.2878 3.59566 15.59 3.98771 15.7475C4.18962 15.8287 4.42864 15.8541 4.8 15.862V17.4179C4.8 17.7394 5.06863 18 5.4 18C5.73137 18 6 17.7394 6 17.4179V15.8657H16V17.4179C16 17.7394 16.2686 18 16.6 18C16.9314 18 17.2 17.7394 17.2 17.4179V15.862C17.5714 15.8541 17.8104 15.8287 18.0123 15.7475C18.4043 15.59 18.7158 15.2878 18.8782 14.9074C19 14.6222 19 14.2606 19 13.5373C19 12.8141 19 12.4524 18.8782 12.1672C18.7424 11.8491 18.5023 11.5857 18.1981 11.4158V10.1607C18.1848 7.9185 18.0807 6.70284 17.2628 5.90928C16.3255 5 14.817 5 11.8 5ZM16.8 11.2091V10.0044C16.8 9.30712 16.8001 8.72559 16.7361 8.26399C16.6686 7.77674 16.52 7.33684 16.1557 6.98334C15.7913 6.62984 15.3378 6.48574 14.8356 6.42023C14.3598 6.35817 13.7604 6.35819 13.0416 6.35821H8.95842C8.23964 6.35819 7.64026 6.35817 7.16444 6.42023C6.6622 6.48574 6.20876 6.62984 5.84439 6.98334C5.48001 7.33684 5.33148 7.77674 5.26395 8.26399C5.19998 8.72561 5.2 9.30709 5.20002 10.0044V11.2091C5.26357 11.209 5.33015 11.209 5.4 11.209H16.6C16.6699 11.209 16.7365 11.209 16.8 11.2091Z" fill="currentColor"/></g></svg>4 beds</li>
<li class="rw-fact"><svg class="rw-icon rw-fact__icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="bath" focusable="false" aria-hidden="true"><g fill="none"><path d="M4.86047 5.33311C4.86047 4.66106 5.40528 4.11626 6.07733 4.11626C6.57491 4.11626 7.02237 4.4192 7.20716 4.88118L7.31379 5.14774C6.87136 5.47013 6.5099 5.91966 6.28724 6.46795C5.97445 7.23818 5.99132 8.06533 6.27278 8.77964C6.32816 8.92017 6.43812 9.03225 6.57756 9.0903C6.71701 9.14835 6.87403 9.1474 7.01276 9.08768L11.4487 7.17806C11.7256 7.05886 11.8578 6.7413 11.7473 6.46081C11.4657 5.74622 10.9159 5.13719 10.1603 4.8144C9.55652 4.55646 8.91592 4.52175 8.32557 4.67152L8.2436 4.46661C7.88928 3.58083 7.03137 3 6.07733 3C4.78877 3 3.74419 4.04457 3.74419 5.33311V10.4417H3.55814C3.24989 10.4417 3 10.6916 3 10.9999C3 11.3081 3.24989 11.558 3.55814 11.558H3.74419V11.7441C3.74419 11.7469 3.74421 11.7497 3.74425 11.7525C3.74418 11.7663 3.74418 11.7801 3.74419 11.7937L3.74419 11.8219C3.74419 12.1011 3.74419 12.2648 3.75577 12.4474C3.8614 14.1117 4.76078 15.6486 6.06424 16.6535C6.05401 16.6696 6.04451 16.6864 6.03579 16.7038L5.2916 18.1921C5.15375 18.4678 5.2655 18.8031 5.54121 18.941C5.81692 19.0788 6.15218 18.9671 6.29004 18.6914L7.0102 17.251C7.60683 17.553 8.25567 17.7518 8.9305 17.8201C9.11241 17.8385 9.22344 17.8427 9.41256 17.8498L9.41763 17.85C9.9685 17.8707 10.5077 17.8835 11 17.8835C11.4923 17.8835 12.0315 17.8707 12.5824 17.85L12.5874 17.8498C12.7765 17.8427 12.8876 17.8385 13.0695 17.8201C13.7444 17.7518 14.3933 17.553 14.99 17.251L15.7102 18.6914C15.8481 18.9671 16.1833 19.0788 16.459 18.941C16.7347 18.8031 16.8465 18.4678 16.7086 18.1921L15.9645 16.7038C15.9557 16.6863 15.9462 16.6695 15.9359 16.6534C17.2393 15.6485 18.1386 14.1117 18.2442 12.4474C18.2558 12.2649 18.2558 12.1012 18.2558 11.8219L18.2558 11.7937C18.2559 11.749 18.2559 11.7025 18.2531 11.6596C18.2509 11.6253 18.2473 11.5915 18.2425 11.558H18.4419C18.7501 11.558 19 11.3081 19 10.9999C19 10.6916 18.7501 10.4417 18.4419 10.4417H4.86047V5.33311Z" fill="currentColor"/></g></svg>3 baths</li>
<li class="rw-fact"><svg class="rw-icon rw-fact__icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="square" focusable="false" aria-hidden="true"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.02513 5.02513C4 6.05025 4 7.70017 4 11C4 14.2998 4 15.9497 5.02513 16.9749C6.05025 18 7.70017 18 11 18C14.2998 18 15.9497 18 16.9749 16.9749C18 15.9497 18 14.2998 18 11C18 7.70017 18 6.05025 16.9749 5.02513C15.9497 4 14.2998 4 11 4C7.70017 4 6.05025 4 5.02513 5.02513ZM10.1232 6.79555C10.1256 7.08549 9.89256 7.32252 9.60263 7.32498C9.00351 7.33006 8.58507 7.34985 8.27026 7.41152C7.9701 7.47031 7.80396 7.55998 7.68197 7.68197C7.55998 7.80396 7.47031 7.9701 7.41152 8.27026C7.34985 8.58507 7.33006 9.00351 7.32498 9.60263C7.32252 9.89256 7.08549 10.1256 6.79555 10.1232C6.50561 10.1207 6.27256 9.88366 6.27502 9.59372C6.28007 8.99824 6.2985 8.49011 6.3811 8.06842C6.46657 7.63208 6.62721 7.2518 6.93951 6.93951C7.2518 6.62721 7.63208 6.46657 8.06842 6.3811C8.49011 6.2985 8.99824 6.28007 9.59372 6.27502C9.88366 6.27256 10.1207 6.50561 10.1232 6.79555ZM11.8751 6.79555C11.8776 6.50561 12.1146 6.27256 12.4046 6.27502C13 6.28007 13.5082 6.2985 13.9299 6.3811C14.3662 6.46657 14.7465 6.62721 15.0588 6.93951C15.3711 7.2518 15.5317 7.63208 15.6172 8.06842C15.6998 8.49011 15.7182 8.99824 15.7233 9.59372C15.7257 9.88366 15.4927 10.1207 15.2027 10.1232C14.9128 10.1256 14.6758 9.89256 14.6733 9.60263C14.6682 9.00351 14.6484 8.58507 14.5868 8.27026C14.528 7.9701 14.4383 7.80396 14.3163 7.68197C14.1943 7.55998 14.0282 7.47031 13.728 7.41152C13.4132 7.34985 12.9948 7.33006 12.3957 7.32498C12.1057 7.32252 11.8727 7.08549 11.8751 6.79555ZM7.32498 12.396C7.32252 12.1061 7.08549 11.873 6.79555 11.8755C6.50561 11.8779 6.27256 12.115 6.27502 12.4049C6.28007 13.0004 6.2985 13.5085 6.3811 13.9302C6.46657 14.3666 6.62721 14.7468 6.93951 15.0591C7.2518 15.3714 7.63208 15.5321 8.06842 15.6175C8.49011 15.7001 8.99824 15.7186 9.59372 15.7236C9.88366 15.7261 10.1207 15.493 10.1232 15.2031C10.1256 14.9131 9.89256 14.6761 9.60263 14.6737C9.00351 14.6686 8.58507 14.6488 8.27026 14.5871C7.9701 14.5283 7.80396 14.4387 7.68197 14.3167C7.55998 14.1947 7.47031 14.0285 7.41152 13.7284C7.34985 13.4136 7.33006 12.9951 7.32498 12.396ZM15.2027 11.8755C15.4927 11.8779 15.7257 12.115 15.7233 12.4049C15.7182 13.0004 15.6998 13.5085 15.6172 13.9302C15.5317 14.3666 15.3711 14.7468 15.0588 15.0591C14.7465 15.3714 14.3662 15.5321 13.9299 15.6175C13.5082 15.7001 13 15.7186 12.4046 15.7236C12.1146 15.7261 11.8776 15.493 11.8751 15.2031C11.8727 14.9131 12.1057 14.6761 12.3957 14.6737C12.9948 14.6686 13.4132 14.6488 13.728 14.5871C14.0282 14.5283 14.1943 14.4387 14.3163 14.3167C14.4383 14.1947 14.528 14.0285 14.5868 13.7284C14.6484 13.4136 14.6682 12.9951 14.6733 12.396C14.6758 12.1061 14.9128 11.873 15.2027 11.8755Z" fill="currentColor"/></g></svg>2,410 sq ft</li>
</ul>
<h3 class="rw-card__address">
<a class="rw-card__link" href="/homes/212-dogwood-ln-powder-springs-ga-30127-0b6c3b52-7f0c-4a3e-9a51-6f0e2d1a0004">212 Dogwood Ln, Powder Springs, GA 30127</a>
</h3>
</div>
</article>
</li>
<li class="rw-grid__item">
<article class="rw-recipes rw-card" data-listing-id="0b6c3b52-7f0c-4a3e-9a51-6f0e2d1a0003" data-status="active">
<div class="rw-card__gallery" data-rw-gallery="card" data-rw-photos="[{"url":"https://photos.ruuster.com/l/5/0.jpg","width":1200,"height":800,"alt":"Craftsman house with a covered front porch"},{"url":"https://photos.ruuster.com/l/5/1.jpg","width":1200,"height":800,"alt":"Living room with a fireplace"}]" data-rw-photo-alt="88 Magnolia Ct, Powder Springs, GA 30127">
<img class="rw-card__photo" src="https://photos.ruuster.com/l/5/0.jpg" width="1200" height="800" alt="Craftsman house with a covered front porch" loading="lazy" decoding="async" srcSet="https://photos.ruuster.com/l/5/0.jpg?width=480 480w, https://photos.ruuster.com/l/5/0.jpg?width=800 800w, https://photos.ruuster.com/l/5/0.jpg?width=1200 1200w" sizes="(min-width: 1600px) 25vw, (min-width: 1280px) 33vw, (min-width: 602px) 50vw, 100vw" data-rw-gallery-photo=""/>
<button type="button" class="rw-card__arrow rw-card__arrow--prev" aria-label="Previous photo" data-rw-gallery-prev="">
<svg class="rw-icon rw-card__arrow-icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="arrow-left-white" focusable="false" aria-hidden="true"><g fill="none"><path d="M13 17L7 11L13 5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></g></svg>
</button>
<button type="button" class="rw-card__arrow rw-card__arrow--next" aria-label="Next photo" data-rw-gallery-next="">
<svg class="rw-icon rw-card__arrow-icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="arrow-right-white" focusable="false" aria-hidden="true"><g fill="none"><path d="M9 17L15 11L9 5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></g></svg>
</button>
<span class="rw-card__dots" aria-hidden="true" data-rw-gallery-dots="">
<span class="rw-card__dot rw-card__dot--on" data-rw-gallery-dot=""></span>
<span class="rw-card__dot" data-rw-gallery-dot=""></span>
</span>
</div>
<div class="rw-card__band">
<p class="rw-card__price">$315,000</p>
<ul class="rw-card__facts">
<li class="rw-fact"><svg class="rw-icon rw-fact__icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="beds" focusable="false" aria-hidden="true"><g fill="none"><path d="M10.4 10.0448V7.52239H9.00002C8.22881 7.52239 7.71077 7.52363 7.32434 7.57403C6.95517 7.62218 6.79717 7.7054 6.69292 7.80654C6.58866 7.90768 6.50288 8.06096 6.45325 8.41911C6.4013 8.79401 6.40002 9.29659 6.40002 10.0448L10.4 10.0448Z" fill="currentColor"/><path d="M15.6 10.0448C15.6 9.29659 15.5987 8.79401 15.5468 8.41911C15.4972 8.06096 15.4114 7.90768 15.3071 7.80654C15.2029 7.7054 15.0449 7.62218 14.6757 7.57403C14.2893 7.52363 13.7712 7.52239 13 7.52239H11.6V10.0448L15.6 10.0448Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M11.8 5H10.2C7.18303 5 5.67454 5 4.73728 5.90928C3.9193 6.70284 3.8152 7.9185 3.80195 10.1607V11.4158C3.49768 11.5857 3.2576 11.8491 3.12179 12.1672C3 12.4524 3 12.8141 3 13.5373C3 14.2606 3 14.6222 3.12179 14.9074C3.28418 15.2878 3.59566 15.59 3.98771 15.7475C4.18962 15.8287 4.42864 15.8541 4.8 15.862V17.4179C4.8 17.7394 5.06863 18 5.4 18C5.73137 18 6 17.7394 6 17.4179V15.8657H16V17.4179C16 17.7394 16.2686 18 16.6 18C16.9314 18 17.2 17.7394 17.2 17.4179V15.862C17.5714 15.8541 17.8104 15.8287 18.0123 15.7475C18.4043 15.59 18.7158 15.2878 18.8782 14.9074C19 14.6222 19 14.2606 19 13.5373C19 12.8141 19 12.4524 18.8782 12.1672C18.7424 11.8491 18.5023 11.5857 18.1981 11.4158V10.1607C18.1848 7.9185 18.0807 6.70284 17.2628 5.90928C16.3255 5 14.817 5 11.8 5ZM16.8 11.2091V10.0044C16.8 9.30712 16.8001 8.72559 16.7361 8.26399C16.6686 7.77674 16.52 7.33684 16.1557 6.98334C15.7913 6.62984 15.3378 6.48574 14.8356 6.42023C14.3598 6.35817 13.7604 6.35819 13.0416 6.35821H8.95842C8.23964 6.35819 7.64026 6.35817 7.16444 6.42023C6.6622 6.48574 6.20876 6.62984 5.84439 6.98334C5.48001 7.33684 5.33148 7.77674 5.26395 8.26399C5.19998 8.72561 5.2 9.30709 5.20002 10.0044V11.2091C5.26357 11.209 5.33015 11.209 5.4 11.209H16.6C16.6699 11.209 16.7365 11.209 16.8 11.2091Z" fill="currentColor"/></g></svg>3 beds</li>
<li class="rw-fact"><svg class="rw-icon rw-fact__icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="bath" focusable="false" aria-hidden="true"><g fill="none"><path d="M4.86047 5.33311C4.86047 4.66106 5.40528 4.11626 6.07733 4.11626C6.57491 4.11626 7.02237 4.4192 7.20716 4.88118L7.31379 5.14774C6.87136 5.47013 6.5099 5.91966 6.28724 6.46795C5.97445 7.23818 5.99132 8.06533 6.27278 8.77964C6.32816 8.92017 6.43812 9.03225 6.57756 9.0903C6.71701 9.14835 6.87403 9.1474 7.01276 9.08768L11.4487 7.17806C11.7256 7.05886 11.8578 6.7413 11.7473 6.46081C11.4657 5.74622 10.9159 5.13719 10.1603 4.8144C9.55652 4.55646 8.91592 4.52175 8.32557 4.67152L8.2436 4.46661C7.88928 3.58083 7.03137 3 6.07733 3C4.78877 3 3.74419 4.04457 3.74419 5.33311V10.4417H3.55814C3.24989 10.4417 3 10.6916 3 10.9999C3 11.3081 3.24989 11.558 3.55814 11.558H3.74419V11.7441C3.74419 11.7469 3.74421 11.7497 3.74425 11.7525C3.74418 11.7663 3.74418 11.7801 3.74419 11.7937L3.74419 11.8219C3.74419 12.1011 3.74419 12.2648 3.75577 12.4474C3.8614 14.1117 4.76078 15.6486 6.06424 16.6535C6.05401 16.6696 6.04451 16.6864 6.03579 16.7038L5.2916 18.1921C5.15375 18.4678 5.2655 18.8031 5.54121 18.941C5.81692 19.0788 6.15218 18.9671 6.29004 18.6914L7.0102 17.251C7.60683 17.553 8.25567 17.7518 8.9305 17.8201C9.11241 17.8385 9.22344 17.8427 9.41256 17.8498L9.41763 17.85C9.9685 17.8707 10.5077 17.8835 11 17.8835C11.4923 17.8835 12.0315 17.8707 12.5824 17.85L12.5874 17.8498C12.7765 17.8427 12.8876 17.8385 13.0695 17.8201C13.7444 17.7518 14.3933 17.553 14.99 17.251L15.7102 18.6914C15.8481 18.9671 16.1833 19.0788 16.459 18.941C16.7347 18.8031 16.8465 18.4678 16.7086 18.1921L15.9645 16.7038C15.9557 16.6863 15.9462 16.6695 15.9359 16.6534C17.2393 15.6485 18.1386 14.1117 18.2442 12.4474C18.2558 12.2649 18.2558 12.1012 18.2558 11.8219L18.2558 11.7937C18.2559 11.749 18.2559 11.7025 18.2531 11.6596C18.2509 11.6253 18.2473 11.5915 18.2425 11.558H18.4419C18.7501 11.558 19 11.3081 19 10.9999C19 10.6916 18.7501 10.4417 18.4419 10.4417H4.86047V5.33311Z" fill="currentColor"/></g></svg>2 baths</li>
<li class="rw-fact"><svg class="rw-icon rw-fact__icon" viewBox="0 0 22 22" width="18" height="18" data-rw-icon="square" focusable="false" aria-hidden="true"><g fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.02513 5.02513C4 6.05025 4 7.70017 4 11C4 14.2998 4 15.9497 5.02513 16.9749C6.05025 18 7.70017 18 11 18C14.2998 18 15.9497 18 16.9749 16.9749C18 15.9497 18 14.2998 18 11C18 7.70017 18 6.05025 16.9749 5.02513C15.9497 4 14.2998 4 11 4C7.70017 4 6.05025 4 5.02513 5.02513ZM10.1232 6.79555C10.1256 7.08549 9.89256 7.32252 9.60263 7.32498C9.00351 7.33006 8.58507 7.34985 8.27026 7.41152C7.9701 7.47031 7.80396 7.55998 7.68197 7.68197C7.55998 7.80396 7.47031 7.9701 7.41152 8.27026C7.34985 8.58507 7.33006 9.00351 7.32498 9.60263C7.32252 9.89256 7.08549 10.1256 6.79555 10.1232C6.50561 10.1207 6.27256 9.88366 6.27502 9.59372C6.28007 8.99824 6.2985 8.49011 6.3811 8.06842C6.46657 7.63208 6.62721 7.2518 6.93951 6.93951C7.2518 6.62721 7.63208 6.46657 8.06842 6.3811C8.49011 6.2985 8.99824 6.28007 9.59372 6.27502C9.88366 6.27256 10.1207 6.50561 10.1232 6.79555ZM11.8751 6.79555C11.8776 6.50561 12.1146 6.27256 12.4046 6.27502C13 6.28007 13.5082 6.2985 13.9299 6.3811C14.3662 6.46657 14.7465 6.62721 15.0588 6.93951C15.3711 7.2518 15.5317 7.63208 15.6172 8.06842C15.6998 8.49011 15.7182 8.99824 15.7233 9.59372C15.7257 9.88366 15.4927 10.1207 15.2027 10.1232C14.9128 10.1256 14.6758 9.89256 14.6733 9.60263C14.6682 9.00351 14.6484 8.58507 14.5868 8.27026C14.528 7.9701 14.4383 7.80396 14.3163 7.68197C14.1943 7.55998 14.0282 7.47031 13.728 7.41152C13.4132 7.34985 12.9948 7.33006 12.3957 7.32498C12.1057 7.32252 11.8727 7.08549 11.8751 6.79555ZM7.32498 12.396C7.32252 12.1061 7.08549 11.873 6.79555 11.8755C6.50561 11.8779 6.27256 12.115 6.27502 12.4049C6.28007 13.0004 6.2985 13.5085 6.3811 13.9302C6.46657 14.3666 6.62721 14.7468 6.93951 15.0591C7.2518 15.3714 7.63208 15.5321 8.06842 15.6175C8.49011 15.7001 8.99824 15.7186 9.59372 15.7236C9.88366 15.7261 10.1207 15.493 10.1232 15.2031C10.1256 14.9131 9.89256 14.6761 9.60263 14.6737C9.00351 14.6686 8.58507 14.6488 8.27026 14.5871C7.9701 14.5283 7.80396 14.4387 7.68197 14.3167C7.55998 14.1947 7.47031 14.0285 7.41152 13.7284C7.34985 13.4136 7.33006 12.9951 7.32498 12.396ZM15.2027 11.8755C15.4927 11.8779 15.7257 12.115 15.7233 12.4049C15.7182 13.0004 15.6998 13.5085 15.6172 13.9302C15.5317 14.3666 15.3711 14.7468 15.0588 15.0591C14.7465 15.3714 14.3662 15.5321 13.9299 15.6175C13.5082 15.7001 13 15.7186 12.4046 15.7236C12.1146 15.7261 11.8776 15.493 11.8751 15.2031C11.8727 14.9131 12.1057 14.6761 12.3957 14.6737C12.9948 14.6686 13.4132 14.6488 13.728 14.5871C14.0282 14.5283 14.1943 14.4387 14.3163 14.3167C14.4383 14.1947 14.528 14.0285 14.5868 13.7284C14.6484 13.4136 14.6682 12.9951 14.6733 12.396C14.6758 12.1061 14.9128 11.873 15.2027 11.8755Z" fill="currentColor"/></g></svg>1,650 sq ft</li>
</ul>
<h3 class="rw-card__address">
<a class="rw-card__link" href="/homes/88-magnolia-ct-powder-springs-ga-30127-0b6c3b52-7f0c-4a3e-9a51-6f0e2d1a0003">88 Magnolia Ct, Powder Springs, GA 30127</a>
</h3>
</div>
</article>
</li>
</ul>
</div>
<aside class="rw-recipes rw-disclaimers rw-disclaimers--page" aria-label="Listing data notices">
<div class="rw-disclaimer" data-mls-id="nwmls">
<img class="rw-board-logo" src="https://photos.ruuster.com/mls/nwmls.png" alt="Northwest MLS logo" width="80" height="32" loading="lazy" decoding="async"/>
<div class="rw-disclaimer__text">
<p>Listing information is provided by Northwest MLS and is deemed reliable but not guaranteed.</p>
<p>To report a copyright concern, contact Northwest MLS.</p>
</div>
</div>
<div class="rw-disclaimer" data-mls-id="fmls">
<div class="rw-disclaimer__text">
<p>Information is deemed reliable but not guaranteed. First MLS.</p>
</div>
</div>
<p class="rw-asof">Data last updated <time dateTime="2026-11-04T15:00:00Z">November 4, 2026 at 3:00 PM UTC</time>.</p>
</aside>
</section>
| Element | Filled from |
|---|---|
section h2 |
your heading |
.rw-grid |
up to eight listings from GET /v1/collections/{collectionId}/listings, or your own listings (ownListings=true), as in listing-grid.html |
.rw-disclaimers |
meta.mls and meta.freshness.asOf of the same answer |
Step 4: Keep the data-rw-* hooks
The script reads only the data-rw-* attributes, so keep each one exactly as the files print it.
Class names are for the stylesheet. HOOKS.md in the package lists every attribute and what the
script does with it:
- Card photos. The arrows and a swipe step through the photos in
data-rw-photosand wrap around, and the dots follow. - Listing page. The header pins the price and the address once the price block scrolls away. A description longer than five lines gets a Show more button, and more than three open houses get a Show all button. The location map loads Google Maps with your key as it nears the screen.
- Listing page screens. Every button with
data-rw-open="gallery","share","contact"or"tour"inside the element withdata-rw-detailopens that screen. The gallery switches between its Photos and Street view tabs and opens the lightbox from a photo; the arrow keys, a swipe and Escape work as in React. The share screen uses the device's share sheet where there is one and copies your link. The contact and tour screens move through their steps and post the same LeadSubmission JSON as the React screens. Focus returns to the button that opened a screen, and the page behind it holds still. - Mortgage calculator. Each change waits 350 ms, then asks
GET /v1/mortgage/estimateat the address indata-rw-base-urland fills the figures, the est. badges and the notes. - Search box. After 3 characters and a 300 ms pause it asks
GET /v1/suggest, groups the places, and supports the arrow keys, Enter and Escape. Picking a place goes to your search page with?where=and the place's JSON, as the ReactSearchBoxdoes. - Filters. Empty fields stay out of the URL, and a changed select or box applies at once. The "More filters" button opens the filters drawer, and the sort menu in the results toolbar applies on change.
- Map. Price pins group into numbered circles until the visitor zooms in. After a pan or a zoom,
"Search this area" reloads your page with
bbox=; a drawn area or circle reloads it withpolygon=. - Lead forms. The button stays disabled until the visitor checks the consent box. The form then posts the LeadSubmission JSON to your route and shows the success text, or the error line with every field kept.
- GA4.
view_item_list,view_item,searchandgenerate_leadgo towindow.dataLayerwith the same fields as the React components. Your own Google Tag Manager container sends them on.
The script also shows its text in the same words as the React components, from the same source.
The markup the script adds while a visitor uses a widget is in html/ too, so you can style it:
packages/ruuster-idx-recipes/static/html/search-box-menu.html
<!--
The search box menu while it shows places (inside [data-rw-search-list]; remove hidden from the listbox and set aria-expanded="true" on the input).
From the React component SuggestGroups. Generated by npm run idx:recipes-static from @ruuster/idx-recipes. Do not edit it by hand.
Fill each value from:
.rw-search__group: one per row.group of GET /v1/suggest data, in the order the API first sends each group
.rw-search__heading: the group's label: City, ZIP code, Neighborhood, Address and so on
.rw-search__option: row.label; data-rw-search-option is the row's position in data; the active row has rw-search__option--active and aria-selected="true"
Every data-rw-* attribute is a hook for ruuster-idx.js; see ../HOOKS.md.
-->
<div role="group" aria-labelledby="search-box-1-g-city" class="rw-search__group">
<div role="presentation" id="search-box-1-g-city" class="rw-search__heading">City</div>
<div id="search-box-1-opt-0" role="option" aria-selected="true" class="rw-search__option rw-search__option--active" data-rw-search-option="0">Powder Springs, GA</div>
<div id="search-box-1-opt-2" role="option" aria-selected="false" class="rw-search__option" data-rw-search-option="2">Powderly, TX</div>
</div>
<div role="group" aria-labelledby="search-box-1-g-zip" class="rw-search__group">
<div role="presentation" id="search-box-1-g-zip" class="rw-search__heading">ZIP code</div>
<div id="search-box-1-opt-1" role="option" aria-selected="false" class="rw-search__option" data-rw-search-option="1">30127</div>
</div>
packages/ruuster-idx-recipes/static/html/lead-form-sent.html
<!--
What replaces a lead form after a successful send.
From the React component LeadFormSent. Generated by npm run idx:recipes-static from @ruuster/idx-recipes. Do not edit it by hand.
Fill each value from:
.rw-form__success: the form's data-rw-success text
Every data-rw-* attribute is a hook for ruuster-idx.js; see ../HOOKS.md.
-->
<div class="rw-recipes rw-form rw-form--sent" role="status" data-rw-lead-sent="">
<p class="rw-form__success">Thank you. We received your tour request and will contact you soon to confirm a time.</p>
</div>
packages/ruuster-idx-recipes/static/html/lead-form-error.html
<!--
The line added under the button when a send fails.
From the React component LeadFormError. Generated by npm run idx:recipes-static from @ruuster/idx-recipes. Do not edit it by hand.
Every data-rw-* attribute is a hook for ruuster-idx.js; see ../HOOKS.md.
-->
<p class="rw-form__error" role="alert" data-rw-form-error="">We could not send your request. Please check your connection and try again.</p>
packages/ruuster-idx-recipes/static/html/lightbox-figure.html
<!--
The open photo inside the full gallery's lightbox (first child of dialog[data-rw-lightbox]), here the second of six.
From the React component LightboxFigure. Generated by npm run idx:recipes-static from @ruuster/idx-recipes. Do not edit it by hand.
Fill each value from:
img: the photo, as on the card, with sizes="100vw" and loading="eager"
.rw-lightbox__count: "{position from 1} of {number of photos}"
Every data-rw-* attribute is a hook for ruuster-idx.js; see ../HOOKS.md.
-->
<figure class="rw-lightbox__figure" data-rw-lightbox-figure="">
<img src="https://photos.ruuster.com/l/1/1.jpg" width="1200" height="800" alt="Kitchen with an island" loading="eager" decoding="async" srcSet="https://photos.ruuster.com/l/1/1.jpg?width=480 480w, https://photos.ruuster.com/l/1/1.jpg?width=800 800w, https://photos.ruuster.com/l/1/1.jpg?width=1200 1200w" sizes="100vw"/>
<figcaption class="rw-lightbox__count">2 of 6</figcaption>
</figure>
packages/ruuster-idx-recipes/static/html/show-more.html
<!--
The Show more button added after a description that runs past five lines.
From the React component ShowMoreButton. Generated by npm run idx:recipes-static from @ruuster/idx-recipes. Do not edit it by hand.
Every data-rw-* attribute is a hook for ruuster-idx.js; see ../HOOKS.md.
-->
<button type="button" class="rw-detail__more" aria-expanded="false" data-rw-more="">Show more</button>
Step 5: Test it
- View the page source. Every listing's card, price and address is in the HTML your server sent, so search engines read it.
- Click a card's arrows and swipe on a phone. The photo and the dot change.
- Type three letters of a city in the search box. Places appear, and the arrow keys and Enter pick one.
- Open a listing, click "Choose tour time", pick a day and a time, then fill in your details, check the consent box and send. Your route receives the JSON, and the screen shows the summary.
- Click a photo on the listing page. The gallery opens at that photo, a photo opens the lightbox, and Escape closes each in turn.
- In the browser console, type
window.dataLayer. It listsview_item_listorview_item, andgenerate_leadafter a send. - Open a listing whose address is hidden. The page shows the city, state and ZIP code only, with no map and no Street view.
- Check that every board's disclaimer and the "Data last updated" line are on every page.
- View the page source and search for
idx_. No key appears anywhere in the page.
Examples in PHP and Python
Both examples print an area page with a card loop and a listing page with the tour form, in the
markup above, and receive the tour form at /api/leads/tour. Put ruuster-idx.css and
ruuster-idx.js in a static folder next to the file, set your secret key in the environment and
start the server as the first lines say. Set SITE_ORIGIN to the address your pages are served
from, because the lead route takes a form only when it is sent as JSON from that address. The plain HTTP example in Node.js, templates.mjs, prints
every widget above exactly and is checked against these files.
php/index.php
<?php
// The Ruuster Listings API recipe markup from PHP (8.1 or later, no packages). It prints an area page
// (the results toolbar, the More filters drawer and the card loop) and a listing page with every screen
// (the header, the photo grid and full gallery, the share, contact and tour dialogs, open houses, the
// location map and the mortgage calculator with its first answer) in the same HTML as the React recipe
// components, templates.mjs and python/app.py, so ruuster-idx.css styles it and ruuster-idx.js runs
// every screen, the forms and the GA4 events. Each function has the same name as in python/app.py.
//
// IDX_SECRET_KEY=idx_sk_your_key SITE_ORIGIN=http://localhost:8000 SITE_NAME="Your Brokerage" php -S localhost:8000 index.php
//
// Optional: GOOGLE_MAPS_KEY and GOOGLE_MAP_ID (the location map and Street view), AGENT_NAME,
// AGENT_EMAIL, AGENT_PHONE, AGENT_LICENSE, AGENT_PHOTO_URL (your agent on the contact surfaces).
//
// No key goes in a page. The mortgage calculator prints its first answer from here (asked with the
// secret key) and, as the visitor changes it, the browser asks the Listings API with no key: the API
// recognizes your approved website address. Add your site's address to your account's approved
// addresses first.
//
// Put ruuster-idx.css, ruuster-idx.js and icons.json in a static folder next to this file, then open
// http://localhost:8000/. Your keys stay in the environment, never in the file. SITE_ORIGIN is the
// address your pages are served from: the lead route takes a form only when it comes from that address.
$API = rtrim(getenv('IDX_BASE_URL') ?: 'https://idx.ruuster.com/v1', '/');
$SITE_NAME = getenv('SITE_NAME') ?: 'Your Brokerage';
$SITE_ORIGIN = getenv('SITE_ORIGIN') ?: '';
$MAPS_KEY = getenv('GOOGLE_MAPS_KEY') ?: null;
$MAP_ID = getenv('GOOGLE_MAP_ID') ?: null;
// Your area: the `where` row GET /v1/suggest answered, pasted in unchanged.
$AREA = ['name' => 'Midtown', 'where' => ['label' => 'Atlanta, GA Midtown', 'value' => 'a0000000-0000-4000-8000-000000000001', 'source' => 'neighborhood', 'data' => ['state' => 'GA']]];
$AGENT = ['name' => getenv('AGENT_NAME') ?: null, 'brokerage' => $SITE_NAME, 'license' => getenv('AGENT_LICENSE') ?: null, 'email' => getenv('AGENT_EMAIL') ?: null, 'phone' => getenv('AGENT_PHONE') ?: null, 'photoUrl' => getenv('AGENT_PHOTO_URL') ?: null];
$CONSENT = "I agree that $SITE_NAME may contact me by phone, text or email about this request.";
const ALERTS = 'Email me new listings like this one. I can unsubscribe at any time.';
const LEAD_ACTION = '/api/leads';
const CARD_SIZES = '(min-width: 1600px) 25vw, (min-width: 1280px) 33vw, (min-width: 602px) 50vw, 100vw';
const BADGES = ['new' => 'New', 'back_on_market' => 'Back on market', 'price_change' => 'Price change', 'coming_soon' => 'Coming soon'];
const FACT_ICONS = ['beds' => 'beds', 'baths' => 'bath', 'sqft' => 'square'];
const PARTS = [['anytime', 'Any time'], ['morning', 'Morning (8 AM to 12 PM)'], ['afternoon', 'Afternoon (12 PM to 4 PM)'], ['evening', 'Evening (4 PM to 8 PM)']];
const MONTHS = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
// What the lead route answers. Every answer is a full sentence.
const MESSAGES = [
'wrong_origin' => 'Please send this form from our website.',
'unreadable' => "We couldn't read this form. Please refresh the page and try again.",
'need_consent' => 'Please check the box to let us contact you about this request.',
];
/** GET an API path with the secret key, on the server. Returns [status, body]. Array values repeat the name. */
function api(string $path, array $params = []): array {
global $API;
$pairs = [];
foreach ($params as $k => $v) {
foreach (is_array($v) && array_is_list($v) ? $v : [$v] as $one) {
if ($one !== null) $pairs[] = [$k, is_array($one) ? json_encode($one, JSON_UNESCAPED_SLASHES) : (string) $one];
}
}
$ctx = stream_context_create(['http' => ['header' => 'Authorization: Bearer ' . getenv('IDX_SECRET_KEY'), 'ignore_errors' => true, 'timeout' => 10]]);
$raw = @file_get_contents("$API$path?" . form_encode($pairs), false, $ctx);
$status = isset($http_response_header[0]) && preg_match('/\s(\d{3})\s/', $http_response_header[0], $m) ? (int) $m[1] : 503;
return [$status, $raw === false ? null : json_decode($raw, true)];
}
// ─── Escaping, numbers and dates (as JavaScript and Intl en-US print them) ─────
function esc($value): string {
return str_replace(''', ''', htmlspecialchars((string) ($value ?? ''), ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401, 'UTF-8'));
}
/** name="value" pairs in order; null and false leave the attribute out, true prints it empty. */
function attrs(array $pairs): string {
$out = '';
foreach ($pairs as [$k, $v]) {
if ($v === null || $v === false) continue;
$out .= $v === true ? " $k=\"\"" : " $k=\"" . esc($v) . '"';
}
return $out;
}
function is_num($n): bool {
return (is_int($n) || is_float($n)) && is_finite((float) $n);
}
/** A number as JavaScript's String(n) prints it: 480000, 6.568, 7412.5. */
function js_num($n): string {
if (is_float($n) && floor($n) == $n && abs($n) < 1e15) return (string) (int) $n;
return is_float($n) ? json_encode($n) : (string) $n;
}
/** JSON as JavaScript's JSON.stringify prints it (whole floats as integers, no escaped slashes or Unicode). */
function js_json($value): string {
$plain = function ($v) use (&$plain) {
if (is_float($v) && floor($v) == $v && abs($v) < 1e15) return (int) $v;
if (is_array($v)) return array_map($plain, $v);
return $v;
};
return json_encode($plain($value), JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);
}
/** Math.round: halves go up. */
function js_round($n): int {
return (int) floor($n + 0.5);
}
/** 1234567 as 1,234,567; with decimals, at most that many, trailing zeros dropped. */
function grouped($n, int $decimals = 0): string {
if ($decimals === 0) return number_format(js_round($n));
return rtrim(rtrim(number_format($n, $decimals), '0'), '.');
}
function usd($n): string {
return is_num($n) && $n > 0 ? '$' . grouped($n) : '';
}
/** $480K, $1.3M, as Intl's compact notation with one decimal. */
function usd_compact($n): string {
if (!is_num($n) || $n <= 0) return '';
$units = [[1e12, 'T'], [1e9, 'B'], [1e6, 'M'], [1e3, 'K']];
foreach ($units as $i => [$size, $suffix]) {
if ($n >= $size) {
$v = js_round($n / $size * 10) / 10;
if ($v >= 1000 && $i > 0) {
[$size, $suffix] = $units[$i - 1];
$v = js_round($n / $size * 10) / 10;
}
return '$' . js_num((float) $v) . $suffix;
}
}
return '$' . js_num((float) (js_round($n * 10) / 10));
}
function count_text($n, string $one, string $many): string {
if (!is_num($n) || $n <= 0) return '';
return grouped($n, 2) . ' ' . ($n == 1 ? $one : $many);
}
/** encodeURIComponent. */
function enc(string $s): string {
return strtr(rawurlencode($s), ['%21' => '!', '%2A' => '*', '%27' => "'", '%28' => '(', '%29' => ')']);
}
/** URLSearchParams.toString(): spaces as +, and the characters JavaScript leaves alone. */
function form_encode(array $pairs): string {
$out = [];
foreach ($pairs as [$k, $v]) $out[] = str_replace('%2A', '*', urlencode((string) $k)) . '=' . str_replace('%2A', '*', urlencode((string) $v));
return implode('&', $out);
}
function with_query(string $base, array $pairs): string {
$q = form_encode($pairs);
return $q !== '' ? "$base?$q" : $base;
}
/** An ISO timestamp with Z or an offset as a DateTimeImmutable; null otherwise. */
function parse_instant(?string $raw): ?DateTimeImmutable {
if (!preg_match('/^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2})(?::(\d{2})(?:\.\d+)?)?(Z|[+-]\d{2}:?\d{2})$/i', $raw ?? '', $m)) return null;
$off = strtoupper($m[7]) === 'Z' ? '+00:00' : substr($m[7], 0, 3) . ':' . substr($m[7], -2);
return new DateTimeImmutable(sprintf('%s-%s-%sT%s:%s:%02d%s', $m[1], $m[2], $m[3], $m[4], $m[5], (int) ($m[6] ?: 0), $off));
}
function zone(?string $name): ?DateTimeZone {
if (!$name) return null;
try {
return new DateTimeZone($name);
} catch (Exception $e) {
return null;
}
}
/** 2026-11-04T15:00:00Z as "November 4, 2026 at 3:00 PM UTC". */
function as_of_text(string $iso): string {
$d = parse_instant($iso);
return $d ? $d->setTimezone(new DateTimeZone('UTC'))->format('F j, Y') . ' at ' . clock($d->setTimezone(new DateTimeZone('UTC'))) . ' UTC' : $iso;
}
/** 1:00 PM */
function clock(DateTimeInterface $d): string {
return $d->format('g:i A');
}
/** Saturday, November 7 */
function long_day(DateTimeInterface $d): string {
return $d->format('l, F j');
}
/** Sep 1, 2026, read in UTC. */
function short_date(?string $iso): string {
$d = parse_instant($iso);
return $d ? $d->setTimezone(new DateTimeZone('UTC'))->format('M j, Y') : '';
}
// ─── Listing facts ────────────────────────────────────────────────────────────
/** Street and unit, then city, state and ZIP. A hidden address shows the city, state and ZIP only. */
function address_line(array $a): string {
$locality = trim(implode(' ', array_filter([implode(', ', array_filter([$a['city'] ?? null, $a['state'] ?? null])), $a['postalCode'] ?? null])));
if (!empty($a['hidden'])) return $locality;
$unit = $a['unit'] ?? null;
$street = implode(' ', array_filter([$a['street'] ?? null, $unit ? (str_starts_with($unit, '#') ? $unit : "#$unit") : null]));
return $street !== '' ? implode(', ', array_filter([$street, $locality])) : (($a['display'] ?? '') ?: $locality);
}
function listing_name(array $l): string {
$a = $l['address'];
if (!empty($a['hidden'])) {
$place = ($a['city'] ?? null) ?: ($a['state'] ?? null);
return $place ? "Home in $place" : 'Home';
}
return address_line($a) ?: 'Home';
}
function shown_price(array $l) {
if (($l['status'] ?? '') === 'closed' && is_num($l['closePrice'] ?? null) && $l['closePrice'] > 0) return $l['closePrice'];
return is_num($l['price'] ?? null) && $l['price'] > 0 ? $l['price'] : null;
}
/** [[key, text]] for beds, baths and square feet; a missing or 0 fact is left out. */
function facts(array $l): array {
$sqft = is_num($l['sqft'] ?? null) && $l['sqft'] > 0 ? number_format(js_round($l['sqft'])) . ' sq ft' : '';
return array_values(array_filter([['beds', count_text($l['beds'] ?? null, 'bed', 'beds')], ['baths', count_text($l['baths'] ?? null, 'bath', 'baths')], ['sqft', $sqft]], fn($f) => $f[1] !== ''));
}
/** A URL to print in src or href: http and https addresses and page paths only. */
function safe_url($u): ?string {
if (!is_string($u) || $u === '' || str_starts_with($u, '//')) return null;
$scheme = parse_url($u, PHP_URL_SCHEME);
return $scheme === null || in_array(strtolower($scheme), ['http', 'https'], true) ? $u : null;
}
function dim($v, int $default): int {
return is_num($v) && $v > 0 && $v < 10000 ? js_round($v) : $default;
}
/** A photo's <img> attributes: srcset and sizes on photos.ruuster.com only, width and height always. */
function img(array $p, ?string $sizes, bool $priority, string $fallbackAlt): ?array {
$url = safe_url($p['url'] ?? null);
if (!$url) return null;
$alt = is_string($p['alt'] ?? null) && trim($p['alt']) !== '' ? $p['alt'] : $fallbackAlt;
$out = [['src', $url], ['width', dim($p['width'] ?? null, 800)], ['height', dim($p['height'] ?? null, 600)], ['alt', $alt], ['loading', $priority ? 'eager' : 'lazy'], ['decoding', 'async']];
if (parse_url($url, PHP_URL_HOST) === 'photos.ruuster.com') {
$sep = str_contains($url, '?') ? '&' : '?';
$out[] = ['srcset', implode(', ', array_map(fn($w) => "$url{$sep}width=$w {$w}w", [480, 800, 1200]))];
$out[] = ['sizes', $sizes ?: '100vw'];
}
if ($priority) $out[] = ['fetchpriority', 'high'];
return $out;
}
function photos_json(array $photos): string {
return js_json(array_map(fn($p) => ['url' => $p['url'], 'width' => $p['width'] ?? null, 'height' => $p['height'] ?? null, 'alt' => $p['alt'] ?? null], $photos));
}
function _load_icons(): array {
foreach ([__DIR__ . '/static', __DIR__ . '/../../../packages/ruuster-idx-recipes/static'] as $dir) {
if (is_file("$dir/icons.json")) return json_decode((string) file_get_contents("$dir/icons.json"), true) ?: [];
}
return [];
}
/** One icon as inline SVG, exactly as the Icon component prints it. */
function icon(string $name, int $size = 20, string $cls = ''): string {
static $icons = null;
$icons ??= _load_icons();
$d = $icons[$name];
return '<svg class="rw-icon' . ($cls !== '' ? " $cls" : '') . '" viewBox="' . esc($d['viewBox']) . "\" width=\"$size\" height=\"$size\" data-rw-icon=\"$name\" focusable=\"false\" aria-hidden=\"true\">" . $d['body'] . '</svg>';
}
/** A board's logo as an <img>, or nothing when the board has none. */
function board_logo(?array $logo, string $name, int $height): string {
$src = safe_url($logo['url'] ?? null);
if (!$src) return '';
return '<img' . attrs([['class', 'rw-board-logo'], ['src', $src], ['alt', ($logo['alt'] ?? '') ?: $name], ['width', dim($logo['width'] ?? null, 80)], ['height', dim($logo['height'] ?? null, $height)], ['loading', 'lazy'], ['decoding', 'async']]) . '>';
}
/** What the card prints for its board: the lines and the logo its board requires on cards. */
function card_attribution(array $l, array $mls): array {
$board = null;
foreach ($mls as $m) if ($m['mlsId'] === $l['mls']['id']) { $board = $m; break; }
$att = $l['attribution'];
$office = $att['listOfficeName'] ?? null;
$fallback = $office ? "Listing courtesy of $office" : null;
if ($board === null) return ['line' => $att['line'] ?? null, 'courtesy' => $att['courtesy'] ?? null, 'logo' => null, 'board_name' => $l['mls']['name'] ?? ''];
$onCard = array_map(fn($r) => $r['element'], array_filter($board['required'] ?? [], fn($r) => $r['placement'] === 'card'));
$line = array_intersect($onCard, ['listing_office', 'listing_agent', 'agent_contact']) ? (($att['line'] ?? null) ?: $fallback) : null;
$courtesy = in_array('courtesy_line', $onCard, true) ? (($att['courtesy'] ?? null) ?: ($line ? null : $fallback)) : null;
return ['line' => $line, 'courtesy' => $courtesy, 'logo' => in_array('mls_logo', $onCard, true) ? ($board['logo'] ?? null) : null, 'board_name' => $board['mlsName']];
}
/** Sat, Nov 7, 1:00 PM to 3:00 PM EST: the card's open house badge, in the listing's time zone. */
function open_house_badge(array $o): string {
$start = parse_instant($o['start'] ?? null);
$end = parse_instant($o['end'] ?? null);
$z = zone($o['timeZone'] ?? null);
if (!$start || !$z) return '';
$s = $start->setTimezone($z);
$range = $end ? clock($s) . ' to ' . clock($end->setTimezone($z)) : clock($s);
return $s->format('D, M j') . ", $range " . $s->format('T');
}
function badge_text(array $l): array {
if (($l['status'] ?? '') === 'closed') {
$when = short_date($l['closeDate'] ?? null);
return ['sold', $when ? "Sold $when" : 'Sold'];
}
$badges = $l['badges'] ?? [];
$ohs = $l['openHouses'] ?? [];
if ($ohs && array_filter($badges, fn($b) => $b['kind'] === 'open_house')) {
$when = open_house_badge($ohs[0]);
return ['open_house', $when ? "Open $when" : 'Open house'];
}
foreach ($badges as $b) if ($b['kind'] !== 'open_house') return isset(BADGES[$b['kind']]) ? [$b['kind'], BADGES[$b['kind']]] : [null, null];
return [null, null];
}
/** One listing card: html/listing-card.html. */
function card(array $l, array $mls, bool $priority): string {
$name = listing_name($l);
$photos = $l['photos'];
$many = count($photos) > 1;
$first = $photos ? img($photos[0], CARD_SIZES, $priority, $name) : null;
$photo = $first
? '<img' . attrs(array_merge([['class', 'rw-card__photo']], $first, [['data-rw-gallery-photo', true]])) . '>'
: '<div class="rw-card__nophoto" role="img" aria-label="No photo is available for this home.">' . icon('listing-no-image', 40, 'rw-card__nophoto-icon') . '<span class="rw-card__nophoto-text">No photo available</span></div>';
$arrows = '';
if ($many) {
$dots = '';
for ($i = 0; $i < min(count($photos), 5); $i++) $dots .= '<span class="rw-card__dot' . ($i === 0 ? ' rw-card__dot--on' : '') . '" data-rw-gallery-dot=""></span>';
$arrows = '<button type="button" class="rw-card__arrow rw-card__arrow--prev" aria-label="Previous photo" data-rw-gallery-prev="">' . icon('arrow-left-white', 18, 'rw-card__arrow-icon') . '</button>'
. '<button type="button" class="rw-card__arrow rw-card__arrow--next" aria-label="Next photo" data-rw-gallery-next="">' . icon('arrow-right-white', 18, 'rw-card__arrow-icon') . '</button>'
. '<span class="rw-card__dots" aria-hidden="true" data-rw-gallery-dots="">' . $dots . '</span>';
}
[$kind, $badge] = badge_text($l);
$att = card_attribution($l, $mls);
$logoSrc = safe_url($att['logo']['url'] ?? null);
$logo = $logoSrc ? '<img' . attrs([['class', 'rw-card__logo'], ['src', $logoSrc], ['alt', ($att['logo']['alt'] ?? '') ?: $att['board_name']], ['width', dim($att['logo']['width'] ?? null, 80)], ['height', dim($att['logo']['height'] ?? null, 32)], ['loading', 'lazy']]) . '>' : '';
$href = safe_url($l['href'] ?? null) ?: '/homes/' . rawurlencode($l['slug']);
$facts = '';
foreach (facts($l) as [$k, $t]) $facts .= '<li class="rw-fact">' . icon(FACT_ICONS[$k], 18, 'rw-fact__icon') . esc($t) . '</li>';
$price = shown_price($l);
return '<article class="rw-recipes rw-card"' . attrs([['data-listing-id', $l['id']], ['data-status', $l['status']]]) . '>'
. '<div' . attrs([['class', 'rw-card__gallery'], ['data-rw-gallery', 'card'], ['data-rw-photos', $many ? photos_json($photos) : null], ['data-rw-photo-alt', $many ? $name : null]]) . ">$photo$logo$arrows</div>"
. ($badge ? "<span class=\"rw-card__badge rw-card__badge--$kind\">" . ($kind === 'open_house' ? icon('calendar-minimalistic', 14, 'rw-card__badge-icon') : '') . esc($badge) . '</span>' : '')
. '<div class="rw-card__band">'
. ($price ? '<p class="rw-card__price">' . usd($price) . '</p>' : '')
. ($facts ? "<ul class=\"rw-card__facts\">$facts</ul>" : '')
. '<h3 class="rw-card__address"><a class="rw-card__link" href="' . esc($href) . '">' . esc(address_line($l['address']) ?: $name) . '</a></h3>'
. ($att['line'] ? '<p class="rw-card__attribution">' . esc($att['line']) . '</p>' : '')
. ($att['courtesy'] ? '<p class="rw-card__courtesy">' . esc($att['courtesy']) . '</p>' : '')
. '</div></article>';
}
function ga4_item(array $l, ?int $index = null, ?string $listName = null): array {
$item = ['item_id' => ($l['mlsNumber'] ?? null) ?: $l['id'], 'item_name' => listing_name($l)];
if (shown_price($l) !== null) $item['price'] = shown_price($l);
foreach (['item_category' => $l['type'] ?? null, 'item_category2' => $l['subtype'] ?? null, 'item_brand' => $l['mls']['name'] ?? null] as $k => $v) if ($v) $item[$k] = $v;
if ($index !== null) {
$item['index'] = $index;
$item['item_list_name'] = $listName;
}
return $item;
}
/** The ListingGrid, with the GA4 view_item_list event that ruuster-idx.js pushes. */
function grid(array $listings, array $mls, string $listName): string {
if (!$listings) return '<div class="rw-recipes rw-grid rw-grid--empty"><p class="rw-empty">No homes match this search yet. Try a wider price range or fewer filters.</p></div>';
$items = [];
$html = '';
foreach ($listings as $i => $l) {
$items[] = ga4_item($l, $i, $listName);
$html .= '<li class="rw-grid__item">' . card($l, $mls, $i === 0) . '</li>';
}
$ga4 = js_json(['ecommerce' => ['item_list_name' => $listName, 'items' => $items]]);
return '<div class="rw-recipes rw-grid" data-rw-ga4-event="view_item_list" data-rw-ga4-params="' . esc($ga4) . '"><ul class="rw-grid__list" aria-label="' . esc($listName) . "\">$html</ul></div>";
}
/** Every board's logo, disclaimer and notices, then the Data last updated line. */
function disclaimers(array $mls, ?string $asOf): string {
$out = [];
$boards = [];
foreach ($mls as $m) $boards[$m['mlsId']] = $m;
foreach ($boards as $m) {
$texts = [];
foreach (array_merge([$m['disclaimer']['text'] ?? null], array_map(fn($n) => $n['text'] ?? null, $m['notices'] ?? [])) as $raw) {
if (!is_string($raw) || trim($raw) === '') continue;
foreach (preg_split('/\n+/', $raw) as $t) if (trim($t) !== '') $texts[] = trim($t);
}
$paras = implode('', array_map(fn($t) => '<p>' . esc($t) . '</p>', $texts ?: [$m['mlsName']]));
$out[] = '<div class="rw-disclaimer" data-mls-id="' . esc($m['mlsId']) . '">' . board_logo($m['logo'] ?? null, $m['mlsName'], 40) . "<div class=\"rw-disclaimer__text\">$paras</div></div>";
}
if ($asOf) $out[] = '<p class="rw-asof">Data last updated <time datetime="' . esc($asOf) . '">' . esc(as_of_text($asOf)) . '</time>.</p>';
return $out ? '<aside class="rw-recipes rw-disclaimers rw-disclaimers--page" aria-label="Listing data notices">' . implode('', $out) . '</aside>' : '';
}
/** Real page links that keep the page's other query parameters. Page 1 has no ?page=. */
function pagination(string $base, int $pageNo, int $pages, array $query = []): string {
if ($pages <= 1) return '';
$pageNo = min(max(1, $pageNo), $pages);
$keep = array_values(array_filter($query, fn($p) => $p[0] !== 'page'));
$href = fn($n) => with_query($base, array_merge($keep, $n > 1 ? [['page', (string) $n]] : []));
$shown = array_unique(array_merge([1, $pages], array_filter(range($pageNo - 2, $pageNo + 2), fn($p) => $p >= 1 && $p <= $pages)));
sort($shown);
$prev = $pageNo > 1 ? '<a class="rw-pagination__step" href="' . esc($href($pageNo - 1)) . '" rel="prev">Previous page</a>' : '';
$items = [];
foreach ($shown as $i => $p) {
if ($i && $p - $shown[$i - 1] > 1) {
$items[] = $p - $shown[$i - 1] === 2 ? '<li><a class="rw-pagination__page" href="' . esc($href($p - 1)) . '" aria-label="Page ' . ($p - 1) . '">' . ($p - 1) . '</a></li>' : '<li class="rw-pagination__gap" aria-hidden="true">…</li>';
}
$current = $p === $pageNo;
$items[] = '<li><a' . attrs([['class', $current ? 'rw-pagination__page rw-pagination__page--current' : 'rw-pagination__page'], ['href', $href($p)], ['aria-current', $current ? 'page' : null], ['aria-label', "Page $p"]]) . ">$p</a></li>";
}
$next = $pageNo < $pages ? '<a class="rw-pagination__step" href="' . esc($href($pageNo + 1)) . '" rel="next">Next page</a>' : '';
return '<nav class="rw-recipes rw-pagination" aria-label="Pages of results">' . $prev . '<ul class="rw-pagination__list">' . implode('', $items) . '</ul>' . $next . '</nav>';
}
// ─── The search page: results toolbar and More filters drawer ─────────────────
const SORT_OPTIONS = [['', 'Newest listings'], ['price_desc', 'Price, high to low'], ['price_asc', 'Price, low to high'], ['beds_desc', 'Most bedrooms'], ['baths_desc', 'Most bathrooms'], ['sqft_desc', 'Largest homes'], ['lot_desc', 'Largest lots'], ['price_reduced', 'Recently reduced'], ['oldest', 'Oldest listings']];
const STATUS_OPTIONS = [['active', 'For sale'], ['coming_soon', 'Coming soon'], ['pending', 'Pending'], ['under_contract', 'Under contract'], ['closed', 'Sold']];
const SUBTYPE_OPTIONS = [['house', 'House'], ['condo', 'Condo'], ['townhome', 'Townhome'], ['co-op', 'Co-op']];
const TYPE_OPTIONS = [['ResidentialIncome', 'Multi-family'], ['ManufacturedInPark', 'Manufactured home'], ['Land', 'Land'], ['Farm', 'Farm']];
const FILTER_KEEP = ['where', 'boundariesId', 'zip', 'city', 'state', 'shape', 'soldPeriod', 'openHousePeriod'];
const SEARCH_PARAMS = ['sort', 'priceMin', 'priceMax', 'bedsMin', 'bathsMin', 'subtype', 'type', 'status'];
const REPEATABLE = ['subtype', 'type', 'status'];
/** The React components' stable ids: djb2 of the path (xor), base 36. */
function stable_id(string $prefix, string $key): string {
$h = 5381;
foreach (mb_str_split($key) as $ch) $h = (($h * 33) ^ mb_ord($ch)) & 0xFFFFFFFF;
return "$prefix-" . base_convert((string) $h, 10, 36);
}
function option(string $value, string $label, bool $selected): string {
return '<option' . attrs([['value', $value], ['selected', $selected]]) . '>' . esc($label) . '</option>';
}
function list_of($v): array {
if ($v === null || $v === '') return [];
return array_map('strval', is_array($v) ? $v : [$v]);
}
function query_pairs(array $q): array {
$out = [];
foreach ($q as $k => $v) foreach (list_of($v) as $one) $out[] = [$k, $one];
return $out;
}
/** html/results-toolbar.html: "Showing N listings", the sort form and Grid | Map. */
function results_toolbar($total, string $view, string $base, array $query): string {
$n = is_num($total) && $total > 0 ? (int) $total : 0;
$pairs = query_pairs($query);
$sort = '';
foreach ($pairs as [$k, $v]) if ($k === 'sort') { $sort = $v; break; }
$current = $sort !== '' && $sort !== 'recommended' && in_array($sort, array_column(SORT_OPTIONS, 0), true) ? $sort : '';
$fid = stable_id('rw-sort', "$base#sort");
$viewHref = fn($v) => with_query($base, array_merge(array_values(array_filter($pairs, fn($p) => $p[0] !== 'view' && $p[0] !== 'page')), $v === 'map' ? [['view', 'map']] : []));
$link = fn($v, $label) => '<a' . attrs([['class', $view === $v ? 'rw-toolbar__view rw-toolbar__view--on' : 'rw-toolbar__view'], ['href', $viewHref($v)], ['aria-current', $view === $v ? 'page' : null], ['data-rw-view', $v]]) . ">$label</a>";
$hidden = '';
foreach ($pairs as [$k, $v]) if ($k !== 'sort' && $k !== 'page') $hidden .= '<input type="hidden" name="' . esc($k) . '" value="' . esc($v) . '">';
$options = implode('', array_map(fn($o) => option($o[0], $o[1], $o[0] === $current), SORT_OPTIONS));
return '<div class="rw-recipes rw-toolbar" role="group" aria-label="Search results" data-rw-toolbar="">'
. '<p class="rw-toolbar__count" data-rw-results-count=""><span class="rw-toolbar__showing">Showing</span> <mark class="rw-toolbar__total">' . ($n === 1 ? '1 listing' : number_format($n) . ' listings') . '</mark></p>'
. '<div class="rw-toolbar__controls"><form class="rw-toolbar__sort" method="get" action="' . esc($base) . "\" id=\"$fid\" data-rw-sort=\"\" data-rw-autosubmit=\"\">$hidden"
. "<label class=\"rw-toolbar__sort-label\" for=\"$fid-select\">Sort by</label><select class=\"rw-toolbar__select\" id=\"$fid-select\" name=\"sort\">$options</select>"
. '<button class="rw-visually-hidden" type="submit">Apply the sort order</button></form>'
. '<nav class="rw-toolbar__views" aria-label="How to see the listings" data-rw-view-switch="">' . $link('list', 'Grid') . $link('map', 'Map') . '</nav></div></div>';
}
function active_filter_count(array $v): int {
$set = fn($x) => $x !== null && $x !== '';
$st = list_of($v['status'] ?? null);
$flags = [$set($v['priceMin'] ?? null) || $set($v['priceMax'] ?? null), $set($v['bedsMin'] ?? null), $set($v['bathsMin'] ?? null), (bool) list_of($v['subtype'] ?? null), (bool) list_of($v['type'] ?? null), $st && $st !== ['active']];
return count(array_filter($flags));
}
function kept_pairs(array $v): array {
$out = [];
foreach (FILTER_KEEP as $k) {
if ($k === 'where') {
$w = $v['where'] ?? null;
foreach (is_array($w) && array_is_list($w) ? $w : [$w] as $one) if ($one !== null && $one !== '') $out[] = [$k, is_string($one) ? $one : js_json($one)];
} else {
foreach (list_of($v[$k] ?? null) as $one) $out[] = [$k, $one];
}
}
return $out;
}
/** html/filters.html without its own buttons: the GET form inside the drawer. */
function filters_form(string $action, array $v, string $fid): string {
$statuses = list_of($v['status'] ?? null);
$field = fn($key, $label, $control) => "<div class=\"rw-field\"><label class=\"rw-field__label\" for=\"$fid-$key\">$label</label>$control</div>";
$counts = function ($name, $key, $label, $top, $value) use ($field, $fid) {
$opts = option('', 'Any number', $value === '');
for ($i = 1; $i <= $top; $i++) $opts .= option((string) $i, "$i or more", $value === (string) $i);
return $field($key, $label, "<select class=\"rw-select\" id=\"$fid-$key\" name=\"$name\">$opts</select>");
};
$choice = fn($name, $label, $any, $options, $value) => $field($name, $label, "<select class=\"rw-select\" id=\"$fid-$name\" name=\"$name\">" . option('', $any, $value === '') . implode('', array_map(fn($o) => option($o[0], $o[1], $o[0] === $value), $options)) . '</select>');
$price = fn($key, $name, $label, $value) => "<label class=\"rw-field__label\" for=\"$fid-$key\">$label</label><input class=\"rw-input\" id=\"$fid-$key\" name=\"$name\" type=\"number\" inputMode=\"numeric\" min=\"0\" step=\"1000\" placeholder=\"Any price\" value=\"" . esc($value ?? '') . '">';
$sort = list_of($v['sort'] ?? null)[0] ?? '';
$boxes = '';
foreach (STATUS_OPTIONS as [$o, $t]) {
if ($o === 'closed' && !in_array('closed', $statuses, true)) continue;
$boxes .= '<label class="rw-check"><input' . attrs([['type', 'checkbox'], ['name', 'status'], ['checked', in_array($o, $statuses, true) || (!$statuses && $o === 'active')], ['value', $o]]) . "><span>$t</span></label>";
}
$hidden = '';
foreach (kept_pairs($v) as [$k, $x]) $hidden .= '<input type="hidden" name="' . esc($k) . '" value="' . esc($x) . '">';
return '<form class="rw-recipes rw-filters" method="get" action="' . esc($action) . "\" id=\"$fid\" aria-label=\"Filter homes\" data-rw-filters=\"\">$hidden"
. '<div class="rw-filters__row"><div class="rw-field rw-field--price">' . $price('pmin', 'priceMin', 'Minimum price', $v['priceMin'] ?? null) . $price('pmax', 'priceMax', 'Maximum price', $v['priceMax'] ?? null) . '</div>'
. $counts('bedsMin', 'beds', 'Bedrooms', 6, isset($v['bedsMin']) ? (string) $v['bedsMin'] : '')
. $counts('bathsMin', 'baths', 'Bathrooms', 5, isset($v['bathsMin']) ? (string) $v['bathsMin'] : '')
. $choice('subtype', 'Home type', 'Any home type', SUBTYPE_OPTIONS, list_of($v['subtype'] ?? null)[0] ?? '')
. $choice('type', 'Property type', 'Any property type', TYPE_OPTIONS, list_of($v['type'] ?? null)[0] ?? '')
. $field('sort', 'Sort by', "<select class=\"rw-select\" id=\"$fid-sort\" name=\"sort\">" . implode('', array_map(fn($o) => option($o[0], $o[1], $o[0] === $sort), SORT_OPTIONS)) . '</select>')
. "</div><fieldset class=\"rw-field rw-field--status\"><legend class=\"rw-field__label\">Status</legend>$boxes</fieldset></form>";
}
/** html/filters-drawer.html: the More filters pill and its drawer. */
function filters_drawer(string $action, array $value): string {
$base = stable_id('rw-filters', $action);
$did = "$base-drawer";
$fid = "$base-drawer-form";
$n = active_filter_count($value);
$label = $n > 0 ? "More filters ($n)" : 'More filters';
$badge = $n > 0 ? "<span class=\"rw-morefilters__badge\" aria-hidden=\"true\">$n</span>" : '';
return '<div class="rw-recipes rw-morefilters-wrap" data-rw-drawer-root="">'
. "<button type=\"button\" class=\"rw-morefilters\" aria-haspopup=\"dialog\" aria-expanded=\"false\" aria-controls=\"$did\" data-rw-drawer-open=\"$did\">" . icon('tuning-black', 24, 'rw-morefilters__icon') . "<span class=\"rw-morefilters__label\">$label</span>$badge</button>"
. "<dialog class=\"rw-drawer\" id=\"$did\" aria-labelledby=\"$did-title\" data-rw-drawer=\"\">"
. "<div class=\"rw-drawer__header\"><h2 class=\"rw-drawer__title\" id=\"$did-title\">More filters</h2><button type=\"button\" class=\"rw-drawer__close\" aria-label=\"Close the filters\" data-rw-drawer-close=\"\">" . icon('drawer-header-close', 24) . '</button></div>'
. '<div class="rw-drawer__body">' . filters_form($action, $value, $fid) . '</div>'
. '<div class="rw-drawer__footer"><a class="rw-drawer__reset" href="' . esc(with_query($action, kept_pairs($value))) . "\" data-rw-drawer-reset=\"\">Reset filters</a><button class=\"rw-button rw-drawer__show\" type=\"submit\" form=\"$fid\">Show results</button></div>"
. '</dialog></div>';
}
// ─── The listing page (html/listing-detail.html and its pieces) ──────────────
/** A detail row's value as the React ListingDetail prints it: a year reads 2004, other numbers 11,240. */
function detail_value($v, string $key = ''): string {
if (is_bool($v)) return $v ? 'Yes' : 'No';
if (is_array($v)) return implode(', ', $v);
if (is_num($v)) {
if (stripos($key, 'year') !== false && floor($v) == $v) return (string) (int) $v;
return grouped($v, 2);
}
return (string) $v;
}
function mini_summary(array $l): string {
$price = usd(shown_price($l));
$items = '';
foreach (facts($l) as [$k, $t]) $items .= '<li class="rw-mini__fact">' . icon(FACT_ICONS[$k], 18) . esc($t) . '</li>';
return '<div class="rw-mini" data-rw-mini=""><p class="rw-mini__line">'
. ($price ? '<span class="rw-mini__price">' . esc($price) . '</span><span class="rw-mini__dot" aria-hidden="true"></span>' : '')
. '<span class="rw-mini__address">' . esc(address_line($l['address']) ?: listing_name($l)) . '</span></p>'
. ($items ? "<ul class=\"rw-mini__facts\">$items</ul>" : '') . '</div>';
}
/** html/detail-header.html. */
function detail_header(array $l, ?string $back): string {
return '<header class="' . ($back ? 'rw-detail-header' : 'rw-detail-header rw-detail-header--bare') . '" data-rw-detail-header=""><div class="rw-detail-header__row">'
. ($back ? '<a class="rw-detail-header__back" href="' . esc($back) . '" data-rw-header-back="">' . icon('chevron-left', 20) . 'Back</a>' : '')
. '<div class="rw-detail-header__summary" data-rw-header-summary="">' . mini_summary($l) . '</div>'
. ($back ? '<a class="rw-detail-header__close" href="' . esc($back) . '" aria-label="Close" data-rw-header-close="">' . icon('close', 20) . '</a>' : '')
. '</div></header>';
}
/** html/photo-grid-N.html. */
function photo_grid(array $l, bool $streetView = false, bool $share = false, ?array $logo = null): string {
$photos = $l['photos'] ?? [];
$n = count($photos);
$name = listing_name($l);
$logoSrc = safe_url($logo['url'] ?? null);
$open = fn($tab, $index = null) => attrs([['data-rw-open', 'gallery'], ['data-rw-open-tab', $tab], ['data-rw-open-index', $index]]);
$cells = '';
foreach (array_slice($photos, 0, 5) as $i => $p) {
$a = img($p, $i === 0 ? '(min-width: 768px) 50vw, 100vw' : '25vw', $i === 0, $name);
$logoImg = $i === 0 && $logoSrc ? '<img' . attrs([['class', 'rw-photogrid__logo'], ['src', $logoSrc], ['alt', $logo['alt'] ?? ''], ['width', dim($logo['width'] ?? null, 100)], ['height', dim($logo['height'] ?? null, 40)], ['loading', 'lazy'], ['decoding', 'async'], ['data-rw-photo-logo', true]]) . '>' : '';
$inner = $a ? '<img' . attrs(array_merge($a, [['class', 'rw-photogrid__img']])) . '>' : icon('listing-no-image', 64, 'rw-photogrid__placeholder');
$cells .= "<button type=\"button\" class=\"rw-photogrid__cell rw-photogrid__cell--$i\" aria-label=\"View photo " . ($i + 1) . '"' . $open('photos', (string) $i) . ">$inner$logoImg</button>";
}
return '<div' . attrs([['class', 'rw-photogrid rw-photogrid--n' . min($n, 5)], ['data-rw-photo-grid', true], ['data-rw-photos', $n ? photos_json($photos) : null], ['data-rw-photo-alt', $n ? $name : null]]) . '>'
. ($cells ?: '<div class="rw-photogrid__empty" role="img" aria-label="No photo is available for this home.">' . icon('listing-no-image', 96, 'rw-photogrid__placeholder') . '</div>')
. ($share ? '<div class="rw-photogrid__actions"><button type="button" class="rw-photogrid__iconbtn" aria-label="Share this home" data-rw-open="share">' . icon('share-black', 17, 'rw-icon--white') . '</button></div>' : '')
. ($streetView ? '<button type="button" class="rw-photogrid__street"' . $open('street') . '>' . icon('street-view-white', 20, 'rw-icon--white') . 'Street view</button>' : '')
. ($n > 1 ? '<button type="button" class="rw-photogrid__count"' . $open('photos', '0') . '>' . icon('gallery-round', 16) . "$n photos</button>" : '')
. '</div>';
}
/** html/price-block.html. */
function price_block(array $l, string $addressAs = 'h1'): string {
$label = is_string($l['statusLabel'] ?? null) && trim($l['statusLabel']) !== '' ? $l['statusLabel'] : null;
$tone = $label && preg_match('/closed|sold/i', $label) ? 'danger' : ($label && preg_match('/pending/i', $label) ? 'accent' : 'green');
$price = usd(shown_price($l));
$items = '';
foreach (facts($l) as [$k, $t]) $items .= '<li class="rw-price__fact">' . icon(FACT_ICONS[$k], 16) . esc($t) . '</li>';
$tag = $addressAs === 'p' ? 'p' : 'h1';
return '<section class="rw-price" data-rw-price-block="">'
. ($label ? "<p class=\"rw-price__status rw-price__status--$tone\"><span class=\"rw-price__dot\" aria-hidden=\"true\"></span>" . esc($label) . '</p>' : '')
. ($price ? '<p class="rw-price__amount">' . esc($price) . '</p>' : '')
. ($items ? "<ul class=\"rw-price__facts\">$items</ul>" : '')
. "<$tag class=\"rw-price__address\">" . esc(address_line($l['address']) ?: listing_name($l)) . "</$tag></section>";
}
function clean(?string $s): string {
return trim(preg_replace('/\s+/', ' ', $s ?? ''));
}
function agent_name(?array $a): ?string {
return clean($a['name'] ?? null) ?: (clean($a['brokerage'] ?? null) ?: null);
}
function contact_label(?array $a): string {
return agent_name($a) ? 'Contact ' . agent_name($a) : 'Contact an agent';
}
function avatar(array $a, int $size, string $tone): string {
$photo = clean($a['photoUrl'] ?? null);
if (preg_match('#^https?://#i', $photo)) return "<img class=\"rw-avatar rw-avatar--$size\" src=\"" . esc($photo) . "\" alt=\"\" width=\"$size\" height=\"$size\" loading=\"lazy\" decoding=\"async\">";
$words = array_values(array_filter(explode(' ', agent_name($a) ?? ''), fn($w) => preg_match('/[A-Za-z0-9]/', $w)));
$initials = strtoupper(($words[0][0] ?? '') . (count($words) > 1 ? $words[count($words) - 1][0] : ''));
return $initials !== '' ? "<span class=\"rw-avatar rw-avatar--$size rw-avatar--$tone\" aria-hidden=\"true\">" . esc($initials) . '</span>' : '';
}
/** html/agent-info.html. */
function agent_info(array $a): string {
$who = agent_name($a);
$row = fn($label, $value, $side = '') => "<li class=\"rw-agentinfo__row\"><div class=\"rw-agentinfo__text\"><p class=\"rw-agentinfo__label\">$label</p><p class=\"rw-agentinfo__value\">" . esc($value) . "</p></div>$side</li>";
$rows = [];
if (clean($a['name'] ?? null) !== '') $rows[] = $row('Agent name', clean($a['name']), avatar($a, 45, 'grey'));
if (clean($a['brokerage'] ?? null) !== '') $rows[] = $row('Brokerage', clean($a['brokerage']));
if (clean($a['license'] ?? null) !== '') $rows[] = $row('License number', clean($a['license']));
$email = clean($a['email'] ?? null);
if ($email !== '') {
$ok = preg_match('/^[^\s@<>"]+@[^\s@<>"]+\.[^\s@<>"]+$/', $email);
$rows[] = $row('Email', $email, $ok ? '<a class="rw-agentinfo__round" href="' . esc("mailto:$email") . '" aria-label="' . esc($who ? "Email $who" : 'Email the agent') . '">' . icon('letter', 20) . '</a>' : '');
}
$phone = clean($a['phone'] ?? null);
if ($phone !== '') {
$digits = preg_replace('/(?!^)\+/', '', preg_replace('/[^\d+]/', '', $phone));
$ok = strlen(preg_replace('/\D/', '', $digits)) >= 7;
$rows[] = $row('Phone number', $phone, $ok ? '<a class="rw-agentinfo__round" href="' . esc("tel:$digits") . '" aria-label="' . esc($who ? "Call $who" : 'Call the agent') . '">' . icon('phone', 20) . '</a>' : '');
}
return $rows ? '<section class="rw-detail__block rw-agentinfo" data-rw-agent-info=""><h2 class="rw-detail__title">Agent information</h2><ul class="rw-agentinfo__rows">' . implode('', $rows) . '</ul></section>' : '';
}
/** html/agent-card.html and html/tour-card.html, stacked. */
function contact_cards(?array $a): string {
$name = agent_name($a);
return '<div class="rw-contactcards" data-rw-contact-cards=""><div class="rw-agentcard" data-rw-agent-card="">'
. ($name ? '<div class="rw-agentcard__who">' . avatar($a, 48, 'dark') . '<p class="rw-agentcard__name">' . esc($name) . '</p></div>' : '')
. '<h2 class="rw-agentcard__title">Questions about this home?</h2><p class="rw-agentcard__text">We are ready to answer any questions you have about this home, or to schedule a tour if you want to see it in person.</p>'
. '<button type="button" class="rw-button rw-button--block" data-rw-open="contact">' . esc(contact_label($a)) . '</button></div>'
. '<div class="rw-tourcard" data-rw-tour-card=""><h2 class="rw-tourcard__title">Schedule a tour</h2><p class="rw-tourcard__text">Choose a day and time that works for you to see this home in person or by video.</p><button type="button" class="rw-button rw-button--accent rw-button--block" data-rw-open="tour">Choose tour time</button></div></div>';
}
/** html/mobile-bar.html. */
function mobile_bar(?array $a): string {
return '<div class="rw-mobilebar" data-rw-mobile-bar=""><button type="button" class="rw-button rw-button--block" data-rw-open="contact">' . esc(contact_label($a)) . '</button><button type="button" class="rw-button rw-button--accent rw-button--block" data-rw-open="tour">Choose tour time</button></div>';
}
/** The open houses to show: not ended, starting within 30 days, sorted; Today, Tomorrow and the times on the listing's clock. */
function open_house_entries(array $items, DateTimeImmutable $now): array {
$rows = [];
$instant = function (?string $raw): array {
$d = parse_instant($raw);
if ($d) return [$d, true];
// A start with no offset is read as its digits in UTC and shows no time.
if (preg_match('/^(\d{4})-(\d{2})-(\d{2})(?:[T ](\d{2}):(\d{2}))?/', $raw ?? '', $m)) return [new DateTimeImmutable(sprintf('%s-%s-%sT%s:%s:00+00:00', $m[1], $m[2], $m[3], $m[4] ?? '00' ?: '00', $m[5] ?? '00' ?: '00')), false];
return [null, false];
};
foreach ($items as $o) {
[$start, $hasOffset] = $instant($o['start'] ?? null);
if (!$start) continue;
$end = !empty($o['end']) ? $instant($o['end'])[0] : null;
if ($start > $now->modify('+30 days') || ($end ? $end <= $now : $start <= $now)) continue;
$z = $hasOffset ? (zone($o['timeZone'] ?? null) ?? $start->getTimezone()) : new DateTimeZone('UTC');
$s = $start->setTimezone($z);
$n = $now->setTimezone($z);
$trusted = $hasOffset && (int) $s->format('G') >= 7 && (int) $s->format('G') <= 20;
$today = $s->format('Y-m-d') === $n->format('Y-m-d');
$tomorrow = !$today && $s->format('Y-m-d') === $now->modify('+1 day')->setTimezone($z)->format('Y-m-d');
$times = $trusted ? array_map(fn($d) => clock($d->setTimezone($z)), array_filter([$start, $end])) : [];
$rows[] = [
'at' => $start->getTimestamp(),
'start' => $o['start'],
'day' => $today ? 'Today' : ($tomorrow ? 'Tomorrow' : long_day($s)),
'date' => $today || $tomorrow ? long_day($s) : null,
'time' => $times ? implode(' to ', $times) : null,
'live' => $trusted && $end !== null && $start <= $now && $now < $end,
'remarks' => is_string($o['remarks'] ?? null) && trim($o['remarks']) !== '' ? trim($o['remarks']) : null,
];
}
usort($rows, fn($a, $b) => $a['at'] <=> $b['at']);
return $rows;
}
/** html/open-houses.html. */
function open_houses(array $items, bool $tour, DateTimeImmutable $now, string $listId = 'open-houses'): string {
$entries = open_house_entries($items, $now);
if (!$entries) return '';
$lis = '';
foreach ($entries as $i => $e) {
$lis .= '<li' . attrs([['class', 'rw-openhouses__entry'], ['hidden', $i >= 3], ['data-rw-oh-extra', $i >= 3]]) . '><p class="rw-openhouses__day"><time datetime="' . esc($e['start']) . '">' . esc($e['day']) . '</time></p>'
. ($e['date'] ? '<p class="rw-openhouses__date">' . esc($e['date']) . '</p>' : '')
. ($e['time'] ? '<p class="rw-openhouses__time">' . esc($e['time']) . '</p>' : '')
. ($e['live'] ? '<p class="rw-openhouses__live"><span class="rw-openhouses__dot" aria-hidden="true"></span>Happening now</p>' : '')
. ($e['remarks'] ? '<p class="rw-openhouses__remarks">' . esc($e['remarks']) . '</p>' : '') . '</li>';
}
$more = 'Show all ' . count($entries) . ' open houses';
$toggle = count($entries) > 3 ? '<button type="button" class="rw-openhouses__toggle" aria-expanded="false" aria-controls="' . esc($listId) . "\" data-rw-oh-toggle=\"\" data-rw-oh-more=\"$more\" data-rw-oh-fewer=\"Show fewer open houses\">$more</button>" : '';
$row = $tour ? '<div class="rw-openhouses__tour"><p class="rw-openhouses__prompt">Tour when it works for you.</p><button type="button" class="rw-button rw-button--accent" data-rw-open="tour">Schedule a tour</button></div>' : '';
return '<section class="rw-detail__block rw-openhouses" data-rw-open-houses=""><h2 class="rw-detail__title">' . (count($entries) === 1 ? 'Open house' : 'Open houses') . '</h2><ul class="rw-openhouses__grid" id="' . esc($listId) . "\">$lis</ul>$toggle$row</section>";
}
const SECTION_ICONS = [
'adabf788-a332-4729-98ef-9a950fe93aec' => 'checklist-minimalistic',
'b1b0a859-8f18-4f10-8075-74e935e3ffd7' => 'lamp',
'e7e42c57-1985-4dee-8499-de277c6652e7' => 'home',
'4917d0d0-c2e4-4ead-a38a-7dd68cae1c0e' => 'garage',
'0aeb8e6b-eeb7-4acd-af09-9e2775fd5411' => 'lightning',
'6b1aa338-816e-4071-afcc-5d32e5d4b1f4' => 'point-on-map',
'bf41618a-39fb-4b9e-9b59-848ab86141dd' => 'money-bag',
];
function property_details(array $sections): string {
if (!$sections) return '';
$out = '';
foreach ($sections as $i => $s) {
$items = '';
foreach ($s['items'] as $it) $items .= '<li class="rw-accordion__item"><span class="rw-accordion__label">' . esc($it['label']) . '</span> ' . esc(detail_value($it['value'], $it['key'] ?? '')) . '</li>';
$out .= '<details' . attrs([['class', 'rw-accordion'], ['open', $i === 0], ['data-category-id', $s['categoryId'] ?? null]]) . '><summary class="rw-accordion__summary">' . icon(SECTION_ICONS[strtolower((string) ($s['categoryId'] ?? ''))] ?? 'more-horizontal', 24, 'rw-accordion__icon') . '<span class="rw-accordion__title">' . esc($s['label']) . '</span>' . icon('chevron-down', 20, 'rw-accordion__chevron') . "</summary><ul class=\"rw-accordion__list\">$items</ul></details>";
}
return "<section class=\"rw-detail__block rw-details\"><h2 class=\"rw-detail__title\">Property details</h2><div class=\"rw-details__list\">$out</div></section>";
}
/** html/location-map.html. */
function location_map(string $key, ?string $mapId, $lat, $lng, ?string $priceLabel, string $address): string {
return '<div' . attrs([['class', 'rw-locmap'], ['role', 'region'], ['aria-label', "Map of this home's location"], ['data-rw-location-map', true], ['data-rw-maps-key', $key], ['data-rw-map-id', $mapId ?: null], ['data-rw-lat', js_num($lat)], ['data-rw-lng', js_num($lng)], ['data-rw-price-label', $priceLabel ?: null], ['data-rw-address', $address]]) . '>'
. '<div class="rw-locmap__canvas" data-rw-map-canvas=""></div><p class="rw-locmap__message" role="status">The map is loading.</p>'
. '<button type="button" class="rw-locmap__street" disabled="" data-rw-street-toggle="">' . icon('street-view-white', 20, 'rw-icon--white') . 'Street view</button>'
. '<button type="button" class="rw-locmap__expand" aria-label="Expand map" data-rw-expand="">' . icon('maximize', 20) . '</button></div>';
}
// ─── The mortgage calculator (html/mortgage-calculator.html) ─────────────────
const MORTGAGE_LINES = ['principalAndInterest', 'propertyTax', 'homeInsurance', 'mortgageInsurance', 'hoa'];
const MORTGAGE_ORDER = ['price', 'downPayment', 'downPaymentPercent', 'loanType', 'termYears', 'rateType', 'amortizationYears', 'creditScore', 'rate', 'state', 'zip', 'hoaMonthly', 'propertyTaxAnnual', 'insuranceAnnual'];
const CREDIT_SCORES = ['760+', '740-759', '720-739', '700-719', '680-699', '660-679', '640-659', '620-639', '<620'];
const CA_PROVINCES = ['AB', 'BC', 'MB', 'NB', 'NL', 'NS', 'NT', 'NU', 'ON', 'PE', 'QC', 'SK', 'YT'];
function country_of(?string $state): string {
return in_array(strtoupper($state ?? ''), CA_PROVINCES, true) ? 'CA' : 'US';
}
function fallback_options(string $country): array {
if ($country === 'CA') {
return ['loanTypes' => [['value' => 'fixed', 'label' => 'Fixed rate'], ['value' => 'variable', 'label' => 'Variable rate, fixed payment'], ['value' => 'adjustable', 'label' => 'Adjustable rate']], 'terms' => array_map(fn($i) => ['value' => (string) $i, 'label' => $i === 1 ? '1 year' : "$i years"], range(1, 10))];
}
return ['loanTypes' => array_map(fn($t) => ['value' => strtolower($t), 'label' => $t], ['Conventional', 'FHA', 'VA', 'USDA', 'Jumbo']), 'terms' => [['value' => '30', 'label' => '30 years, fixed'], ['value' => '20', 'label' => '20 years, fixed'], ['value' => '15', 'label' => '15 years, fixed'], ['value' => '30-arm', 'label' => '5/6 ARM']]];
}
/** A money figure from a number or a formatted string ("$7,412.50"); null when there is none. */
function money_of($v) {
if (is_num($v)) return $v >= 0 ? $v : null;
if (is_array($v)) return $v ? money_of($v[0]) : null;
if (!is_string($v) || !preg_match('/-?\d[\d,]*(?:\.\d+)?/', $v, $m) || str_starts_with($m[0], '-')) return null;
$n = (float) str_replace(',', '', $m[0]);
return floor($n) == $n ? (int) $n : $n;
}
/** Payments per month for an MLS fee frequency; missing = monthly; one-time or unknown = null. */
function per_month($freq) {
if ($freq === null || $freq === '') return 1;
$f = preg_replace('/[^a-z]/', '', strtolower((string) (is_array($freq) ? $freq[0] : $freq)));
if ($f === '' || str_starts_with($f, 'month')) return 1;
if ($f === 'bimonthly' || str_contains($f, 'everyothermonth')) return 1 / 2;
if (str_starts_with($f, 'quarter')) return 1 / 3;
if (str_starts_with($f, 'semiannual') || str_contains($f, 'twiceayear')) return 1 / 6;
if (str_starts_with($f, 'annual') || str_starts_with($f, 'year')) return 1 / 12;
if (str_starts_with($f, 'semimonth')) return 2;
if (str_starts_with($f, 'biweek')) return 26 / 12;
if (str_starts_with($f, 'week')) return 52 / 12;
if (str_starts_with($f, 'dai')) return 365 / 12;
return null;
}
function mortgage_prefill(array $l): array {
$items = [];
foreach ($l['details'] ?? [] as $s) foreach ($s['items'] as $it) if (!array_key_exists($it['key'], $items)) $items[$it['key']] = $it['value'];
$hoa = null;
foreach ([['associationFee', 'associationFeeFrequency'], ['associationFee2', 'associationFee2Frequency'], ['associationFee3', 'associationFee3Frequency']] as [$fee, $freq]) {
$amount = money_of($items[$fee] ?? null);
$times = per_month($items[$freq] ?? null);
if ($amount === null || $times === null) continue;
$hoa = js_round((($hoa ?? 0) + $amount * $times) * 100) / 100;
}
$postal = $l['address']['postalCode'] ?? null;
return [
'price' => is_num($l['price'] ?? null) && $l['price'] > 0 ? $l['price'] : null,
'state' => $l['address']['state'] ?? null,
'zip' => is_string($postal) && preg_match('/^\d{5}(-\d{4})?$/', $postal) ? substr($postal, 0, 5) : null,
'hoaMonthly' => $hoa,
'propertyTaxAnnual' => money_of($items['taxAnnualAmount'] ?? null),
];
}
function mortgage_start(array $p): array {
$ca = country_of($p['state']) === 'CA';
return ['price' => $p['price'], 'downPaymentPercent' => 20, 'loanType' => null, 'termYears' => null, 'state' => $p['state'] ? strtoupper($p['state']) : null, 'zip' => $ca ? null : ($p['zip'] ?? null), 'hoaMonthly' => $p['hoaMonthly'] ?? null, 'propertyTaxAnnual' => $p['propertyTaxAnnual'] ?? null, 'insuranceAnnual' => null];
}
/** The canonical query string of GET /v1/mortgage/estimate. */
function mortgage_query(array $q): string {
$pairs = [];
foreach (MORTGAGE_ORDER as $k) if (($q[$k] ?? null) !== null && ($q[$k] ?? null) !== '') $pairs[] = [$k, is_num($q[$k]) ? js_num($q[$k]) : (string) $q[$k]];
return form_encode($pairs);
}
function mortgage_money($n): string {
return '$' . number_format(js_round($n));
}
function rate_date(string $iso): string {
$d = DateTimeImmutable::createFromFormat('!Y-m-d', substr($iso, 0, 10), new DateTimeZone('UTC'));
return $d ? $d->format('F j, Y') : $iso;
}
/** toFixed(3), with -0 as 0. */
function fixed3(float $x): string {
$s = number_format($x, 3, '.', '');
return $s === '-0.000' ? '0.000' : $s;
}
/**
* html/mortgage-calculator.html: `$est` is the first GET /v1/mortgage/estimate answer (data), or null.
* `$baseUrl` is where the browser asks for new figures (null: the API itself, from your approved
* website address). The page carries no key.
*/
function mortgage_calculator(?string $baseUrl, array $prefill, ?array $est, string $cid = 'mortgage'): string {
$country = ($est['country'] ?? null) ?: country_of($prefill['state']);
$ca = $country === 'CA';
$price = $prefill['price'];
$loanType = $est ? $est['inputs']['loanType'] : ($ca ? 'fixed' : 'conventional');
$term = $est ? ($est['country'] === 'US' && ($est['inputs']['rateType'] ?? null) === 'arm' ? $est['inputs']['termYears'] . '-arm' : (string) $est['inputs']['termYears']) : ($ca ? '5' : '30');
$opts = $est ? $est['options'] : fallback_options($country);
$m = $est['monthly'] ?? null;
$rate = $est ? $est['rate']['annualPercent'] : null;
$pmin = min(50000, max(1000, (int) floor($price / 5000) * 5000));
$pmax = max(2500000, (int) ceil($price * 3 / 5000) * 5000);
$select = fn($field, $label, $k, $value, $options) => "<div class=\"rw-field\"><label class=\"rw-field__label\" for=\"$cid-$k\">$label</label><select class=\"rw-select\" id=\"$cid-$k\" data-rw-mortgage-field=\"$field\">" . implode('', array_map(fn($o) => option($o['value'], $o['label'], $o['value'] === $value), $options)) . '</select></div>';
$slider = function ($field, $k, $label, $value, $lo, $hi, $step, $extra = '', $hint = null) use ($cid) {
$v = $value === null ? '' : js_num($value);
$rv = $value === null ? js_num($lo) : js_num($value);
$range = 'min="' . js_num($lo) . '" max="' . js_num($hi) . '" step="' . js_num($step) . '"';
$out = "<div class=\"rw-mortgage__slider\"><div class=\"rw-mortgage__slider-head\"><label class=\"rw-field__label\" id=\"$cid-$k-label\" for=\"$cid-$k\">$label</label>$extra</div>"
. "<input class=\"rw-input rw-mortgage__number\" id=\"$cid-$k\" type=\"number\" inputMode=\"decimal\" $range data-rw-mortgage-field=\"$field\" value=\"$v\">"
. "<input class=\"rw-mortgage__range\" type=\"range\" aria-labelledby=\"$cid-$k-label\" $range data-rw-mortgage-field=\"$field\" value=\"$rv\">";
if ($hint !== null) $out .= "<p class=\"rw-mortgage__hint\" data-rw-mortgage-out=\"{$hint[0]}\">" . esc($hint[1]) . '</p>';
return $out . '</div>';
};
$mode = "<fieldset class=\"rw-mortgage__mode\"><legend class=\"rw-visually-hidden\">Down payment</legend><label class=\"rw-mortgage__mode-option\"><input type=\"radio\" name=\"$cid-downmode\" data-rw-mortgage-field=\"downMode\" value=\"$\"><span>Dollars</span></label><label class=\"rw-mortgage__mode-option\"><input type=\"radio\" name=\"$cid-downmode\" data-rw-mortgage-field=\"downMode\" checked=\"\" value=\"%\"><span>Percent</span></label></fieldset>";
$more = '';
foreach ([['propertyTaxAnnual', 'Yearly property tax', $prefill['propertyTaxAnnual'] ?? null, $m ? js_round($m['propertyTax'] * 12) : null], ['insuranceAnnual', 'Yearly home insurance', null, $m ? js_round($m['homeInsurance'] * 12) : null], ['hoaMonthly', $ca ? 'Monthly condo fees' : 'Monthly HOA dues', $prefill['hoaMonthly'] ?? null, $m ? js_round($m['hoa']) : 0]] as [$field, $label, $value, $placeholder]) {
$more .= "<div class=\"rw-field\"><label class=\"rw-field__label\" for=\"$cid-$field\">$label</label><input" . attrs([['class', 'rw-input'], ['id', "$cid-$field"], ['type', 'text'], ['inputMode', 'decimal'], ['placeholder', $placeholder === null ? null : number_format($placeholder)], ['data-rw-mortgage-field', $field], ['value', $value === null ? '' : js_num($value)]]) . '></div>';
}
$circ = 2 * M_PI * 54;
$arcs = '';
$offset = 0.0;
foreach (MORTGAGE_LINES as $line) {
$len = $m && $m[$line] > 0 ? $m[$line] / ($m['total'] ?: 1) * $circ : 0.0;
$at = $m ? $offset : 0.0;
$offset += $len;
$arcs .= "<circle class=\"rw-mortgage__seg rw-mortgage__seg--$line\" cx=\"70\" cy=\"70\" r=\"54\" fill=\"none\" stroke-width=\"16\" stroke-dasharray=\"" . fixed3($len) . ' ' . fixed3($circ - $len) . '" stroke-dashoffset="' . fixed3(-$at) . "\" transform=\"rotate(-90 70 70)\" data-rw-mortgage-seg=\"$line\"></circle>";
}
$labels = ['principalAndInterest' => 'Principal and interest', 'propertyTax' => 'Property taxes', 'homeInsurance' => 'Home insurance', 'mortgageInsurance' => 'Mortgage insurance', 'hoa' => $ca ? 'Condo fees' : 'HOA dues'];
$estLabel = 'Estimated. Enter your own figure under More options.';
$rows = '';
foreach (MORTGAGE_LINES as $line) {
$badge = '';
if (in_array($line, ['propertyTax', 'homeInsurance', 'hoa'], true)) {
$hidden = $m && ($m['provenance'][$line] ?? null) === 'estimated' ? '' : ' hidden=""';
$badge = "<span class=\"rw-mortgage__est\" title=\"$estLabel\"$hidden data-rw-mortgage-est=\"$line\"><span aria-hidden=\"true\">est.</span><span class=\"rw-visually-hidden\">$estLabel</span></span>";
}
$rows .= "<li class=\"rw-mortgage__row\" data-line=\"$line\"><span class=\"rw-mortgage__dot rw-mortgage__dot--$line\" aria-hidden=\"true\"></span><span class=\"rw-mortgage__label\">{$labels[$line]}</span>$badge<span class=\"rw-mortgage__value\" data-rw-mortgage-out=\"$line\">" . ($m ? mortgage_money($m[$line]) : '') . '</span></li>';
}
$total = $m ? mortgage_money($m['total']) : '';
$note = $est['mortgageInsuranceNote'] ?? null;
$reasons = implode('', array_map(fn($r) => '<li>' . esc($r) . '</li>', $est['ineligibleReasons'] ?? []));
$hidden = ' hidden=""';
$scores = $ca ? '' : $select('creditScore', 'Credit score', 'score', '760+', array_map(fn($s) => ['value' => $s, 'label' => $s], CREDIT_SCORES));
return '<section' . attrs([['class', 'rw-recipes rw-mortgage'], ['aria-labelledby', "$cid-title"], ['data-rw-mortgage', true], ['data-rw-base-url', $baseUrl ?: null], ['data-rw-mortgage-query', js_json(mortgage_start($prefill))], ['data-country', $country]]) . '>'
. "<h2 class=\"rw-mortgage__title\" id=\"$cid-title\">Estimate your monthly payment</h2>"
. '<div class="rw-mortgage__selects">' . $select('loanType', 'Loan type', 'loan', $loanType, $opts['loanTypes']) . $select('term', 'Term', 'term', $term, $opts['terms']) . '</div>'
. '<div class="rw-mortgage__sliders">'
. $slider('price', 'price', 'Home price', $price, $pmin, $pmax, 5000)
. $slider('downPayment', 'down', 'Down payment', 20, 0, 100, 0.5, $mode, ['downHint', mortgage_money($price * 20 / 100) . ' down'])
. $slider('rate', 'rate', 'Interest rate', $rate, 0, 15, 0.01, '', ['rateHint', $est ? 'Market rate on ' . rate_date($est['rate']['asOf']) : ''])
. '</div>'
. "<details class=\"rw-mortgage__more\"><summary class=\"rw-mortgage__more-summary\">More options</summary><div class=\"rw-mortgage__more-grid\">$scores$more</div></details>"
. "<div class=\"rw-mortgage__result\"><div class=\"rw-mortgage__donut\" data-rw-mortgage-donut=\"\"><svg viewBox=\"0 0 140 140\" width=\"160\" height=\"160\" aria-hidden=\"true\" focusable=\"false\"><circle class=\"rw-mortgage__track\" cx=\"70\" cy=\"70\" r=\"54\" fill=\"none\" stroke-width=\"16\"></circle>$arcs</svg><p class=\"rw-mortgage__center\"><span class=\"rw-mortgage__total\" data-rw-mortgage-out=\"total\">$total</span><span class=\"rw-mortgage__per\">per month</span></p></div>"
. "<div class=\"rw-mortgage__lines\"><h3 class=\"rw-visually-hidden\">Monthly payment breakdown</h3><ul class=\"rw-mortgage__list\">$rows<li class=\"rw-mortgage__row rw-mortgage__row--total\"><span class=\"rw-mortgage__label\">Total</span><span class=\"rw-mortgage__value\" data-rw-mortgage-out=\"total\">$total</span></li></ul>"
. '<p class="rw-mortgage__note" data-rw-mortgage-out="note"' . ($note ? '' : $hidden) . '>' . esc($note ?? '') . '</p></div></div>'
. '<div class="rw-mortgage__reasons" data-rw-mortgage-out="reasons"' . (!$est || $est['eligible'] ? $hidden : '') . "><p class=\"rw-mortgage__reasons-title\">To qualify for this loan type, adjust the scenario:</p><ul>$reasons</ul></div>"
. '<p class="rw-mortgage__stale" data-rw-mortgage-out="stale"' . (!empty($est['stale']) ? '' : $hidden) . '>Some rates may be a few days old.</p>'
. '<p class="rw-mortgage__status" role="status" aria-live="polite"><span data-rw-mortgage-out="status"></span> <button type="button" class="rw-mortgage__link" hidden="" data-rw-mortgage-retry="">Try again</button></p>'
. '<div class="rw-mortgage__disclosures" data-rw-mortgage-out="disclosures">' . implode('', array_map(fn($d) => '<p>' . esc($d) . '</p>', $est['requiredDisclosures'] ?? [])) . '</div></section>';
}
/** GET /v1/mortgage/estimate for the listing's starting query, with the secret key; null on any failure. */
function mortgage_estimate(array $l): ?array {
$p = mortgage_prefill($l);
if (!$p['price'] || !$p['state']) return null;
parse_str(mortgage_query(mortgage_start($p)), $params);
[$status, $body] = api('/mortgage/estimate', $params);
return $status === 200 && !empty($body['ok']) ? $body['data'] : null;
}
// ─── The full gallery and the dialogs ─────────────────────────────────────────
const TILE_SIZES = ['full' => '(min-width: 1280px) 960px, (min-width: 992px) 60vw, 100vw', 'half' => '(min-width: 1280px) 480px, (min-width: 992px) 30vw, (min-width: 768px) 50vw, 100vw'];
/** html/full-gallery.html, closed. */
function full_gallery(array $l, bool $streetView, bool $share, string $sidebar, string $bar, string $gid = 'gallery'): string {
$photos = array_values(array_filter($l['photos'] ?? [], fn($p) => safe_url($p['url'] ?? null)));
$n = count($photos);
$tabs = '';
foreach ($streetView ? ['photos', 'street'] : ['photos'] as $t) {
$on = $t === 'photos';
$tabs .= "<button type=\"button\" role=\"tab\" id=\"$gid-tab-$t\" aria-selected=\"" . ($on ? 'true' : 'false') . "\" aria-controls=\"$gid-panel-$t\" tabindex=\"" . ($on ? '0' : '-1') . "\" class=\"rw-fullgallery__tab\" data-rw-gallery-tab=\"$t\">" . ($on ? 'Photos' : 'Street view') . '</button>';
}
$tiles = '';
foreach ($photos as $i => $p) {
$v = $i % 3 === 0 || ($i === $n - 1 && ($i % 3) % 2 === 1) ? 'full' : 'half';
$a = array_map(fn($pair) => [$pair[0], $pair[0] === 'alt' ? '' : ($pair[0] === 'loading' ? 'lazy' : $pair[1])], img($p, TILE_SIZES[$v], false, listing_name($l)));
$tiles .= "<button type=\"button\" class=\"rw-fullgallery__tile rw-fullgallery__tile--$v\" aria-label=\"Open photo " . ($i + 1) . " of $n\" data-rw-mosaic-tile=\"$i\"><img" . attrs($a) . '></button>';
}
$mosaic = $n ? "<div class=\"rw-fullgallery__mosaic\" data-rw-mosaic=\"\">$tiles</div>" : '<p class="rw-fullgallery__empty">No photo is available for this home.</p>';
$street = $streetView ? "<div role=\"tabpanel\" id=\"$gid-panel-street\" aria-labelledby=\"$gid-tab-street\" class=\"rw-fullgallery__panel rw-fullgallery__panel--street\" data-rw-gallery-panel=\"street\" hidden=\"\"><div class=\"rw-fullgallery__street\"><div class=\"rw-fullgallery__pano\" data-rw-street-pano=\"\"></div><div class=\"rw-fullgallery__street-wait\" role=\"status\">" . icon('street-view-white', 48, 'rw-fullgallery__street-icon') . '<span class="rw-visually-hidden">Street view is loading.</span></div></div></div>' : '';
$steps = $n > 1 ? '<button type="button" class="rw-lightbox__step rw-lightbox__step--prev" aria-label="Previous photo" data-rw-lightbox-prev="">' . icon('chevron-left', 24) . '</button><button type="button" class="rw-lightbox__step rw-lightbox__step--next" aria-label="Next photo" data-rw-lightbox-next="">' . icon('chevron-right', 24) . '</button>' : '';
$sticky = $sidebar !== '' ? "<div class=\"rw-fullgallery__sticky\">$sidebar</div>" : '';
return '<dialog class="rw-recipes rw-fullgallery" aria-label="Photo gallery" data-rw-screen="gallery">'
. "<div class=\"rw-fullgallery__header\" data-rw-gallery-header=\"\"><div class=\"rw-fullgallery__header-inner\"><div role=\"tablist\" aria-label=\"Photos and street view\" class=\"rw-fullgallery__tabs\">$tabs</div>"
. ($share ? '<div class="rw-fullgallery__actions"><button type="button" class="rw-fullgallery__share" data-rw-open="share">' . icon('share-white', 20) . 'Share</button></div>' : '')
. '<button type="button" class="rw-fullgallery__close" aria-label="Close the gallery" data-rw-gallery-close="">' . icon('close', 20) . '</button></div></div>'
. '<div class="rw-fullgallery__content' . ($bar !== '' ? '' : ' rw-fullgallery__content--nobar') . '"><div class="rw-fullgallery__columns"><div class="rw-fullgallery__main"><div class="rw-fullgallery__mark" data-rw-gallery-mark="" aria-hidden="true"></div><div class="rw-fullgallery__tabcontent">'
. "<div role=\"tabpanel\" id=\"$gid-panel-photos\" aria-labelledby=\"$gid-tab-photos\" class=\"rw-fullgallery__panel\" data-rw-gallery-panel=\"photos\">$mosaic</div>$street"
. ($share ? '<button type="button" class="rw-fullgallery__float-share" aria-label="Share this home" data-rw-open="share">' . icon('share-white', 16, 'rw-icon--white') . '</button>' : '')
. '</div></div><div class="rw-fullgallery__sidebar" data-rw-gallery-sidebar="">' . price_block($l, 'p') . "$sticky</div></div></div>"
. ($bar !== '' ? "<div class=\"rw-fullgallery__bar\">$bar</div>" : '')
. '<dialog class="rw-lightbox" aria-label="Photo gallery" data-rw-lightbox=""><button type="button" class="rw-lightbox__close" aria-label="Close the photo gallery" data-rw-lightbox-close="">' . icon('close', 20) . "</button>$steps</dialog></dialog>";
}
function modal(string $name, string $title, string $titleId, string $body): string {
return "<div class=\"rw-modal-host\" data-rw-screen=\"$name\"><dialog class=\"rw-recipes rw-modal rw-modal--md\" data-rw-modal=\"$name\" aria-labelledby=\"" . esc($titleId) . '"><div class="rw-modal__panel"><div class="rw-modal__header"><h2 class="rw-modal__title" id="' . esc($titleId) . '">' . esc($title) . '</h2><button type="button" class="rw-modal__close" aria-label="Close" data-rw-modal-close="">' . icon('close-white', 24) . "</button></div><div class=\"rw-modal__body\">$body</div></div></dialog></div>";
}
function share_subject(array $l): string {
$a = $l['address'];
if (!empty($a['hidden'])) {
$city = ($a['city'] ?? null) ?: ($a['state'] ?? null);
return $city ? "A home in $city" : 'Share this home';
}
$line = address_line($a);
return $line ? "A home at $line" : 'Share this home';
}
/** html/share-modal.html: `$url` is your own URL of the listing page. */
function share_modal(array $l, string $url, string $titleId = 'share-title', string $sid = 'share'): string {
$text = "Take a look at this home: $url";
$social = fn($name, $href, $label, $ico) => "<a class=\"rw-share__social rw-share__social--$name\" href=\"" . esc($href) . "\" target=\"_blank\" rel=\"noopener noreferrer\" aria-label=\"$label\" data-rw-share=\"$name\">" . icon($ico, 24) . '</a>';
$body = '<div class="rw-share" data-rw-share-url="' . esc($url) . '" data-rw-share-native="true"><h3 class="rw-share__heading">Send this home to someone</h3>'
. "<div class=\"rw-share__link\"><label class=\"rw-field__label\" for=\"$sid-url\">Link to this home</label><div class=\"rw-share__row\"><input class=\"rw-share__input\" id=\"$sid-url\" type=\"url\" readonly=\"\" data-rw-share-input=\"\" value=\"" . esc($url) . '">'
. "<button type=\"button\" class=\"rw-share__copy\" aria-describedby=\"$sid-copy-status\" data-rw-copy=\"\">" . icon('link', 18) . '<span data-rw-copy-label="">Copy link</span></button></div>'
. "<p class=\"rw-share__status\" id=\"$sid-copy-status\" role=\"status\" aria-live=\"polite\" data-rw-copy-status=\"\"></p></div><p class=\"rw-share__or\">or</p><div class=\"rw-share__socials\">"
. $social('facebook', 'https://www.facebook.com/sharer/sharer.php?u=' . enc($url), 'Share on Facebook', 'facebook')
. $social('whatsapp', 'https://wa.me/?text=' . enc($text), 'Share on WhatsApp', 'whats-app')
. $social('email', 'mailto:?subject=' . enc(share_subject($l)) . '&body=' . enc($text), 'Share by email', 'letter')
. '</div><button type="button" class="rw-share__more" hidden="" data-rw-share-more="">More ways to share</button></div>';
return modal('share', 'Share this home', $titleId, $body);
}
function lead_listing(array $l): string {
return js_json(['id' => $l['id'], 'mlsNumber' => $l['mlsNumber'] ?? null, 'url' => $l['href'] ?? null, 'name' => listing_name($l), 'price' => shown_price($l)]);
}
/** The 16 days from today in the listing's time zone (UTC on this server without one). */
function tour_days(DateTimeImmutable $now, ?string $tz): array {
$today = $now->setTimezone(zone($tz) ?? new DateTimeZone('UTC'));
$day = new DateTimeImmutable($today->format('Y-m-d') . 'T12:00:00+00:00');
$out = [];
for ($i = 0; $i < 16; $i++) {
$d = $day->modify("+$i days");
$out[] = ['iso' => $d->format('Y-m-d'), 'weekday' => $d->format('D'), 'day' => $d->format('j'), 'month' => $d->format('M')];
}
return $out;
}
function listing_zone(array $l): ?string {
foreach ($l['openHouses'] ?? [] as $o) if (!empty($o['timeZone'])) return $o['timeZone'];
return null;
}
function tour_card(array $l): string {
$photo = !empty($l['photos']) ? img($l['photos'][0], '114px', false, listing_name($l)) : null;
$price = usd(shown_price($l));
$items = '';
foreach (facts($l) as [$k, $t]) $items .= '<li class="rw-tour__card-fact">' . icon(FACT_ICONS[$k], 18) . esc($t) . '</li>';
return '<div class="rw-tour__card" data-rw-tour-listing="">'
. ($photo ? '<img' . attrs(array_merge([['class', 'rw-tour__card-img']], $photo)) . '>' : '<span class="rw-tour__card-img rw-tour__card-img--empty">' . icon('listing-no-image', 32) . '</span>')
. '<div class="rw-tour__card-body">'
. ($price ? '<p class="rw-tour__card-price">' . esc($price) . '</p>' : '')
. ($items ? "<ul class=\"rw-tour__card-facts\">$items</ul>" : '')
. (!empty($l['address']['hidden']) ? '' : '<p class="rw-tour__card-address">' . esc(address_line($l['address'])) . '</p>')
. '</div></div>';
}
function tour_date_fields(array $days, string $hintId, string $legendId, ?string $zone = null): string {
$buttons = '';
foreach ($days as $i => $d) $buttons .= '<button' . attrs([['type', 'button'], ['class', 'rw-tour__day'], ['aria-pressed', 'false'], ['hidden', $i >= 7], ['data-rw-day', $d['iso']]]) . "><span class=\"rw-tour__weekday\">{$d['weekday']}</span><span class=\"rw-tour__date\">{$d['day']}</span><span class=\"rw-tour__month\">{$d['month']}</span></button>";
$parts = implode('', array_map(fn($p) => "<button type=\"button\" class=\"rw-tour__part\" aria-pressed=\"false\" data-rw-part=\"{$p[0]}\">{$p[1]}</button>", PARTS));
return '<div class="rw-tour__days" data-rw-days="' . esc(js_json($days)) . '"' . ($zone ? ' data-rw-time-zone="' . esc($zone) . '"' : '') . '><button type="button" class="rw-tour__nav rw-tour__nav--prev" aria-label="Previous days" disabled="" data-rw-days-prev="">' . icon('chevron-left', 20) . '</button>'
. "<div class=\"rw-tour__day-list\" role=\"group\" aria-label=\"Day\">$buttons</div><button type=\"button\" class=\"rw-tour__nav rw-tour__nav--next\" aria-label=\"Next days\" data-rw-days-next=\"\">" . icon('chevron-right', 20) . '</button></div>'
. '<fieldset class="rw-tour__parts" aria-labelledby="' . esc($legendId) . '"><legend class="rw-field__label" id="' . esc($legendId) . "\">Time of day</legend><div class=\"rw-tour__part-list\">$parts</div></fieldset>"
. '<p class="rw-form__hint rw-tour__hint" id="' . esc($hintId) . '" data-rw-tour-hint="">Choose a day to continue.</p>';
}
function tour_success(): string {
$rows = '';
foreach ([['date', 'Tour date'], ['time', 'Tour time'], ['phone', 'Contact phone'], ['email', 'Email']] as [$k, $label]) $rows .= "<div class=\"rw-tour__summary-row\" hidden=\"\" data-rw-summary=\"$k\"><dt>$label</dt><dd></dd></div>";
return '<section class="rw-tour__success" hidden="" data-rw-step="sent" role="status"><span class="rw-tour__check">' . icon('check-white', 28) . '</span><h3 class="rw-tour__success-title" tabindex="-1">Tour request received</h3><p class="rw-tour__success-text">We received your request and will be in touch shortly to confirm.</p>'
. "<dl class=\"rw-tour__summary\">$rows</dl><div class=\"rw-modal__footer rw-modal__footer--end\"><button type=\"button\" class=\"rw-button\" data-rw-done=\"\">Done</button></div></section>";
}
function consent_boxes(string $fid, string $consent, ?string $alerts): string {
$out = "<div class=\"rw-modal__consent\"><label class=\"rw-check rw-consent\" for=\"$fid-consent\"><input id=\"$fid-consent\" type=\"checkbox\" name=\"consentContact\" aria-labelledby=\"$fid-consent-text\" data-rw-consent=\"\" value=\"yes\"><span id=\"$fid-consent-text\" data-rw-consent-text=\"\">" . esc($consent) . '</span></label>';
if ($alerts) $out .= "<label class=\"rw-check rw-consent\" for=\"$fid-alerts\"><input id=\"$fid-alerts\" type=\"checkbox\" name=\"consentAlerts\" aria-labelledby=\"$fid-alerts-text\" value=\"yes\"><span id=\"$fid-alerts-text\">" . esc($alerts) . '</span></label>';
return $out . '</div>';
}
function honeypot(string $fid): string {
return "<div class=\"rw-hp\" aria-hidden=\"true\"><label for=\"$fid-website\">Leave this field empty</label><input id=\"$fid-website\" name=\"website\" type=\"text\" tabindex=\"-1\" autoComplete=\"off\" value=\"\"></div>";
}
const STATUS_LINE = '<p class="rw-form__status" role="status" aria-live="polite" data-rw-form-status=""></p>';
function input_field(string $fid, string $key, string $label, string $control, bool $required): string {
return '<div class="rw-field"><label class="rw-field__label' . ($required ? ' rw-field__label--required' : '') . "\" for=\"$fid-$key\">$label</label>$control</div>";
}
/** html/contact-modal.html: the message form, the tour step and the summary. */
function contact_modal(array $l, ?array $agent, string $action, string $consent, ?string $alerts, DateTimeImmutable $now, array $ids): string {
$fid = $ids['contact'] ?? 'contact';
$message = !empty($l['address']['hidden']) ? 'I would like more information about this home.' : 'I would like more information about ' . address_line($l['address']) . '.';
$form = '<form class="rw-form rw-modal__form rw-contact__step" method="post" action="' . esc($action) . '" novalidate="" data-rw-step="form" data-rw-lead="contact" data-rw-success="Thank you. We will be in touch shortly." data-rw-lead-listing="' . esc(lead_listing($l)) . '"><h3 class="rw-modal__heading">How can we reach you?</h3>'
. '<div class="rw-form__row">'
. input_field($fid, 'first', 'First name', "<input class=\"rw-input\" id=\"$fid-first\" name=\"firstName\" autoComplete=\"given-name\" required=\"\" maxLength=\"80\" value=\"\">", true)
. input_field($fid, 'last', 'Last name', "<input class=\"rw-input\" id=\"$fid-last\" name=\"lastName\" autoComplete=\"family-name\" required=\"\" maxLength=\"80\" value=\"\">", true)
. '</div>'
. input_field($fid, 'email', 'Email', "<input class=\"rw-input\" id=\"$fid-email\" name=\"email\" type=\"email\" autoComplete=\"email\" required=\"\" maxLength=\"254\" value=\"\">", true)
. input_field($fid, 'phone', 'Phone (optional)', "<input class=\"rw-input\" id=\"$fid-phone\" name=\"phone\" type=\"tel\" autoComplete=\"tel\" maxLength=\"40\" value=\"\">", false)
. input_field($fid, 'message', 'Message (optional)', "<textarea class=\"rw-input rw-textarea\" id=\"$fid-message\" name=\"message\" rows=\"4\" maxLength=\"2000\">" . esc($message) . '</textarea>', false)
. honeypot($fid)
. consent_boxes($fid, $consent, $alerts)
. "<div class=\"rw-modal__footer rw-modal__footer--end\"><button class=\"rw-button\" type=\"submit\" disabled=\"\" aria-describedby=\"$fid-needconsent\" data-rw-submit=\"\">Send message</button></div>"
. "<p class=\"rw-form__hint\" id=\"$fid-needconsent\" data-rw-consent-hint=\"\">Check the box above to agree to be contacted, then send your request.</p>" . STATUS_LINE . '</form>';
$tour = '<section class="rw-contact__step" hidden="" data-rw-step="tour"><div class="rw-modal__intro"><h3 class="rw-modal__heading" tabindex="-1">Thank you. We will be in touch shortly.</h3><p class="rw-modal__text">We can also set up a tour of this home. Which day and time work for you?</p></div>'
. tour_card($l)
. tour_date_fields(tour_days($now, listing_zone($l)), "$fid-date-hint", $ids['contactLegend'] ?? "$fid-legend", listing_zone($l))
. "<div class=\"rw-modal__footer rw-modal__footer--end\"><button type=\"button\" class=\"rw-button\" disabled=\"\" aria-describedby=\"$fid-date-hint\" data-rw-tour-submit=\"\">Request a tour</button></div>" . STATUS_LINE . '</section>';
return modal('contact', contact_label($agent), $ids['contactTitle'] ?? "$fid-title", "<div class=\"rw-contact\">$form$tour" . tour_success() . '</div>');
}
/** html/tour-modal.html: the date step, the contact form and the summary. */
function tour_modal(array $l, string $action, string $consent, ?string $alerts, DateTimeImmutable $now, array $ids): string {
$fid = $ids['tour'] ?? 'tour';
$date = '<section class="rw-tour__step" data-rw-step="date"><div class="rw-modal__intro"><h3 class="rw-modal__heading" tabindex="-1">Choose a time that works for you.</h3><p class="rw-modal__text">Pick a day and a time of day, and we will confirm the tour with you.</p></div>'
. tour_card($l)
. tour_date_fields(tour_days($now, listing_zone($l)), "$fid-date-hint", $ids['tourLegend'] ?? "$fid-legend", listing_zone($l))
. "<div class=\"rw-modal__footer rw-modal__footer--end\"><button type=\"button\" class=\"rw-button\" disabled=\"\" aria-describedby=\"$fid-date-hint\" data-rw-next=\"\">Next</button></div></section>";
$info = '<form class="rw-form rw-modal__form rw-tour__step" method="post" action="' . esc($action) . '" novalidate="" hidden="" data-rw-step="info" data-rw-lead="tour" data-rw-success="Tour request received" data-rw-lead-listing="' . esc(lead_listing($l)) . '"><h3 class="rw-modal__heading" tabindex="-1">How can we reach you?</h3>'
. '<input type="hidden" name="tourDate" value=""><input type="hidden" name="tourTime" value="">'
. input_field($fid, 'name', 'Name', "<input class=\"rw-input\" id=\"$fid-name\" name=\"fullName\" autoComplete=\"name\" required=\"\" maxLength=\"160\" placeholder=\"First and last name\" value=\"\"><p class=\"rw-form__hint rw-field__error\" id=\"$fid-name-hint\" hidden=\"\" data-rw-name-hint=\"\">Enter your first and last name.</p>", true)
. input_field($fid, 'phone', 'Phone (optional)', "<input class=\"rw-input\" id=\"$fid-phone\" name=\"phone\" type=\"tel\" autoComplete=\"tel\" maxLength=\"40\" value=\"\">", false)
. input_field($fid, 'email', 'Email', "<input class=\"rw-input\" id=\"$fid-email\" name=\"email\" type=\"email\" autoComplete=\"email\" required=\"\" maxLength=\"254\" placeholder=\"you@example.com\" value=\"\">", true)
. honeypot($fid)
. consent_boxes($fid, $consent, $alerts)
. '<div class="rw-modal__footer"><button type="button" class="rw-modal__back" data-rw-back="">' . icon('chevron-left', 20) . "Back</button><button class=\"rw-button\" type=\"submit\" disabled=\"\" aria-describedby=\"$fid-needconsent\" data-rw-submit=\"\">Request a tour</button></div>"
. "<p class=\"rw-form__hint\" id=\"$fid-needconsent\" data-rw-consent-hint=\"\">Check the box above to agree to be contacted, then send your request.</p>" . STATUS_LINE . '</form>';
return modal('tour', 'Ready to tour?', $ids['tourTitle'] ?? "$fid-title", "<div class=\"rw-tour\">$date$info" . tour_success() . '</div>');
}
function requires(array $rules, string $element, string $placement): bool {
foreach ($rules as $r) if (($r['element'] ?? null) === $element && ($r['placement'] ?? null) === $placement) return true;
return false;
}
/** The listing page with every screen: html/listing-detail.html. `$o` holds the same options as templates.mjs detail(). */
function detail(array $l, array $mls, array $o = []): string {
$name = listing_name($l);
$board = null;
foreach ($mls as $m) if ($m['mlsId'] === $l['mls']['id']) { $board = $m; break; }
$rules = array_merge($board['required'] ?? [], $l['compliance']['required'] ?? []);
$c = $l['compliance'];
$tourUrl = safe_url($l['virtualTourUrl'] ?? null);
$sections = array_values(array_filter($l['details'] ?? [], fn($s) => !empty($s['items'])));
$attLine = ($c['attributionLine'] ?? null) ?: ($l['attribution']['line'] ?? null);
$courtesy = ($c['courtesyLine'] ?? null) ?: ($l['attribution']['courtesy'] ?? null);
$courtesyTop = $courtesy && requires($rules, 'courtesy_line', 'detail') ? $courtesy : null;
$inline = !empty($l['description']) && $attLine && (requires($rules, 'listing_office', 'detail') || requires($rules, 'listing_agent', 'detail') || requires($rules, 'agent_contact', 'detail')) ? $attLine : null;
$ids = $o['ids'] ?? [];
$now = isset($o['now']) ? (is_string($o['now']) ? parse_instant($o['now']) : $o['now']) : new DateTimeImmutable('now', new DateTimeZone('UTC'));
$lead = !empty($o['leadAction']) && !empty($o['consentText']);
$shareUrl = array_key_exists('shareUrl', $o) ? ($o['shareUrl'] ?: null) : ((($l['head']['canonical'] ?? null) ?: ($l['href'] ?? null)));
$lat = $l['geo']['lat'] ?? null;
$lng = $l['geo']['lng'] ?? null;
$located = !empty($o['googleMapsKey']) && is_num($lat) && is_num($lng) && abs($lat) <= 90 && abs($lng) <= 180 && !($lat == 0 && $lng == 0) && empty($l['address']['hidden']);
$agent = $o['agent'] ?? null;
$prefill = mortgage_prefill($l);
// The calculator shows when it has somewhere to ask (apiBaseUrl, or mortgage true for the API itself).
$showMortgage = ($o['mortgage'] ?? null) !== false && (!empty($o['apiBaseUrl']) || !empty($o['mortgage'])) && $prefill['price'] && ($l['status'] ?? '') !== 'closed' && !preg_match('/lease|rent/i', ($l['type'] ?? '') . ' ' . ($l['subtype'] ?? ''));
$sidebar = ($o['aside'] ?? '') ?: ($lead ? contact_cards($agent) : '');
$bar = empty($o['aside']) && $lead ? mobile_bar($agent) : '';
$item = ga4_item($l);
$ga4 = js_json(['ecommerce' => array_merge(['currency' => 'USD'], isset($item['price']) ? ['value' => $item['price']] : [], ['items' => [$item]])]);
$logo = null;
if ($board && !empty($board['logo']) && requires($rules, 'mls_logo', 'detail')) $logo = ['url' => $board['logo']['url'], 'alt' => ($board['logo']['alt'] ?? '') ?: $board['mlsName'], 'width' => $board['logo']['width'] ?? null, 'height' => $board['logo']['height'] ?? null];
$description = '';
if (!empty($l['description']) || $inline) {
$description = '<section class="rw-detail__block"><h2 class="rw-detail__title">Description</h2>'
. (!empty($l['description']) ? '<p class="rw-detail__description rw-detail__description--clamped" data-rw-description="">' . esc($l['description']) . '</p>' : '')
. ($tourUrl ? '<p><a class="rw-detail__tour" href="' . esc($tourUrl) . '" target="_blank" rel="noopener noreferrer">Take the virtual tour</a></p>' : '')
. ($inline ? '<p class="rw-detail__inline-attribution">' . esc($inline) . '</p>' : '')
. '</section>';
}
$showAgent = $agent && (clean($agent['license'] ?? null) !== '' || requires($rules, 'agent_contact', 'detail'));
$lines = '';
foreach ([['line', $inline ? null : $attLine], ['courtesy', $courtesyTop ? null : $courtesy]] as [$k, $v]) if ($v) $lines .= "<p class=\"rw-attribution__$k\">" . esc($v) . '</p>';
$main = ($courtesyTop ? '<p class="rw-detail__courtesy">' . esc($courtesyTop) . '</p>' : '')
. price_block($l)
. $description
. ($showAgent ? agent_info($agent) : '')
. open_houses($l['openHouses'] ?? [], $lead, $now, $ids['openHouses'] ?? 'open-houses')
. property_details($sections)
. ($showMortgage ? mortgage_calculator($o['apiBaseUrl'] ?? null, $prefill, $o['estimate'] ?? null, $ids['mortgage'] ?? 'mortgage') : '')
. ($located ? location_map($o['googleMapsKey'], $o['mapId'] ?? null, $lat, $lng, usd_compact(shown_price($l)), $name) : '')
. '<section class="rw-detail__block rw-detail__compliance" aria-label="Listing information"><section class="rw-recipes rw-attribution" data-mls-id="' . esc($c['mlsId']) . '">' . ($board ? board_logo($board['logo'] ?? null, $board['mlsName'], 32) : '') . "<div class=\"rw-attribution__text\">$lines</div></section>"
. (!empty($l['mlsNumber']) ? '<p class="rw-detail__mlsnumber">MLS number ' . esc($l['mlsNumber']) . ' (' . esc($l['mls']['name']) . ')</p>' : '')
. disclaimers($board ? [$board] : [], $c['asOf'] ?? null)
. '</section>';
$aside = !empty($o['aside']) ? "<aside class=\"rw-detail__aside\">{$o['aside']}</aside>" : ($sidebar !== '' ? "<aside class=\"rw-detail__aside rw-detail__aside--cards\">$sidebar</aside>" : '');
$screens = full_gallery($l, $located, (bool) $shareUrl, $sidebar, $bar, $ids['gallery'] ?? 'gallery');
if ($shareUrl) $screens .= share_modal($l, $shareUrl, $ids['shareTitle'] ?? 'share-title', $ids['share'] ?? 'share');
if ($lead) {
$screens .= contact_modal($l, $agent, $o['leadAction'], $o['consentText'], $o['alertsConsentText'] ?? null, $now, $ids);
$screens .= tour_modal($l, $o['leadAction'], $o['consentText'], $o['alertsConsentText'] ?? null, $now, $ids);
}
return '<article' . attrs([['class', $bar !== '' ? 'rw-recipes rw-detail rw-detail--bar' : 'rw-recipes rw-detail'], ['data-rw-detail', $l['id']], ['data-listing-id', $l['id']], ['data-status', $l['status']], ['data-rw-ga4-event', 'view_item'], ['data-rw-ga4-params', $ga4]]) . '>'
. detail_header($l, $o['backHref'] ?? null)
. '<div class="rw-detail__content">' . photo_grid($l, $located, (bool) $shareUrl, $logo) . "<div class=\"rw-detail__columns\"><div class=\"rw-detail__main\">$main</div>$aside</div></div>"
. $bar . $screens . '</article>';
}
/** The page shell: the stylesheet, your brand variables, the script and the JSON-LD the API built. */
function page(string $title, string $body, string $headHtml = '', ?array $themeVars = null): string {
global $SITE_NAME;
$decls = [];
foreach ($themeVars ?? [] as $k => $v) {
if (preg_match('/^--rw-[a-z0-9-]{1,80}$/', $k) && is_string($v) && preg_match('/^[^;{}<>\\\\]{1,200}$/', trim($v))) $decls[] = "$k:" . trim($v);
}
$brand = $decls ? '<style>:where(.rw-recipes){' . implode(';', $decls) . '}</style>' : '';
return "<!doctype html>\n<html lang=\"en\"><head><meta charset=\"utf-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>" . esc($title) . "</title>\n"
. "<link rel=\"stylesheet\" href=\"/ruuster-idx.css\">$brand\n<script src=\"/ruuster-idx.js\" defer></script>$headHtml</head>\n"
. '<body><header><a href="/">' . esc($SITE_NAME) . "</a></header>$body\n<footer><p>Equal Housing Opportunity. " . esc($SITE_NAME) . ' follows the Fair Housing Act.</p></footer></body></html>';
}
/**
* Your brand kit, kept in a file in the temp folder and read again every 10 minutes. After a failed call
* the page keeps the last brand variables it had (none before the first answer) and asks again a minute later.
*/
function theme_vars(): ?array {
$file = sys_get_temp_dir() . '/ruuster-idx-brand.json';
$cached = is_file($file) ? json_decode((string) @file_get_contents($file), true) : null;
if (is_array($cached) && time() < ($cached['until'] ?? 0)) return $cached['vars'] ?? null;
[$status, $body] = api('/meta');
$vars = $status === 200 ? ($body['data']['themeVars'] ?? null) : ($cached['vars'] ?? null);
@file_put_contents($file, json_encode(['vars' => $vars, 'until' => time() + ($status === 200 ? 600 : 60)]), LOCK_EX);
return $vars;
}
/** [scheme, host, port] for a URL, or null when it has no http or https origin. */
function origin_of(?string $url): ?array {
$u = parse_url($url ?? '');
if (!is_array($u) || !in_array($u['scheme'] ?? '', ['http', 'https'], true) || empty($u['host'])) return null;
return [$u['scheme'], strtolower($u['host']), $u['port'] ?? ($u['scheme'] === 'https' ? 443 : 80)];
}
/** The area page's own filters from its query string: one value each, a list for the repeatable ones. */
function search_query(string $query): array {
$out = [];
foreach (explode('&', $query) as $pair) {
if ($pair === '') continue;
[$k, $v] = array_map('urldecode', array_pad(explode('=', $pair, 2), 2, ''));
if (!in_array($k, SEARCH_PARAMS, true) || $v === '') continue;
if (in_array($k, REPEATABLE, true)) $out[$k][] = $v;
elseif (!isset($out[$k])) $out[$k] = $v;
}
foreach (['priceMin', 'priceMax', 'bedsMin', 'bathsMin'] as $k) if (isset($out[$k]) && !preg_match('/^\d+(\.\d+)?$/', $out[$k])) unset($out[$k]);
return $out;
}
function fail_json(int $status, string $key): void {
http_response_code($status);
exit(json_encode(['ok' => false, 'error' => MESSAGES[$key]], JSON_UNESCAPED_SLASHES));
}
// ─── Routes ────────────────────────────────────────────────────────────────────
$path = parse_url($_SERVER['REQUEST_URI'] ?? '/', PHP_URL_PATH);
if ($path === '/ruuster-idx.css' || $path === '/ruuster-idx.js') {
header('Content-Type: ' . (str_ends_with($path, '.css') ? 'text/css' : 'text/javascript') . '; charset=utf-8');
readfile(__DIR__ . '/static' . $path);
exit;
}
if (($_SERVER['REQUEST_METHOD'] ?? 'GET') === 'POST' && in_array($path, ['/api/leads', '/api/leads/tour'], true)) {
// The LeadSubmission JSON the contact and tour dialogs send.
header('Content-Type: application/json');
header('Cache-Control: no-store');
// Only your own pages may post: the Origin header must be exactly SITE_ORIGIN.
$origin = origin_of($_SERVER['HTTP_ORIGIN'] ?? null);
if ($origin === null || $origin !== origin_of($SITE_ORIGIN)) fail_json(403, 'wrong_origin');
if (!str_starts_with(strtolower($_SERVER['CONTENT_TYPE'] ?? ''), 'application/json')) fail_json(415, 'unreadable');
$lead = json_decode(file_get_contents('php://input', false, null, 0, 65536) ?: '{}', true);
if (!is_array($lead)) fail_json(400, 'unreadable');
if (!empty($lead['website'])) exit('{"ok":true}');
if (!is_array($lead['consent'] ?? null) || empty($lead['consent']['contact'])) fail_json(422, 'need_consent');
// Send the lead to your CRM here, with your CRM key from the environment.
error_log('lead ' . json_encode($lead));
exit('{"ok":true}');
}
if ($path === '/') {
$q = search_query($_SERVER['QUERY_STRING'] ?? '');
[$status, $body] = api('/listings', array_merge(['where' => $AREA['where'], 'status' => 'active'], $q, ['limit' => 24, 'detailHref' => '/homes/{slug}']));
if ($status !== 200) {
http_response_code(503);
header('Retry-After: 5');
exit(page('Please try again', '<main><h1>Please try again in a moment</h1></main>'));
}
$mls = $body['meta']['mls'] ?? [];
$main = '<main><h1>Homes for sale in ' . esc($AREA['name']) . '</h1>' . filters_drawer('/', $q) . results_toolbar($body['data']['total'] ?? 0, 'list', '/', $q)
. grid($body['data']['listings'], $mls, 'Homes in ' . $AREA['name']) . disclaimers($mls, $body['meta']['freshness']['asOf'] ?? null) . '</main>';
exit(page("Homes for sale in {$AREA['name']}", $main, $body['data']['jsonLdHtml'] ?? '', theme_vars()));
}
if (preg_match('#^/homes/([^/]*?([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}))$#', $path, $m)) {
[$status, $body] = api("/listings/{$m[2]}", ['detailHref' => '/homes/{slug}']);
if ($status === 200 && $body['data']['slug'] !== $m[1]) {
header("Location: /homes/{$body['data']['slug']}", true, 301);
exit;
}
if ($status === 200) {
$listing = $body['data'];
$options = [
'backHref' => '/',
'agent' => $AGENT,
'leadAction' => LEAD_ACTION,
'consentText' => $CONSENT,
'alertsConsentText' => ALERTS,
'shareUrl' => ($listing['head']['canonical'] ?? null) ?: rtrim($SITE_ORIGIN, '/') . '/homes/' . $listing['slug'],
'googleMapsKey' => $MAPS_KEY,
'mapId' => $MAP_ID,
// The mortgage calculator, with no key in the page: the browser asks the API itself, which
// recognizes your approved website address (IDX_BASE_URL only when you test against another API).
'mortgage' => true,
'apiBaseUrl' => getenv('IDX_BASE_URL') ? $API : null,
// The calculator's first answer, asked here with the secret key.
'estimate' => mortgage_estimate($listing),
];
exit(page(listing_name($listing), '<main>' . detail($listing, $body['meta']['mls'] ?? [], $options) . '</main>', $listing['jsonLdHtml'] ?? '', theme_vars()));
}
if ($status === 410) {
http_response_code(410);
header('X-Robots-Tag: noindex');
exit(page('This home is no longer available', '<main><h1>This home is no longer available</h1></main>'));
}
if ($status !== 404) {
http_response_code(503);
header('Retry-After: 5');
exit(page('Please try again', '<main><h1>Please try again in a moment</h1></main>'));
}
}
http_response_code(404);
echo page('Not found', '<main><h1>Page not found</h1></main>');
python/app.py
"""
The Ruuster Listings API recipe markup from Python, with the standard library only (Python 3.9 or
later). It prints an area page (the results toolbar, the More filters drawer and the card loop) and a
listing page with every screen (the header, the photo grid and full gallery, the share, contact and
tour dialogs, open houses, the location map and the mortgage calculator with its first answer) in
the same HTML as the React recipe components and templates.mjs, so ruuster-idx.css styles it and
ruuster-idx.js runs every screen, the forms and the GA4 events.
IDX_SECRET_KEY=idx_sk_your_key SITE_ORIGIN=http://localhost:8000 SITE_NAME="Your Brokerage" python app.py
Optional: GOOGLE_MAPS_KEY and GOOGLE_MAP_ID (the location map and Street view), AGENT_NAME,
AGENT_EMAIL, AGENT_PHONE, AGENT_LICENSE, AGENT_PHOTO_URL (your agent on the contact surfaces).
No key goes in a page. The mortgage calculator prints its first answer from here (asked with the
secret key) and, as the visitor changes it, the browser asks the Listings API with no key: the API
recognizes your approved website address. Add your site's address to your account's approved
addresses first.
Put ruuster-idx.css, ruuster-idx.js and icons.json in a static folder next to this file, then open
http://localhost:8000/. Your keys stay in the environment, never in the file. SITE_ORIGIN is the
address your pages are served from: the lead route takes a form only when it comes from that address.
"""
import html
import json
import math
import os
import re
import time
import urllib.error
import urllib.parse
import urllib.request
from datetime import datetime, timedelta, timezone
from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
try:
from zoneinfo import ZoneInfo
except ImportError: # Python 3.8 and earlier: open house times print in UTC
ZoneInfo = None
API = os.environ.get("IDX_BASE_URL", "https://idx.ruuster.com/v1").rstrip("/")
SECRET_KEY = os.environ.get("IDX_SECRET_KEY", "")
MAPS_KEY = os.environ.get("GOOGLE_MAPS_KEY") or None
MAP_ID = os.environ.get("GOOGLE_MAP_ID") or None
SITE_NAME = os.environ.get("SITE_NAME", "Your Brokerage")
SITE_ORIGIN = os.environ.get("SITE_ORIGIN", "")
PORT = int(os.environ.get("PORT", "8000"))
HERE = os.path.dirname(os.path.abspath(__file__))
STATIC = os.path.join(HERE, "static")
PACKAGE_STATIC = os.path.join(HERE, "..", "..", "..", "packages", "ruuster-idx-recipes", "static")
# Your area: the `where` row GET /v1/suggest answered, pasted in unchanged.
AREA = {"name": "Midtown", "where": {"label": "Atlanta, GA Midtown", "value": "a0000000-0000-4000-8000-000000000001", "source": "neighborhood", "data": {"state": "GA"}}}
AGENT = {k: os.environ.get(f"AGENT_{e}") or None for k, e in (("name", "NAME"), ("license", "LICENSE"), ("email", "EMAIL"), ("phone", "PHONE"), ("photoUrl", "PHOTO_URL"))}
AGENT["brokerage"] = SITE_NAME
CONSENT = f"I agree that {SITE_NAME} may contact me by phone, text or email about this request."
ALERTS = "Email me new listings like this one. I can unsubscribe at any time."
LEAD_ACTION = "/api/leads"
CARD_SIZES = "(min-width: 1600px) 25vw, (min-width: 1280px) 33vw, (min-width: 602px) 50vw, 100vw"
BADGES = {"new": "New", "back_on_market": "Back on market", "price_change": "Price change", "coming_soon": "Coming soon"}
FACT_ICONS = {"beds": "beds", "baths": "bath", "sqft": "square"}
PARTS = [("anytime", "Any time"), ("morning", "Morning (8 AM to 12 PM)"), ("afternoon", "Afternoon (12 PM to 4 PM)"), ("evening", "Evening (4 PM to 8 PM)")]
WEEKDAYS = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
LONG_WEEKDAYS = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]
LONG_MONTHS = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
# What the lead route answers. Every answer is a full sentence.
MESSAGES = {
"wrong_origin": "Please send this form from our website.",
"unreadable": "We couldn't read this form. Please refresh the page and try again.",
"need_consent": "Please check the box to let us contact you about this request.",
}
def api(path, params=None):
"""GET an API path with the secret key, on the server. Returns (status, body); 503 when the API can't be reached."""
pairs = []
for k, v in (params or {}).items():
for one in v if isinstance(v, list) else [v]:
if one is not None:
pairs.append((k, json.dumps(one) if isinstance(one, dict) else one))
req = urllib.request.Request(f"{API}{path}?{urllib.parse.urlencode(pairs)}", headers={"Authorization": f"Bearer {SECRET_KEY}"})
try:
with urllib.request.urlopen(req, timeout=10) as res:
return res.status, json.load(res)
except urllib.error.HTTPError as e:
return e.code, None
except (urllib.error.URLError, TimeoutError, OSError, ValueError):
# No answer (network, DNS or timeout) or an answer that isn't JSON: the page shows "Please try again".
return 503, None
# ─── Escaping, numbers and dates (as JavaScript and Intl en-US print them) ─────
def esc(value):
return html.escape("" if value is None else str(value), quote=True)
def attrs(pairs):
"""name="value" pairs in order; None and False leave the attribute out, True prints it empty."""
return "".join(f' {k}=""' if v is True else f' {k}="{esc(v)}"' for k, v in pairs if v is not None and v is not False)
def is_num(n):
return isinstance(n, (int, float)) and not isinstance(n, bool) and math.isfinite(n)
def js_num(n):
"""A number as JavaScript's String(n) prints it: 480000, 6.568, 7412.5."""
if isinstance(n, float) and n.is_integer():
return str(int(n))
return str(n)
def js_json(value):
"""JSON as JavaScript's JSON.stringify prints it (whole floats as integers, no spaces, no escaped Unicode)."""
def plain(v):
if isinstance(v, float) and v.is_integer():
return int(v)
if isinstance(v, dict):
return {k: plain(x) for k, x in v.items()}
if isinstance(v, list):
return [plain(x) for x in v]
return v
return json.dumps(plain(value), separators=(",", ":"), ensure_ascii=False)
def js_round(n):
"""Math.round: halves go up."""
return math.floor(n + 0.5)
def grouped(n, decimals=0):
"""1234567 as 1,234,567; with decimals, at most that many, trailing zeros dropped."""
if decimals == 0:
return f"{js_round(n):,}"
return f"{n:,.{decimals}f}".rstrip("0").rstrip(".")
def usd(n):
return f"${grouped(n)}" if is_num(n) and n > 0 else ""
def usd_compact(n):
"""$480K, $1.3M, as Intl's compact notation with one decimal."""
if not is_num(n) or n <= 0:
return ""
units = [(1e12, "T"), (1e9, "B"), (1e6, "M"), (1e3, "K")]
for i, (size, suffix) in enumerate(units):
if n >= size:
v = js_round(n / size * 10) / 10
if v >= 1000 and i > 0:
size, suffix = units[i - 1]
v = js_round(n / size * 10) / 10
return f"${js_num(float(v))}{suffix}"
return f"${js_num(float(js_round(n * 10) / 10))}"
def count_text(n, one, many):
if not is_num(n) or n <= 0:
return ""
return f"{grouped(n, 2)} {one if n == 1 else many}"
def enc(s):
"""encodeURIComponent."""
return urllib.parse.quote(s, safe="-_.!~*'()")
def form_encode(pairs):
"""URLSearchParams.toString(): spaces as +, and the characters JavaScript leaves alone."""
return "&".join(f"{urllib.parse.quote_plus(k, safe='*').replace('~', '%7E')}={urllib.parse.quote_plus(v, safe='*').replace('~', '%7E')}" for k, v in pairs)
def with_query(base, pairs):
q = form_encode(pairs)
return f"{base}?{q}" if q else base
def parse_instant(raw):
"""An ISO timestamp with Z or an offset as an aware datetime; None otherwise."""
m = re.match(r"^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2})(?::(\d{2})(?:\.\d+)?)?(Z|[+-]\d{2}:?\d{2})?$", raw or "", re.I)
if not m:
return None
y, mo, d, h, mi, s, off = m.groups()
if off is None:
return None
tz = timezone.utc if off.upper() == "Z" else timezone((1 if off[0] == "+" else -1) * timedelta(hours=int(off[1:3]), minutes=int(off[-2:])))
return datetime(int(y), int(mo), int(d), int(h), int(mi), int(s or 0), tzinfo=tz)
def zone(name):
try:
return ZoneInfo(name) if name and ZoneInfo else None
except Exception:
return None
def as_of_text(iso):
"""2026-11-04T15:00:00Z as "November 4, 2026 at 3:00 PM UTC"."""
d = parse_instant(iso)
if d is None:
return iso
d = d.astimezone(timezone.utc)
return f"{LONG_MONTHS[d.month - 1]} {d.day}, {d.year} at {clock(d)} UTC"
def clock(d):
"""1:00 PM"""
return f"{d.hour % 12 or 12}:{d.minute:02d} {'AM' if d.hour < 12 else 'PM'}"
def long_day(d):
"""Saturday, November 7"""
return f"{LONG_WEEKDAYS[d.weekday()]}, {LONG_MONTHS[d.month - 1]} {d.day}"
def short_date(iso):
"""Sep 1, 2026, read in UTC."""
d = parse_instant(iso or "")
return f"{MONTHS[d.month - 1]} {d.day}, {d.year}" if d else ""
# ─── Listing facts ────────────────────────────────────────────────────────────
def address_line(a):
"""Street and unit, then city, state and ZIP. A hidden address shows the city, state and ZIP only."""
locality = " ".join(x for x in [", ".join(x for x in [a.get("city"), a.get("state")] if x), a.get("postalCode")] if x).strip()
if a.get("hidden"):
return locality
unit = a.get("unit")
street = " ".join(x for x in [a.get("street"), (unit if unit.startswith("#") else f"#{unit}") if unit else None] if x)
return ", ".join(x for x in [street, locality] if x) if street else (a.get("display") or locality)
def listing_name(l):
a = l["address"]
if a.get("hidden"):
place = a.get("city") or a.get("state")
return f"Home in {place}" if place else "Home"
return address_line(a) or "Home"
def shown_price(l):
if l.get("status") == "closed" and is_num(l.get("closePrice")) and l["closePrice"] > 0:
return l["closePrice"]
return l["price"] if is_num(l.get("price")) and l["price"] > 0 else None
def facts(l):
"""[(key, text)] for beds, baths and square feet; a missing or 0 fact is left out."""
sqft = f"{js_round(l['sqft']):,} sq ft" if is_num(l.get("sqft")) and l["sqft"] > 0 else ""
return [(k, t) for k, t in (("beds", count_text(l.get("beds"), "bed", "beds")), ("baths", count_text(l.get("baths"), "bath", "baths")), ("sqft", sqft)) if t]
def safe_url(u):
"""A URL to print in src or href: http and https addresses and page paths only."""
if not isinstance(u, str) or not u or u.startswith("//"):
return None
return u if urllib.parse.urlsplit(u).scheme.lower() in ("", "http", "https") else None
def dim(v, default):
return js_round(v) if is_num(v) and 0 < v < 10000 else default
def img(photo, sizes, priority, fallback_alt):
"""A photo's <img> attributes: srcset and sizes on photos.ruuster.com only, width and height always."""
url = safe_url(photo.get("url"))
if not url:
return None
alt = photo.get("alt") if isinstance(photo.get("alt"), str) and photo["alt"].strip() else fallback_alt
out = [("src", url), ("width", dim(photo.get("width"), 800)), ("height", dim(photo.get("height"), 600)), ("alt", alt), ("loading", "eager" if priority else "lazy"), ("decoding", "async")]
if urllib.parse.urlsplit(url).netloc == "photos.ruuster.com":
sep = "&" if "?" in url else "?"
out += [("srcset", ", ".join(f"{url}{sep}width={w} {w}w" for w in (480, 800, 1200))), ("sizes", sizes or "100vw")]
if priority:
out.append(("fetchpriority", "high"))
return out
def photos_json(photos):
return js_json([{"url": p["url"], "width": p.get("width"), "height": p.get("height"), "alt": p.get("alt")} for p in photos])
def _load_icons():
for folder in (STATIC, PACKAGE_STATIC):
path = os.path.join(folder, "icons.json")
if os.path.exists(path):
with open(path, encoding="utf-8") as f:
return json.load(f)
return {}
ICONS = _load_icons()
def icon(name, size=20, cls=""):
"""One icon as inline SVG, exactly as the Icon component prints it."""
d = ICONS[name]
return f'<svg class="rw-icon{" " + cls if cls else ""}" viewBox="{esc(d["viewBox"])}" width="{size}" height="{size}" data-rw-icon="{name}" focusable="false" aria-hidden="true">{d["body"]}</svg>'
def board_logo(logo, name, height):
"""A board's logo as an <img>, or nothing when the board has none."""
src = safe_url((logo or {}).get("url"))
if not src:
return ""
return f"<img{attrs([('class', 'rw-board-logo'), ('src', src), ('alt', logo.get('alt') or name), ('width', dim(logo.get('width'), 80)), ('height', dim(logo.get('height'), height)), ('loading', 'lazy'), ('decoding', 'async')])}>"
def card_attribution(l, mls):
"""What the card prints for its board: the lines and the logo its board requires on cards."""
board = next((m for m in mls if m["mlsId"] == l["mls"]["id"]), None)
att = l["attribution"]
office = att.get("listOfficeName")
fallback = f"Listing courtesy of {office}" if office else None
if board is None:
return {"line": att.get("line"), "courtesy": att.get("courtesy"), "logo": None, "board_name": l["mls"].get("name")}
on_card = [r["element"] for r in board.get("required") or [] if r["placement"] == "card"]
line = (att.get("line") or fallback) if set(on_card) & {"listing_office", "listing_agent", "agent_contact"} else None
courtesy = (att.get("courtesy") or (None if line else fallback)) if "courtesy_line" in on_card else None
return {"line": line, "courtesy": courtesy, "logo": board.get("logo") if "mls_logo" in on_card else None, "board_name": board["mlsName"]}
def open_house_badge(o):
"""Sat, Nov 7, 1:00 PM to 3:00 PM EST: the card's open house badge, in the listing's time zone."""
start, end = parse_instant(o.get("start")), parse_instant(o.get("end") or "")
z = zone(o.get("timeZone"))
if start is None or z is None:
return ""
s = start.astimezone(z)
rng = f"{clock(s)} to {clock(end.astimezone(z))}" if end else clock(s)
return f"{WEEKDAYS[s.weekday()]}, {MONTHS[s.month - 1]} {s.day}, {rng} {s.tzname()}"
def badge_text(l):
if l.get("status") == "closed":
when = short_date(l.get("closeDate"))
return "sold", f"Sold {when}" if when else "Sold"
ohs = l.get("openHouses") or []
if any(b["kind"] == "open_house" for b in l.get("badges") or []) and ohs:
when = open_house_badge(ohs[0])
return "open_house", f"Open {when}" if when else "Open house"
first = next((b for b in l.get("badges") or [] if b["kind"] != "open_house"), None)
return (first["kind"], BADGES[first["kind"]]) if first and first["kind"] in BADGES else (None, None)
def card(l, mls, priority):
"""One listing card: html/listing-card.html."""
name, photos = listing_name(l), l["photos"]
many = len(photos) > 1
first = img(photos[0], CARD_SIZES, priority, name) if photos else None
if first:
photo = f"<img{attrs([('class', 'rw-card__photo')] + first + [('data-rw-gallery-photo', True)])}>"
else:
photo = f'<div class="rw-card__nophoto" role="img" aria-label="No photo is available for this home.">{icon("listing-no-image", 40, "rw-card__nophoto-icon")}<span class="rw-card__nophoto-text">No photo available</span></div>'
arrows = ""
if many:
dots = "".join(f'<span class="rw-card__dot{" rw-card__dot--on" if i == 0 else ""}" data-rw-gallery-dot=""></span>' for i in range(min(len(photos), 5)))
arrows = (
f'<button type="button" class="rw-card__arrow rw-card__arrow--prev" aria-label="Previous photo" data-rw-gallery-prev="">{icon("arrow-left-white", 18, "rw-card__arrow-icon")}</button>'
f'<button type="button" class="rw-card__arrow rw-card__arrow--next" aria-label="Next photo" data-rw-gallery-next="">{icon("arrow-right-white", 18, "rw-card__arrow-icon")}</button>'
f'<span class="rw-card__dots" aria-hidden="true" data-rw-gallery-dots="">{dots}</span>'
)
kind, badge = badge_text(l)
att = card_attribution(l, mls)
line, courtesy = att["line"], att["courtesy"]
logo_src = safe_url((att["logo"] or {}).get("url"))
logo = f"<img{attrs([('class', 'rw-card__logo'), ('src', logo_src), ('alt', att['logo'].get('alt') or att['board_name']), ('width', dim(att['logo'].get('width'), 80)), ('height', dim(att['logo'].get('height'), 32)), ('loading', 'lazy')])}>" if logo_src else ""
href = safe_url(l.get("href")) or f"/homes/{urllib.parse.quote(l['slug'])}"
fact_items = "".join(f'<li class="rw-fact">{icon(FACT_ICONS[k], 18, "rw-fact__icon")}{esc(t)}</li>' for k, t in facts(l))
return (
f'<article class="rw-recipes rw-card"{attrs([("data-listing-id", l["id"]), ("data-status", l["status"])])}>'
f'<div{attrs([("class", "rw-card__gallery"), ("data-rw-gallery", "card"), ("data-rw-photos", photos_json(photos) if many else None), ("data-rw-photo-alt", name if many else None)])}>{photo}{logo}{arrows}</div>'
+ (f'<span class="rw-card__badge rw-card__badge--{kind}">{icon("calendar-minimalistic", 14, "rw-card__badge-icon") if kind == "open_house" else ""}{esc(badge)}</span>' if badge else "")
+ '<div class="rw-card__band">'
+ (f'<p class="rw-card__price">{usd(shown_price(l))}</p>' if shown_price(l) else "")
+ (f'<ul class="rw-card__facts">{fact_items}</ul>' if fact_items else "")
+ f'<h3 class="rw-card__address"><a class="rw-card__link" href="{esc(href)}">{esc(address_line(l["address"]) or name)}</a></h3>'
+ (f'<p class="rw-card__attribution">{esc(line)}</p>' if line else "")
+ (f'<p class="rw-card__courtesy">{esc(courtesy)}</p>' if courtesy else "")
+ "</div></article>"
)
def ga4_item(l, index=None, list_name=None):
item = {"item_id": l.get("mlsNumber") or l["id"], "item_name": listing_name(l)}
if shown_price(l) is not None:
item["price"] = shown_price(l)
for key, value in (("item_category", l.get("type")), ("item_category2", l.get("subtype")), ("item_brand", l["mls"].get("name"))):
if value:
item[key] = value
if index is not None:
item.update(index=index, item_list_name=list_name)
return item
def grid(listings, mls, list_name):
"""The ListingGrid, with the GA4 view_item_list event that ruuster-idx.js pushes."""
if not listings:
return '<div class="rw-recipes rw-grid rw-grid--empty"><p class="rw-empty">No homes match this search yet. Try a wider price range or fewer filters.</p></div>'
ga4 = js_json({"ecommerce": {"item_list_name": list_name, "items": [ga4_item(l, i, list_name) for i, l in enumerate(listings)]}})
items = "".join(f'<li class="rw-grid__item">{card(l, mls, i == 0)}</li>' for i, l in enumerate(listings))
return f'<div class="rw-recipes rw-grid" data-rw-ga4-event="view_item_list" data-rw-ga4-params="{esc(ga4)}"><ul class="rw-grid__list" aria-label="{esc(list_name)}">{items}</ul></div>'
def disclaimers(mls, as_of):
"""Every board's logo, disclaimer and notices, then the Data last updated line."""
out = []
for m in {m["mlsId"]: m for m in mls}.values():
texts = [t.strip() for raw in [(m.get("disclaimer") or {}).get("text")] + [n.get("text") for n in m.get("notices") or []] if raw and raw.strip() for t in re.split(r"\n+", raw) if t.strip()]
paras = "".join(f"<p>{esc(t)}</p>" for t in texts or [m["mlsName"]])
out.append(f'<div class="rw-disclaimer" data-mls-id="{esc(m["mlsId"])}">{board_logo(m.get("logo"), m["mlsName"], 40)}<div class="rw-disclaimer__text">{paras}</div></div>')
if as_of:
out.append(f'<p class="rw-asof">Data last updated <time datetime="{esc(as_of)}">{esc(as_of_text(as_of))}</time>.</p>')
return f'<aside class="rw-recipes rw-disclaimers rw-disclaimers--page" aria-label="Listing data notices">{"".join(out)}</aside>' if out else ""
def pagination(base, page_no, pages, query=()):
"""Real page links that keep the page's other query parameters. Page 1 has no ?page=."""
if pages <= 1:
return ""
page_no = min(max(1, page_no), pages)
keep = [(k, v) for k, v in query if k != "page"]
def href(n):
return with_query(base, keep + ([("page", str(n))] if n > 1 else []))
shown = sorted({1, pages, *[p for p in range(page_no - 2, page_no + 3) if 1 <= p <= pages]})
prev = f'<a class="rw-pagination__step" href="{esc(href(page_no - 1))}" rel="prev">Previous page</a>' if page_no > 1 else ""
items = []
for i, p in enumerate(shown):
if i and p - shown[i - 1] > 1:
gap = p - shown[i - 1] == 2
items.append(f'<li><a class="rw-pagination__page" href="{esc(href(p - 1))}" aria-label="Page {p - 1}">{p - 1}</a></li>' if gap else '<li class="rw-pagination__gap" aria-hidden="true">…</li>')
current = p == page_no
items.append(f'<li><a{attrs([("class", "rw-pagination__page rw-pagination__page--current" if current else "rw-pagination__page"), ("href", href(p)), ("aria-current", "page" if current else None), ("aria-label", f"Page {p}")])}>{p}</a></li>')
nxt = f'<a class="rw-pagination__step" href="{esc(href(page_no + 1))}" rel="next">Next page</a>' if page_no < pages else ""
return f'<nav class="rw-recipes rw-pagination" aria-label="Pages of results">{prev}<ul class="rw-pagination__list">{"".join(items)}</ul>{nxt}</nav>'
# ─── The search page: results toolbar and More filters drawer ─────────────────
SORT_OPTIONS = [("", "Newest listings"), ("price_desc", "Price, high to low"), ("price_asc", "Price, low to high"), ("beds_desc", "Most bedrooms"), ("baths_desc", "Most bathrooms"), ("sqft_desc", "Largest homes"), ("lot_desc", "Largest lots"), ("price_reduced", "Recently reduced"), ("oldest", "Oldest listings")]
STATUS_OPTIONS = [("active", "For sale"), ("coming_soon", "Coming soon"), ("pending", "Pending"), ("under_contract", "Under contract"), ("closed", "Sold")]
SUBTYPE_OPTIONS = [("house", "House"), ("condo", "Condo"), ("townhome", "Townhome"), ("co-op", "Co-op")]
TYPE_OPTIONS = [("ResidentialIncome", "Multi-family"), ("ManufacturedInPark", "Manufactured home"), ("Land", "Land"), ("Farm", "Farm")]
FILTER_KEEP = ["where", "boundariesId", "zip", "city", "state", "shape", "soldPeriod", "openHousePeriod"]
SEARCH_PARAMS = ["sort", "priceMin", "priceMax", "bedsMin", "bathsMin", "subtype", "type", "status"]
REPEATABLE = {"subtype", "type", "status"}
def stable_id(prefix, key):
"""The React components' stable ids: djb2 of the path (xor), base 36."""
h = 5381
for ch in key:
h = ((h * 33) ^ ord(ch)) & 0xFFFFFFFF
digits = "0123456789abcdefghijklmnopqrstuvwxyz"
out = ""
while True:
h, r = divmod(h, 36)
out = digits[r] + out
if not h:
return f"{prefix}-{out}"
def option(value, label, selected):
return f"<option{attrs([('value', value), ('selected', selected)])}>{esc(label)}</option>"
def list_of(v):
return [] if v in (None, "") else [str(x) for x in (v if isinstance(v, list) else [v])]
def query_pairs(q):
return [(k, one) for k, v in q.items() for one in list_of(v)]
def results_toolbar(total, view, base, query):
"""html/results-toolbar.html: "Showing N listings", the sort form and Grid | Map."""
n = int(total) if is_num(total) and total > 0 else 0
pairs = query_pairs(query)
sort = next((v for k, v in pairs if k == "sort"), "")
current = sort if sort and sort != "recommended" and any(v == sort for v, _ in SORT_OPTIONS) else ""
fid = stable_id("rw-sort", f"{base}#sort")
def view_href(v):
return with_query(base, [(k, x) for k, x in pairs if k not in ("view", "page")] + ([("view", "map")] if v == "map" else []))
def link(v, label):
return f"<a{attrs([('class', 'rw-toolbar__view rw-toolbar__view--on' if view == v else 'rw-toolbar__view'), ('href', view_href(v)), ('aria-current', 'page' if view == v else None), ('data-rw-view', v)])}>{label}</a>"
hidden = "".join(f'<input type="hidden" name="{esc(k)}" value="{esc(v)}">' for k, v in pairs if k not in ("sort", "page"))
return (
'<div class="rw-recipes rw-toolbar" role="group" aria-label="Search results" data-rw-toolbar="">'
f'<p class="rw-toolbar__count" data-rw-results-count=""><span class="rw-toolbar__showing">Showing</span> <mark class="rw-toolbar__total">{"1 listing" if n == 1 else f"{n:,} listings"}</mark></p>'
f'<div class="rw-toolbar__controls"><form class="rw-toolbar__sort" method="get" action="{esc(base)}" id="{fid}" data-rw-sort="" data-rw-autosubmit="">{hidden}'
f'<label class="rw-toolbar__sort-label" for="{fid}-select">Sort by</label><select class="rw-toolbar__select" id="{fid}-select" name="sort">{"".join(option(v, t, v == current) for v, t in SORT_OPTIONS)}</select>'
'<button class="rw-visually-hidden" type="submit">Apply the sort order</button></form>'
f'<nav class="rw-toolbar__views" aria-label="How to see the listings" data-rw-view-switch="">{link("list", "Grid")}{link("map", "Map")}</nav></div></div>'
)
def active_filter_count(v):
st = list_of(v.get("status"))
flags = [v.get("priceMin") not in (None, "") or v.get("priceMax") not in (None, ""), v.get("bedsMin") not in (None, ""), v.get("bathsMin") not in (None, ""), bool(list_of(v.get("subtype"))), bool(list_of(v.get("type"))), bool(st) and st != ["active"]]
return sum(1 for f in flags if f)
def kept_pairs(v):
return [(k, one if k != "where" or isinstance(one, str) else js_json(one)) for k in FILTER_KEEP for one in ([w for w in (v.get(k) if isinstance(v.get(k), list) else [v.get(k)]) if w not in (None, "")] if k == "where" else list_of(v.get(k)))]
def filters_form(action, v, fid):
"""html/filters.html without its own buttons: the GET form inside the drawer."""
statuses = set(list_of(v.get("status")))
def field(key, label, control):
return f'<div class="rw-field"><label class="rw-field__label" for="{fid}-{key}">{label}</label>{control}</div>'
def counts(name, key, label, top, value):
opts = option("", "Any number", value == "") + "".join(option(str(i), f"{i} or more", value == str(i)) for i in range(1, top + 1))
return field(key, label, f'<select class="rw-select" id="{fid}-{key}" name="{name}">{opts}</select>')
def choice(name, label, any_label, options, value):
return field(name, label, f'<select class="rw-select" id="{fid}-{name}" name="{name}">{option("", any_label, value == "")}{"".join(option(o, t, o == value) for o, t in options)}</select>')
def price(key, name, label, value):
return f'<label class="rw-field__label" for="{fid}-{key}">{label}</label><input class="rw-input" id="{fid}-{key}" name="{name}" type="number" inputMode="numeric" min="0" step="1000" placeholder="Any price" value="{esc("" if value is None else value)}">'
sort = (list_of(v.get("sort")) or [""])[0]
boxes = "".join(f'<label class="rw-check"><input{attrs([("type", "checkbox"), ("name", "status"), ("checked", o in statuses or (not statuses and o == "active")), ("value", o)])}><span>{t}</span></label>' for o, t in STATUS_OPTIONS if o != "closed" or "closed" in statuses)
return (
f'<form class="rw-recipes rw-filters" method="get" action="{esc(action)}" id="{fid}" aria-label="Filter homes" data-rw-filters="">'
+ "".join(f'<input type="hidden" name="{esc(k)}" value="{esc(x)}">' for k, x in kept_pairs(v))
+ '<div class="rw-filters__row">'
+ f'<div class="rw-field rw-field--price">{price("pmin", "priceMin", "Minimum price", v.get("priceMin"))}{price("pmax", "priceMax", "Maximum price", v.get("priceMax"))}</div>'
+ counts("bedsMin", "beds", "Bedrooms", 6, "" if v.get("bedsMin") is None else str(v["bedsMin"]))
+ counts("bathsMin", "baths", "Bathrooms", 5, "" if v.get("bathsMin") is None else str(v["bathsMin"]))
+ choice("subtype", "Home type", "Any home type", SUBTYPE_OPTIONS, (list_of(v.get("subtype")) or [""])[0])
+ choice("type", "Property type", "Any property type", TYPE_OPTIONS, (list_of(v.get("type")) or [""])[0])
+ field("sort", "Sort by", f'<select class="rw-select" id="{fid}-sort" name="sort">{"".join(option(o, t, o == sort) for o, t in SORT_OPTIONS)}</select>')
+ f'</div><fieldset class="rw-field rw-field--status"><legend class="rw-field__label">Status</legend>{boxes}</fieldset></form>'
)
def filters_drawer(action, value):
"""html/filters-drawer.html: the More filters pill and its drawer."""
base = stable_id("rw-filters", action)
did, fid = f"{base}-drawer", f"{base}-drawer-form"
n = active_filter_count(value)
label = f"More filters ({n})" if n > 0 else "More filters"
badge = f'<span class="rw-morefilters__badge" aria-hidden="true">{n}</span>' if n > 0 else ""
return (
'<div class="rw-recipes rw-morefilters-wrap" data-rw-drawer-root="">'
f'<button type="button" class="rw-morefilters" aria-haspopup="dialog" aria-expanded="false" aria-controls="{did}" data-rw-drawer-open="{did}">{icon("tuning-black", 24, "rw-morefilters__icon")}<span class="rw-morefilters__label">{label}</span>{badge}</button>'
f'<dialog class="rw-drawer" id="{did}" aria-labelledby="{did}-title" data-rw-drawer="">'
f'<div class="rw-drawer__header"><h2 class="rw-drawer__title" id="{did}-title">More filters</h2><button type="button" class="rw-drawer__close" aria-label="Close the filters" data-rw-drawer-close="">{icon("drawer-header-close", 24)}</button></div>'
f'<div class="rw-drawer__body">{filters_form(action, value, fid)}</div>'
f'<div class="rw-drawer__footer"><a class="rw-drawer__reset" href="{esc(with_query(action, kept_pairs(value)))}" data-rw-drawer-reset="">Reset filters</a><button class="rw-button rw-drawer__show" type="submit" form="{fid}">Show results</button></div>'
"</dialog></div>"
)
# ─── The listing page (html/listing-detail.html and its pieces) ──────────────
def detail_value(v, key=""):
"""A detail row's value as the React ListingDetail prints it: a year reads 2004, other numbers 11,240."""
if isinstance(v, bool):
return "Yes" if v else "No"
if isinstance(v, list):
return ", ".join(str(x) for x in v)
if is_num(v):
if "year" in key.lower() and float(v).is_integer():
return str(int(v))
return grouped(v, 2)
return str(v)
def mini_summary(l):
price = usd(shown_price(l))
items = "".join(f'<li class="rw-mini__fact">{icon(FACT_ICONS[k], 18)}{esc(t)}</li>' for k, t in facts(l))
return (
'<div class="rw-mini" data-rw-mini=""><p class="rw-mini__line">'
+ (f'<span class="rw-mini__price">{esc(price)}</span><span class="rw-mini__dot" aria-hidden="true"></span>' if price else "")
+ f'<span class="rw-mini__address">{esc(address_line(l["address"]) or listing_name(l))}</span></p>'
+ (f'<ul class="rw-mini__facts">{items}</ul>' if items else "")
+ "</div>"
)
def detail_header(l, back):
"""html/detail-header.html."""
return (
f'<header class="{"rw-detail-header" if back else "rw-detail-header rw-detail-header--bare"}" data-rw-detail-header=""><div class="rw-detail-header__row">'
+ (f'<a class="rw-detail-header__back" href="{esc(back)}" data-rw-header-back="">{icon("chevron-left", 20)}Back</a>' if back else "")
+ f'<div class="rw-detail-header__summary" data-rw-header-summary="">{mini_summary(l)}</div>'
+ (f'<a class="rw-detail-header__close" href="{esc(back)}" aria-label="Close" data-rw-header-close="">{icon("close", 20)}</a>' if back else "")
+ "</div></header>"
)
def photo_grid(l, street_view=False, share=False, logo=None):
"""html/photo-grid-N.html."""
photos = l.get("photos") or []
n, name = len(photos), listing_name(l)
logo_src = safe_url((logo or {}).get("url"))
def open_attrs(tab, index=None):
return attrs([("data-rw-open", "gallery"), ("data-rw-open-tab", tab), ("data-rw-open-index", index)])
cells = ""
for i, p in enumerate(photos[:5]):
a = img(p, "(min-width: 768px) 50vw, 100vw" if i == 0 else "25vw", i == 0, name)
logo_img = f"<img{attrs([('class', 'rw-photogrid__logo'), ('src', logo_src), ('alt', logo.get('alt') or ''), ('width', dim(logo.get('width'), 100)), ('height', dim(logo.get('height'), 40)), ('loading', 'lazy'), ('decoding', 'async'), ('data-rw-photo-logo', True)])}>" if i == 0 and logo_src else ""
inner = f"<img{attrs(a + [('class', 'rw-photogrid__img')])}>" if a else icon("listing-no-image", 64, "rw-photogrid__placeholder")
cells += f'<button type="button" class="rw-photogrid__cell rw-photogrid__cell--{i}" aria-label="View photo {i + 1}"{open_attrs("photos", str(i))}>{inner}{logo_img}</button>'
return (
f'<div{attrs([("class", f"rw-photogrid rw-photogrid--n{min(n, 5)}"), ("data-rw-photo-grid", True), ("data-rw-photos", photos_json(photos) if n else None), ("data-rw-photo-alt", name if n else None)])}>'
+ (cells or f'<div class="rw-photogrid__empty" role="img" aria-label="No photo is available for this home.">{icon("listing-no-image", 96, "rw-photogrid__placeholder")}</div>')
+ (f'<div class="rw-photogrid__actions"><button type="button" class="rw-photogrid__iconbtn" aria-label="Share this home" data-rw-open="share">{icon("share-black", 17, "rw-icon--white")}</button></div>' if share else "")
+ (f'<button type="button" class="rw-photogrid__street"{open_attrs("street")}>{icon("street-view-white", 20, "rw-icon--white")}Street view</button>' if street_view else "")
+ (f'<button type="button" class="rw-photogrid__count"{open_attrs("photos", "0")}>{icon("gallery-round", 16)}{n} photos</button>' if n > 1 else "")
+ "</div>"
)
def price_block(l, address_as="h1"):
"""html/price-block.html."""
label = l.get("statusLabel") if isinstance(l.get("statusLabel"), str) and l["statusLabel"].strip() else None
tone = "danger" if label and re.search(r"closed|sold", label, re.I) else "accent" if label and re.search(r"pending", label, re.I) else "green"
price = usd(shown_price(l))
items = "".join(f'<li class="rw-price__fact">{icon(FACT_ICONS[k], 16)}{esc(t)}</li>' for k, t in facts(l))
tag = "p" if address_as == "p" else "h1"
return (
'<section class="rw-price" data-rw-price-block="">'
+ (f'<p class="rw-price__status rw-price__status--{tone}"><span class="rw-price__dot" aria-hidden="true"></span>{esc(label)}</p>' if label else "")
+ (f'<p class="rw-price__amount">{esc(price)}</p>' if price else "")
+ (f'<ul class="rw-price__facts">{items}</ul>' if items else "")
+ f'<{tag} class="rw-price__address">{esc(address_line(l["address"]) or listing_name(l))}</{tag}></section>'
)
def clean(s):
return re.sub(r"\s+", " ", s or "").strip()
def agent_name(a):
return clean((a or {}).get("name")) or clean((a or {}).get("brokerage")) or None
def contact_label(a):
return f"Contact {agent_name(a)}" if agent_name(a) else "Contact an agent"
def avatar(a, size, tone):
photo = clean(a.get("photoUrl"))
if re.match(r"^https?://", photo, re.I):
return f'<img class="rw-avatar rw-avatar--{size}" src="{esc(photo)}" alt="" width="{size}" height="{size}" loading="lazy" decoding="async">'
words = [w for w in (agent_name(a) or "").split(" ") if re.search(r"[A-Za-z0-9]", w)]
initials = ((words[0][0] if words else "") + (words[-1][0] if len(words) > 1 else "")).upper()
return f'<span class="rw-avatar rw-avatar--{size} rw-avatar--{tone}" aria-hidden="true">{esc(initials)}</span>' if initials else ""
def agent_info(a):
"""html/agent-info.html."""
who = agent_name(a)
def row(label, value, side=""):
return f'<li class="rw-agentinfo__row"><div class="rw-agentinfo__text"><p class="rw-agentinfo__label">{label}</p><p class="rw-agentinfo__value">{esc(value)}</p></div>{side}</li>'
rows = []
if clean(a.get("name")):
rows.append(row("Agent name", clean(a["name"]), avatar(a, 45, "grey")))
if clean(a.get("brokerage")):
rows.append(row("Brokerage", clean(a["brokerage"])))
if clean(a.get("license")):
rows.append(row("License number", clean(a["license"])))
email = clean(a.get("email"))
if email:
ok = re.fullmatch(r'[^\s@<>"]+@[^\s@<>"]+\.[^\s@<>"]+', email)
rows.append(row("Email", email, f'<a class="rw-agentinfo__round" href="{esc("mailto:" + email)}" aria-label="{esc(f"Email {who}" if who else "Email the agent")}">{icon("letter", 20)}</a>' if ok else ""))
phone = clean(a.get("phone"))
if phone:
digits = re.sub(r"(?!^)\+", "", re.sub(r"[^\d+]", "", phone))
ok = len(re.sub(r"\D", "", digits)) >= 7
rows.append(row("Phone number", phone, f'<a class="rw-agentinfo__round" href="{esc("tel:" + digits)}" aria-label="{esc(f"Call {who}" if who else "Call the agent")}">{icon("phone", 20)}</a>' if ok else ""))
return f'<section class="rw-detail__block rw-agentinfo" data-rw-agent-info=""><h2 class="rw-detail__title">Agent information</h2><ul class="rw-agentinfo__rows">{"".join(rows)}</ul></section>' if rows else ""
def contact_cards(a):
"""html/agent-card.html and html/tour-card.html, stacked."""
name = agent_name(a)
return (
'<div class="rw-contactcards" data-rw-contact-cards=""><div class="rw-agentcard" data-rw-agent-card="">'
+ (f'<div class="rw-agentcard__who">{avatar(a, 48, "dark")}<p class="rw-agentcard__name">{esc(name)}</p></div>' if name else "")
+ '<h2 class="rw-agentcard__title">Questions about this home?</h2><p class="rw-agentcard__text">We are ready to answer any questions you have about this home, or to schedule a tour if you want to see it in person.</p>'
+ f'<button type="button" class="rw-button rw-button--block" data-rw-open="contact">{esc(contact_label(a))}</button></div>'
+ '<div class="rw-tourcard" data-rw-tour-card=""><h2 class="rw-tourcard__title">Schedule a tour</h2><p class="rw-tourcard__text">Choose a day and time that works for you to see this home in person or by video.</p><button type="button" class="rw-button rw-button--accent rw-button--block" data-rw-open="tour">Choose tour time</button></div></div>'
)
def mobile_bar(a):
"""html/mobile-bar.html."""
return f'<div class="rw-mobilebar" data-rw-mobile-bar=""><button type="button" class="rw-button rw-button--block" data-rw-open="contact">{esc(contact_label(a))}</button><button type="button" class="rw-button rw-button--accent rw-button--block" data-rw-open="tour">Choose tour time</button></div>'
def open_house_entries(items, now):
"""The open houses to show: not ended, starting within 30 days, sorted; Today, Tomorrow and the times on the listing's clock."""
rows = []
def instant(raw):
"""(aware datetime, has an offset); a start with no offset is read as its digits in UTC and shows no time."""
d = parse_instant(raw or "")
if d is not None:
return d, True
m = re.match(r"^(\d{4})-(\d{2})-(\d{2})(?:[T ](\d{2}):(\d{2}))?", raw or "")
return (datetime(int(m[1]), int(m[2]), int(m[3]), int(m[4] or 0), int(m[5] or 0), tzinfo=timezone.utc), False) if m else (None, False)
for o in items or []:
start, has_offset = instant(o.get("start"))
if start is None:
continue
end = instant(o.get("end"))[0] if o.get("end") else None
if start > now + timedelta(days=30) or (end <= now if end else start <= now):
continue
z = (zone(o.get("timeZone")) or start.tzinfo) if has_offset else timezone.utc
s, n = start.astimezone(z), now.astimezone(z)
trusted = has_offset and 7 <= s.hour <= 20
today = s.date() == n.date()
tomorrow = not today and s.date() == (now + timedelta(days=1)).astimezone(z).date()
times = [clock(d.astimezone(z)) for d in (start, end) if d] if trusted else []
rows.append({
"at": start,
"start": o["start"],
"day": "Today" if today else "Tomorrow" if tomorrow else long_day(s),
"date": long_day(s) if today or tomorrow else None,
"time": " to ".join(times) or None,
"live": trusted and end is not None and start <= now < end,
"remarks": o["remarks"].strip() if isinstance(o.get("remarks"), str) and o["remarks"].strip() else None,
})
return sorted(rows, key=lambda r: r["at"])
def open_houses(items, tour, now, list_id="open-houses"):
"""html/open-houses.html."""
entries = open_house_entries(items, now)
if not entries:
return ""
lis = "".join(
f'<li{attrs([("class", "rw-openhouses__entry"), ("hidden", i >= 3), ("data-rw-oh-extra", i >= 3)])}><p class="rw-openhouses__day"><time datetime="{esc(e["start"])}">{esc(e["day"])}</time></p>'
+ (f'<p class="rw-openhouses__date">{esc(e["date"])}</p>' if e["date"] else "")
+ (f'<p class="rw-openhouses__time">{esc(e["time"])}</p>' if e["time"] else "")
+ ('<p class="rw-openhouses__live"><span class="rw-openhouses__dot" aria-hidden="true"></span>Happening now</p>' if e["live"] else "")
+ (f'<p class="rw-openhouses__remarks">{esc(e["remarks"])}</p>' if e["remarks"] else "")
+ "</li>"
for i, e in enumerate(entries)
)
more = f"Show all {len(entries)} open houses"
toggle = f'<button type="button" class="rw-openhouses__toggle" aria-expanded="false" aria-controls="{esc(list_id)}" data-rw-oh-toggle="" data-rw-oh-more="{more}" data-rw-oh-fewer="Show fewer open houses">{more}</button>' if len(entries) > 3 else ""
row = '<div class="rw-openhouses__tour"><p class="rw-openhouses__prompt">Tour when it works for you.</p><button type="button" class="rw-button rw-button--accent" data-rw-open="tour">Schedule a tour</button></div>' if tour else ""
return f'<section class="rw-detail__block rw-openhouses" data-rw-open-houses=""><h2 class="rw-detail__title">{"Open house" if len(entries) == 1 else "Open houses"}</h2><ul class="rw-openhouses__grid" id="{esc(list_id)}">{lis}</ul>{toggle}{row}</section>'
SECTION_ICONS = {
"adabf788-a332-4729-98ef-9a950fe93aec": "checklist-minimalistic",
"b1b0a859-8f18-4f10-8075-74e935e3ffd7": "lamp",
"e7e42c57-1985-4dee-8499-de277c6652e7": "home",
"4917d0d0-c2e4-4ead-a38a-7dd68cae1c0e": "garage",
"0aeb8e6b-eeb7-4acd-af09-9e2775fd5411": "lightning",
"6b1aa338-816e-4071-afcc-5d32e5d4b1f4": "point-on-map",
"bf41618a-39fb-4b9e-9b59-848ab86141dd": "money-bag",
}
def property_details(sections):
if not sections:
return ""
out = "".join(
f'<details{attrs([("class", "rw-accordion"), ("open", i == 0), ("data-category-id", s.get("categoryId"))])}><summary class="rw-accordion__summary">{icon(SECTION_ICONS.get(str(s.get("categoryId") or "").lower(), "more-horizontal"), 24, "rw-accordion__icon")}<span class="rw-accordion__title">{esc(s["label"])}</span>{icon("chevron-down", 20, "rw-accordion__chevron")}</summary><ul class="rw-accordion__list">'
+ "".join(f'<li class="rw-accordion__item"><span class="rw-accordion__label">{esc(it["label"])}</span> {esc(detail_value(it["value"], it.get("key", "")))}</li>' for it in s["items"])
+ "</ul></details>"
for i, s in enumerate(sections)
)
return f'<section class="rw-detail__block rw-details"><h2 class="rw-detail__title">Property details</h2><div class="rw-details__list">{out}</div></section>'
def location_map(key, map_id, lat, lng, price_label, address):
"""html/location-map.html."""
return (
f'<div{attrs([("class", "rw-locmap"), ("role", "region"), ("aria-label", "Map of this home's location"), ("data-rw-location-map", True), ("data-rw-maps-key", key), ("data-rw-map-id", map_id or None), ("data-rw-lat", js_num(lat)), ("data-rw-lng", js_num(lng)), ("data-rw-price-label", price_label or None), ("data-rw-address", address)])}>'
f'<div class="rw-locmap__canvas" data-rw-map-canvas=""></div><p class="rw-locmap__message" role="status">The map is loading.</p>'
f'<button type="button" class="rw-locmap__street" disabled="" data-rw-street-toggle="">{icon("street-view-white", 20, "rw-icon--white")}Street view</button>'
f'<button type="button" class="rw-locmap__expand" aria-label="Expand map" data-rw-expand="">{icon("maximize", 20)}</button></div>'
)
# ─── The mortgage calculator (html/mortgage-calculator.html) ─────────────────
MORTGAGE_LINES = ["principalAndInterest", "propertyTax", "homeInsurance", "mortgageInsurance", "hoa"]
MORTGAGE_ORDER = ["price", "downPayment", "downPaymentPercent", "loanType", "termYears", "rateType", "amortizationYears", "creditScore", "rate", "state", "zip", "hoaMonthly", "propertyTaxAnnual", "insuranceAnnual"]
CREDIT_SCORES = ["760+", "740-759", "720-739", "700-719", "680-699", "660-679", "640-659", "620-639", "<620"]
CA_PROVINCES = {"AB", "BC", "MB", "NB", "NL", "NS", "NT", "NU", "ON", "PE", "QC", "SK", "YT"}
def country_of(state):
return "CA" if str(state or "").upper() in CA_PROVINCES else "US"
def fallback_options(country):
if country == "CA":
return {"loanTypes": [{"value": "fixed", "label": "Fixed rate"}, {"value": "variable", "label": "Variable rate, fixed payment"}, {"value": "adjustable", "label": "Adjustable rate"}], "terms": [{"value": str(i), "label": "1 year" if i == 1 else f"{i} years"} for i in range(1, 11)]}
return {"loanTypes": [{"value": t.lower(), "label": t} for t in ("Conventional", "FHA", "VA", "USDA", "Jumbo")], "terms": [{"value": "30", "label": "30 years, fixed"}, {"value": "20", "label": "20 years, fixed"}, {"value": "15", "label": "15 years, fixed"}, {"value": "30-arm", "label": "5/6 ARM"}]}
def money_of(v):
"""A money figure from a number or a formatted string ("$7,412.50"); None when there is none."""
if is_num(v):
return v if v >= 0 else None
if isinstance(v, list):
return money_of(v[0]) if v else None
if not isinstance(v, str):
return None
m = re.search(r"-?\d[\d,]*(?:\.\d+)?", v)
if not m or m.group(0).startswith("-"):
return None
n = float(m.group(0).replace(",", ""))
return int(n) if n.is_integer() else n
def per_month(freq):
"""Payments per month for an MLS fee frequency; missing = monthly; one-time or unknown = None."""
if freq is None or freq == "":
return 1
f = re.sub(r"[^a-z]", "", str(freq[0] if isinstance(freq, list) else freq).lower())
if not f or f.startswith("month"):
return 1
for test, value in ((lambda: f == "bimonthly" or "everyothermonth" in f, 1 / 2), (lambda: f.startswith("quarter"), 1 / 3), (lambda: f.startswith("semiannual") or "twiceayear" in f, 1 / 6), (lambda: f.startswith("annual") or f.startswith("year"), 1 / 12), (lambda: f.startswith("semimonth"), 2), (lambda: f.startswith("biweek"), 26 / 12), (lambda: f.startswith("week"), 52 / 12), (lambda: f.startswith("dai"), 365 / 12)):
if test():
return value
return None
def mortgage_prefill(l):
items = {}
for s in l.get("details") or []:
for it in s["items"]:
items.setdefault(it["key"], it["value"])
hoa = None
for fee, freq in (("associationFee", "associationFeeFrequency"), ("associationFee2", "associationFee2Frequency"), ("associationFee3", "associationFee3Frequency")):
amount, times = money_of(items.get(fee)), per_month(items.get(freq))
if amount is None or times is None:
continue
hoa = js_round(((hoa or 0) + amount * times) * 100) / 100
postal = l["address"].get("postalCode")
return {
"price": l["price"] if is_num(l.get("price")) and l["price"] > 0 else None,
"state": l["address"].get("state"),
"zip": postal[:5] if isinstance(postal, str) and re.fullmatch(r"\d{5}(-\d{4})?", postal) else None,
"hoaMonthly": hoa,
"propertyTaxAnnual": money_of(items.get("taxAnnualAmount")),
}
def mortgage_start(p):
ca = country_of(p["state"]) == "CA"
return {"price": p["price"], "downPaymentPercent": 20, "loanType": None, "termYears": None, "state": p["state"].upper() if p["state"] else None, "zip": None if ca else p.get("zip"), "hoaMonthly": p.get("hoaMonthly"), "propertyTaxAnnual": p.get("propertyTaxAnnual"), "insuranceAnnual": None}
def mortgage_query(q):
"""The canonical query string of GET /v1/mortgage/estimate."""
return form_encode([(k, js_num(q[k]) if is_num(q[k]) else str(q[k])) for k in MORTGAGE_ORDER if q.get(k) not in (None, "")])
def mortgage_money(n):
return f"${js_round(n):,}"
def rate_date(iso):
try:
d = datetime.strptime(str(iso)[:10], "%Y-%m-%d")
except ValueError:
return iso
return f"{LONG_MONTHS[d.month - 1]} {d.day}, {d.year}"
def fixed3(x):
"""toFixed(3), with -0 as 0."""
s = f"{x:.3f}"
return "0.000" if s == "-0.000" else s
def mortgage_calculator(base_url, prefill, est, cid="mortgage"):
"""
html/mortgage-calculator.html: `est` is the first GET /v1/mortgage/estimate answer (data), or None.
`base_url` is where the browser asks for new figures (None: the API itself, from your approved
website address). The page carries no key.
"""
country = (est or {}).get("country") or country_of(prefill["state"])
ca = country == "CA"
price = prefill["price"]
loan_type = est["inputs"]["loanType"] if est else ("fixed" if ca else "conventional")
term = (f'{est["inputs"]["termYears"]}-arm' if est["country"] == "US" and est["inputs"].get("rateType") == "arm" else str(est["inputs"]["termYears"])) if est else ("5" if ca else "30")
opts = est["options"] if est else fallback_options(country)
m = est["monthly"] if est else None
rate = est["rate"]["annualPercent"] if est else None
pmin = min(50000, max(1000, math.floor(price / 5000) * 5000))
pmax = max(2500000, math.ceil(price * 3 / 5000) * 5000)
def select(field, label, k, value, options):
return f'<div class="rw-field"><label class="rw-field__label" for="{cid}-{k}">{label}</label><select class="rw-select" id="{cid}-{k}" data-rw-mortgage-field="{field}">{"".join(option(o["value"], o["label"], o["value"] == value) for o in options)}</select></div>'
def slider(field, k, label, value, lo, hi, step, extra="", hint=None):
v = "" if value is None else js_num(value)
rv = js_num(lo) if value is None else js_num(value)
out = f'<div class="rw-mortgage__slider"><div class="rw-mortgage__slider-head"><label class="rw-field__label" id="{cid}-{k}-label" for="{cid}-{k}">{label}</label>{extra}</div>'
out += f'<input class="rw-input rw-mortgage__number" id="{cid}-{k}" type="number" inputMode="decimal" min="{js_num(lo)}" max="{js_num(hi)}" step="{js_num(step)}" data-rw-mortgage-field="{field}" value="{v}">'
out += f'<input class="rw-mortgage__range" type="range" aria-labelledby="{cid}-{k}-label" min="{js_num(lo)}" max="{js_num(hi)}" step="{js_num(step)}" data-rw-mortgage-field="{field}" value="{rv}">'
if hint is not None:
out += f'<p class="rw-mortgage__hint" data-rw-mortgage-out="{hint[0]}">{esc(hint[1])}</p>'
return out + "</div>"
mode = f'<fieldset class="rw-mortgage__mode"><legend class="rw-visually-hidden">Down payment</legend><label class="rw-mortgage__mode-option"><input type="radio" name="{cid}-downmode" data-rw-mortgage-field="downMode" value="$"><span>Dollars</span></label><label class="rw-mortgage__mode-option"><input type="radio" name="{cid}-downmode" data-rw-mortgage-field="downMode" checked="" value="%"><span>Percent</span></label></fieldset>'
more = ""
for field, label, value, placeholder in (("propertyTaxAnnual", "Yearly property tax", prefill.get("propertyTaxAnnual"), js_round(m["propertyTax"] * 12) if m else None), ("insuranceAnnual", "Yearly home insurance", None, js_round(m["homeInsurance"] * 12) if m else None), ("hoaMonthly", "Monthly condo fees" if ca else "Monthly HOA dues", prefill.get("hoaMonthly"), js_round(m["hoa"]) if m else 0)):
more += f'<div class="rw-field"><label class="rw-field__label" for="{cid}-{field}">{label}</label><input{attrs([("class", "rw-input"), ("id", f"{cid}-{field}"), ("type", "text"), ("inputMode", "decimal"), ("placeholder", None if placeholder is None else f"{placeholder:,}"), ("data-rw-mortgage-field", field), ("value", "" if value is None else js_num(value))])}></div>'
circ = 2 * math.pi * 54
arcs, offset = "", 0.0
for line in MORTGAGE_LINES:
ln = m[line] / (m["total"] or 1) * circ if m and m[line] > 0 else 0.0
at = offset if m else 0.0
offset += ln
arcs += f'<circle class="rw-mortgage__seg rw-mortgage__seg--{line}" cx="70" cy="70" r="54" fill="none" stroke-width="16" stroke-dasharray="{fixed3(ln)} {fixed3(circ - ln)}" stroke-dashoffset="{fixed3(-at)}" transform="rotate(-90 70 70)" data-rw-mortgage-seg="{line}"></circle>'
labels = {"principalAndInterest": "Principal and interest", "propertyTax": "Property taxes", "homeInsurance": "Home insurance", "mortgageInsurance": "Mortgage insurance", "hoa": "Condo fees" if ca else "HOA dues"}
est_label = "Estimated. Enter your own figure under More options."
rows = ""
for line in MORTGAGE_LINES:
badge = ""
if line in ("propertyTax", "homeInsurance", "hoa"):
hidden = "" if m and m["provenance"].get(line) == "estimated" else ' hidden=""'
badge = f'<span class="rw-mortgage__est" title="{est_label}"{hidden} data-rw-mortgage-est="{line}"><span aria-hidden="true">est.</span><span class="rw-visually-hidden">{est_label}</span></span>'
rows += f'<li class="rw-mortgage__row" data-line="{line}"><span class="rw-mortgage__dot rw-mortgage__dot--{line}" aria-hidden="true"></span><span class="rw-mortgage__label">{labels[line]}</span>{badge}<span class="rw-mortgage__value" data-rw-mortgage-out="{line}">{mortgage_money(m[line]) if m else ""}</span></li>'
total = mortgage_money(m["total"]) if m else ""
note = (est or {}).get("mortgageInsuranceNote")
reasons = "".join(f"<li>{esc(r)}</li>" for r in (est or {}).get("ineligibleReasons") or [])
hint_rate = ("rateHint", f'Market rate on {rate_date(est["rate"]["asOf"])}' if est else "")
hidden = ' hidden=""'
note_hidden = "" if note else hidden
reasons_hidden = hidden if not est or est["eligible"] else ""
stale_hidden = "" if (est or {}).get("stale") else hidden
return (
f'<section{attrs([("class", "rw-recipes rw-mortgage"), ("aria-labelledby", f"{cid}-title"), ("data-rw-mortgage", True), ("data-rw-base-url", base_url or None), ("data-rw-mortgage-query", js_json(mortgage_start(prefill))), ("data-country", country)])}>'
+ f'<h2 class="rw-mortgage__title" id="{cid}-title">Estimate your monthly payment</h2>'
+ f'<div class="rw-mortgage__selects">{select("loanType", "Loan type", "loan", loan_type, opts["loanTypes"])}{select("term", "Term", "term", term, opts["terms"])}</div>'
+ '<div class="rw-mortgage__sliders">'
+ slider("price", "price", "Home price", price, pmin, pmax, 5000)
+ slider("downPayment", "down", "Down payment", 20, 0, 100, 0.5, mode, ("downHint", f"{mortgage_money(price * 20 / 100)} down"))
+ slider("rate", "rate", "Interest rate", rate, 0, 15, 0.01, "", hint_rate)
+ "</div>"
+ f'<details class="rw-mortgage__more"><summary class="rw-mortgage__more-summary">More options</summary><div class="rw-mortgage__more-grid">{"" if ca else select("creditScore", "Credit score", "score", "760+", [{"value": s, "label": s} for s in CREDIT_SCORES])}{more}</div></details>'
+ f'<div class="rw-mortgage__result"><div class="rw-mortgage__donut" data-rw-mortgage-donut=""><svg viewBox="0 0 140 140" width="160" height="160" aria-hidden="true" focusable="false"><circle class="rw-mortgage__track" cx="70" cy="70" r="54" fill="none" stroke-width="16"></circle>{arcs}</svg><p class="rw-mortgage__center"><span class="rw-mortgage__total" data-rw-mortgage-out="total">{total}</span><span class="rw-mortgage__per">per month</span></p></div>'
+ f'<div class="rw-mortgage__lines"><h3 class="rw-visually-hidden">Monthly payment breakdown</h3><ul class="rw-mortgage__list">{rows}<li class="rw-mortgage__row rw-mortgage__row--total"><span class="rw-mortgage__label">Total</span><span class="rw-mortgage__value" data-rw-mortgage-out="total">{total}</span></li></ul>'
+ f'<p class="rw-mortgage__note" data-rw-mortgage-out="note"{note_hidden}>{esc(note or "")}</p></div></div>'
+ f'<div class="rw-mortgage__reasons" data-rw-mortgage-out="reasons"{reasons_hidden}><p class="rw-mortgage__reasons-title">To qualify for this loan type, adjust the scenario:</p><ul>{reasons}</ul></div>'
+ f'<p class="rw-mortgage__stale" data-rw-mortgage-out="stale"{stale_hidden}>Some rates may be a few days old.</p>'
+ '<p class="rw-mortgage__status" role="status" aria-live="polite"><span data-rw-mortgage-out="status"></span> <button type="button" class="rw-mortgage__link" hidden="" data-rw-mortgage-retry="">Try again</button></p>'
+ f'<div class="rw-mortgage__disclosures" data-rw-mortgage-out="disclosures">{"".join(f"<p>{esc(d)}</p>" for d in (est or {}).get("requiredDisclosures") or [])}</div></section>'
)
def mortgage_estimate(l):
"""GET /v1/mortgage/estimate for the listing's starting query, with the secret key; None on any failure."""
p = mortgage_prefill(l)
if not p["price"] or not p["state"]:
return None
status, body = api("/mortgage/estimate", dict(urllib.parse.parse_qsl(mortgage_query(mortgage_start(p)))))
return body["data"] if status == 200 and body and body.get("ok") else None
# ─── The full gallery and the dialogs ─────────────────────────────────────────
TILE_SIZES = {"full": "(min-width: 1280px) 960px, (min-width: 992px) 60vw, 100vw", "half": "(min-width: 1280px) 480px, (min-width: 992px) 30vw, (min-width: 768px) 50vw, 100vw"}
def full_gallery(l, street_view, share, sidebar, bar, gid="gallery"):
"""html/full-gallery.html, closed."""
photos = [p for p in l.get("photos") or [] if safe_url(p.get("url"))]
n = len(photos)
tabs = ["photos", "street"] if street_view else ["photos"]
tab_html = "".join(f'<button type="button" role="tab" id="{gid}-tab-{t}" aria-selected="{"true" if t == "photos" else "false"}" aria-controls="{gid}-panel-{t}" tabindex="{"0" if t == "photos" else "-1"}" class="rw-fullgallery__tab" data-rw-gallery-tab="{t}">{"Photos" if t == "photos" else "Street view"}</button>' for t in tabs)
tiles = ""
for i, p in enumerate(photos):
v = "full" if i % 3 == 0 or (i == n - 1 and (i % 3) % 2 == 1) else "half"
a = [(k, "" if k == "alt" else "lazy" if k == "loading" else x) for k, x in img(p, TILE_SIZES[v], False, listing_name(l))]
tiles += f'<button type="button" class="rw-fullgallery__tile rw-fullgallery__tile--{v}" aria-label="Open photo {i + 1} of {n}" data-rw-mosaic-tile="{i}"><img{attrs(a)}></button>'
mosaic = f'<div class="rw-fullgallery__mosaic" data-rw-mosaic="">{tiles}</div>' if n else '<p class="rw-fullgallery__empty">No photo is available for this home.</p>'
street = f'<div role="tabpanel" id="{gid}-panel-street" aria-labelledby="{gid}-tab-street" class="rw-fullgallery__panel rw-fullgallery__panel--street" data-rw-gallery-panel="street" hidden=""><div class="rw-fullgallery__street"><div class="rw-fullgallery__pano" data-rw-street-pano=""></div><div class="rw-fullgallery__street-wait" role="status">{icon("street-view-white", 48, "rw-fullgallery__street-icon")}<span class="rw-visually-hidden">Street view is loading.</span></div></div></div>' if street_view else ""
steps = f'<button type="button" class="rw-lightbox__step rw-lightbox__step--prev" aria-label="Previous photo" data-rw-lightbox-prev="">{icon("chevron-left", 24)}</button><button type="button" class="rw-lightbox__step rw-lightbox__step--next" aria-label="Next photo" data-rw-lightbox-next="">{icon("chevron-right", 24)}</button>' if n > 1 else ""
sticky = f'<div class="rw-fullgallery__sticky">{sidebar}</div>' if sidebar else ""
return (
'<dialog class="rw-recipes rw-fullgallery" aria-label="Photo gallery" data-rw-screen="gallery">'
+ f'<div class="rw-fullgallery__header" data-rw-gallery-header=""><div class="rw-fullgallery__header-inner"><div role="tablist" aria-label="Photos and street view" class="rw-fullgallery__tabs">{tab_html}</div>'
+ (f'<div class="rw-fullgallery__actions"><button type="button" class="rw-fullgallery__share" data-rw-open="share">{icon("share-white", 20)}Share</button></div>' if share else "")
+ f'<button type="button" class="rw-fullgallery__close" aria-label="Close the gallery" data-rw-gallery-close="">{icon("close", 20)}</button></div></div>'
+ f'<div class="rw-fullgallery__content{"" if bar else " rw-fullgallery__content--nobar"}"><div class="rw-fullgallery__columns"><div class="rw-fullgallery__main"><div class="rw-fullgallery__mark" data-rw-gallery-mark="" aria-hidden="true"></div><div class="rw-fullgallery__tabcontent">'
+ f'<div role="tabpanel" id="{gid}-panel-photos" aria-labelledby="{gid}-tab-photos" class="rw-fullgallery__panel" data-rw-gallery-panel="photos">{mosaic}</div>{street}'
+ (f'<button type="button" class="rw-fullgallery__float-share" aria-label="Share this home" data-rw-open="share">{icon("share-white", 16, "rw-icon--white")}</button>' if share else "")
+ f'</div></div><div class="rw-fullgallery__sidebar" data-rw-gallery-sidebar="">{price_block(l, "p")}{sticky}</div></div></div>'
+ (f'<div class="rw-fullgallery__bar">{bar}</div>' if bar else "")
+ f'<dialog class="rw-lightbox" aria-label="Photo gallery" data-rw-lightbox=""><button type="button" class="rw-lightbox__close" aria-label="Close the photo gallery" data-rw-lightbox-close="">{icon("close", 20)}</button>{steps}</dialog></dialog>'
)
def modal(name, title, title_id, body):
return f'<div class="rw-modal-host" data-rw-screen="{name}"><dialog class="rw-recipes rw-modal rw-modal--md" data-rw-modal="{name}" aria-labelledby="{esc(title_id)}"><div class="rw-modal__panel"><div class="rw-modal__header"><h2 class="rw-modal__title" id="{esc(title_id)}">{esc(title)}</h2><button type="button" class="rw-modal__close" aria-label="Close" data-rw-modal-close="">{icon("close-white", 24)}</button></div><div class="rw-modal__body">{body}</div></div></dialog></div>'
def share_subject(l):
a = l["address"]
if a.get("hidden"):
city = a.get("city") or a.get("state")
return f"A home in {city}" if city else "Share this home"
line = address_line(a)
return f"A home at {line}" if line else "Share this home"
def share_modal(l, url, title_id="share-title", sid="share"):
"""html/share-modal.html: `url` is your own URL of the listing page."""
text = f"Take a look at this home: {url}"
def social(name, href, label, ico):
return f'<a class="rw-share__social rw-share__social--{name}" href="{esc(href)}" target="_blank" rel="noopener noreferrer" aria-label="{label}" data-rw-share="{name}">{icon(ico, 24)}</a>'
body = (
f'<div class="rw-share" data-rw-share-url="{esc(url)}" data-rw-share-native="true"><h3 class="rw-share__heading">Send this home to someone</h3>'
f'<div class="rw-share__link"><label class="rw-field__label" for="{sid}-url">Link to this home</label><div class="rw-share__row"><input class="rw-share__input" id="{sid}-url" type="url" readonly="" data-rw-share-input="" value="{esc(url)}">'
f'<button type="button" class="rw-share__copy" aria-describedby="{sid}-copy-status" data-rw-copy="">{icon("link", 18)}<span data-rw-copy-label="">Copy link</span></button></div>'
f'<p class="rw-share__status" id="{sid}-copy-status" role="status" aria-live="polite" data-rw-copy-status=""></p></div><p class="rw-share__or">or</p><div class="rw-share__socials">'
+ social("facebook", f"https://www.facebook.com/sharer/sharer.php?u={enc(url)}", "Share on Facebook", "facebook")
+ social("whatsapp", f"https://wa.me/?text={enc(text)}", "Share on WhatsApp", "whats-app")
+ social("email", f"mailto:?subject={enc(share_subject(l))}&body={enc(text)}", "Share by email", "letter")
+ '</div><button type="button" class="rw-share__more" hidden="" data-rw-share-more="">More ways to share</button></div>'
)
return modal("share", "Share this home", title_id, body)
def lead_listing(l):
return js_json({"id": l["id"], "mlsNumber": l.get("mlsNumber"), "url": l.get("href"), "name": listing_name(l), "price": shown_price(l)})
def tour_days(now, tz_name):
"""The 16 days from today in the listing's time zone (UTC on this server without one)."""
today = now.astimezone(zone(tz_name) or timezone.utc).date()
out = []
for i in range(16):
d = today + timedelta(days=i)
out.append({"iso": d.isoformat(), "weekday": WEEKDAYS[d.weekday()], "day": str(d.day), "month": MONTHS[d.month - 1]})
return out
def listing_zone(l):
return next((o["timeZone"] for o in l.get("openHouses") or [] if o.get("timeZone")), None)
def tour_card(l):
photo = img(l["photos"][0], "114px", False, listing_name(l)) if l.get("photos") else None
price = usd(shown_price(l))
items = "".join(f'<li class="rw-tour__card-fact">{icon(FACT_ICONS[k], 18)}{esc(t)}</li>' for k, t in facts(l))
return (
'<div class="rw-tour__card" data-rw-tour-listing="">'
+ (f"<img{attrs([('class', 'rw-tour__card-img')] + photo)}>" if photo else f'<span class="rw-tour__card-img rw-tour__card-img--empty">{icon("listing-no-image", 32)}</span>')
+ '<div class="rw-tour__card-body">'
+ (f'<p class="rw-tour__card-price">{esc(price)}</p>' if price else "")
+ (f'<ul class="rw-tour__card-facts">{items}</ul>' if items else "")
+ ("" if l["address"].get("hidden") else f'<p class="rw-tour__card-address">{esc(address_line(l["address"]))}</p>')
+ "</div></div>"
)
def tour_date_fields(days, hint_id, legend_id, zone=None):
buttons = "".join(f'<button{attrs([("type", "button"), ("class", "rw-tour__day"), ("aria-pressed", "false"), ("hidden", i >= 7), ("data-rw-day", d["iso"])])}><span class="rw-tour__weekday">{d["weekday"]}</span><span class="rw-tour__date">{d["day"]}</span><span class="rw-tour__month">{d["month"]}</span></button>' for i, d in enumerate(days))
parts = "".join(f'<button type="button" class="rw-tour__part" aria-pressed="false" data-rw-part="{p}">{label}</button>' for p, label in PARTS)
return (
f'<div class="rw-tour__days" data-rw-days="{esc(js_json(days))}"' + (f' data-rw-time-zone="{esc(zone)}"' if zone else "") + f'><button type="button" class="rw-tour__nav rw-tour__nav--prev" aria-label="Previous days" disabled="" data-rw-days-prev="">{icon("chevron-left", 20)}</button>'
f'<div class="rw-tour__day-list" role="group" aria-label="Day">{buttons}</div><button type="button" class="rw-tour__nav rw-tour__nav--next" aria-label="Next days" data-rw-days-next="">{icon("chevron-right", 20)}</button></div>'
f'<fieldset class="rw-tour__parts" aria-labelledby="{esc(legend_id)}"><legend class="rw-field__label" id="{esc(legend_id)}">Time of day</legend><div class="rw-tour__part-list">{parts}</div></fieldset>'
f'<p class="rw-form__hint rw-tour__hint" id="{esc(hint_id)}" data-rw-tour-hint="">Choose a day to continue.</p>'
)
def tour_success():
rows = "".join(f'<div class="rw-tour__summary-row" hidden="" data-rw-summary="{k}"><dt>{label}</dt><dd></dd></div>' for k, label in (("date", "Tour date"), ("time", "Tour time"), ("phone", "Contact phone"), ("email", "Email")))
return f'<section class="rw-tour__success" hidden="" data-rw-step="sent" role="status"><span class="rw-tour__check">{icon("check-white", 28)}</span><h3 class="rw-tour__success-title" tabindex="-1">Tour request received</h3><p class="rw-tour__success-text">We received your request and will be in touch shortly to confirm.</p><dl class="rw-tour__summary">{rows}</dl><div class="rw-modal__footer rw-modal__footer--end"><button type="button" class="rw-button" data-rw-done="">Done</button></div></section>'
def consent_boxes(fid, consent, alerts):
out = f'<div class="rw-modal__consent"><label class="rw-check rw-consent" for="{fid}-consent"><input id="{fid}-consent" type="checkbox" name="consentContact" aria-labelledby="{fid}-consent-text" data-rw-consent="" value="yes"><span id="{fid}-consent-text" data-rw-consent-text="">{esc(consent)}</span></label>'
if alerts:
out += f'<label class="rw-check rw-consent" for="{fid}-alerts"><input id="{fid}-alerts" type="checkbox" name="consentAlerts" aria-labelledby="{fid}-alerts-text" value="yes"><span id="{fid}-alerts-text">{esc(alerts)}</span></label>'
return out + "</div>"
def honeypot(fid):
return f'<div class="rw-hp" aria-hidden="true"><label for="{fid}-website">Leave this field empty</label><input id="{fid}-website" name="website" type="text" tabindex="-1" autoComplete="off" value=""></div>'
STATUS_LINE = '<p class="rw-form__status" role="status" aria-live="polite" data-rw-form-status=""></p>'
def input_field(fid, key, label, control, required):
return f'<div class="rw-field"><label class="rw-field__label{" rw-field__label--required" if required else ""}" for="{fid}-{key}">{label}</label>{control}</div>'
def contact_modal(l, agent, action, consent, alerts, now, ids):
"""html/contact-modal.html: the message form, the tour step and the summary."""
fid = ids.get("contact", "contact")
message = "I would like more information about this home." if l["address"].get("hidden") else f"I would like more information about {address_line(l['address'])}."
form = (
f'<form class="rw-form rw-modal__form rw-contact__step" method="post" action="{esc(action)}" novalidate="" data-rw-step="form" data-rw-lead="contact" data-rw-success="Thank you. We will be in touch shortly." data-rw-lead-listing="{esc(lead_listing(l))}"><h3 class="rw-modal__heading">How can we reach you?</h3>'
+ '<div class="rw-form__row">'
+ input_field(fid, "first", "First name", f'<input class="rw-input" id="{fid}-first" name="firstName" autoComplete="given-name" required="" maxLength="80" value="">', True)
+ input_field(fid, "last", "Last name", f'<input class="rw-input" id="{fid}-last" name="lastName" autoComplete="family-name" required="" maxLength="80" value="">', True)
+ "</div>"
+ input_field(fid, "email", "Email", f'<input class="rw-input" id="{fid}-email" name="email" type="email" autoComplete="email" required="" maxLength="254" value="">', True)
+ input_field(fid, "phone", "Phone (optional)", f'<input class="rw-input" id="{fid}-phone" name="phone" type="tel" autoComplete="tel" maxLength="40" value="">', False)
+ input_field(fid, "message", "Message (optional)", f'<textarea class="rw-input rw-textarea" id="{fid}-message" name="message" rows="4" maxLength="2000">{esc(message)}</textarea>', False)
+ honeypot(fid)
+ consent_boxes(fid, consent, alerts)
+ f'<div class="rw-modal__footer rw-modal__footer--end"><button class="rw-button" type="submit" disabled="" aria-describedby="{fid}-needconsent" data-rw-submit="">Send message</button></div>'
+ f'<p class="rw-form__hint" id="{fid}-needconsent" data-rw-consent-hint="">Check the box above to agree to be contacted, then send your request.</p>{STATUS_LINE}</form>'
)
tour = (
'<section class="rw-contact__step" hidden="" data-rw-step="tour"><div class="rw-modal__intro"><h3 class="rw-modal__heading" tabindex="-1">Thank you. We will be in touch shortly.</h3><p class="rw-modal__text">We can also set up a tour of this home. Which day and time work for you?</p></div>'
+ tour_card(l)
+ tour_date_fields(tour_days(now, listing_zone(l)), f"{fid}-date-hint", ids.get("contactLegend", f"{fid}-legend"), listing_zone(l))
+ f'<div class="rw-modal__footer rw-modal__footer--end"><button type="button" class="rw-button" disabled="" aria-describedby="{fid}-date-hint" data-rw-tour-submit="">Request a tour</button></div>{STATUS_LINE}</section>'
)
return modal("contact", contact_label(agent), ids.get("contactTitle", f"{fid}-title"), f'<div class="rw-contact">{form}{tour}{tour_success()}</div>')
def tour_modal(l, action, consent, alerts, now, ids):
"""html/tour-modal.html: the date step, the contact form and the summary."""
fid = ids.get("tour", "tour")
date = (
'<section class="rw-tour__step" data-rw-step="date"><div class="rw-modal__intro"><h3 class="rw-modal__heading" tabindex="-1">Choose a time that works for you.</h3><p class="rw-modal__text">Pick a day and a time of day, and we will confirm the tour with you.</p></div>'
+ tour_card(l)
+ tour_date_fields(tour_days(now, listing_zone(l)), f"{fid}-date-hint", ids.get("tourLegend", f"{fid}-legend"), listing_zone(l))
+ f'<div class="rw-modal__footer rw-modal__footer--end"><button type="button" class="rw-button" disabled="" aria-describedby="{fid}-date-hint" data-rw-next="">Next</button></div></section>'
)
info = (
f'<form class="rw-form rw-modal__form rw-tour__step" method="post" action="{esc(action)}" novalidate="" hidden="" data-rw-step="info" data-rw-lead="tour" data-rw-success="Tour request received" data-rw-lead-listing="{esc(lead_listing(l))}"><h3 class="rw-modal__heading" tabindex="-1">How can we reach you?</h3>'
+ '<input type="hidden" name="tourDate" value=""><input type="hidden" name="tourTime" value="">'
+ input_field(fid, "name", "Name", f'<input class="rw-input" id="{fid}-name" name="fullName" autoComplete="name" required="" maxLength="160" placeholder="First and last name" value=""><p class="rw-form__hint rw-field__error" id="{fid}-name-hint" hidden="" data-rw-name-hint="">Enter your first and last name.</p>', True)
+ input_field(fid, "phone", "Phone (optional)", f'<input class="rw-input" id="{fid}-phone" name="phone" type="tel" autoComplete="tel" maxLength="40" value="">', False)
+ input_field(fid, "email", "Email", f'<input class="rw-input" id="{fid}-email" name="email" type="email" autoComplete="email" required="" maxLength="254" placeholder="you@example.com" value="">', True)
+ honeypot(fid)
+ consent_boxes(fid, consent, alerts)
+ f'<div class="rw-modal__footer"><button type="button" class="rw-modal__back" data-rw-back="">{icon("chevron-left", 20)}Back</button><button class="rw-button" type="submit" disabled="" aria-describedby="{fid}-needconsent" data-rw-submit="">Request a tour</button></div>'
+ f'<p class="rw-form__hint" id="{fid}-needconsent" data-rw-consent-hint="">Check the box above to agree to be contacted, then send your request.</p>{STATUS_LINE}</form>'
)
return modal("tour", "Ready to tour?", ids.get("tourTitle", f"{fid}-title"), f'<div class="rw-tour">{date}{info}{tour_success()}</div>')
def requires(rules, element, placement):
return any(r.get("element") == element and r.get("placement") == placement for r in rules)
def detail(l, mls, o=None):
"""The listing page with every screen: html/listing-detail.html. `o` holds the same options as templates.mjs detail()."""
o = o or {}
name = listing_name(l)
board = next((m for m in mls if m["mlsId"] == l["mls"]["id"]), None)
rules = list((board or {}).get("required") or []) + list((l.get("compliance") or {}).get("required") or [])
c = l["compliance"]
tour_url = safe_url(l.get("virtualTourUrl"))
sections = [s for s in l.get("details") or [] if s["items"]]
att_line = c.get("attributionLine") or l["attribution"].get("line")
courtesy = c.get("courtesyLine") or l["attribution"].get("courtesy")
courtesy_top = courtesy if courtesy and requires(rules, "courtesy_line", "detail") else None
inline = att_line if l.get("description") and att_line and any(requires(rules, e, "detail") for e in ("listing_office", "listing_agent", "agent_contact")) else None
ids = o.get("ids") or {}
now = parse_instant(o["now"]) if isinstance(o.get("now"), str) else (o.get("now") or datetime.now(timezone.utc))
lead = bool(o.get("leadAction")) and bool(o.get("consentText"))
share_url = (o["shareUrl"] or None) if "shareUrl" in o else ((l.get("head") or {}).get("canonical") or l.get("href"))
geo = l.get("geo") or {}
lat, lng = geo.get("lat"), geo.get("lng")
located = bool(o.get("googleMapsKey")) and is_num(lat) and is_num(lng) and abs(lat) <= 90 and abs(lng) <= 180 and not (lat == 0 and lng == 0) and not l["address"].get("hidden")
agent = o.get("agent")
prefill = mortgage_prefill(l)
# The calculator shows when it has somewhere to ask (apiBaseUrl, or mortgage True for the API itself).
show_mortgage = o.get("mortgage") is not False and bool(o.get("apiBaseUrl") or o.get("mortgage")) and bool(prefill["price"]) and l.get("status") != "closed" and not re.search(r"lease|rent", f'{l.get("type") or ""} {l.get("subtype") or ""}', re.I)
sidebar = o.get("aside") or (contact_cards(agent) if lead else "")
bar = mobile_bar(agent) if not o.get("aside") and lead else ""
item = ga4_item(l)
ga4 = js_json({"ecommerce": {"currency": "USD", **({"value": item["price"]} if "price" in item else {}), "items": [item]}})
logo = None
if board and board.get("logo") and requires(rules, "mls_logo", "detail"):
bl = board["logo"]
logo = {"url": bl["url"], "alt": bl.get("alt") or board["mlsName"], "width": bl.get("width"), "height": bl.get("height")}
description = ""
if l.get("description") or inline:
description = (
'<section class="rw-detail__block"><h2 class="rw-detail__title">Description</h2>'
+ (f'<p class="rw-detail__description rw-detail__description--clamped" data-rw-description="">{esc(l["description"])}</p>' if l.get("description") else "")
+ (f'<p><a class="rw-detail__tour" href="{esc(tour_url)}" target="_blank" rel="noopener noreferrer">Take the virtual tour</a></p>' if tour_url else "")
+ (f'<p class="rw-detail__inline-attribution">{esc(inline)}</p>' if inline else "")
+ "</section>"
)
show_agent = bool(agent and (clean(agent.get("license")) or requires(rules, "agent_contact", "detail")))
lines = "".join(f'<p class="rw-attribution__{k}">{esc(v)}</p>' for k, v in (("line", None if inline else att_line), ("courtesy", None if courtesy_top else courtesy)) if v)
logo32 = board_logo(board.get("logo"), board["mlsName"], 32) if board else ""
main = (
(f'<p class="rw-detail__courtesy">{esc(courtesy_top)}</p>' if courtesy_top else "")
+ price_block(l)
+ description
+ (agent_info(agent) if show_agent else "")
+ open_houses(l.get("openHouses") or [], lead, now, ids.get("openHouses", "open-houses"))
+ property_details(sections)
+ (mortgage_calculator(o.get("apiBaseUrl"), prefill, o.get("estimate"), ids.get("mortgage", "mortgage")) if show_mortgage else "")
+ (location_map(o["googleMapsKey"], o.get("mapId"), lat, lng, usd_compact(shown_price(l)), name) if located else "")
+ f'<section class="rw-detail__block rw-detail__compliance" aria-label="Listing information"><section class="rw-recipes rw-attribution" data-mls-id="{esc(c["mlsId"])}">{logo32}<div class="rw-attribution__text">{lines}</div></section>'
+ (f'<p class="rw-detail__mlsnumber">MLS number {esc(l["mlsNumber"])} ({esc(l["mls"]["name"])})</p>' if l.get("mlsNumber") else "")
+ disclaimers([board] if board else [], c.get("asOf"))
+ "</section>"
)
aside = f'<aside class="rw-detail__aside">{o["aside"]}</aside>' if o.get("aside") else (f'<aside class="rw-detail__aside rw-detail__aside--cards">{sidebar}</aside>' if sidebar else "")
screens = full_gallery(l, located, bool(share_url), sidebar, bar, ids.get("gallery", "gallery"))
if share_url:
screens += share_modal(l, share_url, ids.get("shareTitle", "share-title"), ids.get("share", "share"))
if lead:
screens += contact_modal(l, agent, o["leadAction"], o["consentText"], o.get("alertsConsentText"), now, ids)
screens += tour_modal(l, o["leadAction"], o["consentText"], o.get("alertsConsentText"), now, ids)
return (
f'<article{attrs([("class", "rw-recipes rw-detail rw-detail--bar" if bar else "rw-recipes rw-detail"), ("data-rw-detail", l["id"]), ("data-listing-id", l["id"]), ("data-status", l["status"]), ("data-rw-ga4-event", "view_item"), ("data-rw-ga4-params", ga4)])}>'
+ detail_header(l, o.get("backHref"))
+ f'<div class="rw-detail__content">{photo_grid(l, located, bool(share_url), logo)}<div class="rw-detail__columns"><div class="rw-detail__main">{main}</div>{aside}</div></div>'
+ bar
+ screens
+ "</article>"
)
def page(title, body, head_html="", theme_vars=None):
"""The page shell: the stylesheet, your brand variables, the script and the JSON-LD the API built."""
decls = ";".join(f"{k}:{v.strip()}" for k, v in (theme_vars or {}).items() if re.fullmatch(r"--rw-[a-z0-9-]{1,80}", k) and isinstance(v, str) and re.fullmatch(r"[^;{}<>\\]{1,200}", v.strip()))
brand = f"<style>:where(.rw-recipes){{{decls}}}</style>" if decls else ""
return f"""<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">
<title>{esc(title)}</title>
<link rel="stylesheet" href="/ruuster-idx.css">{brand}
<script src="/ruuster-idx.js" defer></script>{head_html}</head>
<body><header><a href="/">{esc(SITE_NAME)}</a></header>{body}
<footer><p>Equal Housing Opportunity. {esc(SITE_NAME)} follows the Fair Housing Act.</p></footer></body></html>"""
# Your brand kit, read again every 10 minutes. After a failed call the page keeps the last brand
# variables it had (none before the first answer) and asks again a minute later.
BRAND = {"vars": None, "at": 0.0, "ttl": 0.0}
def theme_vars():
if BRAND["at"] and time.monotonic() - BRAND["at"] < BRAND["ttl"]:
return BRAND["vars"]
status, body = api("/meta")
if status == 200:
BRAND.update(vars=((body or {}).get("data") or {}).get("themeVars"), at=time.monotonic(), ttl=600.0)
else:
BRAND.update(at=time.monotonic(), ttl=60.0)
return BRAND["vars"]
def origin_of(url):
"""("https", "www.example.com", 443) for a URL, or None when it has no http or https origin."""
try:
u = urllib.parse.urlsplit(url or "")
if u.scheme not in ("http", "https") or not u.hostname:
return None
return u.scheme, u.hostname.lower(), u.port or (443 if u.scheme == "https" else 80)
except ValueError:
return None
def search_query(query):
"""The area page's own filters from its query string: one value each, a list for the repeatable ones."""
parsed = urllib.parse.parse_qs(query)
out = {}
for k in SEARCH_PARAMS:
values = [v for v in parsed.get(k, []) if v != ""]
if values:
out[k] = values if k in REPEATABLE else values[0]
for k in ("priceMin", "priceMax", "bedsMin", "bathsMin"):
if k in out and not re.fullmatch(r"\d+(\.\d+)?", out[k]):
del out[k]
return out
class Handler(BaseHTTPRequestHandler):
def send(self, status, body, content_type="text/html; charset=utf-8", headers=None):
data = body.encode("utf-8") if isinstance(body, str) else body
self.send_response(status)
self.send_header("Content-Type", content_type)
for k, v in (headers or {}).items():
self.send_header(k, v)
self.end_headers()
self.wfile.write(data)
def do_GET(self):
parts = urllib.parse.urlsplit(self.path)
path = parts.path
if path in ("/ruuster-idx.css", "/ruuster-idx.js"):
with open(os.path.join(STATIC, path[1:]), "rb") as f:
return self.send(200, f.read(), "text/css; charset=utf-8" if path.endswith(".css") else "text/javascript; charset=utf-8")
if path == "/":
q = search_query(parts.query)
status, body = api("/listings", {"where": AREA["where"], "status": "active", **q, "limit": 24, "detailHref": "/homes/{slug}"})
if status != 200:
return self.send(503, page("Please try again", "<main><h1>Please try again in a moment</h1></main>"), headers={"Retry-After": "5"})
data, meta = body["data"], body.get("meta") or {}
mls = meta.get("mls") or []
main = (
f"<main><h1>Homes for sale in {esc(AREA['name'])}</h1>{filters_drawer('/', q)}{results_toolbar(data.get('total'), 'list', '/', q)}"
f"{grid(data['listings'], mls, 'Homes in ' + AREA['name'])}{disclaimers(mls, (meta.get('freshness') or {}).get('asOf'))}</main>"
)
return self.send(200, page(f"Homes for sale in {AREA['name']}", main, data.get("jsonLdHtml") or "", theme_vars()))
match = re.fullmatch(r"/homes/([^/]*?([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}))", path)
status, body = api(f"/listings/{match.group(2)}", {"detailHref": "/homes/{slug}"}) if match else (404, None)
if status == 200 and body["data"]["slug"] != match.group(1):
return self.send(301, "", headers={"Location": f"/homes/{body['data']['slug']}"})
if status not in (200, 404, 410):
return self.send(503, page("Please try again", "<main><h1>Please try again in a moment</h1></main>"), headers={"Retry-After": "5"})
if status != 200:
gone = status == 410
return self.send(status if status in (404, 410) else 503, page("Not found", f"<main><h1>{'This home is no longer available' if gone else 'Page not found'}</h1></main>"), headers={"X-Robots-Tag": "noindex"} if gone else None)
listing = body["data"]
options = {
"backHref": "/",
"agent": AGENT,
"leadAction": LEAD_ACTION,
"consentText": CONSENT,
"alertsConsentText": ALERTS,
"shareUrl": (listing.get("head") or {}).get("canonical") or f"{SITE_ORIGIN.rstrip('/')}/homes/{listing['slug']}",
"googleMapsKey": MAPS_KEY,
"mapId": MAP_ID,
# The mortgage calculator, with no key in the page: the browser asks the API itself, which
# recognizes your approved website address (IDX_BASE_URL only when you test against another API).
"mortgage": True,
"apiBaseUrl": API if os.environ.get("IDX_BASE_URL") else None,
# The calculator's first answer, asked here with the secret key.
"estimate": mortgage_estimate(listing),
}
self.send(200, page(listing_name(listing), f"<main>{detail(listing, (body.get('meta') or {}).get('mls') or [], options)}</main>", listing.get("jsonLdHtml") or "", theme_vars()))
def fail(self, status, key):
self.send(status, json.dumps({"ok": False, "error": MESSAGES[key]}), "application/json", {"Cache-Control": "no-store"})
def do_POST(self):
"""POST /api/leads (and /api/leads/tour): the LeadSubmission JSON the contact and tour dialogs send."""
if urllib.parse.urlsplit(self.path).path not in ("/api/leads", "/api/leads/tour"):
return self.send(404, "{}", "application/json")
# Only your own pages may post: the Origin header must be exactly SITE_ORIGIN.
origin = origin_of(self.headers.get("Origin"))
if origin is None or origin != origin_of(SITE_ORIGIN):
return self.fail(403, "wrong_origin")
if not (self.headers.get("Content-Type") or "").lower().startswith("application/json"):
return self.fail(415, "unreadable")
try:
size = int(self.headers.get("Content-Length") or 0)
if size < 0 or size > 65536:
raise ValueError("The body is too big.")
lead = json.loads(self.rfile.read(size) or b"{}")
except ValueError:
return self.fail(400, "unreadable")
if not isinstance(lead, dict):
return self.fail(400, "unreadable")
if lead.get("website"):
return self.send(200, '{"ok":true}', "application/json")
if not isinstance(lead.get("consent"), dict) or not lead["consent"].get("contact"):
return self.fail(422, "need_consent")
# Send the lead to your CRM here, with your CRM key from the environment.
print("lead", json.dumps(lead), flush=True)
self.send(200, '{"ok":true}', "application/json")
if __name__ == "__main__":
print(f"Listening on http://localhost:{PORT}", flush=True)
ThreadingHTTPServer(("127.0.0.1", PORT), Handler).serve_forever()
The two files
packages/ruuster-idx-recipes/static/ruuster-idx.css
/*
* ruuster-idx.css: the one stylesheet of the Ruuster Listings API recipe components (RECIPES_CSS).
* Generated by npm run idx:recipes-static from @ruuster/idx-recipes. Do not edit it by hand.
*
* Load it once on every page that shows listings, before your own stylesheet:
* <link rel="stylesheet" href="/ruuster-idx.css">
*
* Every rule is scoped under .rw-recipes and reads --rw-* variables with Ruuster's defaults. To use
* your brand kit, read data.themeVars from GET https://idx.ruuster.com/v1/meta on your server and
* print one more rule after this file, in exactly this form (every pair, joined with ";"):
* <style>:where(.rw-recipes){--rw-colors-primary:#1f2a44;--rw-fonts-sans:Lato,Arial,sans-serif}</style>
* Print a pair only when its name matches --rw-[a-z0-9-]+ and its value has no ; { } < > or backslash.
* A .rw-recipes { } rule in your own CSS still wins over it, because :where() adds no specificity.
*/
.rw-recipes{font-family:var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);font-size:16px;line-height:1;color:var(--rw-colors-primary,#242424);text-align:left;box-sizing:border-box}
.rw-recipes *,.rw-recipes *::before,.rw-recipes *::after{box-sizing:border-box}
.rw-recipes p,.rw-recipes h1,.rw-recipes h2,.rw-recipes h3,.rw-recipes h4,.rw-recipes ul,.rw-recipes ol,.rw-recipes dl,.rw-recipes dd,.rw-recipes figure,.rw-recipes fieldset,.rw-recipes legend,.rw-recipes blockquote{margin:0;padding:0}
.rw-recipes button,.rw-recipes input,.rw-recipes select,.rw-recipes textarea,.rw-recipes optgroup{font-family:inherit}
.rw-recipes img,.rw-recipes picture,.rw-recipes video,.rw-recipes canvas{display:block;max-width:100%}
.rw-recipes :focus-visible{outline:2px solid var(--rw-colors-focus-ring,#242424);outline-offset:2px}
.rw-recipes .rw-visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.rw-recipes .rw-icon{display:inline-block;flex:none;vertical-align:middle}
.rw-recipes .rw-icon--white{color:#fff}
.rw-recipes.rw-grid .rw-grid__list{list-style:none;margin:0;padding:0;display:grid;gap:20px;grid-template-columns:minmax(0,1fr)}
.rw-recipes.rw-grid .rw-grid__item{min-width:0}
@media (min-width:602px){.rw-recipes.rw-grid .rw-grid__list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1280px){.rw-recipes.rw-grid .rw-grid__list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:1600px){.rw-recipes.rw-grid .rw-grid__list{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (min-width:1920px){.rw-recipes.rw-grid .rw-grid__list{grid-template-columns:repeat(auto-fill,minmax(375px,1fr))}}
.rw-recipes .rw-empty{padding:40px 20px;border-radius:16px;background:var(--rw-colors-grey3,#F2F2F2);color:var(--rw-colors-secondary,#6b6b6b);font-size:16px;line-height:1.4;text-align:center}
.rw-recipes .rw-skel,.rw-recipes.rw-skel{display:block;border-radius:4px;background:#F2F2F2 linear-gradient(90deg,#F2F2F2 0%,#efefef 50%,#F2F2F2 100%) no-repeat;background-size:200px 100%;opacity:0;animation:rw-skeleton-in 1ms linear 200ms forwards,rw-shimmer 1200ms linear 200ms infinite}
@media (prefers-reduced-motion:reduce){.rw-recipes .rw-skel,.rw-recipes.rw-skel{animation:none;opacity:.4}}
.rw-recipes.rw-card{position:relative;display:flex;flex-direction:column;height:100%;overflow:hidden;border-radius:16px;background:var(--rw-colors-surface-card,#222d30);color:var(--rw-colors-text-on-chrome,#fff);text-decoration:none}
.rw-recipes .rw-card__gallery{position:relative;flex:none;min-height:0;aspect-ratio:8 / 5;background:var(--rw-colors-surface-card,#222d30)}
.rw-recipes .rw-card__gallery::before{content:"";position:absolute;left:0;right:0;bottom:0;z-index:1;height:16px;background:linear-gradient(to top,var(--rw-colors-surface-card,#222d30) 0%,transparent 100%);pointer-events:none}
.rw-recipes .rw-card__photo{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.rw-recipes .rw-card__photo{color:transparent;font-size:0;background:var(--rw-colors-grey3,#F2F2F2)}
.rw-recipes .rw-card__nophoto{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:var(--rw-colors-surface-card,#222d30);color:var(--rw-colors-text-on-chrome,#fff)}
.rw-recipes .rw-card__nophoto-icon{display:block;width:96px;height:96px;opacity:.2}
.rw-recipes .rw-card__nophoto-text{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.rw-recipes .rw-card__logo{position:absolute;right:4px;bottom:20px;z-index:2;width:auto;max-width:100px;height:auto;max-height:40px}
.rw-recipes .rw-card__arrow{position:absolute;top:50%;z-index:2;display:flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;border:0;border-radius:9999px;background:var(--rw-colors-overlays-card,#151C1E33);color:#fff;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);transform:translateY(-50%);cursor:pointer;transition:all .3s ease-in-out}
.rw-recipes .rw-card__arrow--prev{left:16px}.rw-recipes .rw-card__arrow--next{right:16px}
.rw-recipes .rw-card__arrow-icon{width:18px;height:18px;color:#fff}
@media (hover:hover){.rw-recipes .rw-card__arrow{opacity:0}.rw-recipes .rw-card__gallery:hover .rw-card__arrow,.rw-recipes .rw-card__arrow:focus-visible{opacity:1}.rw-recipes .rw-card__arrow:hover{background:var(--rw-colors-overlays-card-hover,#151C1E4D);transform:translateY(-50%) scale(1.08)}}
@media (pointer:coarse){.rw-recipes .rw-card__arrow::before{content:"";position:absolute;inset:-7px}}
@media (min-width:768px){.rw-recipes .rw-card__arrow{width:32px;height:32px}.rw-recipes .rw-card__arrow-icon{width:20px;height:20px}}
.rw-recipes .rw-card__dots{position:absolute;right:16px;top:calc(100% + 7px + 13.2px);z-index:1;display:flex;align-items:center;gap:6px;transform:translateY(-50%);pointer-events:none}
.rw-recipes .rw-card__dot{width:6px;height:6px;border-radius:3px;background:var(--rw-colors-icon-on-card,#7A8183)}
.rw-recipes .rw-card__dot--on{width:8px;height:8px;border-radius:4px;background:var(--rw-colors-text-on-chrome,#fff)}
.rw-recipes .rw-card__badge{position:absolute;top:16px;left:16px;z-index:1;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 12px;border-radius:20px;background:var(--rw-colors-overlays-card,#151C1E33);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);color:#fff;font-size:10px;font-weight:600;line-height:1;text-transform:uppercase;white-space:nowrap}
.rw-recipes.rw-card:has(.rw-card__nophoto) .rw-card__badge{background:var(--rw-colors-overlays-light-card,rgba(255,255,255,.2))}
.rw-recipes .rw-card__badge-icon{width:14px;height:14px;color:currentColor}
@media (min-width:768px){.rw-recipes .rw-card__badge{font-size:12px}}
.rw-recipes .rw-card__band{display:flex;flex:1;flex-direction:column;gap:8px;padding:7px 16px 16px;color:var(--rw-colors-text-on-chrome,#fff)}
.rw-recipes .rw-card__price{margin:0;font-size:22px;line-height:1.2;font-weight:700}
.rw-recipes.rw-card:has(.rw-card__dots) .rw-card__price{padding-right:64px}
@media (min-width:768px){.rw-recipes .rw-card__price{font-size:24px}.rw-recipes .rw-card__dots{top:calc(100% + 7px + 14.4px)}}
.rw-recipes .rw-card__facts{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;align-items:center;font-size:13px;line-height:1}
.rw-recipes .rw-card__facts .rw-fact{display:flex;align-items:center;gap:4px}
.rw-recipes .rw-card__facts .rw-fact:not(:last-child)::after{content:"";display:block;width:1px;height:14px;margin:0 10px;background:var(--rw-colors-stroke-card-line,#4e5659)}
.rw-recipes .rw-fact__icon{width:18px;height:18px;color:#7A8183;flex:none}
.rw-recipes .rw-card__address{margin:0;min-width:0;font-size:13px;line-height:1.3;font-weight:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (min-width:602px) and (max-width:767px){.rw-recipes .rw-card__facts{font-size:12px}.rw-recipes .rw-card__facts .rw-fact:not(:last-child)::after{margin:0 4px}.rw-recipes .rw-card__address{font-size:12px}}
@media (min-width:768px){.rw-recipes .rw-card__facts{font-size:14px}.rw-recipes .rw-card__facts .rw-fact:not(:last-child)::after{height:22px;margin:0 12px}.rw-recipes .rw-card__address{font-size:14px}}
.rw-recipes .rw-card__link,.rw-recipes .rw-card__link:hover,.rw-recipes .rw-card__link:focus{color:inherit;text-decoration:none}
.rw-recipes .rw-card__link::after{content:"";position:absolute;inset:0;z-index:0}
.rw-recipes .rw-card__link:focus-visible{outline:none}.rw-recipes .rw-card__link:focus-visible::after{outline:2px solid var(--rw-colors-text-on-chrome,#fff);outline-offset:-4px;border-radius:16px}
.rw-recipes .rw-card__attribution,.rw-recipes .rw-card__courtesy{display:flex;flex-wrap:wrap;align-items:center;column-gap:4px;margin:auto 0 0;font-size:14px;line-height:1.3;opacity:.75}
.rw-recipes .rw-card__attribution + .rw-card__courtesy{margin-top:0}
.rw-recipes.rw-skel-card{display:flex;flex-direction:column;height:100%;overflow:hidden;border-radius:16px;background:var(--rw-colors-grey3,#F2F2F2)}
.rw-recipes .rw-skel-card__image{aspect-ratio:8 / 5;border-radius:0}
.rw-recipes .rw-skel-card__band{display:flex;flex-direction:column;gap:12px;padding:11px 16px 16px}
.rw-recipes .rw-skel-card__price{width:35%;height:24px}.rw-recipes .rw-skel-card__params{width:60%;height:16px}.rw-recipes .rw-skel-card__address{width:80%;height:16px}
.rw-recipes.rw-pagination{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:12px;min-height:56px;padding:20px 0;font-family:var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif)}
.rw-recipes .rw-pagination__list{list-style:none;margin:0;display:inline-flex;flex-wrap:wrap;align-items:center;gap:2px;padding:4px;border:1px solid var(--rw-colors-grey,#E3E3E3);border-radius:12px;background:var(--rw-colors-white,#fff)}
.rw-recipes .rw-pagination__page{display:inline-flex;align-items:center;justify-content:center;min-width:32px;padding:4px 8px;border-radius:8px;color:var(--rw-colors-secondary,#6b6b6b);font-size:13px;line-height:1.3;text-decoration:none;transition:all .3s ease-in-out}
.rw-recipes .rw-pagination__page:hover{color:var(--rw-colors-primary,#242424)}
.rw-recipes .rw-pagination__page--current{background:var(--rw-colors-grey3,#F2F2F2);color:var(--rw-colors-primary,#242424)}
.rw-recipes .rw-pagination__gap{padding:0 4px;color:var(--rw-colors-secondary,#6b6b6b);font-size:13px}
.rw-recipes .rw-pagination__step{display:inline-flex;align-items:center;justify-content:center;min-width:130px;padding:12px 20px;border:0;border-radius:9999px;background:var(--rw-colors-interactive-primary,#242424);color:var(--rw-colors-text-on-primary,#fff);font:600 13px/17px var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);text-decoration:none;transition:all .3s ease-in-out}
.rw-recipes .rw-pagination__step:hover{background:var(--rw-colors-interactive-primary-hover,#3a3a3a)}
.rw-recipes .rw-pagination__step[rel="prev"]{padding:11px 19px;border:1px solid var(--rw-colors-grey,#E3E3E3);background:var(--rw-colors-white,#fff);color:var(--rw-colors-primary,#242424)}.rw-recipes .rw-pagination__step[rel="prev"]:hover{background:var(--rw-colors-surface-grey,#F2F2F2)}
@media (min-width:500px){.rw-recipes .rw-pagination__page{min-width:40px;padding:8px 16px;font-size:16px}.rw-recipes .rw-pagination__gap{font-size:16px}}
@media (min-width:1280px){.rw-recipes .rw-pagination__step{padding:14px 20px;font-size:16px;line-height:24px}.rw-recipes .rw-pagination__step[rel="prev"]{padding:13px 19px}}
.rw-recipes.rw-disclaimers{display:flex;flex-direction:column;gap:16px;margin:24px 0;color:var(--rw-colors-text-primary,#242424);font-size:14px;line-height:1.5}
.rw-recipes .rw-disclaimer{display:flex;align-items:flex-start;gap:8px;padding:15px;border:1px solid var(--rw-colors-stroke-light,#E3E3E3);border-radius:12px;background:var(--rw-colors-surface-base,#fff)}
.rw-recipes .rw-disclaimer__text{display:flex;flex-direction:column;gap:8px;min-width:0;overflow-wrap:anywhere}
.rw-recipes .rw-disclaimer__text strong,.rw-recipes .rw-disclaimer__text b{font-weight:800}
.rw-recipes .rw-board-logo{flex:none;width:auto;max-width:120px;height:auto;max-height:40px}
.rw-recipes .rw-asof{color:var(--rw-colors-secondary,#6b6b6b);font-size:13px;line-height:1.5}
.rw-recipes.rw-disclaimers--map{gap:2px;margin:0;padding:6px 8px;border-radius:8px;background:rgba(255,255,255,.85);font-size:10px;line-height:1.35}
.rw-recipes.rw-disclaimers--map .rw-disclaimer{padding:0;border:0;border-radius:0;background:transparent}.rw-recipes.rw-disclaimers--map .rw-disclaimer__text{gap:0}
.rw-recipes.rw-attribution{display:flex;align-items:center;gap:12px;color:var(--rw-colors-secondary,#6b6b6b);font-size:13px;line-height:1.5}
.rw-recipes .rw-attribution__text{display:flex;flex-direction:column;gap:2px;min-width:0}
.rw-recipes .rw-attribution__line{color:var(--rw-colors-primary,#242424);font-weight:600}
.rw-recipes .rw-button{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:130px;padding:12px 20px;border:0;border-radius:9999px;background:var(--rw-colors-interactive-primary,#242424);color:var(--rw-colors-text-on-primary,#fff);font:600 13px/17px var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);text-align:center;text-decoration:none;cursor:pointer;transition:all .3s ease-in-out}
.rw-recipes .rw-button:hover{background:var(--rw-colors-interactive-primary-hover,#3a3a3a)}
.rw-recipes .rw-button--accent{background:var(--rw-colors-accent,#fbe08e);color:var(--rw-colors-text-on-gold,#242424)}.rw-recipes .rw-button--accent:hover{background:var(--rw-colors-hovers-accent,#f0cc6a)}
.rw-recipes .rw-button--outline{padding:11px 19px;border:1px solid var(--rw-colors-grey,#E3E3E3);background:var(--rw-colors-white,#fff);color:var(--rw-colors-primary,#242424)}.rw-recipes .rw-button--outline:hover{background:var(--rw-colors-surface-grey,#F2F2F2)}
.rw-recipes .rw-button--ghost{background:transparent;color:var(--rw-colors-primary,#242424)}.rw-recipes .rw-button--ghost:hover{background:transparent;color:var(--rw-colors-hovers-primary,#3a3a3a)}
.rw-recipes .rw-button--block{width:100%}
.rw-recipes .rw-button:disabled,.rw-recipes .rw-button[aria-disabled="true"]{background:var(--rw-colors-grey,#E3E3E3);color:var(--rw-colors-tertiary,#a0a0a0);border-color:transparent;cursor:not-allowed}
@media (min-width:1280px){.rw-recipes .rw-button{padding:14px 20px;font-size:16px;line-height:24px}.rw-recipes .rw-button--outline{padding:13px 19px}}
.rw-recipes .rw-field{display:flex;flex-direction:column;gap:4px;min-width:0;border:0;padding:0;margin:0}
.rw-recipes .rw-field__label{display:block;margin:0;padding:0;font:400 13px/1.3 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);letter-spacing:-.3px;color:var(--rw-colors-primary,#242424)}
.rw-recipes .rw-field__label--required::after{content:" *";color:var(--rw-colors-danger,#FF5858)}
.rw-recipes .rw-field__error{margin:0;font-size:10px;line-height:1;color:#b00020}
.rw-recipes .rw-input,.rw-recipes .rw-select{display:block;width:100%;margin:0;padding:11px 14px;border:1px solid var(--rw-colors-grey,#E3E3E3);border-radius:12px;background:var(--rw-colors-white,#fff);color:var(--rw-colors-primary,#242424);font:400 14px/1.4 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);letter-spacing:-.6px;transition:border-color .3s ease-in-out}
.rw-recipes .rw-input::placeholder{color:var(--rw-colors-tertiary,#a0a0a0);opacity:1}
.rw-recipes .rw-input:focus,.rw-recipes .rw-select:focus{border-color:var(--rw-colors-primary,#242424);outline:none}
.rw-recipes .rw-input[aria-invalid="true"]{border-color:var(--rw-colors-danger,#FF5858)}
.rw-recipes .rw-select{appearance:none;-webkit-appearance:none;padding-right:46px;background:var(--rw-colors-white,#fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M19 9l-7 6-7-6' stroke='%23242424' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 24px 24px;cursor:pointer}
.rw-recipes .rw-select:disabled{opacity:.5;cursor:not-allowed}
.rw-recipes .rw-textarea{min-height:96px;resize:vertical}
@media (min-width:768px){.rw-recipes .rw-field{gap:8px}.rw-recipes .rw-field__error{font-size:12px;line-height:1.3}.rw-recipes .rw-input,.rw-recipes .rw-select{padding:16px;font-size:16px}.rw-recipes .rw-select{padding-right:48px;background-position:right 16px center}.rw-recipes .rw-textarea{min-height:120px}}
.rw-recipes .rw-check{display:flex;align-items:flex-start;gap:12px;font:400 13px/1.3 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);color:var(--rw-colors-primary,#242424);cursor:pointer}
.rw-recipes .rw-check input[type="checkbox"],.rw-recipes input[type="checkbox"].rw-checkbox{appearance:none;-webkit-appearance:none;flex:none;width:20px;height:20px;margin:0;border:1px solid var(--rw-colors-grey,#E3E3E3);border-radius:4px;background:var(--rw-colors-white,#fff) center / 16px 16px no-repeat;cursor:pointer;transition:all .3s ease-in-out}
.rw-recipes .rw-check input[type="checkbox"]:checked,.rw-recipes input[type="checkbox"].rw-checkbox:checked{border-color:var(--rw-colors-primary,#242424);background-color:var(--rw-colors-primary,#242424);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.5l3 3 6-7' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.rw-recipes .rw-check input:disabled{opacity:.5;cursor:not-allowed}
.rw-recipes .rw-check input[type="radio"]{appearance:none;-webkit-appearance:none;flex:none;width:20px;height:20px;margin:0 8px 0 0;border:3px solid var(--rw-colors-grey,#E3E3E3);border-radius:50%;background:var(--rw-colors-white,#fff);cursor:pointer}
.rw-recipes .rw-check input[type="radio"]:checked{border:6px solid var(--rw-colors-primary,#242424)}
.rw-recipes .rw-check > span{padding-top:3px}
.rw-recipes.rw-filters{display:grid;gap:12px;margin:0 0 20px;font-family:var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);color:var(--rw-colors-primary,#242424)}
.rw-recipes .rw-filters__row{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.rw-recipes .rw-field--price{display:grid;grid-template-columns:1fr 1fr;gap:4px 6px}
.rw-recipes .rw-field--price .rw-field__label:nth-of-type(1){grid-column:1;grid-row:1}.rw-recipes .rw-field--price .rw-field__label:nth-of-type(2){grid-column:2;grid-row:1}
.rw-recipes .rw-field--status{display:flex;flex-flow:row wrap;gap:12px 20px}
.rw-recipes .rw-field--status > legend{float:left;width:100%;margin:0 0 8px}.rw-recipes .rw-field--status > legend + *{clear:left}
.rw-recipes .rw-field--status .rw-check{align-items:center;font-size:16px;line-height:1.4}.rw-recipes .rw-field--status .rw-check > span{padding:0}
.rw-recipes .rw-filters__actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:12px}
.rw-recipes.rw-filters .rw-select,.rw-recipes .rw-quick .rw-select{min-height:56px;padding:12px 50px 12px 14px;border-radius:16px;background-position:right 14px center;font-size:16px;line-height:1.2;font-weight:300;letter-spacing:0}
.rw-recipes.rw-filters .rw-input,.rw-recipes .rw-quick .rw-input{height:54px;padding:17px 16px;border-radius:16px;font-size:16px;line-height:1.2;font-weight:300;letter-spacing:0}
.rw-recipes.rw-filters .rw-input::placeholder{color:var(--rw-colors-tertiary,#a0a0a0)}
.rw-recipes.rw-filters input[type="number"]{-moz-appearance:textfield;appearance:textfield}.rw-recipes.rw-filters input[type="number"]::-webkit-outer-spin-button,.rw-recipes.rw-filters input[type="number"]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.rw-recipes .rw-filters__dynamic{display:grid;gap:12px}
.rw-recipes .rw-filters__dynamic .rw-field{position:relative}
.rw-recipes .rw-filters__dynamic .rw-field[hidden],.rw-recipes .rw-pick__list .rw-check[hidden]{display:none}
.rw-recipes .rw-field--range,.rw-recipes .rw-field--pick{display:block}
.rw-recipes .rw-field--range > legend,.rw-recipes .rw-field--pick > legend{float:left;width:100%;margin:0 0 4px}.rw-recipes .rw-field--range > legend + *,.rw-recipes .rw-field--pick > legend + *{clear:left}
@media (min-width:768px){.rw-recipes .rw-field--range > legend,.rw-recipes .rw-field--pick > legend{margin-bottom:8px}}
.rw-recipes .rw-range{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px}
.rw-recipes .rw-range__sep::after{content:"\2013";color:var(--rw-colors-tertiary,#a0a0a0);font-size:16px;line-height:1}
.rw-recipes .rw-pick__summary{display:flex;align-items:center;min-height:56px;padding:12px 50px 12px 14px;border:1px solid var(--rw-colors-grey,#E3E3E3);border-radius:16px;background:var(--rw-colors-white,#fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M19 9l-7 6-7-6' stroke='%23242424' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 24px 24px;color:var(--rw-colors-primary,#242424);font:300 16px/1.2 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);cursor:pointer;list-style:none;user-select:none;transition:border-color .3s ease-in-out}
.rw-recipes .rw-pick__summary::-webkit-details-marker{display:none}.rw-recipes .rw-pick__summary::marker{content:""}
.rw-recipes .rw-pick[open] > .rw-pick__summary,.rw-recipes .rw-pick__summary:hover{border-color:var(--rw-colors-primary,#242424)}
.rw-recipes .rw-pick__summary:focus-visible,.rw-recipes .rw-field__more-toggle:focus-visible,.rw-recipes .rw-filters__section-title:focus-visible{outline:2px solid var(--rw-colors-primary,#242424);outline-offset:2px}
.rw-recipes .rw-pick__panel{display:grid;gap:12px;margin-top:8px;padding:14px;border:1px solid var(--rw-colors-grey,#E3E3E3);border-radius:12px;background:var(--rw-colors-white,#fff)}
.rw-recipes .rw-pick__list{display:grid;gap:12px;max-height:260px;overflow:auto}.rw-recipes .rw-pick__list:empty{display:none}
.rw-recipes .rw-pick__list .rw-check{align-items:center;font-size:16px;line-height:1.4}.rw-recipes .rw-pick__list .rw-check > span{padding:0}
.rw-recipes .rw-pick__status{margin:0;color:var(--rw-colors-secondary,#6b6b6b);font:400 13px/1.3 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif)}.rw-recipes .rw-pick__status:empty{display:none}
.rw-recipes .rw-field__more-toggle{position:absolute;top:0;right:0;color:var(--rw-colors-primary,#242424);font:400 12px/1.3 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);letter-spacing:-.3px;cursor:pointer;list-style:none;user-select:none}
.rw-recipes .rw-field__more-toggle::-webkit-details-marker{display:none}.rw-recipes .rw-field__more-toggle::marker{content:""}
.rw-recipes .rw-field__more-toggle:hover{color:var(--rw-colors-hovers-primary,#3a3a3a)}
.rw-recipes .rw-field__more-panel{display:grid;gap:8px;margin-top:12px}.rw-recipes .rw-field__more-panel .rw-check{align-items:center;font-size:14px}.rw-recipes .rw-field__more-panel .rw-check > span{padding:0}
.rw-recipes .rw-filters__section{border:1px solid var(--rw-colors-grey,#E3E3E3);border-radius:12px;overflow:hidden}
.rw-recipes .rw-filters__section-title{display:flex;align-items:center;min-height:52px;padding:12px 50px 12px 16px;background:var(--rw-colors-grey3,#F2F2F2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M19 9l-7 6-7-6' stroke='%23242424' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 24px 24px;color:var(--rw-colors-primary,#242424);font:600 16px/1.4 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);letter-spacing:-.6px;cursor:pointer;list-style:none;user-select:none}
.rw-recipes .rw-filters__section-title::-webkit-details-marker{display:none}.rw-recipes .rw-filters__section-title::marker{content:""}
.rw-recipes .rw-filters__section > .rw-field{padding:12px 16px;border-top:1px solid var(--rw-colors-grey,#E3E3E3)}
.rw-recipes .rw-filters__section > .rw-field > .rw-field__more > .rw-field__more-toggle{top:12px;right:16px}
.rw-recipes.rw-filterbar{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin:0 0 10px;font-family:var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);color:var(--rw-colors-primary,#242424)}
@media (min-width:520px){.rw-recipes.rw-filterbar{flex-direction:row;flex-wrap:nowrap;align-items:flex-start;justify-content:flex-end}}
@media (min-width:500px){.rw-recipes.rw-filterbar{margin-bottom:20px}}
.rw-recipes.rw-filterbar > .rw-search{width:100%}
@media (min-width:520px){.rw-recipes.rw-filterbar > .rw-search{flex:1;width:auto}}
@media (min-width:1741px){.rw-recipes.rw-filterbar:has(> .rw-search) .rw-filters--bar{flex:0 1 auto}}
.rw-recipes .rw-filters--bar{display:none;margin:0}
@media (min-width:1741px){.rw-recipes .rw-filters--bar{display:flex;flex:1;flex-wrap:wrap;gap:12px}}
.rw-recipes .rw-quick{position:relative;width:156px}
.rw-recipes .rw-quick__trigger{display:flex;align-items:center;justify-content:space-between;gap:8px;height:52px;padding:0 14px 0 20px;border-radius:16px;background:var(--rw-colors-grey3,#F2F2F2);color:var(--rw-colors-primary,#242424);font:400 16px/1.4 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);letter-spacing:-.6px;white-space:nowrap;cursor:pointer;list-style:none;user-select:none;transition:all .3s ease-in-out}
.rw-recipes .rw-quick__trigger > span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.rw-recipes .rw-quick__trigger::-webkit-details-marker{display:none}.rw-recipes .rw-quick__trigger::marker{content:""}
.rw-recipes .rw-quick__trigger:hover,.rw-recipes .rw-quick[open] .rw-quick__trigger{background:#e8e8e8}
.rw-recipes .rw-quick__chevron{width:20px;height:20px;transition:transform .2s ease-in-out}.rw-recipes .rw-quick[open] .rw-quick__chevron{transform:rotate(180deg)}
.rw-recipes .rw-quick__panel{position:absolute;top:calc(100% + 8px);left:0;z-index:2;min-width:320px;overflow:hidden;border:1px solid var(--rw-colors-grey,#E3E3E3);border-radius:12px;background:var(--rw-colors-white,#fff);box-shadow:-6px 8px 20px 0 rgba(0,0,0,.08);transition:opacity .15s ease-out,transform .15s ease-out;@starting-style{opacity:0;transform:translateY(-8px)}}
.rw-recipes .rw-quick__title{margin:0;padding:12px 20px;background:var(--rw-colors-grey3,#F2F2F2);color:var(--rw-colors-primary,#242424);font:600 16px/1.4 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);letter-spacing:-.6px}
.rw-recipes .rw-quick__body{display:grid;gap:12px;padding:20px}
.rw-recipes .rw-quick__body .rw-field--status{flex-direction:column;flex-wrap:nowrap;gap:12px}
.rw-recipes .rw-quick__pair{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.rw-recipes .rw-quick__footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 20px;border-top:1px solid var(--rw-colors-grey,#E3E3E3)}
.rw-recipes .rw-quick__reset{color:var(--rw-colors-primary,#242424);font:600 16px/24px var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);letter-spacing:-.3px;text-decoration:none}.rw-recipes .rw-quick__reset:hover{color:var(--rw-colors-hovers-primary,#3a3a3a)}
.rw-recipes .rw-quick__apply{min-width:0;height:40px;margin-left:auto;padding:8px 20px;font-size:13px;line-height:17px;letter-spacing:-.43px}
.rw-recipes.rw-morefilters-wrap{display:contents}
.rw-recipes .rw-morefilters{position:relative;flex:none;width:100%;display:inline-flex;align-items:center;justify-content:center;gap:8px;height:42px;padding:0 10px;border:0;border-radius:9999px;background:var(--rw-colors-accent,#fbe08e);color:var(--rw-colors-text-on-gold,#242424);font:600 14px/1 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);white-space:nowrap;cursor:pointer;transition:all .3s ease-in-out}
.rw-recipes .rw-morefilters:hover{background:var(--rw-colors-hovers-accent,#f0cc6a)}
.rw-recipes .rw-morefilters__icon,.rw-recipes .rw-morefilters__badge{display:none}
@media (min-width:520px) and (max-width:1023px){.rw-recipes .rw-morefilters{flex:none;width:52px;height:52px;padding:0;border-radius:50%;background:var(--rw-colors-surface-grey,#F2F2F2);color:var(--rw-colors-primary,#242424)}.rw-recipes .rw-morefilters:hover{background:var(--rw-colors-hovers-accent,#f0cc6a)}.rw-recipes .rw-morefilters__icon{display:block;width:24px;height:24px}.rw-recipes .rw-morefilters__label{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.rw-recipes .rw-morefilters__badge{position:absolute;top:-3px;right:-3px;display:flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 4px;border-radius:9999px;background:var(--rw-colors-accent,#fbe08e);color:var(--rw-colors-text-on-gold,#242424);font-size:12px;font-weight:600}}
@media (min-width:1024px){.rw-recipes .rw-morefilters{width:auto;height:52px;padding:0 20px;font-size:16px}}
.rw-recipes .rw-drawer{position:fixed;top:0;right:0;bottom:0;left:auto;width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;overflow:hidden;background:var(--rw-colors-white,#fff);color:var(--rw-colors-primary,#242424);font-family:var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);box-shadow:-4px 0 24px rgba(0,0,0,.15)}
.rw-recipes .rw-drawer[open]{display:flex;flex-direction:column;transform:none;transition:transform .3s ease-in-out,overlay .3s allow-discrete,display .3s allow-discrete;@starting-style{transform:translateX(100%)}}
.rw-recipes .rw-drawer[open]::backdrop{background:rgba(0,0,0,.4);transition:background .3s ease-in-out;@starting-style{background:rgba(0,0,0,0)}}
.rw-recipes .rw-drawer__header{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;background:var(--rw-colors-surface-chrome,#242424);color:var(--rw-colors-text-on-chrome,#fff)}
.rw-recipes .rw-drawer__title{margin:0;color:inherit;font:400 18px/1.15 var(--rw-fonts-serif,Marcellus,Georgia,'Times New Roman',serif)}
.rw-recipes .rw-drawer__close{display:inline-flex;align-items:center;justify-content:center;flex:none;padding:0;border:0;background:transparent;color:inherit;cursor:pointer}
.rw-recipes .rw-drawer__close:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.rw-recipes .rw-drawer__close .rw-icon{width:18px;height:18px}
.rw-recipes .rw-drawer__body{flex:1;min-height:0;overflow:auto;padding:0}
.rw-recipes .rw-drawer__body .rw-filters{display:block;margin:0}.rw-recipes .rw-drawer__body .rw-filters__row{display:block}
.rw-recipes .rw-drawer__body .rw-field{gap:0;padding:15px;border-bottom:1px solid var(--rw-colors-grey,#E3E3E3)}
.rw-recipes .rw-drawer__body .rw-field__label{margin-bottom:8px;font-size:13px;line-height:1.3}
.rw-recipes .rw-drawer__body .rw-field--price{display:grid;grid-template-columns:1fr auto 1fr;row-gap:0;column-gap:8px}.rw-recipes .rw-drawer__body .rw-field--price .rw-field__label{margin-bottom:8px}
.rw-recipes .rw-drawer__body .rw-field--price .rw-field__label:nth-of-type(2){grid-column:3}.rw-recipes .rw-drawer__body .rw-field--price .rw-input:nth-of-type(1){grid-column:1;grid-row:2}.rw-recipes .rw-drawer__body .rw-field--price .rw-input:nth-of-type(2){grid-column:3;grid-row:2}
.rw-recipes .rw-drawer__body .rw-field--price::after{content:"\2013";grid-column:2;grid-row:2;align-self:center;color:var(--rw-colors-tertiary,#a0a0a0);font-size:16px;line-height:1}
.rw-recipes .rw-drawer__body .rw-field--status{display:flex;gap:12px 20px}
.rw-recipes .rw-drawer__body .rw-filters__dynamic{display:block}
.rw-recipes .rw-drawer__body .rw-field--range,.rw-recipes .rw-drawer__body .rw-field--pick{display:block}
.rw-recipes .rw-drawer__body .rw-field--range > legend,.rw-recipes .rw-drawer__body .rw-field--pick > legend{margin-bottom:8px}
.rw-recipes .rw-drawer__body .rw-field > .rw-field__more > .rw-field__more-toggle{top:15px;right:15px}
.rw-recipes .rw-drawer__body .rw-filters__section{border:0;border-radius:0}.rw-recipes .rw-drawer__body .rw-filters__section-title{padding-left:15px;border-bottom:1px solid var(--rw-colors-grey,#E3E3E3)}
.rw-recipes .rw-drawer__body .rw-filters__section > .rw-field{padding:15px;border-top:0}
.rw-recipes .rw-drawer__footer{flex:none;display:flex;flex-direction:column-reverse;gap:8px;padding:10px 15px calc(10px + var(--safe-area-bottom,env(safe-area-inset-bottom,0px)));border-top:1px solid var(--rw-colors-grey,#E3E3E3)}
.rw-recipes .rw-drawer__reset{align-self:center;padding:8px;border:0;background:none;color:var(--rw-colors-primary,#242424);font:600 13px/1.2 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);letter-spacing:-.3px;text-decoration:none;transition:all .3s ease-in-out}
.rw-recipes .rw-drawer__reset:hover{color:var(--rw-colors-hovers-primary,#3a3a3a)}
.rw-recipes .rw-drawer__show{min-width:120px;padding:8px;font-size:13px;line-height:1.2}
@media (min-width:375px){.rw-recipes .rw-drawer__header{padding:12px 20px}.rw-recipes .rw-drawer__title{font-size:22px}.rw-recipes .rw-drawer__close .rw-icon{width:20px;height:20px}.rw-recipes .rw-drawer__footer{flex-direction:row;align-items:center;justify-content:space-between;gap:12px;padding:15px 15px calc(15px + var(--safe-area-bottom,env(safe-area-inset-bottom,0px)))}.rw-recipes .rw-drawer__reset{padding:0;font-size:14px}.rw-recipes .rw-drawer__show{min-width:130px;padding:12px 20px}}
@media (min-width:602px){.rw-recipes .rw-drawer{max-width:602px;border-radius:20px 0 0 20px}.rw-recipes .rw-drawer__header{padding:20px 40px;border-radius:20px 0 0 0}.rw-recipes .rw-drawer__close .rw-icon{width:24px;height:24px}.rw-recipes .rw-drawer__reset{padding:12px 20px}.rw-recipes .rw-drawer__reset,.rw-recipes .rw-drawer__show{font-size:16px}}
@media (min-width:768px){.rw-recipes .rw-drawer__body .rw-field > .rw-field__more > .rw-field__more-toggle{top:28px;right:20px}.rw-recipes .rw-drawer__body .rw-filters__section-title{padding-left:20px}.rw-recipes .rw-drawer__body .rw-filters__section > .rw-field{padding:28px 20px}}
@media (min-width:768px){.rw-recipes .rw-drawer__title{font-size:32px}.rw-recipes .rw-drawer__body .rw-field{padding:28px 20px}.rw-recipes .rw-drawer__footer{padding:20px 20px calc(20px + var(--safe-area-bottom,env(safe-area-inset-bottom,0px)))}}
.rw-recipes.rw-search{position:relative;min-width:0;font-family:var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif)}
.rw-recipes .rw-search__box{display:flex;align-items:center;gap:5px;min-height:54px;padding:8px;border:1px solid var(--rw-colors-grey,#E3E3E3);border-radius:16px;background:var(--rw-colors-white,#fff);transition:border-color .3s ease-in-out}
.rw-recipes .rw-search__box:focus-within{border-color:var(--rw-colors-primary,#242424)}
.rw-recipes .rw-search__box:has([aria-expanded="true"]){border-radius:16px 16px 0 0}
.rw-recipes .rw-search__icon{display:none}
.rw-recipes .rw-search__input{flex:1;min-width:0;height:36px;margin:0;padding:0 8px;border:0;outline:none;background:transparent;color:var(--rw-colors-primary,#242424);font:400 16px/1.4 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);letter-spacing:-.6px}
.rw-recipes .rw-search__input::placeholder{color:var(--rw-colors-secondary,#6b6b6b);opacity:1}
.rw-recipes .rw-search__menu{position:absolute;left:0;right:0;top:calc(100% - 1px);z-index:10;max-height:270px;overflow:auto;padding:4px 0 8px;border:1px solid var(--rw-colors-primary,#242424);border-top:0;border-radius:0 0 16px 16px;background:var(--rw-colors-white,#fff)}
.rw-recipes .rw-search__heading{padding:2px 20px;color:var(--rw-colors-primary,#242424);font:600 16px/1.4 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);letter-spacing:-.3px}
.rw-recipes .rw-search__option{display:flex;align-items:center;min-height:44px;padding:0 20px;color:var(--rw-colors-secondary,#6b6b6b);font:400 16px/1.4 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);letter-spacing:-.6px;cursor:pointer}
.rw-recipes .rw-search__option--active{background:var(--rw-colors-accent-light,#FDEFC5)}
.rw-recipes.rw-search[data-rw-loading] .rw-search__box::after{content:"";flex:none;width:18px;height:18px;margin-right:8px;border-radius:50%;border:2px solid var(--rw-colors-grey,#E3E3E3);border-top-color:var(--rw-colors-primary,#242424);animation:rw-spin .7s linear infinite}
@keyframes rw-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.rw-recipes.rw-search[data-rw-loading] .rw-search__box::after{animation-duration:2s}}
.rw-recipes .rw-search__empty{padding:10px 20px;color:var(--rw-colors-secondary,#6b6b6b);font:400 15px/1.4 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif)}
@media (min-width:1024px){.rw-recipes.rw-search{flex:1}}
.rw-recipes.rw-toolbar{display:flex;flex-direction:column;align-items:flex-start;gap:3px;margin:0 0 10px;font-family:var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);color:var(--rw-colors-primary,#242424)}
.rw-recipes .rw-toolbar__count{margin:0;color:var(--rw-colors-secondary,#6b6b6b);font-size:13px;line-height:1}
.rw-recipes .rw-toolbar__showing{color:var(--rw-colors-secondary,#6b6b6b)}
.rw-recipes .rw-toolbar__total{padding:0;background:transparent;color:var(--rw-colors-primary,#242424)}
.rw-recipes .rw-toolbar__controls{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%}
.rw-recipes .rw-toolbar__sort{display:flex;align-items:center;gap:4px;margin:0;min-width:0}
.rw-recipes .rw-toolbar__sort-label{color:var(--rw-colors-secondary,#6b6b6b);font-size:13px;line-height:1;white-space:nowrap}
.rw-recipes .rw-toolbar__select{appearance:none;-webkit-appearance:none;height:auto;max-width:60vw;margin:0;padding:4px 24px 4px 4px;border:0;border-radius:8px;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M9.5 4.5L6 7.5L2.5 4.5' stroke='%23242424' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 4px center / 12px 12px;color:var(--rw-colors-primary,#242424);font:500 13px/1.3 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);text-overflow:ellipsis;cursor:pointer;transition:all .3s ease-in-out}
.rw-recipes .rw-toolbar__select:hover{background-color:rgba(255,255,255,.1)}
.rw-recipes .rw-toolbar__select:focus{outline:none}.rw-recipes .rw-toolbar__select:focus-visible{outline:2px solid var(--rw-colors-primary,#242424);outline-offset:1px}
.rw-recipes .rw-toolbar__views{display:inline-flex;flex:none;gap:0;padding:4px;border:1px solid var(--rw-colors-grey,#E3E3E3);border-radius:12px;background:var(--rw-colors-white,#fff)}
.rw-recipes .rw-toolbar__view{display:inline-flex;align-items:center;padding:4px 8px;border-radius:8px;color:var(--rw-colors-secondary,#6b6b6b);font-size:13px;line-height:1.3;text-decoration:none;transition:all .3s ease-in-out}
.rw-recipes .rw-toolbar__view:hover{color:var(--rw-colors-primary,#242424)}
.rw-recipes .rw-toolbar__view--on{background:var(--rw-colors-grey3,#F2F2F2);color:var(--rw-colors-primary,#242424)}
@media (min-width:500px){.rw-recipes.rw-toolbar{gap:12px;margin-bottom:20px}.rw-recipes .rw-toolbar__count,.rw-recipes .rw-toolbar__sort-label{font-size:16px}.rw-recipes .rw-toolbar__controls{gap:12px}.rw-recipes .rw-toolbar__select{height:45px;padding:8px 32px 8px 12px;background-position:right 12px center;font-size:16px}.rw-recipes .rw-toolbar__view{padding:8px 16px;font-size:16px}}
@media (min-width:768px){.rw-recipes.rw-toolbar{flex-direction:row;align-items:center;justify-content:space-between}.rw-recipes .rw-toolbar__controls{width:auto;justify-content:flex-end}}
.rw-recipes.rw-skel--count{display:inline-block;width:150px;height:16px;vertical-align:middle}
.rw-recipes.rw-detail{display:block;background:var(--rw-colors-white,#fff)}
.rw-recipes .rw-detail__content{display:flex;flex-direction:column;width:100%;max-width:1500px;margin:0 auto;padding:20px}
.rw-recipes.rw-detail--bar .rw-detail__content{padding-bottom:160px}
@media (min-width:768px){.rw-recipes.rw-detail--bar .rw-detail__content{padding-bottom:96px}}
@media (min-width:992px){.rw-recipes.rw-detail--bar .rw-detail__content{padding-bottom:20px}}
.rw-recipes .rw-detail__columns{display:flex;flex-direction:column;gap:16px;margin-top:20px}
.rw-recipes .rw-detail__main{display:flex;flex-direction:column;gap:16px;flex:1;min-width:0}
.rw-recipes .rw-detail__aside{display:flex;flex-direction:column;gap:16px;width:100%;min-width:0}
.rw-recipes .rw-detail__aside--cards{display:none}
@media (min-width:992px){.rw-recipes .rw-detail__columns{flex-direction:row;align-items:flex-start;gap:20px}.rw-recipes .rw-detail__main{gap:20px}.rw-recipes .rw-detail__aside{position:sticky;top:93px;flex:none;width:390px;gap:20px}.rw-recipes .rw-detail__aside--cards{display:flex}}
@media (min-width:1280px){.rw-recipes .rw-detail__aside{width:490px}}
.rw-recipes .rw-detail__block{display:flex;flex-direction:column;gap:12px 0;min-width:0;padding:20px;border:1px solid var(--rw-colors-grey,#E3E3E3);border-radius:16px}
.rw-recipes .rw-detail__title{flex:1;margin:0;color:var(--rw-colors-primary,#242424);font:400 32px/1 var(--rw-fonts-serif,Marcellus,Georgia,'Times New Roman',serif)}
.rw-recipes .rw-detail__block--cream{border-color:var(--rw-colors-cream-border,#EADFB8);background:var(--rw-colors-cream-background,#F9F6EB)}
.rw-recipes .rw-detail__courtesy{color:var(--rw-colors-secondary,#6b6b6b);font-size:13px;line-height:1.5}
.rw-recipes .rw-detail__description{color:var(--rw-colors-secondary,#6b6b6b);font-size:15px;line-height:24px;white-space:pre-line}
.rw-recipes .rw-detail__description--clamped{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
.rw-recipes .rw-detail__more{display:inline-block;align-self:flex-start;margin-top:8px;padding:0;border:0;background:none;color:var(--rw-colors-primary,#242424);font:600 14px/1.4 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);text-decoration:none;cursor:pointer;transition:color .3s ease-in-out}
.rw-recipes .rw-detail__more:hover{color:var(--rw-colors-hovers-primary,#3a3a3a)}
.rw-recipes .rw-detail__description + .rw-detail__more{margin-top:-4px}
.rw-recipes .rw-detail__tour{color:var(--rw-colors-link-default,#242424);font-size:14px;font-weight:600;line-height:1.4}
.rw-recipes .rw-detail__inline-attribution{color:var(--rw-colors-secondary,#6b6b6b);font-size:12px;line-height:1.5}
.rw-recipes .rw-details__list{display:flex;flex-direction:column;overflow:hidden;background:var(--rw-colors-white,#fff)}
.rw-recipes .rw-accordion{border-bottom:1px solid var(--rw-colors-grey,#E3E3E3)}.rw-recipes .rw-accordion:last-child{border-bottom:0}
.rw-recipes .rw-accordion__summary{display:flex;align-items:center;gap:12px;width:100%;padding:20px 0;color:var(--rw-colors-primary,#242424);font:500 16px/1.4 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);text-align:left;cursor:pointer;list-style:none}
.rw-recipes .rw-accordion__summary::-webkit-details-marker{display:none}.rw-recipes .rw-accordion__summary::marker{content:""}
.rw-recipes .rw-accordion__icon{width:24px;height:24px;color:var(--rw-colors-primary,#242424)}
.rw-recipes .rw-accordion__title{flex:1;min-width:0}
.rw-recipes .rw-accordion__chevron{width:20px;height:20px;color:var(--rw-colors-primary,#242424);transition:transform .3s ease-in-out}
.rw-recipes .rw-accordion[open] > .rw-accordion__summary .rw-accordion__chevron{transform:rotate(180deg)}
.rw-recipes .rw-accordion__list{margin:0;padding:0 0 20px 16px;list-style:disc;color:var(--rw-colors-primary,#242424);font-size:14px;line-height:20px}
.rw-recipes .rw-accordion__item{margin:0 0 7px;overflow-wrap:anywhere;break-inside:avoid}
.rw-recipes .rw-accordion__item::marker{color:var(--rw-colors-grey2,#A0A0A0)}
.rw-recipes .rw-accordion__label{font-weight:400}.rw-recipes .rw-accordion__label::after{content:":"}
.rw-recipes .rw-accordion__list a{color:var(--rw-colors-blue,#0067F8);font-weight:500}
@media (min-width:768px){.rw-recipes .rw-accordion__list{margin-left:36px;columns:2;column-gap:34px}}
.rw-recipes .rw-detail__mlsnumber{color:var(--rw-colors-secondary,#6b6b6b);font-size:13px;line-height:1.5}
.rw-recipes.rw-market{display:grid;gap:12px;margin:20px 0}
.rw-recipes .rw-market__tiles{list-style:none;margin:0;padding:0;display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.rw-recipes .rw-market__tile{display:flex;flex-direction:column;gap:6px;padding:20px;border:1px solid var(--rw-colors-grey,#E3E3E3);border-radius:16px;background:var(--rw-colors-white,#fff)}
.rw-recipes .rw-market__label{color:var(--rw-colors-secondary,#6b6b6b);font-size:14px;line-height:1.4}
.rw-recipes .rw-market__value{color:var(--rw-colors-primary,#242424);font-size:32px;font-weight:700;line-height:1.2}
.rw-recipes .rw-market__month,.rw-recipes .rw-market__source{color:var(--rw-colors-secondary,#6b6b6b);font-size:13px;line-height:1.5}
.rw-recipes .rw-market__change{font-size:14px;font-weight:600;line-height:1.4}
.rw-recipes.rw-map{position:relative;flex:1;width:100%;height:calc(100dvh - 190px);min-height:450px;overflow:hidden;border-radius:12px;background:var(--rw-colors-surface-grey,#F2F2F2);font-family:var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif)}
.rw-recipes .rw-map__canvas{position:absolute;inset:0}
.rw-recipes .rw-map__message{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;color:var(--rw-colors-primary,#242424);font-weight:500;line-height:1.4;text-align:center}
.rw-recipes .rw-map__disclaimer{position:absolute;left:8px;bottom:8px;z-index:2;max-width:min(calc(100% - 76px),520px);max-height:30%;overflow:auto;border-radius:8px}
.rw-recipes .rw-pin{display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--rw-colors-primary,#242424);cursor:pointer}
.rw-recipes .rw-pin__pill{display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:8px 12px;border-radius:40px;background:#fff;color:var(--rw-colors-primary,#242424);font:600 13px/1 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);white-space:nowrap;box-shadow:rgba(0,0,0,.1) 1px 2px 11px}
.rw-recipes .rw-pin__dot{flex:none;width:8px;height:8px;border-radius:50%}
.rw-recipes .rw-pin__tip{display:block;width:16px;height:20px;color:var(--rw-colors-primary,#242424)}
.rw-recipes .rw-pin,.rw-recipes .rw-pin:hover,.rw-recipes .rw-pin__pill:hover{text-decoration:none}
.rw-recipes .rw-cluster{display:flex;align-items:center;justify-content:center;width:40px;height:40px;transform:translateY(50%);border:2px solid var(--rw-colors-primary,#242424);border-radius:50%;background:#fff;color:var(--rw-colors-primary,#242424);font:600 13px/1 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);user-select:none;cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,.2);transition:all .3s ease-in-out}
.rw-recipes .rw-cluster:hover{box-shadow:0 3px 8px rgba(0,0,0,.3)}
.rw-recipes .rw-school-pin{display:flex;align-items:center;justify-content:center;width:26px;height:26px;transform:translateY(50%);border-radius:4px;background:#fff;color:var(--rw-colors-primary,#242424);box-shadow:0 1px 3px rgba(0,0,0,.2)}
.rw-recipes .rw-map__toolbar{position:absolute;right:10px;bottom:16px;z-index:5;display:flex;flex-direction:column;align-items:flex-end;gap:6px;pointer-events:none}
.rw-recipes .rw-map__toolrow{display:flex;align-items:center;gap:6px}
.rw-recipes .rw-map__tool{pointer-events:auto;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:var(--rw-colors-white,#fff);color:var(--rw-colors-primary,#242424);box-shadow:0 2px 8px rgba(0,0,0,.3);cursor:pointer;transition:all .3s ease-in-out}
.rw-recipes .rw-map__tool .rw-icon{width:18px;height:18px}
.rw-recipes .rw-map__tool[aria-pressed="true"]{background:var(--rw-colors-grey3,#F2F2F2)}
.rw-recipes .rw-map__tool:disabled{background:rgba(255,255,255,.7);cursor:default}
.rw-recipes .rw-map__clear{pointer-events:auto;display:inline-flex;align-items:center;height:34px;padding:0 14px;border-radius:9999px;background:var(--rw-colors-interactive-primary,#242424);color:var(--rw-colors-text-on-primary,#fff);font:500 12px/18px var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);text-decoration:none;white-space:nowrap;box-shadow:0 2px 8px rgba(0,0,0,.2)}
@media (min-width:768px){.rw-recipes .rw-map__toolbar,.rw-recipes .rw-map__toolrow{gap:8px}.rw-recipes .rw-map__tool{width:48px;height:48px}.rw-recipes .rw-map__tool .rw-icon{width:22px;height:22px}.rw-recipes .rw-map__clear{height:40px;padding:0 20px;font-size:13px;line-height:20px}}
.rw-recipes .rw-map__search-area{position:absolute;top:16px;left:50%;z-index:5;height:40px;padding:0 20px;border:0;border-radius:9999px;background:var(--rw-colors-white,#fff);color:var(--rw-colors-primary,#242424);font:600 13px/1 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);white-space:nowrap;transform:translateX(-50%);cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.rw-recipes .rw-map__hint{position:absolute;top:16px;left:50%;z-index:5;max-width:calc(100% - 32px);margin:0;padding:6px 10px;border-radius:4px;background:rgba(0,0,0,.65);color:#fff;font:600 12px/1.4 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);text-align:center;transform:translateX(-50%)}
.rw-recipes.rw-form{display:flex;flex-direction:column;gap:8px;padding:20px;border-radius:16px;background:var(--rw-colors-cream-background,#F9F6EB)}
.rw-recipes .rw-form__row{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}
.rw-recipes .rw-consent{color:var(--rw-colors-secondary,#6b6b6b)}
.rw-recipes .rw-hp{position:absolute!important;left:-10000px;width:1px;height:1px;overflow:hidden}
.rw-recipes .rw-form__hint,.rw-recipes .rw-form__status{color:var(--rw-colors-secondary,#6b6b6b);font-size:13px;line-height:1.3}
.rw-recipes .rw-form__error{color:#b00020;font-size:14px;font-weight:600;line-height:1.4}
.rw-recipes .rw-form__success{font-size:16px;font-weight:600;line-height:1.4}
@media (min-width:768px){.rw-recipes.rw-form{gap:14px}}
.rw-recipes .rw-detail-header{position:sticky;top:0;z-index:2;background:var(--rw-colors-white,#fff);border-bottom:1px solid var(--rw-colors-grey,#E3E3E3);transition:box-shadow .3s ease-in-out}
.rw-recipes .rw-detail-header[data-rw-pinned]{box-shadow:0 4px 12px rgba(21,28,30,.08)}
.rw-recipes .rw-detail-header__row{display:flex;align-items:center;gap:12px;max-width:1500px;min-height:73px;margin:0 auto;padding:12px 20px}
.rw-recipes .rw-detail-header--bare:not([data-rw-pinned]){border-bottom:0}.rw-recipes .rw-detail-header--bare:not([data-rw-pinned]) .rw-detail-header__row{min-height:0;padding:0}
.rw-recipes .rw-detail-header__back{display:inline-flex;align-items:center;gap:8px;padding:8px 0;color:var(--rw-colors-primary,#242424);font:500 14px/1 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);text-decoration:none;transition:all .3s ease-in-out}
.rw-recipes .rw-detail-header__back:hover{color:var(--rw-colors-hovers-primary,#3a3a3a)}
.rw-recipes .rw-detail-header__summary{display:none;flex:1;min-width:0}
.rw-recipes .rw-detail-header__close{display:none;align-items:center;justify-content:center;flex:none;width:32px;height:32px;margin-left:auto;color:var(--rw-colors-primary,#242424)}
.rw-recipes .rw-detail-header[data-rw-pinned] .rw-detail-header__back{display:none}
.rw-recipes .rw-detail-header[data-rw-pinned] .rw-detail-header__summary{display:block}
.rw-recipes .rw-detail-header[data-rw-pinned] .rw-detail-header__close{display:inline-flex}
.rw-recipes .rw-mini{display:flex;flex-direction:column;gap:6px;flex:1;min-width:0}
.rw-recipes .rw-mini__line{display:block;min-width:0;overflow:hidden;color:var(--rw-colors-primary,#242424);font-size:14px;font-weight:600;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}
.rw-recipes .rw-mini__price{font-size:16px;font-weight:600;line-height:1.4;letter-spacing:-.6px}
.rw-recipes .rw-mini__dot{display:inline-block;width:6px;height:6px;margin:0 12px;border-radius:50%;background:var(--rw-colors-primary,#242424);vertical-align:middle}
.rw-recipes .rw-mini__address{font-size:16px;font-weight:500;line-height:1.4;letter-spacing:-.6px}
.rw-recipes .rw-mini__facts{list-style:none;margin:0 0 0 -12px;padding:0;display:flex;flex-wrap:wrap;align-items:center;gap:4px 0;clip-path:inset(0 0 0 12px)}
.rw-recipes .rw-mini__fact{display:inline-flex;align-items:center;gap:4px;margin-right:12px;padding-left:11px;border-left:1px solid var(--rw-colors-grey,#E3E3E3);color:var(--rw-colors-primary,#242424);font-size:14px;font-weight:400;line-height:1;letter-spacing:-.6px}
.rw-recipes .rw-mini__fact .rw-icon{width:18px;height:18px;color:#7A8183}
@media (min-width:768px){.rw-recipes .rw-mini{gap:8px}.rw-recipes .rw-mini__dot{margin:0 23px}.rw-recipes .rw-mini__facts{margin-left:-16px;clip-path:inset(0 0 0 16px)}.rw-recipes .rw-mini__fact{margin-right:16px;padding-left:15px;font-size:16px}}
.rw-recipes .rw-photogrid{position:relative;display:grid;grid-template-columns:1fr;grid-template-rows:1fr;gap:4px;height:260px;overflow:hidden;border-radius:12px}
.rw-recipes .rw-photogrid__cell{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;padding:0;border:0;background:var(--rw-colors-primary,#242424);color:var(--rw-colors-text-on-chrome,#fff);cursor:pointer}
.rw-recipes .rw-photogrid__img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;transition:all .3s ease-in-out;color:transparent;font-size:0;background:var(--rw-colors-grey3,#F2F2F2)}
.rw-recipes .rw-photogrid__cell:hover .rw-photogrid__img{transform:scale(1.03)}
.rw-recipes .rw-photogrid__cell:not(.rw-photogrid__cell--0){display:none}
.rw-recipes .rw-photogrid__empty{display:flex;align-items:center;justify-content:center;background:#222d30;color:var(--rw-colors-text-on-chrome,#fff)}
.rw-recipes .rw-photogrid__placeholder{width:48px;height:48px;opacity:.2}
@media (min-width:768px){.rw-recipes .rw-photogrid{height:360px}.rw-recipes .rw-photogrid__cell:not(.rw-photogrid__cell--0){display:flex}.rw-recipes .rw-photogrid--n2{grid-template-columns:1fr 1fr}.rw-recipes .rw-photogrid--n3{grid-template-columns:60% 40%;grid-template-rows:1fr 1fr}.rw-recipes .rw-photogrid--n3 .rw-photogrid__cell--0{grid-row:1 / 3}.rw-recipes .rw-photogrid--n4,.rw-recipes .rw-photogrid--n5{grid-template-columns:2fr 1fr 1fr;grid-template-rows:1fr 1fr}.rw-recipes .rw-photogrid--n4 .rw-photogrid__cell--0,.rw-recipes .rw-photogrid--n5 .rw-photogrid__cell--0{grid-row:1 / 3}.rw-recipes .rw-photogrid--n4 .rw-photogrid__cell--3{grid-column:2 / 4}}
@media (min-width:992px){.rw-recipes .rw-photogrid{height:460px}}
.rw-recipes .rw-photogrid__actions{position:absolute;top:12px;left:12px;z-index:1;display:flex;gap:8px}
.rw-recipes .rw-photogrid__iconbtn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:var(--rw-colors-overlays-card,#151C1E33);color:#fff;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);cursor:pointer;transition:all .3s ease-in-out}
.rw-recipes .rw-photogrid__iconbtn:hover{background:var(--rw-colors-overlays-card-hover,#151C1E4D)}
@media (hover:hover){.rw-recipes .rw-photogrid__iconbtn:hover{transform:scale(1.08)}}
.rw-recipes .rw-photogrid__iconbtn .rw-icon{width:16px;height:16px}
.rw-recipes .rw-photogrid--n0 .rw-photogrid__iconbtn{background:var(--rw-colors-overlays-light-card,rgba(255,255,255,.2))}.rw-recipes .rw-photogrid--n0 .rw-photogrid__iconbtn:hover{background:var(--rw-colors-overlays-light-card-hover,rgba(255,255,255,.3))}
.rw-recipes .rw-photogrid__count,.rw-recipes .rw-photogrid__street{position:absolute;bottom:12px;z-index:1;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:6px 14px;border:0;border-radius:9999px;font:600 13px/1 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);box-shadow:0 2px 8px rgba(0,0,0,.25);cursor:pointer;transition:all .3s ease-in-out}
.rw-recipes .rw-photogrid__count{right:12px;background:var(--rw-colors-accent,#fbe08e);color:var(--rw-colors-text-on-gold,#242424)}
.rw-recipes .rw-photogrid__count .rw-icon{width:16px;height:16px}
.rw-recipes .rw-photogrid__street{left:12px;background:var(--rw-colors-interactive-primary,#242424);color:var(--rw-colors-text-on-primary,#fff);line-height:17px}.rw-recipes .rw-photogrid__street:hover{background:var(--rw-colors-interactive-primary-hover,#3a3a3a)}
.rw-recipes .rw-photogrid__street .rw-icon{width:16px;height:16px}
.rw-recipes .rw-photogrid__logo{position:absolute;right:4px;bottom:4px;z-index:1;width:100px;height:auto;pointer-events:none}
@media (max-width:767px){.rw-recipes .rw-photogrid:has(.rw-photogrid__count) .rw-photogrid__logo{bottom:44px}}
@media (min-width:768px){.rw-recipes .rw-photogrid__iconbtn{width:32px;height:32px}.rw-recipes .rw-photogrid__iconbtn .rw-icon{width:17px;height:17px}.rw-recipes .rw-photogrid__count{right:20px;bottom:20px;padding:11px 17px}.rw-recipes .rw-photogrid__street{left:20px;bottom:20px;padding:10px 16px}.rw-recipes .rw-photogrid__street .rw-icon{width:20px;height:20px}}
.rw-recipes .rw-price{display:flex;flex-direction:column;align-items:stretch;padding:24px;border:1px solid var(--rw-colors-grey,#E3E3E3);border-radius:16px;background:var(--rw-colors-white,#fff)}
.rw-recipes .rw-price__status{display:flex;align-items:center;gap:6px;margin:0 0 12px;color:var(--rw-colors-primary,#242424);font:600 13px/1 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);letter-spacing:.05em;text-transform:uppercase}
.rw-recipes .rw-price__dot{position:relative;flex:none;width:8px;height:8px;border-radius:50%;background:var(--rw-colors-green2,#208D28)}
.rw-recipes .rw-price__dot::before{content:"";position:absolute;inset:0;border-radius:50%;background:inherit;animation:rw-ping 1.6s cubic-bezier(0,0,.2,1) infinite}
.rw-recipes .rw-price__status--accent .rw-price__dot{background:var(--rw-colors-accent,#fbe08e)}.rw-recipes .rw-price__status--danger .rw-price__dot{background:var(--rw-colors-danger,#FF5858)}
@keyframes rw-ping{75%,100%{transform:scale(2.2);opacity:0}}
.rw-recipes .rw-price__amount{margin:0 0 12px;color:var(--rw-colors-primary,#242424);font:700 32px/1.2 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif)}
.rw-recipes .rw-price__facts{list-style:none;margin:0 0 12px -17px;padding:0;display:flex;flex-wrap:wrap;align-items:center;gap:8px 0;clip-path:inset(0 0 0 17px)}
.rw-recipes .rw-price__fact{display:inline-flex;align-items:center;gap:6px;margin-right:16px;padding-left:16px;border-left:1px solid var(--rw-colors-grey,#E3E3E3);color:var(--rw-colors-primary,#242424);font-size:14px;line-height:1}
.rw-recipes .rw-price__fact .rw-icon{width:16px;height:16px;color:#7A8183}
.rw-recipes .rw-price__address{margin:4px 0 0;color:var(--rw-colors-secondary,#6b6b6b);font:400 14px/1.4 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif)}
@media (min-width:768px){.rw-recipes .rw-price__amount{font-size:40px}}
.rw-recipes .rw-agentinfo{border-color:var(--rw-colors-cream-border,#EADFB8);background:var(--rw-colors-cream-background,#F9F6EB)}
.rw-recipes .rw-agentinfo__rows{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:20px}
.rw-recipes .rw-agentinfo__row{display:flex;align-items:center;justify-content:space-between;gap:16px}
.rw-recipes .rw-agentinfo__text{display:flex;flex-direction:column;gap:6px;min-width:0}
.rw-recipes .rw-agentinfo__label{color:var(--rw-colors-secondary,#6b6b6b);font-size:15px;line-height:1.3}
.rw-recipes .rw-agentinfo__value{color:var(--rw-colors-primary,#242424);font-size:16px;line-height:22px;overflow-wrap:break-word;word-break:break-word}
.rw-recipes .rw-agentinfo__round{display:inline-flex;align-items:center;justify-content:center;flex:none;width:48px;height:48px;border-radius:50%;background:var(--rw-colors-accent,#fbe08e);color:var(--rw-colors-text-on-gold,#242424);transition:all .3s ease-in-out}
.rw-recipes .rw-agentinfo__round:hover{background:var(--rw-colors-hovers-accent,#f0cc6a)}
.rw-recipes .rw-agentinfo__round .rw-icon{width:20px;height:20px}
.rw-recipes .rw-avatar{display:inline-flex;align-items:center;justify-content:center;flex:none;overflow:hidden;border-radius:50%;object-fit:cover;font:600 15px/1 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif)}
.rw-recipes .rw-avatar--48{width:48px;height:48px;letter-spacing:.02em}.rw-recipes .rw-avatar--45{width:45px;height:45px;font-size:16px}
.rw-recipes .rw-avatar--dark{background:var(--rw-colors-interactive-primary,#242424);color:var(--rw-colors-text-on-primary,#fff)}.rw-recipes .rw-avatar--grey{background:var(--rw-colors-grey3,#F2F2F2);color:var(--rw-colors-primary,#242424)}
.rw-recipes .rw-openhouses__grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr;gap:16px 24px}
.rw-recipes .rw-openhouses__entry{display:flex;flex-direction:column;gap:3px;min-width:0}
.rw-recipes .rw-openhouses__entry[hidden]{display:none}
.rw-recipes .rw-openhouses__day{color:var(--rw-colors-primary,#242424);font:600 16px/1.4 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);letter-spacing:-.6px}
.rw-recipes .rw-openhouses__date{color:var(--rw-colors-secondary,#6b6b6b);font-size:14px;line-height:1.4}
.rw-recipes .rw-openhouses__time{color:var(--rw-colors-primary,#242424);font:500 15px/1.4 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif)}
.rw-recipes .rw-openhouses__live{display:inline-flex;align-items:center;gap:6px;margin-top:3px;color:var(--rw-colors-primary,#242424);font:600 13px/1 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);letter-spacing:.05em;text-transform:uppercase}
.rw-recipes .rw-openhouses__dot{flex:none;width:8px;height:8px;border-radius:50%;background:var(--rw-colors-green,#00D36F)}
.rw-recipes .rw-openhouses__remarks{color:var(--rw-colors-secondary,#6b6b6b);font-size:14px;line-height:20px}
.rw-recipes .rw-openhouses__toggle{align-self:flex-start;padding:0;border:0;background:none;color:var(--rw-colors-primary,#242424);font:600 14px/1.4 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);text-decoration:none;cursor:pointer;transition:all .3s ease-in-out}
.rw-recipes .rw-openhouses__toggle:hover{color:var(--rw-colors-hovers-primary,#3a3a3a)}
.rw-recipes .rw-openhouses__tour{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:12px;padding-top:16px;border-top:1px solid var(--rw-colors-grey,#E3E3E3)}
.rw-recipes .rw-openhouses__prompt{color:var(--rw-colors-primary,#242424);font:500 16px/1.4 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);letter-spacing:-.6px}
@media (min-width:768px){.rw-recipes .rw-openhouses__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:992px){.rw-recipes .rw-openhouses__grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.rw-recipes .rw-locmap{position:relative;width:100%;height:360px;overflow:hidden;border:1px solid var(--rw-colors-grey,#E3E3E3);border-radius:16px;background:var(--rw-colors-grey3,#F2F2F2)}
.rw-recipes .rw-locmap__canvas{position:absolute;inset:0}
.rw-recipes .rw-locmap__message{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;color:var(--rw-colors-secondary,#6b6b6b);font-size:14px;line-height:1.4;text-align:center}
.rw-recipes .rw-locmap--expanded{position:fixed;inset:0;z-index:701;height:auto;border:0;border-radius:0}
.rw-recipes .rw-locmap:fullscreen{height:100%;border:0;border-radius:0}
.rw-recipes .rw-locmap__street{position:absolute;left:10px;bottom:10px;z-index:1;display:inline-flex;align-items:center;gap:6px;padding:6px 14px;border:0;border-radius:9999px;background:var(--rw-colors-interactive-primary,#242424);color:var(--rw-colors-text-on-primary,#fff);font:600 13px/17px var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);box-shadow:0 2px 8px rgba(0,0,0,.25);cursor:pointer;transition:all .3s ease-in-out}
.rw-recipes .rw-locmap__street:hover{background:var(--rw-colors-interactive-primary-hover,#3a3a3a)}
.rw-recipes .rw-locmap__street .rw-icon{width:16px;height:16px}
.rw-recipes .rw-locmap__street:disabled{opacity:.6;cursor:default}
.rw-recipes .rw-locmap__expand{position:absolute;top:10px;right:10px;z-index:1;display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:0;border-radius:14px;background:var(--rw-colors-white,#fff);color:var(--rw-colors-primary,#242424);box-shadow:0 2px 8px rgba(0,0,0,.2);cursor:pointer;transition:all .3s ease-in-out}
.rw-recipes .rw-locmap__expand:hover{background:var(--rw-colors-grey3,#F2F2F2)}
.rw-recipes .rw-locmap__marker{display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--rw-colors-primary,#242424);pointer-events:none}
.rw-recipes .rw-locmap__pill{display:inline-block;padding:10px 16px;border-radius:9999px;background:var(--rw-colors-white,#fff);color:var(--rw-colors-primary,#242424);font:400 16px/1 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);white-space:nowrap;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.rw-recipes .rw-locmap__pin{display:block;width:24px;height:30px;color:var(--rw-colors-primary,#242424)}.rw-recipes .rw-locmap__pin svg{display:block}
@media (min-width:768px){.rw-recipes .rw-locmap__street{padding:10px 16px}.rw-recipes .rw-locmap__street .rw-icon{width:20px;height:20px}}
@media (min-width:992px){.rw-recipes .rw-locmap{height:460px}}
.rw-recipes .rw-contactcards{display:flex;flex-direction:column;gap:16px}
.rw-recipes .rw-agentcard,.rw-recipes .rw-tourcard{display:flex;flex-direction:column;padding:20px;border-radius:16px}
.rw-recipes .rw-agentcard{background:#F9F6EB}
.rw-recipes .rw-tourcard{background:#F2F2F2}
.rw-recipes .rw-agentcard__who{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.rw-recipes .rw-agentcard__name{min-width:0;color:var(--rw-colors-primary,#242424);font:600 16px/1.3 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);overflow-wrap:anywhere}
.rw-recipes .rw-agentcard__title,.rw-recipes .rw-tourcard__title{margin:0 0 8px;color:var(--rw-colors-primary,#242424);font:400 22px/1.2 var(--rw-fonts-serif,Marcellus,Georgia,'Times New Roman',serif);letter-spacing:-.5px}
.rw-recipes .rw-agentcard__text,.rw-recipes .rw-tourcard__text{margin:0 0 20px;color:var(--rw-colors-secondary,#6b6b6b);font:400 14px/20px var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif)}
@media (min-width:992px){.rw-recipes .rw-contactcards{gap:20px}}
.rw-recipes .rw-mobilebar{position:fixed;left:0;right:0;bottom:0;z-index:700;display:flex;flex-direction:column;gap:8px;padding:16px;border-top:1px solid var(--rw-colors-grey,#E3E3E3);background:var(--rw-colors-white,#fff)}
@media (min-width:768px){.rw-recipes .rw-mobilebar{flex-direction:row;gap:12px}}
@media (min-width:992px){.rw-recipes .rw-mobilebar{display:none}}
.rw-recipes.rw-skeleton{display:block;background:var(--rw-colors-white,#fff)}
.rw-recipes .rw-skeleton__content{display:flex;flex-direction:column;max-width:1500px;margin:0 auto;padding:20px}
.rw-recipes .rw-skeleton__grid{display:grid;grid-template-columns:1fr;gap:4px;height:260px;overflow:hidden;border-radius:12px}
.rw-recipes .rw-skeleton__cell:not(.rw-skeleton__cell--0){display:none}
.rw-recipes .rw-skeleton__columns{display:flex;flex-direction:column;gap:16px;margin-top:20px}
.rw-recipes .rw-skeleton__main{display:flex;flex-direction:column;flex:1;gap:16px;min-width:0}
.rw-recipes .rw-skeleton__block{display:contents}
.rw-recipes .rw-skeleton__aside{display:block;width:100%}
.rw-recipes .rw-skeleton__card{display:block;height:220px;border-radius:16px}
.rw-recipes .rw-skeleton__bar{display:block;width:100%;height:14px;border-radius:4px}
.rw-recipes .rw-skeleton__bar--price{width:35%;height:32px;border-radius:6px}.rw-recipes .rw-skeleton__bar--address{width:55%;height:16px}.rw-recipes .rw-skeleton__bar--title{width:25%;height:22px;margin-top:12px}
.rw-recipes .rw-skeleton__bar--w95{width:95%}.rw-recipes .rw-skeleton__bar--w90{width:90%}.rw-recipes .rw-skeleton__bar--w80{width:80%}.rw-recipes .rw-skeleton__bar--w70{width:70%}.rw-recipes .rw-skeleton__bar--w60{width:60%}
.rw-recipes .rw-skeleton__cell,.rw-recipes .rw-skeleton__bar,.rw-recipes .rw-skeleton__card{background:#F2F2F2 linear-gradient(90deg,#F2F2F2 0%,#efefef 50%,#F2F2F2 100%) no-repeat;background-size:200px 100%;opacity:0;animation:rw-skeleton-in 1ms linear 200ms forwards,rw-shimmer 1200ms linear 200ms infinite}
@keyframes rw-skeleton-in{to{opacity:1}}
@keyframes rw-shimmer{from{background-position:-200px 0}to{background-position:calc(200px + 100%) 0}}
@media (min-width:768px){.rw-recipes .rw-skeleton__grid{height:360px;grid-template-columns:2fr 1fr 1fr;grid-template-rows:1fr 1fr}.rw-recipes .rw-skeleton__cell--0{grid-row:1 / 3}.rw-recipes .rw-skeleton__cell:not(.rw-skeleton__cell--0){display:block}}
@media (min-width:992px){.rw-recipes .rw-skeleton__grid{height:460px}.rw-recipes .rw-skeleton__columns{flex-direction:row;align-items:flex-start;gap:20px}.rw-recipes .rw-skeleton__main{gap:20px}.rw-recipes .rw-skeleton__aside{flex:none;width:390px}}
.rw-recipes.rw-unavailable{display:flex;flex-direction:column;align-items:flex-start;gap:16px;max-width:1500px;margin:0 auto;padding:40px 20px}
.rw-recipes .rw-unavailable__text{max-width:640px;color:var(--rw-colors-primary,#242424);font-size:16px;line-height:1.5}
@media (prefers-reduced-motion:reduce){.rw-recipes .rw-price__dot::before{animation:none;display:none}.rw-recipes .rw-skeleton__cell,.rw-recipes .rw-skeleton__bar,.rw-recipes .rw-skeleton__card{animation:none;opacity:.4}}
.rw-recipes.rw-fullgallery{position:fixed;inset:0;z-index:100000;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;background:#fff;color:var(--rw-colors-primary,#242424);font-family:var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);overflow-y:auto;overscroll-behavior:contain}
.rw-recipes.rw-fullgallery[open]{display:flex;flex-direction:column}
.rw-recipes.rw-fullgallery::backdrop{background:#fff}
.rw-recipes .rw-fullgallery__header{position:sticky;top:0;z-index:2;flex-shrink:0;background:#fff;border-bottom:1px solid var(--rw-colors-grey,#E3E3E3)}
.rw-recipes .rw-fullgallery__header--pinned{box-shadow:0 4px 12px rgba(21,28,30,.08)}
.rw-recipes .rw-fullgallery__header-inner{max-width:1500px;width:100%;margin:0 auto;min-height:73px;padding:12px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.rw-recipes .rw-fullgallery__tabs{display:flex;align-items:center;gap:20px}
.rw-recipes .rw-fullgallery__tabs--hidden{display:none}
.rw-recipes .rw-fullgallery__tab{padding:4px 0;border:0;border-bottom:2px solid transparent;background:none;color:var(--rw-colors-secondary,#6b6b6b);font:400 16px/1.4 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);cursor:pointer;transition:color .2s ease-in-out,border-color .2s ease-in-out}
.rw-recipes .rw-fullgallery__tab:hover{color:var(--rw-colors-primary,#242424)}
.rw-recipes .rw-fullgallery__tab[aria-selected="true"]{color:var(--rw-colors-primary,#242424);border-bottom-color:var(--rw-colors-primary,#242424)}
.rw-recipes .rw-fullgallery__tab:focus{outline:none}.rw-recipes .rw-fullgallery__tab:focus-visible{outline:2px solid var(--rw-colors-blue,#0067F8);outline-offset:10px}
.rw-recipes .rw-fullgallery__summary{flex:1;min-width:0}
.rw-recipes .rw-fullgallery__actions{display:none;align-items:center;gap:8px;margin-left:auto}
.rw-recipes .rw-fullgallery__share{display:flex;align-items:center;gap:8px;flex-shrink:0;padding:10px 16px;border:0;border-radius:9999px;background:var(--rw-colors-interactive-primary,#242424);color:var(--rw-colors-text-on-primary,#fff);font:600 13px/1.4 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);white-space:nowrap;cursor:pointer;transition:background-color .2s ease-in-out}
.rw-recipes .rw-fullgallery__share:hover{background:var(--rw-colors-interactive-primary-hover,#3a3a3a)}
.rw-recipes .rw-fullgallery__close{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;flex-shrink:0;padding:0;border:0;background:none;color:var(--rw-colors-primary,#242424);cursor:pointer}
@media (min-width:768px){.rw-recipes .rw-fullgallery__actions{display:flex}}
.rw-recipes .rw-fullgallery__content{display:flex;flex-direction:column;flex:1 0 auto;max-width:1500px;width:100%;margin:0 auto;padding:20px 20px 160px}
.rw-recipes .rw-fullgallery__content--nobar{padding-bottom:20px}
@media (min-width:768px){.rw-recipes .rw-fullgallery__content{padding-bottom:96px}.rw-recipes .rw-fullgallery__content--nobar{padding-bottom:20px}}
@media (min-width:992px){.rw-recipes .rw-fullgallery__content{padding-bottom:20px}}
.rw-recipes .rw-fullgallery__columns{display:flex;flex-direction:column;flex:1;gap:16px}
.rw-recipes .rw-fullgallery__main{position:relative;display:flex;flex-direction:column;flex:1;min-width:0}
.rw-recipes .rw-fullgallery__mark{position:absolute;top:50px;left:0;width:1px;height:1px;pointer-events:none}
.rw-recipes .rw-fullgallery__tabcontent{position:relative;display:flex;flex-direction:column;flex:1}
.rw-recipes .rw-fullgallery__panel{display:flex;flex-direction:column;flex:1}
.rw-recipes .rw-fullgallery__panel[hidden]{display:none}
.rw-recipes .rw-fullgallery__mosaic{display:grid;grid-template-columns:1fr;gap:5px;border-radius:16px;overflow:hidden}
.rw-recipes .rw-fullgallery__tile{position:relative;display:block;width:100%;aspect-ratio:4 / 3;overflow:hidden;padding:0;border:0;background:var(--rw-colors-primary,#242424);cursor:zoom-in;scroll-margin-top:93px}
.rw-recipes .rw-fullgallery__tile img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s ease-in-out}
.rw-recipes .rw-fullgallery__tile:hover img{transform:scale(1.03)}
.rw-recipes .rw-fullgallery__tile:focus-visible{outline:3px solid var(--rw-colors-focus-ring,#242424);outline-offset:-3px}
@media (min-width:768px){.rw-recipes .rw-fullgallery__mosaic{grid-template-columns:repeat(2,1fr);gap:10px}.rw-recipes .rw-fullgallery__tile--full{grid-column:1 / -1;aspect-ratio:16 / 9}}
.rw-recipes .rw-fullgallery__empty{padding:24px;border:1px dashed var(--rw-colors-grey2,#A0A0A0);border-radius:16px;color:var(--rw-colors-secondary,#6b6b6b);font-size:14px;line-height:1.4;text-align:center}
.rw-recipes .rw-fullgallery__float-share{position:absolute;top:12px;left:12px;z-index:1;display:flex;align-items:center;justify-content:center;width:30px;height:30px;padding:0;border:0;border-radius:9999px;background:var(--rw-colors-overlays-card,#151C1E33);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);color:#fff;cursor:pointer;transition:background-color .2s ease-in-out}
.rw-recipes .rw-fullgallery__float-share:hover{background:var(--rw-colors-overlays-card-hover,#151C1E4D)}
@media (min-width:768px){.rw-recipes .rw-fullgallery__float-share{display:none}}
.rw-recipes .rw-fullgallery__panel--street{padding-bottom:16px}
.rw-recipes .rw-fullgallery__street{position:relative;flex:1;min-height:320px;overflow:hidden;border-radius:16px}
.rw-recipes .rw-fullgallery__pano{position:absolute;inset:0;background:var(--rw-colors-grey3,#F2F2F2)}
.rw-recipes .rw-fullgallery__pano img,.rw-recipes .rw-fullgallery__pano canvas{max-width:none}
.rw-recipes .rw-fullgallery__street-wait{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:var(--rw-colors-primary,#242424);color:#fff}
.rw-recipes .rw-fullgallery__street-icon{opacity:.2}
.rw-recipes .rw-fullgallery__street-none{flex:1;min-height:320px;display:flex;align-items:center;justify-content:center;padding:24px;border:1px dashed var(--rw-colors-grey2,#A0A0A0);border-radius:16px;color:var(--rw-colors-secondary,#6b6b6b);font-size:14px;line-height:1.4;text-align:center}
.rw-recipes .rw-fullgallery__sidebar{display:none}
@media (min-width:992px){.rw-recipes .rw-fullgallery__columns{flex-direction:row;gap:20px}.rw-recipes .rw-fullgallery__panel--street{padding-bottom:0}.rw-recipes .rw-fullgallery__sidebar{display:flex;flex-direction:column;gap:20px;width:390px;flex-shrink:0}.rw-recipes .rw-fullgallery__sidebar--hidden{display:none}.rw-recipes .rw-fullgallery__sticky{position:sticky;top:93px}}
@media (min-width:1280px){.rw-recipes .rw-fullgallery__sidebar{width:490px}}
.rw-recipes .rw-lightbox{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;background:rgba(0,0,0,.9);color:#fff;touch-action:pan-y pinch-zoom}
.rw-recipes .rw-lightbox[open]{opacity:1;transition:opacity .2s ease-out,overlay .2s allow-discrete,display .2s allow-discrete;@starting-style{opacity:0}}
.rw-recipes .rw-lightbox::backdrop{background:rgba(0,0,0,.9)}
.rw-recipes .rw-lightbox__figure{margin:0;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:56px 56px 24px}
.rw-recipes .rw-lightbox__figure img{max-width:100%;max-height:calc(100dvh - 120px);width:auto;height:auto;object-fit:contain}
.rw-recipes .rw-lightbox__count{font-size:14px;line-height:1.4}
.rw-recipes .rw-lightbox__close,.rw-recipes .rw-lightbox__step{position:absolute;display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.15);color:#fff;cursor:pointer}
.rw-recipes .rw-lightbox__close{top:12px;right:12px}.rw-recipes .rw-lightbox__step{top:50%;transform:translateY(-50%)}
.rw-recipes .rw-lightbox__step--prev{left:8px}.rw-recipes .rw-lightbox__step--next{right:8px}
@media (prefers-reduced-motion:reduce){.rw-recipes .rw-fullgallery__tile:hover img{transform:none}.rw-recipes .rw-lightbox[open]{transition:none}}
.rw-recipes .rw-modal-host{display:contents}
.rw-recipes.rw-modal{width:calc(100% - 10px);max-width:800px;max-height:calc(100vh - 50px);margin:auto;padding:0;border:0;border-radius:20px;background:var(--rw-colors-white,#fff);color:var(--rw-colors-primary,#242424);font-family:var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);box-shadow:0 8px 40px rgba(0,0,0,.18);overflow:hidden;opacity:0;transform:scale(.8);transition:opacity .15s ease-in,transform .15s ease-in,overlay .15s allow-discrete,display .15s allow-discrete}
.rw-recipes.rw-modal[open]{display:flex;flex-direction:column;opacity:1;transform:none;transition:opacity .2s ease-out,transform .3s cubic-bezier(.175,.885,.32,1.275),overlay .3s allow-discrete,display .3s allow-discrete;@starting-style{opacity:0;transform:scale(.8)}}
.rw-recipes.rw-modal--sm{max-width:520px}
.rw-recipes.rw-modal::backdrop{background:rgba(0,0,0,.4);transition:background-color .15s ease-in,overlay .15s allow-discrete,display .15s allow-discrete}
.rw-recipes.rw-modal[open]::backdrop{background:rgba(0,0,0,.4);transition-duration:.2s;@starting-style{background:rgba(0,0,0,0)}}
@media (min-width:375px){.rw-recipes.rw-modal{width:calc(100% - 30px)}}
@media (min-width:768px){.rw-recipes.rw-modal{width:calc(100% - 50px)}}
.rw-recipes .rw-modal__panel{display:flex;flex-direction:column;width:100%;min-height:0;max-height:calc(100dvh - 50px)}
.rw-recipes .rw-modal__header{flex:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 20px;border-radius:20px 20px 0 0;background:var(--rw-colors-surface-chrome,#242424);color:var(--rw-colors-text-on-chrome,#fff)}
.rw-recipes .rw-modal__title{margin:0;color:var(--rw-colors-text-on-chrome,#fff);font:400 22px/1.1 var(--rw-fonts-serif,Marcellus,Georgia,'Times New Roman',serif);letter-spacing:-.04em}
.rw-recipes .rw-modal__close{flex:none;display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:0;background:transparent;color:var(--rw-colors-text-on-chrome,#fff);cursor:pointer}
.rw-recipes .rw-modal__close .rw-icon{width:24px;height:24px}
.rw-recipes .rw-modal__close:focus-visible{outline:2px solid var(--rw-colors-text-on-chrome,#fff);outline-offset:2px}
.rw-recipes .rw-modal__body{flex:1;min-height:0;overflow-y:auto;padding:20px}
@media (min-width:768px){.rw-recipes .rw-modal__header{padding:20px 40px}.rw-recipes .rw-modal__title{font-size:32px}.rw-recipes .rw-modal__body{padding:40px}}
.rw-recipes .rw-modal__intro{margin-bottom:18px}
.rw-recipes .rw-modal__heading{margin:0 0 8px;color:var(--rw-colors-primary,#242424);font:600 16px/1.4 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);letter-spacing:-.6px}
.rw-recipes .rw-modal__heading:focus,.rw-recipes .rw-tour__success-title:focus{outline:none}
.rw-recipes .rw-modal__text{margin:0;color:var(--rw-colors-secondary,#6b6b6b);font-size:14px;line-height:1.2;letter-spacing:-.6px}
.rw-recipes .rw-modal__footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px}
.rw-recipes .rw-modal__footer--end{justify-content:flex-end}
.rw-recipes .rw-modal__footer .rw-button{min-width:auto;padding:12px 18px;font-size:14px;line-height:1.4;letter-spacing:-.3px}
.rw-recipes .rw-modal__back{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0;border:0;background:none;color:var(--rw-colors-primary,#242424);font:600 16px/1 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);cursor:pointer;transition:all .3s ease-in-out}
.rw-recipes .rw-modal__back:hover{color:var(--rw-colors-hovers-primary,#3a3a3a)}
.rw-recipes .rw-modal__form{display:flex;flex-direction:column;gap:8px}
.rw-recipes .rw-modal__consent{display:flex;flex-direction:column;gap:12px;margin-top:18px;padding:14px;border:1px solid var(--rw-colors-grey,#E3E3E3);border-radius:14px}
.rw-recipes .rw-modal__consent .rw-check{color:var(--rw-colors-secondary,#6b6b6b);font-size:13px;line-height:1.3}
.rw-recipes .rw-modal__consent .rw-check a{color:var(--rw-colors-primary,#242424);text-decoration:underline}
@media (min-width:768px){.rw-recipes .rw-modal__intro{margin-bottom:24px}.rw-recipes .rw-modal__heading{margin-bottom:6px;font-size:22px}.rw-recipes .rw-modal__text{font-size:16px;line-height:1.3}.rw-recipes .rw-modal__footer{margin-top:28px}.rw-recipes .rw-modal__footer .rw-button{padding:14px 20px;font-size:16px}.rw-recipes .rw-modal__form{gap:14px}.rw-recipes .rw-modal__consent{margin-top:24px;padding:20px}.rw-recipes .rw-modal__consent .rw-check{font-size:14px}}
.rw-recipes .rw-modal__body:has(> .rw-contact){padding:20px}
@media (min-width:992px){.rw-recipes .rw-modal__body:has(> .rw-contact){padding:35px 40px}}
.rw-recipes .rw-contact .rw-contact__step > .rw-modal__heading{margin:0;font-size:14px}
.rw-recipes .rw-contact .rw-modal__consent{margin-top:0;padding:16px;border-radius:12px}
.rw-recipes .rw-contact .rw-modal__consent .rw-check{font-size:12px;text-align:justify}
.rw-recipes .rw-contact .rw-modal__footer{margin-top:4px}
@media (min-width:768px){.rw-recipes .rw-contact .rw-contact__step > .rw-modal__heading{font-size:16px}.rw-recipes .rw-contact .rw-modal__consent{padding:20px}.rw-recipes .rw-contact .rw-modal__consent .rw-check{font-size:13px}.rw-recipes .rw-contact .rw-modal__footer{margin-top:8px}}
.rw-recipes .rw-share{display:flex;flex-direction:column;gap:20px}
.rw-recipes .rw-share__heading{margin:0;color:var(--rw-colors-primary,#242424);font:500 18px/1.2 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);letter-spacing:-.5px}
.rw-recipes .rw-share__link{display:flex;flex-direction:column;gap:6px}
.rw-recipes .rw-share__link > .rw-field__label{color:var(--rw-colors-primary,#242424);font:600 14px/1.4 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);letter-spacing:-.6px}
.rw-recipes .rw-share__row{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin-top:6px}
.rw-recipes .rw-share__input{width:100%;min-width:0;height:46px;padding:0 16px;border:1px solid var(--rw-colors-grey,#E3E3E3);border-radius:16px;background:var(--rw-colors-white,#fff);color:var(--rw-colors-primary,#242424);font:400 13px/17px var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);letter-spacing:-.3px;text-overflow:ellipsis;transition:border-color .3s ease-in-out}
.rw-recipes .rw-share__input:focus{border-color:var(--rw-colors-primary,#242424);outline:none}
.rw-recipes .rw-share__copy{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:12px 20px;border:0;border-radius:9999px;background:var(--rw-colors-accent,#fbe08e);color:var(--rw-colors-text-on-gold,#242424);font:600 13px/17px var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);letter-spacing:-.3px;white-space:nowrap;cursor:pointer;transition:all .3s ease-in-out}
.rw-recipes .rw-share__copy:hover{background:var(--rw-colors-hovers-accent,#f0cc6a)}.rw-recipes .rw-share__copy:disabled{opacity:.5;cursor:default}
.rw-recipes .rw-share__status{margin:0;color:var(--rw-colors-secondary,#6b6b6b);font-size:13px;line-height:1.3}
.rw-recipes .rw-share__status:empty{display:none}
.rw-recipes .rw-share__or{display:flex;align-items:center;gap:16px;margin:0;color:var(--rw-colors-secondary,#6b6b6b);font-size:14px;line-height:1}
.rw-recipes .rw-share__or::before,.rw-recipes .rw-share__or::after{content:"";flex:1;height:1px;background:var(--rw-colors-grey,#E3E3E3)}
.rw-recipes .rw-share__socials{display:flex;align-items:center;justify-content:center;gap:24px}
.rw-recipes .rw-share__social{position:relative;display:flex;align-items:center;justify-content:center;flex:none;width:36px;height:36px;border-radius:50%;text-decoration:none;transition:filter .3s ease-in-out}
.rw-recipes .rw-share__social::before{content:"";position:absolute;inset:-4px}
.rw-recipes .rw-share__social:hover{filter:brightness(.85)}
.rw-recipes .rw-share__social .rw-icon{width:18px;height:18px}
.rw-recipes .rw-share__social--facebook{background:var(--rw-colors-blue,#0067F8);color:#fff}
.rw-recipes .rw-share__social--whatsapp{background:var(--rw-colors-green,#00D36F);color:#fff}
.rw-recipes .rw-share__social--email{background:var(--rw-colors-grey3,#F2F2F2);color:var(--rw-colors-primary,#242424)}
.rw-recipes .rw-share__more{align-self:center;min-height:44px;padding:0 12px;border:0;background:none;color:var(--rw-colors-primary,#242424);font:600 14px/1 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);cursor:pointer;transition:all .3s ease-in-out}
.rw-recipes .rw-share__more:hover{color:var(--rw-colors-hovers-primary,#3a3a3a)}
.rw-recipes .rw-share__more[hidden]{display:none}
@media (min-width:602px){.rw-recipes .rw-share__row{flex-direction:row;align-items:center}.rw-recipes .rw-share__input{flex:1}.rw-recipes .rw-share__copy{width:auto}}
@media (min-width:768px){.rw-recipes .rw-share__heading{font-size:22px}.rw-recipes .rw-share__link > .rw-field__label{font-size:16px}.rw-recipes .rw-share__input{height:56px;font-size:16px;line-height:1.4}.rw-recipes .rw-share__copy{padding:14px 20px;font-size:16px;line-height:24px}.rw-recipes .rw-share__social{width:56px;height:56px}.rw-recipes .rw-share__social::before{inset:0}.rw-recipes .rw-share__social .rw-icon{width:24px;height:24px}}
.rw-recipes .rw-tour__card{display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid var(--rw-colors-grey,#E3E3E3);border-radius:16px}
.rw-recipes .rw-tour__card-img{display:flex;align-items:center;justify-content:center;flex:none;width:100%;height:auto;max-height:120px;object-fit:cover;border-radius:8px;background:var(--rw-colors-surface-card,#222d30);color:#fff}
.rw-recipes .rw-tour__card-img--empty{height:120px}
.rw-recipes .rw-tour__card-img--empty .rw-icon{opacity:.2}
.rw-recipes .rw-tour__card-body{display:flex;flex-direction:column;justify-content:center;gap:8px;min-width:0}
.rw-recipes .rw-tour__card-price{margin:0;color:var(--rw-colors-primary,#242424);font:600 16px/1.4 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);letter-spacing:-.6px}
.rw-recipes .rw-tour__card-facts{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:0;list-style:none}
.rw-recipes .rw-tour__card-fact{display:flex;align-items:center;gap:4px;color:var(--rw-colors-primary,#242424);font-size:13px;line-height:1.3}
.rw-recipes .rw-tour__card-fact .rw-icon{width:18px;height:18px}
.rw-recipes .rw-tour__card-fact::after{content:"";display:block;width:1px;height:18px;margin:0 8px;background:var(--rw-colors-grey,#E3E3E3)}
.rw-recipes .rw-tour__card-fact:last-child::after{display:none}
.rw-recipes .rw-tour__card-address{margin:0;color:var(--rw-colors-primary,#242424);font-size:13px;line-height:1.3;letter-spacing:-.3px}
@media (min-width:525px){.rw-recipes .rw-tour__card{flex-direction:row}.rw-recipes .rw-tour__card-img{width:114px;height:80px}}
.rw-recipes .rw-tour__days{display:flex;align-items:center;margin:22px 0}
.rw-recipes .rw-tour__nav{display:flex;align-items:center;justify-content:center;flex:none;width:32px;height:44px;padding:0;border:0;background:none;color:var(--rw-colors-primary,#242424);cursor:pointer}
.rw-recipes .rw-tour__nav .rw-icon{width:20px;height:20px}
.rw-recipes .rw-tour__nav:disabled{opacity:.3;cursor:default}
.rw-recipes .rw-tour__day-list{display:grid;flex:1;grid-auto-flow:column;grid-auto-columns:calc((100% - 3 * 8px) / 4);gap:8px;min-width:0;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.rw-recipes .rw-tour__day{display:flex;flex-direction:column;align-items:center;padding:8px;border:1px solid var(--rw-colors-grey,#E3E3E3);border-radius:8px;background:var(--rw-colors-white,#fff);color:var(--rw-colors-primary,#242424);font:inherit;cursor:pointer;scroll-snap-align:start;transition:all .3s ease-in-out}
.rw-recipes .rw-tour__day[hidden]{display:none}
.rw-recipes .rw-tour__day[aria-pressed=true]{border-color:var(--rw-colors-cream-accent,#8E762C);background:var(--rw-colors-cream-background,#F9F6EB)}
.rw-recipes .rw-tour__weekday,.rw-recipes .rw-tour__month{color:var(--rw-colors-secondary,#6b6b6b);font-size:13px;line-height:1.3;letter-spacing:-.3px}
.rw-recipes .rw-tour__date{color:var(--rw-colors-primary,#242424);font-size:16px;font-weight:600;line-height:1.4}
.rw-recipes .rw-tour__day[aria-pressed=true] .rw-tour__weekday,.rw-recipes .rw-tour__day[aria-pressed=true] .rw-tour__month,.rw-recipes .rw-tour__day[aria-pressed=true] .rw-tour__date{color:var(--rw-colors-cream-accent,#8E762C)}
@media (min-width:500px){.rw-recipes .rw-tour__day-list{grid-auto-columns:calc((100% - 4 * 8px) / 5)}}
@media (min-width:600px){.rw-recipes .rw-tour__day-list{grid-auto-columns:calc((100% - 5 * 8px) / 6)}}
@media (min-width:602px){.rw-recipes .rw-tour__days{margin:28px 0}}
@media (min-width:768px){.rw-recipes .rw-tour__day-list{grid-auto-columns:calc((100% - 6 * 12px) / 7);gap:12px;overflow-x:visible;scroll-snap-type:none}.rw-recipes .rw-tour__day{gap:4px}.rw-recipes .rw-tour__nav--prev{margin-right:12px}.rw-recipes .rw-tour__nav--next{margin-left:12px}.rw-recipes .rw-tour__card{gap:16px}}
.rw-recipes .rw-tour__parts{min-width:0;margin:0;padding:0;border:0}
.rw-recipes .rw-tour__parts > legend{float:left;width:100%;margin:0 0 4px;padding:0}.rw-recipes .rw-tour__parts > legend + *{clear:left}
.rw-recipes .rw-tour__part-list{display:flex;flex-direction:column;padding:10px 0;border:1px solid var(--rw-colors-grey,#E3E3E3);border-radius:16px;background:var(--rw-colors-white,#fff)}
.rw-recipes .rw-tour__part{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:10px 14px;border:0;background:none;color:var(--rw-colors-primary,#242424);font:400 16px/1.4 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);text-align:left;cursor:pointer;transition:all .3s ease-in-out}
.rw-recipes .rw-tour__part::before{content:"";flex:none;width:20px;height:20px;border:1px solid var(--rw-colors-grey,#E3E3E3);border-radius:4px;background:var(--rw-colors-white,#fff) center / 16px 16px no-repeat;transition:all .3s ease-in-out}
.rw-recipes .rw-tour__part:hover{background:var(--rw-colors-grey3,#F2F2F2)}
.rw-recipes .rw-tour__part[aria-pressed=true]::before{border-color:var(--rw-colors-primary,#242424);background-color:var(--rw-colors-primary,#242424);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.5l3 3 6-7' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.rw-recipes .rw-tour__part:disabled{color:var(--rw-colors-secondary,#6b6b6b);cursor:not-allowed}.rw-recipes .rw-tour__part:disabled::before{opacity:.5}.rw-recipes .rw-tour__part:disabled:hover{background:none}
@media (min-width:768px){.rw-recipes .rw-tour__parts > legend{margin-bottom:8px}}
.rw-recipes .rw-tour__hint{margin:12px 0 0}
.rw-recipes .rw-tour__hint[hidden],.rw-recipes .rw-tour__step[hidden],.rw-recipes .rw-contact__step[hidden],.rw-recipes .rw-tour__success[hidden],.rw-recipes .rw-tour__summary-row[hidden]{display:none}
.rw-recipes .rw-tour__success{display:flex;flex-direction:column;align-items:center;text-align:center}
.rw-recipes .rw-tour__check{display:flex;align-items:center;justify-content:center;width:48px;height:48px;margin-bottom:12px;border-radius:50%;background:var(--rw-colors-tertiary,#a0a0a0);color:#fff}
.rw-recipes .rw-tour__check .rw-icon{width:22px;height:22px}
.rw-recipes .rw-tour__success-title{margin:0 0 2px;color:var(--rw-colors-primary,#242424);font:400 24px/1.3 var(--rw-fonts-serif,Marcellus,Georgia,'Times New Roman',serif);letter-spacing:-.6px}
.rw-recipes .rw-tour__success-text{margin:0;color:var(--rw-colors-secondary,#6b6b6b);font-size:14px;line-height:1.4;letter-spacing:-.6px}
.rw-recipes .rw-tour__summary{align-self:stretch;display:flex;flex-direction:column;gap:10px;margin:28px 0 0;padding:16px;border:1px solid var(--rw-colors-grey,#E3E3E3);border-radius:16px;text-align:left}
.rw-recipes .rw-tour__summary dt{color:var(--rw-colors-secondary,#6b6b6b);font-size:14px;line-height:1.4;letter-spacing:-.6px}
.rw-recipes .rw-tour__summary dd{margin:0;color:var(--rw-colors-primary,#242424);font-size:14px;font-weight:600;line-height:1.4;letter-spacing:-.6px;overflow-wrap:anywhere}
.rw-recipes .rw-tour__success .rw-modal__footer{align-self:stretch}
@media (min-width:768px){.rw-recipes .rw-tour__check{width:64px;height:64px;margin-bottom:24px}.rw-recipes .rw-tour__check .rw-icon{width:28px;height:28px}.rw-recipes .rw-tour__success-title{margin-bottom:6px;font-size:32px}.rw-recipes .rw-tour__success-text{font-size:16px}.rw-recipes .rw-tour__summary{gap:14px;padding:20px}.rw-recipes .rw-tour__summary dt,.rw-recipes .rw-tour__summary dd{font-size:16px}.rw-recipes .rw-tour__summary dt{margin-bottom:2px}}
@media (prefers-reduced-motion:reduce){.rw-recipes.rw-modal,.rw-recipes.rw-modal[open],.rw-recipes.rw-modal::backdrop,.rw-recipes.rw-modal[open]::backdrop{transition:none;transform:none}}
.rw-recipes.rw-mortgage,.rw-recipes .rw-mortgage{display:flex;flex-direction:column;gap:12px 0;min-width:0;padding:20px;border:1px solid var(--rw-colors-grey,#E3E3E3);border-radius:16px;background:var(--rw-colors-white,#fff);color:var(--rw-colors-primary,#242424);font-family:var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif)}
.rw-recipes .rw-mortgage [hidden]{display:none!important}
.rw-recipes .rw-mortgage__title{margin:0;color:var(--rw-colors-primary,#242424);font:400 32px/1 var(--rw-fonts-serif,Marcellus,Georgia,'Times New Roman',serif)}
.rw-recipes .rw-mortgage__selects{display:grid;gap:12px;grid-template-columns:1fr}
@media (min-width:520px){.rw-recipes .rw-mortgage__selects{grid-template-columns:1fr 1fr}}
.rw-recipes .rw-mortgage__sliders{display:grid;gap:20px;grid-template-columns:1fr}
@media (min-width:992px){.rw-recipes .rw-mortgage__sliders{grid-template-columns:repeat(3,minmax(0,1fr))}}
.rw-recipes .rw-mortgage__slider{display:flex;flex-direction:column;gap:8px;min-width:0}
.rw-recipes .rw-mortgage__slider-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:34px}
.rw-recipes .rw-mortgage__number{font-variant-numeric:tabular-nums}
.rw-recipes .rw-mortgage__range{appearance:none;-webkit-appearance:none;display:block;width:100%;height:20px;margin:0;background:transparent;cursor:pointer;accent-color:var(--rw-colors-interactive-primary,#242424)}
.rw-recipes .rw-mortgage__range::-webkit-slider-runnable-track{height:4px;border-radius:9999px;background:var(--rw-colors-grey,#E3E3E3)}
.rw-recipes .rw-mortgage__range::-webkit-slider-thumb{-webkit-appearance:none;margin-top:-8px;width:20px;height:20px;border:2px solid var(--rw-colors-interactive-primary,#242424);border-radius:50%;background:var(--rw-colors-white,#fff);cursor:pointer}
.rw-recipes .rw-mortgage__range::-moz-range-track{height:4px;border-radius:9999px;background:var(--rw-colors-grey,#E3E3E3)}
.rw-recipes .rw-mortgage__range::-moz-range-progress{height:4px;border-radius:9999px;background:var(--rw-colors-interactive-primary,#242424)}
.rw-recipes .rw-mortgage__range::-moz-range-thumb{box-sizing:border-box;width:20px;height:20px;border:2px solid var(--rw-colors-interactive-primary,#242424);border-radius:50%;background:var(--rw-colors-white,#fff);cursor:pointer}
.rw-recipes .rw-mortgage__range:focus{outline:none}.rw-recipes .rw-mortgage__range:focus-visible{outline:2px solid var(--rw-colors-focus-ring,#242424);outline-offset:4px}
.rw-recipes .rw-mortgage__hint{margin:0;color:var(--rw-colors-secondary,#6b6b6b);font-size:13px;line-height:1.3}
.rw-recipes .rw-mortgage__mode{display:inline-flex;gap:0;margin:0;padding:4px;border:1px solid var(--rw-colors-grey,#E3E3E3);border-radius:12px;background:var(--rw-colors-white,#fff)}
.rw-recipes .rw-mortgage__mode-option{position:relative;display:inline-flex;cursor:pointer}
.rw-recipes .rw-mortgage__mode-option input{position:absolute;width:1px;height:1px;margin:0;opacity:0}
.rw-recipes .rw-mortgage__mode-option span{padding:4px 8px;border-radius:8px;color:var(--rw-colors-secondary,#6b6b6b);font:400 13px/1.3 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);transition:all .3s ease-in-out}
.rw-recipes .rw-mortgage__mode-option:hover span{color:var(--rw-colors-primary,#242424)}
.rw-recipes .rw-mortgage__mode-option input:checked+span{background:var(--rw-colors-grey3,#F2F2F2);color:var(--rw-colors-primary,#242424)}
.rw-recipes .rw-mortgage__mode-option input:focus-visible+span{outline:2px solid var(--rw-colors-focus-ring,#242424);outline-offset:1px}
.rw-recipes .rw-mortgage__more{border-top:1px solid var(--rw-colors-grey,#E3E3E3);border-bottom:1px solid var(--rw-colors-grey,#E3E3E3)}
.rw-recipes .rw-mortgage__more-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 0;color:var(--rw-colors-primary,#242424);font:500 16px/1.4 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);cursor:pointer;list-style:none}
.rw-recipes .rw-mortgage__more-summary::-webkit-details-marker{display:none}.rw-recipes .rw-mortgage__more-summary::marker{content:""}
.rw-recipes .rw-mortgage__more-summary::after{content:"";flex:none;width:20px;height:20px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 9l-7 6-7-6' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 9l-7 6-7-6' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;transition:transform .3s ease-in-out}
.rw-recipes .rw-mortgage__more[open] > .rw-mortgage__more-summary::after{transform:rotate(180deg)}
.rw-recipes .rw-mortgage__more-grid{display:grid;gap:12px;grid-template-columns:1fr;padding:0 0 20px}
@media (min-width:768px){.rw-recipes .rw-mortgage__more-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:992px){.rw-recipes .rw-mortgage__more-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.rw-recipes .rw-mortgage__result{display:grid;gap:20px;grid-template-columns:1fr;align-items:center}
@media (min-width:768px){.rw-recipes .rw-mortgage__result{grid-template-columns:200px minmax(0,1fr)}}
.rw-recipes .rw-mortgage__donut{position:relative;width:160px;height:160px;margin:0 auto}
.rw-recipes .rw-mortgage__donut svg{display:block;width:160px;height:160px}
.rw-recipes .rw-mortgage__track{stroke:var(--rw-colors-grey3,#F2F2F2)}
.rw-recipes .rw-mortgage__seg--principalAndInterest{stroke:var(--rw-colors-chart-1,#2b5797)}.rw-recipes .rw-mortgage__dot--principalAndInterest{background:var(--rw-colors-chart-1,#2b5797)}
.rw-recipes .rw-mortgage__seg--propertyTax{stroke:var(--rw-colors-chart-2,#a16207)}.rw-recipes .rw-mortgage__dot--propertyTax{background:var(--rw-colors-chart-2,#a16207)}
.rw-recipes .rw-mortgage__seg--homeInsurance{stroke:var(--rw-colors-chart-3,#2f7d4f)}.rw-recipes .rw-mortgage__dot--homeInsurance{background:var(--rw-colors-chart-3,#2f7d4f)}
.rw-recipes .rw-mortgage__seg--mortgageInsurance{stroke:var(--rw-colors-chart-4,#b42318)}.rw-recipes .rw-mortgage__dot--mortgageInsurance{background:var(--rw-colors-chart-4,#b42318)}
.rw-recipes .rw-mortgage__seg--hoa{stroke:var(--rw-colors-chart-5,#6941c6)}.rw-recipes .rw-mortgage__dot--hoa{background:var(--rw-colors-chart-5,#6941c6)}
.rw-recipes .rw-mortgage__center{position:absolute;inset:0;margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center}
.rw-recipes .rw-mortgage__total{color:var(--rw-colors-primary,#242424);font:700 24px/1.2 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);font-variant-numeric:tabular-nums}
.rw-recipes .rw-mortgage__per{color:var(--rw-colors-secondary,#6b6b6b);font-size:13px;line-height:1.3}
.rw-recipes .rw-mortgage__list{display:flex;flex-direction:column;gap:7px;margin:0;padding:0;list-style:none}
.rw-recipes .rw-mortgage__row{display:flex;align-items:center;gap:8px;font-size:14px;line-height:20px}
.rw-recipes .rw-mortgage__dot{flex:none;width:8px;height:8px;border-radius:50%}
.rw-recipes .rw-mortgage__label{color:var(--rw-colors-secondary,#6b6b6b)}
.rw-recipes .rw-mortgage__value{margin-left:auto;color:var(--rw-colors-primary,#242424);font-weight:500;font-variant-numeric:tabular-nums}
.rw-recipes .rw-mortgage__row--total{margin-top:5px;padding-top:12px;border-top:1px solid var(--rw-colors-grey,#E3E3E3);font-weight:600}
.rw-recipes .rw-mortgage__row--total .rw-mortgage__label,.rw-recipes .rw-mortgage__row--total .rw-mortgage__value{color:var(--rw-colors-primary,#242424);font-weight:600}
.rw-recipes .rw-mortgage__est{padding:4px 5px;border-radius:6px;background:var(--rw-colors-accent,#fbe08e);color:var(--rw-colors-text-on-gold,#242424);font:600 11px/1 var(--rw-fonts-sans,Inter,Arial,'Helvetica Neue',Helvetica,sans-serif);cursor:help}
.rw-recipes .rw-mortgage__note{margin:12px 0 0;padding:12px 16px;border-radius:12px;background:var(--rw-colors-grey3,#F2F2F2);color:var(--rw-colors-secondary,#6b6b6b);font-size:13px;line-height:1.4}
.rw-recipes .rw-mortgage__reasons{padding:16px 20px;border:1px solid var(--rw-colors-cream-border,#EADFB8);border-radius:16px;background:var(--rw-colors-cream-background,#F9F6EB);color:var(--rw-colors-primary,#242424);font-size:14px;line-height:1.4}
.rw-recipes .rw-mortgage__reasons-title{margin:0 0 6px;font-weight:600}
.rw-recipes .rw-mortgage__reasons ul{margin:0;padding-left:20px;list-style:disc}
.rw-recipes .rw-mortgage__stale,.rw-recipes .rw-mortgage__status{margin:0;color:var(--rw-colors-secondary,#6b6b6b);font-size:13px;line-height:1.4}
.rw-recipes .rw-mortgage__link{padding:0;border:0;background:none;color:var(--rw-colors-primary,#242424);font:inherit;font-weight:600;text-decoration:none;cursor:pointer;transition:all .3s ease-in-out}
.rw-recipes .rw-mortgage__link:hover{color:var(--rw-colors-hovers-primary,#3a3a3a)}
.rw-recipes .rw-mortgage__disclosures{padding-top:12px;border-top:1px solid var(--rw-colors-grey,#E3E3E3);color:var(--rw-colors-secondary,#6b6b6b);font-size:12px;line-height:1.5}
.rw-recipes .rw-mortgage__disclosures p{margin:0 0 6px}
@media (prefers-reduced-motion:reduce){.rw-recipes *{transition:none!important}}
packages/ruuster-idx-recipes/static/ruuster-idx.js
/*
* ruuster-idx.js: the browser script for the Ruuster Listings API recipe markup (html/).
* Generated by npm run idx:recipes-static from @ruuster/idx-recipes. Do not edit it by hand.
*
* Load it once on every page that shows listings, after ruuster-idx.css:
* <script src="/ruuster-idx.js" defer></script>
*
* It finds each widget by the data-rw-* attributes in HOOKS.md and gives it the behaviour of the React
* recipe component it came from: the card and listing page photos, the location search box, the
* filters, the lead forms, the map, the listing page's screens (header, full gallery, share, contact
* and tour dialogs, location map, open houses), the mortgage calculator and the GA4 dataLayer events.
* Its text comes from src/copy.ts. It never computes a mortgage payment: the calculator shows the
* answers of GET /v1/mortgage/estimate.
* It runs once per page, so a page can load it twice safely; after you add widgets to a page, call
* window.RuusterIdx.enhance(window) to enhance the new ones.
*/
(function (root, factory) {
"use strict";
const api = factory();
if (typeof module === "object" && module && module.exports) module.exports = api;
// Loaded twice? The first copy already enhanced the page; the second one does nothing.
if (!root || !root.document || root.RuusterIdx) return;
root.RuusterIdx = api;
const run = () => api.start(root);
if (root.document.readyState === "loading") root.document.addEventListener("DOMContentLoaded", run);
else run();
})(typeof window !== "undefined" ? window : this, function () {
"use strict";
// Generated from src/ by npm run idx:recipes-static.
// src/copy.ts: the visible text
const COPY = {"clusterHomes":"{n} homes","collapseMap":"Collapse map","copyFailed":"Select the link above and copy it.","copyLink":"Copy link","downPaymentAmount":"{amount} down","downPaymentShare":"{pct} of the price","drawArea":"Draw an area","drawAreaHint":"Click the map to add points. Click the first point or double-click to finish the area.","drawCircle":"Draw a circle","drawCircleHint":"Press and drag on the map to draw a circle.","expandMap":"Expand map","filterAdvancedCount":"Advanced filters ({n})","filterAdvancedTitle":"Advanced filters","filterAny":"Any","filterAnyTime":"Any time","filterChoicesFailed":"The choices could not load. Type a value in the box.","filterChoicesLoading":"Loading the choices.","filterFind":"Find a filter","filterIncludeBlank":"Also show homes with no value for this","filterKeywordsHint":"A word to look for, such as pool","filterLotSqft":"Lot size (square feet)","filterMaxOf":"{label}, maximum","filterMinOf":"{label}, minimum","filterMoreOptions":"More options","filterNarrow":"Type to narrow the list","filterNarrowOf":"{label}: type to narrow the list","filterNoChoices":"No choices match what you typed.","filterNoMax":"No max","filterNoMin":"No min","filterOpAnd":"Homes with all of these","filterOpDefault":"The usual way","filterOpLabel":"How to match","filterOpNot":"Homes with none of these","filterOpOr":"Homes with any of these","filterPastDay":"In the past day","filterPastDays":"In the past {n} days","filterSelectOption":"Select an option","filterSelectOptions":"Select options","filterSelectedCount":"{n} selected","filterToday":"Today","filterTypeValue":"Type a value","filterTypeValueOf":"{label}: type a value","formError":"We could not send your request. Please check your connection and try again.","linkCopied":"Link copied","lockArea":"Lock the drawn area","mapFailed":"The map could not load. Please refresh the page to try again.","mapView":"Map view","mortgageError":"The estimate could not load. Please try again in a moment.","mortgageUpdating":"Updating the estimate.","no":"No","noPhoto":"No photo is available for this home.","noPhotoShort":"No photo available","photoOf":"of","pickDay":"Choose a day to continue.","pickTime":"Choose a time of day to continue.","rateAsOf":"Market rate on {date}","rateReset":"Use the market rate","rateYours":"Your rate","school":"School","searchFailed":"Places could not load. Please try again.","searchNoResults":"No places match what you typed. Try a city, a ZIP code or a street address.","searchResultsMany":"{n} places match. Use the arrow keys to choose one.","searchResultsOne":"1 place matches. Use the arrow keys to choose it.","searchSearching":"Looking for places.","searchThisArea":"Search this area","searchTypeMore":"Type at least {n} characters to see places.","sending":"Sending your request.","shareText":"Take a look at this home: {url}","shareTitle":"Share this home","showLess":"Show less","showMore":"Show more","stopDrawing":"Stop drawing","streetView":"Street view","streetViewNeedsKey":"Add your Google Maps key to show street view.","streetViewNone":"There is no street view imagery for this address. The Photos tab has every photo of this home.","tourAfternoon":"Afternoon (12 PM to 4 PM)","tourAnytime":"Any time","tourError":"We could not send your tour request. Please check your connection and try again.","tourEvening":"Evening (4 PM to 8 PM)","tourMorning":"Morning (8 AM to 12 PM)","tourTimePassed":"This time has passed for today.","unlockArea":"Unlock the drawn area","yes":"Yes"};
// src/search-box.tsx: the suggest group headings
const GROUP_LABELS = {"address":"Address","listing":"MLS number","city":"City","zip":"ZIP code","neighborhood":"Neighborhood","county":"County","countyOrParish":"Region","school":"School","subdivision":"Subdivision","area":"Area","community":"Community","place":"Place"};
// src/search-box.tsx
const DEFAULT_BASE = "https://idx.ruuster.com/v1";
// src/internal/filter-rows.ts and src/filters-enhance.tsx: the filter panel's rows
const FILTER_ROWS = {"keyPattern":"^[A-Za-z][A-Za-z0-9_.]{0,79}$","skip":["status","price","bedrooms","bathrooms","type","soldPeriod","openHousePeriod","mlsStatus","privateRemarks","privateOfficeRemarks","address","page","bounds","view","zoom","commonStatus","polygon","listingsPerPage","limit","isInternalSearch","filterByMls","listingType","cities","neighborhoods","pets","parking","availableDate","sortBy","normalizedMlsRecordId","buyerAgentMlsId","buyerOfficeMlsId","listAgentMlsId","listOfficeMlsId","mlsArea","boundariesId","slug","locationSearch","openHouseEndTime","openHouseKey","openHouseStartTime","openHouseStatus","openHouseType","rawMlsRoomLevel","rawMlsRoomType","roomDimensions","roomFeatures","roomKey","roomLevel","roomType","primaryBedroomOnMain","roomsOnMain","openHouseThisWeekend","openHouseYesOrNo","hasCdd","storiesTotal"],"ranges":[["square","sqftMin","sqftMax"],["lotSizeAcres","lotSqftMin","lotSqftMax"],["yearBuilt","yearMin","yearMax"],["associationFee","hoaMin","hoaMax"]],"rangeTypes":["Min/Max/Range - Number","Min/Max/Range - $","Min/Max/Range - List"],"multiTypes":["Drop Down - Multi-Select","Drop Down - Predefined Multi-Select","Free Text Field","Free Text Field Custom"],"singleTypes":["Drop Down - Single Select","Drop Down - Predefined Single-Select"],"days":[1,7,14,30,90],"periods":["0d","1d","3d","7d","14d","30d","90d"],"narrowFrom":8,"findFrom":12,"narrowDebounceMs":300};
// src/internal/photo.ts: the photo host (Bunny CDN) that resizes on ?width=
const PHOTO_CDN_HOST = "photos.ruuster.com";
// src/internal/photo.ts: the srcset widths
const PHOTO_WIDTHS = [480,800,1200];
// src/internal/campaign.ts: LeadSubmission.attribution field and URL parameter
const CAMPAIGN_KEYS = [["utmSource","utm_source"],["utmMedium","utm_medium"],["utmCampaign","utm_campaign"],["utmTerm","utm_term"],["utmContent","utm_content"],["gclid","gclid"],["fbclid","fbclid"],["msclkid","msclkid"]];
// src/internal/campaign.ts
const CAMPAIGN_STORAGE_KEY = "rw_campaign";
// src/internal/campaign.ts: the visit's landing page, the first and the last touch
const CAMPAIGN_TOUCH_KEYS = {"landing":"rw_landing","first":"rw_first_touch","last":"rw_last_touch"};
// src/map.tsx: the price pin dot colours
const TONE_COLOURS = {"active":"#00D36F","pending":"#fbe08e","sold":"#FF5858"};
// src/card.tsx: the card photo's sizes attribute
const CARD_SIZES = "(min-width: 1600px) 25vw, (min-width: 1280px) 33vw, (min-width: 602px) 50vw, 100vw";
// src/internal/icons.generated.ts: the icons the script draws
const ICON_DEFS = {"circle-draw":{"viewBox":"0 0 24 24","body":"<g fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M15.6 2.7a10 10 0 1 0 5.7 5.7\"/><circle cx=\"12\" cy=\"12\" r=\"2\"/><path d=\"M13.4 10.6 19 5\"/></g>"},"close-draw":{"viewBox":"0 0 26 26","body":"<g fill=\"none\"><rect x=\"3\" y=\"21\" width=\"25\" height=\"2.6\" rx=\"1.3\" transform=\"rotate(-45 3 21)\" fill=\"currentColor\"/><rect x=\"5\" y=\"3\" width=\"25\" height=\"2.6\" rx=\"1.3\" transform=\"rotate(45 5 3)\" fill=\"currentColor\"/></g>"},"globe":{"viewBox":"0 0 24 24","body":"<g fill=\"none\" stroke-width=\"1.5\"><path d=\"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10z\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path><path d=\"M2.5 12.5l5.5 2L7 18l1 3M17 20.5l-.5-2.5-2.5-1v-3.5l3-1 4.5.5M19 5.5L18.5 7l-3.5.5v3l2.5-1h2l2 1M2.5 10.5l2.5-2L7.5 8l2-3-1-2\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path></g>"},"listing-no-image":{"viewBox":"0 0 120 120","body":"<g fill=\"none\"><path d=\"M90 40C90 45.5228 85.5228 50 80 50C74.4772 50 70 45.5228 70 40C70 34.4772 74.4772 30 80 30C85.5228 30 90 34.4772 90 40Z\" fill=\"currentColor\"/><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M60.2869 6.25H59.7131C48.1712 6.24994 39.1259 6.24989 32.0685 7.19874C24.8449 8.16993 19.1447 10.1966 14.6707 14.6707C10.1966 19.1447 8.16993 24.8449 7.19874 32.0685C6.24989 39.1259 6.24994 48.1711 6.25 59.713V60.2869C6.24994 71.8288 6.24989 80.8741 7.19874 87.9315C8.16993 95.1552 10.1966 100.855 14.6707 105.329C19.1447 109.803 24.8449 111.83 32.0685 112.801C39.126 113.75 48.1712 113.75 59.7131 113.75H60.2869C71.8288 113.75 80.874 113.75 87.9315 112.801C95.1552 111.83 100.855 109.803 105.329 105.329C109.803 100.855 111.83 95.1552 112.801 87.9315C113.75 80.874 113.75 71.8288 113.75 60.2869V59.7131C113.75 48.1712 113.75 39.126 112.801 32.0685C111.83 24.8449 109.803 19.1447 105.329 14.6707C100.855 10.1966 95.1552 8.16993 87.9315 7.19874C80.8741 6.24989 71.8288 6.24994 60.2869 6.25ZM19.974 19.974C22.8223 17.1257 26.6759 15.4912 33.0679 14.6319C39.5678 13.758 48.1089 13.75 60 13.75C71.8911 13.75 80.4322 13.758 86.9321 14.6319C93.3241 15.4912 97.1777 17.1257 100.026 19.974C102.874 22.8223 104.509 26.6759 105.368 33.0679C106.242 39.5678 106.25 48.1089 106.25 60C106.25 62.2511 106.25 64.3822 106.243 66.4021L105.133 66.2484C90.9142 64.2796 77.9025 71.6714 71.2768 82.8129C62.7295 61.1881 40.1422 46.4403 14.9037 50.0643L13.7748 50.2271C13.8317 43.1996 14.0184 37.6308 14.6319 33.0679C15.4912 26.6759 17.1257 22.8223 19.974 19.974Z\" fill=\"currentColor\"/></g>"},"lock":{"viewBox":"0 0 24 24","body":"<g fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"16\" r=\"1\"/><rect width=\"18\" height=\"12\" x=\"3\" y=\"10\" rx=\"2\"/><path d=\"M7 10V7a5 5 0 0 1 9.33-2.5\"/></g>"},"locked":{"viewBox":"0 0 24 24","body":"<g fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"16\" r=\"1\"/><rect x=\"3\" y=\"10\" width=\"18\" height=\"12\" rx=\"2\"/><path d=\"M7 10V7a5 5 0 0 1 10 0v3\"/></g>"},"map-map":{"viewBox":"0 0 24 24","body":"<g fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z\"/><path d=\"M15 5.764v15\"/><path d=\"M9 3.236v15\"/></g>"},"map-pin-black":{"viewBox":"0 0 16 20","body":"<g fill=\"none\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M8 0C3.58172 0 0 4.00258 0 8.5C0 12.9622 2.55332 17.8124 6.53707 19.6744C7.46574 20.1085 8.53426 20.1085 9.46293 19.6744C13.4467 17.8124 16 12.9622 16 8.5C16 4.00258 12.4183 0 8 0ZM8 10C9.10457 10 10 9.10457 10 8C10 6.89543 9.10457 6 8 6C6.89543 6 6 6.89543 6 8C6 9.10457 6.89543 10 8 10Z\" fill=\"currentColor\"/></g>"},"map-white":{"viewBox":"0 0 24 24","body":"<g fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z\"/><path d=\"M15 5.764v15\"/><path d=\"M9 3.236v15\"/></g>"},"maximize":{"viewBox":"0 0 24 24","body":"<g fill=\"none\"><path d=\"M16.1429 1.25C15.7286 1.25 15.3929 1.58579 15.3929 2C15.3929 2.41421 15.7286 2.75 16.1429 2.75H20.1893L14.4697 8.46967C14.1768 8.76256 14.1768 9.23744 14.4697 9.53033C14.7626 9.82322 15.2374 9.82322 15.5303 9.53033L21.25 3.81066V7.85714C21.25 8.27136 21.5858 8.60714 22 8.60714C22.4142 8.60714 22.75 8.27136 22.75 7.85714V2C22.75 1.58579 22.4142 1.25 22 1.25H16.1429Z\" fill=\"currentColor\"/><path d=\"M7.85714 22.75C8.27136 22.75 8.60714 22.4142 8.60714 22C8.60714 21.5858 8.27136 21.25 7.85714 21.25H3.81066L9.53033 15.5303C9.82322 15.2374 9.82322 14.7626 9.53033 14.4697C9.23744 14.1768 8.76256 14.1768 8.46967 14.4697L2.75 20.1893V16.1429C2.75 15.7286 2.41421 15.3929 2 15.3929C1.58579 15.3929 1.25 15.7286 1.25 16.1429V22C1.25 22.4142 1.58579 22.75 2 22.75H7.85714Z\" fill=\"currentColor\"/></g>"},"minimize":{"viewBox":"0 0 24 24","body":"<g fill=\"none\"><path d=\"M20.8571 9.75C21.2714 9.75 21.6071 9.41421 21.6071 9C21.6071 8.58579 21.2714 8.25 20.8571 8.25H16.8107L22.5303 2.53033C22.8232 2.23744 22.8232 1.76256 22.5303 1.46967C22.2374 1.17678 21.7626 1.17678 21.4697 1.46967L15.75 7.18934V3.14286C15.75 2.72864 15.4142 2.39286 15 2.39286C14.5858 2.39286 14.25 2.72864 14.25 3.14286V9C14.25 9.41421 14.5858 9.75 15 9.75H20.8571Z\" fill=\"currentColor\"/><path d=\"M3.14286 14.25C2.72864 14.25 2.39286 14.5858 2.39286 15C2.39286 15.4142 2.72864 15.75 3.14286 15.75H7.18934L1.46967 21.4697C1.17678 21.7626 1.17678 22.2374 1.46967 22.5303C1.76256 22.8232 2.23744 22.8232 2.53033 22.5303L8.25 16.8107V20.8571C8.25 21.2714 8.58579 21.6071 9 21.6071C9.41421 21.6071 9.75 21.2714 9.75 20.8571V15C9.75 14.5858 9.41421 14.25 9 14.25H3.14286Z\" fill=\"currentColor\"/></g>"},"pen-tool":{"viewBox":"0 0 24 24","body":"<g fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 19l7-7 3 3-7 7-3-3z\"></path><path d=\"M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z\"></path><path d=\"M2 2l7.586 7.586\"></path><circle cx=\"11\" cy=\"11\" r=\"2\"></circle></g>"},"school-hat":{"viewBox":"0 0 512 512","body":"<path d=\"M407.951,343.116a7.2,7.2,0,0,1,.048.733c.121,13.4-15.891,29.5-41.725,41.981C345.344,395.944,309.222,408,256,408s-89.344-12.056-110.274-22.17C119.892,373.348,103.88,357.246,104,343.849a7.2,7.2,0,0,1,.048-.733L115.1,243.624a7,7,0,0,1,9.82-5.615L242.911,290.9a32.043,32.043,0,0,0,26.179,0l117.986-52.89a7,7,0,0,1,9.82,5.615ZM474.988,153.4l-205.9-92.3a32.037,32.037,0,0,0-26.179,0l-205.9,92.3a16,16,0,0,0,0,29.2l205.9,92.3a32.043,32.043,0,0,0,26.179,0L440,198.284v59.874A15.98,15.98,0,0,0,432,272V376h32V272a15.98,15.98,0,0,0-8-13.842V191.111l18.987-8.511a16,16,0,0,0,0-29.2Z\" style=\"fill:currentColor\"/>"},"street-view-white":{"viewBox":"0 0 20 20","body":"<g fill=\"none\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M7.7085 3.33464C7.7085 2.06898 8.73451 1.04297 10.0002 1.04297C11.2658 1.04297 12.2918 2.06898 12.2918 3.33464C12.2918 4.60029 11.2658 5.6263 10.0002 5.6263C8.73451 5.6263 7.7085 4.60029 7.7085 3.33464Z\" fill=\"currentColor\"/><path d=\"M6.85241 9.64394L5.03967 9.0397C4.51822 8.86588 4.1665 8.3779 4.1665 7.82825C4.1665 7.01527 4.91611 6.40927 5.71105 6.57962L7.29235 6.91847C7.38029 6.93731 7.42425 6.94673 7.46784 6.95575C9.13816 7.30125 10.8615 7.30125 12.5318 6.95575C12.5754 6.94673 12.6194 6.93731 12.7073 6.91847L14.2886 6.57961C15.0836 6.40927 15.8332 7.01527 15.8332 7.82825C15.8332 8.3779 15.4815 8.86588 14.96 9.0397L13.1473 9.64394C12.9282 9.71697 12.8187 9.75348 12.7363 9.80432C12.4558 9.97748 12.3037 10.2997 12.3484 10.6263C12.3615 10.7222 12.4029 10.83 12.4858 11.0455L13.5248 13.7469C13.8341 14.551 13.2405 15.4153 12.379 15.4153C11.9384 15.4153 11.5316 15.1792 11.313 14.7967L9.99984 12.4986L8.68665 14.7967C8.46807 15.1792 8.06128 15.4153 7.62072 15.4153C6.75915 15.4153 6.16558 14.551 6.47486 13.7469L7.51385 11.0455C7.59675 10.83 7.6382 10.7222 7.65131 10.6263C7.69597 10.2997 7.5439 9.97748 7.26338 9.80432C7.18101 9.75348 7.07148 9.71697 6.85241 9.64394Z\" fill=\"currentColor\"/><path d=\"M9.99984 18.3316C14.6022 18.3316 18.3332 16.6526 18.3332 14.5816C18.3332 13.1467 16.5423 11.9 13.9115 11.2695L14.6915 13.2976C15.3157 14.9205 14.1177 16.6647 12.379 16.6647C11.4898 16.6647 10.6689 16.1883 10.2277 15.4163L9.99984 15.0175L9.77195 15.4163C9.33082 16.1883 8.50985 16.6647 7.62072 16.6647C5.88193 16.6647 4.68399 14.9205 5.30818 13.2976L6.08819 11.2695C3.45739 11.9 1.6665 13.1467 1.6665 14.5816C1.6665 16.6526 5.39746 18.3316 9.99984 18.3316Z\" fill=\"currentColor\"/></g>"}};
// the SVG namespace the icons are drawn in
const SVG_NS = "http://www.w3.org/2000/svg";
// src/internal/pins.ts: the map's pin clusters
const CLUSTER = {"radius":60,"maxZoom":16,"minPoints":2};
// src/internal/tour-dates.ts: the tour days and times of day
const TOUR = {"days":16,"perPage":7,"parts":["anytime","morning","afternoon","evening"],"partEnd":{"morning":12,"afternoon":16,"evening":20}};
// src/mortgage.tsx: the breakdown lines, in the donut's order
const MORTGAGE_LINES = ["principalAndInterest","propertyTax","homeInsurance","mortgageInsurance","hoa"];
// src/internal/mortgage-query.ts: the API base the calculator calls by default
const MORTGAGE_BASE = "https://idx.ruuster.com/v1";
// src/internal/mortgage-query.ts: the dropdowns before the first answer
const MORTGAGE_OPTIONS = {"US":{"loanTypes":[{"value":"conventional","label":"Conventional"},{"value":"fha","label":"FHA"},{"value":"va","label":"VA"},{"value":"usda","label":"USDA"},{"value":"jumbo","label":"Jumbo"}],"terms":[{"value":"30","label":"30 years, fixed"},{"value":"20","label":"20 years, fixed"},{"value":"15","label":"15 years, fixed"},{"value":"30-arm","label":"5/6 ARM"}]},"CA":{"loanTypes":[{"value":"fixed","label":"Fixed rate"},{"value":"variable","label":"Variable rate, fixed payment"},{"value":"adjustable","label":"Adjustable rate"}],"terms":[{"value":"1","label":"1 year"},{"value":"2","label":"2 years"},{"value":"3","label":"3 years"},{"value":"4","label":"4 years"},{"value":"5","label":"5 years"},{"value":"6","label":"6 years"},{"value":"7","label":"7 years"},{"value":"8","label":"8 years"},{"value":"9","label":"9 years"},{"value":"10","label":"10 years"}]}};
// ---------------------------------------------------------------------------------------------
// Pure helpers, ported from src/ (test/static-js.test.tsx checks each one against its original)
// ---------------------------------------------------------------------------------------------
const fill = (text, vars) => text.replace(/\{(\w+)\}/g, (m, k) => (k in vars ? String(vars[k]) : m));
/** Browser keys only: anything that is not idx_pk_… (a secret idx_sk_ key above all) is refused. */
const isPublishableKey = (key) => typeof key === "string" && /^idx_pk_[A-Za-z0-9_-]+$/.test(key);
const looksSecret = (value) => typeof value === "string" && /idx_sk_/i.test(value);
const readJson = (text, fallback) => {
try {
return text ? JSON.parse(text) : fallback;
} catch (e) {
return fallback;
}
};
// src/search-box.tsx suggestUrl and groupRows, src/internal/href.ts whereHref.
function suggestUrl(baseUrl, key, q, groups) {
const base = (baseUrl || DEFAULT_BASE).replace(/\/+$/, "");
const p = new URLSearchParams({ q: q });
if (key) p.set("key", key);
if (groups && groups.length) p.set("groups", groups.join(","));
return base + "/suggest?" + p.toString();
}
function groupRows(rows) {
const out = [];
rows.forEach((row, index) => {
let g = out.find((x) => x.group === row.group);
if (!g) {
g = { group: row.group, label: GROUP_LABELS[row.group] || row.group, rows: [] };
out.push(g);
}
g.rows.push({ row: row, index: index });
});
return out;
}
const whereHref = (action, where) => action + (action.indexOf("?") >= 0 ? "&" : "?") + "where=" + encodeURIComponent(JSON.stringify(where));
// src/internal/filter-rows.ts: the filter panel's rows from GET /v1/filters, as { t, a, c } nodes.
const FILTER_KEY_RE = new RegExp(FILTER_ROWS.keyPattern);
const fnode = (t, a, c) => ({ t: t, a: a, c: c });
function filterControl(def) {
if (!def || typeof def.key !== "string" || !FILTER_KEY_RE.test(def.key) || FILTER_ROWS.skip.indexOf(def.key) >= 0) return null;
const key = def.key;
const label = typeof def.label === "string" && def.label.trim() ? def.label.trim().slice(0, 120) : key;
const type = typeof def.type === "string" ? def.type : "";
const operators = Array.isArray(def.operators) ? def.operators : [];
const out = { key: key, label: label, section: def.group === "based" ? "based" : "advanced", kind: "text", min: "", max: "", name: "", op: "", opKind: "", ops: [], yes: "true", no: "false" };
for (let i = 0; i < FILTER_ROWS.ranges.length; i++) {
if (FILTER_ROWS.ranges[i][0] !== key) continue;
out.kind = "range";
out.min = FILTER_ROWS.ranges[i][1];
out.max = FILTER_ROWS.ranges[i][2];
if (key === "lotSizeAcres") out.label = COPY.filterLotSqft;
return out;
}
if (key === "newConstruction") {
out.kind = "yesno";
out.name = "newConstruction";
out.yes = "1";
out.no = "0";
return out;
}
if (key === "priceReduction") {
out.kind = "period";
out.name = "priceReduction";
return out;
}
if (key === "description" || key === "keywords") {
out.kind = "text";
out.name = "keywords";
return out;
}
const blank = operators.indexOf("zbyes") >= 0;
const listOps = ["and", "or", "not"].filter((o) => operators.indexOf(o) >= 0);
if (FILTER_ROWS.rangeTypes.indexOf(type) >= 0) {
out.kind = "range";
out.min = "f." + key + "Min";
out.max = "f." + key + "Max";
if (blank) {
out.op = "f." + key + "_o";
out.opKind = "blank";
}
return out;
}
out.name = "f." + key;
if (FILTER_ROWS.multiTypes.indexOf(type) >= 0) {
out.kind = "multi";
if (listOps.length) {
out.op = "f." + key + "_o";
out.opKind = "list";
out.ops = listOps;
}
return out;
}
if (FILTER_ROWS.singleTypes.indexOf(type) >= 0) out.kind = "single";
else if (type === "Drop Down - Yes No") out.kind = "yesno";
else if (type === "Date Select") out.kind = "days";
else if (type === "Date Picker") out.kind = "date";
else return null;
if (blank && out.kind !== "single") {
out.op = "f." + key + "_o";
out.opKind = "blank";
}
return out;
}
const filterValues = (params, name) => {
const v = params && params[name];
return v ? Array.prototype.slice.call(v).filter((x) => typeof x === "string" && x !== "") : [];
};
const filterFirst = (params, name) => {
const v = filterValues(params, name);
return v.length ? v[0] : "";
};
function filterRowActive(ctl, params) {
if (ctl.kind === "range") return filterFirst(params, ctl.min) !== "" || filterFirst(params, ctl.max) !== "";
return filterValues(params, ctl.name).length > 0;
}
function activeFilterRows(defs, params) {
let n = 0;
const seen = [];
(defs || []).forEach((d) => {
const ctl = filterControl(d);
if (!ctl || seen.indexOf(ctl.key) >= 0) return;
seen.push(ctl.key);
if (filterRowActive(ctl, params)) n++;
});
return n;
}
const filterIdPart = (key) => key.replace(/[^A-Za-z0-9_-]/g, "-");
const choiceText = (c) => (typeof c.count === "number" && c.count > 0 ? c.label + " (" + c.count + ")" : c.label);
const pickSummary = (n) => (n > 0 ? fill(COPY.filterSelectedCount, { n: n }) : COPY.filterSelectOptions);
function choiceNode(ctl, c, checked) {
const a = { type: "checkbox", name: ctl.name, value: c.value, "data-rw-val": ctl.key };
if (checked) a.checked = "";
return fnode("label", { class: "rw-check" }, [fnode("input", a, []), fnode("span", {}, [choiceText(c)])]);
}
function filterMoreNode(ctl, params, id) {
if (!ctl.op) return null;
const current = filterFirst(params, ctl.op);
const body = [];
if (ctl.opKind === "list") {
const opts = [fnode("option", { value: "" }, [COPY.filterOpDefault])];
ctl.ops.forEach((o) => {
const a = { value: o };
if (current === o) a.selected = "";
opts.push(fnode("option", a, [o === "and" ? COPY.filterOpAnd : o === "or" ? COPY.filterOpOr : COPY.filterOpNot]));
});
body.push(fnode("label", { class: "rw-field__label", for: id + "-o" }, [COPY.filterOpLabel]));
body.push(fnode("select", { class: "rw-select", id: id + "-o", name: ctl.op, "data-rw-op": ctl.key }, opts));
} else {
const a = { type: "checkbox", name: ctl.op, value: "zbyes", "data-rw-op": ctl.key };
if (current === "zbyes") a.checked = "";
body.push(fnode("label", { class: "rw-check" }, [fnode("input", a, []), fnode("span", {}, [COPY.filterIncludeBlank])]));
}
const da = { class: "rw-field__more" };
if (current) da.open = "";
return fnode("details", da, [fnode("summary", { class: "rw-field__more-toggle" }, [COPY.filterMoreOptions]), fnode("div", { class: "rw-field__more-panel" }, body)]);
}
function filterSelectNode(id, name, key, current, first, choices) {
const opts = [fnode("option", { value: "" }, [first])];
let found = current === "";
choices.forEach((c) => {
const a = { value: c.value };
if (c.value === current) {
a.selected = "";
found = true;
}
opts.push(fnode("option", a, [c.text]));
});
if (!found) opts.push(fnode("option", { value: current, selected: "" }, [current]));
return fnode("select", { class: "rw-select", id: id, name: name, "data-rw-val": key }, opts);
}
function filterRowNode(ctl, params, idBase, choices) {
const id = idBase + "-f-" + filterIdPart(ctl.key);
const rowAttrs = (cls) => ({ class: cls, "data-rw-filter": ctl.key, "data-rw-filter-label": ctl.label.toLowerCase() });
const more = filterMoreNode(ctl, params, id);
const tail = more ? [more] : [];
if (ctl.kind === "range") {
const input = (which) =>
fnode(
"input",
{
class: "rw-input",
id: id + "-" + which,
name: which === "min" ? ctl.min : ctl.max,
type: "number",
inputmode: "decimal",
step: "any",
placeholder: which === "min" ? COPY.filterNoMin : COPY.filterNoMax,
"aria-label": fill(which === "min" ? COPY.filterMinOf : COPY.filterMaxOf, { label: ctl.label }),
value: filterFirst(params, which === "min" ? ctl.min : ctl.max),
"data-rw-val": ctl.key,
},
[],
);
return fnode("fieldset", rowAttrs("rw-field rw-field--range"), [fnode("legend", { class: "rw-field__label" }, [ctl.label]), fnode("div", { class: "rw-range" }, [input("min"), fnode("span", { class: "rw-range__sep", "aria-hidden": "true" }, []), input("max")])].concat(tail));
}
if (ctl.kind === "multi") {
const selected = filterValues(params, ctl.name);
const known = choices ? Array.prototype.slice.call(choices) : null;
const rows = [];
selected.forEach((v) => {
if (!known || !known.some((c) => c.value === v)) rows.push(choiceNode(ctl, { value: v, label: v }, true));
});
if (known) known.forEach((c) => rows.push(choiceNode(ctl, c, selected.indexOf(c.value) >= 0)));
const panel = [];
if (!known || known.length > FILTER_ROWS.narrowFrom) {
panel.push(fnode("input", { class: "rw-input rw-pick__narrow", type: "search", placeholder: COPY.filterNarrow, "aria-label": fill(COPY.filterNarrowOf, { label: ctl.label }), autocomplete: "off", "data-rw-pick-narrow": "" }, []));
}
panel.push(fnode("div", { class: "rw-pick__list", "data-rw-pick-list": "" }, rows));
if (!known) {
panel.push(fnode("input", { class: "rw-input rw-pick__free", type: "text", name: ctl.name, placeholder: COPY.filterTypeValue, "aria-label": fill(COPY.filterTypeValueOf, { label: ctl.label }), autocomplete: "off", "data-rw-pick-free": "", "data-rw-val": ctl.key }, []));
}
panel.push(fnode("p", { class: "rw-pick__status", role: "status", "data-rw-pick-status": "" }, []));
const da = { class: "rw-pick", "data-rw-pick": "multi", "data-rw-pick-key": ctl.key };
if (known) da["data-rw-pick-loaded"] = "";
return fnode("fieldset", rowAttrs("rw-field rw-field--pick"), [fnode("legend", { class: "rw-field__label" }, [ctl.label]), fnode("details", da, [fnode("summary", { class: "rw-pick__summary", "data-rw-pick-summary": "" }, [pickSummary(selected.length)]), fnode("div", { class: "rw-pick__panel" }, panel)])].concat(tail));
}
const current = filterFirst(params, ctl.name);
let control;
if (ctl.kind === "yesno") {
control = [filterSelectNode(id, ctl.name, ctl.key, current, COPY.filterAny, [{ value: ctl.yes, text: COPY.yes }, { value: ctl.no, text: COPY.no }])];
} else if (ctl.kind === "days") {
control = [filterSelectNode(id, ctl.name, ctl.key, current, COPY.filterAnyTime, FILTER_ROWS.days.map((d) => ({ value: String(d), text: d === 1 ? COPY.filterPastDay : fill(COPY.filterPastDays, { n: d }) })))];
} else if (ctl.kind === "period") {
control = [filterSelectNode(id, ctl.name, ctl.key, current, COPY.filterAnyTime, FILTER_ROWS.periods.map((p) => ({ value: p, text: p === "0d" ? COPY.filterToday : p === "1d" ? COPY.filterPastDay : fill(COPY.filterPastDays, { n: parseInt(p, 10) }) })))];
} else if (ctl.kind === "date") {
control = [fnode("input", { class: "rw-input", id: id, name: ctl.name, type: "date", value: current, "data-rw-val": ctl.key }, [])];
} else if (ctl.kind === "single" && choices) {
control = [filterSelectNode(id, ctl.name, ctl.key, current, COPY.filterSelectOption, Array.prototype.slice.call(choices).map((c) => ({ value: c.value, text: choiceText(c) })))];
} else if (ctl.kind === "single") {
control = [
fnode("input", { class: "rw-input", id: id, name: ctl.name, type: "text", value: current, placeholder: COPY.filterTypeValue, list: id + "-list", autocomplete: "off", "data-rw-pick": "single", "data-rw-pick-key": ctl.key, "data-rw-val": ctl.key }, []),
fnode("datalist", { id: id + "-list" }, []),
];
} else {
const all = filterValues(params, ctl.name);
control = [fnode("input", { class: "rw-input", id: id, name: ctl.name, type: "text", value: current, maxlength: "60", placeholder: COPY.filterKeywordsHint, "data-rw-val": ctl.key }, [])];
all.slice(1).forEach((v) => control.push(fnode("input", { type: "hidden", name: ctl.name, value: v }, [])));
}
return fnode("div", rowAttrs("rw-field"), [fnode("label", { class: "rw-field__label", for: id }, [ctl.label])].concat(control, tail));
}
function filterRowNodes(input) {
const params = input.params || {};
const sections = input.sections && input.sections.length ? input.sections : ["based", "advanced"];
const show = input.show && input.show.length ? input.show : null;
const hide = input.hide || [];
const options = input.options || {};
const based = [];
const advanced = [];
const names = [];
const seen = [];
let advancedActive = 0;
(input.defs || []).forEach((d) => {
const ctl = filterControl(d);
if (!ctl || seen.indexOf(ctl.key) >= 0) return;
seen.push(ctl.key);
if (sections.indexOf(ctl.section) < 0 || (show && show.indexOf(ctl.key) < 0) || hide.indexOf(ctl.key) >= 0) return;
const row = filterRowNode(ctl, params, input.idBase, Object.prototype.hasOwnProperty.call(options, ctl.key) ? options[ctl.key] : undefined);
if (ctl.kind === "range") names.push(ctl.min, ctl.max);
else names.push(ctl.name);
if (ctl.op) names.push(ctl.op);
if (ctl.section === "based") based.push(row);
else {
advanced.push(row);
if (filterRowActive(ctl, params)) advancedActive++;
}
});
const nodes = based.slice();
if (advanced.length) {
const da = { class: "rw-filters__section", "data-rw-filters-section": "advanced" };
if (advancedActive > 0) da.open = "";
const kids = [fnode("summary", { class: "rw-filters__section-title" }, [advancedActive > 0 ? fill(COPY.filterAdvancedCount, { n: advancedActive }) : COPY.filterAdvancedTitle])];
if (advanced.length > FILTER_ROWS.findFrom) {
kids.push(fnode("div", { class: "rw-field rw-filters__find" }, [fnode("input", { class: "rw-input", type: "search", placeholder: COPY.filterFind, "aria-label": COPY.filterFind, autocomplete: "off", "data-rw-filters-find": "" }, [])]));
}
nodes.push(fnode("details", da, kids.concat(advanced)));
}
return { nodes: nodes, names: names, active: activeFilterRows(input.defs, params) };
}
/** A row node as HTML, every text and attribute value escaped. */
const escapeHtml = (s) => String(s).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
const VOID_TAGS = ["input"];
function filterNodeHtml(n) {
if (typeof n === "string") return escapeHtml(n);
const attrs = Object.keys(n.a)
.map((k) => " " + k + '="' + escapeHtml(n.a[k]) + '"')
.join("");
if (VOID_TAGS.indexOf(n.t) >= 0) return "<" + n.t + attrs + ">";
return "<" + n.t + attrs + ">" + n.c.map(filterNodeHtml).join("") + "</" + n.t + ">";
}
/** The page's URL parameters as { name: [values] }, the shape filterRowNodes reads. */
function filterParamsFromUrl(search) {
const out = {};
new URLSearchParams(search || "").forEach((v, k) => {
if (v === "") return;
(out[k] = out[k] || []).push(v);
});
return out;
}
// src/filters-enhance.tsx filterOptionsUrl, and the filter list's URL for a page that builds its rows in the browser.
function filterOptionsUrl(baseUrl, key, filterKey, text) {
const base = (baseUrl || DEFAULT_BASE).replace(/\/+$/, "");
const p = new URLSearchParams({ filterKey: filterKey });
if (key) p.set("key", key);
if (text) p.set("filterByValue", text.slice(0, 60));
return base + "/filters/options?" + p.toString();
}
const filtersUrl = (baseUrl, key) => (baseUrl || DEFAULT_BASE).replace(/\/+$/, "") + "/filters" + (key ? "?" + new URLSearchParams({ key: key }).toString() : "");
// src/internal/photo.ts dim, safeUrl and imgProps (as attribute names).
function dim(v, d) {
return typeof v === "number" && isFinite(v) && v > 0 && v < 10000 ? Math.round(v) : d;
}
function safeUrl(u) {
if (!u) return null;
try {
const url = new URL(u, "https://example.invalid");
return url.protocol === "https:" || url.protocol === "http:" ? u : null;
} catch (e) {
return null;
}
}
function imgAttrs(photo, o) {
const src = safeUrl(photo && photo.url);
if (!src) return null;
const out = {
src: src,
width: String(dim(photo.width, 800)),
height: String(dim(photo.height, 600)),
alt: photo.alt && photo.alt.trim() ? photo.alt : o.fallbackAlt,
loading: o.priority ? "eager" : "lazy",
decoding: "async",
};
let host = "";
try {
host = new URL(src).host;
} catch (e) {
host = "";
}
if (host === PHOTO_CDN_HOST) {
out.srcset = PHOTO_WIDTHS.map((w) => {
const url = new URL(src);
url.searchParams.set("width", String(w));
return url.toString() + " " + w + "w";
}).join(", ");
out.sizes = o.sizes || "100vw";
}
if (o.priority) out.fetchpriority = "high";
return out;
}
const stepIndex = (i, d, count) => (count ? (i + d + count) % count : 0);
/** A touch swipe: 50px or more across, more across than up or down. 1 = next, -1 = previous, 0 = none. */
const swipeStep = (dx, dy) => (Math.abs(dx) >= 50 && Math.abs(dx) > Math.abs(dy) ? (dx < 0 ? 1 : -1) : 0);
// src/internal/campaign.ts
function emptyCampaign() {
const out = {};
CAMPAIGN_KEYS.forEach((k) => (out[k[0]] = null));
return out;
}
function campaignFromUrl(url) {
const out = emptyCampaign();
let q;
try {
q = new URL(url, "https://example.invalid").searchParams;
} catch (e) {
return out;
}
CAMPAIGN_KEYS.forEach((k) => {
const v = q.get(k[1]);
if (v && v.trim()) out[k[0]] = v.trim().slice(0, 200);
});
return out;
}
const hasCampaign = (c) => CAMPAIGN_KEYS.some((k) => c[k[0]] !== null);
/** The referrer when it is another site (a page of this site is not where the visit came from). */
function outsideReferrer(referrer, here) {
if (!referrer) return null;
try {
const r = new URL(referrer);
if (!/^https?:$/.test(r.protocol)) return null;
return r.origin === new URL(here).origin ? null : r.toString().slice(0, 1000);
} catch (e) {
return null;
}
}
function touchFrom(href, referrer, now) {
const ids = campaignFromUrl(href);
const ref = outsideReferrer(referrer, href);
if (!hasCampaign(ids) && !ref) return null;
return Object.assign(ids, { landingPage: href.slice(0, 1000), referrer: ref, at: now.toISOString() });
}
function storeJson(storage, key, value, onlyIfEmpty) {
try {
const s = storage();
if (onlyIfEmpty && s.getItem(key)) return;
s.setItem(key, JSON.stringify(value));
} catch (e) {
/* storage blocked: the current page still answers */
}
}
function storedJson(storage, key) {
try {
return readJson(storage().getItem(key), null);
} catch (e) {
return null;
}
}
function rememberCampaign(win) {
const href = win.location.href;
const referrer = (win.document && win.document.referrer) || null;
const session = () => win.sessionStorage;
const local = () => win.localStorage;
const here = campaignFromUrl(href);
if (hasCampaign(here)) storeJson(session, CAMPAIGN_STORAGE_KEY, here, true);
storeJson(session, CAMPAIGN_TOUCH_KEYS.landing, { landingPage: href.slice(0, 1000), referrer: outsideReferrer(referrer, href) }, true);
const t = touchFrom(href, referrer, new Date());
if (t) {
storeJson(local, CAMPAIGN_TOUCH_KEYS.first, t, true);
const last = storedJson(local, CAMPAIGN_TOUCH_KEYS.last);
if (!last || last.landingPage !== t.landingPage || last.referrer !== t.referrer) storeJson(local, CAMPAIGN_TOUCH_KEYS.last, t, false);
}
}
function currentCampaign(win) {
const here = campaignFromUrl(win.location.href);
if (hasCampaign(here)) return here;
try {
const parsed = readJson(win.sessionStorage.getItem(CAMPAIGN_STORAGE_KEY), null);
if (!parsed) return here;
const out = emptyCampaign();
CAMPAIGN_KEYS.forEach((k) => {
const v = parsed[k[0]];
if (typeof v === "string" && v) out[k[0]] = v.slice(0, 200);
});
return out;
} catch (e) {
return here;
}
}
const textOrNull = (v, max) => (typeof v === "string" && v ? v.slice(0, max) : null);
function storedTouch(win, key) {
const t = storedJson(() => win.localStorage, key);
if (!t || typeof t !== "object") return null;
const out = Object.assign(emptyCampaign(), { landingPage: textOrNull(t.landingPage, 1000), referrer: textOrNull(t.referrer, 1000), at: textOrNull(t.at, 40) });
CAMPAIGN_KEYS.forEach((k) => (out[k[0]] = textOrNull(t[k[0]], 200)));
return out;
}
/** src/internal/campaign.ts currentAttribution: this visit's ids, landing page and outside referrer, and the first and last touch. */
function currentAttribution(win) {
const landing = storedJson(() => win.sessionStorage, CAMPAIGN_TOUCH_KEYS.landing);
const ref = landing ? textOrNull(landing.referrer, 1000) : null;
return Object.assign(currentCampaign(win), {
referrer: ref != null ? ref : outsideReferrer((win.document && win.document.referrer) || null, win.location.href),
landingPage: landing ? textOrNull(landing.landingPage, 1000) : null,
firstTouch: storedTouch(win, CAMPAIGN_TOUCH_KEYS.first),
lastTouch: storedTouch(win, CAMPAIGN_TOUCH_KEYS.last),
});
}
// src/internal/lead.ts buildLead; `listing` is the form's data-rw-lead-listing ({ id, mlsNumber, url }).
const clean = (s, max) => String(s || "").replace(/\s+/g, " ").trim().slice(0, max);
const orNull = (s) => (s ? s : null);
function buildLead(i) {
const f = i.fields;
const lead = {
kind: i.kind,
firstName: clean(f.firstName, 80),
lastName: clean(f.lastName, 80),
email: clean(f.email, 254).toLowerCase(),
phone: orNull(clean(f.phone, 40)),
message: orNull(String(f.message || "").trim().slice(0, 2000)),
tour: i.kind === "tour" ? { date: orNull(clean(f.tourDate, 10)), time: orNull(clean(f.tourTime, 40)) } : null,
listing: i.listing ? { id: i.listing.id, mlsNumber: i.listing.mlsNumber, url: i.listing.url } : null,
consent: { contact: f.consentContact === true, alerts: f.consentAlerts === true, text: clean(i.consentText, 2000) },
page: { url: i.pageUrl, referrer: i.referrer || null },
attribution: Object.assign({}, i.campaign, { formPage: i.pageUrl || null }),
};
if (f.website) lead.website = String(f.website).slice(0, 200);
const ag = i.agent;
const agent = ag ? { id: orNull(clean(String(ag.id != null ? ag.id : ""), 100)), email: orNull(clean(ag.email || "", 254)), name: orNull(clean(ag.name || "", 200)) } : null;
if (agent && (agent.id || agent.email || agent.name)) lead.agent = agent;
if (i.leadType === "buyer" || i.leadType === "seller" || i.leadType === "both") lead.leadType = i.leadType;
return lead;
}
// src/internal/ga4-payload.ts generateLeadParams, src/ga4.tsx pushDataLayer.
function generateLeadParams(lead, listing) {
const out = { lead_source: lead.kind, form_name: lead.kind + "_form" };
if (listing) {
out.listing_id = listing.mlsNumber != null ? listing.mlsNumber : listing.id;
out.listing_name = listing.name;
if (listing.price !== null && listing.price !== undefined) out.listing_price = listing.price;
}
const a = lead.attribution;
[["utm_source", a.utmSource], ["utm_medium", a.utmMedium], ["utm_campaign", a.utmCampaign], ["utm_term", a.utmTerm], ["utm_content", a.utmContent], ["gclid", a.gclid], ["fbclid", a.fbclid]].forEach((p) => {
if (p[1]) out[p[0]] = p[1];
});
return out;
}
function pushDataLayer(win, event, params) {
win.dataLayer = win.dataLayer || [];
if ("ecommerce" in params) win.dataLayer.push({ ecommerce: null });
win.dataLayer.push(Object.assign({ event: event }, params));
}
// src/internal/pins.ts pinsBox, outlinePaths, worldPixel, clusterPins and outlineCenter.
function pinsBox(pins) {
if (!pins.length) return null;
const box = { south: 90, west: 180, north: -90, east: -180 };
pins.forEach((p) => {
box.south = Math.min(box.south, p.lat);
box.north = Math.max(box.north, p.lat);
box.west = Math.min(box.west, p.lng);
box.east = Math.max(box.east, p.lng);
});
return box;
}
function outlinePaths(geometry) {
const polys = geometry.type === "Polygon" ? [geometry.coordinates] : geometry.coordinates;
const out = [];
polys.forEach((poly) =>
poly.forEach((ring) => {
const path = ring.filter((pt) => pt.length >= 2 && isFinite(pt[0]) && isFinite(pt[1])).map((pt) => ({ lat: pt[1], lng: pt[0] }));
if (path.length >= 3) out.push(path);
}),
);
return out;
}
function worldPixel(lat, lng, zoom) {
const scale = 256 * Math.pow(2, zoom);
const s = Math.min(Math.max(Math.sin((lat * Math.PI) / 180), -0.9999), 0.9999);
return { x: ((lng + 180) / 360) * scale, y: (0.5 - Math.log((1 + s) / (1 - s)) / (4 * Math.PI)) * scale };
}
function clusterPins(pins, zoom) {
const z = Math.round(isFinite(zoom) ? zoom : 0);
if (z > CLUSTER.maxZoom) return pins.map((pin) => ({ kind: "pin", pin: pin }));
const cells = [];
const byKey = {};
pins.forEach((p) => {
const w = worldPixel(p.lat, p.lng, z);
const cx = Math.floor(w.x / CLUSTER.radius);
const cy = Math.floor(w.y / CLUSTER.radius);
const key = cx + ":" + cy;
if (byKey[key]) byKey[key].pins.push(p);
else cells.push((byKey[key] = { cx: cx, cy: cy, pins: [p] }));
});
const out = [];
cells.forEach((cell) => {
if (cell.pins.length < Math.max(2, CLUSTER.minPoints)) {
cell.pins.forEach((pin) => out.push({ kind: "pin", pin: pin }));
return;
}
const n = cell.pins.length;
const lat = cell.pins.reduce((s, p) => s + p.lat, 0) / n;
const lng = cell.pins.reduce((s, p) => s + p.lng, 0) / n;
out.push({ kind: "cluster", id: "c" + z + ":" + cell.cx + ":" + cell.cy, count: n, lat: lat, lng: lng, bounds: pinsBox(cell.pins), ids: cell.pins.map((p) => p.id) });
});
return out;
}
function outlineCenter(geometry) {
const pts = [].concat.apply([], outlinePaths(geometry));
if (!pts.length) return null;
const b = pinsBox(pts);
return { lat: (b.south + b.north) / 2, lng: (b.west + b.east) / 2 };
}
const mapsScriptUrl = (key) => "https://maps.googleapis.com/maps/api/js?" + new URLSearchParams({ key: key, v: "weekly", loading: "async", callback: "__rwMapsReady" }).toString();
// src/internal/map-urls.ts: the map's navigation and drawing math.
const EARTH_RADIUS_M = 6371008.8;
const fix6 = (n) => {
const s = (Math.round(n * 1e6) / 1e6).toFixed(6);
return s === "-0.000000" ? "0.000000" : s;
};
const clampLat = (n) => Math.max(-90, Math.min(90, n));
const wrapLng = (n) => ((((n + 180) % 360) + 360) % 360) - 180;
function bboxParam(b) {
const v = [b.south, b.west, b.north, b.east];
if (!v.every((x) => typeof x === "number" && isFinite(x))) return null;
const south = clampLat(b.south);
const north = clampLat(b.north);
const west = Math.max(-180, b.west);
const east = Math.min(180, b.east);
if (south >= north || west >= east) return null;
return [south, west, north, east].map(fix6).join(",");
}
function polygonParam(points) {
const pts = points
.filter((p) => p && isFinite(p.lat) && isFinite(p.lng))
.filter((p, i, list) => i === 0 || fix6(p.lat) !== fix6(list[i - 1].lat) || fix6(p.lng) !== fix6(list[i - 1].lng));
if (pts.length > 1) {
const a = pts[0];
const z = pts[pts.length - 1];
if (fix6(a.lat) === fix6(z.lat) && fix6(a.lng) === fix6(z.lng)) pts.pop();
}
if (pts.length < 3 || pts.length > 200) return null;
return pts.map((p) => fix6(clampLat(p.lat)) + "," + fix6(wrapLng(p.lng))).join(",");
}
function parsePolygonParam(raw) {
const parts = raw.split(",").map((s) => Number(s.trim()));
if (parts.length < 6 || parts.length % 2 !== 0 || !parts.every((n) => isFinite(n))) return [];
const out = [];
for (let i = 0; i < parts.length; i += 2) out.push({ lat: parts[i], lng: parts[i + 1] });
return out;
}
function distanceMetres(a, b) {
const r = Math.PI / 180;
const dLat = (b.lat - a.lat) * r;
const dLng = (b.lng - a.lng) * r;
const h = Math.pow(Math.sin(dLat / 2), 2) + Math.cos(a.lat * r) * Math.cos(b.lat * r) * Math.pow(Math.sin(dLng / 2), 2);
return 2 * EARTH_RADIUS_M * Math.asin(Math.min(1, Math.sqrt(h)));
}
function circlePolygon(center, radiusMetres) {
if (!isFinite(radiusMetres) || radiusMetres < 5) return [];
const n = 32;
const r = Math.PI / 180;
const lat1 = center.lat * r;
const lng1 = center.lng * r;
const d = radiusMetres / EARTH_RADIUS_M;
const out = [];
for (let i = 0; i < n; i++) {
const brng = ((2 * Math.PI) / n) * i;
const lat2 = Math.asin(Math.sin(lat1) * Math.cos(d) + Math.cos(lat1) * Math.sin(d) * Math.cos(brng));
const lng2 = lng1 + Math.atan2(Math.sin(brng) * Math.sin(d) * Math.cos(lat1), Math.cos(d) - Math.sin(lat1) * Math.sin(lat2));
out.push({ lat: lat2 / r, lng: wrapLng(lng2 / r) });
}
return out;
}
function closesRing(points, p, view) {
if (points.length < 3) return false;
const tol = Math.max(view.north - view.south, view.east - view.west) * 0.02;
return Math.abs(points[0].lat - p.lat) <= tol && Math.abs(points[0].lng - p.lng) <= tol;
}
function splitHref(href) {
const hashAt = href.indexOf("#");
const hash = hashAt >= 0 ? href.slice(hashAt) : "";
const noHash = hashAt >= 0 ? href.slice(0, hashAt) : href;
const q = noHash.indexOf("?");
return { head: q >= 0 ? noHash.slice(0, q) : noHash, query: new URLSearchParams(q >= 0 ? noHash.slice(q + 1) : ""), hash: hash };
}
function joinHref(s) {
const q = s.query.toString();
return s.head + (q ? "?" + q : "") + s.hash;
}
function areaHref(href, name, value) {
if (!value) return null;
const s = splitHref(href);
["bbox", "polygon", "page"].forEach((k) => s.query.delete(k));
s.query.set(name, value);
return joinHref(s);
}
const bboxHref = (href, b) => areaHref(href, "bbox", bboxParam(b));
const polygonHref = (href, points) => areaHref(href, "polygon", polygonParam(points));
function clearAreaHref(href) {
const s = splitHref(href);
s.query.delete("polygon");
s.query.delete("page");
return joinHref(s);
}
const polygonsOf = (href) => splitHref(href).query.getAll("polygon").map(parsePolygonParam).filter((p) => p.length >= 3);
// src/internal/share-links.ts
function shareUrlAbsolute(url, origin) {
const u = (url || "").trim();
if (!u) return origin || "";
try {
return new URL(u, origin || undefined).href;
} catch (e) {
return u;
}
}
const facebookShareUrl = (url) => "https://www.facebook.com/sharer/sharer.php?u=" + encodeURIComponent(url);
const whatsAppShareUrl = (text) => "https://wa.me/?text=" + encodeURIComponent(text);
const mailtoShareUrl = (subject, body) => "mailto:?subject=" + encodeURIComponent(subject) + "&body=" + encodeURIComponent(body);
// src/internal/name.ts
function splitFullName(name) {
const words = String(name || "").replace(/\s+/g, " ").trim().split(" ").filter(Boolean);
if (words.length < 2) return null;
return { firstName: words[0], lastName: words.slice(1).join(" ") };
}
// src/internal/tour-dates.ts: the 16 days, the times of day and today's parts that have passed.
const pad2 = (n) => (n < 10 ? "0" : "") + n;
const PART_LABEL = { anytime: COPY.tourAnytime, morning: COPY.tourMorning, afternoon: COPY.tourAfternoon, evening: COPY.tourEvening };
const CONCRETE = ["morning", "afternoon", "evening"];
function zonedNow(now, timeZone) {
const opts = { year: "numeric", month: "numeric", day: "numeric", hour: "numeric", hourCycle: "h23" };
let f;
try {
f = new Intl.DateTimeFormat("en-US", timeZone ? Object.assign({}, opts, { timeZone: timeZone }) : opts);
} catch (e) {
f = new Intl.DateTimeFormat("en-US", opts);
}
const parts = {};
f.formatToParts(now).forEach((p) => {
if (p.type !== "literal") parts[p.type] = Number(p.value);
});
return { y: parts.year, m: parts.month, d: parts.day, hour: parts.hour % 24 };
}
const utcNoon = (iso) => {
const p = iso.split("-").map(Number);
return new Date(Date.UTC(p[0], p[1] - 1, p[2], 12));
};
const utcFormat = (o) => new Intl.DateTimeFormat("en-US", Object.assign({}, o, { timeZone: "UTC" }));
function tourDays(now, timeZone) {
const z = zonedNow(now, timeZone);
const start = utcNoon(z.y + "-" + pad2(z.m) + "-" + pad2(z.d)).getTime();
const weekday = utcFormat({ weekday: "short" });
const month = utcFormat({ month: "short" });
const out = [];
for (let i = 0; i < TOUR.days; i++) {
const date = new Date(start + i * 864e5);
out.push({ iso: date.getUTCFullYear() + "-" + pad2(date.getUTCMonth() + 1) + "-" + pad2(date.getUTCDate()), weekday: weekday.format(date), day: String(date.getUTCDate()), month: month.format(date) });
}
return out;
}
function disabledParts(dayIso, now, timeZone) {
const z = zonedNow(now, timeZone);
if (dayIso !== z.y + "-" + pad2(z.m) + "-" + pad2(z.d)) return [];
const ended = CONCRETE.filter((p) => z.hour >= TOUR.partEnd[p]);
return ended.length === CONCRETE.length ? ["anytime"].concat(ended) : ended;
}
function toggleDayPart(current, part, disabled) {
if ((disabled || []).indexOf(part) >= 0) return current.slice();
if (part === "anytime") return current.indexOf("anytime") >= 0 ? [] : ["anytime"];
const picked = current.filter((p) => p !== "anytime");
const at = picked.indexOf(part);
if (at >= 0) picked.splice(at, 1);
else picked.push(part);
if (CONCRETE.every((p) => picked.indexOf(p) >= 0)) return ["anytime"];
return TOUR.parts.filter((p) => picked.indexOf(p) >= 0);
}
const partsValue = (parts) => TOUR.parts.filter((p) => parts.indexOf(p) >= 0).join(", ");
const partsLabel = (parts) => TOUR.parts.filter((p) => parts.indexOf(p) >= 0).map((p) => PART_LABEL[p]).join(", ");
const tourDateLong = (iso) => (/^\d{4}-\d{2}-\d{2}$/.test(iso) ? utcFormat({ weekday: "long", month: "long", day: "numeric" }).format(utcNoon(iso)) : "");
function formatUsPhone(s) {
const typed = String(s || "").trim();
if (/^\+(?!1)/.test(typed)) return typed;
let digits = typed.replace(/\D/g, "");
if (digits.length === 11 && digits.charAt(0) === "1") digits = digits.slice(1);
return digits.length === 10 ? digits.slice(0, 3) + "-" + digits.slice(3, 6) + "-" + digits.slice(6) : typed;
}
// src/internal/mortgage-query.ts and src/mortgage.tsx: the request and how an answer reads. The
// script never computes a payment; every figure it prints comes from GET /v1/mortgage/estimate.
const MORTGAGE_QUERY_ORDER = ["price", "downPayment", "downPaymentPercent", "loanType", "termYears", "rateType", "amortizationYears", "creditScore", "rate", "state", "zip", "hoaMonthly", "propertyTaxAnnual", "insuranceAnnual"];
const CA_PROVINCES = ["AB", "BC", "MB", "NB", "NL", "NS", "NT", "NU", "ON", "PE", "QC", "SK", "YT"];
const countryOf = (state) => (CA_PROVINCES.indexOf(String(state || "").toUpperCase()) >= 0 ? "CA" : "US");
function mortgageQueryString(q) {
const out = new URLSearchParams();
MORTGAGE_QUERY_ORDER.forEach((name) => {
const v = q[name];
if (v === undefined || v === null) return;
if (typeof v === "number") {
if (isFinite(v)) out.append(name, String(v));
} else if (v !== "") out.append(name, v);
});
return out.toString();
}
function mortgageUrl(baseUrl, key, q) {
const base = (baseUrl || MORTGAGE_BASE).replace(/\/+$/, "");
const qs = mortgageQueryString(q);
return base + "/mortgage/estimate?" + qs + (key ? (qs ? "&" : "") + "key=" + encodeURIComponent(key) : "");
}
function termParams(value, country) {
const m = /^(\d{1,2})(-arm)?$/.exec(value);
if (!m) return { termYears: null, rateType: null };
return { termYears: Number(m[1]), rateType: country === "US" && m[2] ? "arm" : null };
}
const mortgageMoney = (n) => "$" + Math.round(n).toLocaleString("en-US");
const pctText = (n) => Math.round(n * 100) / 100 + "%";
function rateDate(iso) {
const d = new Date(iso.slice(0, 10) + "T12:00:00Z");
return isNaN(d.getTime()) ? iso : d.toLocaleDateString("en-US", { month: "long", day: "numeric", year: "numeric", timeZone: "UTC" });
}
function donutArcs(m, c) {
const total = m.total || 1;
let offset = 0;
return MORTGAGE_LINES.map((line) => {
const len = m[line] > 0 ? (m[line] / total) * c : 0;
const arc = { line: line, len: len, offset: offset };
offset += len;
return arc;
});
}
const parseMoney = (v) => {
const t = String(v).replace(/[$,\s]/g, "");
if (t === "") return null;
const n = Number(t);
return isFinite(n) && n >= 0 ? n : null;
};
// ---------------------------------------------------------------------------------------------
// DOM helpers
// ---------------------------------------------------------------------------------------------
const all = (scope, selector) => Array.prototype.slice.call(scope.querySelectorAll(selector));
const one = (scope, selector) => scope.querySelector(selector);
/** True the first time a widget is seen, so enhance() can run again over the same page. */
function claim(el, name) {
const done = (el.__rwBound = el.__rwBound || {});
if (done[name]) return false;
done[name] = true;
return true;
}
function element(doc, tag, attrs, text) {
const el = doc.createElement(tag);
Object.keys(attrs).forEach((k) => el.setAttribute(k, attrs[k]));
if (text !== undefined) el.textContent = text;
return el;
}
function setImg(img, attrs) {
["srcset", "sizes", "fetchpriority"].forEach((k) => img.removeAttribute(k));
Object.keys(attrs).forEach((k) => img.setAttribute(k, attrs[k]));
}
function warn(win, message) {
if (win.console && win.console.error) win.console.error("ruuster-idx.js: " + message);
}
/** The nearest element from `el` up (itself included) that carries `attr`, or null. */
function up(el, attr) {
for (let n = el; n && n.getAttribute; n = n.parentNode) if (n.hasAttribute(attr)) return n;
return null;
}
const within = (outer, el) => {
for (let n = el; n; n = n.parentNode) if (n === outer) return true;
return false;
};
// An icon from src/internal/icons.generated.ts, drawn as the Icon component draws it.
const ICON = (name) => ({ name: name, viewBox: ICON_DEFS[name].viewBox, body: ICON_DEFS[name].body });
function setIcon(svg, def) {
svg.setAttribute("viewBox", def.viewBox);
svg.setAttribute("data-rw-icon", def.name);
svg.innerHTML = def.body;
}
function iconSvg(doc, def, width, height, cls) {
const svg = doc.createElementNS(SVG_NS, "svg");
const attrs = { class: cls ? "rw-icon " + cls : "rw-icon", width: String(width), height: String(height), focusable: "false", "aria-hidden": "true" };
Object.keys(attrs).forEach((k) => svg.setAttribute(k, attrs[k]));
setIcon(svg, def);
return svg;
}
/** A button or link's icon and text: the first <svg> and the text after it. */
function setIconText(el, def, text) {
const svg = one(el, "svg");
if (svg && def) setIcon(svg, def);
const nodes = Array.prototype.slice.call(el.childNodes);
nodes.forEach((n) => {
if (n !== svg) el.removeChild(n);
});
if (text !== undefined) el.appendChild(el.ownerDocument.createTextNode(text));
}
function openDialog(d) {
if (d.open) return;
if (typeof d.showModal === "function") d.showModal();
else d.setAttribute("open", "");
}
function closeDialog(d) {
if (!d.open) return;
if (typeof d.close === "function") d.close();
else d.removeAttribute("open");
}
/** Keeps the page behind a dialog from scrolling; the second call gives the page its scroll back. */
function scrollLock(win) {
const style = win.document.documentElement && win.document.documentElement.style;
let saved = null;
return (on) => {
if (!style) return;
if (on && saved === null) {
saved = style.overflow || "";
style.overflow = "hidden";
} else if (!on && saved !== null) {
style.overflow = saved;
saved = null;
}
};
}
function focusEl(el) {
if (el && typeof el.focus === "function") el.focus();
}
function later(win, fn) {
win.setTimeout(fn, 0);
}
/** POSTs JSON; resolves true on a 2xx. */
function postJson(win, action, body) {
return win
.fetch(action, { method: "POST", headers: { "Content-Type": "application/json", Accept: "application/json" }, body: JSON.stringify(body) })
.then((res) => res.ok, () => false);
}
// ---------------------------------------------------------------------------------------------
// Widgets (static/HOOKS.md)
// ---------------------------------------------------------------------------------------------
// src/card-gallery.tsx: the panel it shows for a photo with no usable URL.
function noPhotoPanel(doc) {
const panel = element(doc, "div", { class: "rw-card__nophoto", role: "img", "aria-label": COPY.noPhoto });
panel.appendChild(iconSvg(doc, ICON("listing-no-image"), 40, 40, "rw-card__nophoto-icon"));
panel.appendChild(element(doc, "span", { class: "rw-card__nophoto-text" }, COPY.noPhotoShort));
return panel;
}
// src/card-gallery.tsx
function cardGallery(win, el) {
const doc = win.document;
const photos = readJson(el.getAttribute("data-rw-photos"), []);
let slot = one(el, "[data-rw-gallery-photo]") || one(el, ".rw-card__nophoto");
if (photos.length < 2 || !slot) return;
const fallbackAlt = el.getAttribute("data-rw-photo-alt") || "";
const priority = slot.getAttribute("fetchpriority") === "high";
const dots = all(el, "[data-rw-gallery-dot]");
let index = 0;
const step = (d) => {
index = stepIndex(index, d, photos.length);
const attrs = imgAttrs(photos[index], { priority: priority && index === 0, sizes: CARD_SIZES, fallbackAlt: fallbackAlt });
const isImg = slot.hasAttribute("data-rw-gallery-photo");
if (attrs && isImg) setImg(slot, attrs);
else if (attrs || isImg) {
// A photo with no usable URL shows the no-photo panel, as CardGallery does; the next good one brings the photo back.
const next = attrs ? element(doc, "img", Object.assign({ class: "rw-card__photo" }, attrs, { "data-rw-gallery-photo": "" })) : noPhotoPanel(doc);
slot.parentNode.replaceChild(next, slot);
slot = next;
}
dots.forEach((dot, i) => dot.classList.toggle("rw-card__dot--on", i === index % dots.length));
};
const prev = one(el, "[data-rw-gallery-prev]");
const next = one(el, "[data-rw-gallery-next]");
if (prev) prev.addEventListener("click", () => step(-1));
if (next) next.addEventListener("click", () => step(1));
let touch = null;
el.addEventListener("touchstart", (e) => {
const t = e.touches[0];
touch = t ? { x: t.clientX, y: t.clientY } : null;
});
el.addEventListener("touchend", (e) => {
const s = touch;
const t = e.changedTouches[0];
touch = null;
const d = s && t ? swipeStep(t.clientX - s.x, t.clientY - s.y) : 0;
if (d) step(d);
});
}
// src/lightbox.tsx Lightbox and LightboxFigure: a <dialog data-rw-lightbox> over `photos`.
function lightbox(win, dialog, photos, fallbackAlt) {
const doc = win.document;
let open = null;
let opener = null;
const figure = () => {
const old = one(dialog, "[data-rw-lightbox-figure]");
if (old) old.parentNode.removeChild(old);
if (open === null) return;
const attrs = imgAttrs(photos[open], { sizes: "100vw", fallbackAlt: fallbackAlt });
if (!attrs) return;
attrs.loading = "eager";
const fig = element(doc, "figure", { class: "rw-lightbox__figure", "data-rw-lightbox-figure": "" });
fig.appendChild(element(doc, "img", attrs));
fig.appendChild(element(doc, "figcaption", { class: "rw-lightbox__count" }, open + 1 + " " + COPY.photoOf + " " + photos.length));
dialog.insertBefore(fig, dialog.firstChild);
};
const show = (i, from) => {
opener = from;
open = i;
figure();
openDialog(dialog);
};
const close = () => {
if (open === null) return;
open = null;
figure();
closeDialog(dialog);
focusEl(opener);
};
const step = (d) => {
if (open === null || photos.length < 2) return;
open = stepIndex(open, d, photos.length);
figure();
};
const on = (selector, fn) => {
const b = one(dialog, selector);
if (b) b.addEventListener("click", fn);
};
on("[data-rw-lightbox-close]", close);
on("[data-rw-lightbox-prev]", () => step(-1));
on("[data-rw-lightbox-next]", () => step(1));
dialog.addEventListener("close", (e) => {
if (e.target === dialog) close();
});
dialog.addEventListener("cancel", (e) => {
if (e.target !== dialog) return;
e.preventDefault();
close();
});
dialog.addEventListener("keydown", (e) => {
if (e.key === "ArrowRight") step(1);
if (e.key === "ArrowLeft") step(-1);
});
let touchX = null;
dialog.addEventListener("touchstart", (e) => {
touchX = e.touches[0] ? e.touches[0].clientX : null;
});
dialog.addEventListener("touchend", (e) => {
const s = touchX;
touchX = null;
const t = e.changedTouches[0];
const d = s !== null && t ? swipeStep(t.clientX - s, 0) : 0;
if (d) step(d);
});
return { show: show, close: close, isOpen: () => open !== null };
}
// src/show-more.tsx ShowMore and ShowMoreButton
function showMore(win, p) {
if (!(p.scrollHeight > p.clientHeight + 1)) return;
let open = false;
const button = element(win.document, "button", { type: "button", class: "rw-detail__more", "aria-expanded": "false", "data-rw-more": "" }, COPY.showMore);
button.addEventListener("click", () => {
open = !open;
p.classList.toggle("rw-detail__description--clamped", !open);
button.setAttribute("aria-expanded", String(open));
button.textContent = open ? COPY.showLess : COPY.showMore;
});
p.parentNode.insertBefore(button, p.nextSibling);
}
// src/search-box.tsx SearchBox and SuggestGroups
function searchBox(win, form) {
const doc = win.document;
const input = one(form, "[data-rw-search-input]");
const list = one(form, "[data-rw-search-list]");
const status = one(form, "[data-rw-search-status]");
if (!input || !list) return;
form.addEventListener("submit", (e) => e.preventDefault());
// No key in the page (the default): the browser calls your own server route (data-rw-base-url)
// or the Listings API, which recognizes your approved website address.
const key = form.getAttribute("data-rw-key") || "";
if (looksSecret(key)) {
warn(win, "data-rw-key holds a secret key. A page never carries a key, so the search box sends nothing. Remove it and replace the secret key now.");
return;
}
const base = form.getAttribute("data-rw-base-url") || DEFAULT_BASE;
const groupsAttr = form.getAttribute("data-rw-groups") || "";
const groups = groupsAttr ? groupsAttr.split(",") : undefined;
const minChars = Number(form.getAttribute("data-rw-min-chars")) || 3;
const debounceMs = Number(form.getAttribute("data-rw-debounce-ms") || 300);
const action = form.getAttribute("action") || "";
const idBase = (list.id || "rw-search").replace(/-list$/, "");
let rows = [];
let open = false;
let active = -1;
let timer = null;
let ctrl = null;
let empty = false;
const setStatus = (text) => {
if (status) status.textContent = text;
};
// A spinner in the box from the first keystroke that will search until the answer arrives.
const setLoading = (on) => {
if (on) form.setAttribute("data-rw-loading", "");
else form.removeAttribute("data-rw-loading");
};
const paint = () => {
const expanded = open && rows.length > 0;
list.hidden = !(expanded || (open && empty));
input.setAttribute("aria-expanded", String(expanded));
if (expanded && active >= 0) input.setAttribute("aria-activedescendant", idBase + "-opt-" + active);
else input.removeAttribute("aria-activedescendant");
all(list, "[data-rw-search-option]").forEach((opt) => {
const on = Number(opt.getAttribute("data-rw-search-option")) === active;
opt.setAttribute("aria-selected", String(on));
opt.className = on ? "rw-search__option rw-search__option--active" : "rw-search__option";
});
};
const fillMenu = () => {
list.textContent = "";
if (empty) list.appendChild(element(doc, "div", { role: "presentation", class: "rw-search__empty" }, COPY.searchNoResults));
groupRows(rows).forEach((g) => {
const headingId = idBase + "-g-" + g.group;
const group = element(doc, "div", { role: "group", "aria-labelledby": headingId, class: "rw-search__group" });
group.appendChild(element(doc, "div", { role: "presentation", id: headingId, class: "rw-search__heading" }, g.label));
g.rows.forEach((r) => {
const opt = element(doc, "div", { id: idBase + "-opt-" + r.index, role: "option", "aria-selected": "false", class: "rw-search__option", "data-rw-search-option": String(r.index) }, r.row.label);
opt.addEventListener("mousedown", (e) => e.preventDefault());
opt.addEventListener("mouseenter", () => {
active = r.index;
paint();
});
opt.addEventListener("click", () => pick(r.row));
group.appendChild(opt);
});
list.appendChild(group);
});
};
const pick = (row) => {
pushDataLayer(win, "search", { search_term: row.label });
open = false;
paint();
const target = whereHref(action, row.where);
if (safeUrl(target)) win.location.assign(target);
};
const search = () => {
const q = input.value.trim();
if (ctrl) ctrl.abort();
if (timer !== null) win.clearTimeout(timer);
timer = null;
if (q.length < minChars) {
rows = [];
active = -1;
empty = false;
setLoading(false);
fillMenu();
setStatus(q.length ? fill(COPY.searchTypeMore, { n: minChars }) : "");
paint();
return;
}
const mine = (ctrl = new win.AbortController());
setLoading(true);
timer = win.setTimeout(() => {
setStatus(COPY.searchSearching);
win
.fetch(suggestUrl(base, key, q, groups), { signal: mine.signal, headers: { Accept: "application/json" } })
.then((res) => res.json().catch(() => null).then((body) => (res.ok && body && Array.isArray(body.data) ? body.data : [])))
.then((found) => {
if (mine.signal.aborted) return;
rows = found;
active = -1;
open = true;
empty = found.length === 0;
setLoading(false);
fillMenu();
setStatus(found.length === 0 ? COPY.searchNoResults : found.length === 1 ? COPY.searchResultsOne : fill(COPY.searchResultsMany, { n: found.length }));
paint();
})
.catch(() => {
if (mine.signal.aborted) return;
rows = [];
empty = false;
setLoading(false);
fillMenu();
setStatus(COPY.searchFailed);
paint();
});
}, debounceMs);
};
input.addEventListener("input", () => {
open = true;
search();
});
input.addEventListener("keydown", (e) => {
const k = e.key;
if (k === "ArrowDown" || k === "ArrowUp") {
e.preventDefault();
if (!rows.length) return;
open = true;
active = k === "ArrowDown" ? (active + 1) % rows.length : active <= 0 ? rows.length - 1 : active - 1;
} else if ((k === "Home" || k === "End") && open && rows.length) {
e.preventDefault();
active = k === "Home" ? 0 : rows.length - 1;
} else if (k === "Enter") {
e.preventDefault();
const row = rows[active >= 0 ? active : 0];
if (open && row) pick(row);
return;
} else if (k === "Escape") {
if (open) {
e.preventDefault();
open = false;
active = -1;
} else {
input.value = "";
search();
}
} else return;
paint();
});
input.addEventListener("blur", () =>
win.setTimeout(() => {
open = false;
paint();
}, 150),
);
input.addEventListener("focus", () => {
if (!rows.length) return;
open = true;
paint();
});
}
// src/filters-enhance.tsx bindFilters (the filters form, the filter bar and the results toolbar's sort form)
function filters(win, form) {
const key = form.getAttribute("data-rw-key") || "";
if (looksSecret(key)) warn(win, "data-rw-key on the filters form holds a secret key. A page never carries a key; remove it and replace the secret key now.");
const canLoad = !looksSecret(key) && typeof win.fetch === "function";
const base = form.getAttribute("data-rw-base-url");
const fields = () => Array.prototype.slice.call(form.elements).filter((el) => el.tagName === "INPUT" || el.tagName === "SELECT");
const manual = () => form.getAttribute("data-rw-filters-apply") === "submit";
const stateOf = (pick) => (pick.__rwPick = pick.__rwPick || { loading: false, truncated: false, timer: null });
form.addEventListener("submit", () => {
const allFields = fields();
allFields.forEach((el) => {
if (el.name && el.type !== "checkbox" && el.value === "") el.disabled = true;
});
// A "More options" choice with no value for its filter would be refused by the API: leave it out.
allFields.forEach((el) => {
const k = el.getAttribute("data-rw-op");
if (k === null) return;
const has = allFields.some((v) => v.getAttribute("data-rw-val") === k && (v.type === "checkbox" ? v.checked === true : !!v.value));
if (!has) el.disabled = true;
});
// Enabled again once the browser has read the form (the back button keeps it usable).
win.setTimeout(() => fields().forEach((el) => (el.disabled = false)), 0);
});
const summarize = (pick) => {
const summary = one(pick, "[data-rw-pick-summary]");
const box = one(pick, "[data-rw-pick-list]");
if (!summary || !box) return;
const free = one(pick, "[data-rw-pick-free]");
const n = all(box, "input").filter((b) => b.checked === true).length + (free && free.value ? 1 : 0);
summary.textContent = pickSummary(n);
};
const choiceRow = (pick, name, c, checked) => {
const doc = pick.ownerDocument;
const label = element(doc, "label", { class: "rw-check" });
const attrs = { type: "checkbox", name: name, value: c.value, "data-rw-val": pick.getAttribute("data-rw-pick-key") || "" };
if (checked) attrs.checked = "";
label.appendChild(element(doc, "input", attrs));
label.appendChild(element(doc, "span", {}, choiceText(c)));
return label;
};
/** The pick list's rows from the API's choices; boxes already checked stay checked and stay listed. */
const paint = (pick, choices, truncated) => {
const box = one(pick, "[data-rw-pick-list]");
if (!box) return;
const name = "f." + (pick.getAttribute("data-rw-pick-key") || "");
const checked = all(box, "input")
.filter((b) => b.checked === true)
.map((b) => b.value || "");
Array.prototype.slice.call(box.childNodes).forEach((c) => box.removeChild(c));
checked.forEach((v) => {
if (!choices.some((c) => c.value === v)) box.appendChild(choiceRow(pick, name, { value: v, label: v }, true));
});
choices.forEach((c) => box.appendChild(choiceRow(pick, name, c, checked.indexOf(c.value) >= 0)));
const free = one(pick, "[data-rw-pick-free]");
if (free && !free.value && free.parentNode) free.parentNode.removeChild(free);
pick.setAttribute("data-rw-pick-loaded", "");
stateOf(pick).truncated = truncated;
};
const load = (pick, text) => {
const s = stateOf(pick);
if (!canLoad || s.loading) return;
if (!text && pick.hasAttribute("data-rw-pick-loaded") && !s.truncated) return;
const status = one(pick, "[data-rw-pick-status]");
s.loading = true;
if (status) status.textContent = COPY.filterChoicesLoading;
win
.fetch(filterOptionsUrl(base, key, pick.getAttribute("data-rw-pick-key") || "", text))
.then((r) => r.json())
.then((body) => {
if (!body || !body.ok || !body.data || !Array.isArray(body.data.options)) throw new Error("no choices");
s.loading = false;
paint(pick, body.data.options, body.data.truncated === true);
if (status) status.textContent = body.data.options.length ? "" : COPY.filterNoChoices;
})
.catch(() => {
s.loading = false;
if (status) status.textContent = COPY.filterChoicesFailed;
});
};
/** A single-choice text box: its datalist fills once, on focus or on the first keystroke. */
const loadSingle = (input) => {
if (!canLoad || input.hasAttribute("data-rw-pick-loaded")) return;
const dl = input.parentNode ? one(input.parentNode, "datalist") : null;
if (!dl) return;
input.setAttribute("data-rw-pick-loaded", "");
win
.fetch(filterOptionsUrl(base, key, input.getAttribute("data-rw-pick-key") || ""))
.then((r) => r.json())
.then((body) => {
if (!body || !body.ok || !body.data || !Array.isArray(body.data.options)) return;
body.data.options.forEach((c) => dl.appendChild(element(input.ownerDocument, "option", { value: c.value, label: choiceText(c) })));
})
.catch(() => input.removeAttribute("data-rw-pick-loaded"));
};
/** Typing narrows the rows on the page; when the API cut the list at its cap, it is asked again. */
const narrow = (pick, text) => {
const s = stateOf(pick);
const t = text.trim().toLowerCase();
const box = one(pick, "[data-rw-pick-list]");
if (box) {
all(box, "label").forEach((row) => {
const b = one(row, "input");
row.hidden = t !== "" && (row.textContent || "").toLowerCase().indexOf(t) < 0 && !(b && b.checked === true);
});
}
if (!canLoad || (pick.hasAttribute("data-rw-pick-loaded") && !s.truncated)) return;
if (s.timer !== null) win.clearTimeout(s.timer);
s.timer = win.setTimeout(() => {
s.timer = null;
load(pick, text.trim());
}, FILTER_ROWS.narrowDebounceMs);
};
const find = (input) => {
const section = up(input, "data-rw-filters-section");
if (!section) return;
const t = (input.value || "").trim().toLowerCase();
all(section, "[data-rw-filter]").forEach((row) => {
row.hidden = t !== "" && (row.getAttribute("data-rw-filter-label") || "").indexOf(t) < 0;
});
};
form.addEventListener("change", (e) => {
const t = e.target;
if (!t || !t.getAttribute) return;
const pick = up(t, "data-rw-pick");
if (pick && pick.getAttribute("data-rw-pick") === "multi") summarize(pick);
if (manual()) return;
if (t.tagName === "SELECT" || (t.tagName === "INPUT" && (t.type === "checkbox" || t.type === "number"))) {
if (typeof form.requestSubmit === "function") form.requestSubmit();
else form.submit();
}
});
form.addEventListener("click", (e) => {
const summary = up(e.target, "data-rw-pick-summary");
const pick = summary ? up(summary, "data-rw-pick") : null;
if (pick) load(pick, "");
});
form.addEventListener("focusin", (e) => {
const t = e.target;
if (t && t.getAttribute && t.getAttribute("data-rw-pick") === "single") loadSingle(t);
});
form.addEventListener("input", (e) => {
const t = e.target;
if (!t || !t.getAttribute) return;
if (t.getAttribute("data-rw-pick") === "single") loadSingle(t);
else if (t.hasAttribute("data-rw-pick-narrow")) {
const pick = up(t, "data-rw-pick");
if (pick) narrow(pick, t.value || "");
} else if (t.hasAttribute("data-rw-pick-free")) {
const pick = up(t, "data-rw-pick");
if (pick) summarize(pick);
} else if (t.hasAttribute("data-rw-filters-find")) find(t);
});
// A page with no server: an empty [data-rw-filters-auto] inside the form is filled with the rows
// of the account's filter list (GET /v1/filters with the publishable key), read against the page's URL.
const auto = one(form, "[data-rw-filters-auto]");
if (auto && canLoad) {
const csv = (name) => (auto.getAttribute(name) || "").split(",").map((x) => x.trim()).filter(Boolean);
win
.fetch(filtersUrl(base, key))
.then((r) => r.json())
.then((body) => {
if (!body || !body.ok || !Array.isArray(body.data)) return;
const href = win.location && win.location.href ? String(win.location.href) : "";
const q = href.indexOf("?") >= 0 ? href.slice(href.indexOf("?") + 1).split("#")[0] : "";
const rows = filterRowNodes({ defs: body.data, params: filterParamsFromUrl(q), idBase: form.id || "rw-filters", show: csv("data-rw-filters-show"), hide: csv("data-rw-filters-hide"), sections: csv("data-rw-filters-sections") });
// A hidden input the page printed for a filter that now has its own control would send it twice.
all(form, "input").forEach((h) => {
if (h.type === "hidden" && rows.names.indexOf(h.name) >= 0 && !within(auto, h) && h.parentNode) h.parentNode.removeChild(h);
});
auto.innerHTML = rows.nodes.map(filterNodeHtml).join("");
form.setAttribute("data-rw-filters-apply", "submit");
})
.catch(() => {});
}
}
// src/filters-drawer.tsx bindDrawer: the More filters pill and its <dialog data-rw-drawer>.
function filtersDrawer(win, rootEl) {
const dialog = one(rootEl, "[data-rw-drawer]");
if (!dialog) return;
const lock = scrollLock(win);
let opener = null;
const finish = () => {
lock(false);
if (opener) {
opener.setAttribute("aria-expanded", "false");
focusEl(opener);
}
opener = null;
};
const close = () => {
if (!dialog.open) return;
if (typeof dialog.close === "function") dialog.close();
else {
dialog.removeAttribute("open");
finish();
}
};
rootEl.addEventListener("click", (e) => {
if (e.target === dialog) return close();
if (up(e.target, "data-rw-drawer-close")) {
e.preventDefault();
return close();
}
const pill = up(e.target, "data-rw-drawer-open");
if (!pill || !within(rootEl, pill) || dialog.open) return;
e.preventDefault();
opener = pill;
openDialog(dialog);
pill.setAttribute("aria-expanded", "true");
lock(true);
focusEl(one(dialog, "[data-rw-drawer-close]"));
});
dialog.addEventListener("close", (e) => {
if (e.target === dialog) finish();
});
}
/**
* src/forms.tsx LeadForm: consent gating, validation, the LeadSubmission POST, the status and error
* lines. `o` (optional) adapts it for the dialogs: o.fields(value) changes the fields, o.check()
* may refuse a send, o.error is the error text, and o.sent(lead) replaces the success block.
*/
function bindLead(win, form, o) {
const doc = win.document;
o = o || {};
const kind = form.getAttribute("data-rw-lead");
const consentBox = one(form, "[data-rw-consent]");
const submit = one(form, "[data-rw-submit]");
const statusLine = one(form, "[data-rw-form-status]");
const hint = one(form, "[data-rw-consent-hint]");
const hintId = hint ? hint.id : "";
// Where the hint goes back when the box is unchecked again.
const hintHome = hint ? hint.parentNode : null;
const hintBefore = hint ? hint.nextSibling : null;
const listing = readJson(form.getAttribute("data-rw-lead-listing"), null);
if (!consentBox || !submit) return null;
let sending = false;
const value = (name) => {
const el = form.elements.namedItem(name);
return el && typeof el.value === "string" ? el.value : "";
};
const sync = () => {
const consent = consentBox.checked === true;
submit.disabled = !consent || sending;
if (consent) {
submit.removeAttribute("aria-describedby");
if (hint && hint.parentNode) hint.parentNode.removeChild(hint);
} else if (hint) {
if (hintId) submit.setAttribute("aria-describedby", hintId);
if (!hint.parentNode && hintHome) hintHome.insertBefore(hint, hintBefore && hintBefore.parentNode === hintHome ? hintBefore : null);
}
};
const clearError = () => {
const oldError = one(form, "[data-rw-form-error]");
if (oldError) oldError.parentNode.removeChild(oldError);
};
consentBox.addEventListener("change", sync);
sync();
form.addEventListener("submit", (e) => {
e.preventDefault();
if (consentBox.checked !== true || sending) return;
if (o.check && !o.check()) return;
if (typeof form.reportValidity === "function" && !form.reportValidity()) return;
const alerts = form.elements.namedItem("consentAlerts");
const consentText = one(form, "[data-rw-consent-text]");
let fields = {
firstName: value("firstName"),
lastName: value("lastName"),
email: value("email"),
phone: value("phone"),
message: value("message"),
tourDate: value("tourDate"),
tourTime: value("tourTime"),
consentContact: true,
consentAlerts: !!alerts && alerts.checked === true,
website: value("website"),
};
if (o.fields) fields = o.fields(fields);
const lead = buildLead({
kind: kind,
fields: fields,
consentText: consentText ? consentText.textContent : "",
listing: listing,
pageUrl: win.location.href,
referrer: doc.referrer || null,
campaign: currentAttribution(win),
agent: readJson(form.getAttribute("data-rw-lead-agent"), null),
leadType: form.getAttribute("data-rw-lead-type"),
});
clearError();
sending = true;
sync();
if (statusLine) statusLine.textContent = COPY.sending;
postJson(win, form.getAttribute("action"), lead).then((ok) => {
sending = false;
sync();
if (statusLine) statusLine.textContent = "";
if (!ok) {
if (statusLine) statusLine.parentNode.insertBefore(element(doc, "p", { class: "rw-form__error", role: "alert", "data-rw-form-error": "" }, o.error || COPY.formError), statusLine.nextSibling);
return;
}
pushDataLayer(win, "generate_lead", generateLeadParams(lead, listing));
if (o.sent) return o.sent(lead, fields);
const sent = element(doc, "div", { class: "rw-recipes rw-form rw-form--sent", role: "status", "data-rw-lead-sent": "" });
sent.appendChild(element(doc, "p", { class: "rw-form__success" }, form.getAttribute("data-rw-success") || ""));
form.parentNode.replaceChild(sent, form);
});
});
return {
listing: listing,
consentText: () => {
const t = one(form, "[data-rw-consent-text]");
return t ? t.textContent : "";
},
reset: () => {
if (typeof form.reset === "function") form.reset();
sending = false;
clearError();
if (statusLine) statusLine.textContent = "";
sync();
},
clearError: clearError,
};
}
// The lead forms on their own (a form inside a dialog belongs to that dialog's screen).
function leadForm(win, form) {
if (up(form, "data-rw-modal")) return;
bindLead(win, form);
}
// ---------------------------------------------------------------------------------------------
// Maps (src/internal/maps-loader.ts): one bootstrap per page for every map and Street view
// ---------------------------------------------------------------------------------------------
let mapsLoader = null;
function loadMaps(win, key) {
if (win.google && win.google.maps && win.google.maps.importLibrary) return Promise.resolve(win.google.maps);
if (mapsLoader) return mapsLoader;
mapsLoader = new Promise((resolve, reject) => {
win.__rwMapsReady = () => (win.google && win.google.maps ? resolve(win.google.maps) : reject(new Error("maps")));
const s = element(win.document, "script", { src: mapsScriptUrl(key) });
s.async = true;
s.onerror = () => {
mapsLoader = null;
reject(new Error("maps"));
};
win.document.head.appendChild(s);
});
return mapsLoader;
}
function whenIdle(win, fn) {
if (typeof win.requestIdleCallback === "function") win.requestIdleCallback(fn, { timeout: 1500 });
else win.setTimeout(fn, 1500);
}
/** Runs `fn` once `el` comes within `margin` of the viewport (at once without IntersectionObserver). */
function whenNear(win, el, margin, fn) {
if (typeof win.IntersectionObserver !== "function") return fn();
const io = new win.IntersectionObserver(
(entries) => {
if (!entries.some((e) => e.isIntersecting)) return;
io.disconnect();
fn();
},
{ rootMargin: margin },
);
io.observe(el);
}
const cssVar = (win, el, name, fallback) => win.getComputedStyle(el).getPropertyValue(name).trim() || fallback;
function pinElement(doc, p) {
const pin = element(doc, "div", { class: "rw-pin", title: p.title });
const pill = element(doc, "span", { class: "rw-pin__pill" });
const dot = element(doc, "span", { class: "rw-pin__dot", "aria-hidden": "true" });
dot.style.background = TONE_COLOURS[p.tone] || TONE_COLOURS.active;
pill.appendChild(dot);
pill.appendChild(doc.createTextNode(p.label));
pin.appendChild(pill);
pin.appendChild(iconSvg(doc, ICON("map-pin-black"), 16, 20, "rw-pin__tip"));
return pin;
}
function clusterElement(doc, c) {
return element(doc, "div", { class: "rw-cluster", "aria-label": fill(COPY.clusterHomes, { n: c.count }) }, String(c.count));
}
function schoolElement(doc) {
const el = element(doc, "div", { class: "rw-school-pin", role: "img", "aria-label": COPY.school, title: COPY.school });
el.appendChild(iconSvg(doc, ICON("school-hat"), 16, 16, "rw-school-pin__icon"));
return el;
}
const latLngOf = (e) => (e && e.latLng ? { lat: e.latLng.lat(), lng: e.latLng.lng() } : null);
function boundsOf(map) {
const b = map.getBounds();
if (!b) return null;
const sw = b.getSouthWest();
const ne = b.getNorthEast();
return { south: sw.lat(), west: sw.lng(), north: ne.lat(), east: ne.lng() };
}
// src/map.tsx AreaMap: price pins and clusters, the outline, the school pin, Search this area, and
// the toolbar (draw an area or a circle, lock the drawn area, map or satellite).
function areaMap(win, el) {
const doc = win.document;
const key = el.getAttribute("data-rw-maps-key") || "";
const canvas = one(el, "[data-rw-map-canvas]");
const message = one(el, "[data-rw-map-message]");
if (!key || !canvas) return;
if (looksSecret(key)) return warn(win, "data-rw-maps-key holds a Ruuster secret key. Put your Google Maps browser key there, and replace the secret key now.");
const mapId = el.getAttribute("data-rw-map-id") || "";
const pins = readJson(el.getAttribute("data-rw-pins"), []);
const viewport = readJson(el.getAttribute("data-rw-viewport"), null);
const boundary = readJson(el.getAttribute("data-rw-boundary"), null);
const school = boundary && el.getAttribute("data-rw-boundary-kind") === "school" ? outlineCenter(boundary) : null;
const baseHref = () => el.getAttribute("data-rw-search-href") || win.location.href;
const go = (href) => {
if (href && safeUrl(href)) win.location.assign(href);
};
const toolbar = one(el, "[data-rw-map-toolbar]");
const drawButtons = toolbar ? all(toolbar, "[data-rw-map-draw]") : [];
const lockButton = toolbar ? one(toolbar, "[data-rw-map-lock]") : null;
const typeButton = toolbar ? one(toolbar, "[data-rw-map-type]") : null;
let map = null;
let maps = null;
let mode = null;
let moved = false;
let pending = null;
let drawn = [];
let stopDrawing = null;
let searchButton = null;
let hint = null;
const paintTools = () => {
if (searchButton && searchButton.parentNode) searchButton.parentNode.removeChild(searchButton);
if (map && moved && !mode) {
searchButton = searchButton || element(doc, "button", { type: "button", class: "rw-map__search-area", "data-rw-map-search-area": "" }, COPY.searchThisArea);
if (!searchButton.__rwBound) {
searchButton.__rwBound = true;
searchButton.addEventListener("click", () => {
if (pending && pending.length >= 3) return go(polygonHref(baseHref(), pending));
const b = boundsOf(map);
if (b) go(bboxHref(baseHref(), b));
});
}
el.insertBefore(searchButton, toolbar || null);
}
if (hint && hint.parentNode) hint.parentNode.removeChild(hint);
if (mode) {
hint = element(doc, "p", { class: "rw-map__hint", role: "status", "data-rw-map-hint": "" }, mode === "polygon" ? COPY.drawAreaHint : COPY.drawCircleHint);
el.insertBefore(hint, toolbar || null);
}
drawButtons.forEach((b) => {
const kind = b.getAttribute("data-rw-map-draw");
const on = mode === kind;
b.setAttribute("aria-pressed", String(on));
b.setAttribute("aria-label", on ? COPY.stopDrawing : kind === "polygon" ? COPY.drawArea : COPY.drawCircle);
setIconText(b, on ? ICON("close-draw") : kind === "polygon" ? ICON("pen-tool") : ICON("circle-draw"));
});
};
const startDrawing = (kind) => {
if (stopDrawing) stopDrawing();
mode = kind;
const accent = cssVar(win, el, "--rw-colors-accent", "#fbe08e");
const ls = [];
let shape;
const onKey = (e) => {
if (e.key === "Escape") endDrawing();
};
doc.addEventListener("keydown", onKey);
if (kind === "polygon") {
map.setOptions({ draggableCursor: "crosshair", disableDoubleClickZoom: true });
const points = [];
shape = new maps.Polyline({ map: map, path: [], strokeColor: accent, strokeOpacity: 1, strokeWeight: 2, clickable: false, zIndex: 9999 });
const finish = () => go(points.length >= 3 ? polygonHref(baseHref(), points) : null);
ls.push(
map.addListener("click", (e) => {
const p = latLngOf(e);
if (!p) return;
const view = boundsOf(map);
if (view && closesRing(points, p, view)) return finish();
points.push(p);
shape.setPath(points.slice());
}),
);
ls.push(map.addListener("dblclick", finish));
} else {
map.setOptions({ draggable: false, gestureHandling: "none", draggableCursor: "crosshair" });
let center = null;
shape = new maps.Circle({ strokeColor: accent, strokeOpacity: 1, strokeWeight: 2, fillColor: accent, fillOpacity: 0.2, clickable: false, zIndex: 9999 });
ls.push(
map.addListener("mousedown", (e) => {
center = latLngOf(e);
if (!center) return;
shape.setCenter(center);
shape.setRadius(0);
shape.setMap(map);
}),
);
ls.push(
map.addListener("mousemove", (e) => {
const p = latLngOf(e);
if (center && p) shape.setRadius(distanceMetres(center, p));
}),
);
ls.push(
map.addListener("mouseup", (e) => {
const p = latLngOf(e);
const c = center;
center = null;
if (!c || !p) return;
const ring = circlePolygon(c, distanceMetres(c, p));
if (!ring.length) return shape.setMap(null);
go(polygonHref(baseHref(), ring));
}),
);
}
stopDrawing = () => {
doc.removeEventListener("keydown", onKey);
ls.forEach((l) => l.remove());
shape.setMap(null);
map.setOptions({ draggable: true, gestureHandling: "cooperative", draggableCursor: null, disableDoubleClickZoom: false });
stopDrawing = null;
};
paintTools();
};
const endDrawing = () => {
if (stopDrawing) stopDrawing();
mode = null;
paintTools();
};
drawButtons.forEach((b) =>
b.addEventListener("click", () => {
if (!map) return;
const kind = b.getAttribute("data-rw-map-draw");
if (mode === kind) endDrawing();
else startDrawing(kind);
}),
);
let locked = false;
if (lockButton)
lockButton.addEventListener("click", () => {
if (!map) return;
locked = !locked;
drawn.forEach((p) => p.setEditable(!locked));
lockButton.setAttribute("aria-pressed", String(locked));
lockButton.setAttribute("aria-label", locked ? COPY.unlockArea : COPY.lockArea);
setIconText(lockButton, locked ? ICON("locked") : ICON("lock"));
});
let satellite = false;
if (typeButton)
typeButton.addEventListener("click", () => {
if (!map) return;
satellite = !satellite;
map.setMapTypeId(satellite ? "satellite" : "roadmap");
typeButton.setAttribute("aria-pressed", String(satellite));
typeButton.setAttribute("data-rw-map-type", satellite ? "satellite" : "roadmap");
setIconText(typeButton, satellite ? ICON("globe") : ICON("map-map"));
});
const draw = () =>
loadMaps(win, key)
.then((g) =>
Promise.all([g.importLibrary("maps"), g.importLibrary("marker")]).then((libs) => {
maps = libs[0];
const lib = libs[1];
const box = viewport || pinsBox(pins);
const m = new maps.Map(canvas, {
center: box ? { lat: (box.north + box.south) / 2, lng: (box.east + box.west) / 2 } : { lat: 39.5, lng: -98.35 },
zoom: box ? 12 : 4,
mapId: mapId || undefined,
disableDefaultUI: true,
zoomControl: true,
clickableIcons: false,
gestureHandling: "cooperative",
});
if (box) m.fitBounds(box, 24);
const accent = cssVar(win, el, "--rw-colors-accent", "#fbe08e");
const ink = cssVar(win, el, "--rw-colors-primary", "#242424");
if (boundary) new maps.Polygon({ paths: outlinePaths(boundary), strokeColor: accent, strokeOpacity: 0.8, strokeWeight: 3, fillOpacity: 0, clickable: false, zIndex: 50 }).setMap(m);
// The drawn areas the URL carries: editable until locked; an edit offers Search this area.
drawn = polygonsOf(baseHref()).map((ring) => {
const poly = new maps.Polygon({ paths: ring, strokeColor: accent, strokeOpacity: 0.8, strokeWeight: 3, fillColor: accent, fillOpacity: 0.2, clickable: true, editable: true, draggable: false, zIndex: 9999 });
poly.setMap(m);
const path = poly.getPath ? poly.getPath() : null;
if (path)
["set_at", "insert_at", "remove_at"].forEach((ev) =>
path.addListener(ev, () => {
pending = path.getArray().map((p) => ({ lat: p.lat(), lng: p.lng() }));
moved = true;
paintTools();
}),
);
return poly;
});
if (school) {
if (mapId && lib.AdvancedMarkerElement) new lib.AdvancedMarkerElement({ map: m, position: school, content: schoolElement(doc), title: COPY.school, zIndex: 60 });
else if (lib.Marker) new lib.Marker({ map: m, position: school, title: COPY.school, clickable: false, zIndex: 60 });
}
// A pin opens its listing page only when its href is an http or https address.
let markers = [];
const render = (zoom) => {
markers.forEach((mk) => (mk.setMap ? mk.setMap(null) : (mk.map = null)));
markers = [];
clusterPins(pins, zoom).forEach((item) => {
const advanced = mapId && lib.AdvancedMarkerElement;
const event = advanced ? "gmp-click" : "click";
if (item.kind === "cluster") {
const label = fill(COPY.clusterHomes, { n: item.count });
const position = { lat: item.lat, lng: item.lng };
const mk = advanced
? new lib.AdvancedMarkerElement({ map: m, position: position, content: clusterElement(doc, item), title: label, gmpClickable: true, zIndex: 200 })
: new lib.Marker({ map: m, position: position, title: label, zIndex: 200, label: { text: String(item.count), color: ink, fontSize: "13px", fontWeight: "600" }, icon: { path: 0, scale: 20, fillColor: "#fff", fillOpacity: 1, strokeColor: ink, strokeWeight: 2 } });
mk.addListener(event, () => {
const before = m.getZoom() || zoom;
m.fitBounds(item.bounds, 48);
// Pins at one address: fitBounds cannot zoom further, so step in on the cluster.
if ((m.getZoom() || before) <= before) {
m.panTo(position);
m.setZoom(Math.min(before + 2, 20));
}
});
markers.push(mk);
return;
}
const p = item.pin;
const position = { lat: p.lat, lng: p.lng };
const mk = advanced
? new lib.AdvancedMarkerElement({ map: m, position: position, content: pinElement(doc, p), title: p.title, gmpClickable: true })
: new lib.Marker({ map: m, position: position, title: p.title, label: { text: p.label, fontSize: "13px", fontWeight: "600" } });
if (safeUrl(p.href)) mk.addListener(event, () => win.location.assign(p.href));
markers.push(mk);
});
};
let lastZoom = null;
let settled = false;
m.addListener("idle", () => {
const z = Math.round(m.getZoom() || 12);
if (z !== lastZoom) {
lastZoom = z;
render(z);
}
settled = true;
});
const onMove = () => {
if (!settled) return;
moved = true;
paintTools();
};
m.addListener("dragend", onMove);
m.addListener("zoom_changed", onMove);
map = m;
}),
)
.then(
() => {
if (message && message.parentNode) message.parentNode.removeChild(message);
if (toolbar) all(toolbar, "button").forEach((b) => (b.disabled = false));
},
() => {
if (message) message.textContent = COPY.mapFailed;
},
);
whenNear(win, el, "200px", () => whenIdle(win, draw));
}
// src/ga4.tsx Ga4Event, once per element and page load.
function ga4Event(win, el) {
const params = readJson(el.getAttribute("data-rw-ga4-params"), null);
if (params && typeof params === "object") pushDataLayer(win, el.getAttribute("data-rw-ga4-event"), params);
}
// ---------------------------------------------------------------------------------------------
// The listing page's screens (src/internal/screens.ts): every data-rw-open button inside a
// [data-rw-detail] root opens the screen of that root that registered under its name.
// ---------------------------------------------------------------------------------------------
const SCREENS = ["gallery", "share", "contact", "tour"];
function readOpen(el) {
const screen = el.getAttribute("data-rw-open");
if (SCREENS.indexOf(screen) < 0) return null;
const req = { screen: screen };
const tab = el.getAttribute("data-rw-open-tab");
if (tab === "photos" || tab === "street") req.tab = tab;
const index = Number(el.getAttribute("data-rw-open-index"));
if (el.hasAttribute("data-rw-open-index") && Math.floor(index) === index && index >= 0) req.index = index;
return req;
}
function screens(rootEl) {
return (rootEl.__rwScreens = rootEl.__rwScreens || {});
}
function detailRoot(win, rootEl) {
rootEl.addEventListener("click", (e) => {
const target = up(e.target, "data-rw-open");
if (!target || !within(rootEl, target)) return;
const req = readOpen(target);
const handler = req && screens(rootEl)[req.screen];
if (!handler) return;
e.preventDefault();
handler(req, target);
});
}
/** The price block of the page itself (the full gallery's sidebar has its own). */
function pagePriceBlock(rootEl) {
return all(rootEl, "[data-rw-price-block]").filter((b) => !up(b, "data-rw-screen"))[0] || null;
}
// src/detail-header.tsx DetailHeader: data-rw-pinned once the price block has scrolled behind it.
function detailHeader(win, header) {
const rootEl = up(header, "data-rw-detail") || header.parentNode;
const block = rootEl ? pagePriceBlock(rootEl) : null;
if (!block || typeof win.IntersectionObserver !== "function") return;
const height = Math.round(header.getBoundingClientRect().height) || 73;
const io = new win.IntersectionObserver(
(entries) => {
const e = entries[entries.length - 1];
if (!e) return;
const bottom = header.getBoundingClientRect().bottom || height;
const pinned = !e.isIntersecting && e.boundingClientRect.bottom <= bottom;
if (pinned) header.setAttribute("data-rw-pinned", "");
else header.removeAttribute("data-rw-pinned");
},
{ rootMargin: "-" + height + "px 0px 0px 0px", threshold: 0 },
);
io.observe(block);
}
// src/open-houses.tsx: Show all and Show fewer.
function openHouses(win, section) {
const toggle = one(section, "[data-rw-oh-toggle]");
if (!toggle) return;
let open = false;
toggle.addEventListener("click", () => {
open = !open;
all(section, "[data-rw-oh-extra]").forEach((li) => (li.hidden = !open));
toggle.setAttribute("aria-expanded", String(open));
toggle.textContent = toggle.getAttribute(open ? "data-rw-oh-fewer" : "data-rw-oh-more") || "";
});
}
// src/full-gallery.tsx FullGallery: tabs, the mosaic and its lightbox, the pinned summary, Street view.
function fullGallery(win, dialog) {
const doc = win.document;
const rootEl = up(dialog, "data-rw-detail");
if (!rootEl) return;
const tabs = all(dialog, "[data-rw-gallery-tab]");
const names = tabs.map((t) => t.getAttribute("data-rw-gallery-tab"));
const tablist = tabs.length ? tabs[0].parentNode : null;
const header = one(dialog, "[data-rw-gallery-header]");
const sidebar = one(dialog, "[data-rw-gallery-sidebar]");
const tiles = all(dialog, "[data-rw-mosaic-tile]");
const grid = one(rootEl, "[data-rw-photo-grid]");
const photos = readJson(grid && grid.getAttribute("data-rw-photos"), []).filter((p) => safeUrl(p.url));
const fallbackAlt = (grid && grid.getAttribute("data-rw-photo-alt")) || "";
const box = one(dialog, "[data-rw-lightbox]");
const lb = box ? lightbox(win, box, photos, fallbackAlt) : null;
const lock = scrollLock(win);
let tab = "photos";
let opener = null;
let isOpen = false;
let pinned = false;
let summary = null;
let streetStarted = false;
const select = (t, focus) => {
tab = t;
tabs.forEach((b) => {
const on = b.getAttribute("data-rw-gallery-tab") === t;
b.setAttribute("aria-selected", String(on));
b.setAttribute("tabindex", on ? "0" : "-1");
if (on && focus) focusEl(b);
});
all(dialog, "[data-rw-gallery-panel]").forEach((p) => (p.hidden = p.getAttribute("data-rw-gallery-panel") !== t));
if (sidebar) sidebar.classList.toggle("rw-fullgallery__sidebar--hidden", t === "street");
if (t === "street") startStreet();
checkPin();
};
const setPinned = (on) => {
if (on === pinned || !header) return;
pinned = on;
header.classList.toggle("rw-fullgallery__header--pinned", on);
if (on) header.setAttribute("data-rw-pinned", "");
else header.removeAttribute("data-rw-pinned");
if (tablist) tablist.classList.toggle("rw-fullgallery__tabs--hidden", on);
if (summary && summary.parentNode) summary.parentNode.removeChild(summary);
summary = null;
const headerSummary = one(rootEl, "[data-rw-header-summary]");
const mini = (headerSummary && one(headerSummary, "[data-rw-mini]")) || one(rootEl, "[data-rw-mini]");
if (on && mini && tablist) {
summary = element(doc, "div", { class: "rw-fullgallery__summary" });
summary.appendChild(mini.cloneNode(true));
tablist.parentNode.insertBefore(summary, tablist.nextSibling);
}
};
// From 992px the sidebar's price block, else a mark 50px into the main column.
function checkPin() {
if (!isOpen || tab !== "photos") return setPinned(false);
const wide = typeof win.matchMedia === "function" && win.matchMedia("(min-width: 992px)").matches;
const target = one(dialog, wide ? "[data-rw-price-block]" : "[data-rw-gallery-mark]");
if (!target) return setPinned(false);
setPinned(target.getBoundingClientRect().bottom <= dialog.getBoundingClientRect().top + 73);
}
dialog.addEventListener("scroll", checkPin);
if (win.addEventListener) win.addEventListener("resize", checkPin);
function startStreet() {
if (streetStarted) return;
streetStarted = true;
const panel = one(dialog, '[data-rw-gallery-panel="street"]');
const frame = one(dialog, "[data-rw-street-pano]");
const mapEl = one(rootEl, "[data-rw-location-map]");
const key = mapEl ? mapEl.getAttribute("data-rw-maps-key") || "" : "";
const lat = mapEl ? Number(mapEl.getAttribute("data-rw-lat")) : NaN;
const lng = mapEl ? Number(mapEl.getAttribute("data-rw-lng")) : NaN;
const box = frame ? frame.parentNode : null;
const say = (text, live) => {
if (!panel) return;
const p = element(doc, "p", live ? { class: "rw-fullgallery__street-none", role: "status" } : { class: "rw-fullgallery__street-none" }, text);
if (box && box.parentNode === panel) panel.replaceChild(p, box);
else panel.appendChild(p);
};
if (!frame || !key || looksSecret(key) || !isFinite(lat) || !isFinite(lng)) return say(COPY.streetViewNeedsKey, false);
loadMaps(win, key)
.then((g) => g.importLibrary("streetView"))
.then((lib) => {
const service = new lib.StreetViewService();
return service
.getPanorama({ location: { lat: lat, lng: lng }, radius: 50, sources: [lib.StreetViewSource ? lib.StreetViewSource.OUTDOOR : "outdoor"], preference: lib.StreetViewPreference ? lib.StreetViewPreference.NEAREST : "nearest" })
.then((r) => {
const pano = r && r.data && r.data.location ? r.data.location.pano : null;
if (!pano) return say(COPY.streetViewNone, true);
const panorama = new lib.StreetViewPanorama(frame, { addressControl: false, enableCloseButton: false, fullscreenControl: false, motionTracking: false, motionTrackingControl: false, visible: true, pano: pano });
panorama.addListener("status_changed", () => {
if (panorama.getStatus() !== (lib.StreetViewStatus ? lib.StreetViewStatus.OK : "OK")) return say(COPY.streetViewNone, true);
const wait = one(box, ".rw-fullgallery__street-wait");
if (wait) wait.parentNode.removeChild(wait);
});
});
})
.catch(() => say(COPY.streetViewNone, true));
}
const closed = () => {
if (!isOpen) return;
isOpen = false;
if (lb) lb.close();
lock(false);
setPinned(false);
focusEl(opener);
};
const closeGallery = () => {
closeDialog(dialog);
closed();
};
screens(rootEl).gallery = (req, from) => {
const t = req.tab === "street" && names.indexOf("street") >= 0 ? "street" : "photos";
const index = t === "photos" && req.index !== undefined && req.index < tiles.length ? req.index : null;
opener = from;
isOpen = true;
select(t, false);
openDialog(dialog);
dialog.scrollTop = 0;
lock(true);
const tile = index !== null ? one(dialog, '[data-rw-mosaic-tile="' + index + '"]') : null;
if (tile) {
focusEl(tile);
// After the dialog's own first layout, or the browser scrolls back to the top.
const scroll = () => {
if (typeof tile.scrollIntoView === "function") tile.scrollIntoView({ block: "start" });
};
scroll();
later(win, scroll);
} else focusEl(tabs.filter((b) => b.getAttribute("aria-selected") === "true")[0]);
checkPin();
};
tabs.forEach((b) => b.addEventListener("click", () => select(b.getAttribute("data-rw-gallery-tab"), false)));
if (tablist)
tablist.addEventListener("keydown", (e) => {
const i = names.indexOf(tab);
const n = e.key === "ArrowRight" ? (i + 1) % names.length : e.key === "ArrowLeft" ? (i - 1 + names.length) % names.length : e.key === "Home" ? 0 : e.key === "End" ? names.length - 1 : -1;
if (n < 0) return;
e.preventDefault();
select(names[n], true);
});
const x = one(dialog, "[data-rw-gallery-close]");
if (x) x.addEventListener("click", closeGallery);
dialog.addEventListener("cancel", (e) => {
if (e.target !== dialog) return;
e.preventDefault();
closeGallery();
});
dialog.addEventListener("close", (e) => {
if (e.target === dialog) closed();
});
tiles.forEach((t) =>
t.addEventListener("click", () => {
if (lb) lb.show(Number(t.getAttribute("data-rw-mosaic-tile")) || 0, t);
}),
);
}
/**
* src/modal.tsx Modal: the dialog inside a [data-rw-screen] host. Escape, X and a click on the
* backdrop call onClose; every close gives focus back to the opener.
*/
function modalShell(win, host, onClose) {
const dialog = one(host, "[data-rw-modal]");
if (!dialog) return null;
let opener = null;
const closeButton = one(dialog, "[data-rw-modal-close]");
if (closeButton) closeButton.addEventListener("click", () => onClose());
dialog.addEventListener("cancel", (e) => {
if (e.target !== dialog) return;
e.preventDefault();
onClose();
});
dialog.addEventListener("click", (e) => {
if (e.target === dialog) onClose();
});
dialog.addEventListener("close", (e) => {
if (e.target === dialog) focusEl(opener);
});
return {
dialog: dialog,
open: (from) => {
opener = from;
openDialog(dialog);
},
close: () => {
closeDialog(dialog);
},
};
}
// src/share-modal.tsx ShareModal: the device's share sheet where it exists, else the dialog.
function shareScreen(win, host) {
const rootEl = up(host, "data-rw-detail");
const box = one(host, "[data-rw-share-url]");
if (!rootEl || !box) return;
const shell = modalShell(win, host, () => shell.close());
if (!shell) return;
const nav = win.navigator || {};
const native = box.getAttribute("data-rw-share-native") !== "false";
const input = one(box, "[data-rw-share-input]");
const copyButton = one(box, "[data-rw-copy]");
const copyLabel = one(box, "[data-rw-copy-label]");
const copyStatus = one(box, "[data-rw-copy-status]");
const more = one(box, "[data-rw-share-more]");
const mail = one(box, '[data-rw-share="email"]');
const subjectMatch = mail ? /[?&]subject=([^&]*)/.exec(mail.getAttribute("href") || "") : null;
const subject = subjectMatch ? decodeURIComponent(subjectMatch[1]) : COPY.shareTitle;
let timer = null;
let abs = "";
const absolute = () => {
abs = shareUrlAbsolute(box.getAttribute("data-rw-share-url") || "", win.location.origin || null);
if (input) input.value = abs;
const text = fill(COPY.shareText, { url: abs });
const set = (name, href) => {
const a = one(box, '[data-rw-share="' + name + '"]');
if (a) a.setAttribute("href", href);
};
set("facebook", facebookShareUrl(abs));
set("whatsapp", whatsAppShareUrl(text));
set("email", mailtoShareUrl(subject, text));
return abs;
};
const canShare = () => native && typeof nav.share === "function";
absolute();
if (more) more.hidden = !canShare();
const setCopy = (state) => {
if (copyLabel) copyLabel.textContent = state === "copied" ? COPY.linkCopied : COPY.copyLink;
if (copyStatus) {
copyStatus.className = state === "failed" ? "rw-form__hint" : "rw-share__status";
copyStatus.textContent = state === "failed" ? COPY.copyFailed : state === "copied" ? COPY.linkCopied : "";
}
};
const openModal = (from) => {
setCopy("idle");
shell.open(from);
};
screens(rootEl).share = (req, from) => {
const url = absolute();
if (!canShare()) return openModal(from);
nav.share({ title: subject, text: subject, url: url }).then(
() => undefined,
(err) => {
// The visitor closed the share sheet: nothing more to do. Anything else: show the dialog.
if (!err || err.name !== "AbortError") openModal(from);
},
);
};
const fallbackCopy = () => {
try {
if (!input) return false;
focusEl(input);
if (typeof input.select === "function") input.select();
return typeof win.document.execCommand === "function" ? win.document.execCommand("copy") === true : false;
} catch (e) {
return false;
}
};
if (copyButton)
copyButton.addEventListener("click", () => {
const clip = nav.clipboard;
const tried = clip && typeof clip.writeText === "function" ? clip.writeText(abs).then(() => true, () => fallbackCopy()) : Promise.resolve(fallbackCopy());
tried.then((ok) => {
setCopy(ok ? "copied" : "failed");
if (timer !== null) win.clearTimeout(timer);
timer = ok ? win.setTimeout(() => setCopy("idle"), 2000) : null;
});
});
if (input)
input.addEventListener("focus", () => {
if (typeof input.select === "function") input.select();
});
if (more)
more.addEventListener("click", () => {
if (canShare()) nav.share({ title: subject, text: subject, url: abs }).catch(() => undefined);
});
}
/**
* src/tour-modal.tsx useTourSchedule and TourDateFields: the 16 days (recomputed from the visitor's
* clock each time the dialog opens), 7 per page, the times of day and the hint. `button` is the
* step's Next or Request a tour button; `busy()` says whether a send is running.
*/
function tourSchedule(win, scope, button, busy) {
const daysBox = one(scope, "[data-rw-days]");
const prev = one(scope, "[data-rw-days-prev]");
const next = one(scope, "[data-rw-days-next]");
const hint = one(scope, "[data-rw-tour-hint]");
const partButtons = all(scope, "[data-rw-part]");
const hintId = hint ? hint.id : "";
// The listing's own zone (data-rw-time-zone, from its open houses); without it the visitor's clock.
const zone = (daysBox && daysBox.getAttribute("data-rw-time-zone")) || undefined;
const s = { now: new Date(), page: 0, day: null, parts: [], days: readJson(daysBox && daysBox.getAttribute("data-rw-days"), []) };
const dayButtons = () => all(scope, "[data-rw-day]");
const ready = () => !!s.day && s.parts.length > 0;
const pages = () => Math.max(1, Math.ceil(s.days.length / TOUR.perPage));
/** A nav button disables itself on the first or last page, so focus moves to that page's first day. */
const keepFocus = (button) => {
if (!button.disabled) return;
const firstDay = dayButtons()[s.page * TOUR.perPage];
if (firstDay) later(win, () => focusEl(firstDay));
};
const render = () => {
const first = s.page * TOUR.perPage;
dayButtons().forEach((b, i) => {
b.hidden = i < first || i >= first + TOUR.perPage;
b.setAttribute("aria-pressed", String(b.getAttribute("data-rw-day") === s.day));
});
if (prev) prev.disabled = s.page === 0;
if (next) next.disabled = s.page >= pages() - 1;
const off = s.day ? disabledParts(s.day, s.now, zone) : [];
partButtons.forEach((b) => {
const p = b.getAttribute("data-rw-part");
b.setAttribute("aria-pressed", String(s.parts.indexOf(p) >= 0));
b.disabled = off.indexOf(p) >= 0;
if (b.disabled) b.setAttribute("title", COPY.tourTimePassed);
else b.removeAttribute("title");
});
const text = !s.day ? COPY.pickDay : s.parts.length === 0 ? COPY.pickTime : "";
if (hint) {
hint.textContent = text;
hint.hidden = !text;
}
if (button) {
button.disabled = !ready() || (busy ? busy() : false);
if (ready() || !hintId) button.removeAttribute("aria-describedby");
else button.setAttribute("aria-describedby", hintId);
}
};
/** The dialog opened: the days start from now again (the markup may be days old). */
const refresh = () => {
s.now = new Date();
const days = tourDays(s.now, zone);
// Server markup carries no days (they come from the visitor's clock), so build the buttons here the first time; without this the picker showed only its arrows.
const dayList = one(scope, ".rw-tour__day-list");
if (dayList && dayButtons().length !== days.length) {
dayList.textContent = "";
days.forEach((d) => {
const b = element(win.document, "button", { type: "button", class: "rw-tour__day", "aria-pressed": "false", "data-rw-day": d.iso });
b.appendChild(element(win.document, "span", { class: "rw-tour__weekday" }, d.weekday));
b.appendChild(element(win.document, "span", { class: "rw-tour__date" }, d.day));
b.appendChild(element(win.document, "span", { class: "rw-tour__month" }, d.month));
dayList.appendChild(b);
});
if (daysBox) daysBox.setAttribute("data-rw-days", JSON.stringify(days));
s.page = 0;
}
const buttons = dayButtons();
if (days.length === buttons.length && days.some((d, i) => buttons[i].getAttribute("data-rw-day") !== d.iso)) {
days.forEach((d, i) => {
const b = buttons[i];
b.setAttribute("data-rw-day", d.iso);
const spans = all(b, "span");
if (spans[0]) spans[0].textContent = d.weekday;
if (spans[1]) spans[1].textContent = d.day;
if (spans[2]) spans[2].textContent = d.month;
});
if (daysBox) daysBox.setAttribute("data-rw-days", JSON.stringify(days));
}
s.days = days.length === buttons.length ? days : s.days;
if (s.day && !s.days.some((d) => d.iso === s.day)) {
s.day = null;
s.parts = [];
}
// A time of day picked earlier may have passed while the dialog was closed.
if (s.day) {
const off = disabledParts(s.day, s.now, zone);
s.parts = s.parts.filter((p) => off.indexOf(p) < 0);
}
render();
};
const reset = () => {
s.day = null;
s.parts = [];
s.page = 0;
render();
};
scope.addEventListener("click", (e) => {
const dayButton = up(e.target, "data-rw-day");
if (dayButton && within(scope, dayButton)) {
s.day = dayButton.getAttribute("data-rw-day");
const off = disabledParts(s.day, s.now, zone);
s.parts = s.parts.filter((p) => off.indexOf(p) < 0);
return render();
}
const part = up(e.target, "data-rw-part");
if (part && within(scope, part) && !part.disabled) {
s.parts = toggleDayPart(s.parts, part.getAttribute("data-rw-part"), s.day ? disabledParts(s.day, s.now, zone) : []);
return render();
}
if (prev && up(e.target, "data-rw-days-prev") === prev && s.page > 0) {
s.page -= 1;
render();
return keepFocus(prev);
}
if (next && up(e.target, "data-rw-days-next") === next && s.page < pages() - 1) {
s.page += 1;
render();
keepFocus(next);
}
});
render();
return { state: s, ready: ready, render: render, refresh: refresh, reset: reset };
}
/** src/tour-modal.tsx TourSuccess: the summary rows, each shown only with a value. */
function fillSummary(section, summary) {
["date", "time", "phone", "email"].forEach((key) => {
const row = one(section, '[data-rw-summary="' + key + '"]');
if (!row) return;
const dd = one(row, "dd");
if (dd) dd.textContent = summary[key] || "";
row.hidden = !summary[key];
});
}
function showStep(scope, step) {
all(scope, "[data-rw-step]").forEach((s) => (s.hidden = s.getAttribute("data-rw-step") !== step));
}
// src/contact-modal.tsx ContactAgentModal: the message, then the tour date step, then the summary.
function contactScreen(win, host) {
const doc = win.document;
const rootEl = up(host, "data-rw-detail");
const form = one(host, 'form[data-rw-step="form"]');
const tourStep = one(host, '[data-rw-step="tour"]');
const sent = one(host, '[data-rw-step="sent"]');
if (!rootEl || !form || !tourStep || !sent) return;
let step = "form";
let person = null;
let tourSending = false;
const close = () => {
shell.close();
if (step === "sent") resetAll();
};
const shell = modalShell(win, host, close);
if (!shell) return;
const submitTour = one(tourStep, "[data-rw-tour-submit]");
const schedule = tourSchedule(win, tourStep, submitTour, () => tourSending);
const tourStatus = one(tourStep, "[data-rw-form-status]");
const go = (s) => {
step = s;
showStep(host, s);
// The step that held focus is now hidden, so focus moves to the success title.
if (s === "sent") later(win, () => focusEl(one(sent, "h3")));
};
const lead = bindLead(win, form, {
sent: (l, fields) => {
person = { fields: fields, consentText: l.consent.text };
go("tour");
later(win, () => focusEl(one(tourStep, "h3")));
},
});
if (!lead) return;
function resetAll() {
lead.reset();
person = null;
schedule.reset();
const err = one(tourStep, "[data-rw-form-error]");
if (err) err.parentNode.removeChild(err);
go("form");
}
if (submitTour)
submitTour.addEventListener("click", () => {
const s = schedule.state;
if (!person || !schedule.ready() || tourSending) return;
const f = person.fields;
const tourLead = buildLead({
kind: "tour",
fields: { firstName: f.firstName, lastName: f.lastName, email: f.email, phone: f.phone, message: "", tourDate: s.day, tourTime: partsValue(s.parts), consentContact: true, consentAlerts: f.consentAlerts, website: f.website },
consentText: person.consentText,
listing: lead.listing,
pageUrl: win.location.href,
referrer: doc.referrer || null,
campaign: currentAttribution(win),
});
const old = one(tourStep, "[data-rw-form-error]");
if (old) old.parentNode.removeChild(old);
tourSending = true;
schedule.render();
if (tourStatus) tourStatus.textContent = COPY.sending;
postJson(win, form.getAttribute("action"), tourLead).then((ok) => {
tourSending = false;
if (tourStatus) tourStatus.textContent = "";
schedule.render();
if (!ok) {
if (tourStatus) tourStatus.parentNode.insertBefore(element(doc, "p", { class: "rw-form__error", role: "alert", "data-rw-form-error": "" }, COPY.tourError), tourStatus.nextSibling);
return;
}
pushDataLayer(win, "generate_lead", generateLeadParams(tourLead, lead.listing));
fillSummary(sent, { date: tourDateLong(s.day), time: partsLabel(s.parts), phone: formatUsPhone(f.phone), email: String(f.email || "").trim() });
go("sent");
});
});
const done = one(sent, "[data-rw-done]");
if (done) done.addEventListener("click", close);
screens(rootEl).contact = (req, from) => {
if (step === "sent") resetAll();
schedule.refresh();
shell.open(from);
};
}
// src/tour-modal.tsx RequestTourModal: the date step, the contact form, then the summary.
function tourScreen(win, host) {
const rootEl = up(host, "data-rw-detail");
const dateStep = one(host, '[data-rw-step="date"]');
const form = one(host, 'form[data-rw-step="info"]');
const sent = one(host, '[data-rw-step="sent"]');
if (!rootEl || !dateStep || !form || !sent) return;
let step = "date";
const close = () => {
shell.close();
if (step === "sent") resetAll();
};
const shell = modalShell(win, host, close);
if (!shell) return;
const nextButton = one(dateStep, "[data-rw-next]");
const schedule = tourSchedule(win, dateStep, nextButton, null);
const nameInput = form.elements.namedItem("fullName");
const nameHint = one(form, "[data-rw-name-hint]");
const setField = (name, v) => {
const el = form.elements.namedItem(name);
if (el) el.value = v;
};
const nameError = (on) => {
if (nameHint) nameHint.hidden = !on;
if (!nameInput) return;
if (on) {
nameInput.setAttribute("aria-invalid", "true");
if (nameHint && nameHint.id) nameInput.setAttribute("aria-describedby", nameHint.id);
} else {
nameInput.removeAttribute("aria-invalid");
nameInput.removeAttribute("aria-describedby");
}
};
const go = (s) => {
step = s;
showStep(host, s);
// The step that held focus is now hidden, so focus moves to the success title.
if (s === "sent") later(win, () => focusEl(one(sent, "h3")));
};
const lead = bindLead(win, form, {
check: () => {
if (splitFullName(nameInput ? nameInput.value : "")) return true;
nameError(true);
focusEl(nameInput);
return false;
},
fields: (f) => {
const names = splitFullName(nameInput ? nameInput.value : "");
return Object.assign({}, f, { firstName: names.firstName, lastName: names.lastName, message: "", tourDate: schedule.state.day, tourTime: partsValue(schedule.state.parts) });
},
error: COPY.tourError,
sent: (l, f) => {
const s = schedule.state;
fillSummary(sent, { date: tourDateLong(s.day), time: partsLabel(s.parts), phone: formatUsPhone(f.phone), email: String(f.email || "").trim() });
go("sent");
},
});
if (!lead) return;
function resetAll() {
lead.reset();
nameError(false);
schedule.reset();
go("date");
}
if (nameInput) {
nameInput.addEventListener("input", () => {
if (nameHint && !nameHint.hidden && splitFullName(nameInput.value)) nameError(false);
});
nameInput.addEventListener("blur", () => nameError(nameInput.value.trim() !== "" && !splitFullName(nameInput.value)));
}
if (nextButton)
nextButton.addEventListener("click", () => {
if (!schedule.ready()) return;
setField("tourDate", schedule.state.day);
setField("tourTime", partsValue(schedule.state.parts));
go("info");
later(win, () => focusEl(one(form, "h3")));
});
const back = one(form, "[data-rw-back]");
if (back)
back.addEventListener("click", () => {
go("date");
later(win, () => focusEl(one(dateStep, "h3")));
});
const done = one(sent, "[data-rw-done]");
if (done) done.addEventListener("click", close);
screens(rootEl).tour = (req, from) => {
if (step === "sent") resetAll();
schedule.refresh();
shell.open(from);
};
}
// src/location-map.tsx LocationMap: the pin, Street view and Map view, and the expand button.
function locationMap(win, el) {
const doc = win.document;
const key = el.getAttribute("data-rw-maps-key") || "";
const canvas = one(el, "[data-rw-map-canvas]");
const lat = Number(el.getAttribute("data-rw-lat"));
const lng = Number(el.getAttribute("data-rw-lng"));
if (!key || !canvas || !isFinite(lat) || !isFinite(lng)) return;
if (looksSecret(key)) return warn(win, "data-rw-maps-key holds a Ruuster secret key. Put your Google Maps browser key there, and replace the secret key now.");
const mapId = el.getAttribute("data-rw-map-id") || "";
const priceLabel = el.getAttribute("data-rw-price-label") || "";
const address = el.getAttribute("data-rw-address") || "";
const message = one(el, ".rw-locmap__message");
const streetButton = one(el, "[data-rw-street-toggle]");
const expandButton = one(el, "[data-rw-expand]");
let map = null;
let cssExpanded = false;
const setStreet = (on) => {
if (streetButton) setIconText(streetButton, on ? ICON("map-white") : ICON("street-view-white"), on ? COPY.mapView : COPY.streetView);
};
const paintExpand = () => {
const on = cssExpanded || doc.fullscreenElement === el;
el.classList.toggle("rw-locmap--expanded", cssExpanded);
if (!expandButton) return;
expandButton.setAttribute("aria-label", on ? COPY.collapseMap : COPY.expandMap);
setIconText(expandButton, on ? ICON("minimize") : ICON("maximize"));
};
const marker = () => {
const m = element(doc, "div", { class: "rw-locmap__marker", title: address });
if (priceLabel) m.appendChild(element(doc, "span", { class: "rw-locmap__pill" }, priceLabel));
const pin = element(doc, "span", { class: "rw-locmap__pin", "aria-hidden": "true" });
pin.appendChild(iconSvg(doc, ICON("map-pin-black"), 24, 30));
m.appendChild(pin);
return m;
};
const start = () =>
loadMaps(win, key)
.then((g) =>
Promise.all([g.importLibrary("maps"), g.importLibrary("core")]).then((libs) => {
const maps = libs[0];
const core = libs[1];
const position = { lat: lat, lng: lng };
const m = new maps.Map(canvas, { center: position, zoom: 14, mapId: mapId || undefined, disableDefaultUI: true, zoomControl: true, clickableIcons: false, gestureHandling: "auto" });
const content = marker();
const placed = mapId
? g.importLibrary("marker").then((lib) => new lib.AdvancedMarkerElement({ map: m, position: position, content: content, title: address }))
: Promise.resolve().then(() => {
const overlay = new maps.OverlayView();
overlay.onAdd = () => {
const panes = overlay.getPanes();
if (panes) panes.overlayMouseTarget.appendChild(content);
};
overlay.draw = () => {
const proj = overlay.getProjection();
const p = proj ? proj.fromLatLngToDivPixel(new core.LatLng(lat, lng)) : null;
if (!p) return;
content.style.position = "absolute";
content.style.left = p.x + "px";
content.style.top = p.y + "px";
content.style.transform = "translate(-50%,-100%)";
};
overlay.onRemove = () => {
if (content.parentNode) content.parentNode.removeChild(content);
};
overlay.setMap(m);
});
return placed.then(() => {
const pano = m.getStreetView();
pano.addListener("visible_changed", () => setStreet(pano.getVisible()));
map = m;
});
}),
)
.then(
() => {
if (message && message.parentNode) message.parentNode.removeChild(message);
if (streetButton) streetButton.disabled = false;
},
() => {
if (message) message.textContent = COPY.mapFailed;
},
);
if (streetButton)
streetButton.addEventListener("click", () => {
if (!map) return;
const pano = map.getStreetView();
if (pano.getVisible()) pano.setVisible(false);
else {
pano.setPosition({ lat: lat, lng: lng });
pano.setVisible(true);
}
});
if (expandButton)
expandButton.addEventListener("click", () => {
if (cssExpanded) {
cssExpanded = false;
return paintExpand();
}
if (doc.fullscreenElement === el) {
if (typeof doc.exitFullscreen === "function") doc.exitFullscreen();
return;
}
const css = () => {
cssExpanded = true;
paintExpand();
};
if (doc.fullscreenEnabled && typeof el.requestFullscreen === "function") {
const p = el.requestFullscreen();
if (p && typeof p.catch === "function") p.catch(css);
} else css();
});
doc.addEventListener("fullscreenchange", paintExpand);
doc.addEventListener("keydown", (e) => {
if (e.key === "Escape" && cssExpanded) {
cssExpanded = false;
paintExpand();
}
});
whenNear(win, el, "300px", start);
}
// src/mortgage.tsx MortgageCalculator: the fields, the request and how each answer reads.
function mortgage(win, section) {
const doc = win.document;
const key = section.getAttribute("data-rw-key") || "";
if (looksSecret(key)) {
warn(win, "data-rw-key on the mortgage calculator holds a secret key. A page never carries a key, so the calculator sends nothing. Remove it and replace the secret key now.");
return;
}
const base = section.getAttribute("data-rw-base-url") || MORTGAGE_BASE;
const start = readJson(section.getAttribute("data-rw-mortgage-query"), {});
const country = section.getAttribute("data-country") || countryOf(start.state);
const defaults = country === "CA" ? { loanType: "fixed", term: "5" } : { loanType: "conventional", term: "30" };
const fields = (name) => all(section, '[data-rw-mortgage-field="' + name + '"]');
const field = (name) => fields(name)[0] || null;
const outs = (name) => all(section, '[data-rw-mortgage-out="' + name + '"]');
const listPrice = Number(start.price) || 0;
const s = {
price: listPrice,
downMode: "%",
downPercent: typeof start.downPaymentPercent === "number" ? start.downPaymentPercent : 20,
downDollars: 0,
loanType: field("loanType") ? field("loanType").value : defaults.loanType,
term: field("term") ? field("term").value : defaults.term,
creditScore: field("creditScore") ? field("creditScore").value : "760+",
rate: null,
tax: field("propertyTaxAnnual") ? parseMoney(field("propertyTaxAnnual").value) : null,
insurance: field("insuranceAnnual") ? parseMoney(field("insuranceAnnual").value) : null,
hoa: field("hoaMonthly") ? parseMoney(field("hoaMonthly").value) : null,
est: null,
status: "idle",
};
const priceInput = field("price");
if (priceInput && parseMoney(priceInput.value) !== null) s.price = parseMoney(priceInput.value);
s.downDollars = Math.round((s.price * s.downPercent) / 100);
const dollarsNow = () => (s.downMode === "$" ? Math.min(s.downDollars, s.price) : (s.price * s.downPercent) / 100);
const percentNow = () => (s.downMode === "%" ? s.downPercent : s.price > 0 ? (dollarsNow() / s.price) * 100 : 0);
const query = () => {
const t = termParams(s.term, country);
return {
price: s.price,
downPayment: s.downMode === "$" ? Math.min(s.downDollars, s.price) : null,
downPaymentPercent: s.downMode === "%" ? s.downPercent : null,
loanType: s.loanType !== defaults.loanType ? s.loanType : null,
termYears: t.termYears !== null && String(t.termYears) !== defaults.term ? t.termYears : null,
rateType: t.rateType,
creditScore: country === "US" && s.creditScore !== "760+" ? s.creditScore : null,
rate: s.rate,
state: start.state || null,
zip: start.zip || null,
hoaMonthly: s.hoa,
propertyTaxAnnual: s.tax,
insuranceAnnual: s.insurance,
};
};
const valid = () => s.price >= 1000 && s.price <= 100000000 && (s.downMode === "%" ? s.downPercent <= 100 : s.downDollars <= s.price) && (s.rate === null || s.rate <= 15);
const setText = (name, text) => outs(name).forEach((o) => (o.textContent = text));
const setValue = (name, v, except) =>
fields(name).forEach((f) => {
if (f !== except) f.value = v;
});
/** The inputs and hints that follow the visitor's own choices (no answer needed). */
const paintInputs = (except) => {
setValue("price", String(s.price), except);
const downInputs = fields("downPayment");
downInputs.forEach((f) => {
f.setAttribute("max", String(s.downMode === "$" ? s.price : 100));
f.setAttribute("step", s.downMode === "$" ? "1000" : "0.5");
});
setValue("downPayment", String(s.downMode === "$" ? Math.round(dollarsNow()) : s.downPercent), except);
fields("downMode").forEach((r) => (r.checked = r.value === s.downMode));
setText("downHint", s.downMode === "$" ? fill(COPY.downPaymentShare, { pct: pctText(percentNow()) }) : fill(COPY.downPaymentAmount, { amount: mortgageMoney(dollarsNow()) }));
const shown = s.rate !== null ? s.rate : s.est ? s.est.rate.annualPercent : null;
fields("rate").forEach((f) => {
if (f === except) return;
f.value = shown === null ? (f.type === "range" ? "0" : "") : String(shown);
});
outs("rateHint").forEach((hint) => {
hint.textContent = "";
if (s.rate !== null) {
hint.appendChild(doc.createTextNode(COPY.rateYours + ". "));
const reset = element(doc, "button", { type: "button", class: "rw-mortgage__link", "data-rw-mortgage-reset": "" }, COPY.rateReset);
reset.addEventListener("click", () => {
s.rate = null;
changed();
});
hint.appendChild(reset);
} else if (s.est) hint.textContent = fill(COPY.rateAsOf, { date: rateDate(s.est.rate.asOf) });
});
};
const paintStatus = () => {
setText("status", s.status === "loading" ? COPY.mortgageUpdating : s.status === "error" ? COPY.mortgageError : "");
const retry = one(section, "[data-rw-mortgage-retry]");
if (retry) retry.hidden = s.status !== "error";
};
const fillSelect = (select, options, value) => {
if (!select || !options) return;
const now = all(select, "option").map((o) => o.value + "\u0000" + o.textContent).join("\u0001");
const want = options.map((o) => o.value + "\u0000" + o.label).join("\u0001");
if (now !== want) {
select.textContent = "";
options.forEach((o) => select.appendChild(element(doc, "option", { value: o.value }, o.label)));
}
select.value = value;
};
/** Every figure of an answer, as the React calculator prints it. */
const paintAnswer = () => {
const e = s.est;
if (!e) return;
const m = e.monthly;
fillSelect(field("loanType"), e.options && e.options.loanTypes, s.loanType);
fillSelect(field("term"), e.options && e.options.terms, s.term);
MORTGAGE_LINES.forEach((line) => setText(line, mortgageMoney(m[line])));
setText("total", mortgageMoney(m.total));
all(section, "[data-rw-mortgage-est]").forEach((b) => (b.hidden = !m.provenance || m.provenance[b.getAttribute("data-rw-mortgage-est")] !== "estimated"));
const circ = 2 * Math.PI * 54;
donutArcs(m, circ).forEach((a) => {
const seg = one(section, '[data-rw-mortgage-seg="' + a.line + '"]');
if (!seg) return;
seg.setAttribute("stroke-dasharray", a.len.toFixed(3) + " " + (circ - a.len).toFixed(3));
seg.setAttribute("stroke-dashoffset", (-a.offset).toFixed(3));
});
outs("note").forEach((n) => {
n.textContent = e.mortgageInsuranceNote || "";
n.hidden = !e.mortgageInsuranceNote;
});
outs("reasons").forEach((r) => {
r.hidden = e.eligible;
const ul = one(r, "ul");
if (!ul) return;
ul.textContent = "";
(e.ineligibleReasons || []).forEach((t) => ul.appendChild(element(doc, "li", {}, t)));
});
outs("stale").forEach((x) => (x.hidden = !e.stale));
outs("disclosures").forEach((d) => {
d.textContent = "";
(e.requiredDisclosures || []).forEach((t) => d.appendChild(element(doc, "p", {}, t)));
});
const place = { propertyTaxAnnual: Math.round(m.propertyTax * 12), insuranceAnnual: Math.round(m.homeInsurance * 12), hoaMonthly: Math.round(m.hoa) };
Object.keys(place).forEach((name) => fields(name).forEach((f) => f.setAttribute("placeholder", place[name].toLocaleString("en-US"))));
};
// The requests: wait 350 ms after the last change, cancel the one before, keep the last answer.
let timer = null;
let ctrl = null;
let last = null;
// When the markup already prints an answer, the start-up request is a quiet refresh: if it fails,
// the printed answer stays and no error shows. Errors show only after the visitor changes something.
let quiet = outs("total").some((o) => o.textContent.trim() !== "");
const run = (url) => {
if (ctrl) ctrl.abort();
const mine = (ctrl = new win.AbortController());
s.status = "loading";
paintStatus();
win
.fetch(url, { signal: mine.signal, headers: { Accept: "application/json" } })
.then((res) =>
res
.json()
.catch(() => null)
.then((body) => {
if (mine.signal.aborted) return;
if (res.ok && body && body.ok === true && body.data) {
s.est = body.data;
s.status = "idle";
paintAnswer();
paintInputs(null);
} else s.status = quiet ? "idle" : "error";
paintStatus();
}),
)
.catch(() => {
if (mine.signal.aborted) return;
s.status = quiet ? "idle" : "error";
paintStatus();
});
};
const request = () => {
if (!valid() || !start.state) return;
const url = mortgageUrl(base, key, query());
last = url;
if (timer !== null) win.clearTimeout(timer);
if (ctrl) ctrl.abort();
timer = win.setTimeout(() => {
timer = null;
run(url);
}, 350);
};
function changed(except) {
quiet = false;
paintInputs(except || null);
request();
}
section.addEventListener("input", (e) => onField(e.target, false));
section.addEventListener("change", (e) => onField(e.target, true));
function onField(t, isChange) {
const name = t && t.getAttribute ? t.getAttribute("data-rw-mortgage-field") : null;
if (!name) return;
const n = parseMoney(t.value);
if (name === "price") {
if (n === null) return;
s.price = n;
if (s.downMode === "$" && s.downDollars > n) s.downDollars = n;
} else if (name === "downPayment") {
if (n === null) return;
if (s.downMode === "$") s.downDollars = Math.min(n, s.price);
else s.downPercent = Math.min(n, 100);
} else if (name === "downMode") {
if (!isChange || !t.checked || t.value === s.downMode) return;
if (t.value === "$") s.downDollars = Math.round(dollarsNow());
else s.downPercent = Math.round(percentNow() * 100) / 100;
s.downMode = t.value;
} else if (name === "rate") s.rate = n;
else if (name === "loanType" || name === "term" || name === "creditScore") {
if (!isChange) return;
s[name] = t.value;
} else if (name === "propertyTaxAnnual") s.tax = n;
else if (name === "insuranceAnnual") s.insurance = n;
else if (name === "hoaMonthly") s.hoa = n;
else return;
// A select fires change only; a text or range input fires input first, so change adds nothing.
if (isChange && t.tagName === "INPUT" && t.type !== "radio") return;
changed(t);
}
const retry = one(section, "[data-rw-mortgage-retry]");
if (retry)
retry.addEventListener("click", () => {
if (timer !== null) win.clearTimeout(timer);
timer = null;
if (last) run(last);
});
// The markup carries the server's first answer (or none); ask again quietly with the publishable key.
request();
}
const WIDGETS = [
["[data-rw-ga4-event]", ga4Event],
['[data-rw-gallery="card"]', cardGallery],
["[data-rw-description]", showMore],
["form[data-rw-search]", searchBox],
["form[data-rw-filters]", filters],
["form[data-rw-autosubmit]", filters],
["[data-rw-drawer-root]", filtersDrawer],
["form[data-rw-lead]", leadForm],
["[data-rw-map]", areaMap],
["[data-rw-detail]", detailRoot],
["[data-rw-detail-header]", detailHeader],
['dialog[data-rw-screen="gallery"]', fullGallery],
['[data-rw-screen="share"]', shareScreen],
['[data-rw-screen="contact"]', contactScreen],
['[data-rw-screen="tour"]', tourScreen],
["[data-rw-open-houses]", openHouses],
["[data-rw-location-map]", locationMap],
["[data-rw-mortgage]", mortgage],
];
/** Enhances every widget inside `scope` (default the whole page) that is not enhanced yet. */
function enhance(win, scope) {
rememberCampaign(win);
WIDGETS.forEach((w) =>
all(scope || win.document, w[0]).forEach((el) => {
if (claim(el, w[0])) w[1](win, el);
}),
);
}
return {
version: "2",
start: (win) => enhance(win),
enhance: enhance,
isPublishableKey: isPublishableKey,
suggestUrl: suggestUrl,
groupRows: groupRows,
whereHref: whereHref,
filterRowNodes: filterRowNodes,
filterNodeHtml: filterNodeHtml,
activeFilterRows: activeFilterRows,
filterParamsFromUrl: filterParamsFromUrl,
filterOptionsUrl: filterOptionsUrl,
imgAttrs: imgAttrs,
stepIndex: stepIndex,
swipeStep: swipeStep,
campaignFromUrl: campaignFromUrl,
currentCampaign: currentCampaign,
currentAttribution: currentAttribution,
touchFrom: touchFrom,
rememberCampaign: rememberCampaign,
buildLead: buildLead,
generateLeadParams: generateLeadParams,
pushDataLayer: pushDataLayer,
pinsBox: pinsBox,
outlinePaths: outlinePaths,
worldPixel: worldPixel,
clusterPins: clusterPins,
outlineCenter: outlineCenter,
mapsScriptUrl: mapsScriptUrl,
bboxParam: bboxParam,
bboxHref: bboxHref,
polygonParam: polygonParam,
polygonHref: polygonHref,
clearAreaHref: clearAreaHref,
polygonsOf: polygonsOf,
distanceMetres: distanceMetres,
circlePolygon: circlePolygon,
closesRing: closesRing,
shareUrlAbsolute: shareUrlAbsolute,
facebookShareUrl: facebookShareUrl,
whatsAppShareUrl: whatsAppShareUrl,
mailtoShareUrl: mailtoShareUrl,
splitFullName: splitFullName,
tourDays: tourDays,
disabledParts: disabledParts,
toggleDayPart: toggleDayPart,
partsValue: partsValue,
partsLabel: partsLabel,
tourDateLong: tourDateLong,
formatUsPhone: formatUsPhone,
mortgageQueryString: mortgageQueryString,
mortgageUrl: mortgageUrl,
termParams: termParams,
countryOf: countryOf,
mortgageMoney: mortgageMoney,
rateDate: rateDate,
donutArcs: donutArcs,
};
});