/* ============================================================================
   haystock.css — SHARED element library for every migrated (non-Bubble) page.
   ============================================================================
   HOW TO READ THIS FILE
   It mirrors Bubble's "element styles": one clearly-labelled block per element
   type (Text, Button, Input, Icon, Group/Card, Chip/Badge, Bar, Nav). Use these
   classes on every page so a heading / button / input / card looks identical
   everywhere. Change a value here once → every page updates. Page-specific
   section styles stay in each page's own <style> block; they should REUSE these
   classes wherever possible rather than re-defining colors/sizes.

   MOBILE: base rules are desktop. The "MOBILE (≤800px)" block at the bottom holds
   the shared mobile overrides (single-column, hamburger nav, tighter gutters).
   A page keeps its own extra mobile rules in its own file — see MIGRATION_GUIDE.md
   for the per-page desktop-vs-mobile policy.

   LOADING: referenced as /shared/haystock.css (site-root absolute) so the same
   file resolves locally (server.py) and on S3/CloudFront for every page.
   Colors/type were measured off the live Haystock page — see the design tokens.
   ============================================================================ */


/* ========================================================================== */
/* 1. DESIGN TOKENS — change brand colors, type, spacing, radius here          */
/* ========================================================================== */
:root {
  /* surfaces */
  --hero-bg: #1A1F2E;          /* navy hero / dark sections */
  --panel-bg: #242B3D;         /* dark stat / data cards */
  --chip-bg: #252D42;          /* dark chip on hero */
  --nav-bg: #FFFFFF;
  --page-bg: #FFFFFF;
  --card-bg: #F0F2F5;          /* light "intelligence" cards */

  /* brand + accents */
  --brand-blue: #0059BF;       /* Hayblue — primary */
  --accent-blue: #0077FF;      /* links / score accent */
  --amber: #E8A030;            /* luxury / summer-sun accent */
  --amber-text: #C9921A;       /* face-descriptor amber (Yellow Brown) */
  --badge-bg: #FFD84C;
  --badge-ink: #854F0B;

  /* text */
  --heading-ink: #3A4255;
  --ink: #1a1a1a;
  --muted: #9AAABB;
  --muted-2: #6B7FA0;

  /* semantic (legends, deltas) */
  --open: #34A853;             /* green / good */
  --partial: #FBBC05;          /* yellow / partial */
  --blocked: #EA4335;          /* red / blocked */
  --pos: #159C4D;              /* below-estimate green */
  --neg: #D94040;              /* above-estimate red */

  /* type */
  --font-head: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: Helvetica, Arial, sans-serif;

  /* geometry */
  --card-radius: 10px;
  --content-max: 1440px;       /* max content width; live page is uncapped 100% — tune here */
  --gutter: 32px;              /* page side padding (desktop) */
  --mobile-max: 800px;         /* breakpoint the MOBILE block + pages key off */
}

/* ========================================================================== */
/* 2. BASE RESET                                                               */
/* ========================================================================== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--page-bg); color: var(--ink); font-family: var(--font-body); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ========================================================================== */
/* 3. TYPOGRAPHY — the Text styles (use on any page for consistent headings)   */
/* ========================================================================== */
.t-h1     { font-family: var(--font-head); font-weight: 600; font-size: 36px; margin: 0; color: var(--ink); }
.t-h2     { font-family: var(--font-head); font-weight: 600; font-size: 16px; margin: 0; color: var(--heading-ink); }
.t-h3     { font-family: var(--font-head); font-weight: 600; font-size: 15px; margin: 0; color: var(--heading-ink); }
.t-body   { font-family: var(--font-head); font-weight: 400; font-size: 14px; color: var(--heading-ink); }
.t-sub    { font-size: 14px; color: var(--muted-2); }               /* card sub-label */
.t-label  { font-size: 12px; letter-spacing: .04em; color: var(--muted-2); text-transform: uppercase; font-family: var(--font-head); }
.t-helper { font-size: 12px; color: var(--muted-2); line-height: 1.5; }

/* ========================================================================== */
/* 4. BUTTONS                                                                  */
/* ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 14px; line-height: 1;
  padding: 10px 18px; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; text-align: center; transition: background .15s ease, color .15s ease;
}
.btn-primary   { background: var(--brand-blue); color: #fff; }
.btn-primary:hover   { background: #0a49a0; }
.btn-secondary { background: var(--hero-bg); color: #fff; }
.btn-secondary:hover { background: #2a3550; }
.btn-ghost     { background: #fff; color: var(--heading-ink); border-color: #cfd6de; }
.btn-ghost:hover     { background: #f4f6f9; }

/* ========================================================================== */
/* 5. INPUTS & DROPDOWNS                                                       */
/* ========================================================================== */
.input, .select {
  font-family: var(--font-body); font-size: 14px; color: var(--ink);
  padding: 7px 10px; border: 1px solid #cfd6de; border-radius: 8px; background: #fff;
}
.input:focus, .select:focus { outline: none; border-color: var(--brand-blue); }
.select { appearance: none; padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7FA0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; }

