/* extracted from index.php 2026-12-05 (homepage inline style block 3) */

/* ---- index-new: hero band + PMS + featured (BA-INDEX-v1.0.0) ---- */
.ba-band{position:relative;min-height:470px;display:flex;align-items:flex-end;overflow:hidden;background:#0B1F3A}
.ba-band picture,.ba-band-img{position:absolute;inset:0;width:100%;height:100%}
.ba-band-img{object-fit:cover;object-position:center top;display:block}
.ba-band-scrim{position:absolute;inset:0;background:linear-gradient(180deg,rgba(6,17,36,.24) 0%,rgba(6,17,36,0) 22%,rgba(6,17,36,.12) 46%,rgba(6,17,36,.70) 80%,rgba(6,17,36,.90) 100%)}
.ba-band-inner{position:relative;z-index:2;max-width:1240px;margin:0 auto;padding:52px 20px 44px;width:100%}
.ba-band-eyebrow{font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:#bfd3f6;margin:0 0 10px;text-shadow:0 1px 6px rgba(0,0,0,.5)}
.ba-band-h1{color:#fff;font-size:clamp(28px,3.5vw,42px);font-weight:700;line-height:1.13;letter-spacing:-.03em;margin:0 0 10px;max-width:1020px;text-shadow:0 2px 14px rgba(0,0,0,.45)}
.ba-band-h1b{display:block;white-space:nowrap}
.ba-band-lead{color:rgba(255,255,255,.92);font-size:15.5px;line-height:1.6;margin:0;max-width:820px;text-shadow:0 1px 10px rgba(0,0,0,.5)}
.ba-band-lead strong{color:#fff;font-weight:600}
.ba-pms-section{padding:58px 0 26px}
.ba-pms{background:linear-gradient(135deg,#0B1F3A 0%,#12305c 100%);color:#fff;border-radius:26px;padding:40px 34px}
.ba-pms .ba-kicker{color:#8ab4ff}
.ba-pms h2{color:#fff}
.ba-pms .ba-copy{color:rgba(255,255,255,.82);max-width:none}
.ba-pms-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:24px}
.ba-pms-card{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);border-radius:15px;padding:16px}
.ba-pms-card b{display:block;font-size:14.5px;margin-bottom:5px}
.ba-pms-card span{font-size:12px;color:rgba(255,255,255,.72);line-height:1.5}
.ba-pms-btns{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.ba-pms-btn{background:#fff;color:#0B1F3A!important;border-radius:999px;padding:11px 22px;font-weight:600;font-size:13.5px;text-decoration:none!important}
.ba-pms-btn.ghost{background:transparent;color:#fff!important;border:1px solid rgba(255,255,255,.4)}
.ba-featured-section{padding:0 0 26px}
@media(max-width:991px){.ba-band{min-height:340px}.ba-band-inner{padding:36px 20px}.ba-pms-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.ba-band-h1b{white-space:normal}.ba-pms-grid{grid-template-columns:1fr}.ba-pms{padding:28px 20px}}

/* ---- PMS band: win against .ba-home .ba-h2 / .ba-kicker (equal-class specificity) ---- */
.ba-home .ba-pms .ba-h2, .ba-home .ba-pms h2 { color:#fff !important; }
.ba-home .ba-pms .ba-kicker { color:#8ab4ff !important; }
.ba-home .ba-pms .ba-kicker:after { background:#8ab4ff; }
.ba-home .ba-pms .ba-copy { color:rgba(255,255,255,.85) !important; max-width:none; }
.ba-home .ba-pms .ba-copy strong { color:#fff; }
/* tighter rhythm around the band + featured */
.ba-home .ba-pms-section { padding:26px 0 26px; }
.ba-home .ba-featured-section { padding:0 0 22px; }
.ba-home .ba-pms { padding:34px 30px; }
.ba-home .ba-pms h2 { margin-bottom:12px; line-height:1.15; }

/* 2026-09-23: the PMS heading is 68 characters and .ba-home .ba-h2 is 46px,
   so against the band usable width of roughly 1,080px it needed about 1,300
   and wrapped, leaving 30+ Years alone on a second line.
   SCOPED TO .ba-pms ON PURPOSE - there are EIGHT .ba-h2 headings on this page
   and the other seven are shorter and keep their 46px. Specificity is 0,3,0
   against the base rule 0,2,0, so this wins without !important and without
   touching the max-width 1199 rule that drops .ba-h2 to 32px.
   Fluid rather than one fixed size, so it shrinks as the viewport narrows
   instead of snapping at a single breakpoint. THE 36px CEILING IS THE ONE
   NUMBER TO NUDGE: lower it if it still wraps, raise it if it now reads too
   small. I cannot render the page, so that figure is arithmetic from the
   character count and the serif advance width, not a measurement.
   Below roughly 1000px, 68 characters cannot sit on one line at a readable
   size, so it is ALLOWED to wrap there rather than forced with nowrap, which
   would overflow the band instead. text-wrap balance then splits it evenly
   rather than orphaning the last two words, which is what looked wrong. */
.ba-home .ba-pms .ba-h2,
.ba-home .ba-pms h2 {
  font-size: clamp(24px, 3.1vw, 36px);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* ================= index-new: restore the approved hero composition =================
   Band holds eyebrow + H1 + lead; the search dock is pulled UP so it overlays the
   lower part of the photo, exactly as mocked. The adjacent-sibling selector means
   this only applies when the band rendered (full homepage), never in lean mode. */
.ba-band { min-height:560px; }
.ba-band-inner { padding:58px 20px 168px; }
.ba-band + .ss-workspace-section {
  margin-top:-142px; position:relative; z-index:5; padding-top:0;
  height:auto; min-height:760px;   /* reserve space: without it the map+list
                                       arriving late shifted the page (CLS .575) */
}
.ba-band + .ss-workspace-section .ss-search-dock {
  box-shadow:0 22px 60px rgba(6,17,36,.34);
}
@media (max-width:991px){
  .ba-band { min-height:420px; }
  .ba-band-inner { padding:36px 20px 120px; }
  .ba-band + .ss-workspace-section { margin-top:-104px; }
}

/* ---- no scrollbox on the towns grid ---- */
.ba-home .ba-town-scroll { max-height:none !important; overflow:visible !important; }

/* ---- kill the excess vertical whitespace between homepage sections ---- */
.ba-home .ba-section { padding:44px 0 !important; }
.ba-home .ba-listings { padding:34px 0 40px !important; }
.ba-home .ba-sec-head { margin-bottom:20px; }

/* ---- Lead-capture CTA: Tenants / Buyers / Landlords ----
   2026-09-23: SELF-CONTAINED ON PURPOSE.
   These rules used to live in the homepage stylesheet as .ba-home .cta-*,
   and that stylesheet sits inside if (!ss_lean). So the moment anyone ran a
   search the block lost every rule it had and rendered as three plain
   Bootstrap buttons in the body font - on the one page whose job is lead
   capture.
   Scoped to .cta-section instead, which appears nowhere else in either file,
   so nothing can leak into the search workspace.
   THE SAME TEXT IS IN index-new.php AND detailed-search.php. One rule set,
   two files, no .ba-home dependency in either - detailed-search has no
   .ba-home rules at all.
   Effective values preserved exactly: padding 8px 0 26px came from the
   always-rendered !important override, weight 500 beat the 600 in the shared
   serif rule by source order, and the var() fallbacks mean the colours hold
   even where the custom properties are not in scope. */
main { display: block; }   /* normalize for pre-HTML5 engines */
.cta-section { padding: 8px 0 26px; }
.cta-section .cta-heading {
  font-family: var(--ba-serif, "Cormorant Garamond", "Times New Roman", Georgia, serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 32px;
  color: var(--ba-ink, #0F172A);
  margin: 20px 0 15px;
}
.cta-section .cta-btn {
  width: 100%; max-width: 320px; min-height: 58px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 5px; white-space: normal; line-height: 1.2; padding: 10px 15px;
  background: var(--ba-navy, #0B1F3A) !important; color: #fff !important;
  border: 0 !important; border-radius: 999px !important;
  font-weight: 500; letter-spacing: 0.04em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.cta-section .cta-btn:hover,
.cta-section .cta-btn:focus {
  background: var(--ba-gold, #C4A574) !important; color: #fff !important;
  transform: translateY(-2px); box-shadow: 0 12px 24px rgba(47,111,237,0.35);
  text-decoration: none;
}
.ba-home .ba-trends { padding:32px 24px 22px; }
.ba-home #neighborhood-list { padding-top:8px !important; }
.ba-home .ba-faq { margin-bottom:0; }

/* ---- CLS: hold space for everything that arrives after first paint ----
   The map canvas, the results pane and the AJAX card grid all populate late
   (Leaflet is deferred, listings arrive by XHR). Without reserved height each
   one grows the page under the content below it. Heights match the workspace
   so nothing moves when they fill. */
.ss-map-stage, #ss-map-canvas { min-height:640px; }
.ss-list-pane { min-height:640px; }
#ss-viewport-listings, #listings { min-height:560px; }
.ss-load-wrap { min-height:120px; }
.ba-band + .ss-workspace-section .ss-split { min-height:640px; }
/* card media boxes keep their aspect before the photo decodes */
.ss-map-card-img { min-height:160px; background:#eef2f8; }
.ss-map-card-img img { display:block; width:100%; height:160px; object-fit:cover; }
@media (max-width:991px){
  .ss-map-stage, #ss-map-canvas, .ss-list-pane,
  .ba-band + .ss-workspace-section .ss-split { min-height:420px; }
  #ss-viewport-listings, #listings { min-height:380px; }
}
