/* Evernest Homes: the listings pages (market, home, no-longer-available). Plain CSS, no build step. */
/* The look of www.evernest.co (marketing's launch plan, section 7, Graham Robinson, 2026-12-03): its fonts (Aleo for text,
   Nunito Sans's 7pt cut for headings, buttons and labels), its colors, its header and footer. The fonts are served from here,
   as the page's Content-Security-Policy asks: the latin files Google Fonts serves, under the SIL Open Font License
   (fonts/OFL-*.txt). Each has a fallback face sized like it, so the text barely moves when the font arrives. */
@font-face { font-display: swap; font-family: "Aleo"; font-style: normal; font-weight: 100 900; src: url(fonts/aleo.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-display: swap; font-family: "Nunito Sans"; font-style: normal; font-weight: 200 1000; src: url(fonts/nunito-sans.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { ascent-override: 87.4%; descent-override: 28.5%; font-family: "Aleo fallback"; line-gap-override: 0%; size-adjust: 103.5%; src: local("Georgia"); }
/* Nunito Sans is only ever used from weight 700 up, so its stand-in is Arial Bold. */
@font-face { ascent-override: 90.7%; descent-override: 31.7%; font-family: "Nunito Sans fallback"; font-weight: 100 1000; line-gap-override: 0%; size-adjust: 111.5%; src: local("Arial Bold"), local("Arial-BoldMT"); }
:root {
  --surface: #ffffff; --ground: #f5f5f5; --ink: #27221f; --ink-2: #636569; --rule: #e5e7e3;
  --accent: #0035fa; --accent-ink: #ffffff; --offer: #8754af; --offer-bg: #f4eefa; --pos: #1d6b3f; --pos-bg: #dcfce7; --warn: #7a4b00; --warn-bg: #fdecc8;
  --cyan: #1bdbea; --lilac: #b9a5ff; --brand: linear-gradient(45deg, var(--cyan), var(--lilac));
  --text: "Aleo", "Aleo fallback", Georgia, "Noto Serif", serif;
  --head: "Nunito Sans", "Nunito Sans fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* --top is the header as it stays on screen (the bar); --util the strip above it on a phone, which scrolls away. */
  --util: 44px; --bar: 60px; --top: var(--bar); --tabs: 0px; --footpad: 0px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; accent-color: var(--accent); background: var(--ground); color: var(--ink); font: 16px/1.5 var(--text); margin: 0; }
a { color: var(--accent); text-underline-offset: .15em; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 800; }
h1 { font-weight: 900; letter-spacing: -.01em; }
img { max-width: 100%; }
small { font-size: .8em; font-weight: 400; }
[hidden] { display: none !important; }

/* ---- header: the main site's bar, its blue to violet gradient with dark type. On a phone its links are a dark strip above
   the bar that scrolls away (the header sticks with the strip above the screen), and the bar keeps the logo, the market and
   its phone; from 821px the links sit in the bar. At 360px the market's name wraps to a second line rather than being cut. ---- */
.top { background: var(--brand); display: grid; grid-template-areas: "util util" "brand phone"; grid-template-columns: minmax(0, 1fr) auto; position: sticky; top: calc(-1 * var(--util)); z-index: 1100; }
.util { background: var(--ink); display: flex; grid-area: util; height: var(--util); justify-content: space-between; overflow-x: auto; padding: 0 4px; scrollbar-width: none; }
.util::-webkit-scrollbar { display: none; }
.util a { align-items: center; color: #fff; display: flex; font: 700 14px/1 var(--head); padding: 0 8px; text-decoration: none; white-space: nowrap; }
.util a:hover, .util a[aria-current] { text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.brand { align-items: center; display: flex; gap: 10px; grid-area: brand; height: var(--bar); min-width: 0; padding-left: 12px; }
.brand .logo { align-items: center; display: flex; flex: 0 0 auto; min-height: 44px; }
.brand img { display: block; height: 24px; width: auto; }
.brand .market { align-items: center; border-left: 1px solid rgba(39, 34, 31, .35); color: var(--ink); display: flex; font: 800 15px/1.15 var(--head); max-height: var(--bar); min-height: 44px; min-width: 0; overflow: hidden; padding-left: 10px; text-decoration: none; }
.brand .market:hover { text-decoration: underline; }
.phone { align-items: center; align-self: center; color: var(--ink); display: flex; font: 800 14px/1 var(--head); gap: 6px; grid-area: phone; min-height: 44px; padding: 0 12px 0 8px; text-decoration: none; white-space: nowrap; }
.phone:hover { text-decoration: underline; }
.phone::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2327221f'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25c1.1.37 2.3.57 3.6.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat; content: ""; display: none; flex: 0 0 auto; height: 16px; width: 16px; }
/* Map view on a phone fills the screen below the header, so the strip goes. */
body.showmap { --util: 0px; }
body.showmap .util { display: none; }
@media (min-width: 400px) {
  .brand img { height: 26px; }
  .brand .market { font-size: 16px; }
  .phone { font-size: 15px; }
  .phone::before { display: block; }
}
@media (min-width: 821px) {
  :root { --util: 0px; --bar: 64px; }
  .top { grid-template-areas: "brand util phone"; grid-template-columns: auto minmax(0, 1fr) auto; top: 0; }
  .util { background: none; height: auto; justify-content: flex-end; padding: 0 4px; }
  .util a { color: var(--ink); font-size: 15px; font-weight: 800; padding: 0 12px; }
  .util a:hover, .util a[aria-current] { text-decoration-color: var(--ink); }
  .brand { gap: 14px; padding-left: 24px; }
  .brand img { height: 32px; }
  .brand .market { padding-left: 14px; }
  .phone { padding-right: 24px; }
}
body:has(.tabs) { --tabs: 45px; }
/* The bar holds the tabs and, on a phone where they scroll sideways, a fade at each edge with more tabs past it (site.js
   sets more-l / more-r; Brett Drevlow, Lighthouse QA item 14, 2026-11-23). A listing marks Homes for Rent with "on". */
.tabbar { background: var(--surface); border-bottom: 1px solid var(--rule); height: var(--tabs); position: sticky; top: var(--top); z-index: 1090; }
.tabbar::before, .tabbar::after { bottom: 0; content: ""; opacity: 0; pointer-events: none; position: absolute; top: 0; transition: opacity .15s ease; width: 36px; z-index: 1; }
.tabbar::before { background: linear-gradient(to right, var(--surface) 25%, rgba(255, 255, 255, 0)); left: 0; }
.tabbar::after { background: linear-gradient(to left, var(--surface) 25%, rgba(255, 255, 255, 0)); right: 0; }
.tabbar.more-l::before, .tabbar.more-r::after { opacity: 1; }
.tabs { display: flex; gap: 4px; height: 100%; overflow-x: auto; overflow-y: hidden; padding: 0 12px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { align-items: center; border-bottom: 3px solid transparent; border-top: 3px solid transparent; color: var(--ink-2); display: flex; flex: 0 0 auto; font: 800 15px/1.15 var(--head); justify-content: center; padding: 0 10px; text-align: center; text-decoration: none; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current], .tabs a.on { border-bottom-color: var(--accent); color: var(--accent); }
/* On a phone the tabs share the width and a long name takes two lines, so every tab is in sight at 360px; they still scroll
   if they ever can't fit. */
@media (max-width: 560px) {
  .tabs { gap: 0; padding: 0 4px; }
  .tabs a { flex: 1 1 auto; font-size: 13px; padding: 0 5px; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .tabbar::before, .tabbar::after { transition: none; } }

/* ---- footer: the main site's, dark, ending in a band of the brand gradient with the Equal Housing Opportunity logo. A bar
   fixed along the bottom of the screen (Schedule a Showing, Compare homes, the calculator) sets --footpad, so the band runs
   on under it rather than hiding the links. ---- */
.foot { background: var(--ink); color: #fff; font-size: 15px; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.footin { display: grid; gap: 26px; margin: 0 auto; max-width: 1180px; padding: 36px 20px 24px; text-align: center; }
.fbrand .flogo { display: inline-block; }
.fbrand img { display: block; filter: invert(1); height: 32px; margin: 0 auto 10px; width: auto; }
.fbrand p { color: #e9e7e4; }
.fbrand p a { display: inline-block; padding: 11px 0; text-decoration: underline; }
.fcol h2 { color: #fff; font-size: 19px; font-weight: 900; line-height: 1.3; margin-bottom: 4px; }
.fcol ul { list-style: none; margin: 0; padding: 0; }
.fcol a { display: inline-block; padding: 11px 4px; }
.legal { border-top: 1px solid rgba(255, 255, 255, .16); color: #dedbd8; font-size: 13px; margin: 0 auto; max-width: 1180px; padding: 18px 20px 24px; text-align: center; }
.legal p + p { margin-top: 6px; }
.flinks { display: flex; flex-wrap: wrap; gap: 0 18px; justify-content: center; }
.foot .flinks a { align-items: center; display: inline-flex; min-height: 44px; text-decoration: underline; }
.eho { background: var(--brand); color: var(--ink); display: flex; justify-content: center; padding: 12px 16px calc(12px + var(--footpad)); }
.eho svg { display: block; fill: currentColor; }
.eho text { font: 800 7.4px var(--head); letter-spacing: .03em; text-anchor: middle; }
@media (min-width: 821px) {
  .footin { grid-template-columns: 1.4fr 1fr 1fr 1fr; padding: 48px 24px 28px; text-align: left; }
  .fbrand img { margin: 0 0 14px; }
  .fcol a { padding: 5px 0; }
  /* One row, split by the main site's thin rules. */
  .flinks { gap: 0; }
  .foot .flinks a { min-height: 32px; padding: 0 10px; }
  .flinks a + a { border-left: 1px solid rgba(255, 255, 255, .45); }
}

.btn { align-items: center; background: var(--accent); border: 1px solid var(--accent); border-radius: 999px; color: var(--accent-ink); cursor: pointer; display: inline-flex; font: 700 16px/1.25 var(--head); justify-content: center; min-height: 44px; padding: 10px 18px; text-align: center; text-decoration: none; transition: background-color .2s, border-color .2s, color .2s; }
.btn.alt { background: var(--ink); border-color: var(--ink); }
.btn.ghost { background: var(--surface); border-color: var(--rule); color: var(--ink); }
/* The main site's buttons turn white on hover; only where there is a hover, so a tapped button doesn't stay white. */
@media (hover: hover) {
  .btn:hover { background: var(--surface); color: var(--accent); }
  .btn.alt:hover { background: var(--surface); color: var(--ink); }
  .btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
}
.btn.big { display: flex; font-size: 17px; min-height: 50px; padding: 12px 18px; }
.btn.small { font-size: 14px; padding: 7px 14px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.mobileonly { display: none; }

/* ---- plain pages: all markets, not found, no longer available ---- */
.plain { margin: 0 auto; max-width: 960px; padding: 32px 16px; }
.plain h1 { font-size: 30px; line-height: 1.2; }
.plain h2 { font-size: 20px; margin: 28px 0 12px; }
.plain .lede { color: var(--ink-2); font-size: 18px; margin: 8px 0 20px; }
.plain .eyebrow { color: var(--warn); font-size: 13px; font-weight: 700; letter-spacing: .06em; margin-bottom: 6px; text-transform: uppercase; }
.plain.wide { max-width: 1160px; }
.markets { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); list-style: none; margin: 0; padding: 0; }
.markets a { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; color: var(--ink); display: block; overflow: hidden; text-decoration: none; }
.markets a:hover, .markets a:focus-visible { border-color: var(--accent); }
.markets .ph { aspect-ratio: 3 / 2; background: var(--rule); display: block; overflow: hidden; }
.markets .ph.none { background: linear-gradient(135deg, rgba(27, 219, 234, .22), rgba(185, 165, 255, .32)); }
.markets .ph img { display: block; height: 100%; object-fit: cover; transition: transform .25s ease; width: 100%; }
.markets a:hover .ph img { transform: scale(1.04); }
.markets .cap { align-items: baseline; display: flex; gap: 8px; justify-content: space-between; padding: 12px 14px; }
.markets .cap span { color: var(--ink-2); font-size: 14px; white-space: nowrap; }
.markets .hit { color: var(--ink-2); display: block; font-size: 13px; padding: 0 14px 12px; }
.markets .hit[hidden], .markets li[hidden] { display: none; }
.msearch { margin: 0 0 20px; max-width: 460px; }
/* site.js shows the search box: its room is kept while it is hidden, so the markets don't jump down when it appears
   (marketing's launch plan, Appendix A, 2026-12-03). Without scripts it stays out and takes no room. */
@media (scripting: enabled) { .msearch[hidden] { display: block !important; visibility: hidden; } }
.msearch label { color: var(--ink-2); display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.msearch input { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; color: var(--ink); font: inherit; font-size: 16px; height: 46px; padding: 0 14px; width: 100%; }
.msearch input:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 1px; }
.mnone { color: var(--ink-2); margin: 0 0 20px; }
/* the same list without photos (page not found) */
.markets.text { gap: 8px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.markets.text a { display: flex; gap: 8px; justify-content: space-between; padding: 12px 14px; }
.markets.text span { color: var(--ink-2); font-size: 14px; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .markets .ph img { transition: none; } .markets a:hover .ph img { transform: none; } }
@media (max-width: 560px) { .markets { gap: 12px; grid-template-columns: 1fr 1fr; } .markets .cap { display: block; padding: 10px 12px; } .markets .cap span { display: block; } }

/* ---- market page: filters and map stay put, the list scrolls ---- */
.marketpage { display: grid; grid-template-columns: 250px minmax(360px, 1fr) minmax(0, 1.1fr); height: calc(100vh - var(--top) - var(--tabs)); height: calc(100dvh - var(--top) - var(--tabs)); }
.filters { background: var(--surface); border-right: 1px solid var(--rule); overflow-y: auto; padding: 18px 16px; }
.filters h2 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.filters fieldset { border: 0; border-top: 1px solid var(--rule); margin: 14px 0 0; padding: 12px 0 0; }
.filters legend { float: left; font-weight: 600; margin-bottom: 6px; padding: 0; width: 100%; }
.check { align-items: baseline; clear: both; cursor: pointer; display: flex; gap: 8px; padding: 4px 0; }
.check span { flex: 1; }
.check small { color: var(--ink-2); white-space: nowrap; }
/* The slider is 44px tall for a finger; its track and handle are drawn the same size as before. */
.filters input[type=range] { clear: both; display: block; height: 44px; margin: 0; width: 100%; }
.filters output { color: var(--ink-2); font-size: 14px; }
.filters details { clear: both; }
.filters summary { color: var(--accent); cursor: pointer; padding: 4px 0; }
.filters .btn { margin-top: 16px; width: 100%; }

.list { overflow-y: auto; padding: 18px 16px 32px; }
.listhead h1 { font-size: 24px; line-height: 1.2; }
.count { color: var(--ink-2); margin-top: 2px; }
.tools { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }
.tools select { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; color: var(--ink); font: inherit; padding: 6px 8px; }
/* On a phone, Sort, Filters and Map / List share the first row: the sort shrinks rather than pushing a button onto a
   second line (Brett Drevlow, Lighthouse re-test, 2026-11-24: Birmingham's List button wrapped), and the sort box stays
   inside its own space. The special offers pill goes under that row, on one line and as tall as the buttons: squeezed into
   the row it wrapped to four lines and covered the sort (Brett Drevlow, "3 Quick Items", 2026-12-02). The ::before is the
   line break; with no pill it takes no room. */
@media (max-width: 820px) {
  .tools { flex-wrap: wrap; row-gap: 0; }
  .tools::before { content: ""; flex-basis: 100%; order: 1; }
  .tools > label:first-child { align-items: center; display: flex; flex: 1 1 0; gap: 6px; min-width: 0; white-space: nowrap; }
  .tools > label:first-child select { flex: 1 1 auto; max-width: 100%; min-width: 0; width: auto; }
  .tools .btn, .tools select { min-height: 44px; }
  .tools .btn { flex: 0 0 auto; white-space: nowrap; }
  .tools .pill { flex: 0 0 auto; margin-top: 10px; min-height: 44px; order: 2; white-space: nowrap; }
  /* Each filter is a 44px row for a finger (marketing's launch plan, Appendix A, 2026-12-03). */
  .check { align-items: center; min-height: 44px; padding: 0; }
}
/* Tap targets: the whole pill toggles its box, and is at least 36px tall (Brett Drevlow, Lighthouse QA item 15, 2026-11-23). */
.pill { align-items: center; background: var(--offer-bg); border: 1px solid transparent; border-radius: 999px; color: var(--offer); cursor: pointer; display: inline-flex; font-size: 14px; font-weight: 600; min-height: 36px; padding: 6px 12px; }
.pill input { flex: 0 0 auto; height: 18px; margin: 0 8px 0 0; width: 18px; }
.pill:has(input:checked) { border-color: var(--offer); }

.cards { display: grid; gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; display: grid; grid-template-columns: 42% 1fr; overflow: hidden; }
.card.hot { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(0, 53, 250, .2); }
.card .photo { background: var(--rule); display: block; min-height: 170px; position: relative; }
.card .photo img { height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; }
.cardbody { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 12px 14px; }
.card h2 { font-size: 17px; line-height: 1.3; }
/* The address link is 44px tall for a finger (it was 28: marketing's launch plan, Appendix A, 2026-12-03); the negative
   margin keeps the line where it was (item 15), and it sits over the lines next to it so a tap there still opens the home. */
.card h2 a { color: var(--ink); display: inline-block; margin: -11px 0; padding: 11px 0; position: relative; text-decoration: none; }
.card h2 a:hover { text-decoration: underline; }
/* A special offer shows up to two lines before it is cut (Brett Drevlow, Lighthouse QA item 16, 2026-11-23). */
.offer { -webkit-box-orient: vertical; -webkit-line-clamp: 2; background: var(--offer-bg); border-radius: 6px; color: var(--offer); display: -webkit-box; font-size: 13px; font-weight: 600; margin-bottom: 3px; overflow: hidden; padding: 3px 8px; }
.where, .specs { color: var(--ink-2); font-size: 14px; }
.avail { color: var(--pos); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.avail.soon { color: var(--warn); }
.cardfoot { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.price { font-size: 20px; font-weight: 800; }
.price small { color: var(--ink-2); }
.none { color: var(--ink-2); padding: 24px 0; }

.mapwrap { border-left: 1px solid var(--rule); position: relative; }
#map { background: #e8eaed; height: 100%; width: 100%; }
.pin { background: var(--ink); border: 2px solid #fff; border-radius: 999px; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); color: #fff; cursor: pointer; font-size: 12px; font-weight: 800; line-height: 1; padding: 5px 8px; white-space: nowrap; }
.pin.offerpin { background: var(--offer); }
.pin.hot { background: var(--accent); transform: scale(1.12); }
/* Each pin is a keyboard button (site.js): it draws 26px tall, and a tap lands anywhere within 42px of it (Brett Drevlow,
   Lighthouse QA item 4, 2026-11-23). */
.leaflet-div-icon.pinwrap, .leaflet-div-icon.clusterwrap { background: none; border: 0; }
/* The button itself is 44px tall, and a count 44px square, with the drawing where it was: Leaflet places a marker by its
   top left (leaflet.css) and its anchor (an inline margin), so the box moves up and out by the padding it gains
   (marketing's launch plan, Appendix A, 2026-12-03: pins were 26px). A marker given its own class loses leaflet-div-icon,
   so these name leaflet-marker-icon. */
.leaflet-marker-icon.pinwrap { padding: 9px 0; top: -9px; }
.leaflet-marker-icon.clusterwrap { box-sizing: content-box; left: -2px; padding: 2px; top: -2px; }
/* Zoom in and out are 44px buttons (they were 30). */
.leaflet-container .leaflet-control-zoom.leaflet-bar a { font-size: 22px; height: 44px; line-height: 44px; width: 44px; }
/* The light line across a map (the Cresap Knolls page; Brett Drevlow, Lighthouse QA item 16, 2026-11-23) was Leaflet's own
   cure for gaps between tiles, mix-blend-mode: plus-lighter, lighting up the row of pixels where two tiles meet. Tiles are
   drawn plainly instead, half a pixel larger so no gap opens between them either (every tile layer here is 256px). Leaflet's
   stylesheet goes in ahead of this one, so this wins. */
.leaflet-container img.leaflet-tile { height: 256.5px !important; mix-blend-mode: normal; width: 256.5px !important; }
.pinwrap .pin { display: block; position: relative; }
.pinwrap .pin::after { content: ""; inset: -8px -4px; position: absolute; }
.leaflet-marker-icon.pinwrap:focus, .leaflet-marker-icon.clusterwrap:focus { outline: none; }
.leaflet-marker-icon.pinwrap:focus-visible .pin, .leaflet-marker-icon.clusterwrap:focus-visible span { box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--accent); }
/* Pins close together: one round count (item 3). */
.clusterwrap span { align-items: center; background: var(--accent); border: 3px solid #fff; border-radius: 999px; box-shadow: 0 1px 6px rgba(0, 0, 0, .35); color: #fff; cursor: pointer; display: flex; font-size: 14px; font-weight: 800; height: 40px; justify-content: center; line-height: 1; width: 40px; }
/* A pin's preview: photo, price, beds and baths, the street, one link to the home (item 5). */
.homepop .leaflet-popup-content-wrapper { border-radius: 10px; overflow: hidden; padding: 0; }
.homepop .leaflet-popup-content { font: 14px/1.4 var(--text); margin: 0; }
.leaflet-container a.pophome { color: var(--ink); display: block; text-decoration: none; }
.pophome img { aspect-ratio: 3 / 2; background: var(--rule); display: block; height: auto; object-fit: cover; width: 100%; }
.pophome span { display: block; padding: 0 12px; }
.pophome .popprice { font-size: 18px; font-weight: 700; padding-top: 10px; }
.pophome .popprice small { color: var(--ink-2); display: inline; padding: 0; }
.pophome .popspecs, .pophome .popstreet { color: var(--ink-2); font-size: 13px; }
.pophome .popgo { color: var(--accent); font-weight: 600; padding-bottom: 12px; padding-top: 6px; }
.leaflet-container a.pophome:hover .popgo, .leaflet-container a.pophome:focus-visible .popgo { text-decoration: underline; }
.leaflet-container .homepop a.leaflet-popup-close-button { background: rgba(0, 0, 0, .55); border-radius: 999px; color: #fff; font: 20px/28px system-ui, sans-serif; height: 28px; right: 6px; top: 6px; width: 28px; }

/* ---- home page ---- */
.homepage { margin: 0 auto; max-width: 1180px; padding: 16px 16px 40px; }
.crumbs { color: var(--ink-2); display: flex; flex-wrap: wrap; font-size: 14px; gap: 6px 16px; justify-content: space-between; }
/* Breadcrumbs and "Get directions": 29px tall for a finger (Brett Drevlow, Lighthouse QA item 15, 2026-11-23). */
.crumbs a, a.dir { display: inline-block; padding: 4px 0; }
.title { margin: 12px 0; }
.title h1 { font-size: 28px; line-height: 1.2; }
.title p { color: var(--ink-2); margin-top: 2px; }
.badge { background: var(--pos-bg); border-radius: 999px; color: var(--pos); font-size: 12px; font-weight: 700; letter-spacing: .05em; margin-left: 6px; padding: 3px 10px; text-transform: uppercase; white-space: nowrap; }
.badge.soon { background: var(--warn-bg); color: var(--warn); }
.offerbar { background: var(--offer-bg); border-radius: 8px; color: var(--offer); margin-bottom: 12px; padding: 10px 14px; }
.offerbar strong { margin-right: 6px; text-transform: uppercase; }

.reel { background: var(--ink); border-radius: 10px; overflow: hidden; position: relative; }
.reel .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.reel .track::-webkit-scrollbar { display: none; }
/* A home's photos keep the whole photo, in a 4:3 frame: the shape of most listing photos, so they fill it with no black bars
   at the sides (Brett Drevlow, Lighthouse QA item 16, 2026-11-23). */
.reel img { aspect-ratio: 4 / 3; flex: 0 0 100%; max-height: 620px; object-fit: contain; scroll-snap-align: center; width: 100%; }
/* A community's photos (uploaded in Open) fill the frame, cropped around their chosen point; a home's keep the whole photo. */
.reel.cover img { aspect-ratio: 3 / 2; object-fit: cover; }
.reel .nav { background: rgba(0, 0, 0, .55); border: 0; border-radius: 999px; color: #fff; cursor: pointer; font-size: 28px; height: 44px; line-height: 1; position: absolute; top: calc(50% - 22px); width: 44px; }
.reel .prev { left: 10px; }
.reel .next { right: 10px; }
.reel .counter { background: rgba(0, 0, 0, .6); border-radius: 999px; bottom: 10px; color: #fff; font-size: 13px; padding: 3px 10px; position: absolute; right: 12px; }

.cols { align-items: start; display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) 340px; margin-top: 20px; }
.maincol section, .similar { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; margin-bottom: 16px; padding: 18px; }
.maincol h2, .similar h2 { font-size: 13px; letter-spacing: .06em; margin-bottom: 10px; text-transform: uppercase; }
.maincol h3 { font-size: 18px; margin: 14px 0 8px; }
.maincol h2 + h3 { margin-top: 0; }
.desc { overflow-wrap: anywhere; white-space: pre-line; }
.amenities { columns: 2; margin: 14px 0 0; padding-left: 18px; }
.fees table { border-collapse: collapse; width: 100%; }
.fees th, .fees td { border-top: 1px solid var(--rule); font-weight: 400; padding: 8px 0; text-align: left; vertical-align: top; }
.fees td { padding-left: 12px; text-align: right; }
.fees small { color: var(--ink-2); }
.fees tr.allin th, .fees tr.allin td { border-top: 0; font-size: 18px; font-weight: 700; }
.fine { color: var(--ink-2); font-size: 13px; margin-top: 10px; }
#homemap { border-radius: 8px; height: 300px; margin-bottom: 10px; }

.side { position: sticky; top: calc(var(--top) + var(--tabs) + 16px); }
.sidecard { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 18px; }
.bigprice { font-size: 30px; font-weight: 700; }
.bigprice small { color: var(--ink-2); font-size: 16px; }
.cutnote { color: var(--pos); font-size: 14px; font-weight: 600; margin-top: 2px; }
/* A card with no price over it (a community with nothing available) starts at its first row, with no empty band and line
   above it (Brett Drevlow, Lighthouse QA item 11, 2026-11-23). */
.sidecard > dl:first-child { margin-top: 0; }
.sidecard > dl:first-child > div:first-child { border-top: 0; padding-top: 0; }
.side dl { margin: 10px 0 16px; }
.side dl div { border-top: 1px solid var(--rule); display: flex; gap: 12px; justify-content: space-between; padding: 8px 0; }
.side dt { color: var(--ink-2); font-size: 12px; letter-spacing: .05em; padding-top: 3px; text-transform: uppercase; white-space: nowrap; }
.side dd { font-weight: 600; margin: 0; text-align: right; }
.actions { display: grid; gap: 8px; }

.simgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.sim { border: 1px solid var(--rule); border-radius: 8px; color: var(--ink); display: flex; flex-direction: column; gap: 2px; overflow: hidden; padding-bottom: 10px; text-decoration: none; }
.sim:hover { border-color: var(--accent); }
.sim img { aspect-ratio: 3 / 2; margin-bottom: 6px; object-fit: cover; width: 100%; }
.sim strong, .sim span { padding: 0 10px; }
.sim span { color: var(--ink-2); font-size: 14px; }
.sim .price { color: var(--ink); font-size: 16px; }
.plain .similar { margin-top: 24px; }

.stickybar { display: none; }
dialog#book { border: 0; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); height: min(860px, 92vh); max-height: none; max-width: none; padding: 0; width: min(600px, 96vw); }
dialog#book[open] { display: flex; flex-direction: column; }
dialog#book::backdrop { background: rgba(10, 14, 20, .6); }
.dialoghead { align-items: center; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; padding: 10px 10px 10px 16px; }
.dialoghead button { background: none; border: 0; color: var(--ink); cursor: pointer; font-size: 28px; height: 40px; line-height: 1; width: 40px; }
dialog#book iframe { border: 0; flex: 1; width: 100%; }
/* Boom's ID check while it starts (site.js idCheck); Persona's own check then opens above it (z-index 9999). */
.idvhost { align-items: center; background: rgba(255, 255, 255, .96); display: flex; inset: 0; justify-content: center; position: fixed; z-index: 9000; }
.idvhost .idv-loading { color: var(--ink); font-size: 17px; font-weight: 600; margin: 0; }

/* ---- narrower screens ---- */
@media (max-width: 1100px) {
  .marketpage { grid-template-columns: 230px minmax(0, 1fr) minmax(0, 1fr); }
  .card { grid-template-columns: 1fr; }
  .card .photo { aspect-ratio: 3 / 2; min-height: 0; }
}
@media (max-width: 820px) {
  .mobileonly { display: inline-flex; }
  .marketpage { display: block; height: auto; }
  .filters { border: 0; border-bottom: 1px solid var(--rule); display: none; }
  body.showfilters .filters { display: block; }
  .list { overflow: visible; }
  .mapwrap { border: 0; display: none; height: calc(100vh - var(--top) - var(--tabs)); height: calc(100dvh - var(--top) - var(--tabs)); }
  body.showmap .mapwrap { display: block; }
  /* Featured homes go with the rest of the list in map view, not leave an empty box (Brett Drevlow, Lighthouse QA item 7, 2026-11-23). */
  body.showmap .cards, body.showmap .none, body.showmap .foot, body.showmap .featured { display: none; }
  body.showmap .list { padding-bottom: 8px; }
  /* Map view: the map fills the screen below the list's heading, so the pins it is framed on are all in sight; before,
     it ran on past the bottom of the screen and the homes sat at its lower edge (Brett Drevlow, Lighthouse QA item 3, 2026-11-23). */
  body.showmap .marketpage { display: flex; flex-direction: column; height: calc(100vh - var(--top) - var(--tabs) - var(--cmpbar)); height: calc(100dvh - var(--top) - var(--tabs) - var(--cmpbar)); }
  body.showmap .filters, body.showmap .list { flex: none; }
  body.showmap .mapwrap { flex: 1 1 auto; height: auto; min-height: 260px; }
  body.showmap #map { height: auto; inset: 0; position: absolute; }
  /* The price card is as wide as the page, whatever is in it (Brett Drevlow, Lighthouse QA item 6, 2026-11-23). */
  .cols { align-items: stretch; display: flex; flex-direction: column; }
  .side { margin-bottom: 16px; order: -1; position: static; }
  .maincol { min-width: 0; }
  .title h1 { font-size: 22px; }
  .reel { border-radius: 0; margin: 0 -16px; }
  /* Previous and next stay on a phone too, beside the swipe (item 16). */
  .reel .nav { font-size: 24px; height: 40px; top: calc(50% - 20px); width: 40px; }
  .reel .prev { left: 8px; }
  .reel .next { right: 8px; }
  .amenities { columns: 1; }
  .stickybar { align-items: center; background: var(--surface); border-top: 1px solid var(--rule); bottom: 0; display: flex; gap: 12px; justify-content: space-between; left: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); position: fixed; right: 0; z-index: 1000; }
  .stickybar span { font-size: 18px; font-weight: 700; }
  .stickybar .btn { flex: 1; max-width: 240px; }
  body:has(.stickybar) { --footpad: calc(64px + env(safe-area-inset-bottom)); }
  dialog#book { border-radius: 0; height: 100vh; height: 100dvh; width: 100vw; }
}

/* Rental Qualifications and Pet Policy: the text is written in Open, so only plain elements are styled. */
.policypage { align-items: start; display: grid; gap: 32px; grid-template-columns: 220px minmax(0, 760px); justify-content: center; margin: 0 auto; padding: 32px 16px; }
.policypage:not(:has(.toc)) { grid-template-columns: minmax(0, 760px); }
.toc { font-size: 14px; position: sticky; top: calc(var(--top) + var(--tabs) + 16px); }
.toc h2 { color: var(--ink-2); font-size: 12px; letter-spacing: .06em; margin-bottom: 4px; text-transform: uppercase; }
.toc ul { list-style: none; margin: 0; padding: 0; }
/* "On this page" links look like links, and each is a 31px row for a finger (Brett Drevlow, Lighthouse QA item 15, 2026-11-23). */
.toc a { color: var(--accent); display: block; padding: 5px 0; text-underline-offset: 2px; }
.policy { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 28px; }
.policy h1 { font-size: 28px; line-height: 1.2; margin-bottom: 12px; }
.policy h2 { font-size: 20px; margin: 28px 0 8px; scroll-margin-top: calc(var(--top) + var(--tabs) + 12px); }
.policy h3 { font-size: 17px; margin: 20px 0 6px; }
.policy h4 { font-size: 15px; margin: 16px 0 4px; }
.policy p { margin: 0 0 12px; }
.policy ul, .policy ol { margin: 0 0 12px; padding-left: 22px; }
.policy li + li { margin-top: 4px; }
.policy table { border-collapse: collapse; margin: 0 0 16px; width: 100%; }
.policy th, .policy td { border: 1px solid var(--rule); padding: 8px 10px; text-align: left; vertical-align: top; }
.policy th { background: var(--ground); font-weight: 600; }
.policy blockquote { border-left: 3px solid var(--rule); color: var(--ink-2); margin: 0 0 12px; padding-left: 14px; }
.policy hr { border: 0; border-top: 1px solid var(--rule); margin: 20px 0; }
.notice { background: var(--warn-bg); border-radius: 8px; color: var(--warn); font-size: 14px; margin-top: 14px; padding: 10px 12px; white-space: pre-line; }
.policylinks { font-size: 14px; margin-top: 8px; }
@media (max-width: 800px) {
  .policypage { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  /* Every policy page's topics are the pinned "Jump to a topic" menu on a phone, as on Rental Qualifications (Brett
     Drevlow, Lighthouse re-test, 2026-11-24: Pet Policy had an open list there). */
  .policypage:has(.jump) .toc { display: none; }
  .policypage .jump { background: var(--surface); border: 1px solid var(--rule); border-radius: 0 0 10px 10px; display: block; margin-bottom: 14px; position: sticky; top: calc(var(--top) + var(--tabs)); z-index: 900; }
  .policypage:has(.jump) .policy h2 { scroll-margin-top: calc(var(--top) + var(--tabs) + 58px); }
  /* On a phone, Pet Policy's "On this page" is the same box as Rental Qualifications' "Jump to a topic" (Brett Drevlow,
     Lighthouse QA item 16, 2026-11-23). */
  .toc { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; font-size: 16px; padding: 10px 14px; position: static; }
  .toc h2 { color: var(--ink); font-size: 16px; font-weight: 600; letter-spacing: 0; margin-bottom: 2px; text-transform: none; }
  .toc a { padding: 6px 0; }
  .policy { padding: 18px; }
  .policy table { display: block; overflow-x: auto; }
}

/* communities */
.comm { font-size: 13px; }
/* A home's community link is 44px tall for a finger (it was 15: marketing's launch plan, Appendix A, 2026-12-03), and keeps
   its line. */
.comm a { color: var(--accent); display: inline-block; font-weight: 700; line-height: 20px; margin: -12px 0; padding: 12px 0; position: relative; text-decoration: none; }
.comm a:hover { text-decoration: underline; }
.after { margin-top: 24px; }
.cmap { border: 1px solid var(--rule); border-radius: 10px; height: 340px; margin-bottom: 20px; }
.ccards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.ccard { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; display: flex; flex-direction: column; overflow: hidden; }
.ccard .photo { aspect-ratio: 3 / 2; background: var(--rule); display: block; }
.ccard .photo img { display: block; height: 100%; object-fit: cover; width: 100%; }
.ccard .cardbody { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 14px; }
.ccard h2 { font-size: 18px; line-height: 1.3; margin: 0; }
.ccard h2 a { color: var(--ink); text-decoration: none; }
.ccard h2 a:hover { text-decoration: underline; }
.ccard .kind { color: var(--ink-2); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ccard .from { font-size: 15px; }
.ccard .btn { align-self: flex-start; margin-top: auto; }
.ccard .specs { margin-bottom: 8px; }
.communitypage .crumbs a { color: var(--accent); }
.chomes .sim .offer { border-radius: 0; margin: -6px 0 4px; }
.chomes .sim .go { color: var(--accent); font-weight: 600; margin-top: 4px; }
.bigprice .lbl { display: block; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
/* A community with no photo yet: a drawn panel (item 11). */
.ccard .photo.none { align-items: center; background: linear-gradient(135deg, rgba(27, 219, 234, .22), rgba(185, 165, 255, .32)); color: var(--ink-2); display: flex; font-size: 14px; font-weight: 600; justify-content: center; text-decoration: none; }
.waitlist { border-top: 1px solid var(--rule); margin-top: 16px; max-width: 460px; padding-top: 16px; }
.waitlist[hidden] { display: none; }
.waitlist h3 { font-size: 18px; margin-bottom: 4px; }
.waitlist label { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 4px; }
.waitlist input { background: var(--surface); border: 1px solid #98a2b3; border-radius: 8px; color: var(--ink); font: inherit; min-height: 44px; padding: 8px 12px; width: 100%; }
.waitlist input[aria-invalid=true] { border-color: #b42318; }
.waitlist .err { color: #b42318; font-size: 13px; margin-top: 4px; }
.waitlist .btn { margin-top: 14px; }
@media (max-width: 560px) { .cmap { height: 260px; } }

/* ---- sorts on a community page ---- */
.chead { align-items: center; display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; margin-bottom: 10px; }
.chead h2 { margin-bottom: 0; }
.csort { color: var(--ink-2); font-size: 14px; }
.csort select { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; color: var(--ink); font: inherit; padding: 6px 8px; }
.sim.chome { padding-bottom: 10px; }
.chome .simlink { color: var(--ink); display: flex; flex: 1; flex-direction: column; gap: 2px; text-decoration: none; }
.chome .cmp { margin: 8px 10px 0; }

/* ---- Compare homes: the button on each home, the bar along the bottom, the side-by-side pop-up ---- */
:root { --cmpbar: 0px; }
body.comparing { --cmpbar: 76px; }
.titlerow { align-items: flex-start; display: flex; gap: 8px; justify-content: space-between; }
.titlerow h2 { min-width: 0; }
.cmp { background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; color: var(--accent); cursor: pointer; flex: 0 0 auto; font: inherit; font-size: 13px; font-weight: 600; padding: 4px 10px; white-space: nowrap; }
.cmp:hover:not(:disabled) { border-color: var(--accent); }
.cmp.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cmp:disabled { color: var(--ink-2); cursor: not-allowed; opacity: .55; }
.cmpbar { background: var(--ink); bottom: 0; box-shadow: 0 -4px 20px rgba(0, 0, 0, .25); color: #fff; left: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); position: fixed; right: 0; z-index: 1050; }
.cmpin { align-items: center; display: flex; gap: 14px; margin: 0 auto; max-width: 1400px; min-height: 52px; }
.cmptitle { white-space: nowrap; }
.cmplist { display: flex; flex: 1; gap: 10px; list-style: none; margin: 0; min-width: 0; overflow-x: auto; padding: 0; }
.cmplist li { align-items: center; background: rgba(255, 255, 255, .08); border-radius: 8px; display: flex; flex: 0 1 220px; gap: 8px; min-width: 0; padding: 4px 4px 4px 4px; }
.cmplist img { border-radius: 6px; flex: 0 0 auto; height: 40px; object-fit: cover; width: 56px; }
.cmplist span { flex: 1; font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmpx { background: none; border: 0; border-radius: 6px; color: #fff; cursor: pointer; font-size: 20px; height: 32px; line-height: 1; width: 32px; }
.cmpx:hover { background: rgba(255, 255, 255, .15); }
.cmpstatus { color: #cfd6df; font-size: 13px; white-space: nowrap; }
.cmpact { align-items: center; display: flex; gap: 12px; }
.cmpact .btn:disabled { cursor: not-allowed; opacity: .5; }
.cmpact .link { color: #fff; white-space: nowrap; }
body.comparing .marketpage { height: calc(100vh - var(--top) - var(--tabs) - var(--cmpbar)); height: calc(100dvh - var(--top) - var(--tabs) - var(--cmpbar)); }
body.comparing { --footpad: var(--cmpbar); }
dialog.cmpdlg { border: 0; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); max-height: 92vh; max-width: none; padding: 0; width: min(1180px, 96vw); }
dialog.cmpdlg[open] { display: flex; flex-direction: column; }
dialog.cmpdlg::backdrop { background: rgba(10, 14, 20, .6); }
.cmpbody { min-height: 0; overflow: auto; }
.cmpscroll { overflow-x: auto; }
.cmptable { border-collapse: collapse; min-width: 100%; table-layout: fixed; }
.cmptable th, .cmptable td { border-bottom: 1px solid var(--rule); font-size: 14px; padding: 10px 12px; text-align: left; vertical-align: top; }
.cmptable th { background: var(--surface); color: var(--ink-2); font-size: 12px; font-weight: 700; left: 0; letter-spacing: .05em; position: sticky; text-transform: uppercase; width: 150px; z-index: 1; }
.cmptable td { width: 250px; }
.cmptable tr.hero td { padding-top: 14px; }
.cmptable tr.hero img { aspect-ratio: 3 / 2; border-radius: 8px; display: block; object-fit: cover; width: 100%; }
.cmptable tr.big td { font-size: 18px; font-weight: 700; }
.cmptable td strong { display: block; }
.cmptable td strong a { color: var(--ink); }
.cmptable .place { color: var(--ink-2); display: block; font-size: 13px; margin-bottom: 4px; }
.cmptable td.na { color: var(--ink-2); }
.cmptable ul { margin: 0; padding-left: 18px; }
.cmptable .link { font-size: 13px; }

/* ---- Rental Qualifications with the rent affordability calculator ---- */
.policypage.withcalc { grid-template-columns: 200px minmax(0, 720px) 340px; }
.jump, .jumpend, .calcfab { display: none; }
.qualify { margin: -4px 0 14px; }
.qualify a { font-weight: 600; }
.calc { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; max-height: calc(100vh - var(--top) - var(--tabs) - 32px); overflow-y: auto; padding: 20px; position: sticky; scroll-margin-top: calc(var(--top) + var(--tabs) + 12px); top: calc(var(--top) + var(--tabs) + 16px); }
.calc h2 { font-size: 19px; line-height: 1.25; }
.calcsub { color: var(--ink-2); font-size: 14px; margin: 2px 0 12px; }
.calcl { color: var(--ink); display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; padding: 0; }
.calcset { border: 0; margin: 0; padding: 0; }
/* Each choice is a 36px row for a finger, with a 20px button (Brett Drevlow, Lighthouse QA item 15, 2026-11-23). */
.calcopt { align-items: flex-start; cursor: pointer; display: flex; font-size: 15px; gap: 10px; min-height: 36px; padding: 6px 0; }
.calcopt input { flex: 0 0 auto; height: 20px; margin: 1px 0 0; width: 20px; }
.calcseg { background: var(--ground); border-radius: 8px; display: flex; gap: 3px; padding: 3px; }
.calcseg label { display: flex; flex: 1 1 0; min-width: 0; position: relative; }
/* The hidden button covers its whole choice, so the thing a finger (or an audit) finds is the 48px choice, not a 13px dot
   (Brett Drevlow, Lighthouse re-test, 2026-11-24). */
.calcseg input { cursor: pointer; height: 100%; inset: 0; margin: 0; opacity: 0; position: absolute; width: 100%; }
/* Both choices are the same size whatever their words: a bold word over a smaller one, centred both ways. */
.calcseg span { align-items: center; border-radius: 6px; cursor: pointer; display: flex; flex: 1; flex-direction: column; font-size: 15px; font-weight: 600; justify-content: center; line-height: 1.2; min-height: 48px; padding: 6px; text-align: center; }
.calcseg span small { color: var(--ink-2); font-size: 12.5px; font-weight: 500; }
.calcseg input:checked + span { background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); color: var(--accent); }
.calcseg input:focus-visible + span { outline: 2px solid var(--accent); }
.calcin { background: var(--surface); border: 1px solid #98a2b3; border-radius: 8px; color: var(--ink); font: inherit; font-size: 16px; min-height: 44px; padding: 8px 12px; width: 100%; }
.calcin:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 1px; }
.money { align-items: center; display: flex; margin-top: 6px; position: relative; }
.money span { color: var(--ink-2); left: 12px; position: absolute; }
.money .calcin { padding-left: 26px; }
.calcout { background: var(--accent); border-radius: 10px; color: var(--accent-ink); margin: 16px 0 10px; padding: 14px 16px; text-align: center; }
.calclbl { font-size: 13px; opacity: .85; }
.calcres { font-size: 26px; font-weight: 700; line-height: 1.25; }
.calcres.wait { font-size: 17px; font-weight: 600; text-wrap: balance; }
.calccredit { font-size: 13px; margin-top: 6px; }
#calc-go { margin-bottom: 10px; }
.calcnote { font-size: 14px; margin-bottom: 10px; white-space: pre-line; }
.calcsources { border-top: 1px solid var(--rule); font-size: 14px; margin-top: 14px; padding-top: 12px; }
.calcsources h3 { font-size: 15px; margin-bottom: 4px; }
.calcsources p { margin: 0 0 8px; }
.calclist { margin: 6px 0 10px; }
.calclist div { border-top: 1px solid var(--rule); display: flex; gap: 10px; justify-content: space-between; padding: 6px 0; }
.calclist dt { color: var(--ink-2); }
.calclist dd { font-weight: 600; margin: 0; text-align: right; }
.calc .fine { margin-top: 6px; }
@media (max-width: 1180px) {
  .policypage.withcalc { display: block; max-width: 792px; }
  .policypage.withcalc .toc { display: none; }
  /* Pinned right under the tabs: 8px lower, the text scrolled through the gap above it (Brett Drevlow, Lighthouse
     re-test, 2026-11-24). */
  .policypage.withcalc .jump { background: var(--surface); border: 1px solid var(--rule); border-radius: 0 0 10px 10px; display: block; margin-bottom: 14px; position: sticky; top: calc(var(--top) + var(--tabs)); z-index: 900; }
  /* A jump link lands its heading below the header, the tabs and this 46px "Jump to a topic" bar, not under them (Brett
     Drevlow, Lighthouse QA item 8, 2026-11-23): the bar, then 12px of air. */
  .policypage.withcalc .policy h2, .policypage.withcalc .calc { scroll-margin-top: calc(var(--top) + var(--tabs) + 58px); }
  .jump summary { cursor: pointer; font-weight: 600; padding: 10px 14px; }
  .jump ul, .jumpend ul { list-style: none; margin: 0; padding: 0 14px 10px; }
  .jump li a, .jumpend li a { display: block; padding: 6px 0; }
  .policypage.withcalc .calc { margin-top: 20px; max-height: none; position: static; }
  .policypage.withcalc .jumpend { display: block; margin-top: 20px; }
  .jumpend h2 { color: var(--ink-2); font-size: 12px; letter-spacing: .06em; margin-bottom: 4px; text-transform: uppercase; }
  .jumpend ul { padding: 0; }
  /* A bar across the bottom, with the page padded by its height, not a bubble over the words (Brett Drevlow, Lighthouse
     re-test, 2026-11-24: the button still covered "Identity Verification"). */
  .calcfab { background: var(--accent); bottom: 0; box-shadow: 0 -2px 12px rgba(0, 0, 0, .18); color: var(--accent-ink); display: block; font-size: 15px; font-weight: 700; left: 0; padding: 13px 16px calc(13px + env(safe-area-inset-bottom)); position: fixed; right: 0; text-align: center; text-decoration: none; transition: opacity .2s ease, transform .2s ease; z-index: 950; }
  .calcfab[hidden], .calcfab.away { display: none; }
  /* Tucked away while the visitor reads down the page (site.js; item 8). */
  .calcfab.tuck { opacity: 0; pointer-events: none; transform: translateY(24px); }
  body:has(.calcfab) { --footpad: calc(52px + env(safe-area-inset-bottom)); }
  body:has(.calcfab:not([hidden]):not(.away)) .policypage { padding-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) { .calcfab { transition: none; } }
@media (max-width: 820px) {
  .titlerow { display: contents; }
  .card .cardbody > * { order: 3; }
  .card .cardbody > .offer, .card .titlerow h2, .card .cardbody > .where { order: 0; }
  .card .cmp { order: 1; margin: 6px 0 2px; min-height: 44px; padding: 9px 12px; width: 100%; }
  .chome .cmp { min-height: 44px; }
  .cmptitle, .cmplist { display: none; }
  .cmpin { justify-content: space-between; min-height: 44px; }
  .cmpstatus { white-space: normal; }
  .cmpmore { display: none; }
  .cmptable th { width: 96px; }
  .cmptable td { width: calc((100vw - 96px - 12px) / 2); }
  dialog.cmpdlg { border-radius: 0; height: 100vh; height: 100dvh; max-height: none; width: 100vw; }
}

/* ---- Featured homes: the block above a market page's list, and the label on each pick ---- */
.featured { background: var(--offer-bg); border: 1px solid #e3d5f5; border-radius: 12px; margin-bottom: 18px; padding: 14px; }
.fhead { align-items: baseline; display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 12px; }
.fhead h2 { color: var(--offer); font-size: 17px; }
.fhead p { color: var(--ink-2); font-size: 13px; }
.card .feat { color: var(--offer); display: flex; flex-wrap: wrap; font-size: 13px; font-weight: 700; gap: 2px 8px; margin-bottom: 2px; }
.card .feat .why { color: var(--ink-2); font-weight: 600; }

/* ---- labels, prices, badges and small buttons take the headings' face, as on the main site. Last in the file, so it wins
   over the "font: inherit" some of them set above. ---- */
.pill, .cmp, .badge, .avail, .price, .bigprice, .stickybar span, .offer, .offerbar strong, .eyebrow, .ccard .kind, .card .feat, .side dt,
.filters legend, .tools, .count, .cmptable th, .calcres, .calcfab, .counter, .pin, .clusterwrap span, .popprice, .chome .go { font-family: var(--head); }