/* ========================================================================== */
/* 6. ICONS — section icon in its rounded tinted box (blue/amber/green/red)    */
/* ========================================================================== */
.icon-box { width: 30px; height: 30px; border-radius: 5px; padding: 5px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.icon-box.tblue  { background: #E6F0FB; }
.icon-box.tamber { background: #FFF8EE; }
.icon-box.tgreen { background: #F0FAF5; }
.icon-box.tred   { background: #FDF0F0; }
.sec-ic { width: 18px; height: 18px; fill: currentColor; display: block; }

/* ========================================================================== */
/* 7. NAV / HEADER — shared top bar + mega-menus (mountHeader injects markup)   */
/*    Faithful port of the Bubble "Header" reusable: logo → index, centered     */
/*    Products/Resources/Company hover mega-menus, NYC Market Snapshot pill with */
/*    barometer dropdown, right-side account menu + Request Demo. Values measured */
/*    off the live header (Quicksand; ink #3B3B3B; 1px rgba(59,59,59,.2) rule).   */
/* ========================================================================== */
.nav {
  background: var(--nav-bg); border-bottom: 1px solid rgba(59,59,59,.2);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 7px var(--gutter); position: sticky; top: 0; z-index: 50; font-family: var(--font-head);
}
.nav .brand { justify-self: start; display: inline-flex; align-items: center; text-decoration: none; }
.nav .brand img { height: 34px; display: block; }
.nav .brand .brand-txt { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: #10162a; }
.nav .brand .brand-txt span { color: var(--brand-blue); }

/* centered primary nav */
.nav .links { justify-self: center; display: flex; gap: 34px; align-items: center; }
.nav-item { position: relative; }
.nav-item > .nav-label {
  font-family: var(--font-head); font-weight: 600; font-size: 16px; color: #3B3B3B;
  display: inline-flex; align-items: center; gap: 6px; padding: 14px 0; cursor: default;
  transition: color .12s ease;
}
.nav-item.has-menu > .nav-label { cursor: pointer; }
/* hover/active: label turns blue with a blue underline hugging the text (matches live) */
.nav-item.has-menu:hover > .nav-label {
  color: var(--accent-blue);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px;
}

/* the NYC Market Snapshot pill */
.nav .pill {
  background: #E3F2E8; color: #1B5E20; border: 1px solid #CFE8D3; border-radius: 8px;
  padding: 3px 10px; font-size: 12px; font-weight: 500; font-family: var(--font-head);
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer; white-space: nowrap;
}
.nav .pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #159C4D; display: inline-block; }

/* right-side group: account icon + request demo */
.nav .right { justify-self: end; display: flex; align-items: center; gap: 18px; }
.nav .acct { display: inline-flex; align-items: center; cursor: pointer; color: #3B3B3B; }
.nav .acct svg { width: 20px; height: 20px; display: block; }
/* Request Demo — blue filled button, matching the live header */
.nav .demo {
  color: #fff; font-size: 14px; font-weight: 600; font-family: var(--font-head);
  border: 0; background: var(--brand-blue); border-radius: 10px; padding: 9px 18px; cursor: pointer;
  transition: background .12s, box-shadow .12s; box-shadow: 0 2px 8px rgba(0,89,191,.28); white-space: nowrap;
}
.nav .demo:hover { background: #0a49a0; box-shadow: 0 4px 14px rgba(0,89,191,.34); }
/* Quickstart nav link (logged-out) — looks like the other nav labels + blue hover underline */
.nav .nav-link { text-decoration: none; }
.nav .nav-link:hover > .nav-label { color: var(--accent-blue);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
/* logged-out "Log In" text link */
.nav .hs-login { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--heading-ink);
  text-decoration: none; cursor: pointer; white-space: nowrap; }
.nav .hs-login:hover { color: var(--brand-blue); }

.nav .burger { display: none; font-size: 22px; color: #10162a; background: none; border: 0; cursor: pointer; justify-self: end; }

/* ---- dropdown panels (mega-menus + account + barometers) ---- */
.nav-panel {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(24px);
  background: #fff; border: 1px solid #eef0f3; border-radius: 16px;
  box-shadow: 0 18px 44px rgba(16,22,42,.16); padding: 22px 24px; z-index: 60;
  opacity: 0; visibility: hidden; transition: opacity .14s ease, transform .14s ease;
}
/* the visible gap below the bar before the panel opens (matches live spacing) */
.nav-item:hover > .nav-panel, .nav-panel:hover { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(16px); }
/* invisible hover bridge so the cursor can cross the gap from the label to the panel */
.nav-panel::before { content:''; position:absolute; top:-18px; left:0; right:0; height:18px; }
.acct-item .nav-panel, .nav .right .nav-panel { left: auto; right: 0; transform: translateX(0) translateY(24px); }
.acct-item:hover > .nav-panel, .acct-item .nav-panel:hover { transform: translateX(0) translateY(16px); }

/* mega-menu (Products): 3 category columns — roomy so subtitles don't wrap tightly */
.mega { display: grid; grid-template-columns: repeat(3, minmax(238px, 1fr)); gap: 6px 42px; }
.mega .cat { text-align: center; font-size: 13px; font-weight: 500; color: #9AAABB; font-family: var(--font-head); margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid #f0f2f5; }
.mega .col { display: flex; flex-direction: column; gap: 2px; }

/* single-column dropdown list (Resources / Company / account) */
.menu-list { display: flex; flex-direction: column; gap: 2px; min-width: 258px; }

/* a menu row: round coloured icon tile + title + subtitle */
.menu-row { display: flex; align-items: center; gap: 13px; padding: 9px 10px; border-radius: 12px; cursor: pointer; text-decoration: none; }
.menu-row:hover { background: #F4F6F9; }
.menu-row .ic { width: 40px; height: 40px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.menu-row .ic svg { width: 21px; height: 21px; }
.menu-row .txt { display: flex; flex-direction: column; }
.menu-row .txt .ti { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: #1A1F2E; line-height: 1.2; }
.menu-row .txt .su { font-size: 12.5px; color: #6B7FA0; line-height: 1.25; margin-top: 2px; }
/* icon-tile colours — tint (default): pale circle + coloured glyph */
.ic.blue  { background: #DBEAFC; color: #0077FF; }
.ic.green { background: #E4F6E8; color: #159C4D; }
.ic.amber { background: #FFF1E5; color: #E8862A; }
.ic.slate { background: #E5E9F0; color: #45506A; }
/* solid — the highlighted lead item of each column: filled circle + white glyph */
.ic.solid.blue  { background: #0077FF; color: #fff; }
.ic.solid.green { background: #159C4D; color: #fff; }
.ic.solid.amber { background: #F47C20; color: #fff; }

/* Resources dropdown: 4-item list on the left + featured "Monthly Report" card on the right */
.res-wrap { display: grid; grid-template-columns: 300px 250px; gap: 22px; align-items: start; }
.res-featured { display: block; text-decoration: none; padding: 6px; border-radius: 12px; }
.res-featured:hover { background: #F4F6F9; }
.res-featured img { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; display: block; background: #eef0f3; }
.res-featured .res-cap { display: block; padding: 10px 4px 4px; }
.res-featured .res-cap .ti { display: block; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: #1A1F2E; }
.res-featured .res-cap .su { display: block; font-size: 12.5px; color: #6B7FA0; margin-top: 2px; }

/* barometer / market-snapshot panel — holds the self-contained barometer.html iframe brick.
   Wide enough for the 3-column collapsed view; capped height so "See more" scrolls in-panel. */
.baro { width: 840px; max-width: calc(100vw - 32px); padding: 8px 10px; max-height: 86vh; overflow-y: auto; overflow-x: hidden; }
.baro-frame { display: block; width: 100%; height: 300px; border: 0; }
/* JS hover-intent (haystock.js) toggles .baro-open on the pill so the panel stays open across the
   gap and over the iframe — a pure-CSS :hover bridge flickers with an iframe inside. */
.nav .pill-item.baro-open > .nav-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(16px); }

/* ---- Full-screen mobile header/menu (shared) — INDEPENDENT static port of Bubble's `mobile_header`
   reusable (own markup/model in haystock.js's hsBuildMobileHeader(); NOT the desktop mega-menu).
   Opened by the burger (toggles `.open`); hidden on desktop (burger is display:none above 800px).
   Shape mirrors the live menu: account card · PREFERENCES + HAYSTOCK sections · two featured cards ·
   market-snapshot bar · sign-in buttons. ---- */
.mh {
  position: fixed; inset: 0; z-index: 200; background: #fff; font-family: var(--font-head);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.mh.open { opacity: 1; visibility: visible; transform: none; }
body.mm-lock { overflow: hidden; }                 /* freeze the page behind the menu */
.mh svg.mh-ic { width: 24px; height: 24px; display: block; }

/* panels: main ⇄ Products/Resources sub-panels, switched by the [data-panel] state (mirrors the
   Bubble `content` custom state). A Back button returns to main. */
.mh .mh-panel { position: absolute; inset: 0; display: none; flex-direction: column; }
.mh[data-panel="main"]      .mh-main,
.mh[data-panel="products"]  .mh-sub[data-name="products"],
.mh[data-panel="resources"] .mh-sub[data-name="resources"] { display: flex; }
.mh .mh-back { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 0; cursor: pointer; color: #1A1F2E; font-family: var(--font-head); font-size: 16px; font-weight: 600; }
.mh .mh-back svg { width: 22px; height: 22px; }
.mh .mh-title { font-size: 22px; font-weight: 700; color: #1A1F2E; margin: 2px 0 8px; }
/* sub-panel openers are <button>s — make them look like their link counterparts */
.mh button.mh-row, .mh button.mh-feat { width: 100%; text-align: left; font: inherit; border: 0; cursor: pointer; }
.mh button.mh-row { background: none; border-bottom: 1px dashed #dfe4ea; }

/* top bar: logo + dark square close */
.mh .mh-bar { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter) 8px; }
.mh .mh-logo { display: inline-flex; align-items: center; text-decoration: none; }
.mh .mh-logo img { height: 30px; display: block; }
.mh .mh-logo-txt { font-weight: 700; font-size: 20px; color: #10162a; }
.mh .mh-logo-txt span { color: var(--brand-blue); }
.mh .mh-close { width: 42px; height: 42px; border-radius: 10px; background: #1A1F2E; border: 0; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.mh .mh-close svg { width: 20px; height: 20px; }

.mh .mh-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px var(--gutter) 22px; display: flex; flex-direction: column; }

/* account card (peach + amber avatar) */
.mh .mh-acct { display: flex; align-items: center; gap: 14px; background: #FDF4E8; border: 1px solid #F0C879; border-radius: 14px; padding: 13px 16px; text-decoration: none; }
.mh .mh-acct-av { width: 42px; height: 42px; border-radius: 50%; background: #E8A030; color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.mh .mh-acct-av svg { width: 22px; height: 22px; }
.mh .mh-acct-txt { display: flex; flex-direction: column; min-width: 0; }
.mh .mh-acct-l { font-size: 14px; color: #C9921A; }
.mh .mh-acct-v { font-size: 17px; font-weight: 600; color: #1A1F2E; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* section labels */
.mh .mh-sec { font-size: 13px; font-weight: 600; letter-spacing: .05em; color: #506178; margin: 24px 0 2px; }
.mh .mh-group { display: flex; flex-direction: column; }

/* plain row: leading icon + label + chevron, dashed separators */
.mh .mh-row { display: flex; align-items: center; gap: 14px; padding: 14px 2px; text-decoration: none; border-bottom: 1px dashed #dfe4ea; }
.mh .mh-row:last-child { border-bottom: 0; }
.mh .mh-lead { display: inline-flex; color: #6B7FA0; flex: none; }     /* HAYSTOCK plain rows = grey */
.mh .mh-group.pref .mh-lead { color: #E8A030; }                        /* PREFERENCES rows = amber */
.mh .mh-row-t { flex: 1; font-size: 17px; font-weight: 600; color: #1A1F2E; }
.mh .mh-chev { display: inline-flex; color: #c3ccd8; flex: none; }
.mh .mh-chev svg { width: 18px; height: 18px; }

/* featured cards (Buildings navy · Products amber) */
.mh .mh-feat { display: flex; align-items: center; gap: 14px; border-radius: 10px; padding: 15px 16px; text-decoration: none; margin: 8px 0; color: #fff; }
.mh .mh-feat.navy  { background: #1A1F2E; }
.mh .mh-feat.amber { background: #E8A030; }
.mh .mh-feat .mh-ic { color: #fff; }
.mh .mh-feat-txt { flex: 1; display: flex; flex-direction: column; }
.mh .mh-feat-t { font-size: 18px; font-weight: 600; line-height: 1.2; }
.mh .mh-feat-s { font-size: 13.5px; opacity: .92; margin-top: 2px; }

/* NYC Market Snapshot bar */
.mh .mh-snap { display: flex; align-items: center; gap: 12px; background: #E3F2E8; border-radius: 10px; padding: 14px 16px; text-decoration: none; margin-top: 18px; }
.mh .mh-snap .mh-dot { width: 9px; height: 9px; border-radius: 50%; background: #159C4D; flex: none; }
.mh .mh-snap-t { flex: 1; font-size: 16px; font-weight: 500; color: #1B5E20; }
.mh .mh-snap .mh-ic { color: #159C4D; }

/* sign-in buttons */
.mh .mh-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.mh .mh-btn { padding: 15px; border-radius: 10px; font-family: var(--font-head); font-size: 15px; font-weight: 500; cursor: pointer; border: 1px solid transparent; }
.mh .mh-btn.primary { background: #1A1F2E; color: #fff; }
.mh .mh-btn.ghost { background: #fff; color: #3B3B3B; border-color: #d7dde5; }

/* ========================================================================== */
/* 8. LAYOUT — page container, section labels, responsive grids                */
/* ========================================================================== */
.wrap { max-width: var(--content-max); margin: 0 auto; padding: 4px var(--gutter) 56px; }
.section-label {
  color: var(--muted); font-family: var(--font-head); font-size: 16px; font-weight: 600;
  display: flex; align-items: center; gap: 12px; margin: 26px 0 16px;
}
.section-label::after { content:''; flex:1; height:1px; background:#e3e7ec; }
.grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }   /* 2-up (default) */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ========================================================================== */
/* 9. CARDS / GROUPS / PANELS                                                  */
/* ========================================================================== */
.card { background: var(--card-bg); border-radius: var(--card-radius); padding: 16px 18px; }
.card .head { display: flex; align-items: center; gap: 8px; }
.card .head .icon { /* alias of .icon-box, kept so existing markup works */ width: 30px; height: 30px; border-radius: 5px; padding: 5px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.card .head .icon.tblue  { background: #E6F0FB; }
.card .head .icon.tamber { background: #FFF8EE; }
.card .head .icon.tgreen { background: #F0FAF5; }
.card .head .icon.tred   { background: #FDF0F0; }
.card .head h2 { font-family: var(--font-head); font-size: 16px; font-weight: 600; color: var(--heading-ink); margin: 0; }
.card .head .badge { background: var(--badge-bg); color: var(--badge-ink); font-size: 12px; border-radius: 20px; padding: 2px 9px; margin-left: 2px; }
.card .head .right { margin-left: auto; font-size: 13px; color: var(--muted-2); }
.card .sub { font-size: 14px; color: var(--muted-2); margin: 4px 0 12px; }
/* dark data panel (stats / air-rights rows) */
.panel { background: var(--panel-bg); color: #fff; border-radius: var(--card-radius); overflow: hidden; font-family: var(--font-head); }
/* map / iframe embed wrapper */
.map-wrap { position: relative; width: 100%; height: 300px; border-radius: 8px; overflow: hidden; background: #dfe3e8; }
.map-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

/* ========================================================================== */
/* 10. CHIPS / BADGES / PILLS / TAGS                                           */
/* ========================================================================== */
.chip  { background: var(--chip-bg); color: var(--muted); border-radius: 20px; padding: 5px 12px; font-size: 14px; }
.badge { background: var(--badge-bg); color: var(--badge-ink); font-size: 12px; border-radius: 20px; padding: 2px 9px; }
.pill  { background: #eaf3ea; color: #1c7a3f; border-radius: 20px; padding: 5px 12px; font-size: 13px; }
.tag   { display: inline-block; font-size: 11px; border-radius: 10px; padding: 1px 8px; font-weight: 500; font-family: var(--font-head); }
.tag.red   { background: #fdeceb; color: #b3261e; }
.tag.green { background: var(--pos); color: #fff; }

/* ========================================================================== */
/* 11. BARS / TRACKS — reusable progress/fill bar                              */
/* ========================================================================== */
.bar-track { display: block; height: 10px; background: #eef0f3; border-radius: 5px; overflow: hidden; }
.bar-fill  { display: block; height: 100%; border-radius: 5px; background: var(--brand-blue); transition: width 0.4s ease; }
.bar-fill.amber { background: var(--amber); }

/* ========================================================================== */
/* 12. MOBILE (≤800px) — shared overrides. Pages add their own on top.         */
/* ========================================================================== */
@media (max-width: 800px) {
  :root { --gutter: 16px; }                 /* tighter page gutters on phones */
  .nav { grid-template-columns: 1fr auto; } /* brand | burger */
  .nav .links, .nav .right { display: none; }/* hide desktop nav + right group… */
  .nav .burger { display: inline-flex; }    /* …show the hamburger */
  .grid, .grid-3 { grid-template-columns: 1fr; }  /* everything stacks single-column */
  .t-h1 { font-size: 28px; }
}

/* ========================================================================== */
/* 13. AUTOCOMPLETE (hsAutocomplete) — reusable typeahead dropdown             */
/* ========================================================================== */
.hs-ac-host { position: relative; }
.hs-ac {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 80;
  background: #fff; border: 1px solid #e2e7ee; border-radius: 10px;
  box-shadow: 0 12px 30px rgba(16,22,42,.16); max-height: 300px; overflow-y: auto;
}
.hs-ac-row { display: flex; align-items: baseline; gap: 10px; padding: 9px 12px; cursor: pointer; font-family: var(--font-head); }
.hs-ac-row:hover, .hs-ac-row.on { background: #F4F6F9; }
.hs-ac-t { font-weight: 600; font-size: 14px; color: var(--ink); }
.hs-ac-s { font-size: 12px; color: var(--muted); margin-left: auto; white-space: nowrap; }   /* lighter neighborhood */
.hs-ac-empty { padding: 10px 12px; font-size: 13px; color: var(--muted); font-family: var(--font-head); }

/* ---- hsChipSelect / mountHoodsPicker — reusable multi-select toggle chips ---- */
.hs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hs-chip { border: 1px solid #dce2ea; background: #fff; border-radius: 16px; padding: 5px 12px;
  font-family: var(--font-head); font-weight: 600; font-size: 13px; color: var(--muted-2); cursor: pointer;
  transition: background .12s, color .12s, border-color .12s; }
.hs-chip:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.hs-chip.on { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
.hs-chips-note { font-size: 12.5px; color: var(--muted); font-family: var(--font-head); }

/* shared helper text + callout (same look the views page uses) */
.hint { font-size: 12px; color: var(--muted-2); margin: 4px 0 8px; line-height: 1.45; }
.hs-note { font-size: 12.5px; color: #8a6d2f; background: #FFF7EC; border: 1px solid #F6E2BE; border-radius: 8px; padding: 8px 10px; margin: 6px 0; line-height: 1.45; }

/* hsAmenitySelect — tag-style multi-input: pills (with ×) + an input that opens a filterable dropdown */
.hs-tags { position: relative; border: 1px solid #dce2ea; border-radius: 10px; background: #fff; padding: 5px 6px 2px; cursor: text; }
.hs-tags:focus-within { border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(0,89,191,.10); }
.hs-tags-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.hs-tag { display: inline-flex; align-items: center; gap: 5px; background: #EAF0FB; color: var(--ink); border: 1px solid #d6e3f7;
  border-radius: 14px; padding: 3px 5px 3px 8px; font-family: var(--font-head); font-weight: 600; font-size: 12px; margin-bottom: 3px; }
.hs-tag img { display: block; opacity: .85; }
.hs-tag.premium { background: #FFFBF2; border-color: #ecd7a6; }
.hs-tag i { cursor: pointer; font-style: normal; width: 15px; height: 15px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; background: #d6e3f7; color: #3a5b8a; font-size: 12px; }
.hs-tag i:hover { background: var(--brand-blue); color: #fff; }
.hs-tags-input { border: 0; outline: 0; font: inherit; font-family: var(--font-head); font-size: 13px; padding: 4px 4px 5px; min-width: 120px; flex: 1; background: transparent; color: var(--ink); }
.hs-tags-menu { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40; background: #fff; border: 1px solid #E3E6EB;
  border-radius: 10px; box-shadow: 0 10px 28px rgba(16,22,42,.16); max-height: 240px; overflow: auto; padding: 5px; }
.hs-tags-opt { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 7px; cursor: pointer; font-family: var(--font-head); font-size: 13px; color: var(--ink); }
.hs-tags-opt .noic { width: 15px; height: 15px; display: inline-block; }
.hs-tags-opt .star { margin-left: auto; color: var(--amber, #E8A030); font-style: normal; font-size: 11px; }
.hs-tags-opt:hover, .hs-tags-opt.on { background: #F4F8FF; }
.hs-tags-empty { padding: 8px 10px; font-size: 12.5px; color: var(--muted); }

/* mountHoodsPicker — borough toggle + grouped checkboxes */
.hs-hp-boro { display: inline-flex; background: var(--navy-tint, #F0F2F5); border-radius: 10px; padding: 4px; gap: 4px; margin-bottom: 10px; }
.hs-hp-boro button { border: 0; background: transparent; font: inherit; font-family: var(--font-head); font-weight: 600; font-size: 12.5px; color: var(--muted-2); padding: 6px 14px; border-radius: 7px; cursor: pointer; }
.hs-hp-boro button.on { background: var(--heading-ink, #1A1F2E); color: #fff; }
.hs-hp-all { display: flex; align-items: center; gap: 7px; font-family: var(--font-head); font-size: 12px; letter-spacing: .03em; color: var(--brand-blue); margin: 0 0 10px; cursor: pointer; }
.hs-hp-groups { column-width: 150px; column-gap: 18px; }
.hs-hp-group { break-inside: avoid; margin-bottom: 12px; }
.hs-hp-grouphead { display: flex; align-items: center; gap: 6px; font-family: var(--font-head); font-size: 11px; letter-spacing: .04em; color: var(--muted-2); margin: 0 0 5px; cursor: pointer; }
.hs-hp-hood { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink); padding: 2px 0; cursor: pointer; }
.hs-hp-hood input, .hs-hp-grouphead input, .hs-hp-all input { accent-color: var(--brand-blue); }

/* ========================================================================== */
/* 14. MODAL / POPUP (units picker, etc.) — reusable centered sheet            */
/* ========================================================================== */
.hs-modal { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; }
.hs-modal.open { display: flex; }
.hs-modal .hs-backdrop { position: absolute; inset: 0; background: rgba(16,22,42,.42); }
.hs-modal .hs-sheet {
  position: relative; background: #fff; border-radius: 14px; width: min(480px, 92vw); max-height: 82vh;
  display: flex; flex-direction: column; box-shadow: 0 22px 64px rgba(16,22,42,.32); font-family: var(--font-head);
}
.hs-sheet .hs-sheet-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 10px; }
.hs-sheet .hs-sheet-h .t { font-weight: 700; font-size: 17px; color: var(--ink); }
.hs-sheet .hs-sheet-h .x { width: 34px; height: 34px; border: 0; background: #f0f3f7; border-radius: 9px; font-size: 18px; cursor: pointer; color: var(--heading-ink); }
.hs-sheet .hs-sheet-sub { padding: 0 18px 12px; font-size: 13px; color: var(--muted-2); }
.hs-sheet .hs-sheet-body { padding: 4px 18px 18px; overflow-y: auto; }

/* unit chips grid */
.hs-units { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.hs-unit { border: 1px solid #dce2ea; border-radius: 9px; padding: 8px 6px; text-align: center; cursor: pointer; background: #fff; transition: border-color .12s, background .12s; }
.hs-unit:hover { border-color: var(--brand-blue); background: #F4F8FF; }
.hs-unit .u { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--ink); }
.hs-unit .b { font-size: 11px; color: var(--muted-2); margin-top: 1px; }
.hs-units-group { font-size: 12px; letter-spacing: .04em; color: var(--muted-2); text-transform: uppercase; font-family: var(--font-head); margin: 14px 0 6px; }
.hs-units-group:first-child { margin-top: 2px; }
/* foldable bed-type sections */
.hs-units-fold { border-top: 1px solid #eef1f4; }
.hs-units-fold:first-child { border-top: none; }
.hs-units-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 11px 2px; font-family: var(--font-head); font-weight: 600; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); }
.hs-units-fold > summary::-webkit-details-marker { display: none; }
.hs-units-fold > summary::before { content: '▸'; color: #c3ccd8; font-size: 11px; }
.hs-units-fold[open] > summary::before { content: '▾'; }
.hs-units-fold > summary .ct { margin-left: auto; background: #eef1f5; color: var(--muted-2); border-radius: 10px; padding: 1px 8px; font-size: 11px; letter-spacing: 0; }
.hs-units-fold .hs-units { padding-bottom: 12px; }

/* ========================================================================== */
/* 15. ANALYTICS PANELS (shared) — air rights + construction (analytics-panels.js) */
/* ========================================================================== */
/* air-rights compact panel */
.ar-panel { background: var(--panel-bg); color: #fff; border-radius: 10px; overflow: hidden; font-family: var(--font-head); }
.ar-panel .ar-title { padding: 11px 13px 7px; font-size: 13px; font-weight: 600; }
.ar-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 13px; font-size: 13px; color: var(--muted); border-top: 1px solid rgba(255,255,255,.06); }
.ar-row .rv { color: #fff; font-weight: 500; text-align: right; }
.ar-row.pressure .rv.low { color: #58c07a; } .ar-row.pressure .rv.medium { color: var(--amber); } .ar-row.pressure .rv.high { color: #ff7a7a; }
.ar-detail-link { display: block; width: 100%; text-align: left; background: rgba(255,255,255,.06); color: #cdd7ff; border: 0; border-top: 1px solid rgba(255,255,255,.06); font-family: var(--font-head); font-size: 12px; font-weight: 600; padding: 9px 13px; cursor: pointer; }
.ar-detail-link:hover { background: rgba(255,255,255,.12); color: #fff; }
/* air-rights toggles (worst-case / FAR-remaining) */
.ar-toggle { display: flex; align-items: center; gap: 9px; font-family: var(--font-head); font-size: 13px; color: var(--heading-ink); padding: 6px 0; cursor: pointer; }
.ar-toggle input { width: 16px; height: 16px; accent-color: var(--brand-blue); cursor: pointer; }
/* zoning-flags helper (collapsible) */
.ar-help { margin-top: 12px; border: 1px solid #e7ebf0; border-radius: 10px; overflow: hidden; }
.ar-help > summary { list-style: none; cursor: pointer; padding: 9px 12px; font-family: var(--font-head); font-size: 12px; font-weight: 600; color: var(--muted-2); background: #f7f9fb; }
.ar-help > summary::-webkit-details-marker { display: none; }
.ar-help > summary::before { content: '▸ '; }
.ar-help[open] > summary::before { content: '▾ '; }
.ar-help-item { display: flex; gap: 9px; padding: 9px 12px; font-size: 12.5px; color: var(--heading-ink); line-height: 1.4; border-top: 1px solid #eef1f4; }
.ar-help-item .dot { width: 26px; height: 11px; border-radius: 6px; flex: none; margin-top: 2px; }
/* .hs-note — the ONE shared helper-callout format (use this everywhere a small explanatory note is
   needed: air-rights toggles, landmarks, etc.). Don't invent per-section note styles. */
.hs-note { font-size: 12px; color: var(--muted-2); line-height: 1.5; background: #f7f9fb; border-radius: 8px; padding: 8px 10px; margin: 6px 0 4px; }
.ar-minfar { display: flex; align-items: center; gap: 10px; margin: 8px 0 2px; }
.ar-minfar input { width: 74px; text-align: center; }
.ar-minfar span { font-size: 13px; color: var(--heading-ink); font-family: var(--font-head); }
/* neighbors */
.ar-neighbors { margin-top: 12px; }
.ar-neighbors .nh { font-size: 12px; letter-spacing: .04em; color: var(--muted-2); margin-bottom: 6px; }
.nb { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #eef1f4; }
.nb:first-of-type { border-top: none; }
.nb .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blocked); flex: none; }
.nb .who { flex: 1; min-width: 0; }
.nb .who .a { font-size: 13px; font-weight: 600; color: var(--heading-ink); }
.nb .who .band { display: inline-block; margin-top: 3px; font-size: 11px; background: #fdeceb; color: #b3261e; border-radius: 10px; padding: 1px 8px; }
.nb .pf { text-align: right; font-size: 12px; color: var(--muted-2); } .nb .pf b { color: var(--heading-ink); font-weight: 600; }

/* construction recap (compact) */
#cr-no-data, .cr-no-data { font-size: 13px; color: var(--muted); padding: 6px 0; }
.cr-summary { font-size: 13px; color: var(--heading-ink); margin: 2px 0 10px; } .cr-summary b { color: #10162a; }
.cr-legend { display: flex; gap: 14px; margin-bottom: 8px; }
.cr-leg-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted-2); }
.cr-leg-dot { width: 10px; height: 10px; border-radius: 3px; }
.cr-row { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.cr-row .cr-dir { width: 16px; font-size: 13px; font-weight: 600; color: #1A1F2E; flex: none; }
.cr-bar-wrap { flex: 1; height: 22px; border-radius: 6px; overflow: hidden; display: flex; background: #E3E6EB; }
.cr-seg-green { height: 100%; background: rgba(21,156,77,.85); } .cr-seg-red { height: 100%; background: rgba(217,64,64,.8); } .cr-seg-full { height: 100%; width: 100%; background: rgba(21,156,77,.85); }
.cr-floor-note { width: 52px; flex: none; font-size: 12px; font-weight: 500; text-align: right; }
.cr-cards { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.cr-cards-h { font-size: 12px; letter-spacing: .04em; color: var(--muted-2); }
.cr-card { display: flex; align-items: center; gap: 10px; background: var(--panel-bg); border-radius: 10px; padding: 9px 11px; font-family: var(--font-head); }
.cr-card .who { flex: 1; min-width: 0; } .cr-card .who .a { font-size: 13px; font-weight: 600; color: #fff; } .cr-card .who .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cr-card .sides { font-size: 11px; background: rgba(217,64,64,.16); color: #ff8a8a; border-radius: 10px; padding: 2px 8px; font-weight: 600; flex: none; }
.cr-note { font-size: 12px; color: var(--muted-2); margin-top: 10px; line-height: 1.5; }

/* ========================================================================== */
/* 16. DRAWER (shared right slide-in — air-rights full calcs, etc.)            */
/* ========================================================================== */
.hs-drawer { position: fixed; inset: 0; z-index: 130; visibility: hidden; }
.hs-drawer.open { visibility: visible; }
.hs-drawer .hs-drawer-bd { position: absolute; inset: 0; background: rgba(16,22,42,.4); opacity: 0; transition: opacity .2s ease; }
.hs-drawer.open .hs-drawer-bd { opacity: 1; }
.hs-drawer .hs-drawer-panel { position: absolute; top: 0; right: 0; height: 100%; width: min(460px, 92vw); background: #fff; box-shadow: -14px 0 44px rgba(16,22,42,.28); transform: translateX(100%); transition: transform .26s ease; display: flex; flex-direction: column; font-family: var(--font-head); }
.hs-drawer.open .hs-drawer-panel { transform: none; }
.hs-drawer .hs-drawer-h { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid #eef1f4; }
.hs-drawer .hs-drawer-h .t { font-size: 17px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 9px; }
.hs-drawer .hs-drawer-h .t::before { content: ''; width: 4px; height: 20px; border-radius: 2px; background: var(--brand-blue); }
.hs-drawer .hs-drawer-h .x { width: 34px; height: 34px; border: 0; background: #f0f3f7; border-radius: 9px; font-size: 18px; cursor: pointer; color: var(--heading-ink); }
.hs-drawer .hs-drawer-body { flex: 1; overflow-y: auto; padding: 16px 18px 28px; }

/* air-rights detail (drawer body) */
.d-head .d-name { font-size: 17px; font-weight: 700; color: var(--ink); }
.d-head .d-sub { font-size: 13px; color: var(--muted-2); margin-top: 3px; }
.d-head .d-sub b { color: var(--heading-ink); }
/* pressure indicator — dot + value colored INLINE from the map's step scale (analytics-panels.js
   arColor), so the drawer matches the map extrusion/hover exactly */
.d-pressure { display: flex; align-items: center; gap: 10px; margin: 14px 0; padding: 12px 14px; border: 1px solid #e7ebf0; border-radius: 12px; }
.d-pressure .d-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.d-pressure .dpp { font-size: 13px; color: var(--muted-2); }
.d-pressure .dpv { font-size: 15px; font-weight: 700; margin-left: auto; text-align: right; }
.d-why { background: #f7f9fb; border-radius: 10px; padding: 11px 13px; font-size: 13px; color: var(--heading-ink); line-height: 1.5; }
.d-recap { margin: 14px 0 4px; }
.d-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 13.5px; color: var(--muted-2); border-top: 1px dashed #e7ebf0; }
.d-row:first-child { border-top: none; }
.d-row .v { color: var(--heading-ink); text-align: right; }
.tag-far { font-size: 10.5px; background: #eef1f5; color: var(--muted-2); border-radius: 6px; padding: 1px 6px; margin-left: 4px; }
.d-details { margin-top: 8px; }
.d-details > summary { cursor: pointer; list-style: none; font-size: 16px; font-weight: 700; color: var(--ink); padding: 12px 0 6px; display: flex; align-items: center; gap: 9px; border-top: 1px solid #eef1f4; }
.d-details > summary::-webkit-details-marker { display: none; }
.d-details > summary::before { content: ''; width: 4px; height: 18px; border-radius: 2px; background: var(--brand-blue); }
.d-block { background: #f7f9fb; border-radius: 12px; padding: 12px 14px; margin-top: 12px; }
/* topical tints — highlight different subjects (calc = blue, constraints = amber, score = green) */
.d-block.tint-blue { background: #F2F4FB; }
.d-block.tint-amber { background: #FDF6EC; }
.d-block.tint-green { background: #F0FAF5; }
.d-block-h { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.d-explain { font-size: 12.5px; color: var(--muted-2); line-height: 1.5; margin-top: 8px; }
.d-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.d-chip { font-size: 12px; background: #FBE5D6; color: #8a5a1f; border-radius: 8px; padding: 3px 9px; font-weight: 600; }
.d-penalty { margin-top: 10px; border-radius: 10px; padding: 10px 12px; font-size: 12.5px; line-height: 1.5; }
.d-penalty.clean { background: #E4F6E8; color: #14683a; }
.d-penalty.warn { background: #FDF0E4; color: #8a5a1f; }
.d-calc { margin-top: 8px; }
.d-calc-h { font-size: 12px; color: var(--muted-2); margin-bottom: 4px; }
.d-calc code { display: block; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; color: var(--heading-ink); background: #fff; border: 1px solid #eef1f4; border-radius: 6px; padding: 5px 8px; margin-bottom: 4px; white-space: pre-wrap; word-break: break-word; }

/* ========================================================================== */
/* searchQuery — the OLR apartment-search filter builder (mountSearchQuery)     */
/* Self-contained appended block; reuses .hs-chips/.hs-chip + .hint + tokens.   */
/* ========================================================================== */
.hs-sq { font-family: var(--font-head); color: var(--ink); }
/* tabs — sticky to the top of the scrolling drawer so they stay reachable in a long form */
.hs-sq-tabs { position: sticky; top: 0; z-index: 3; display: flex; gap: 2px; background: #fff;
  border-bottom: 1px solid #e6eaf0; margin: 0 0 8px; padding-top: 2px; }
.hs-sq-tab { border: 0; background: transparent; font-family: var(--font-head); font-weight: 600; font-size: 14px;
  color: var(--muted-2); padding: 11px 16px 12px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .12s; }
.hs-sq-tab:hover { color: var(--brand-blue); }
.hs-sq-tab.on { color: var(--brand-blue); border-bottom-color: var(--brand-blue); }
.hs-sq-panel { display: none; }
.hs-sq-panel.on { display: block; }

/* one section per row — clearer vertical rhythm + a stronger label / lighter hint hierarchy */
.hs-sq-row { padding: 16px 0; border-bottom: 1px solid #eef1f6; }
.hs-sq-row:first-child { padding-top: 6px; }
.hs-sq-row:last-child { border-bottom: 0; padding-bottom: 4px; }
.hs-sq-label { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; letter-spacing: 0; color: var(--heading-ink); margin-bottom: 3px; }
.hs-sq-label .ic.gi { color: var(--muted-2); }   /* subtle glyph — sits below the bold dark header text */
/* generic inline glyph wrapper (hsIcon(name,'gi')) — scales to the surrounding text */
.ic.gi { display: inline-flex; align-items: center; vertical-align: -0.14em; }
.ic.gi svg { width: 1em; height: 1em; display: block; }
.hs-sq-row .hint { margin: 0; font-size: 12px; color: var(--muted-2); line-height: 1.4; }
.hs-sq-ctl { margin-top: 11px; }

/* chips — slightly larger pills + more legible unselected text (scoped, doesn't touch other .hs-chip uses) */
.hs-sq .hs-chips { gap: 8px; }
.hs-sq .hs-chip { padding: 7px 14px; font-size: 13px; border-radius: 999px; }
.hs-sq .hs-chip:not(.on) { color: var(--muted-2); }   /* lighter than the bold dark section labels → clear hierarchy; keeps .hs-chip.on's white text */

/* Min — Max ranges now fill the row width evenly instead of two narrow left-aligned boxes */
.hs-sq-range { display: flex; align-items: center; gap: 10px; }
.hs-sq-dash { color: var(--muted); flex: 0 0 auto; }
.hs-sq-unit { font-size: 12px; color: var(--muted-2); flex: 0 0 auto; }
.sq-num, .sq-one, .sq-keywords, .sq-name { font-family: var(--font-head); font-size: 13.5px; color: var(--ink);
  border: 1px solid #dce2ea; border-radius: 9px; padding: 9px 12px; background: #fff; outline: 0;
  transition: border-color .12s, box-shadow .12s; -moz-appearance: textfield; }
.sq-num::-webkit-outer-spin-button, .sq-num::-webkit-inner-spin-button,
.sq-one::-webkit-outer-spin-button, .sq-one::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hs-sq-range .sq-num, .hs-sq-range .sq-one { flex: 1 1 0; width: auto; min-width: 0; max-width: 190px; }
.sq-keywords { width: 100%; max-width: 460px; }
.sq-num:focus, .sq-one:focus, .sq-keywords:focus, .sq-name:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(0,89,191,.12); }
.hs-sq-check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted-2); margin-top: 11px; cursor: pointer; }
.hs-sq-check input { accent-color: var(--brand-blue); width: 15px; height: 15px; }
.hs-sq-hoodsbtn { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-head); font-size: 13px; font-weight: 600; color: var(--brand-blue);
  background: var(--blue-tint, #E6F0FB); border: 1px solid #cfe0f5; border-radius: 9px; padding: 9px 15px; cursor: pointer; transition: background .12s; }
.hs-sq-hoodsbtn:hover { background: #dbe9fb; }
.hs-sq-hoodscount { font-size: 12px; font-weight: 600; color: var(--muted-2); margin-left: 10px; }
.hs-sq-hoodspanel { margin-top: 12px; border: 1px solid #e6eaf0; border-radius: 12px; overflow: hidden; background: #fbfcfe; }
.hs-sq-hoodsframe { width: 100%; height: 440px; border: 0; display: block; }
/* footer — Save-as input now grows to fill (was clipped); actions stay right-aligned + prominent */
.hs-sq-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid #e6eaf0; }
.hs-sq-save { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--muted-2); flex: 1 1 240px; }
.hs-sq-save .sq-name { flex: 1; min-width: 0; }
.hs-sq-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.hs-sq-reset { font-family: var(--font-head); font-size: 13px; font-weight: 600; color: var(--muted-2);
  background: transparent; border: 1px solid #dce2ea; border-radius: 9px; padding: 10px 16px; cursor: pointer; transition: color .12s, border-color .12s; }
.hs-sq-reset:hover { color: var(--neg); border-color: var(--neg); }
.hs-sq-update { font-family: var(--font-head); font-size: 13.5px; font-weight: 700; color: #fff;
  background: var(--heading-ink, #1A1F2E); border: 0; border-radius: 9px; padding: 11px 22px; cursor: pointer; transition: background .12s; }
.hs-sq-update:hover { background: var(--brand-blue); }
@media (max-width: 800px) {
  .hs-sq-tabs { overflow-x: auto; }
  .hs-sq-tab { flex: 1 0 auto; }
  .hs-sq-foot { flex-direction: column; align-items: stretch; }
  .hs-sq-save { flex: 1 1 auto; }
  .hs-sq-actions { justify-content: space-between; }
  .hs-sq-actions .hs-sq-update { flex: 1; }
  .hs-sq-range .sq-num, .hs-sq-range .sq-one { max-width: none; }
  .sq-keywords { max-width: none; }
}

/* ============================================================================
   hsUnitCard — shared listing/unit card (profile Recent/Saved units; screener
   can adopt later). Self-contained appended block. Reproduces the live Bubble
   `searches` unit vignette: media + hood/building + value bar + specs, and a
   right column of "Price for 1 Sq Ft" + "Profitability metrics".
   ============================================================================ */
/* matched to the screener's .sc-card vignette (font-head, thumb + main + two mini-cards + sun) */
.hs-uc { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid #e9edf3; border-radius: 13px; padding: 11px; font-family: var(--font-head); }
.hs-uc.sel { border-color: var(--brand-blue, #0059BF); box-shadow: 0 0 0 2px rgba(0,89,191,.18); }
.hs-uc-badges { position: absolute; left: 0; top: 12px; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.hs-uc-badge { font-size: 11px; font-weight: 700; color: #fff; padding: 3px 10px; border-radius: 0 8px 8px 0; box-shadow: 0 1px 3px rgba(16,22,42,.18); }
.hs-uc-badge.roi { background: var(--brand-blue, #0059BF); } .hs-uc-badge.sunny { background: var(--amber, #E8A030); } .hs-uc-badge.deal { background: #159C4D; }
.hs-uc-save { position: absolute; top: 8px; right: 8px; z-index: 2; background: rgba(255,255,255,.92); border: 1px solid #e2e8f0; border-radius: 50%;
  width: 30px; height: 30px; font-size: 16px; line-height: 1; color: #b7c0cf; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(16,22,42,.12); }
button.hs-uc-save:hover { color: var(--amber, #E8A030); border-color: var(--amber, #E8A030); }
.hs-uc-save.on { color: var(--amber, #E8A030); border-color: var(--amber, #E8A030); }
.hs-uc-top { display: flex; gap: 14px; }
.hs-uc-thumb { width: 170px; height: 150px; border-radius: 10px; object-fit: cover; background: #dde3ec; flex: 0 0 auto; display: block; }
.hs-uc-main { flex: 1; min-width: 0; }
.hs-uc-hood { font-size: 12px; color: #8595ad; } .hs-uc-hood i { font-style: italic; }
.hs-uc-bldg { font-size: 14px; color: var(--brand-blue, #0059BF); font-weight: 700; margin: 1px 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-uc-pricerow { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.hs-uc-price { font-size: 17px; font-weight: 700; color: #1A1F2E; }
.hs-uc-dom { font-size: 11.5px; color: #9AAABB; white-space: nowrap; }
.hs-uc-status { font-size: 11px; font-weight: 700; color: var(--badge-ink, #854F0B); background: var(--badge-bg, #FFD84C); padding: 1px 7px; border-radius: 5px; }
.hs-uc-specs { font-size: 12.5px; color: #3A4255; margin-top: 4px; }
.hs-uc-minis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.hs-uc-mini { background: #f4f6f9; border-radius: 9px; padding: 8px 10px; }
.hs-uc-mini .l { font-size: 11px; color: #8595ad; margin-bottom: 2px; }
.hs-uc-mini .v { font-size: 13.5px; font-weight: 700; color: #1A1F2E; }
.hs-uc-mini .sub { font-size: 11px; color: #6B7FA0; margin-top: 1px; }
.hs-uc-mini .conf { font-size: 11px; color: #159C4D; margin-top: 1px; display: flex; align-items: center; gap: 5px; }
.hs-uc-mini .conf .d { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.hs-uc-sun { background: #FDF6EC; color: #8a5a1f; border-radius: 9px; padding: 6px 10px; font-size: 12px; margin-top: 8px; }
.hs-uc-sun.nodata { background: #f4f6f9; color: #8595ad; }   /* no sun data → muted info, not a warning */
.hs-uc-acts { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid #eef1f5; }
.hs-uc-actgroup { display: flex; gap: 8px; flex-wrap: wrap; }
.hs-uc-act { font-family: var(--font-head); font-size: 12px; font-weight: 600; color: #334155; background: #f1f5f9;
  border: 1px solid #e2e8f0; border-radius: 7px; padding: 6px 12px; cursor: pointer; }
.hs-uc-act:hover { background: var(--brand-blue, #0059BF); color: #fff; border-color: var(--brand-blue, #0059BF); }
.hs-uc-share { color: #0059BF; }
@media (max-width: 900px) { .hs-uc-thumb { width: 140px; height: 124px; } }
@media (max-width: 560px) { .hs-uc-top { flex-direction: column; } .hs-uc-thumb { width: 100%; height: 170px; } }

/* hsHeightRibbon — estimated-height warning + override, rendered ABOVE the map by the embedder */
.hs-hr { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 8px; padding: 8px 12px;
  background: #FDF6EC; border: 1px solid #f0d9a8; border-left: 3px solid var(--amber, #E8A030); border-radius: 9px;
  font-family: var(--font-head); font-size: 12.5px; color: #7a5a12; }
.hs-hr-ico { color: var(--amber, #E8A030); }
.hs-hr-msg { flex: 1; min-width: 180px; }
.hs-hr-ctl { display: inline-flex; align-items: center; gap: 6px; }
.hs-hr-ctl label { font-weight: 700; }
.hs-hr-in { width: 60px; padding: 4px 6px; border: 1px solid #d7dee8; border-radius: 5px; font: inherit; }
.hs-hr-unit { color: #9a7a3a; }
.hs-hr-apply { background: var(--amber, #E8A030); color: #fff; border: 0; border-radius: 5px; padding: 5px 12px; cursor: pointer; font: inherit; font-weight: 700; }
.hs-hr-apply:hover { background: #cf8b1f; }
.hs-hr-reset { background: transparent; color: #9a7a3a; border: 0; padding: 5px 4px; cursor: pointer; font: inherit; font-weight: 600; text-decoration: underline; }

/* ========================================================================== */
/* 17. SITE FOOTER (mountFooter) — shared navy footer on every page            */
/*     Self-contained appended block. Columns + brand + social + Terms bar.    */
/* ========================================================================== */
.ft { background: var(--hero-bg); color: #C7D0E0; font-family: var(--font-head); margin-top: 40px; }
.ft-inner { max-width: var(--content-max); margin: 0 auto; padding: 44px var(--gutter) 28px;
  display: grid; grid-template-columns: 1.3fr 2fr; gap: 40px; }
.ft-brand { max-width: 320px; }
.ft-logo { display: inline-flex; align-items: center; text-decoration: none; }
.ft-logo img { height: 30px; display: block; filter: brightness(0) invert(1); }
.ft-logo-txt { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: #fff; }
.ft-tag { font-size: 14px; line-height: 1.55; color: #9FB0C9; margin: 14px 0 16px; }
.ft-social { display: flex; gap: 10px; }
.ft-soc { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.08); color: #C7D0E0;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: background .14s, color .14s; }
.ft-soc:hover { background: rgba(255,255,255,.16); color: #fff; }
.ft-soc svg { width: 17px; height: 17px; }
.ft-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ft-col h4 { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #7E90AD; margin: 0 0 12px; }
.ft-col a { display: block; font-size: 14px; color: #C7D0E0; text-decoration: none; padding: 5px 0; transition: color .12s; }
.ft-col a:hover { color: #fff; }
.ft-bar { border-top: 1px solid rgba(255,255,255,.10); }
.ft-bar { max-width: var(--content-max); margin: 0 auto; padding: 16px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12.5px; color: #8695B0; }
.ft-bar a { color: #8695B0; text-decoration: none; }
.ft-bar a:hover { color: #fff; }
@media (max-width: 800px){
  .ft-inner { grid-template-columns: 1fr; gap: 28px; padding: 32px 18px 22px; }
  .ft-cols { grid-template-columns: 1fr 1fr; }
  .ft-bar { flex-direction: column; align-items: flex-start; padding: 14px 18px; }
}
