/* family-home v1.2.3 — the one front-door layout of the for-sale family (direct-standards/master-home).
   Never edit a site's copy: change the master and run sync-all.mjs. Every rule is scoped to .fhm, so it
   changes nothing else on a page. The site's colors arrive as --fhm-* on each .fhm block (site.json
   "style"); the defaults are ForSale's. The values are ForSale's live hero (home-hero.css and the hero
   rules of its style.css, 2026-11-17) and the sister doors' one-photo frame, as Fable drew them. */
.fhm{--fhm-primary:#1C2B3A;--fhm-gold:#E8A33D;--fhm-gold-ink:#23201B;--fhm-ink:#23201B;--fhm-muted:#6E675C;--fhm-paper:#FAF7F2;--fhm-line:#E5DFD3;--fhm-card:#fff;--fhm-hero:#EFDFCB;--fhm-width:1120px;font-family:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--fhm-ink);box-sizing:border-box}
.fhm *,.fhm *::before,.fhm *::after{box-sizing:border-box}
.fhm [hidden]{display:none!important}

/* ---- The hero frame (a one-photo site). Words left; the photo right, as tall as the words. */
.fhm-hero{background:var(--fhm-hero);border-bottom:1px solid var(--fhm-line);line-height:1.5}
.fhm-bleed{width:var(--fhm-vw,100vw);margin-left:calc(50% - var(--fhm-vw,100vw) / 2)}
/* v1.2.2: 100vw counts the scroll bar (about 8px of sideways scroll on a desktop). family-home.js sets --fhm-vw to the window width without the bar; until it runs, anything past the window is clipped. */
html:has(.fhm-bleed){overflow-x:clip}
.fhm-grid{max-width:1440px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,600px);gap:40px;align-items:stretch;padding:40px 28px 36px}
.fhm-left{align-self:center;min-width:0}
.fhm-photo{position:relative;margin:0;border-radius:16px;overflow:hidden;min-height:380px;background:#E9E1D2;box-shadow:0 2px 14px rgba(35,32,27,.16)}
.fhm-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.fhm-photo figcaption{position:absolute;right:10px;bottom:8px;font:600 12px/1.4 system-ui,sans-serif;color:#fff;background:rgba(0,0,0,.45);padding:2px 8px;border-radius:999px}

/* ---- The words */
.fhm h1{margin:0 0 12px;font-size:clamp(30px,3.4vw,44px);font-weight:700;line-height:1.1;letter-spacing:-.015em;color:var(--fhm-head,var(--fhm-ink))}
.fhm .hero-sub{margin:0 0 18px;font-size:18px;line-height:1.55;font-weight:400;color:var(--fhm-muted);max-width:600px}

/* ---- The search box (ForSale's) */
.fhm .ns{background:#fff;border:1px solid var(--fhm-line);border-radius:14px;padding:12px;margin:0 0 14px;box-shadow:0 10px 30px rgba(28,43,58,.12);max-width:640px}
.fhm .ns-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;flex-wrap:wrap}
.fhm .ns-switch{display:inline-flex;border:1.5px solid var(--fhm-primary);border-radius:999px;overflow:hidden;flex:none}
.fhm .ns-switch button{min-height:38px;padding:6px 16px;font:inherit;font-weight:700;font-size:14.5px;background:#fff;color:var(--fhm-primary);border:0;cursor:pointer;white-space:nowrap}
.fhm .ns-switch button[aria-pressed="true"]{background:var(--fhm-primary);color:#fff;cursor:default}
.fhm .ns-switch button[aria-pressed="false"]:hover{background:var(--fhm-paper)}
.fhm .ns-switch button:focus-visible{outline:3px solid var(--fhm-gold);outline-offset:-3px}
.fhm .ns-price,.fhm .ns-acres{display:flex;align-items:center;gap:6px;margin:0;font-size:14px;font-weight:600;color:var(--fhm-muted);min-width:0}
.fhm .ns-price select,.fhm .ns-acres select{display:inline-block;width:auto;min-width:0;margin:0;font:inherit;font-size:14.5px;font-weight:600;color:var(--fhm-ink);border:1px solid var(--fhm-line);border-radius:8px;padding:7px 6px;background:#fff}
.fhm .ns-field{position:relative;display:flex;align-items:center;gap:8px;border:1.5px solid var(--fhm-primary);border-radius:12px;padding:5px 5px 5px 14px;background:#fff}
.fhm .ns-field:focus-within{box-shadow:0 0 0 3px rgba(232,163,61,.55)}
.fhm .ns-field::before{content:"";flex:none;width:20px;height:20px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E675C' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.6-3.6'/%3E%3C/svg%3E") center/20px 20px no-repeat}
.fhm .ns-field input{flex:1;display:block;min-width:0;width:100%;margin:0;border:0;outline:0;background:none;font:inherit;font-size:18px;font-weight:400;color:var(--fhm-ink);padding:10px 0}
.fhm .ns-field input::placeholder{color:var(--fhm-muted);opacity:1}
.fhm .ns-field input::-webkit-calendar-picker-indicator{display:none!important}
.fhm .ns-field .suggest{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:60}
/* The gold Search: the standard's main button, gold with dark words. */
.fhm .fhm-go{flex:none;display:inline-flex;align-items:center;justify-content:center;min-height:46px;margin:0;padding:11px 20px;border:0;border-radius:9px;background:var(--fhm-gold);color:var(--fhm-gold-ink);font:inherit;font-size:16px;font-weight:700;white-space:nowrap;cursor:pointer;text-decoration:none;transition:filter 150ms ease-out,transform 150ms ease-out}
.fhm .fhm-go:hover{filter:brightness(1.06)}
.fhm .fhm-go:active{transform:scale(.97)}
.fhm .fhm-go:focus-visible{outline:3px solid var(--fhm-primary);outline-offset:2px}
.fhm .ns-more{display:inline-flex;flex-wrap:wrap;align-items:center;gap:0 5px;margin:10px 2px 0;padding:4px 0;min-height:32px;border:0;background:none;font:inherit;font-size:14.5px;font-weight:600;color:var(--fhm-primary);cursor:pointer;text-align:left}
.fhm .ns-more .ns-more-label{text-decoration:underline;text-underline-offset:3px}
.fhm .ns-more .ns-more-hint{font-weight:400;color:var(--fhm-muted)}
.fhm .ns-more:hover .ns-more-label{text-decoration-thickness:2px}
.fhm .ns-more:focus-visible{outline:3px solid var(--fhm-gold);outline-offset:2px}
.fhm .own-home{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;margin-top:10px;padding:0 16px;border:1.5px solid var(--fhm-primary);border-radius:10px;background:#fff;color:var(--fhm-primary);font:inherit;font-size:16px;font-weight:700;text-decoration:none}
.fhm .own-home::before{content:"";flex:none;width:20px;height:20px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C2B3A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5 12 4l9 7.5M5.5 10v10h13V10M10 20v-5.5h4V20'/%3E%3C/svg%3E") center/contain no-repeat}
.fhm .own-home .go{margin-left:auto;font-weight:400;font-size:15px}
.fhm .own-home:focus-visible{outline:3px solid var(--fhm-gold);outline-offset:2px}
.fhm .own-home-note{margin:6px 2px 0;font-size:13px;line-height:1.4;color:var(--fhm-muted);max-width:none}

/* ---- The kind chips */
.fhm .type-chips{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.fhm .type-chip{font:inherit;font-weight:700;font-size:14px;line-height:1.2;padding:8px 11px;min-height:40px;border-radius:999px;border:1.5px solid var(--fhm-primary);background:#fff;color:var(--fhm-primary);cursor:pointer;white-space:nowrap;transition:background-color 150ms ease-out}
.fhm .type-chip[aria-pressed="false"]:hover{background:var(--fhm-paper)}
.fhm .type-chip[aria-pressed="true"]{background:var(--fhm-primary);color:#fff}
.fhm .type-chip:focus-visible{outline:3px solid var(--fhm-gold);outline-offset:2px}

/* ---- The Free strip */
.fhm .free-strip{display:flex;gap:10px 14px;flex-wrap:wrap;margin-top:14px}
.fhm .free-strip .pill{background:#fff;border:1px solid var(--fhm-line);border-radius:999px;padding:7px 16px;font-size:15px;font-weight:600;color:var(--fhm-ink);text-decoration:none}
.fhm .free-strip a.pill:hover{border-color:var(--fhm-primary)}
.fhm .free-strip a.pill:focus-visible{outline:3px solid var(--fhm-gold);outline-offset:2px}

/* ---- Under the hero: the market line, then the town row */
.fhm-wrap{max-width:var(--fhm-width);margin:0 auto;padding:0 var(--fhm-pad,20px)}
.fhm-market{background:#fff;border-bottom:1px solid var(--fhm-line);padding:12px 0;line-height:1.5}
.fhm-market p{margin:0;font-size:15px;max-width:none}
.fhm-towns{padding:16px 0 4px;line-height:1.3}
.fhm-towns .fhm-wrap{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.fhm-towns-label{font-weight:700;font-size:15px;margin-right:4px;color:var(--fhm-ink)}
.fhm-towns-list{display:contents}
.fhm-town{display:inline-flex;align-items:center;gap:5px;min-height:40px;padding:5px 12px;border:1px solid var(--fhm-primary);border-radius:999px;background:#fff;color:var(--fhm-primary);font-size:14px;font-weight:600;text-decoration:none;white-space:nowrap;transition:background-color 150ms ease-out}
.fhm-town em{font-style:normal;font-weight:500;color:var(--fhm-muted)}
.fhm-town:hover{background:var(--fhm-paper)}
.fhm-town:focus-visible{outline:3px solid var(--fhm-gold);outline-offset:2px}
.fhm-town.fhm-all{border-style:dashed}

/* ---- A narrower computer window */
@media (max-width:1100px){.fhm-grid{grid-template-columns:minmax(0,1fr) minmax(0,44%);gap:28px}}

/* ---- Tablet and phone: one column; the chips slide sideways on one row; the strip is one plain line. */
@media (max-width:820px){
  .fhm-grid{grid-template-columns:minmax(0,1fr);gap:18px;padding:22px 20px 22px}
  .fhm-photo{min-height:0;aspect-ratio:16/9;max-height:420px}
  .fhm h1{margin-bottom:8px;font-size:30px}
  .fhm .hero-sub{font-size:16px;margin-bottom:14px}
  .fhm .sub-more{display:none}
  .fhm .ns{margin-bottom:12px}
  .fhm .ns-switch button{padding:6px 13px}
  .fhm .ns-price span{display:none}
  .fhm .ns-price{flex:1 1 auto;justify-content:flex-end}
  .fhm .ns-price select{max-width:100%}
  .fhm .ns-field input{font-size:16px}
  .fhm .fhm-go{padding:11px 14px}
  .fhm .type-chips{flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;margin:0 -20px 10px;padding:0 20px}
  .fhm .type-chips::-webkit-scrollbar{display:none}
  .fhm .type-chip{scroll-snap-align:start}
  .fhm .free-strip{gap:6px 14px;margin-top:0}
  .fhm .free-strip .pill{background:none;border:0;border-radius:0;padding:0;font-size:13.5px}
  .fhm-towns-label{flex:1 1 100%}
  .fhm-market p{font-size:14px}
}
@media (max-width:420px){
  .fhm-grid{padding:18px 16px 20px}
  .fhm-photo{border-radius:12px}
  .fhm .type-chips{margin:0 -16px 10px;padding:0 16px}
  .fhm .type-chip{font-size:13px;padding:8px 10px}
  .fhm-wrap{padding:0 min(16px,var(--fhm-pad,16px))}
}
/* ---- v1.1.1: phones. "Listed by owner" stays on one line; "See only these" steps aside and the arrow stays. */
@media (max-width:479px){
  .fhm .own-home{white-space:nowrap}
  .fhm .own-home .go-words{display:none}
}
/* ---- v1.1.1: touch screens. Boxes are 16px (iPhones zoom on less); the switch, the price box and the chips are 44px. */
@media (pointer:coarse){
  .fhm .ns-switch button{min-height:44px}
  .fhm .ns-price select,.fhm .ns-acres select{font-size:16px;min-height:44px}
  .fhm .ns-field input{font-size:16px}
  .fhm .type-chip{min-height:44px;min-width:44px}
  /* v1.2.3: tap areas by padding, text size unchanged; Free strip links, Towns chips and More filters are 44px */
  .fhm .free-strip{align-items:center}
  .fhm .free-strip a.pill{display:inline-flex;align-items:center;min-height:44px}
  .fhm-town{min-height:44px}
  .fhm .ns-more{min-height:44px}
}
@media (prefers-reduced-motion:reduce){.fhm .fhm-go,.fhm .type-chip,.fhm-town{transition:none}}
