/* OSR Homes for Sale — shared styles (uses the site's :root variables) */
.hm-hero{display:flex;justify-content:space-between;align-items:flex-end;gap:1.5rem;flex-wrap:wrap;margin-bottom:1.25rem}
.hm-hero h1{margin-bottom:.35rem}
.hm-hero p{color:var(--text-muted);max-width:62ch}
.hm-live{display:inline-flex;align-items:center;gap:.45rem;font-size:.78rem;font-weight:700;color:var(--green);background:#f0fdf4;border:1px solid #bbf7d0;border-radius:999px;padding:.3rem .75rem;white-space:nowrap}
.hm-live i{width:8px;height:8px;border-radius:50%;background:var(--green);display:inline-block}
.hm-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:.75rem;margin:1rem 0 1.5rem}
.hm-stat{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:.9rem 1rem;box-shadow:var(--shadow-sm)}
.hm-stat b{display:block;font-size:1.55rem;font-weight:800;color:var(--text);line-height:1.15}
.hm-stat span{font-size:.72rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;font-weight:600}
.hm-bar{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center;background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:.65rem;margin-bottom:1rem;position:sticky;top:58px;z-index:50;box-shadow:var(--shadow)}
.hm-seg{display:inline-flex;border:1px solid var(--border);border-radius:8px;overflow:hidden}
.hm-seg button{border:0;background:#fff;padding:.5rem .85rem;font:inherit;font-size:.85rem;font-weight:600;color:var(--text-muted);cursor:pointer}
.hm-seg button.on{background:var(--nav-bg);color:#fff}
.hm-bar select{font:inherit;font-size:.85rem;padding:.5rem .6rem;border:1px solid var(--border);border-radius:8px;background:#fff;color:var(--text)}
.hm-bar .hm-count{margin-left:auto;font-size:.85rem;color:var(--text-muted);font-weight:600}
.hm-layout{display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:1rem;align-items:start}
.hm-map{height:calc(100vh - 150px);min-height:420px;border-radius:10px;border:1px solid var(--border);position:sticky;top:122px;overflow:hidden}
.hm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.hm-card{background:var(--surface);border:1px solid var(--border);border-radius:10px;overflow:hidden;box-shadow:var(--shadow-sm);display:flex;flex-direction:column;transition:box-shadow .15s,border-color .15s}
.hm-card.hot{border-color:var(--accent);box-shadow:0 0 0 3px rgba(37,99,235,.15)}
.hm-ph{position:relative;aspect-ratio:3/2;background:#e2e8f0;overflow:hidden}
.hm-ph img{width:100%;height:100%;object-fit:cover;display:block}
.hm-tag{position:absolute;left:.6rem;top:.6rem;background:rgba(15,23,42,.82);color:#fff;font-size:.7rem;font-weight:700;padding:.2rem .5rem;border-radius:6px}
.hm-tag.new{background:var(--green)}
.hm-body{padding:.8rem .9rem .9rem;display:flex;flex-direction:column;gap:.35rem;flex:1}
.hm-price{font-size:1.3rem;font-weight:800;letter-spacing:-.01em}
.hm-addr{font-size:.88rem;color:var(--text);line-height:1.35}
.hm-facts{font-size:.8rem;color:var(--text-muted)}
.hm-schools{display:flex;flex-direction:column;gap:.3rem;margin-top:.25rem;padding-top:.5rem;border-top:1px dashed var(--border)}
.hm-sch{display:flex;align-items:center;gap:.5rem;font-size:.8rem;color:var(--text)}
.hm-sch a{color:var(--text);font-weight:600}
.hm-sch small{color:var(--text-muted)}
.hm-r{flex:none;min-width:34px;text-align:center;font-weight:800;font-size:.78rem;border-radius:6px;padding:.1rem .3rem;border:1.5px solid var(--border);background:#fff}
.hm-r.top{border-color:var(--gold);color:var(--gold);background:#fffbeb}.hm-r.good{border-color:var(--green);color:var(--green);background:#f0fdf4}.hm-r.mid{border-color:var(--yellow);color:var(--yellow);background:#fefce8}.hm-r.low{border-color:var(--red);color:var(--red);background:#fef2f2}
.hm-foot{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-top:auto;padding-top:.55rem}
.hm-brk{font-size:.68rem;color:var(--text-muted);line-height:1.3}
.hm-pow img{width:96px;height:auto;display:block}
.hm-acts{display:flex;gap:.4rem;margin-top:.4rem}
.hm-btn{flex:1;text-align:center;font:inherit;font-size:.82rem;font-weight:700;padding:.55rem .5rem;border-radius:8px;border:1px solid var(--accent);background:var(--accent);color:#fff;cursor:pointer}
.hm-btn.ghost{background:#fff;color:var(--accent)}
.hm-more{display:block;margin:1.25rem auto 0;font:inherit;font-weight:700;padding:.7rem 1.4rem;border-radius:8px;border:1px solid var(--border);background:#fff;cursor:pointer}
.hm-empty{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:2rem;text-align:center;color:var(--text-muted)}
.hm-alert{margin:2rem 0;background:var(--nav-bg);color:#e2e8f0;border-radius:12px;padding:1.5rem;display:grid;grid-template-columns:1fr 1.2fr;gap:1.25rem;align-items:center}
.hm-alert h2{color:#fff;margin:0 0 .35rem;font-size:1.3rem}
.hm-alert p{color:#94a3b8;font-size:.92rem}
.hm-form{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
.hm-form input,.hm-form select,.hm-form textarea{font:inherit;font-size:.9rem;padding:.6rem .7rem;border-radius:8px;border:1px solid #cbd5e1;background:#fff;color:var(--text);width:100%}
.hm-form .full{grid-column:1/-1}
.hm-form button{grid-column:1/-1;font:inherit;font-weight:800;padding:.75rem;border-radius:8px;border:0;background:#f59e0b;color:#1e293b;cursor:pointer}
.hm-fine{font-size:.72rem;color:#94a3b8;grid-column:1/-1;line-height:1.4}
.hm-modal{position:fixed;inset:0;background:rgba(15,23,42,.6);display:none;align-items:center;justify-content:center;z-index:300;padding:1rem}
.hm-modal.open{display:flex}
.hm-dialog{background:#fff;border-radius:12px;max-width:460px;width:100%;padding:1.25rem;position:relative}
.hm-dialog h3{font-size:1.15rem;margin-bottom:.2rem}
.hm-dialog .sub{color:var(--text-muted);font-size:.85rem;margin-bottom:.9rem}
.hm-dialog .hm-fine{color:var(--text-muted)}
.hm-x{position:absolute;right:.6rem;top:.4rem;border:0;background:none;font-size:1.5rem;cursor:pointer;color:var(--text-muted)}
.hm-legal{margin-top:2rem;font-size:.75rem;color:var(--text-muted);line-height:1.55;border-top:1px solid var(--border);padding-top:1rem}
.hm-legal p{margin-bottom:.5rem}
.hm-pin{background:var(--nav-bg);color:#fff;font:700 11px/1 'DM Sans',sans-serif;padding:4px 6px;border-radius:6px;white-space:nowrap;box-shadow:0 1px 3px rgba(0,0,0,.3);border:1.5px solid #fff;transform:translate(-50%,-100%);position:absolute}
.hm-pin.hot{background:var(--accent)}
.hm-pinwrap{background:none;border:0}
.hm-pop{font-family:'DM Sans',sans-serif;width:210px}
.hm-pop img{width:100%;height:120px;object-fit:cover;border-radius:6px;margin-bottom:.35rem}
.hm-pop b{font-size:1rem}
.hm-near{margin:2.5rem 0 1rem}
.hm-near .hm-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.hm-near-head{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;flex-wrap:wrap}
.hm-near-head h2{margin:0 0 .75rem}
.hm-cta-strip{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;padding:1rem 1.25rem;margin:1.5rem 0}
.hm-cta-strip b{display:block;font-size:1.02rem}
.hm-cta-strip span{color:var(--text-muted);font-size:.88rem}
.hm-cta-strip a{background:var(--accent);color:#fff;font-weight:700;padding:.65rem 1.1rem;border-radius:8px;white-space:nowrap}
@media(max-width:980px){.hm-layout{grid-template-columns:1fr}.hm-map{position:relative;top:0;height:360px;order:-1}.hm-bar{top:0}.hm-stats{grid-template-columns:repeat(2,1fr)}.hm-alert{grid-template-columns:1fr}}
@media(max-width:620px){.hm-grid,.hm-near .hm-grid{grid-template-columns:1fr}.hm-form{grid-template-columns:1fr}.hm-bar .hm-count{margin-left:0;width:100%}}
