/* /homes — IDX home search (static/js/homes.js). Uses the site tokens from site.css. */
.hs-top { background: var(--navy-2); color: #fff; }
.hs-top .wrap { padding-top: 26px; padding-bottom: 22px; display: flex; flex-direction: column; gap: 14px; }
.hs-title { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 5vw, 40px); line-height: 1.15; color: #fff; }
.hs-sub { margin: 0; color: #C8D0DD; font-size: 16px; max-width: 760px; }
.hs-q { display: flex; gap: 10px; }
.hs-q input { flex: 1 1 0; min-width: 0; height: 52px; border-radius: 4px; border: 1px solid var(--line-dark-2); background: #fff; color: var(--ink); padding: 0 16px; font: inherit; font-size: 17px; }
.hs-q .btn { height: 52px; padding-top: 0; padding-bottom: 0; }
.hs-dev { background: #FBF5EA; border-bottom: 1px solid #EBDDC4; color: var(--navy-2); font-size: 14px; }
.hs-dev .wrap { padding-top: 10px; padding-bottom: 10px; }

/* quick filters under the search box */
.hs-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.hs-bf { display: flex; flex-direction: column; gap: 4px; flex: 0 1 140px; min-width: 0; }
.hs-bf.wide { flex: 1 1 220px; }
.hs-bf.btns { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 14px; }
.hs-bf label { font-size: 13px; font-weight: 600; color: #C8D0DD; }
.hs-bf select, .hs-bf input { height: 44px; border: 1px solid var(--line-dark-2); border-radius: 4px; background: #fff; color: var(--ink); padding: 0 10px; font: inherit; font-size: 15px; width: 100%; }
.hs-more-btn { height: 44px; padding-top: 0; padding-bottom: 0; display: inline-flex; align-items: center; gap: 8px; }
.hs-more-btn .n { min-width: 20px; height: 20px; border-radius: 10px; background: var(--navy); color: #fff; font-size: 12px; display: inline-grid; place-items: center; padding: 0 5px; }
.hs-link.light { color: #fff; }
@media (max-width: 640px) {
  .hs-sub { display: none; }
  .hs-top .wrap { gap: 12px; padding-top: 18px; }
  .hs-bf { flex: 1 1 calc(50% - 10px); }
  .hs-bf.wide, .hs-bf.btns { flex: 1 1 100%; }
}

/* list on the left, a large map on the right */
.hs-shell { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; padding-top: 20px; padding-bottom: 120px; }
@media (min-width: 1100px) { .hs-shell { grid-template-columns: minmax(0, 44%) minmax(0, 1fr); } }
@media (min-width: 1100px) { .wrap.hs-wide { max-width: 1760px; } }

/* more filters dialog */
.hs-dlg.hs-more { width: min(640px, calc(100vw - 24px)); }
.hs-more-body { font-size: 15px; padding-top: 6px; }
.hs-more-foot { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: flex-end; }
.hs-more-foot .btn { width: 100%; }
.hs-fg { padding: 14px 0; border-top: 1px solid var(--line); }
.hs-fg:first-of-type { border-top: 0; }
.hs-lbl { display: block; font-size: 13px; font-weight: 600; letter-spacing: .6px; color: var(--muted); margin-bottom: 8px; }
.hs-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hs-more select { width: 100%; height: 42px; border: 1px solid var(--input); border-radius: 4px; background: #fff; padding: 0 8px; font: inherit; font-size: 15px; color: var(--ink); }
.hs-chk { display: flex; gap: 9px; align-items: flex-start; padding: 5px 0; cursor: pointer; font-size: 15px; }
.hs-chk input { width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--navy); flex: none; }
.hs-chk small { display: block; font-size: 12.5px; color: var(--faint); }
.hs-link { background: none; border: 0; padding: 4px 0; font: inherit; font-weight: 600; color: var(--navy); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* results */
.hs-rhead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.hs-count { margin: 0; font-size: 18px; color: var(--ink); font-weight: 600; }
.hs-count b { font-family: var(--serif); font-size: 26px; color: var(--navy); margin-right: 4px; }
.hs-sp { flex: 1; }
.hs-rhead select { height: 40px; border: 1px solid var(--input); border-radius: 4px; background: #fff; padding: 0 8px; font: inherit; font-size: 15px; }
.hs-btn { height: 40px; padding: 0 14px; border-radius: 4px; border: 1px solid var(--input); background: #fff; font: inherit; font-size: 15px; font-weight: 600; color: var(--navy); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.hs-btn:hover { border-color: var(--navy); color: var(--navy); }
.hs-btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.hs-btn .n { min-width: 20px; height: 20px; border-radius: 10px; background: var(--gold-2); color: var(--navy-2); font-size: 12px; display: inline-grid; place-items: center; padding: 0 5px; }
.hs-seg { display: inline-flex; border: 1px solid var(--input); border-radius: 4px; overflow: hidden; }
.hs-seg button { border: 0; background: #fff; height: 38px; padding: 0 12px; font: inherit; font-size: 15px; font-weight: 600; color: var(--navy); cursor: pointer; }
.hs-seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
@media (min-width: 1100px) { .hs-seg { display: none; } }
.hs-active { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.hs-active:empty { display: none; }
.hs-achip { border: 0; border-radius: 999px; background: #EEF1F5; color: var(--ink); font: inherit; font-size: 13px; padding: 5px 10px; cursor: pointer; }
.hs-achip span { color: var(--faint); margin-left: 4px; }

.hs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.hs-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; cursor: pointer; min-width: 0; font-size: 14px; }
.hs-card:hover, .hs-card.hl { border-color: var(--navy); box-shadow: 0 4px 14px rgba(19, 41, 75, .1); }
.hs-ph { position: relative; aspect-ratio: 3 / 2; max-width: 100%; background: var(--ground); }
.hs-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hs-ph .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); font-size: 13px; }
.hs-tags { position: absolute; top: 10px; left: 10px; right: 54px; display: flex; flex-wrap: wrap; gap: 6px; }
.hs-tag { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 3px; background: #fff; color: var(--navy-2); box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.hs-tag.new { background: var(--gold-2); }
.hs-tag.st { background: var(--navy); color: #fff; }
.hs-fav { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.94); display: grid; place-items: center; cursor: pointer; color: #3A4556; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.hs-fav[aria-pressed="true"] { color: #B4382C; }
.hs-fav[aria-pressed="true"] path { fill: currentColor; }
.hs-cb { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.hs-price { font-family: var(--serif); font-weight: 700; font-size: 23px; color: var(--navy); line-height: 1.2; font-variant-numeric: tabular-nums; }
.hs-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--ink); font-variant-numeric: tabular-nums; }
.hs-stats b { font-weight: 700; }
.hs-line { color: var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-feats { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.hs-feat { font-size: 12.5px; padding: 2px 8px; border-radius: 3px; background: var(--ground); color: var(--body); }
.hs-feat.ceil { background: #FBF5EA; color: var(--navy-2); font-weight: 600; }
/* Rule 13.7: listing firm, its contact and the MLS number, no smaller than the listing text */
.hs-attr { padding: 8px 14px; border-top: 1px solid var(--line); color: var(--body); font-size: 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; line-height: 1.4; }
.hs-attr-t { min-width: 0; }
.hs-attr .hs-cmp { flex: none; }
.hs-attr-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.hs-cmp { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--navy); white-space: nowrap; cursor: pointer; }
.hs-cmp input { accent-color: var(--navy); width: 16px; height: 16px; margin: 0; }
.hs-empty, .hs-msg { grid-column: 1 / -1; background: #fff; border: 1px dashed var(--input); border-radius: 6px; padding: 36px 20px; text-align: center; color: var(--body); }
.hs-empty b { display: block; color: var(--navy); font-size: 18px; margin-bottom: 6px; }
.hs-pager { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 20px; }
.hs-disclaim { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; max-width: 110ch; }
.hs-disclaim p { margin: 0; }

/* map */
.hs-mapcol { display: none; position: sticky; top: 12px; height: calc(100vh - 24px); min-height: 520px; }
@media (min-width: 1100px) { .hs-mapcol { display: block; } }
body.hs-view-map .hs-mapcol { display: block; position: relative; top: 0; height: 75vh; }
body.hs-view-map .hs-list { display: none; }
@media (min-width: 1100px) { body.hs-view-map .hs-list { display: block; } body.hs-view-map .hs-mapcol { position: sticky; top: 12px; height: calc(100vh - 24px); } }
.hs-map { position: relative; height: 100%; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #E9EEF2; touch-action: none; cursor: grab; }
.hs-map.drag { cursor: grabbing; }
.hs-tiles, .hs-pins { position: absolute; inset: 0; }
.hs-tiles img { position: absolute; width: 256px; height: 256px; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.hs-pin { position: absolute; transform: translate(-50%, -100%); border: 0; padding: 3px 7px; border-radius: 999px; background: var(--navy); color: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.hs-pin.dot { width: 12px; height: 12px; padding: 0; transform: translate(-50%, -50%); border: 2px solid #fff; font-size: 0; }
.hs-pin.on { background: var(--gold-2); color: var(--navy-2); z-index: 2; }
.hs-mapui { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 3; }
.hs-mapui button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font-size: 20px; cursor: pointer; color: var(--navy); }
.hs-attrib { position: absolute; right: 0; bottom: 0; background: rgba(255,255,255,.85); font-size: 11px; padding: 2px 6px; z-index: 3; color: var(--body); }
.hs-attrib a { color: var(--body); }
.hs-mapnote { position: absolute; top: 10px; left: 10px; z-index: 3; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 4px 9px; font-size: 12.5px; color: var(--body); }

/* compare tray */
.hs-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08); padding-bottom: env(safe-area-inset-bottom, 0px); }
.hs-tray .wrap { padding-top: 10px; padding-bottom: 10px; display: flex; gap: 12px; align-items: center; }
.hs-tray-items { display: flex; gap: 8px; overflow-x: auto; flex: 1; min-width: 0; }
.hs-ti { display: flex; align-items: center; gap: 8px; background: var(--ground); border-radius: 4px; padding: 4px 6px 4px 4px; flex: none; font-size: 14px; font-weight: 700; color: var(--navy); }
.hs-ti img { width: 54px; height: 36px; object-fit: cover; border-radius: 3px; }
.hs-ti button { border: 0; background: none; font-size: 18px; color: var(--faint); cursor: pointer; }
@media (max-width: 600px) { .hs-tray .hint { display: none; } }

/* dialogs */
.hs-dlg { border: 0; border-radius: 8px; padding: 0; width: min(1040px, calc(100vw - 24px)); max-width: none; max-height: calc(100vh - 32px); color: var(--ink); background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.hs-dlg::backdrop { background: rgba(10, 24, 48, .6); }
.hs-dlg.sm { width: min(560px, calc(100vw - 24px)); }
.hs-dh { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: #fff; border-bottom: 1px solid var(--line); }
.hs-dh h2 { margin: 0; flex: 1; min-width: 0; font-size: 17px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-x { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font-size: 20px; cursor: pointer; color: var(--navy); }
.hs-db { padding: 18px; }
@media (max-width: 600px) { .hs-dlg { width: 100vw; height: 100%; max-height: 100vh; border-radius: 0; } .hs-dh { padding-top: calc(12px + env(safe-area-inset-top, 0px)); } }

.hs-gal { position: relative; background: var(--navy-3); border-radius: 6px; overflow: hidden; }
.hs-gal-main { display: block; width: 100%; aspect-ratio: 16 / 10; max-height: 62vh; object-fit: contain; max-width: 100%; }
.hs-gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 22px; cursor: pointer; color: var(--navy); }
.hs-gal-nav.prev { left: 10px; } .hs-gal-nav.next { right: 10px; }
.hs-gal-n { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; padding: 2px 8px; border-radius: 3px; }
.hs-thumbs { display: flex; gap: 6px; overflow-x: auto; margin-top: 8px; padding-bottom: 4px; }
.hs-thumbs button { flex: none; border: 2px solid transparent; padding: 0; border-radius: 3px; background: none; cursor: pointer; }
.hs-thumbs button[aria-current="true"] { border-color: var(--gold); }
.hs-thumbs img { display: block; width: 84px; height: 56px; object-fit: cover; border-radius: 2px; }

.hs-dgrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; margin-top: 20px; }
@media (max-width: 880px) { .hs-dgrid { grid-template-columns: minmax(0, 1fr); } }
.hs-dprice { font-family: var(--serif); font-weight: 700; font-size: 34px; line-height: 1.1; color: var(--navy); font-variant-numeric: tabular-nums; }
.hs-daddr { font-size: 18px; margin-top: 6px; color: var(--ink); }
.hs-dsub { color: var(--muted); font-size: 15px; }
.hs-dstats { display: flex; flex-wrap: wrap; gap: 22px; margin: 16px 0; padding: 14px 0; border-block: 1px solid var(--line); }
.hs-dstats div { display: flex; flex-direction: column; }
.hs-dstats b { font-family: var(--serif); font-size: 22px; color: var(--navy); font-variant-numeric: tabular-nums; }
.hs-dstats span { font-size: 13px; color: var(--muted); }
.hs-dattr { background: var(--ground); border-radius: 6px; padding: 12px 14px; font-size: 15px; color: var(--ink); display: flex; flex-direction: column; gap: 3px; }
.hs-dact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hs-sec { margin-top: 24px; }
.hs-sec h3 { margin: 0 0 10px; font-size: 17px; color: var(--navy); }
.hs-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 22px; font-size: 15px; }
.hs-facts div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hs-facts span { color: var(--muted); }
.hs-facts b { font-weight: 600; text-align: right; }
.hs-remarks { font-size: 15px; background: var(--ground); border-radius: 6px; padding: 12px 14px; max-width: 75ch; margin: 0; }
.hs-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hs-side-card { border: 1px solid var(--line); border-radius: 6px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.hs-side-card h3 { margin: 0; font-size: 17px; color: var(--navy); }
.hs-side-card .form-grid { grid-template-columns: 1fr; }
.hs-fine { font-size: 13px; color: var(--muted); margin: 0; }
.hs-ddisc { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.hs-ddisc p { margin: 0; }

.hs-ctable-wrap { overflow-x: auto; }
.hs-ctable { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
.hs-ctable th, .hs-ctable td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.hs-ctable th { color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; width: 120px; }
.hs-ctable td.best { color: #1E6B44; font-weight: 700; }
.hs-ctable img { width: 100%; max-width: 200px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; display: block; }
.hs-favlist { display: flex; flex-direction: column; gap: 8px; }
.hs-fi { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 6px; }
.hs-fi img { width: 80px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 3px; flex: none; }
.hs-fi > div { min-width: 0; flex: 1; }
.hs-linkbox { display: flex; gap: 6px; margin-top: 6px; }
.hs-linkbox input { flex: 1; min-width: 0; height: 40px; border: 1px solid var(--input); border-radius: 4px; background: var(--ground); padding: 0 10px; font-size: 13px; }
.hs-banner { background: var(--gold-2); color: var(--navy-2); }
.hs-banner .wrap { padding-top: 12px; padding-bottom: 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hs-banner b { font-family: var(--serif); font-size: 19px; }
.hs-toast { position: fixed; left: 50%; bottom: max(calc(84px + env(safe-area-inset-bottom, 0px)), calc(var(--hs-bar-h, 0px) + 84px)); transform: translateX(-50%); background: var(--navy-2); color: #fff; padding: 9px 16px; border-radius: 999px; font-size: 14px; z-index: 100; opacity: 0; pointer-events: none; transition: opacity .2s; }
.hs-toast.show { opacity: 1; }
/* the floating "Ask me" button sits above the compare tray instead of covering its buttons */
body:has(.hs-tray:not([hidden])) .ask-fab, body:has(.hs-pickbar:not([hidden])) .ask-fab { bottom: calc(var(--hs-bar-h, 84px) + 12px); }
body:has(.hs-tray:not([hidden])) .ask-tab, body:has(.hs-pickbar:not([hidden])) .ask-tab { bottom: calc(var(--hs-bar-h, 84px) + 20px); }
@media (max-width: 600px) { .hs-dlg.hs-more { width: 100vw; } }

.hs-tag-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
@media (max-width: 420px) { .hs-tag-grid { grid-template-columns: minmax(0, 1fr); } }
.hs-more-links { margin: -4px 0 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; }
.hs-more-links a { color: var(--gold-2); text-decoration: none; font-weight: 600; }
.hs-more-links a:hover { text-decoration: underline; }

/* ───── area pages /homes/<area> (live block filled by src/area.js) ───── */
.area-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: #A9B4C5; margin-bottom: 10px; }
.area-crumbs a { color: #C8D0DD; }
.area-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.area-quick a { color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 6px 14px; font-size: 14px; text-decoration: none; }
.area-quick a:hover { background: rgba(255,255,255,.12); }
.area-body .wrap { display: flex; flex-direction: column; gap: 22px; }
.area-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .area-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.area-body { padding-top: 32px; }
.area-tiles > div { background: var(--ground); border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.area-tiles b { font-size: 26px; color: var(--navy); font-variant-numeric: tabular-nums; }
.area-tiles span { font-size: 14px; color: var(--muted); }
.area-src, .area-note { margin: 0; color: var(--muted); font-size: 14px; max-width: 900px; }
.area-note { color: var(--body); font-size: 15px; }
.area-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.area-head .h2, .area-faqh { font-size: clamp(24px, 4.5vw, 32px); margin: 0; }
.area-faqh { margin-top: 12px; }
.area-grid { grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); }
a.hs-card { color: inherit; text-decoration: none; display: flex; flex-direction: column; }
.area-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 20px; }
.area-links h3 { font-size: 18px; margin: 0 0 10px; }
.area-links p { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.area-links small, .area-hub small { color: var(--muted); margin-left: 4px; }
.area-hubs { padding: 28px 0 40px; border-top: 1px solid var(--line); margin-top: 24px; }
.area-hubs .wrap { display: flex; flex-direction: column; gap: 18px; }
.area-hub h2 { font-size: 20px; margin: 0 0 10px; }
a.chip { text-decoration: none; display: inline-flex; align-items: center; }

/* ───── new-listing alerts (static/js/alert-form.js) ───── */
.al-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 18px 32px; align-items: center; background: var(--navy); color: #fff; border-radius: 10px; padding: 24px; }
.al-band .h2 { color: #fff; font-size: clamp(22px, 4vw, 28px); margin: 0 0 6px; }
.al-band p { margin: 0; color: #C8D0DD; }
.al-form { display: flex; flex-direction: column; gap: 8px; }
.al-row { display: flex; flex-wrap: wrap; gap: 8px; }
.al-row input { flex: 1 1 220px; min-height: 46px; padding: 10px 14px; border: 1px solid var(--input); border-radius: 6px; font: inherit; }
.al-fine { font-size: 13px; color: var(--muted); margin: 0; }
.al-band .al-fine { color: #A9B4C5; }
.al-msg { margin: 0; font-weight: 600; }
.al-msg.ok { color: #1E7A46; } .al-msg.bad { color: #B3261E; }
.al-band .al-msg.ok { color: #9BE0B5; } .al-band .al-msg.bad { color: #FFB4AB; }
.hs-alertdlg { width: min(520px, calc(100vw - 32px)); }
.al-note { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 8px; z-index: 60; max-width: calc(100vw - 32px); box-shadow: 0 6px 24px rgba(0,0,0,.2); }
.area-top .hs-sub { display: block; font-size: 15px; }

/* ───── listing detail: header buttons, tour request, map, sign-in, share (2026-11-11) ───── */
.hs-hbtn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.hs-hbtn:hover { border-color: var(--navy); }
.hs-hbtn[aria-pressed="true"] { color: #C0392B; border-color: #E8B4AE; background: #FFF5F4; }
.hs-hbtn[aria-pressed="true"] svg { fill: currentColor; }
@media (max-width: 480px) { .hs-dh .hs-hbtn span { display: none; } .hs-dh .hs-hbtn { width: 36px; padding: 0; justify-content: center; } }
.hs-side { position: sticky; top: 72px; align-self: start; }
.hs-tour { border: 1px solid var(--line); border-top: 4px solid var(--gold-2); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 10px 28px rgba(10, 24, 48, .08); background: #fff; }
.hs-tour h3 { margin: 0; font-family: var(--serif); font-size: 22px; color: var(--navy); }
.hs-tseg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--input); border-radius: 8px; overflow: hidden; }
.hs-tseg button { border: 0; background: #fff; padding: 9px 6px; font: inherit; font-size: 15px; font-weight: 600; color: var(--navy); cursor: pointer; }
.hs-tseg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.hs-tdays { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.hs-tdays button { flex: 0 0 auto; width: 64px; border: 1px solid var(--input); border-radius: 8px; background: #fff; padding: 8px 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 1px; font: inherit; color: var(--ink); }
.hs-tdays button small { font-size: 12px; color: var(--muted); }
.hs-tdays button b { font-size: 20px; font-family: var(--serif); color: var(--navy); }
.hs-tdays button[aria-pressed="true"] { border: 2px solid var(--navy); background: #F2F5FA; }
.hs-ttimes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hs-ttimes button { border: 1px solid var(--input); border-radius: 8px; background: #fff; padding: 8px; font: inherit; cursor: pointer; display: flex; justify-content: space-between; color: var(--ink); }
.hs-ttimes button span { color: var(--muted); font-size: 14px; }
.hs-ttimes button[aria-pressed="true"] { border: 2px solid var(--navy); background: #F2F5FA; }
.hs-tform { display: flex; flex-direction: column; gap: 8px; }
.hs-tform input[type=text], .hs-tform input[type=email] { height: 44px; border: 1px solid var(--input); border-radius: 6px; padding: 0 12px; font: inherit; font-size: 16px; }
.hs-tfin { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--body); }
.hs-tfin input { margin-top: 3px; }
.hs-tgo { width: 100%; font-size: 18px; font-weight: 700; padding: 14px; }
.hs-tmsg { margin: 0; font-weight: 600; font-size: 15px; }
.hs-tmsg.ok { color: #1E7A46; } .hs-tmsg.bad { color: #B3261E; }
.hs-tour.done .hs-tform > :not([data-tmsg]):not(.hs-fine) { display: none; }
.hs-dbar { display: none; }
@media (max-width: 880px) {
  .hs-side { position: static; }
  .hs-dbar { position: sticky; bottom: 0; z-index: 2; display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(10, 24, 48, .08); }
  .hs-dbar .btn { flex: 1; font-size: 17px; font-weight: 700; padding: 13px; }
  .hs-dbar .hs-hbtn { height: auto; }
}
.hs-dtour { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hs-dtour .btn { font-size: 17px; font-weight: 700; padding: 13px 26px; }
.hs-mini { position: relative; height: 320px; border-radius: 8px; overflow: hidden; background: #E9EEF3; border: 1px solid var(--line); touch-action: none; cursor: grab; }
.hs-mini .t { position: absolute; width: 256px; height: 256px; user-select: none; -webkit-user-drag: none; }
.hs-mini .pin { position: absolute; transform: translate(-50%, -100%); background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; padding: 5px 9px; border-radius: 6px; white-space: nowrap; border: 0; cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,.3); }
.hs-mini .pin::after { content: ''; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--navy); border-bottom: 0; }
.hs-mini .zm { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; }
.hs-mini .zm button { width: 34px; height: 34px; border: 1px solid var(--line); background: #fff; border-radius: 6px; font-size: 18px; cursor: pointer; color: var(--navy); }
.hs-mini .att { position: absolute; right: 6px; bottom: 4px; font-size: 11px; background: rgba(255,255,255,.85); padding: 1px 5px; border-radius: 3px; }
.hs-mini .pop { position: absolute; transform: translate(-50%, calc(-100% - 44px)); background: #fff; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.25); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; min-width: 190px; font-size: 14px; z-index: 3; }
.hs-mini .pop a { color: var(--navy); font-weight: 700; }
.hs-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hs-nav a { text-decoration: none; }
.hs-dattr.bottom { margin-top: 24px; }
.hs-signin, .hs-sharedlg { width: min(460px, calc(100vw - 24px)); }
@media (max-width: 600px) { .hs-dlg.hs-signin, .hs-dlg.hs-sharedlg { width: calc(100vw - 24px); height: auto; max-height: calc(100vh - 24px); border-radius: 10px; } }
.hs-siform { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.hs-siform input { height: 46px; border: 1px solid var(--input); border-radius: 6px; padding: 0 12px; font: inherit; font-size: 17px; }
.hs-siform input[name=code] { font-size: 26px; letter-spacing: 8px; text-align: center; }
.hs-si-why { margin: 0; color: var(--body); }
.hs-shbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.hs-shbtns a { text-align: center; border: 1px solid var(--line); border-radius: 8px; padding: 10px; color: var(--navy); font-weight: 600; text-decoration: none; cursor: pointer; }
.hs-shbtns a:hover { border-color: var(--navy); }
.hs-acct { font-size: 14px; color: var(--muted); }
.hs-acct button { border: 0; background: none; color: var(--navy); text-decoration: underline; cursor: pointer; font: inherit; }

/* listing attribution under the tour request (Rule 13.7: not smaller than the listing text, readily visible) */
.hs-dattr { background: none; border-top: 1px solid var(--line); border-radius: 0; padding: 14px 0 0; margin-top: 24px; font-size: 15px; color: var(--body); display: flex; flex-wrap: wrap; gap: 2px 18px; }
/* full-screen photo viewer */
.hs-gal-main { cursor: zoom-in; }
.hs-lb { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; background: #000; color: #fff; overflow: hidden; }
.hs-lb::backdrop { background: #000; }
.hs-lb-track { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.hs-lb-track::-webkit-scrollbar { display: none; }
.hs-lb-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; }
.hs-lb-slide img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.hs-lb-top { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center; padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px; background: linear-gradient(rgba(0,0,0,.55), transparent); pointer-events: none; }
.hs-lb-top span { font-size: 15px; font-weight: 600; }
.hs-lb-top button { pointer-events: auto; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.hs-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 30px; cursor: pointer; }
.hs-lb-nav.prev { left: 16px; } .hs-lb-nav.next { right: 16px; }
@media (hover: none), (max-width: 700px) { .hs-lb-nav { display: none; } }

/* several counties / cities as chips; school fields (2026-11-11) */
.hs-multi { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 44px; padding: 4px 8px; background: #fff; border: 1px solid var(--line-dark-2); border-radius: 4px; cursor: text; }
.hs-multi input { border: 0 !important; height: 34px !important; padding: 0 4px !important; flex: 1 1 140px; min-width: 120px; outline: 0; }
.hs-mchips { display: contents; }
.hs-mchip { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 999px; border: 0; background: var(--navy); color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.hs-mchip span { opacity: .8; font-size: 16px; }
.hs-bf.sch { flex: 1 1 170px; }
.hs-brk { flex-basis: 100%; height: 0; }
.hs-bf.wide { flex: 2 1 320px; }
.hs-bf.sch { flex: 1 1 200px; max-width: 320px; }
.hs-multi input { flex: 1 1 90px; min-width: 90px; }
@media (max-width: 760px) { .hs-bf.sch { flex: 1 1 calc(50% - 10px); max-width: none; } .hs-brk { display: none; } }

/* select homes and share them as one link */
.hs-pickbox { display: none; }
.picking .hs-card { cursor: pointer; }
.picking .hs-pickbox { display: grid; place-items: center; position: absolute; left: 12px; top: 12px; z-index: 3; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.95); border: 2px solid var(--navy); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.picking .hs-card.picked { outline: 3px solid var(--gold-2); outline-offset: -1px; }
.picking .hs-card.picked .hs-pickbox { background: var(--navy); }
.picking .hs-card.picked .hs-pickbox::after { content: ''; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: translateY(-2px) rotate(45deg); }
.picking .hs-card .hs-tags { left: 52px; }
[data-hs-pick][aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.hs-pickbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.1); padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px)); }
.hs-pickbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.hs-pickn { font-size: 16px; }
.hs-pickn b { font-size: 22px; color: var(--navy); }
.hs-pickbar .btn { font-weight: 700; }
/* draw an area on the map */
.hs-poly { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.hs-poly path { fill: rgba(18, 35, 63, .12); stroke: var(--navy); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.hs-drawui { position: absolute; top: 10px; left: 10px; z-index: 3; display: flex; gap: 8px; }
.hs-drawbtn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.hs-drawbtn.light { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.hs-drawtip { position: absolute; left: 50%; top: 56px; transform: translateX(-50%); z-index: 3; background: rgba(18,35,63,.92); color: #fff; padding: 8px 14px; border-radius: 8px; font-size: 14px; white-space: nowrap; pointer-events: none; }
.hs-map.drawing { cursor: crosshair; touch-action: none; }
.hs-map.drawing .hs-pins { pointer-events: none; }
.picking .hs-card { position: relative; }
.hs-pins { z-index: 2; }
.hs-mapnote { top: auto; bottom: 10px; }
.hs-prow { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
/* results cards: FMLS # + FMLS IDX mark (listing firm is shown in the listing details) */
.hs-attr { align-items: center; padding: 7px 14px; }
.hs-idx { flex: none; display: inline-block; width: 75px; height: 15px; overflow: hidden; color: transparent; font-size: 0; background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANYAAAArCAMAAAAzMYbbAAAAYFBMVEU4qFMAAAAzpU42p1E2p1Egn0A0pU86sFczpk4wn0g1plEooUMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADvnhcrAAAAIHRSTlP+AFCszQgx/3YgjRMAAAAAAAAAAAAAAAAAAAAAAAAAABZuYO8AAARISURBVHjazZnZtqsgDEBjApHh///3AoqFMIitZ62bJypQ2CZkQNj+A9EW0ZGCUxQ5RPZiTJbyR91bNKGaa3lRfDlWbKDo0ZsvZ9kuExuCjijCYjyrLBim0NEkMpx6vYu/UtvHPldhsYI1Ub4ci/U+PRU9ppzmOlBIo0X2MOEC4/xwD6t5tV9DKL1UDM1dxaaJTxG+oQIux+4CC2GERQ0V081KTtdY6SX6cqMqKcnFpjkXd1uBZZepsBorsCysY+H9knQozGNSq0L0JxYhmjQ96esg5aNHF1iW1ql8OVZguXUsXFmNsiGaPf9D2ry57N1c6qSEHiZcWHqZyoixNRbCMhaurUenHbo9ty+sU28HdXnUM5Z2q1SuVojAqomnWF4tW8cQK21F6XLl9Bw6pnP37gyMsQwsY5mhA5R+V4+xksZtcaiTO8xYZpnKN7ZTYgm3M8NqlRWCMGY/0FHXGhbwBwtXqcJxbMaWWA6WsVgeWT8KZTuNscyloGyEyTHCMyruBLcCC2Edy0lHVBzQeo39sMIelu64DHdilTtVOBPbC24frMabzrDEWC195JkeBXFGXw6+xvKudvCOTpsFcR5onpT6Thj4YCF8j8V19sHWeu8/yay2NmpLsdUnluMmHJPm02uAeP+kp6l2L7hdWK0mH2Apnr7PpeSJT1OkDcRO51jdMHBhOfgBK2ZDfrw473ub6u5XEhJT3eQwPcWHCBbWsfphIGMhPMLq+SkyOFBaVZj4qzBxuH2qEX0kz7HjCdbAYWYseoblR942svnW/jtl5DYuIyWW112ZhIETC+EZ1jSxUQ7R/lBvSyxQXQlKZJhidTO8Kda0EIonRBmr38Lqr4FyE44EloOnWCtZAKH+O6yWirTAYniOtZTdKPwzLJRhOETAGsvTN1j3Nb9Mq97EMrIaixGwxkL4CiultftivfUyVlM3pkSnwipNVD3BihozdH8j9D5WWzfiJrEKbOMeYqXbz3DP160gy8LkVay2bsRNYnFZyT7HOqIzh5vdkcu3b2OFupEbm5RYVIJ8iZXZDKkXTtcNVls35uyqQKHhOXyKlW+v1a/OUGKJMpKbgOW3YQZ4lN8/Y3USEPoVi+Z1o7LbDAtvrj8/GaYORaINMvg6gW9j6WndyNsMi25udeFTXDhQamJl2D3Pr2G54dGlrnu5wcpOxsg/lrWx2d91GTWWGZ9cGvmrBaygVgMzLnm9xa9izUyBRnflK1jg29TYca4Drel4ovewpueW+ia4iIVdIw51sTGdXMptL2Ix9F37AAu3B1jUT473KN2w8RqWiB1KJDA0+FyzhtVX199l8Nfu/M2ppVGWvYZF6x8/n5vgGEsGrOaN0chJrmGFCbxIpV/Ecnd2MLw1XcQKfWu1sd7ewzK3qSaNTHQVK14l3H4sJN62L7H2UhKWNtXD7p0olSNKbFdMxPKXlPhFK36H34dXasTfXqj9A1CbKlU+eK9TAAAAAElFTkSuQmCC") no-repeat center / contain; }
.hs-idx sup { display: none; }
/* area and schools inside More filters (2026-11-11) */
.hs-fg-loc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.hs-fg-loc .hs-lbl, .hs-fg-loc .hs-bf:first-of-type { grid-column: 1 / -1; }
.hs-fg-loc .hs-bf { max-width: none; flex: none; }
.hs-fg-loc .hs-bf label { color: var(--navy); }
.hs-fg-loc .hs-bf input, .hs-fg-loc .hs-multi { border-color: var(--input); }

/* sign-in with Google, my account (saved searches with email alerts) */
.hs-google { display: grid; justify-items: center; gap: 4px; margin: 4px 0 6px; }
.hs-google [data-si-gbtn] { min-height: 44px; }
.hs-or { display: flex; align-items: center; gap: 10px; width: 100%; color: var(--muted); font-size: 14px; margin: 8px 0 2px; }
.hs-or::before, .hs-or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.hs-saved { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hs-saved li { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: grid; gap: 6px; }
.hs-saved-a { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 14px; }
.hs-chk.sm { padding: 0; font-size: 14px; }
