/* Section 9: Bay Area Real Estate Hub (built to match KW approved Image 2) */
.hbm-hub{--hb:#5A1020;--hbd:#3B0A10;--hg:#B08A2E;background:#F6F1EA;padding:28px 0 40px;border-top:1px solid #E6DCCB}
.hbm-hub .hbm-hub__wrap{max-width:1440px;margin:0 auto;padding:0 24px}
.hbm-hub .hbm-hub__head{text-align:center;margin-bottom:22px}
.hbm-hub .hbm-hub__kicker{display:flex;align-items:center;justify-content:center;gap:14px;margin:0;color:var(--hg);font-family:var(--font-serif);letter-spacing:.35em;font-size:clamp(.9rem,1.3vw,1.2rem);text-transform:uppercase}
.hbm-hub .hbm-hub__kicker::before,.hbm-hub .hbm-hub__kicker::after{content:"";width:40px;height:1px;background:var(--hg)}
.hbm-hub h2{margin:2px 0 6px;font-family:var(--font-serif);font-weight:600;color:var(--hbd);font-size:clamp(2.2rem,5vw,4.6rem);letter-spacing:.08em;line-height:1.05;text-transform:uppercase}
.hbm-hub .hbm-hub__sub{margin:0;color:#2a2622;font-size:clamp(.95rem,1.25vw,1.15rem)}
.hbm-hub .hbm-hub__cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:16px}
.hbm-hub .hbm-hub__card{display:grid;grid-template-columns:54% minmax(0,1fr);background:#fff;border:1px solid #E6DCCB;border-radius:6px;overflow:hidden;box-shadow:0 2px 10px rgba(59,10,16,.06)}
.hbm-hub .hbm-hub__card figure{margin:0;background:#2a2622}
.hbm-hub .hbm-hub__card figure img{display:block;width:100%;height:100%;object-fit:cover}
.hbm-hub .hbm-hub__card--sell figure img{height:auto;object-fit:contain}
.hbm-hub .hbm-hub__panel{display:flex;flex-direction:column;align-items:center;padding:18px 12px 14px;text-align:center}
.hbm-hub .hbm-hub__icon{width:52px;height:52px;border-radius:50%;background:var(--hb);display:flex;align-items:center;justify-content:center;margin-bottom:8px}
.hbm-hub .hbm-hub__icon svg{width:26px;height:26px;fill:none;stroke:#F3E3C3;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hbm-hub h3{margin:0;font-family:var(--font-serif);font-weight:600;color:var(--hbd);font-size:clamp(1.4rem,2.2vw,2.1rem);letter-spacing:.06em;text-transform:uppercase}
.hbm-hub .hbm-hub__rule{width:36px;height:2px;background:var(--hg);margin:10px 0 14px}
.hbm-hub .hbm-hub__list{list-style:none;margin:0 0 auto;padding:0;text-align:left;align-self:stretch}
.hbm-hub .hbm-hub__list li{margin:0 0 10px}
.hbm-hub .hbm-hub__list a{display:flex;align-items:center;gap:10px;color:#2a2622;text-decoration:none;font-size:clamp(.8rem,1vw,.98rem);line-height:1.25}
.hbm-hub .hbm-hub__list a:hover{color:var(--hb)}
.hbm-hub .hbm-hub__list svg{flex:none;width:20px;height:20px;fill:none;stroke:var(--hg);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.hbm-hub .hbm-hub__btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;margin-top:14px;padding:10px 12px;background:var(--hb);color:#fff;border-radius:3px;font-size:clamp(.66rem,.82vw,.8rem);letter-spacing:.06em;text-transform:uppercase;text-decoration:none;white-space:nowrap;align-self:stretch}
.hbm-hub .hbm-hub__btn:hover{background:var(--hbd);color:#fff}

.hbm-hub .hbm-hub__insights{background:#fff;border:1px solid #E6DCCB;border-radius:6px;padding:0 14px 14px}
.hbm-hub .hbm-hub__tabs{display:flex;align-items:center;gap:0;border-bottom:1px solid #E6DCCB;margin-bottom:12px;flex-wrap:wrap}
.hbm-hub .hbm-hub__tab{padding:14px 26px 12px;color:#2a2622;font-size:.95rem;letter-spacing:.06em;text-transform:uppercase;text-decoration:none;border-right:1px solid #E6DCCB}
.hbm-hub .hbm-hub__tab:last-of-type{border-right:0}
.hbm-hub .hbm-hub__tab.is-active{color:var(--hbd);font-weight:600;box-shadow:inset 0 -3px 0 var(--hb)}
.hbm-hub .hbm-hub__tagline{margin:0 0 0 auto;padding-right:10px;font-family:var(--font-serif);font-style:italic;color:#2a2622;font-size:1.05rem}
.hbm-hub .hbm-hub__widgets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.hbm-hub .hbm-hub__widget{border:1px solid #E6DCCB;border-radius:4px;padding:14px;display:flex;flex-direction:column;min-height:260px}
.hbm-hub .hbm-hub__widget h4{margin:0;font-family:var(--font-sans);font-size:.85rem;letter-spacing:.04em;text-transform:uppercase;color:#111;font-weight:600}
.hbm-hub .hbm-hub__widget small{color:#555;font-size:.75rem;margin:2px 0 10px}
.hbm-hub .hbm-hub__widget img{display:block;width:100%;height:auto;border-radius:2px;margin-bottom:10px}
.hbm-hub .hbm-hub__pending{flex:1;display:flex;align-items:center;justify-content:center;text-align:center;background:#FAF7F2;border:1px dashed #D9C7A6;border-radius:4px;color:#7a6a55;font-size:.85rem;padding:14px;line-height:1.4}
.hbm-hub .hbm-hub__src{display:flex;justify-content:space-between;margin-top:10px;color:#666;font-size:.7rem}
.hbm-hub .hbm-hub__note{text-align:center;margin:14px 0 0;color:#2a2622;font-size:.9rem;line-height:1.6}
.hbm-hub .hbm-hub__note b{color:var(--hbd);font-weight:600}

@media (max-width:1100px){
  .hbm-hub .hbm-hub__cards{grid-template-columns:1fr;max-width:620px;margin-left:auto;margin-right:auto}
  .hbm-hub .hbm-hub__widgets{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:600px){
  .hbm-hub .hbm-hub__wrap{padding:0 16px}
  .hbm-hub .hbm-hub__card{grid-template-columns:50% minmax(0,1fr)}
  .hbm-hub .hbm-hub__widgets{grid-template-columns:1fr}
  .hbm-hub .hbm-hub__tab{padding:12px 12px 10px;font-size:.78rem}
  .hbm-hub .hbm-hub__tagline{margin:8px 0 6px;width:100%;text-align:center}
}
@media (min-width:1101px){
  .hbm-hub .hbm-hub__cards{grid-template-columns:.94fr 1.1fr 1.08fr}
  .hbm-hub .hbm-hub__card{height:clamp(340px,27vw,400px);grid-template-columns:52% minmax(0,1fr)}
  .hbm-hub .hbm-hub__card--sell{grid-template-columns:calc(clamp(340px,27vw,400px) * .7199) minmax(0,1fr)}
  .hbm-hub .hbm-hub__card--sell figure img{height:100%;width:100%;object-fit:fill}
  .hbm-hub .hbm-hub__list a{font-size:clamp(.78rem,.95vw,.92rem)}
  .hbm-hub .hbm-hub__list li{margin-bottom:8px}
  .hbm-hub .hbm-hub__panel{padding:16px 12px 14px}
}
.hbm-hub .hbm-hub__btn{font-size:clamp(.6rem,.72vw,.74rem);letter-spacing:.04em;padding:10px 8px}
@media (max-width:1100px){.hbm-hub .hbm-hub__card--sell{align-items:start}}
.hbm-hub .hbm-hub__card--sell .hbm-hub__btn{white-space:normal;line-height:1.3;text-align:center}
@media (max-width:600px){.hbm-hub .hbm-hub__btn{white-space:normal;line-height:1.3;text-align:center}}

.hbm-hub .hbm-hub__areas{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 12px}
.hbm-hub .hbm-hub__areas span{color:#2a2622;font-size:.9rem;margin-right:4px}
.hbm-hub .hbm-hub__area{padding:8px 14px;border:1px solid var(--hb);border-radius:3px;background:#fff;color:var(--hb);font-size:.85rem;letter-spacing:.03em;cursor:pointer}
.hbm-hub .hbm-hub__area.is-active,.hbm-hub .hbm-hub__area:hover{background:var(--hb);color:#fff}
.hbm-hub .hbm-hub__slot{flex:1;min-height:200px}
.hbm-hub .hbm-hub__slot iframe{display:block;width:100%;border:0}

.hbm-hub .hbm-lux__pick{display:block;margin:0 0 10px}
.hbm-hub .hbm-lux__pick select{width:100%;padding:7px 8px;border:1px solid #5A1020;border-radius:3px;background:#fff;color:#3B0A10;font-size:.82rem}
.hbm-hub .hbm-lux__stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:4px 0 6px}
.hbm-hub .hbm-lux__stats div{text-align:center;background:#FAF7F2;border:1px solid #EFE4D2;border-radius:3px;padding:8px 4px}
.hbm-hub .hbm-lux__stats strong{display:block;color:#3B0A10;font-family:var(--font-serif);font-size:1.35rem;line-height:1.1}
.hbm-hub .hbm-lux__stats span{display:block;color:#555;font-size:.68rem;margin-top:3px}
.hbm-hub .hbm-lux__period{margin:2px 0 0;text-align:center;color:#666;font-size:.7rem}

/* Nov 11 refinement (agreed with Madhu): wider chart panels, titles in burgundy bars, Ask Madhu button. */
.hbm-hub .hbm-hub__head{position:relative}
.hbm-hub .hbm-hub__ask{position:absolute;right:0;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;gap:10px;padding:10px 20px 10px 12px;border-radius:999px;background:linear-gradient(180deg,#6b1e32,#3f1420);border:1px solid #d4a85a;color:#f6efe3;font-weight:600;text-decoration:none;box-shadow:0 6px 18px rgba(63,20,32,.25)}
.hbm-hub .hbm-hub__ask:hover{color:#fff;filter:brightness(1.1)}
.hbm-hub .hbm-hub__ask-icon{width:28px;height:28px;border-radius:50%;background:#d4a85a;display:grid;place-items:center}
.hbm-hub .hbm-hub__ask-icon svg{width:16px;height:16px;fill:none;stroke:#3f1420;stroke-width:2;stroke-linejoin:round}
@media (max-width:1100px){.hbm-hub .hbm-hub__ask{position:static;transform:none;margin-top:14px}}
.hbm-hub .hbm-hub__widgets{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.hbm-hub .hbm-hub__widget{padding:0 16px 14px;overflow:hidden;min-height:320px}
.hbm-hub .hbm-hub__widget h4{margin:0 -16px 0;padding:10px 16px;background:var(--hb);color:#fff;font-family:var(--font-serif);font-size:1.2rem;font-weight:600;letter-spacing:.01em;text-transform:none}
.hbm-hub .hbm-hub__widget small,.hbm-hub .hbm-hub__widget .hbm-hub__county{margin:8px 0 10px}
.hbm-hub .hbm-hub__widget .hbm-lux__pick{margin-top:12px}
.hbm-hub .hbm-hub__slot{min-height:260px}
.hbm-hub .hbm-hub__widget--lux img{max-height:200px;object-fit:cover}
.hbm-hub .hbm-lux__stats{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:600px){.hbm-hub .hbm-hub__widgets{grid-template-columns:1fr}.hbm-hub .hbm-lux__stats{grid-template-columns:1fr 1fr}}
/* Nov 12, 2026: luxury box hidden until January; three live boxes side by side */
.hbm-hub [hidden]{display:none!important}
@media (min-width:901px){.hbm-hub .hbm-hub__widgets.is-three{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Nov 14, 2026 (Madhu): bigger and wider market charts.
   The three boxes are stacked, each across the full width:
   Current Market Snapshot, then Monthly Market Report, then Buyer vs Seller Trends.
   The charts are drawn taller. */
@media (min-width:901px){
  .hbm-hub .hbm-hub__widgets.is-three{grid-template-columns:minmax(0,1fr)}
}
.hbm-hub .hbm-hub__widgets.is-three>.hbm-hub__widget{min-height:0}
.hbm-hub .hbm-hub__slot[data-slot=kpi]{min-height:0}
.hbm-hub .hbm-hub__slot[data-slot=price] iframe,.hbm-hub .hbm-hub__slot[data-slot=dom] iframe{width:100%!important;height:520px!important}
@media (max-width:600px){.hbm-hub .hbm-hub__slot[data-slot=price] iframe,.hbm-hub .hbm-hub__slot[data-slot=dom] iframe{height:440px!important}}
