/* Housing Market Snapshot — LivingLocal Realty® guides
   Brand navy #202459 / orange #F2531B. Equal-size cards. No overflow at 390–1440 widths. */
#housing-market-snapshot{background:#fff;color:#1e2230;border-top:1px solid #e6e2da}
#housing-market-snapshot .ms-wrap{max-width:1140px;margin:0 auto;padding:48px 20px 40px;box-sizing:border-box}
#housing-market-snapshot .eyebrow{font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#F2531B;margin:0 0 8px}
#housing-market-snapshot h2{font-family:inherit;font-size:clamp(1.45rem,2.2vw,2rem);line-height:1.25;color:#202459;margin:0 0 10px}
#housing-market-snapshot .ms-lead{margin:0 0 22px;font-size:1.02rem;line-height:1.65;color:#1e2230;max-width:46rem}
#housing-market-snapshot .ms-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:1fr;gap:14px;align-items:stretch}
#housing-market-snapshot .ms-card{background:#fff;border:1px solid #e6e2da;border-radius:16px;border-left:6px solid #F2531B;padding:18px 16px 16px;display:flex;flex-direction:column;gap:4px;min-width:0;min-height:168px;height:100%;box-shadow:0 2px 6px rgba(32,36,89,.04);box-sizing:border-box}
#housing-market-snapshot .ms-card .ms-label{font-size:.78rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#5b6172}
#housing-market-snapshot .ms-card .ms-value{font-size:clamp(1.35rem,2.4vw,1.85rem);font-weight:800;color:#202459;line-height:1.15;letter-spacing:-.02em;overflow-wrap:anywhere}
#housing-market-snapshot .ms-card .ms-yoy{font-size:.88rem;color:#1e2230;line-height:1.45;margin-top:2px}
#housing-market-snapshot .ms-card .ms-sub{font-size:.8rem;color:#5b6172;line-height:1.4;margin-top:auto;padding-top:8px}
#housing-market-snapshot .ms-foot{margin:18px 0 0;font-size:.86rem;color:#5b6172;line-height:1.55}
#housing-market-snapshot .ms-cta{margin:16px 0 0;font-size:1rem;line-height:1.6;color:#1e2230}
#housing-market-snapshot .ms-charts{margin-top:36px}
#housing-market-snapshot .ms-charts h3{font-size:1.15rem;color:#202459;margin:0 0 6px}
#housing-market-snapshot .ms-charts .ms-chart-lead{margin:0 0 14px;font-size:.95rem;line-height:1.6;color:#5b6172;max-width:46rem}
#housing-market-snapshot .ms-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
#housing-market-snapshot .ms-tab{appearance:none;background:#fff;border:1.5px solid #202459;color:#202459;border-radius:10px;padding:8px 12px;font:inherit;font-size:.88rem;font-weight:800;cursor:pointer;line-height:1.2}
#housing-market-snapshot .ms-tab[aria-selected="true"]{background:#202459;color:#fff}
#housing-market-snapshot .ms-tab:focus-visible{outline:2px solid #F2531B;outline-offset:2px}
#housing-market-snapshot .ms-panel{display:none}
#housing-market-snapshot .ms-panel.is-on{display:block}
#housing-market-snapshot .ms-dw{position:relative;width:100%;max-width:100%;aspect-ratio:600 / 764;max-height:min(70vh,764px);overflow:hidden;background:#fff;border:1px solid #e6e2da;border-radius:16px;box-sizing:border-box}
#housing-market-snapshot .ms-dw iframe{position:absolute;inset:0;width:100%;height:100%;border:0;max-width:100%}
#housing-market-snapshot .ms-chart-src{margin:10px 0 0;font-size:.86rem;color:#5b6172;line-height:1.55}

@media (max-width:1180px){
  #housing-market-snapshot .ms-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:520px){
  #housing-market-snapshot .ms-wrap{padding:36px 16px 32px}
  #housing-market-snapshot .ms-grid{grid-template-columns:1fr 1fr;gap:10px}
  #housing-market-snapshot .ms-card{min-height:168px;height:100%;padding:14px 12px 12px}
  #housing-market-snapshot .ms-card .ms-value{font-size:1.28rem}
}
@media (max-width:389px){
  #housing-market-snapshot .ms-grid{grid-template-columns:1fr}
}

@media (max-height:820px) and (min-width:1000px){
  /* landscape tablet: keep the map inside the viewport height */
  #housing-market-snapshot .ms-dw{max-height:70vh;aspect-ratio:auto;height:min(70vh,764px)}
}
#housing-market-snapshot .ms-is{margin-top:36px}
#housing-market-snapshot .ms-is-frame{position:relative;width:100%;max-width:640px;overflow:hidden;background:#fff;border:1px solid #e6e2da;border-radius:16px;box-sizing:border-box;aspect-ratio:640 / 480}
#housing-market-snapshot .ms-is-inner{width:100%;height:100%}
#housing-market-snapshot .ms-is-inner iframe{display:block;width:100%;height:100%;border:0;max-width:100%}
#housing-market-snapshot .ms-is-credit{margin:12px 0 0;font-size:.86rem;color:#5b6172;line-height:1.55}
