/* Landmark Realty & Development: the website's styles.
   The page (index.html) loads this file; build.py copies it to dist/assets/site.css with a version number so
   browsers pick up changes right away. The preview link gets it built into the page (dist/preview.html). */
/* Layout: brand-blue masthead that continues the logo's own field, white rule like the logo's underline,
   then a light working surface. The red inverted triangle from the logo's "M" is the one bold motif:
   it marks Landmark listings and every map pin. */
:root {
  --brand: #3f4fa8;
  --brand-deep: #262f6e;
  --brand-ink: #ffffff;
  --flag: #e3262e;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #eceef7;
  --ink: #1b1f33;
  --muted: #5b6180;
  --line: #dadeeb;
  --good: #1f7a4d;
  --warn: #a35a00;
  --closed: #5b6180;
  --river: #b9c6ea;
  --land: #e9ecf6;
  --shadow: 0 1px 2px rgba(27,31,51,.06), 0 6px 18px rgba(27,31,51,.07);
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 6px;
  /* menu bar: white bar, red buttons (a deeper shade of the logo's red so white button text stays easy to read) */
  --menu-bg: #ffffff;
  --menu-ink: #262f6e;
  --menu-red: #c8161d;
  --menu-red-deep: #9f1117;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.consent { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-size: .76rem; line-height: 1.45; color: var(--muted); }
.consent input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--brand); }
.consent a { color: inherit; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-err { background: color-mix(in srgb, var(--flag) 12%, var(--surface)); color: var(--ink); border-left: 3px solid var(--flag); padding: 8px 12px; border-radius: 4px; font-size: .9rem; }
.ts:empty { display: none; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 1rem; line-height: 1.55; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--flag); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-stretch: 112%; line-height: 1.12; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); font-weight: 750; letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 650; }
.eyebrow { font-family: var(--font-display); font-stretch: 125%; text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 700; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 28px; } }

/* sample banner */
.sample-bar { background: var(--surface-2); color: var(--muted); font-size: .8rem; text-align: center; padding: 6px 16px; border-bottom: 1px solid var(--line); }
.sample-bar strong { color: var(--ink); }

/* masthead */
.mast { background: var(--menu-bg); color: var(--menu-ink); box-shadow: 0 2px 10px rgba(27,31,51,.07); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; }
.mast-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: block; height: 40px; flex: none; }
@media (max-width: 360px) { .mast-in { gap: 10px; } .logo { height: 26px !important; } }  /* the smallest phones */
.logo img { height: 100%; width: auto; display: block; }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav a { text-decoration: none; padding: 8px 11px; border-radius: 4px; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: #f1f2f8; color: var(--menu-red); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--menu-red); border-radius: 4px 4px 0 0; }
.nav .acct { background: var(--menu-red); color: #fff; margin-left: 6px; }
.nav .acct:hover, .nav .acct[aria-current="page"] { background: var(--menu-red-deep); color: #fff; box-shadow: none; border-radius: 4px; }
.menu-btn { display: none; margin-left: auto; background: var(--menu-red); border: 0; color: #fff; border-radius: 4px; padding: 6px 12px; font-weight: 600; cursor: pointer; }
.topbar { background: var(--brand-deep); color: rgba(255,255,255,.88); font-size: .84rem; }
.topbar-in { display: flex; align-items: center; gap: 18px; min-height: 36px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 650; }
.topbar .sep { opacity: .5; }
.topbar .push { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.lang { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); border-radius: 4px; padding: 3px 8px; font-size: .82rem; }
.lang option { color: #1b1f33; }
.lang-help { position: fixed; z-index: 75; right: 16px; top: 16px; width: min(380px, calc(100% - 32px)); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 40px rgba(27,31,51,.25); padding: 18px 20px; font-size: .92rem; }
.lang-help h3 { font-size: 1.05rem; margin: 0 0 6px; padding-right: 28px; }
.lang-help ul { padding-left: 18px; margin: 8px 0 0; display: grid; gap: 6px; }
.lang-help p { margin: 0; color: var(--muted); }
.lh-x { position: absolute; right: 10px; top: 8px; border: 0; background: none; font-size: 1.5rem; cursor: pointer; color: var(--muted); }
.call-btn { display: none; align-items: center; gap: 6px; color: #fff; background: var(--menu-red); text-decoration: none; border: 0; border-radius: 4px; padding: 6px 10px; font-weight: 650; font-size: .9rem; }
@media (max-width: 1100px) { .call-btn { display: inline-flex; margin-left: auto; } .menu-btn { margin-left: 0; } }
@media (max-width: 640px) { .topbar .addr, .topbar .sep, .topbar .fax { display: none; } .call-btn span { display: none; } }
/* Phones and tablets: no blue bar above the header; the language menu sits next to the call button instead */
.lang-m { display: none; position: relative; align-items: center; gap: 4px; height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: var(--surface); font-weight: 650; font-size: .82rem; flex: none; }
.lang-m select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }   /* tapping opens the phone's own picker */
.lang-m:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
body.no-lang .lang-m { display: none !important; }
@media (max-width: 1100px) {
  .topbar { display: none; }
  .lang-m { display: inline-flex; margin-left: auto; }
  .call-btn { margin-left: 0; }
}
@media (max-width: 640px) {
  .mast-in { gap: 8px; }
  .mast .logo { height: 28px; }
}
@media (max-width: 340px) { .logo { height: 22px !important; } .lang-m { padding: 0 5px; } .menu-btn { padding: 6px 9px; } }
.mast-rule { height: 4px; background: var(--menu-red); }
@media (max-width: 1100px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--menu-bg); border-top: 1px solid var(--line); box-shadow: 0 12px 24px rgba(27,31,51,.14); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; gap: 2px; }
  .nav.open { display: flex; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--menu-red); border-radius: 0 4px 4px 0; }
  .nav .acct { margin: 6px 0 0; text-align: center; }
  .logo { height: 34px; }
}

/* buttons & fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--radius); padding: 11px 18px; font-weight: 650; cursor: pointer; text-decoration: none; background: var(--brand); color: var(--brand-ink); }
.btn:hover { filter: brightness(1.08); }
.btn.flag { background: var(--flag); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.small { padding: 7px 12px; font-size: .9rem; }
label.f { display: grid; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--muted); min-width: 0; }
.in { width: 100%; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 10px 12px; color: var(--ink); min-width: 0; }
.in:focus { border-color: var(--brand); outline: none; }
textarea.in { min-height: 96px; resize: vertical; }

/* hero */
.hero { background: var(--brand-deep); color: var(--brand-ink); padding-block: clamp(48px, 9vw, 110px) 64px; position: relative; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
body.no-chat .chat-btn, body.no-chat #chatPanel, body.no-lang .lang { display: none !important; }
.feat-groups { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); align-items: start; }
.feat-group h3 { margin: 0 0 6px; }
.feat-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.feat-row:first-of-type { border-top: 0; }
.feat-row > span { display: grid; gap: 2px; min-width: 0; }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 26px; border-radius: 999px; background: #c9ccd6; position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch:checked { background: var(--brand); }
.switch:checked::after { transform: translateX(20px); }
.switch:focus-visible { outline: 3px solid var(--flag); outline-offset: 2px; }
#savedLink .saved-n { font-weight: 700; }
.ask-miss { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ask-miss li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 8px; }
/* Trusted pros and Moving help */
.pro-disclose { font-size: .92rem; margin-bottom: 14px; }
.pro-jump { margin: 0 0 4px; }
.pro-group h2 { margin-bottom: 6px; }
.pro-cat { margin-top: 18px; scroll-margin-top: calc(var(--mast-h, 64px) + 16px); }
.pro-cat h3 { margin: 0 0 4px; font-size: 1.05rem; }
.pro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.pro-card { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 16px; display: grid; gap: 10px; align-content: start; }
.pro-top { display: flex; gap: 12px; align-items: center; }
.pro-top h4 { margin: 0; font-size: 1.02rem; }
.pro-logo { width: 76px; height: 76px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: #fff; flex: none; }
.pro-ini { width: 76px; height: 76px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.pro-note { margin: 0; font-size: .92rem; color: var(--muted); }
.pro-badge { justify-self: start; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #fdecec; color: #a3191f; }
.pro-badge.sample { background: var(--bg); color: var(--muted); }
.pro-private { font-size: .85rem; background: #fff8e6; border: 1px solid #f1dfa8; border-radius: 8px; padding: 8px 10px; }
.pro-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.pro-acts .btn svg { width: 15px; height: 15px; }
.pro-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.pro-quote { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 8px 0 4px; }
/* Trusted pros page in Landmark blue and red: pro cards and jump buttons alternate (paintCheckers),
   the repair-quote box is red and the moving box is blue */
.pro-grid.checker > .pro-card .meta, .pro-grid.checker > .pro-card .pro-note { color: rgba(255,255,255,.92); }
.pro-grid.checker > .pro-card h4 { color: #fff; }
.pro-grid.checker > .pro-card .pro-ini { background: #fff; color: var(--brand-deep); }
.pro-grid.checker > .pro-card.alt .pro-ini { color: #a3191f; }
.pro-grid.checker > .pro-card .pro-logo { border-color: #fff; }
.pro-grid.checker > .pro-card .btn { background: #fff; color: var(--brand-deep); border: 1.5px solid #fff; }
.pro-grid.checker > .pro-card.alt .btn { color: #a3191f; }
.pro-grid.checker > .pro-card .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.pro-grid.checker > .pro-card .btn.ghost:hover { background: rgba(255,255,255,.14); }
.pro-grid.checker > .pro-card .pro-private { color: var(--ink); }
.checker.checker > .pro-card .pro-badge { color: #a3191f; opacity: 1; }
.checker.checker > .pro-card .pro-badge.sample { background: #fff; color: var(--brand-deep); }
.checker.checker > .pro-card:hover { transform: none; box-shadow: none; }   /* the card itself isn't a link */
.panel.pro-quote { display: flex; background: #c81e25; border-color: transparent; color: #fff; }
.pro-quote .meta { color: rgba(255,255,255,.92); }
.pro-quote .btn.flag { background: #fff; color: #a3191f; }
/* Moving help: utility cards and checklist steps alternate blue and red */
.util-grid.checker > .util .meta { color: rgba(255,255,255,.92); }
.util-grid.checker > .util .btn { background: #fff; color: var(--brand-deep); border: 1.5px solid #fff; }
.util-grid.checker > .util.alt .btn { color: #a3191f; }
.util-grid.checker > .util .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.move-steps.checker > .move-step h3 { color: #fff; }
.move-steps.checker > .move-step input { accent-color: #fff; }
.move-steps.checker > .move-step input:checked + span { color: rgba(255,255,255,.7); }
.checker.checker > .util:hover, .checker.checker > .move-step:hover { transform: none; box-shadow: none; }
@media print { .move-steps.checker > .move-step { background: #fff !important; color: #000 !important; border: 1px solid #999 !important; } .move-steps.checker > .move-step h3, .move-steps.checker > .move-step span { color: #000 !important; } }
.pro-move.bp-cta { background: var(--brand); border-color: transparent; color: #fff; }
.pro-move.bp-cta .meta, .pro-move.bp-cta .go, .pro-move.bp-cta h3 { color: #fff; }
.pro-move.bp-cta .go { font-weight: 700; }
.pro-move.bp-cta:hover { box-shadow: 0 8px 22px rgba(15,18,40,.18); }
.util-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.util { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: var(--surface); display: grid; gap: 4px; align-content: start; }
.util .meta { margin: 2px 0 6px; }
.move-steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.move-step { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--surface); }
.move-step h3 { margin: 0 0 8px; font-size: 1rem; }
.move-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.move-list label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.move-list input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--brand); }
.move-list input:checked + span { text-decoration: line-through; color: var(--muted); }
@media print { body.print-plain header, body.print-plain footer, body.print-plain .chat-btn, body.print-plain .to-top, body.print-plain .backrow, body.print-plain .no-print, body.print-plain .topbar, body.print-plain #sampleBar { display: none !important; } }
/* What can I afford? */
.bp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 8px; }
@media (max-width: 860px) { .bp { grid-template-columns: 1fr; } }
.bp-in .f > span:first-child { font-weight: 600; }
.bp-out { position: sticky; top: calc(var(--mast-h, 70px) + 16px); display: grid; gap: 10px; }
@media (max-width: 860px) { .bp-out { position: static; } }
.bp-big { font-size: clamp(2.2rem, 6vw, 3.2rem); font-weight: 800; line-height: 1.05; color: var(--brand); }
.bp-stretch { margin: 0; }
.bp-pay { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.bp-pay b { font-size: 1.3rem; }
.bp-adv summary { cursor: pointer; font-weight: 600; color: var(--brand); padding: 6px 0; }
.bp-lead { margin-top: 20px; max-width: 720px; }
.bp-cta { display: grid; gap: 6px; text-decoration: none; color: inherit; border-color: var(--brand); }
.bp-note { font-size: .92rem; padding: 10px 12px; border-radius: 8px; background: var(--bg); }
.bp-note.ok { background: #e9f3ec; color: #1f5f36; }
.budget-tag { display: inline-block; vertical-align: middle; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #e9f3ec; color: #1f6b3a; margin-left: 6px; letter-spacing: 0; }
.ed-post .sched { color: var(--brand); }
/* Full-screen version (site.json "hero_full_screen"): the video fills the screen below the menu, the search is centered
   in it, and the market numbers peek in at the bottom edge */
/* content sits near the top; the hero stops just short of the screen's bottom so the Weekly Market boxes show
   without scrolling (--mkt-room is measured in heroTop()) */
/* Spacing: the headline, text and search sit in the middle of the hero with the same space above them as below
   (the bottom padding also covers the Weekly Market strip, which tucks 28px up into the hero, and its tab).
   Between them: headline → text is the small step, text → search a bigger one. Tall screens (tablets standing up)
   cap the hero at 780px so the search doesn't float in a sea of video. */
.hero.full { min-height: min(780px, calc(100vh - var(--hero-top, 140px) - var(--mkt-room, 80px))); min-height: min(780px, calc(100svh - var(--hero-top, 140px) - var(--mkt-room, 80px)));
  display: flex; align-items: center; padding-block: clamp(32px, 6vh, 72px) calc(clamp(32px, 6vh, 72px) + 56px); }
.hero.full .hero-in { gap: clamp(14px, 2vh, 22px); }
.hero.full .searchbox { margin-top: clamp(10px, 2.2vh, 22px); }
@media (max-width: 720px) { .hero.full { padding-block: 26px 82px; } }  /* phones: less padding so the market strip still peeks in */
/* "Search" and "Nearby" sit side by side on one line, after the price boxes */
.searchbox .near-btn { align-self: end; justify-self: stretch; white-space: nowrap; }
/* Search and Nearby are exactly the same size, on phones too */
.searchbox .btn.flag, .searchbox .near-btn { min-height: 48px; padding-block: 0; font-size: 1rem; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
/* Search and Nearby: identical boxes. Both get the same see-through border, so Nearby's colour fills right to the
   edge like Search's does (the white ring on .near-btn below is for other places it's used). */
.searchbox .btn.flag, .searchbox .btn.near-btn { border: 1.5px solid transparent; }
.hero.full > .wrap { width: 100%; }
@media (max-height: 560px) { .hero.full { min-height: 0; } }  /* phones turned sideways */
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
}
/* brand-blue wash on the left so the headline and search stay readable over any footage */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(38,47,110,.92) 0%, rgba(38,47,110,.72) 42%, rgba(38,47,110,.18) 78%, rgba(38,47,110,.05) 100%), linear-gradient(0deg, rgba(20,24,60,.55), rgba(20,24,60,0) 40%); }
@media (max-width: 720px) { .hero::before { background: linear-gradient(180deg, rgba(38,47,110,.62), rgba(38,47,110,.86)); } }
.hero::after { content: ""; position: absolute; right: -60px; top: -40px; width: 300px; height: 250px; background: var(--flag); clip-path: polygon(0 0, 100% 0, 50% 100%); opacity: .92; z-index: -1; }
@media (max-width: 720px) { .hero::after { width: 160px; height: 134px; right: -50px; top: -30px; } }
.hero h1, .hero .lede { text-shadow: 0 1px 12px rgba(10,14,40,.35); }
/* play/pause sits just under the red triangle's point (top right) */
.hero-in { position: relative; z-index: 1; display: grid; gap: 22px; }
.hero h1 { max-width: 16ch; }
.hero h1 .nw { white-space: nowrap; }
.hero h1:has(.nw) { text-wrap: wrap; }  /* agent sites: "Find your place" then "with Name" on every phone */
.hero p.lede { margin: 0; max-width: 52ch; color: rgba(255,255,255,.88); font-size: 1.08rem; }
.searchbox { background: var(--surface); color: var(--ink); border-radius: 8px; padding: 12px; display: grid; grid-template-columns: 1fr 120px 120px 140px 140px; gap: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.18); max-width: 880px; }
/* computers: the headline, text and search stretch across the whole hero, bigger */
@media (min-width: 981px) {
  .hero-in { gap: 26px; }
  .hero h1 { max-width: none; font-size: clamp(3rem, 4.4vw, 5.6rem); line-height: 1.04; }
  .hero p.lede { max-width: 72ch; font-size: clamp(1.15rem, 1.25vw, 1.5rem); }
  .searchbox { max-width: none; padding: 16px; gap: 14px; grid-template-columns: minmax(0, 1fr) 150px 150px 160px 160px; border-radius: 12px; }
  .searchbox .f { font-size: .95rem; }
  .searchbox .in { min-height: 56px; font-size: 1.08rem; padding-inline: 16px; }
  .searchbox .btn.flag, .searchbox .near-btn { min-height: 56px; padding-inline: 12px; font-size: 1.08rem; }
}
@media (min-width: 1600px) { .searchbox { grid-template-columns: minmax(0, 1fr) 180px 180px 190px 190px; } }
@media (max-width: 720px) { .searchbox { grid-template-columns: 1fr 1fr; } .searchbox .grow { grid-column: 1 / -1; } .searchbox .btn { padding-inline: 12px; } }

/* market strip */
.market { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; margin-top: -28px; position: relative; z-index: 2; box-shadow: var(--shadow); overflow: hidden; }
.market a { text-decoration: none; padding: 16px 18px; border-right: 1px solid var(--line); display: grid; gap: 2px; }
.market a:last-child { border-right: 0; }
.market a:hover { background: var(--surface-2); }
.market b { font-family: var(--font-display); font-stretch: 112%; font-size: 1.7rem; color: var(--brand); line-height: 1.1; }
.market span { font-size: .85rem; color: var(--muted); font-weight: 600; }
/* "Weekly Market": a tab centered on top of the boxes; everything in the strip in capitals */
.market-wrap { position: relative; margin-top: -28px; }
.market-wrap .market { margin-top: 0; }
.market-tab { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); z-index: 3; background: #fff; color: var(--brand-deep);
  font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; padding: 7px 18px 5px; border-radius: 8px 8px 0 0; }
.market span { text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 720px) { .market span { font-size: .74rem; letter-spacing: .02em; line-height: 1.3; } .market-tab { font-size: .74rem; padding: 6px 14px 4px; } }
/* Homepage market strip: blue/red checkerboard with white lines around and between the boxes */
.market.checker { gap: 2px; background: #fff; border: 2px solid #fff; }
.market.checker > a { border: 0 !important; }
.market.checker > a:hover { background: var(--brand); transform: none; box-shadow: none; filter: brightness(1.12); }
.market.checker > a.alt:hover { background: #c81e25; }
@media (max-width: 720px) { .market { grid-template-columns: 1fr 1fr; } .market a:nth-child(2) { border-right: 0; } .market a:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

section.block { padding-block: 44px 8px; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
/* "View all" and other section links: the same rounded button everywhere */
.sec-head a { border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 14px; text-decoration: none; font-weight: 600; font-size: .9rem; background: var(--surface); color: var(--ink); white-space: nowrap; }
.sec-head a:hover { border-color: var(--brand); color: var(--brand); }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: transform .15s, box-shadow .15s; min-width: 0; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ph { position: relative; aspect-ratio: 16 / 10; max-width: 100%; background: var(--surface-2); overflow: hidden; }
.ph svg, .ph img { width: 100%; height: 100%; display: block; object-fit: cover; }
.tag { position: absolute; left: 10px; top: 10px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 8px; border-radius: 3px; background: var(--surface); color: var(--ink); }
.tag.Active { color: var(--good); } .tag.ComingSoon, .tag.ActiveUnderContract { color: var(--good); } .tag.Pending { color: var(--warn); } .tag.Closed { color: var(--closed); }
.ours { position: absolute; right: 10px; top: 10px; display: flex; align-items: center; gap: 6px; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 700; padding: 4px 8px 4px 6px; border-radius: 3px; letter-spacing: .03em; }
.tri { width: 10px; height: 8px; background: var(--flag); clip-path: polygon(0 0, 100% 0, 50% 100%); flex: none; }
.fav { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); }
.fav svg { width: 18px; height: 18px; }
.fav[aria-pressed="true"] svg path { fill: var(--flag); stroke: var(--flag); }
.card-b { padding: 14px 16px 16px; display: grid; gap: 4px; }
.price { font-family: var(--font-display); font-stretch: 108%; font-size: 1.4rem; font-weight: 750; }
.was { font-size: .8rem; color: var(--good); font-weight: 650; }
.addr { font-weight: 600; }
.meta { color: var(--muted); font-size: .9rem; display: flex; gap: 12px; flex-wrap: wrap; }
.fi { width: 1.25em; height: 1.25em; vertical-align: -0.25em; margin-right: 4px; flex: none; opacity: .8; }
.card-b { container-type: inline-size; }
.facts-row { gap: clamp(4px, 2.6cqi, 8px); flex-wrap: nowrap; font-size: clamp(.72rem, 4.45cqi, 1rem) !important; letter-spacing: -.01em; overflow: hidden; }   /* beds, baths, sq ft, acres: one line, shrinking to fit narrow cards */
.facts-row > span { display: inline-flex; align-items: center; white-space: nowrap; min-width: 0; }
.facts-row .fi { margin-right: 3px; }
.courtesy { font-size: .74rem; color: var(--muted); margin-top: 6px; }
#idxDisclaimer p { margin: 6px 0 0; }
.mlsg { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mlsg img { height: 28px; width: auto; background: #fff; border-radius: 3px; padding: 2px 4px; }
/* Where non-MLS information comes from (flood zones, nearby places, estimates): readable, not fine print */
.detail .courtesy { font-size: .9rem; color: var(--ink); }
/* edit the website */
.edit-tabs { max-width: 420px; }
.edit-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
.ed-photo { display: grid; gap: 10px; justify-items: center; }
.ed-photo .avatar { border-radius: 50%; }
.ed-posts { display: grid; gap: 8px; }
.ed-post { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; background: var(--surface); flex-wrap: wrap; }
.ed-editor textarea { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92rem; line-height: 1.5; }
.ed-tabs { max-width: 260px; }
.ed-preview { border: 1px dashed var(--line); border-radius: 8px; padding: 14px; min-height: 200px; }
@media (max-width: 720px) { .edit-grid { grid-template-columns: 1fr; } }
/* open house sign-in: the tablet shows only the sign-in screen */
.oh-setup { max-width: 560px; display: grid; gap: 14px; margin-top: 12px; }
body.kiosk .mast, body.kiosk .topbar, body.kiosk footer, body.kiosk .sample-bar, body.kiosk .chat-btn, body.kiosk .to-top, body.kiosk .cmp-tray, body.kiosk .agent-preview-bar { display: none !important; }
.oh-kiosk { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; background: var(--bg); }
.oh-top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--flag); color: #fff; }
.oh-brand { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oh-count { font-size: .9rem; opacity: .9; }
.oh-end { border: 1px solid var(--brand); background: var(--brand); color: #fff; border-radius: 6px; padding: 6px 12px; font: inherit; font-size: .85rem; cursor: pointer; }
.oh-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; padding: 24px; align-items: start; max-width: 1200px; margin: 0 auto; width: 100%; }
.oh-home { display: grid; gap: 14px; }
.oh-photo { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.oh-photo svg, .oh-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.oh-info h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 2px 0; }
.oh-info .meta { font-size: 1rem; }
.oh-form { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; gap: 14px; }
.oh-form h2 { margin: 0 0 4px; font-size: 1.5rem; }
.oh-form .in { font-size: 1.1rem; padding: 14px; }
.oh-seg { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.oh-seg legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
.oh-seg > div { display: flex; flex-wrap: wrap; gap: 8px; }
.oh-seg label { position: relative; }
.oh-seg input { position: absolute; opacity: 0; inset: 0; }
.oh-seg span { display: inline-block; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 18px; background: var(--surface); cursor: pointer; font-size: 1rem; }
.oh-seg input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.oh-seg input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.oh-go { font-size: 1.15rem; padding: 16px; }
.oh-thanks { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 40px 28px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.oh-thanks h2 { font-size: 2rem; margin: 0; }
.oh-thanks p { margin: 0; font-size: 1.1rem; }
@media (max-width: 800px) { .oh-body { grid-template-columns: 1fr; padding: 14px; gap: 16px; } .oh-photo { aspect-ratio: 16 / 7; } }
.near-h { margin: 20px 0 8px; font-size: 1.05rem; }
.near { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 24px; }
.near li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.near-what { display: grid; gap: 1px; min-width: 0; }
.near-what .eyebrow { font-size: .68rem; }
.near-what b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.near-what .meta { font-size: .78rem; }
.near-mi { font-weight: 650; white-space: nowrap; }
/* ---------- CRM ---------- */
body.crm-mode .chat-btn, body.crm-mode .to-top, body.crm-mode .cmp-tray { display: none !important; }
body.crm-mode footer { display: none; }
.crm { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; max-width: 1280px; margin: 0 auto; padding: 20px 24px 60px; align-items: start; }
.crm-nav { position: sticky; top: calc(var(--mast-h, 64px) + 16px); display: grid; gap: 2px; }
.crm-nav a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.crm-nav a svg { width: 18px; height: 18px; }
.crm-nav a:hover { background: var(--surface-2); }
.crm-nav a[aria-current] { background: var(--brand); color: #fff; }
.crm-main { min-width: 0; display: grid; gap: 12px; align-content: start; }
.mail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; max-width: 680px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.mail + .mail { margin-top: 14px; }
.mail-when { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #6b6b6b); }
.mail-subj { margin: 6px 0 12px; font-size: 1.2rem; }
.mail-from { display: flex; gap: 10px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.mail-av { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; flex: none; }
.mail-body { white-space: pre-wrap; overflow-wrap: anywhere; font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 1.5; color: #222; }
.mail-foot { margin-top: 18px; color: #777; font-size: 13px; }
.crm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.crm-tags span { font-size: .78rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: #e9f3ec; color: #1f6b3a; }
.crm-view { min-width: 0; display: grid; gap: 16px; align-content: start; }
.crm-scope { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.crm-scope .seg button { padding: 5px 12px; font-size: .88rem; }
.crm-loading { color: var(--muted); padding: 40px 0; }
.crm-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; }
.crm-head h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2px 0 0; }
.crm-head h1 .meta { font-size: 1rem; }
.crm-back a { color: var(--brand); font-weight: 600; text-decoration: none; }
.crm-hint { margin: -6px 0 0; }
.crm-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.crm-card h2 { font-size: 1.05rem; margin: 0; }
.crm-card.hot { border-color: color-mix(in srgb, var(--flag) 45%, var(--line)); }
.crm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.crm-grid .wide { grid-column: 1 / -1; }
.crm-two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.crm-two > div { display: grid; gap: 16px; min-width: 0; }
.crm-pipe-mini { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.crm-pipe-mini a { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; text-decoration: none; color: var(--ink); display: grid; }
.crm-pipe-mini b { font-size: 1.4rem; }
.crm-pipe-mini span { font-size: .78rem; color: var(--muted); }
.crm-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); min-width: 0; }
.crm-row:last-child { border-bottom: 0; }
.crm-row-main { display: grid; gap: 1px; min-width: 0; flex: 1; text-decoration: none; color: var(--ink); }
.crm-row-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-row-main .meta { font-size: .82rem; overflow: hidden; text-overflow: ellipsis; }
.crm-list { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; }
.crm-quick { display: inline-flex; gap: 4px; flex: 0 0 auto; }
.crm-quick a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--brand); }
.crm-stage { flex: 0 0 auto; font-size: .74rem; font-weight: 700; border-radius: 999px; padding: 3px 9px; background: var(--surface-2); color: var(--ink); white-space: nowrap; }
.st-new { background: #fde7e7 !important; color: #a3141b !important; }
.st-contacted, .st-searching, .st-appointment { background: #e8ecfb !important; color: #2f3a87 !important; }
.st-showing, .st-listed, .st-offer { background: #fff1d6 !important; color: #7a4a00 !important; }
.st-under-contract { background: #e2f4ea !important; color: #17663a !important; }
.st-closed, .st-past-client { background: #e9f2ec !important; color: #2c5a3b !important; }
.st-nurture, .st-lost { background: #eef0f4 !important; color: #5b6180 !important; }
.crm-filters { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 8px; }
.crm-inline { display: grid; gap: 12px; }
.crm-inline-row { display: flex; gap: 8px; align-items: center; }
.crm-inline-row .in { flex: 1; min-width: 0; }
.small-in { padding: 6px 8px !important; font-size: .85rem !important; width: auto; }
.crm-tasks { list-style: none; margin: 0; padding: 0; display: grid; }
.crm-task { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.crm-task:last-child { border-bottom: 0; }
.crm-task label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; min-width: 0; }
.crm-task input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--brand); }
.crm-task span { display: grid; min-width: 0; }
.crm-task .meta { font-size: .8rem; display: block; }
.crm-task.late .meta { color: var(--flag); }
.crm-task.done b { text-decoration: line-through; color: var(--muted); }
.crm-person { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: grid; gap: 12px; }
.crm-person-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.crm-person h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0; }
.crm-person .warn { color: var(--flag); }
.crm-stage-pick select { font-weight: 700; border-radius: 999px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.crm-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.crm-log { display: grid; gap: 8px; }
.crm-log .seg { max-width: 100%; flex-wrap: wrap; }
.crm-log button[type=submit] { justify-self: start; }
.acts { list-style: none; margin: 0; padding: 0; display: grid; }
.act { padding: 10px 0 10px 14px; border-left: 3px solid var(--line); margin-left: 4px; display: grid; gap: 3px; }
.act-top { display: flex; justify-content: space-between; gap: 8px; }
.act-kind { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.act-lead { border-left-color: var(--flag); } .act-call, .act-text, .act-email, .act-meeting { border-left-color: var(--brand); }
.act-email_sent, .act-drip { border-left-color: #9aa3c7; } .act-deal { border-left-color: #1f8a4c; } .act-stage { border-left-color: #d08a00; }
.act-msg { background: var(--surface-2); border-radius: 8px; padding: 8px 10px; font-size: .92rem; white-space: pre-wrap; }
.crm-drip { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.crm-mini { margin: 4px 0 10px; padding-left: 18px; font-size: .9rem; }
.crm-mini a { color: var(--brand); }
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; align-items: start; }
.col { background: var(--surface-2); border-radius: 12px; padding: 10px; display: grid; gap: 8px; min-height: 120px; }
.col.over { outline: 2px dashed var(--brand); }
.col h2 { font-size: .85rem; display: flex; justify-content: space-between; margin: 2px 4px; }
.col-cards { display: grid; gap: 8px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: grid; gap: 4px; cursor: grab; }
.pcard.dragging { opacity: .5; }
.pcard a { color: var(--ink); text-decoration: none; }
.pcard .meta { font-size: .78rem; }
.pcard select { margin-top: 4px; }
.deal-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); align-items: center; }
.deal-row:last-child { border-bottom: 0; }
.deal-row > div:first-child { display: grid; gap: 2px; min-width: 0; }
.deal-row .meta { font-size: .82rem; }
.deal-side { display: grid; gap: 6px; justify-items: end; flex: 0 0 auto; }
.prog { width: 110px; height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; display: block; }
.prog i { display: block; height: 100%; background: #1f8a4c; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.checklist li { display: grid; grid-template-columns: 22px minmax(0, 1fr) 150px 24px; gap: 8px; align-items: center; }
.checklist input[type=checkbox] { width: 20px; height: 20px; accent-color: #1f8a4c; }
.checklist li.done [data-sn] { text-decoration: line-through; color: var(--muted); }
.step-name { display: grid; gap: 3px; min-width: 0; }
.step-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.who-tag, .help-tag { font-size: .72rem; font-weight: 700; border-radius: 4px; padding: 1px 7px; background: var(--surface-2); color: var(--muted); }
.help-tag { background: #e8ecfb; color: #2f3a87; }
.phase-h { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 10px 0 2px; }
.phase-h:first-child { margin-top: 0; }
.crm-helpnote { background: #e8ecfb; color: #2f3a87; border-radius: 10px; padding: 10px 14px; font-size: .92rem; }
.late-txt { color: var(--flag); }
.crm-nav-sub { display: grid; gap: 0; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.crm-nav .crm-nav-sub a { font-weight: 500; color: var(--muted); padding: 7px 12px; font-size: .9rem; }
.crm-quickf button { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 12px; font-weight: 600; font-size: .86rem; cursor: pointer; color: var(--ink); }
.crm-quickf button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.crm-glance { display: grid; }
.crm-glance-row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 92px); gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); text-align: right; }
.crm-glance-row > :first-child { text-align: left; }
.crm-glance-row:last-child { border-bottom: 0; }
.crm-glance-row.hd { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.crm-glance-row .warn { color: #7a4a00; font-weight: 700; } .crm-glance-row .late { color: var(--flag); font-weight: 700; }
.checklist li.late [data-sd] { border-color: var(--flag); color: var(--flag); }
.party { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.crm-save { grid-column: 1 / -1; display: grid; gap: 8px; justify-items: start; }
.pstep { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 8px; margin-bottom: 10px; background: var(--surface); }
.pstep-top { display: flex; justify-content: space-between; align-items: end; }
.pstep-top .f { max-width: 140px; }
.bars { display: grid; gap: 6px; }
.bar-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: .88rem; }
.bar { height: 10px; background: var(--surface-2); border-radius: 5px; overflow: hidden; display: block; }
.bar i { display: block; height: 100%; background: var(--brand); }
.crm-menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.crm-menu a { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; text-decoration: none; color: var(--ink); display: grid; gap: 2px; }
.crm-setting { border-top: 1px solid var(--line); padding-top: 10px; }
.crm-setting p { margin: 4px 0 8px; }
@media (max-width: 900px) {
  .crm { grid-template-columns: 1fr; padding: 14px 16px calc(84px + env(safe-area-inset-bottom, 0px)); gap: 12px; }
  .crm-nav { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 55; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -4px 16px rgba(0,0,0,.06); }
  .crm-nav a { flex-direction: column; gap: 2px; padding: 6px 2px; font-size: .7rem; border-radius: 8px; }
  .crm-nav a[aria-current] { background: none; color: var(--brand); }
  .crm-nav .crm-nav-sub { display: none; }
  .crm-glance-row { grid-template-columns: minmax(0, 1fr) repeat(3, 58px); font-size: .9rem; }
  .crm-glance-row.hd { font-size: .64rem; }
  .crm-two { grid-template-columns: 1fr; }
  .crm-filters { grid-template-columns: 1fr 1fr; }
  .crm-filters [name=q] { grid-column: 1 / -1; }
  .crm-pipe-mini { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .board { grid-template-columns: 1fr; }
  .checklist li { grid-template-columns: 22px minmax(0, 1fr) 24px; }
  .checklist li [data-sd] { grid-column: 2; }
  .crm-row .crm-quick a { width: 32px; height: 32px; }
}
@media (max-width: 480px) { .crm-row .crm-stage { display: none; } .crm-grid { grid-template-columns: 1fr; } .bar-row { grid-template-columns: 80px minmax(0, 1fr) auto; } }
body.kb .crm-nav { display: none; }
/* city pages */
.town-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.town-chips .chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .9rem; cursor: pointer; }
.town-chips .chip:hover { border-color: var(--brand); color: var(--brand); }
.sold-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.sold-card { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: var(--surface); }
.sold-card .addr { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sold-card .meta { font-size: .8rem; }
.school-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.school-groups > div { display: grid; gap: 4px; align-content: start; }
.school-groups a { color: var(--brand); }
.faq { display: grid; gap: 8px; max-width: 760px; }
.faq details { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 12px 16px; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq p { margin: 8px 0 0; }
.track { margin-top: 16px; display: grid; gap: 14px; border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.track-head { display: flex; gap: 12px; align-items: center; }
.track-head h3 { margin: 0; }
.track-head .meta { margin: 2px 0 0; }
.track-ico { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; }
.track-ico svg { width: 20px; height: 20px; }
.track-done h3 { margin: 0 0 4px; }
.track-done p { margin: 0; }
/* price & status history timeline */
.h-sum { margin: 0 0 12px; font-weight: 600; }
.h-list { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); margin-left: 6px; }
.h-mls { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 650; padding: 14px 0 4px 18px; }
.h-mls:first-child { padding-top: 0; }
.h-ev { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 4px 14px; align-items: baseline; padding: 9px 0 9px 18px; border-bottom: 1px solid var(--line); }
.h-ev::before { content: ""; position: absolute; left: -7px; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); border: 2px solid var(--surface); }
.h-sold::before { background: #1f8a4c; } .h-pend::before { background: #d08a00; } .h-off::before { background: var(--muted); } .h-cut::before { background: var(--flag); }
.h-date { color: var(--muted); font-size: .88rem; }
.h-what { min-width: 0; }
.h-amt { font-weight: 650; text-align: right; }
.h-delta { font-size: .82rem; font-weight: 600; white-space: nowrap; }
.h-delta.down { color: #1f8a4c; } .h-delta.up { color: var(--flag); }
@media (max-width: 640px) { .h-ev { grid-template-columns: minmax(0, 1fr) auto; } .h-date { grid-column: 1 / -1; font-size: .8rem; } }
.ask { display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 5%, var(--surface)), var(--surface) 120px); }
.ask-head { display: flex; gap: 12px; align-items: center; }
.ask-head h2 { margin: 0; font-size: 1.25rem; }
.ask-head .meta { margin: 2px 0 0; }
.ask-ico { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; }
.ask-clear { margin-left: auto; align-self: center; flex: none; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 14px; font: inherit; font-weight: 600; font-size: .85rem; cursor: pointer; }
.ask-clear:hover { border-color: var(--brand); color: var(--brand); }
.ask-log { display: grid; gap: 8px; max-height: 420px; overflow-y: auto; overscroll-behavior: contain; }
.ask-log:empty { display: none; }
.ask-q { justify-self: end; max-width: 85%; background: var(--brand); color: #fff; padding: 8px 12px; border-radius: 14px 14px 4px 14px; font-size: .95rem; overflow-wrap: anywhere; }
.ask-a { justify-self: start; max-width: 92%; background: var(--surface-2); padding: 10px 12px; border-radius: 14px 14px 14px 4px; font-size: .95rem; }
.ask-a p { margin: 0; overflow-wrap: anywhere; }
.ask-a[data-fair] { border-left: 3px solid var(--brand); }
.ask-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ask-acts .btn.ghost { background: var(--surface); border: 1px solid var(--line); }
.ask-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ask-chips .chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .86rem; cursor: pointer; }
.ask-chips .chip:hover { border-color: var(--brand); color: var(--brand); }
.ask-form { display: flex; gap: 8px; }
.ask-form .in-wrap { flex: 1; min-width: 0; }
.ask-form .in { width: 100%; }
.form-note { color: var(--ink); border-left: 3px solid; padding: 8px 12px; border-radius: 4px; font-size: .9rem; }
.form-err.info, .form-note { background: color-mix(in srgb, var(--navy, #27306b) 8%, var(--surface)); border-left-color: var(--navy, #27306b); }
.linkish { background: none; border: 0; padding: 0; color: var(--flag); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; justify-self: start; align-self: flex-start; }
.pw-panel summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pw-panel summary::-webkit-details-marker { display: none; }
.pw-panel summary > span { display: grid; gap: 2px; }
.pw-panel summary::after { content: attr(data-label); color: var(--flag); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.pw-panel[open] summary::after { content: "Close"; }
.pw-panel[open] summary { margin-bottom: 12px; }
.pw-panel .form { max-width: 420px; }
.signin .signin-wide { width: 100%; justify-content: center; }
.signin .g-btn-slot { min-height: 44px; display: flex; justify-content: center; }
.signin .or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 16px 0; }
.signin .or::before, .signin .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.signin .link-sent h3 { margin: 0 0 6px; }
.signin .link-sent p { margin: 0 0 12px; overflow-wrap: anywhere; }
.signin .link-sent .btn { margin: 0 6px 6px 0; }
.signin details.pw-more { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.signin details.pw-more summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: 4px 0; }
.signin details.pw-more[open] summary { margin-bottom: 10px; }
.oh { font-size: .8rem; font-weight: 650; color: var(--flag); }

/* communities */
.comm { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.comm a { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; text-decoration: none; display: grid; gap: 2px; }
.comm a:hover { border-color: var(--brand); }
.comm b { font-weight: 650; }
.comm span { font-size: .82rem; color: var(--muted); }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr; } }
.tile { padding: 22px; border-radius: 8px; text-decoration: none; display: grid; gap: 8px; align-content: start; border: 1px solid var(--line); background: var(--surface); }
.tile.dark { background: var(--brand-deep); color: #fff; border-color: transparent; }
.tile.dark p { color: rgba(255,255,255,.82); }
.tile p { margin: 0; color: var(--muted); }
.tile .go { font-weight: 700; margin-top: 4px; }
/* homepage tiles: Selling, Buying, Commercial, Our team in alternating Landmark blue and red */
.home-tiles { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
@media (max-width: 860px) { .home-tiles { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
/* Lighter touch: white cards with a thin blue or red stripe across the top, alternating like the tiles (paintCheckers) */
.stripe > * { border-top: 4px solid var(--brand) !important; }
.stripe > .alt { border-top-color: #c81e25 !important; }
.pro-move.bp-cta.cta-red { background: #c81e25; }
/* Blue and red tiles in a checkerboard (paintCheckers): side by side or stacked, two neighbors are never the same color */
.checker.checker > * { color: #fff; background: var(--brand); border-color: transparent; transition: transform .15s, box-shadow .15s; }
.checker.checker > .alt { background: #c81e25; }  /* Landmark red, a shade deeper so white text is easy to read */
.checker.checker > * h2, .checker.checker > * h3 { color: #fff; }
.checker.checker > * p, .checker.checker > * .eyebrow { color: rgba(255,255,255,.9); }
.checker.checker > * .go, .checker.checker > * span, .checker.checker > * b { color: #fff; }
.checker.checker > * span { opacity: .9; }
.checker.checker > .agent a, .checker.checker > .agent .meta { color: #fff; }
.checker.checker > .agent .meta { opacity: .92; }
/* side panels (buy page): everything inside turns white */
.checker.checker > .panel .meta, .checker.checker > .panel a, .checker.checker > .panel b { color: #fff; }
.checker.checker > .panel .meta { opacity: .92; }
.checker.checker > .panel .go { font-weight: 700; }
.checker.checker > .panel .guide-link { border-bottom-color: rgba(255,255,255,.35); }
.checker.checker > .panel .btn.ghost { color: #fff; border-color: rgba(255,255,255,.75); justify-self: start; }
.checker.checker > .panel .btn.ghost:hover { background: rgba(255,255,255,.14); }
.checker.checker > div.panel:hover { transform: none; box-shadow: none; }   /* only the whole-tile links lift */
.checker.checker > .agent .avatar { box-shadow: 0 0 0 3px #fff; }   /* the blue initials circle would vanish on a blue tile */
.checker.checker > .agent:hover { transform: none; box-shadow: none; }   /* the tile itself isn't a link */
.checker.checker > *:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(15,18,40,.18); border-color: transparent; color: #fff; }

/* search page */
.search-top { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 14px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 70px); z-index: 30; }
/* search bar and filters */
.search-top { top: var(--mast-h, 70px); }
@media (max-width: 980px) { .search-top { position: static; } }
.fbar { display: flex; gap: 10px; align-items: stretch; }
.fbar .fq-wrap { flex: 1; min-width: 0; }
.fbar .fgo { display: inline-flex; align-items: center; gap: 8px; }
.fbar .fgo svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
@media (max-width: 520px) { .fbar .fgo span { display: none; } .fbar .fgo { padding-inline: 14px; } }
.fpills { display: flex; gap: 8px; align-items: center; margin-top: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.fpills::-webkit-scrollbar { display: none; }
.fpill { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; min-height: 40px; }
.fpill:hover { border-color: var(--brand); }
.fpill.on { border-color: var(--brand); background: #eef0fa; color: var(--brand); }
.fpill .caret { opacity: .7; }
.fpill svg:not(.caret) { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.fpill .sm { display: none; }
@media (max-width: 480px) { .map-tools .lg { display: none; } .map-tools .sm { display: inline !important; } }
@media (max-width: 760px) { .fpill[data-open="more"] { order: -1; } .fpill .lg { display: none; } .fpill .sm { display: inline; } }
.fpill .badge { background: var(--flag); color: #fff; border-radius: 10px; font-size: .72rem; padding: 1px 7px; }
.fclear { flex: none; padding: 8px 6px; }
.fchips { margin: 10px 0 0; }
.fpanel-back { position: fixed; inset: 0; background: rgba(15,18,40,.35); z-index: 59; }
.fpanel { position: fixed; z-index: 60; background: var(--surface); display: flex; flex-direction: column; box-shadow: 0 18px 50px rgba(15,18,40,.25);
  top: calc(var(--mast-h, 70px) + 16px); left: 50%; transform: translateX(-50%); width: min(720px, calc(100% - 32px)); max-height: calc(100vh - var(--mast-h, 70px) - 40px); border-radius: 12px; }
.fp-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.fp-head h2 { margin: 0; font-size: 1.15rem; }
.fp-x { border: 0; background: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--muted); width: 44px; height: 44px; border-radius: 50%; }
.fp-x:hover { background: var(--bg); color: var(--ink); }
.fp-body { overflow-y: auto; padding: 4px 20px 20px; overscroll-behavior: contain; }
.fp-sec { padding-top: 14px; border-top: 1px solid var(--line); margin-top: 14px; display: grid; gap: 10px; }
.fp-sec:first-child { border-top: 0; margin-top: 0; }
.fp-sec h3 { margin: 6px 0 0; font-size: .95rem; }
.fp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fp-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.fp-opts button, .fp-tog { border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 9px 16px; font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; min-height: 42px; min-width: 56px; }
.fp-opts button:hover, .fp-tog:hover { border-color: var(--brand); }
.fp-opts button[aria-checked="true"], .fp-tog[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.fp-togs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fp-links { display: inline-flex; gap: 14px; align-items: center; font-size: .9rem; }
.fp-links a, .fp-links .linkbtn { color: var(--brand); font-weight: 600; font-size: .9rem; text-decoration: underline; padding: 0; }
.fp-tog .tri { display: inline-block; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 8px solid var(--flag); margin-right: 6px; vertical-align: 1px; }
.fp-tog[aria-pressed="true"] .tri { border-top-color: #fff; }
.fp-foot { display: flex; gap: 12px; justify-content: space-between; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface); border-radius: 0 0 12px 12px; }
.fp-foot .btn.flag { flex: 1; max-width: 320px; }
.fp-foot .btn:disabled { opacity: .55; cursor: default; }
body.fp-open { overflow: hidden; }
@media (max-width: 760px) {
  .fpanel { inset: 0; top: 0; transform: none; width: auto; max-height: none; border-radius: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .fp-foot { border-radius: 0; }
  .fp-two { grid-template-columns: 1fr 1fr; }
}
.checks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.chk { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-weight: 600; font-size: .9rem; background: var(--surface); }
.chk input { accent-color: var(--brand); width: 16px; height: 16px; margin: 0; }
.chk:has(input:checked) { border-color: var(--brand); background: var(--surface-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chips button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 3px 10px; font-size: .8rem; cursor: pointer; }
.chips button::after { content: " ×"; color: var(--muted); }
/* search page, all screens: no search description line; the filter tags sit on the results line next to the count */
.res-wrap .results-bar .eyebrow, .search-top .fchips { display: none; }
.res-wrap .results-bar > div:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.res-wrap .results-bar .rb-chips { margin: 0; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-block: 14px; }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.seg button { border: 0; background: var(--surface); padding: 7px 14px; cursor: pointer; font-weight: 600; }
.seg button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.split .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.mapbox { position: sticky; top: 90px; }
.view-seg button { display: inline-flex; align-items: center; gap: 6px; }
.view-seg svg { width: 15px; height: 15px; }
.view-seg .sm { display: none; }
.more-row { display: flex; justify-content: center; padding: 22px 0 8px; }
.rb-pill { display: inline-flex; align-items: center; gap: 6px; }
.rb-pill svg { width: 15px; height: 15px; flex: none; }   /* icons on computers too, same as on phones */
.rb-pill .sm { display: none; }
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; } .mapbox { position: static; } .split.list-only .mapbox, .split.map-only .listcol { display: none; }
  .view-seg { display: none !important; }  /* phones use the floating Map / List button instead */
  /* the list's toolbar on one line: sort, then Nearby and Save search as the same white pills as on the map */
  .results-bar > div:last-child { flex-wrap: wrap !important; width: 100%; gap: 8px !important; }
  /* agents: the two save buttons share a second line (sort and Nearby above) instead of pushing the row off the screen */
  .results-bar .rb-agent #saveSearch, .results-bar .rb-agent #saveForClient { order: 9; }
  .results-bar .rb-agent #fsort { flex-basis: 50%; }
  .results-bar #fsort { flex: 1 1 0; min-width: 88px; width: auto; padding-inline: 10px; }   /* shrinks before anything wraps */
  .rb-pill { display: inline-flex; align-items: center; gap: 6px; border: 0 !important; background: var(--surface); color: var(--ink); border-radius: 999px; padding: 9px 11px; font: 700 .88rem/1 var(--font-body); box-shadow: 0 2px 10px rgba(0,0,0,.16); white-space: nowrap; flex: none; }
  .rb-pill svg { display: inline-block; width: 15px; height: 15px; }
  .rb-pill .lg { display: none; } .rb-pill .sm { display: inline; }
  @media (max-width: 380px) { .rb-pill svg { display: none; } .rb-agent .rb-pill svg { display: inline-block; } }   /* agents' save buttons have their own line, so room for icons */
}
/* Computers and laptops: Gallery (big photo grid, full width) and Map (map fills the screen beside the listings) */
@media (min-width: 981px) {
  .wrap { max-width: none; padding-inline: 32px; }  /* every page uses the full screen width on computers; reading text keeps its own comfortable width (.prose, .doc) */
  body.wide-page .block .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  body.wide-page .block .grid .card .ph { aspect-ratio: 3 / 2; }
  body .art-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  /* listing cards everywhere (commercial, agent pages, communities, saved homes) match the search gallery: 4 across */
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .grid .card .ph { aspect-ratio: 3 / 2; }
  .grid .card .card-b { padding: 16px 18px 18px; gap: 5px; }
  .grid .card .price { font-size: 1.6rem; }
  .grid .card .addr { font-size: 1.08rem; }
  .grid .card .meta { font-size: .95rem; }
  .grid.agent-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .detail .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }  /* pages with a side column (an agent's own page) */
  .pro-grid, .util-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
  .doc { margin-inline: auto; }                      /* blog posts, guides, policies: a centered reading column */
  .gallery-one { max-height: min(640px, 64vh); }     /* listing photo: big, but leaves room to see the price below */
  .split.list-only { grid-template-columns: minmax(0, 1fr); }
  .split.list-only .mapbox { display: none; }
  .split.list-only .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .split.list-only .card .ph { aspect-ratio: 3 / 2; }
  .split.list-only .card-b { padding: 16px 18px 18px; gap: 5px; }
  .split.list-only .card .price { font-size: 1.6rem; }
  .split.list-only .card .addr { font-size: 1.08rem; }
  .split.list-only .card .meta { font-size: .95rem; }
  .split.map-only { grid-template-columns: minmax(0, 1.3fr) minmax(420px, 1fr); gap: 20px; }
  .split.map-only .mapbox { order: -1; top: calc(var(--mast-h, 70px) + var(--stop-h, 120px) + 12px); height: calc(100vh - var(--mast-h, 70px) - var(--stop-h, 120px) - 24px); }
  .split.map-only .map { height: 100%; }
  .split.map-only .map > svg { height: 100%; }
  .split.map-only .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }  /* map view: always 2 listings per row */
  .split.map-only .card.hot { position: relative; }
  .split.map-only .card.hot::after { content: ""; position: absolute; inset: 0; border: 3px solid var(--flag); border-radius: inherit; pointer-events: none; z-index: 5; }   /* drawn inside the card: an outline got clipped by the scrolling list */
}
@media (min-width: 981px) and (max-width: 1365px) { .grid:not(.agent-grid), .split.list-only .grid, body.wide-page .block .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .detail .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }   /* small laptops: 3 fit better */
@media (min-width: 1800px) { .detail .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .split.list-only .grid { gap: 28px; } }
@media (min-width: 1500px) { .split.map-only { grid-template-columns: minmax(0, 1.45fr) minmax(500px, 1fr); } }
/* Phones and tablets: Zillow-style map search */
.m-toggle, .m-cards, .m-save { display: none; }
@media (max-width: 980px) {
  .m-toggle { display: inline-flex; align-items: center; gap: 8px; position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 35;
    background: var(--brand); color: #fff; border: 0; border-radius: 999px; padding: 12px 20px; font: 700 1rem/1 var(--font-body); box-shadow: 0 6px 18px rgba(0,0,0,.28); cursor: pointer; }
  .m-toggle svg { width: 18px; height: 18px; }
  .m-toggle { outline: 2px solid rgba(255,255,255,.95); outline-offset: 0; }  /* same white ring as the Accessibility and Chat buttons */
  .m-toggle .m-n { background: rgba(255,255,255,.18); border-radius: 999px; padding: 3px 8px; font-size: .82rem; }
  body.m-map { overflow: hidden; }
  /* map view fills the whole screen; the search box and filters float on top of it (the site header returns with List) */
  body.m-map .mast, body.m-map .sample-bar, body.m-map .topbar, body.m-map .results-bar, body.m-map footer, body.m-map .to-top, body.m-map .chat-btn, body.m-map .more-row { display: none !important; }
  body.m-map .split { position: fixed; left: 0; right: 0; top: 0; bottom: 0; z-index: 20; display: block; margin: 0; }
  body.m-map .search-top { position: fixed; top: 0; left: 0; right: 0; z-index: 30; border: 0; padding-top: calc(env(safe-area-inset-top, 0px) + 10px); padding-bottom: 8px;
    background: linear-gradient(rgba(255,255,255,.94) 55%, rgba(255,255,255,0)); pointer-events: none; }
  body.m-map .search-top .wrap > * { pointer-events: auto; }
  body.m-map .search-top .in-wrap .in, body.m-map .search-top .fgo, body.m-map .search-top .fpill { box-shadow: 0 2px 10px rgba(0,0,0,.14); }
  body.m-map .search-top .fpill { background: var(--surface); }
  body.m-map .split .listcol { display: none; }
  body.m-map .split .mapbox { display: block; position: absolute; inset: 0; }
  body.m-map .map { height: 100%; border: 0; border-radius: 0; }
  body.m-map .map > svg { height: 100%; }
  body.m-map .map .pop { display: none !important; }
  body.m-map .map .note { display: none; }
  body.m-cards-on .map-legend, body.m-cards-on .map-fabs, body.m-cards-on .flood-note { display: none; }
  .map-auto { display: none !important; }  /* phones: the map always updates as you move it, like Zillow */
  body.m-map .map-legend { top: calc(var(--mmap-top, 120px) + 48px); bottom: auto; flex-direction: column; gap: 4px; padding: 6px 8px; }
  body.m-map .flood-note { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); right: 10px; }
  body.m-map .m-save { display: inline-flex; align-items: center; gap: 6px; position: absolute; top: calc(var(--mmap-top, 120px) + 4px); right: 10px; z-index: 22; background: var(--surface); color: var(--ink); border: 0; border-radius: 999px; padding: 9px 14px; font: 700 .9rem/1 var(--font-body); box-shadow: 0 2px 10px rgba(0,0,0,.2); cursor: pointer; }
  body.m-map .m-save svg { width: 15px; height: 15px; }
  body.m-map .map-tools { top: calc(var(--mmap-top, 120px) + 4px); left: 10px; }
  body.m-map .map-fabs { top: calc(var(--mmap-top, 120px) + 50px); }
  body.m-cards-on .m-toggle { display: none; }  /* the card strip has its own close button; List comes back when it closes */
  .m-cards:not([hidden]) { display: block; position: absolute; left: 0; right: 0; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 25; }
  .m-cards-top { display: flex; justify-content: space-between; align-items: center; padding: 0 16px 6px; }
  .m-count { background: rgba(27,31,51,.78); color: #fff; font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
  .m-count:empty { visibility: hidden; }
  .m-cards-x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--surface); box-shadow: var(--shadow); font-size: 1.3rem; line-height: 1; cursor: pointer; }
  .m-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 8px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .m-track::-webkit-scrollbar { display: none; }
  .mcard { flex: 0 0 min(90%, 440px); scroll-snap-align: center; background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: 0 8px 26px rgba(0,0,0,.28); color: var(--ink); position: relative; display: flex; flex-direction: column; }
  .mc-link { display: block; text-decoration: none; color: inherit; }
  .mc-ph { position: relative; height: clamp(130px, 22vh, 190px); overflow: hidden; background: var(--surface-2); }
  .mc-ph svg, .mc-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .mc-ph .ours { top: 8px; font-size: .64rem; padding: 3px 6px; }
  .mc-badges { position: absolute; left: 8px; top: 8px; display: flex; gap: 5px; flex-wrap: wrap; right: 120px; z-index: 2; }
  .mb { font-size: .7rem; font-weight: 700; padding: 3px 7px; border-radius: 4px; background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
  .mb.new { background: #1d7a46; color: #fff; } .mb.cut { background: #c81e25; color: #fff; } .mb.oh { background: var(--brand); color: #fff; } .mb.st { background: #a15c00; color: #fff; } .mb.bud { background: #fff; color: #1d7a46; }
  .mc-b { padding: 10px 14px 6px; display: grid; gap: 3px; min-width: 0; }
  .mc-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .mc-top .price { font-size: 1.45rem; }
  .mc-pm { font-size: .82rem; color: var(--muted); font-weight: 600; }
  .mc-f { display: flex; gap: 12px; flex-wrap: wrap; font-size: .92rem; } .mc-f b { font-weight: 750; }
  .mc-b .addr { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mc-x { font-size: .8rem; color: var(--muted); }
  .mc-b .courtesy { margin-top: 1px; font-size: .68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mc-acts { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; padding: 6px 14px 12px; }
  .mc-acts .btn { justify-content: center; }
  .mcard .fav { top: 8px; right: 8px; bottom: auto; width: 34px; height: 34px; position: absolute; }
  .mcard .ours { left: auto; right: 50px; }
  @media (max-height: 760px) {  /* shorter phones: smaller photo so most of the map stays visible */
    .mc-ph { height: clamp(84px, 15vh, 120px); }
    .mc-x { display: none; }
    .mc-top .price { font-size: 1.25rem; }
    .mc-acts .btn { padding-block: 6px; }
    body.m-cards-on .map-tools, body.m-cards-on .m-save { display: none !important; }
}
  body:not(.m-map) .listcol { padding-bottom: 70px; }  /* room for the floating Map button */
}
/* map buttons, legend, clusters, status dots */
.map-tools .sm { display: none; }
.map-fabs { position: absolute; right: 10px; top: 56px; z-index: 1050; display: grid; gap: 8px; }
.map-fab { width: 44px; min-height: 44px; border-radius: 12px; border: 0; background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.2); display: grid; place-items: center; gap: 1px; cursor: pointer; padding: 6px 0; font: 700 .62rem/1 var(--font-body); }
.map .map-fab svg { width: 20px; height: 20px; display: block; }
.map .map-tools svg, .map .m-save svg { width: 15px; height: 15px; display: inline-block; }
.map-fab[aria-pressed="true"] { background: var(--brand); color: #fff; }
.map-fab.busy { opacity: .55; }
.map-auto { gap: 6px; background: var(--surface); pointer-events: auto; }
.map-auto input { width: 16px; height: 16px; accent-color: var(--brand); margin: 0; }
.map-legend { position: absolute; left: 10px; bottom: 10px; z-index: 1040; display: flex; gap: 10px; flex-wrap: wrap; background: rgba(255,255,255,.92); border-radius: 8px; padding: 6px 10px; font-size: .74rem; font-weight: 600; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.15); max-width: calc(100% - 20px); }
.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.map-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.flood-note { position: absolute; left: 10px; right: 64px; bottom: 44px; z-index: 1040; background: rgba(255,255,255,.95); border-radius: 8px; padding: 6px 10px; font-size: .76rem; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.map .note { display: none; }
.ppin span i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; box-shadow: 0 0 0 1.5px #fff; }
.pcl { background: none; border: 0; }
.pcl span { display: grid; place-items: center; transform: translate(-50%, -50%); border-radius: 50%; background: var(--brand); color: #fff; font: 800 .85rem/1 var(--font-body); box-shadow: 0 0 0 5px rgba(63,79,168,.28), 0 2px 6px rgba(0,0,0,.3); cursor: pointer; }
.pcl-s span { width: 34px; height: 34px; } .pcl-m span { width: 42px; height: 42px; font-size: .95rem; } .pcl-l span { width: 52px; height: 52px; font-size: 1rem; }
.mc-ph .sw { position: absolute; inset: 0; }
.ppin.seen span { opacity: .78; }
/* price-tag pins on the live street map */
.ppin { background: none; border: 0; }
.ppin span { display: inline-block; transform: translate(-50%, -100%); background: var(--pc, var(--brand)); color: #fff; font: 700 .78rem/1 var(--font-body); padding: 5px 7px; border-radius: 6px; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.3); position: relative; }
.ppin span::after { content: ""; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%); border: 5px solid transparent; border-bottom: 0; border-top-color: var(--pc, var(--brand)); }
.ppin.hot span { background: var(--ink); transform: translate(-50%, -100%) scale(1.15); } .ppin.hot span::after { border-top-color: var(--ink); }
.lpop { display: block; text-decoration: none; color: var(--ink); } .lpop .ph { margin: -1px 0 6px; border-radius: 6px; overflow: hidden; }
.map { background: var(--land); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; position: relative; isolation: isolate; z-index: 0; }  /* keeps the street map's layers under the cards and buttons */
.map > svg { display: block; width: 100%; height: auto; }  /* the preview map drawing only; the street map draws its own */
.map .note { position: absolute; left: 10px; bottom: 8px; font-size: .7rem; color: var(--muted); }
.pin { cursor: pointer; }
.pin:hover polygon, .pin.hot polygon { transform: scale(1.35); }
.pin polygon { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .12s; }
.pop { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); width: 230px; font-size: .88rem; overflow: hidden; z-index: 3; }
.pop .ph { aspect-ratio: 16/8; }
.pop div.b { padding: 8px 10px 10px; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: 8px; }

/* detail */
.crumbs { font-size: .85rem; color: var(--muted); padding-block: 16px 6px; }
.crumbs a { color: var(--muted); }
.detail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } }
.detail > * { min-width: 0; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; border-radius: 8px; overflow: hidden; }
.gallery .ph { aspect-ratio: auto; height: 100%; min-height: 120px; }
.gallery .main { grid-row: span 2; aspect-ratio: 4/3; }
.gallery .count { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.66); color: #fff; font-size: .8rem; font-weight: 650; padding: 6px 10px; border-radius: 4px; display: inline-flex; gap: 6px; align-items: center; }
.ph-btn { border: 0; padding: 0; margin: 0; cursor: zoom-in; display: block; width: 100%; text-align: left; font: inherit; color: inherit; }
.ph-btn:hover > svg, .ph-btn:hover > img { filter: brightness(1.06); }
/* listing page: back link, on-this-page bar, sections, details, tour picker, share, nearby sales */
.backrow { display: flex; align-items: center; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; padding-block: 14px 10px; }
.backrow .crumbs { padding: 0; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--brand); text-decoration: none; }
.back:hover { text-decoration: underline; }
.jump { position: sticky; top: var(--mast-h, 64px); z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); margin-top: 14px; display: flex; align-items: center; gap: 12px; }
.jump-in { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.jump-in::-webkit-scrollbar { display: none; }
.jump-in button { flex: none; border: 0; background: none; padding: 13px 12px 11px; font-weight: 600; font-size: .9rem; color: var(--muted); border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.jump-in button:hover { color: var(--ink); }
.jump-in button[aria-current="true"] { color: var(--ink); border-bottom-color: var(--flag); }
.lsec { scroll-margin-top: calc(var(--mast-h, 64px) + 60px); padding-block: 24px; border-bottom: 1px solid var(--line); }
.lsec > h2 { font-size: 1.25rem; margin-bottom: 14px; }
.lsec#ov { padding-top: 0; }
.side.static { position: static; }
/* Desktop listing page: the "on this page" bar covers only the left column, and the tour panel follows you
   down the page beside it, just under the header. It never scrolls inside itself: on a window too short for
   the whole panel, the page scrolls until the Request tour button shows, then the panel stays put (fitSide). */
@media (min-width: 901px) {
  .jump { margin-right: calc((100% - 28px) / 2.6 + 28px); }
  .detail .side.static { position: sticky; top: var(--side-top, calc(var(--mast-h, 64px) + 12px)); }
}
.d-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: start; }
.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.linkbtn { border: 0; background: none; padding: 6px 0 0; color: var(--brand); font-weight: 650; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }
.dgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px 36px; }
.dgroup h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; font-family: var(--font-body); font-weight: 700; }
.dgroup dl.spec { font-size: .92rem; grid-template-columns: minmax(90px, max-content) 1fr; }
dl.spec a { color: var(--brand); text-underline-offset: 2px; }
.rooms-wrap { margin-top: 26px; }
.rooms-wrap h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; font-family: var(--font-body); font-weight: 700; }
.table-scroll { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th, .tbl td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th { font-size: .78rem; color: var(--muted); font-weight: 650; }
.tbl tbody th { font-weight: 600; }
.tbl a { color: var(--brand); }
.sold-t { min-width: 560px; }
.sold-t .meta { font-size: .8rem; font-weight: 400; }
.sold-t tbody td, .sold-t tbody th { vertical-align: middle; }
.sold-addr { display: flex; align-items: center; gap: 12px; }
.sold-ph { flex: 0 0 auto; width: 88px; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--surface-2); display: block; }
.sold-ph svg, .sold-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
[data-tour] { scroll-margin-top: calc(var(--mast-h, 64px) + 60px); }
@media (max-width: 640px) {
  .sold-t { min-width: 0; }
  .sold-t thead { display: none; }
  .sold-t tr { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 12px; padding-block: 10px; border-bottom: 1px solid var(--line); }
  .sold-t th, .sold-t td { border: 0; padding: 0; }
  .sold-t tbody th { grid-column: 1 / 3; }
  .sold-t td:nth-of-type(1) { grid-column: 3; grid-row: 1; text-align: right; }
  .sold-t td:nth-of-type(n+2) { font-size: .82rem; color: var(--muted); }
  .sold-ph { width: 72px; }
  .sold-t td:nth-of-type(4) { text-align: right; }
}
.loc-map > svg { height: 300px; }   /* the preview drawing only: a rule for every svg here squashed the street map's property lines and neighborhoods, so they slid around as the map moved */
.loc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .calc-grid { grid-template-columns: 1fr; } }
.dp-wrap { display: grid; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--muted); min-width: 0; }
.dp { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 6px; }
.dp-pct { display: flex; align-items: center; gap: 4px; color: var(--ink); }
.dp-pct .in { padding-inline: 8px; }
.side .panel h3, .tour h3 { margin: 0; }
.tour-who { display: flex; gap: 12px; align-items: center; }
.tour-who .avatar, .tour-who img { width: 48px; height: 48px; }
.tour-who a.meta { text-decoration: none; font-weight: 650; color: var(--brand); }
.tour-type { width: 100%; }
.tour-type button { flex: 1; }
.days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.days button { flex: none; width: 56px; display: grid; justify-items: center; gap: 0; padding: 6px 0; border: 1.5px solid var(--line); border-radius: 6px; background: var(--surface); cursor: pointer; color: var(--ink); line-height: 1.25; }
.days button small { font-size: .7rem; color: var(--muted); }
.days button b { font-size: 1.1rem; }
.days .asap { align-content: center; }
.days .asap b { font-size: .82rem; }
.days button:hover { border-color: var(--brand); }
.days button[aria-pressed="true"] { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, var(--surface)); box-shadow: inset 0 0 0 1px var(--brand); }
details.share { position: relative; }
details.share > summary { list-style: none; }
details.share > summary::-webkit-details-marker { display: none; }
.share-menu { position: absolute; z-index: 35; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 8px; display: grid; gap: 6px; min-width: 190px; }
.share-menu .btn { justify-content: flex-start; }
@media (max-width: 640px) { .share-menu { right: auto; left: 0; } }
.lp-share .btn { gap: 6px; }

/* printable flyer: hidden on screen; when a listing is open it's the only thing that prints */
#flyer { display: none; }
body.flyer-open { overflow: hidden; }
body.flyer-open #flyer { display: block; position: fixed; inset: 0; z-index: 90; overflow: auto; background: rgba(11,13,28,.72); padding: 0 12px 24px; }
.fl-bar { position: sticky; top: 0; z-index: 1; max-width: 8.5in; margin: 0 auto 12px; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: 0 0 8px 8px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; box-shadow: var(--shadow); }
.fl-bar-btns { display: flex; gap: 8px; }
.fl-note { flex-basis: 100%; font-size: .88rem; background: #fff6e0; border-left: 4px solid #d99a00; padding: 8px 12px; border-radius: 4px; color: #5c4200; }
.fl-page { background: #fff; max-width: 8.5in; margin: 0 auto; padding: 0.45in; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
@media (max-width: 640px) { .fl-page { padding: 16px; } .fl-body, .fl-contact { grid-template-columns: 1fr; } .fl-office { text-align: left; } .fl-photos { height: 240px; } .fl-price { font-size: 18pt; } .fl-title h1 { font-size: 17pt; } .fl-facts b { font-size: 13pt; } }
@media print {
  @page { size: letter; margin: 0.45in; }
  body.has-flyer > *:not(#flyer) { display: none !important; }
  body.has-flyer { background: #fff; }
  body.has-flyer #flyer { display: block !important; position: static !important; background: none !important; padding: 0 !important; overflow: visible !important; }
  body.has-flyer .fl-bar { display: none !important; }
  body.has-flyer .fl-page { padding: 0 !important; box-shadow: none !important; max-width: none !important; }
  body.has-flyer .fl-body { grid-template-columns: 1.25fr 1fr !important; }
  body.has-flyer { margin: 0 !important; }
  body.has-flyer .fl-photos { height: 3.2in !important; grid-template-columns: 2fr 1fr !important; }
  body.has-flyer .fl-photos.one { grid-template-columns: 1fr !important; }
  body.has-flyer .fl-contact { grid-template-columns: 1fr 1fr !important; }
}
.fl { color: #1b1f33; font-family: var(--font-body); font-size: 10pt; line-height: 1.4; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.fl-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 10px; border-bottom: 4px solid #c8161d; }
.fl-head img { height: 44px; width: auto; display: block; }
.fl-status { background: #c8161d; color: #fff; font-family: var(--font-display); font-stretch: 112%; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; font-size: 11pt; padding: 6px 14px; border-radius: 3px; }
.fl-photos { display: grid; grid-template-columns: 2fr 1fr; gap: 6px; height: 3.2in; margin-top: 10px; }
.fl-photos.one { grid-template-columns: 1fr; }
.fl-photos svg, .fl-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fl-main { position: relative; overflow: hidden; border-radius: 4px; }
.fl-side-pics { display: grid; grid-template-rows: 1fr 1fr; gap: 6px; min-height: 0; }
.fl-side-pics > div { overflow: hidden; border-radius: 4px; min-height: 0; }
.fl-price { position: absolute; left: 0; bottom: 14px; background: #262f6e; color: #fff; padding: 8px 18px 9px 16px; font-family: var(--font-display); font-stretch: 112%; font-weight: 750; font-size: 24pt; line-height: 1; border-left: 6px solid #c8161d; }
.fl-price span { display: block; font-family: var(--font-body); font-size: 7.5pt; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.8); margin-bottom: 4px; }
.fl-title { margin-top: 12px; }
.fl-title h1 { font-family: var(--font-display); font-stretch: 112%; font-size: 21pt; font-weight: 750; margin: 0; line-height: 1.1; }
.fl-title > div { color: #5b6180; font-size: 11pt; margin-top: 2px; display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.fl-mls { font-size: 9pt; }
.fl-facts { display: grid; margin-top: 10px; border: 1px solid #dadeeb; border-radius: 4px; overflow: hidden; }
.fl-facts > div { padding: 7px 10px; text-align: center; border-left: 1px solid #dadeeb; background: #f4f5fa; }
.fl-facts > div:first-child { border-left: 0; }
.fl-facts b { display: block; font-family: var(--font-display); font-stretch: 112%; font-size: 16pt; line-height: 1.1; color: #262f6e; }
.fl-facts span { font-size: 7.5pt; text-transform: uppercase; letter-spacing: .1em; color: #5b6180; font-weight: 600; }
.fl-body { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; margin-top: 12px; }
.fl-body h2 { font-family: var(--font-display); font-stretch: 112%; font-size: 10pt; text-transform: uppercase; letter-spacing: .12em; color: #262f6e; margin: 0 0 6px; padding-bottom: 4px; border-bottom: 2px solid #c8161d; display: inline-block; }
.fl-remarks { margin: 0; font-size: 9.6pt; line-height: 1.48; max-height: 2.15in; overflow: hidden; }
.fl-details dl { margin: 0; font-size: 9pt; }
.fl-details dl > div { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; padding: 2px 0; border-bottom: 1px solid #e6e8f1; }
.fl-details dt { color: #5b6180; }
.fl-details dd { margin: 0; font-weight: 600; }
.fl-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 14px; background: #262f6e; color: #fff; border-radius: 4px; padding: 11px 18px; border-top: 5px solid #c8161d; font-size: 9pt; line-height: 1.4; }
.fl-contact b { font-family: var(--font-display); font-stretch: 112%; font-size: 13pt; display: block; }
.fl-contact span { font-size: 7.5pt; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.75); font-weight: 600; }
.fl-phone { font-size: 12pt; font-weight: 700; margin-top: 2px; }
.fl-office { text-align: right; color: rgba(255,255,255,.88); }
.fl-office b { font-size: 10.5pt; }
.fl-foot { margin-top: 8px; font-size: 7pt; color: #5b6180; }

/* install-as-app banner (phones) */
.app-banner { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.app-banner img { border-radius: 10px; flex: none; }
.ab-text { display: grid; min-width: 0; flex: 1; font-size: .85rem; line-height: 1.3; }
.ab-text span { color: var(--muted); font-size: .78rem; }
.ab-x { border: 0; background: none; font-size: 1.5rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px; }
.link-like { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
footer .link-like { text-decoration: none; color: #fff; }
/* agent websites */
.agent-tag { display: flex; align-items: center; gap: 10px; text-decoration: none; padding-left: 14px; border-left: 1px solid var(--line); min-width: 0; }
.agent-tag .avatar { font-size: .85rem; flex: none; }
.agent-tag span { display: grid; line-height: 1.2; min-width: 0; }
.agent-tag b { font-size: .95rem; white-space: nowrap; }
.agent-tag small { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1100px) { .agent-tag { display: none; } }   /* phones and tablets: just the logo; the call button dials the agent */
.agent-preview-bar { background: #fff6e0; color: #5c4200; text-align: center; font-size: .85rem; padding: 6px 16px; border-bottom: 1px solid #f0d58a; }
.agent-preview-bar .link-like { color: #5c4200; font-weight: 650; }
.agent-about .panel { grid-template-columns: auto 1fr; gap: 20px; align-items: start; padding: 22px; }
@media (max-width: 520px) { .agent-about .panel { grid-template-columns: 1fr; } }
/* map drawing */
.map-tools { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 1050; display: flex; gap: 8px; flex-wrap: wrap; pointer-events: none; }
.map-tools .btn { pointer-events: auto; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.map .map-tools svg { width: 16px; height: 16px; display: inline-block; }
.map-tools [data-here] { margin-left: auto; }
.draw-layer { position: absolute; inset: 0; z-index: 1100; cursor: crosshair; touch-action: none; background: rgba(38,47,110,.06); }
.draw-layer svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.draw-layer polyline { fill: rgba(227,38,46,.08); stroke: var(--flag); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.draw-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; font-weight: 650; font-size: .9rem; pointer-events: none; }
.area-poly { fill: rgba(227,38,46,.08); stroke: var(--flag); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
/* flood zone */
.flood { margin-top: 14px; border: 1px solid var(--line); border-left: 4px solid var(--good); border-radius: 6px; padding: 12px 14px; font-size: .92rem; }
.flood p { margin: 4px 0 0; }
.flood-moderate { border-left-color: #d99a00; }
.flood-high { border-left-color: var(--flag); background: color-mix(in srgb, var(--flag) 5%, var(--surface)); }
.flood-unknown { border-left-color: var(--muted); }
.oh-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.lp-cta details.cal .share-menu { left: 0; right: auto; }
/* compare */
.cmp-n { background: #fff; color: var(--ink); border-radius: 999px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: .8rem; }
/* Send homes to a client (dialog) */
.sh-ov { position: fixed; inset: 0; z-index: 90; background: rgba(15,18,40,.55); display: grid; place-items: center; padding: 16px; }
body.sh-open { overflow: hidden; }
.sh-box { background: var(--surface); color: var(--ink); border-radius: 12px; width: min(620px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; box-shadow: 0 24px 60px rgba(10,14,40,.35); }
.sh-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.sh-head h2 { font-size: 1.2rem; margin: 0; }
.sh-x { border: 0; background: none; font-size: 1.7rem; line-height: 1; cursor: pointer; color: var(--muted); }
.sh-body { overflow-y: auto; padding: 16px 20px; display: grid; gap: 16px; align-content: start; }
.sh-body .f > span:first-child { font-weight: 600; }
.sh-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); }
.sh-homes { display: grid; gap: 8px; }
.sh-home { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.sh-ph { width: 64px; height: 44px; border-radius: 5px; overflow: hidden; display: block; background: var(--surface-2); }
.sh-ph img, .sh-ph svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-hi { display: grid; min-width: 0; } .sh-hi span { font-size: .88rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-rm { border: 0; background: none; font-size: 1.4rem; cursor: pointer; color: var(--muted); padding: 0 8px; }
.sh-search { position: relative; }
.sh-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 2; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 24px rgba(15,18,40,.14); max-height: 260px; overflow-y: auto; }
.sh-list button { display: grid; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 9px 12px; cursor: pointer; color: var(--ink); font: inherit; }
.sh-list button:hover:not(:disabled) { background: var(--surface-2); } .sh-list button:disabled { opacity: .5; cursor: not-allowed; }
.sh-who { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.sh-new { display: grid; gap: 10px; margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--surface-2); }
.picks-save { margin-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; border-radius: 10px; padding: 16px 18px; background: color-mix(in srgb, var(--brand) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line)); }
.picks-save p { margin: 2px 0 0; }
.sh-text { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: var(--surface-2); }
.sh-text-h { font-weight: 700; }
.sh-foot .btn svg { width: 16px; height: 16px; }
@media (max-width: 480px) { .sh-foot { flex-wrap: wrap; } .sh-foot .btn { flex: 1 1 auto; } }
.picks-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 10px; padding: 16px; background: var(--surface); }
.picks-agent { display: flex; gap: 14px; align-items: flex-start; min-width: 0; flex: 1 1 320px; }
.picks-note { margin: 10px 0 0; padding: 10px 14px; border-left: 4px solid var(--flag); background: var(--surface-2); border-radius: 0 6px 6px 0; white-space: pre-line; }
.sh-frame { width: 100%; height: 520px; border: 1px solid var(--line); border-radius: 8px; background: #F2F4F9; }
.cmp-tray { position: fixed; left: 16px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 46; display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 16px; border-radius: 999px; box-shadow: 0 8px 22px rgba(27,31,51,.28); }
@media (max-width: 900px) { body.has-lp-bar .cmp-tray { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }
.cmp { min-width: 640px; }
.cmp thead th { vertical-align: bottom; min-width: 170px; }
.cmp tbody th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.cmp-ph { display: block; aspect-ratio: 16/10; max-width: 240px; border-radius: 6px; overflow: hidden; margin-bottom: 8px; background: var(--surface-2); }
.cmp thead th { font-size: .95rem; color: var(--ink); }
.cmp thead .meta { font-size: .85rem; }
.cmp-ph svg, .cmp-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmp-addr { font-weight: 700; color: var(--ink); text-decoration: none; display: block; font-size: 1rem; }
.cmp td.best { color: var(--good); font-weight: 700; }
/* account: alerts and agent tools */
.alerts-panel .chk { border-radius: 8px; align-items: flex-start; }
.push-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }
.staff-panel { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; background: var(--surface-2); }
/* lead dashboard */
.dash-bar { display: grid; gap: 12px; margin: 8px 0 16px; }
.dash-bar [aria-pressed="true"] { border-color: var(--brand); background: var(--brand); color: #fff; }
.dash-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.leads { display: grid; gap: 8px; }
.lead { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.lead[open] { box-shadow: var(--shadow); }
.lead summary { list-style: none; display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; cursor: pointer; }
.lead summary::-webkit-details-marker { display: none; }
.lead-main { min-width: 0; line-height: 1.35; }
.lead-main .meta { display: inline; font-size: .85rem; }
.kind { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); background: var(--surface-2); padding: 2px 7px; border-radius: 3px; margin-left: 4px; }
.lead-side { display: grid; justify-items: end; gap: 2px; font-size: .8rem; text-align: right; }
.lead-side .meta { font-size: .78rem; }
.st-label { font-weight: 700; text-transform: capitalize; font-size: .8rem; }
.lead-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--flag); }
.st-contacted { background: #d99a00; } .st-showing { background: var(--brand); } .st-under-contract { background: #6b4fbb; } .st-closed { background: var(--good); } .st-not-interested { background: var(--line); }
.lead-body { padding: 4px 14px 14px 38px; display: grid; gap: 10px; }
.lead-contact { display: flex; gap: 8px; flex-wrap: wrap; }
.lead-msg { margin: 0; background: var(--surface-2); border-radius: 6px; padding: 10px 12px; white-space: pre-wrap; }
.lead-tags span { border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: .8rem; }
.lead-edit { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.lead-edit .wide { grid-column: 1 / -1; }
.lead-edit textarea { min-height: 70px; }
@media (max-width: 640px) { .lead-body { padding-left: 14px; } .lead-edit { grid-template-columns: 1fr; } .lead summary { grid-template-columns: 10px minmax(0, 1fr); } .lead-side { grid-column: 2; justify-items: start; text-align: left; grid-auto-flow: column; gap: 10px; } }
/* stats */
.stat-kpis { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.stat-kpis > div { padding: 14px 16px; border-right: 1px solid var(--line); display: grid; align-content: center; }
.stat-kpis > div:last-child { border-right: 0; }
.stat-kpis b { font-family: var(--font-display); font-stretch: 112%; font-size: 1.6rem; }
.stat-kpis span { color: var(--muted); font-size: .85rem; }
@media (max-width: 640px) { .stat-kpis { grid-template-columns: 1fr 1fr; } .stat-kpis > div:nth-child(2) { border-right: 0; } .stat-kpis > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.stat-chart { width: 100%; height: auto; display: block; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 16px; }
.stat-grid dl.spec { grid-template-columns: minmax(0, 1fr) auto; align-content: start; }
.stat-grid .panel { align-content: start; }
.stat-grid dt a { color: var(--brand); }
/* ---------- phones: nothing scrolls sideways except the quick-jump bar and photo swipes ---------- */
.mkt > *, .avm > *, .avm details, .lsec > * { min-width: 0; }
.days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; overflow: visible; padding-bottom: 0; }
.days button { width: auto; }
/* Tour panel: photo header, tour-type tiles, day cards, big Request tour button (all screen sizes) */
@media all {
  .panel.tour { padding: 16px; gap: 14px; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 24px rgba(27,31,51,.09); }
  .tour-top { display: flex; align-items: center; gap: 12px; margin: -16px -16px 0; padding: 14px 16px; color: #fff; background: linear-gradient(120deg, var(--brand-deep), var(--brand)); border-bottom: 4px solid var(--flag); }
  .tour .tour-top h3 { color: #fff; font-size: 1.25rem; }
  .tour-who { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
  .tour-who .avatar, .tour-who img { width: 42px; height: 42px; }
  .tour-lbl { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: -6px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .tour-lbl span { font-size: .74rem; letter-spacing: 0; text-transform: none; font-weight: 600; }
  .tour .tour-type { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 0; border-radius: 0; overflow: visible; }
  .tour .tour-type button { display: grid; justify-items: center; gap: 4px; padding: 12px 8px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font-weight: 650; }
  .tt-ic { display: block; width: 26px; height: 26px; color: var(--muted); }
  .tour .tour-type button[aria-pressed="true"] { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, var(--surface)); color: var(--brand-deep); box-shadow: inset 0 0 0 1px var(--brand); }
  .tour .tour-type button[aria-pressed="true"] .tt-ic { color: var(--brand); }
  .tour .days { display: flex; gap: 8px; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 30px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 30px), transparent); }
  .tour .days::-webkit-scrollbar { display: none; }
  .tour .days button { flex: none; width: 66px; height: 82px; align-content: center; gap: 2px; border-radius: 12px; scroll-snap-align: start; }
  .tour .days button b { font-size: 1.35rem; }
  .tour .days .asap b { font-size: .95rem; }
  .tour .days button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 35%, transparent); }
  .tour .days button[aria-pressed="true"] small { color: rgba(255,255,255,.85); }
  .tour .form > .btn.flag { width: 100%; min-height: 52px; font-size: 1.05rem; border-radius: 10px; }
  .tour-btn-ic { display: block; }
  .tour .tour-note { display: flex; justify-content: center; align-items: center; gap: 6px; text-align: center; font-size: .86rem; color: var(--muted); }
  .tour-note svg { display: block; flex: none; color: var(--brand); }
}
/* Computers: days in two rows of four (no sideways swiping with a mouse), shorter tour-type tiles */
@media (min-width: 901px) {
  .tour .days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding: 0; -webkit-mask-image: none; mask-image: none; }
  .tour .days button { width: auto; height: 62px; }
  .tour .days button b { font-size: 1.2rem; }
  .tour .days button:hover:not([aria-pressed="true"]) { border-color: var(--brand); }
  .tour-lbl span { display: none; }
  .tour .tour-type button { grid-auto-flow: column; justify-content: center; align-items: center; gap: 8px; padding: 11px 8px; }
  .tour .tour-type button:hover:not([aria-pressed="true"]) { border-color: var(--brand); }
  .tt-ic { width: 22px; height: 22px; }
  .panel.tour { gap: 10px; }
  .tour .tour-top { padding-block: 12px; }
  /* the agent's name and phone sit in the right side of the blue header, to save room */
  .panel.tour { position: relative; }
  .tour .tour-top { min-height: 58px; }
  .tour .tour-who { position: absolute; top: 9px; right: 16px; max-width: 62%; background: none; padding: 0; gap: 10px; color: #fff; text-align: right; flex-direction: row-reverse; }
  .tour .tour-who .avatar, .tour .tour-who img { width: 38px; height: 38px; font-size: .8rem; box-shadow: 0 0 0 2px rgba(255,255,255,.8); }
  .tour .tour-who strong { display: block; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tour .tour-who .meta:not(a) { display: none; }
  .tour .tour-who a.meta { color: #fff; opacity: .9; font-size: .86rem; }
  .tour textarea.in { height: 60px; min-height: 60px; }
  .tour .form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tour .form > * { grid-column: 1 / -1; }
  .tour .form > label.f:has(input[name=email]), .tour .form > label.f:has(select[name=preferred_time]) { grid-column: auto; }
  .tour .form > .btn.flag { min-height: 48px; }
}
@media (max-width: 640px) {
  /* data tables turn into stacked cards: one card per row, each value labeled */
  body .tbl-wrap { overflow: visible; }
  body table.comps { min-width: 0; display: block; }
  body table.comps thead { display: none; }
  body table.comps tbody { display: grid; gap: 8px; }
  body table.comps tr { display: grid; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; background: var(--surface); }
  body table.comps td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 3px 0; white-space: normal !important; text-align: right; min-width: 0 !important; }
  body table.comps td::before { content: attr(data-label); color: var(--muted); font-size: .8rem; text-align: left; }
  body table.comps td:first-child { display: block; font-weight: 650; text-align: left; padding-bottom: 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
  body table.comps td:first-child::before { content: none; }
  body table.comps td.r, table.comps th.r { text-align: right; }
  /* compare: each detail lists the homes as A, B, C, D */
  body .cmp-wrap { overflow: visible; }
  body .cmp { min-width: 0; display: block; }
  body .cmp thead, .cmp tbody { display: block; }
  body .cmp thead tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body .cmp thead th:first-child { display: none; }
  body .cmp thead th { min-width: 0; border: 0; padding: 0; position: relative; }
  .cmp-ph { max-width: none; }
  body .cmp tbody tr { display: grid; border-bottom: 1px solid var(--line); padding: 10px 0; }
  body .cmp tbody th { padding: 0 0 4px; border: 0; color: var(--ink); font-weight: 700; }
  body .cmp tbody td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 2px 0; text-align: right; }
  body .cmp tbody td::before { content: attr(data-label); color: var(--muted); font-size: .85rem; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  /* share and calendar menus open as a panel along the bottom of the screen */
  details.share[open] > .share-menu { position: fixed; left: 12px; right: 12px; top: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 85; min-width: 0; padding: 12px; box-shadow: 0 -8px 30px rgba(27,31,51,.25); }
  details.share[open] > .share-menu .btn { justify-content: center; padding-block: 11px; }
}
.cmp-letter { position: absolute; z-index: 1; margin: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 700; display: grid; place-items: center; }
.cmp-tray { padding: 0; gap: 0; overflow: hidden; }
.cmp-tray a { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; padding: 12px 10px 12px 16px; }
.cmp-tray button { border: 0; border-left: 1px solid rgba(255,255,255,.25); background: none; color: #fff; font-size: 1.3rem; line-height: 1; padding: 10px 14px; cursor: pointer; }
.cmp-tray button:hover, .cmp-tray a:hover { background: rgba(255,255,255,.12); }
/* property details: separate boxes, like a fact sheet */
.dcards { columns: 2 290px; column-gap: 18px; }
.dcard { break-inside: avoid; display: inline-block; width: 100%; margin: 0 0 20px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.dcard h3 { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 16px; background: var(--surface-2); font-size: 1rem; color: var(--brand-deep); border-bottom: 1px solid var(--line); }
.dcard h3 .tri { width: 12px; height: 10px; }
.drows { margin: 0; }
.drows > div { display: grid; grid-template-columns: minmax(110px, 42%) 1fr; gap: 12px; padding: 9px 16px; border-top: 1px solid var(--line); font-size: .93rem; }
.drows > div:first-child { border-top: 0; }
.drows > div:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); }
.drows dt { color: var(--muted); }
.drows dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.drows a { color: var(--brand); text-underline-offset: 2px; }
.dnote { margin: 0; padding: 10px 16px 12px; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); }
.dnote a { color: var(--brand); }
.rtable { width: 100%; border-collapse: collapse; font-size: .93rem; }
.rtable th, .rtable td { text-align: left; padding: 9px 16px; border-top: 1px solid var(--line); }
.rtable thead th { border-top: 0; font-size: .78rem; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .05em; }
.rtable tbody tr:nth-child(odd) { background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); }
.rtable tbody th { font-weight: 600; }
.dcard[id] { scroll-margin-top: calc(var(--mast-h, 64px) + 60px); }
/* favorite heart and share on the main photo */
.gallery-wrap { position: relative; }
.g-badges { position: absolute; left: 12px; top: 12px; z-index: 2; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.g-badges .tag, .g-badges .ours { position: static; }
.g-actions { position: absolute; right: 12px; top: 12px; z-index: 5; display: flex; gap: 10px; }
.g-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.25); list-style: none; }
.g-btn::-webkit-details-marker { display: none; }
.g-btn svg { width: 20px; height: 20px; }
.g-btn:hover { transform: scale(1.06); }
.fav-btn[aria-pressed="true"] svg path { fill: var(--flag); stroke: var(--flag); }
.g-share .share-menu { right: 0; top: calc(100% + 8px); }
@media (max-width: 640px) { .g-btn { width: 40px; height: 40px; } .g-actions { right: 10px; top: 10px; } .g-badges { left: 10px; top: 10px; } }
/* voice search */
.in-wrap { position: relative; display: block; }
.in-wrap .in { padding-right: 44px; }
.mic-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: var(--brand); display: grid; place-items: center; cursor: pointer; }
.mic-btn:hover { background: var(--surface-2); }
.mic-btn.on { background: var(--flag); color: #fff; animation: micpulse 1.2s ease-in-out infinite; }
@keyframes micpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(227,38,46,.45); } 50% { box-shadow: 0 0 0 8px rgba(227,38,46,0); } }
@media (prefers-reduced-motion: reduce) { .mic-btn.on { animation: none; } }
/* footer social links */
/* just the white logos; a link without a logo file shows its name in a small outlined button */
.social { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.social a { display: inline-flex; align-items: center; justify-content: center; color: #fff; border-radius: 6px; transition: opacity .15s, transform .15s; }
.social a.ico { width: 34px; height: 34px; }
.social a:not(.ico) { border: 1.5px solid #fff; border-radius: 999px; padding: 5px 12px; font-size: .82rem; font-weight: 600; }
.social img { width: 30px; height: 30px; object-fit: contain; display: block; }
.social a:hover { opacity: .8; transform: translateY(-1px); color: #fff; }
.social a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* swipeable photos */
.sw { position: absolute; inset: 0; }
.sw-track { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.sw-track::-webkit-scrollbar { display: none; }
.sw-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; background: var(--surface-2); }
.sw-slide > svg, .sw-slide > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sw-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.94); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.25); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .15s; }
.ph .sw-nav svg, .sw-nav svg { width: 18px; height: 18px; }
.sw-nav.prev { left: 8px; } .sw-nav.next { right: 8px; }
.sw:hover .sw-nav, .sw:focus-within .sw-nav { opacity: 1; }
@media (hover: none) { .sw-nav { display: none; } }
.sw-count { position: absolute; left: 10px; bottom: 10px; z-index: 2; background: rgba(0,0,0,.6); color: #fff; font-size: .72rem; font-weight: 650; padding: 2px 8px; border-radius: 999px; pointer-events: none; }
.ph .tag, .ph .ours, .ph .fav { z-index: 2; }
.gallery-one { position: relative; aspect-ratio: 4 / 3; max-height: 640px; width: 100%; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
/* computers: one big photo and four smaller ones, like the big real estate sites (no borders, little cropping) */
.g-collage { display: none; }
@media (min-width: 1024px) {
  .gallery-one { aspect-ratio: auto; height: clamp(380px, 38vw, 500px); max-height: none; background: transparent; }
  .gallery-one > .sw { display: none; }
  .g-collage { display: grid; position: absolute; inset: 0; gap: 6px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .g-collage.gc-n4 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr 1fr; }
  .g-collage.gc-n3 { grid-template-columns: 2fr 1fr; }
  .g-collage.gc-n2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
  .g-collage.gc-n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .g-collage .gc-0 { grid-row: 1 / -1; }
  .gc-ph { border: 0; padding: 0; margin: 0; display: block; overflow: hidden; cursor: zoom-in; background: var(--surface-2); min-height: 0; }
  .gc-ph > img, .gc-ph > svg { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease, filter .25s ease; }
  .gc-ph:hover > img, .gc-ph:hover > svg { transform: scale(1.02); filter: brightness(1.05); }
  .gc-ph:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
}
@media (max-width: 640px) { .gallery-one { border-radius: 6px; } }
.gallery-one .sw-slide { cursor: zoom-in; }
.gallery-one .tag, .gallery-one .ours { z-index: 2; }
.gallery-one .sw-nav { width: 44px; height: 44px; opacity: 1; }
.gallery-one .sw-nav.prev { left: 14px; } .gallery-one .sw-nav.next { right: 14px; }
.gallery-one .sw-count { font-size: .8rem; padding: 4px 10px; left: 12px; bottom: 12px; }
.g-all { position: absolute; right: 12px; bottom: 12px; z-index: 2; border: 0; background: rgba(0,0,0,.66); color: #fff; font: inherit; font-size: .82rem; font-weight: 650; padding: 7px 12px; border-radius: 4px; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.g-all:hover { background: rgba(0,0,0,.8); }
/* photo viewer: always dark, like a light table, regardless of site theme */
/* All photos list */
.pl { position: fixed; inset: 0; z-index: 78; background: var(--bg); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding-top: env(safe-area-inset-top, 0px); }
.pl[hidden] { display: none; }
.pl-bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.pl-back { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.pl-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-count { font-size: .85rem; color: var(--muted); }
.pl-list { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 12px 0 24px; }
.pl-ph { position: relative; display: block; width: min(100%, 1100px); margin: 0 auto 10px; padding: 0; border: 0; aspect-ratio: 3 / 2; background: var(--surface-2); cursor: zoom-in; overflow: hidden; }
.pl-ph svg, .pl-ph img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.pl-n { position: absolute; left: 10px; bottom: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: .78rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
@media (min-width: 720px) { .pl-list { padding-inline: 16px; } .pl-ph { border-radius: 8px; } }
.pl-foot { display: flex; gap: 10px; justify-content: center; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); }
.pl-foot .btn { flex: 1 1 0; max-width: 280px; justify-content: center; }
.pl-foot .btn[hidden] { display: none; }
.lb { position: fixed; inset: 0; z-index: 80; background: #0b0d1c; color: #fff; display: grid; grid-template-rows: auto 1fr auto; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; }
.lb-title { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-count { font-size: .85rem; color: #b9bfdc; }
.lb-x, .lb-nav { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; }
.lb-x:hover, .lb-nav:hover { background: rgba(255,255,255,.18); }
.lb-stage { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding-inline: 16px; min-height: 0; touch-action: pan-y; user-select: none; }
.lb-fig { margin: 0; display: grid; gap: 8px; justify-items: center; min-height: 0; max-height: 100%; }
.lb-img { width: 100%; max-width: min(1100px, calc((100vh - 230px) * 1.6)); aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: #1a1d33; }
.lb-img svg, .lb-img img { width: 100%; height: 100%; display: block; object-fit: contain; }
.lb-fig figcaption { font-size: .82rem; color: #b9bfdc; text-align: center; min-height: 1.2em; padding-inline: 16px; }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 16px; scrollbar-width: thin; }
.lb-th { flex: none; width: 84px; aspect-ratio: 16 / 10; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; cursor: pointer; background: #1a1d33; opacity: .6; }
.lb-th svg, .lb-th img { width: 100%; height: 100%; display: block; object-fit: cover; }
.lb-th[aria-current="true"] { border-color: var(--flag); opacity: 1; }
@media (max-width: 640px) { .lb-stage { grid-template-columns: minmax(0, 1fr); padding-inline: 0; } .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; background: rgba(11,13,28,.55); } .lb-nav.prev { left: 8px; } .lb-nav.next { right: 8px; } .lb-img { border-radius: 0; } .lb-th { width: 64px; } }
.d-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; flex-wrap: wrap; padding-block: 20px 10px; }
.d-head .price { font-size: 2rem; }
.facts { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }   /* one row: 4 or 5 boxes */
.facts div { padding: 10px 12px; border-right: 1px solid var(--line); display: grid; min-width: 0; }
.facts div:last-child { border-right: 0; }
.facts b { font-family: var(--font-display); font-stretch: 112%; font-size: 1.2rem; white-space: nowrap; }
.facts span { font-size: .8rem; color: var(--muted); }
@media (max-width: 520px) { .facts { grid-auto-flow: row; grid-template-columns: 1fr 1fr; } .facts div:nth-child(2n) { border-right: 0; }
  .facts div { border-bottom: 1px solid var(--line); } .facts div:nth-last-child(1), .facts div:nth-last-child(2):nth-child(odd) { border-bottom: 0; }   /* every row but the last */
  .facts div:nth-child(odd):last-child { grid-column: 1 / -1; border-right: 0; } }   /* an odd box out spans the row */
.prose { max-width: 65ch; }
dl.spec { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0; font-size: .95rem; }
dl.spec dt { color: var(--muted); }
dl.spec dd { margin: 0; font-weight: 550; min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px; display: grid; gap: 12px; }
.side { display: grid; gap: 18px; position: sticky; top: 90px; }
@media (max-width: 900px) { .side { position: static; } }
.form { display: grid; gap: 10px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ok { background: var(--surface-2); border-radius: 6px; padding: 12px 14px; font-size: .92rem; }
.pay { font-family: var(--font-display); font-stretch: 112%; font-size: 1.8rem; font-weight: 750; }
.bars { display: flex; height: 10px; border-radius: 5px; overflow: hidden; }
.legend { display: grid; gap: 4px; font-size: .85rem; }
.legend div { display: flex; justify-content: space-between; gap: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

/* agents */
.agent-contact { display: flex; flex-direction: column; gap: 2px; font-size: .9rem; }
.agent-contact a { color: var(--brand); text-decoration: none; overflow-wrap: anywhere; }
.agent { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px; display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; text-decoration: none; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: 1.3rem; }
.page-head { padding-block: 32px 8px; display: grid; gap: 8px; }
.page-head p { margin: 0; color: var(--muted); max-width: 60ch; }

/* footer */
footer { margin-top: 64px; background: #c81e25; color: rgba(255,255,255,.92); padding-block: 36px 28px; font-size: .9rem; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr; } }
footer a { color: #fff; text-decoration: none; }
.legal-links a { text-decoration: underline; text-underline-offset: 2px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-logo { display: block; width: fit-content; max-width: 100%; margin-bottom: 14px; line-height: 0; }
.chat-btn, .to-top { outline: 2px solid rgba(255,255,255,.95); outline-offset: 0; }  /* stay visible over the red footer */
.foot-agent-photo { display: block; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; margin-bottom: 12px; }
.foot-logo img { display: block; width: 240px; max-width: calc(100vw - 60px); height: auto; }
footer h3 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.disclaimer { border-top: 1px solid rgba(255,255,255,.28); margin-top: 26px; padding-top: 18px; font-size: .76rem; color: rgba(255,255,255,.86); display: grid; gap: 8px; }
.eho { display: flex; gap: 22px; align-items: center; }   /* REALTOR® and Equal Housing logos: bigger than the social icons so their wording is readable */
.eho .ico { width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; }
.eho img { width: 48px; height: 48px; object-fit: contain; display: block; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 6px; font-weight: 600; z-index: 60; font-size: .92rem; max-width: calc(100% - 32px); }


/* ---------- Landmark Value Estimate ---------- */
.avm { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 20px; display: grid; gap: 16px; }
.avm-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; flex-wrap: wrap; }
.avm-val { font-family: var(--font-display); font-stretch: 112%; font-weight: 750; font-size: clamp(2rem, 5vw, 2.6rem); line-height: 1.05; }
.conf { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .82rem; font-weight: 650; white-space: nowrap; }
.conf i { display: inline-flex; gap: 3px; }
.conf i b { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--brand); }
.conf i b.on { background: var(--brand); }
.avm-scale { position: relative; height: 72px; margin-inline: 4px; }
.avm-track { position: absolute; left: 0; right: 0; top: 30px; height: 8px; border-radius: 4px; background: var(--surface-2); }
.avm-band { position: absolute; top: 30px; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--brand) 55%, var(--surface)); }
.avm-dot { position: absolute; top: 25px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--brand); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--brand); }
.avm-list { position: absolute; top: 18px; width: 0; height: 32px; border-left: 2px dashed var(--flag); }
.avm-lab { position: absolute; font-size: .78rem; white-space: nowrap; color: var(--muted); transform: translateX(-50%); }
.avm-lab b { color: var(--ink); font-weight: 650; }
.avm-lab.top { top: 0; } .avm-lab.bot { top: 52px; }
.avm-note { margin: 0; font-size: .95rem; }
.avm details { border-top: 1px solid var(--line); padding-top: 12px; }
.avm summary { cursor: pointer; font-weight: 650; color: var(--brand); }
.tbl-wrap { overflow-x: auto; margin-top: 12px; }
/* the value-estimate sales table: when its box is too narrow for every column (tablets, side panels), show cards instead */
.avm .tbl-wrap, #val .tbl-wrap, #hv .tbl-wrap { container-type: inline-size; }
@container (max-width: 600px) {
  .tbl-wrap table.comps { min-width: 0; display: block; }
  .tbl-wrap table.comps thead { display: none; }
  .tbl-wrap table.comps tbody { display: grid; gap: 8px; }
  .tbl-wrap table.comps tr { display: grid; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; background: var(--surface); }
  .tbl-wrap table.comps td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 3px 0; white-space: normal !important; text-align: right; min-width: 0 !important; }
  .tbl-wrap table.comps td::before { content: attr(data-label); color: var(--muted); font-size: .8rem; text-align: left; }
  .tbl-wrap table.comps td:first-child { display: block; font-weight: 650; text-align: left; padding-bottom: 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
  .tbl-wrap table.comps td:first-child::before { content: none; }
  .tbl-wrap table.comps .sold-ph { width: 72px; }
}
table.comps { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 560px; }
table.comps td { vertical-align: middle; }
table.comps .sold-addr { gap: 10px; }
table.comps .sold-ph { width: 56px; }
@media (max-width: 640px) { table.comps .sold-ph { width: 72px; } }
table.comps th { text-align: left; font-weight: 650; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; padding: 6px 8px; border-bottom: 1px solid var(--line); }
table.comps td { padding: 8px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
table.comps td:not(:first-child) { white-space: nowrap; }
table.comps th { vertical-align: bottom; }
table.comps td, table.comps th { padding-inline: 6px; }
table.comps td:first-child { min-width: 170px; }
table.comps td.r, table.comps th.r { text-align: right; }
.avm-fine { font-size: .78rem; color: var(--muted); margin: 10px 0 0; max-width: 70ch; }
.hv-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; align-items: end; }
.hv-form .wide { grid-column: span 2; }
.hv-form .hv-upd { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; min-width: 0; }
.hv-form .hv-upd legend { font-size: .85rem; font-weight: 600; margin-bottom: 6px; padding: 0; }
.hv-upd-list { display: flex; flex-wrap: wrap; gap: 8px 18px; }
@media (max-width: 520px) { .hv-form { grid-template-columns: 1fr 1fr; } .hv-form .wide { grid-column: 1 / -1; } }


/* ---------- content pages, guides, school cards, market chart ---------- */
.doc { max-width: 760px; }
.doc-body { font-size: 1.02rem; }
.doc-body h2 { font-size: 1.3rem; margin: 28px 0 8px; }
.doc-body h3 { font-size: 1.1rem; margin: 20px 0 6px; }
.doc-body p, .doc-body li { line-height: 1.65; }
.doc-body a { color: var(--brand); }
.draft-note { background: #fff6e0; border-left: 4px solid #d99a00; padding: 10px 14px; border-radius: 4px; font-size: .9rem; margin: 8px 0 16px; color: #5c4200; }
.index-cols { columns: 2 320px; column-gap: 32px; margin-top: 12px; }
.index-cols section { break-inside: avoid; margin-bottom: 20px; }
.index-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: .92rem; }
.index-list a { color: var(--brand); }
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 18px; }
.art-card { border: 1px solid var(--line); border-radius: 8px; padding: 20px; text-decoration: none; display: grid; gap: 8px; align-content: start; background: var(--surface); }
.art-card:hover { border-color: var(--brand); }
.art-card h2 { font-size: 1.15rem; }
.art-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.art-card .go, .school-card .go { font-weight: 700; color: var(--brand); }
.guide-link { display: grid; gap: 2px; text-decoration: none; padding-block: 8px; border-bottom: 1px solid var(--line); }
.school-card { text-align: left; border: 1px solid var(--line); border-radius: 8px; padding: 18px; background: var(--surface); display: grid; gap: 6px; cursor: pointer; font: inherit; color: inherit; }
.school-card:hover { border-color: var(--brand); }
.mkt { border: 1px solid var(--line); border-radius: 8px; padding: 20px; display: grid; gap: 16px; }
.mkt-controls { display: flex; justify-content: space-between; gap: 12px; align-items: end; flex-wrap: wrap; }
.mkt-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: center; }
.mkt-controls .mkt-measure button span { white-space: nowrap; }   /* "Price per" / "sq ft" break as a pair, never mid-phrase */
.mkt-month { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mkt-month > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.mkt-month b { display: block; font-size: 1.35rem; margin-block: 2px; }
@media (max-width: 760px) {
  .mkt-body { grid-template-columns: 1fr; }
  .mkt-controls .seg { width: 100%; } .mkt-controls .seg button { flex: 1; padding-inline: 6px; font-size: .82rem; line-height: 1.2; }
  .mkt-controls .mkt-measure button span { display: block; }   /* phones: "Price per" on top, "sq ft" underneath */
  .mkt-controls .mkt-period { display: grid; grid-template-columns: repeat(3, 1fr); }   /* six periods: two rows of three */
  .mkt-controls .mkt-period button { padding-block: 9px; }
  .mkt-month { grid-template-columns: 1fr; }
}
.mkt-val { font-family: var(--font-display); font-stretch: 112%; font-weight: 750; font-size: 2.2rem; line-height: 1.1; }
.mkt-chart { position: relative; min-width: 0; }
.mkt-svg { width: 100%; height: auto; display: block; font-family: var(--font-body); }
.mkt-tip { position: absolute; top: 0; width: 160px; background: var(--ink); color: #fff; font-size: .8rem; padding: 6px 10px; border-radius: 6px; pointer-events: none; }
.mkt-table summary { cursor: pointer; font-weight: 650; color: var(--brand); }
.chips-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chips-row a, .chips-row button { border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 14px; text-decoration: none; font-weight: 600; font-size: .9rem; background: var(--surface); cursor: pointer; color: var(--ink); font-family: inherit; }
.chips-row a:hover, .chips-row button:hover { border-color: var(--brand); color: var(--brand); }
.near-btn { background: var(--brand); color: #fff; border: 1.5px solid #fff; }
.near-btn:hover { background: #34439a; }

/* ---------- live chat ---------- */
.chat-btn { position: fixed; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 46; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; background: var(--flag); color: #fff; font: inherit; font-weight: 700; padding: 12px 18px; box-shadow: 0 8px 22px rgba(27,31,51,.28); cursor: pointer; }
.chat-btn:hover { filter: brightness(1.06); }
.chat-dot { position: absolute; top: 4px; right: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--flag); }
@media (max-width: 640px) { .chat-btn span { display: none; } .chat-btn { padding: 14px; } }
@media (max-width: 900px) { body.has-lp-bar .chat-btn { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } body.has-lp-bar .to-top { bottom: calc(148px + env(safe-area-inset-bottom, 0px)); } }
.chat-panel { position: fixed; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 77; width: min(380px, calc(100% - 32px)); height: min(600px, calc(100% - 40px)); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px rgba(27,31,51,.3); display: flex; flex-direction: column; overflow: hidden; }
@media (max-width: 640px) { .chat-panel { inset: 0; width: 100%; height: 100%; border-radius: 0; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); } }
.chat-head { background: var(--brand); color: #fff; padding: 14px 16px; display: flex; gap: 10px; align-items: start; justify-content: space-between; }
.chat-head h2 { font-size: 1.05rem; margin: 0 0 2px; }
.chat-head p { margin: 0; font-size: .8rem; opacity: .9; }
.chat-x { border: 0; background: none; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 6px; background: var(--bg); }
.chat-log:empty { display: none; }
.cm { width: fit-content; max-width: 82%; padding: 8px 12px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .94rem; }
.cm.visitor { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.cm.agent { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.cm.sys { align-self: center; background: none; color: var(--muted); font-size: .8rem; text-align: center; max-width: 95%; }
.cm-who { font-size: .72rem; color: var(--muted); margin: 4px 4px 0; }
.cm-who.r { align-self: flex-end; }
.chat-start { padding: 14px 16px; display: grid; gap: 10px; overflow-y: auto; }
.chat-send { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-send textarea { resize: none; height: 44px; min-height: 44px; }
.chat-send .btn { height: 44px; }
/* ---------- back to top button ---------- */
/* ---------- accessibility button and panel (bottom left) ---------- */
.a11y-btn { position: fixed; left: 16px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 46; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px rgba(27,31,51,.25); outline: 2px solid rgba(255,255,255,.95); }
.a11y-btn:focus-visible { outline: 3px solid var(--flag); outline-offset: 2px; }
.a11y-panel { position: fixed; left: 16px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); z-index: 70; width: min(360px, calc(100% - 32px)); max-height: calc(100% - 120px); overflow: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 50px rgba(15,18,40,.28); padding: 14px 16px 16px; display: grid; gap: 12px; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; }
.a11y-head h2 { font-size: 1.15rem; margin: 0; }
.a11y-x { border: 0; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink); padding: 2px 8px; }
.a11y-size { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.a11y-size span { margin-right: auto; }
.a11y-size button { min-width: 44px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--ink); font-weight: 800; font-size: 1rem; cursor: pointer; }
.a11y-size output { min-width: 52px; text-align: center; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-t { text-align: left; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); padding: 10px; cursor: pointer; display: grid; gap: 2px; font: inherit; min-height: 64px; }
.a11y-t b { font-size: .92rem; } .a11y-t span { font-size: .78rem; color: var(--muted); }
.a11y-t[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; } .a11y-t[aria-pressed="true"] span { color: rgba(255,255,255,.88); }
.a11y-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .9rem; }
@media (max-width: 900px) { body.has-lp-bar .a11y-btn { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } body.has-lp-bar .a11y-panel { bottom: calc(144px + env(safe-area-inset-bottom, 0px)); } }
.cmp-tray { left: 76px !important; }   /* the compare button sits beside the accessibility button */
body.m-map .a11y-btn, body.m-map .a11y-panel, body.crm-mode .a11y-btn, body.kiosk .a11y-btn, body.no-a11y .a11y-btn, body.no-a11y .a11y-panel { display: none !important; }
@media print { .a11y-btn, .a11y-panel { display: none !important; } }
/* what each option does */
html.a11y-contrast { --muted: #2b3048; --line: #59607a; --surface-2: #e1e5f2; --closed: #2b3048; }
html.a11y-contrast .courtesy, html.a11y-contrast .meta { color: var(--ink) !important; }
html.a11y-links a:not(.btn):not(.card):not(.mc-link):not(.logo):not(.tile):not(.call-btn) { text-decoration: underline !important; text-underline-offset: 3px; text-decoration-thickness: 2px; }
html.a11y-links a:focus-visible, html.a11y-links button:focus-visible { outline: 3px solid var(--flag) !important; outline-offset: 2px; }
html.a11y-font body, html.a11y-font body * { font-family: "Atkinson Hyperlegible", Verdana, Tahoma, sans-serif !important; }
html.a11y-spacing body * { line-height: 1.8 !important; letter-spacing: .06em !important; word-spacing: .16em !important; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24'%3E%3Cpath d='M3 2l7.5 19 2.8-8.2L21.5 10z' fill='%23000' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") 4 3, auto !important; }
.to-top { position: fixed; right: 20px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 45; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(27,31,51,.25); cursor: pointer; display: grid; place-items: center; transition: opacity .2s, transform .2s; }
.to-top:hover { filter: brightness(1.1); }
/* typing on a phone: get the floating buttons and sticky bars out of the way of the keyboard */
body.kb .lp-bar, body.kb .chat-btn, body.kb .to-top, body.kb .cmp-tray { display: none !important; }
body.kb .mast, body.kb .jump, body.kb .search-top { position: relative; top: auto; }
.to-top.off { opacity: 0; transform: translateY(12px); pointer-events: none; }

/* ---------- search suggestions (autocomplete) ---------- */
.ac { position: absolute; z-index: 70; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 32px rgba(27,31,51,.18); max-height: min(420px, 60vh); overflow-y: auto; padding: 6px 0; color: var(--ink); }
.ac-group { font-family: var(--font-display); font-stretch: 125%; text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; font-weight: 700; color: var(--muted); padding: 10px 14px 4px; }
.ac-opt { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 8px 14px; cursor: pointer; }
.ac-opt[aria-selected="true"], .ac-opt:hover { background: var(--surface-2); }
.ac-opt svg { color: var(--muted); }
.ac-main { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-main mark { background: none; color: var(--brand); font-weight: 700; }
.ac-sub { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.ac-empty { padding: 10px 14px; color: var(--muted); font-size: .9rem; }
/* ---------- phone bar on listing pages ---------- */
.btn.light { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.lp-phone { font-family: var(--font-display); font-stretch: 108%; font-size: 1.2rem; font-weight: 700; user-select: all; }
.lp-bar { display: none; }
@media (max-width: 900px) {
  .lp-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -6px 18px rgba(0,0,0,.08); }
  body.has-lp-bar footer { padding-bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* My account: "Sign out everywhere" under the password form */
.signout-all { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.signout-all > div { display: grid; gap: 2px; }

/* Map: aerial photo and property line switches. On listing pages they sit in the map's top corner. */
.map-fabs-lp { position: static; display: grid; gap: 6px; margin: 0 10px 0 0; }   /* listing maps: a column up in the top corner, clear of the zoom buttons */
/* the map library's stylesheet (loaded after this one) makes its controls position: relative, which let the search
   map's "top: 56px" push this column 56px down into the zoom buttons */
.map-fabs.map-fabs-lp { top: 0; right: auto; }
.map-fabs-lp.tight { gap: 4px; }
.map-fabs-lp.tight .map-fab { width: 34px; min-height: 34px; padding: 4px 0; }
.map-fabs-lp .map-fab { width: 40px; min-height: 40px; }
.lines-note { position: absolute; left: 10px; right: 64px; bottom: 44px; z-index: 1040; background: rgba(255,255,255,.95); border-radius: 8px; padding: 6px 10px; font-size: .76rem; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.flood-note ~ .lines-note { bottom: 84px; }
@media (max-width: 980px) { body.m-map .lines-note { bottom: calc(116px + env(safe-area-inset-bottom, 0px)); right: 10px; } body.m-cards-on .lines-note { display: none; } }

/* map layer buttons: logos only */
.map-fab span { display: none; }
/* neighborhood names on the map */
.leaflet-tooltip.hood-label { background: transparent; border: 0; box-shadow: none; color: #9f1117; font: 800 .78rem/1.1 var(--font-body);
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 2px #fff; white-space: nowrap; pointer-events: none; }
.leaflet-tooltip.hood-label::before { display: none; }
.on-sat .leaflet-tooltip.hood-label { color: #fff; text-shadow: 0 0 4px #000, 0 0 3px #000; }
.link-like.danger { color: var(--flag, #d1242b); }
.saved-search { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.saved-search > a { display: flex; flex-direction: column; text-decoration: none; color: inherit; min-width: 200px; flex: 1; }
.saved-search > a span { color: var(--muted); font-size: .85rem; }
.ss-tools { display: flex; align-items: center; gap: 14px; }
.ss-tools select.in { width: auto; padding: 4px 8px; margin-left: 6px; }
/* open house sign-in: logo, hosting agent and office details */
.oh-logo { display: block; height: 34px; width: auto; max-width: 100%; }
.oh-agent { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface, #fff); }
.oh-agent b { font-size: 1.15rem; }
.oh-agent-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.oh-agent-ini { display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; font-size: 1.4rem; }
.oh-agent-contact { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 1rem; }
.oh-office { margin-top: 10px; }
.oh-agent > div { min-width: 0; }
.oh-agent-contact span { overflow-wrap: anywhere; } .oh-agent-contact span:last-child { white-space: normal; }
.oh-office div + div { margin-top: 2px; }
.oh-office .num, .oh-agent-contact .num, .oh-agent-contact span { white-space: nowrap; }
.oh-office-logo { display: block; height: 44px; width: auto; max-width: 100%; margin-bottom: 6px; }
.oh-office-phone { font-weight: 600; font-size: 1.05rem; }
/* open house sign-in: never wider than the screen (no sideways scrolling on phones and tablets) */
body.kiosk { overflow-x: hidden; }
.oh-kiosk { max-width: 100vw; overflow-x: hidden; }
.oh-kiosk *, .oh-kiosk *::before, .oh-kiosk *::after { box-sizing: border-box; }
.oh-body > *, .oh-form > *, .oh-info, .oh-home { min-width: 0; }
.oh-kiosk img, .oh-kiosk svg { max-width: 100%; }
.oh-form .in { width: 100%; max-width: 100%; }
.oh-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.oh-top { flex-wrap: nowrap; }
.oh-brand { min-width: 0; }
.oh-logo { max-width: min(210px, 50vw); height: auto; max-height: 34px; }
/* computers and landscape tablets: everything fits on one screen, even with "Who is your agent?" showing */
@media (min-width: 900px) {
  .oh-kiosk { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
  .oh-body { height: 100%; min-height: 0; padding: clamp(10px, 2vh, 20px) 24px; gap: 24px; align-items: stretch; overflow: hidden; }
  .oh-home { gap: 10px; align-content: start; min-height: 0; }
  .oh-photo { aspect-ratio: auto; height: clamp(120px, 30vh, 320px); }
  .oh-info h1 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
  .oh-agent { margin-top: 10px; padding: 10px 12px; gap: 12px; }
  .oh-agent-photo { width: clamp(48px, 7vh, 64px); height: clamp(48px, 7vh, 64px); }
  .oh-office { margin-top: 8px; }
  .oh-office-logo { height: clamp(28px, 4.5vh, 40px); margin: 0 0 4px; max-width: 240px; }
  .oh-right { min-height: 0; display: flex; }
  .oh-form { gap: clamp(6px, 1.2vh, 12px); padding: clamp(12px, 2vh, 20px) 20px; width: 100%; align-content: start; overflow: auto; }
  .oh-form h2 { font-size: clamp(1.2rem, 2.6vh, 1.5rem); margin: 0; }
  .oh-form .f { gap: 3px; font-size: .85rem; }
  .oh-form .in { font-size: 1rem; padding: clamp(7px, 1.2vh, 12px) 12px; }
  .oh-seg legend { margin-bottom: 3px; font-size: .95rem; }
  .oh-seg span { padding: clamp(5px, .9vh, 9px) 16px; }
  .oh-form .consent { font-size: .72rem; line-height: 1.35; }
  .oh-go { padding: clamp(9px, 1.6vh, 14px); font-size: 1.1rem; }
  .oh-thanks { align-self: start; }
}
body.kiosk { margin: 0; }
@media (min-width: 900px) and (max-height: 760px) {
  .oh-form { gap: 6px; padding-top: 10px; padding-bottom: 10px; }
  .oh-form .consent { font-size: .68rem; line-height: 1.3; }
  .oh-seg legend { margin-bottom: 2px; }
  .oh-photo { height: clamp(110px, 26vh, 260px); }
}

/* ---------- market analytics (Landmark Market Report, area market pages, agents' market tool) ---------- */
.mk-links { display: flex; gap: 18px; flex-wrap: wrap; }
.mk-top { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin-bottom: 14px; }
.mk-top .mk-area-pick { min-width: 220px; }
.mk-top .mk-seg-pick { min-width: 170px; }
.mk-asof { margin-left: auto; }
.mk-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.mk-tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 2px; min-width: 0; }
.mk-tile b { font-family: var(--font-display); font-stretch: 112%; font-weight: 750; font-size: 1.45rem; line-height: 1.15; }
.mk-chg { font-weight: 650; white-space: nowrap; }
.mk-chg.up { color: #1d7a46; }
.mk-chg.down { color: var(--flag); }
.mk-row2 { display: flex; gap: 10px; flex-wrap: wrap; }
.mkt-controls { margin-bottom: 12px; }
.mk-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-top: 6px; }
.mk-legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 5px; }
.mk-body.mk-one { grid-template-columns: 220px minmax(0, 1fr); }
.mk-month-cmp .tbl td, .mk-month-cmp .tbl th { padding-block: 6px; }
.mk-tbl { font-size: .88rem; }
.mk-tbl .mk-sum td { background: var(--bg-alt, #f4f5fa); }
.mk-ytd { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.mk-ytd h3 { margin: 0 0 4px; }
.mk-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.mk-filters .f { min-width: 120px; }
.mk-filters .grow { flex: 1; min-width: 200px; }
.mk-kind-tabs { flex-wrap: wrap; }
@media (max-width: 900px) { .mk-ytd { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .mk-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-tile b { font-size: 1.2rem; }
  .mk-asof { margin-left: 0; width: 100%; }
  .mk-top .f { flex: 1; min-width: 0; }
  .mkt-controls .mkt-measure { display: grid; grid-template-columns: repeat(3, 1fr); }
  .mk-row2 { width: 100%; } .mk-row2 .seg { width: 100%; }
  .mk-body.mk-one { grid-template-columns: 1fr; }
  .mk-month-cmp { overflow-x: auto; }
}

/* ---------- CMA ---------- */
.cma-print-head { display: none; }
.cma-find { position: relative; max-width: 560px; margin-bottom: 12px; }
.cma-found { display: grid; gap: 4px; margin-top: 6px; }
.cma-found button { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 8px 10px; cursor: pointer; display: grid; }
.cma-found button:hover { border-color: var(--brand); }
.cma-subj { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cma-subj .f:first-child { grid-column: span 2; }
.cma-opts { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-top: 12px; }
.cma-tbl { font-size: .85rem; }
.cma-tbl td, .cma-tbl th { white-space: nowrap; }
.cma-adj { width: 84px; text-align: right; border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; font: inherit; background: var(--surface); }
.cma-adj::placeholder { color: var(--ink); opacity: .75; }
.cma-home { display: flex; gap: 8px; align-items: center; min-width: 200px; white-space: normal; }
.cma-home img, .cma-nopic { width: 64px; height: 44px; object-fit: cover; border-radius: 6px; flex: none; background: var(--line); }
.cma-off { opacity: .45; }
.cma-vals { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 10px; }
.cma-summary .mkt-val { margin: 4px 0 6px; }
.crm-card + .crm-card, #cmaOut .crm-card { margin-top: 14px; }
.print-only { display: none; }
@media print {
  body.crm-mode .no-print, body.crm-mode .crm-nav, body.crm-mode .crm-scope, body.crm-mode header, body.crm-mode footer, body.crm-mode .topbar,
  body.crm-mode .chat-btn, body.crm-mode .to-top, body.crm-mode #sampleBar, body.crm-mode .a11y-btn { display: none !important; }
  body.crm-mode .print-only { display: block; }
  body.crm-mode .cma-print-head { display: flex; gap: 16px; align-items: center; border-bottom: 3px solid var(--flag); padding-bottom: 10px; margin-bottom: 14px; }
  body.crm-mode .cma-print-head img { height: 44px; }
  body.crm-mode .crm, body.crm-mode .crm-main { display: block !important; margin: 0 !important; }
  body.crm-mode .crm-card { break-inside: avoid; border: 1px solid #ccc; box-shadow: none; }
  body.crm-mode .cma-adj { border: 0; padding: 0; width: auto; }
  body.crm-mode .cma-off { display: none; }
}

/* ---------- market pages: readable help text ---------- */
.mk-help { margin: .7em 0 0; font-size: .9rem; color: var(--muted); line-height: 1.45; }
.mk-sub { margin: -8px 0 16px; }
.mk-type { font-weight: 700; font-size: .85rem; color: var(--brand); }
.mk-perline { margin-top: 10px; }

/* ---------- tables that turn into cards on phones and tablets (no sideways scrolling) ---------- */
@media (max-width: 1000px) {
  .tbl-wrap:has(> .stack-sm), .mk-month-cmp { overflow-x: visible; }
  table.stack-sm, table.stack-sm tbody { display: block; width: 100%; }
  table.stack-sm thead { display: none; }
  table.stack-sm tr { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; margin-bottom: 10px; background: var(--surface); }
  table.stack-sm td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 5px 0 !important; border: 0 !important; text-align: right; white-space: normal !important; background: none !important; }
  table.stack-sm td:first-child { display: block; text-align: left; font-weight: 650; padding-bottom: 6px !important; border-bottom: 1px solid var(--line) !important; margin-bottom: 4px; }
  table.stack-sm td[data-label]::before { content: attr(data-label); color: var(--muted); font-weight: 400; text-align: left; flex: none; max-width: 55%; }
  table.stack-sm td.mk-nil, table.stack-sm td:empty { display: none; }
  table.stack-sm td.no-print[data-label] { display: flex; border-bottom: 0 !important; font-weight: 400; }
  .cma-tbl.stack-sm .cma-total { border-top: 1px solid var(--line) !important; margin-top: 4px; padding-top: 8px !important; font-size: 1.05rem; }
  .cma-home { min-width: 0; }
  .cma-adj { width: 110px; min-height: 36px; }
  .mk-filters .f, .mk-filters .grow { flex: 1 1 140px; min-width: 0; }
  .cma-subj .f:first-child { grid-column: 1 / -1; }
  .mkt-controls .mkt-measure { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); width: 100%; }
  .mkt-controls .mkt-measure button { padding-inline: 6px; font-size: .85rem; line-height: 1.2; }
  .mkt-controls .mkt-measure button span { display: block; }
  .crm-head { flex-wrap: wrap; }
}
@media (max-width: 760px) { .mk-top .mk-area-pick, .mk-top .mk-seg-pick { min-width: 0; } .cma-opts .f { flex: 1 1 120px; } .cma-opts .btn { width: 100%; } }

/* ---------- Website accounts (office admin) ---------- */
.acct-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.acct-tools #acctQ { flex: 1 1 220px; }
.acct-tools select { flex: 0 1 220px; }
.acct-tbl td { vertical-align: top; }

.signin-agent { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }

.danger-btn { color: var(--flag); border-color: var(--flag); }
.del-acct { border-top: 1px solid var(--line); }

/* saved searches set up or changed on the search page; agents' client searches */
.ss-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; margin: 0 0 14px; border-left: 4px solid var(--brand, #404EA8); }
.ss-client { margin: 0 0 16px; display: grid; gap: 12px; max-width: 640px; }
.ss-client details summary { cursor: pointer; color: var(--brand, #404EA8); font-weight: 600; }
.saved-search.ss-pending { background: var(--surface-2); border-radius: 8px; padding: 10px 12px; }
.crm-ss { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.crm-ss .warn { color: #9A5B00; }
.pro-addr { display: block; color: var(--muted); text-decoration: none; } .pro-addr:hover { text-decoration: underline; }
.sell-main { display: grid; gap: 18px; min-width: 0; align-content: start; }   /* Sell page: the estimate, then the agent form */

/* Computers, map view: the map fills the rest of the screen and stays put; only the list beside it scrolls.
   Full screen: the map covers the whole window and pins open the same swipeable cards as on phones. */
@media (min-width: 981px) {
  body.d-mapview { overflow: hidden; }
  body.d-mapview footer, body.d-mapview .to-top { display: none !important; }
  body.d-mapview .split.map-only { height: calc(100vh - var(--split-top, 220px) - 12px); align-items: stretch; }
  body.d-mapview .split.map-only .listcol { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 2px 8px 24px 2px; }
  body.d-mapview .split.map-only .mapbox { position: relative; top: auto; height: 100%; }
  body.d-mapview .split.map-only .map { height: 100%; }
  .map-fab[data-full] { display: grid; }
  body.d-full { overflow: hidden; }
  body.d-full .mast, body.d-full .sample-bar, body.d-full .topbar, body.d-full .results-bar, body.d-full footer, body.d-full .to-top, body.d-full .chat-btn, body.d-full .more-row { display: none !important; }
  body.d-full .split { position: fixed; inset: 0; z-index: 1200; display: block; margin: 0; height: auto; }
  body.d-full .split .listcol { display: none; }
  body.d-full .split .mapbox { display: block; position: absolute; inset: 0; height: auto; }
  body.d-full .map { height: 100% !important; border: 0; border-radius: 0; }
  body.d-full .map .pop { display: none !important; }
  body.d-full .map > svg { height: 100%; }
  body.d-full .search-top { position: fixed; top: 0; left: 0; right: 0; z-index: 1210; border: 0; padding-block: 12px 10px;
    background: linear-gradient(rgba(255,255,255,.94) 60%, rgba(255,255,255,0)); pointer-events: none; }
  body.d-full .search-top .wrap > * { pointer-events: auto; }
  body.d-full .map-tools { top: calc(var(--mmap-top, 120px) + 4px); left: 12px; }
  body.d-full .map-fabs { top: calc(var(--mmap-top, 120px) + 4px); }
  body.d-full .map-legend { top: auto; bottom: 14px; }
  body.d-full.m-cards-on .map-legend, body.d-full.m-cards-on .flood-note, body.d-full.m-cards-on .lines-note { display: none; }
  body.d-full .m-cards:not([hidden]) { display: block; position: absolute; left: 0; right: 0; bottom: 14px; z-index: 1205; }
  body.d-full .m-cards-top { display: flex; justify-content: space-between; align-items: center; padding: 0 16px 6px; }
  body.d-full .m-count { background: rgba(27,31,51,.78); color: #fff; font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
  body.d-full .m-count:empty { visibility: hidden; }
  body.d-full .m-cards-x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--surface); box-shadow: var(--shadow); font-size: 1.3rem; line-height: 1; cursor: pointer; }
  body.d-full .m-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 8px; scrollbar-width: thin; overscroll-behavior-x: contain; }
  body.d-full .mcard { flex: 0 0 360px; scroll-snap-align: center; background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: 0 8px 26px rgba(0,0,0,.28); color: var(--ink); position: relative; display: flex; flex-direction: column; }
  body.d-full .mc-link { display: block; text-decoration: none; color: inherit; }
  body.d-full .mc-ph { position: relative; height: 170px; overflow: hidden; background: var(--surface-2); }
  body.d-full .mc-ph svg, body.d-full .mc-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
  body.d-full .mc-ph .ours { top: 8px; font-size: .64rem; padding: 3px 6px; }
  body.d-full .mc-badges { position: absolute; left: 8px; top: 8px; display: flex; gap: 5px; flex-wrap: wrap; right: 120px; z-index: 2; }
  body.d-full .mb { font-size: .7rem; font-weight: 700; padding: 3px 7px; border-radius: 4px; background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
  body.d-full .mb.new { background: #1d7a46; color: #fff; } body.d-full .mb.cut { background: #c81e25; color: #fff; } body.d-full .mb.oh { background: var(--brand); color: #fff; }
  body.d-full .mb.st { background: #a15c00; color: #fff; } body.d-full .mb.bud { background: #fff; color: #1d7a46; }
  body.d-full .mc-b { padding: 10px 14px 6px; display: grid; gap: 3px; min-width: 0; }
  body.d-full .mc-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  body.d-full .mc-top .price { font-size: 1.4rem; }
  body.d-full .mc-pm { font-size: .82rem; color: var(--muted); font-weight: 600; }
  body.d-full .mc-f { display: flex; gap: 12px; flex-wrap: wrap; font-size: .92rem; } body.d-full .mc-f b { font-weight: 750; }
  body.d-full .mc-b .addr { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.d-full .mc-x { font-size: .8rem; color: var(--muted); }
  body.d-full .mc-b .courtesy { margin-top: 1px; font-size: .68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.d-full .mc-acts { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; padding: 6px 14px 12px; }
  body.d-full .mc-acts .btn { justify-content: center; }
  body.d-full .mcard .fav { top: 8px; right: 8px; bottom: auto; width: 34px; height: 34px; position: absolute; }
  body.d-full .mcard .ours { left: auto; right: 50px; }
}
.map-fab[data-full] { display: none; }   /* phones: the map is already full screen */
@media (min-width: 981px) { .map-fab[data-full] { display: grid; } }
.provided-by { font-size: .82rem; margin: 8px 2px 0; }   /* listing pages: right under the main photo */
/* Agent center > Off-market properties */
.pm-filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 12px; align-items: end; }
.pm-filters .wide { grid-column: 1 / -1; }
.pm-pair { display: flex; gap: 6px; }
.pm-pair .in { min-width: 0; flex: 1; }
.pm-btns { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pm-map { height: 360px; border-radius: 10px; overflow: hidden; margin-bottom: 12px; border: 1px solid var(--line); }
.pm-list { display: grid; }
.pm-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr) minmax(0, 1.3fr); gap: 4px 14px; padding: 10px 6px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; align-items: center; }
.pm-row:first-child { border-top: 0; }
.pm-row:hover { background: color-mix(in srgb, var(--navy, #2b3990) 5%, transparent); }
.pm-row > span { display: grid; gap: 2px; min-width: 0; }
.pm-row b, .pm-owner > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-facts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 16px; }
.pm-facts-grid > div { display: grid; gap: 2px; }
@media (max-width: 760px) { .pm-row { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .pm-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pm-filters .chk { grid-column: 1 / -1; } }
.pm-edited { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--flag, #c8202f); border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; margin-left: 4px; vertical-align: 2px; cursor: help; }
.pm-val { display: grid; gap: 2px; }
.pm-val b { font-size: 1.8rem; color: var(--navy, #2b3990); }
.map-note { transition: opacity .4s ease; }
.map-note.gone { opacity: 0; }
/* listing flags: the map legend's color, white text */
.tag.flagged { color: #fff; }
.mb.flagged, body.d-full .mb.flagged { color: #fff; }
/* full screen map cards: the selected one is outlined; drag with the mouse */
.mcard.hot::after { content: ""; position: absolute; inset: 0; border: 3px solid var(--flag); border-radius: inherit; pointer-events: none; z-index: 5; }   /* drawn over the photo too */
body.d-full #mTrack { cursor: grab; }
#mTrack.dragging { cursor: grabbing; scroll-snap-type: none !important; scroll-behavior: auto !important; user-select: none; }
#mTrack.dragging a { pointer-events: none; }
body.d-full .m-track { will-change: scroll-position; }
body.d-full .mcard { contain: layout paint; }
/* full screen map: the filters panel (and its dimmed backdrop) open above the map */
body.d-full .fpanel-back { z-index: 1290; }
body.d-full .fpanel { z-index: 1300; }
/* map cards: beds, baths, sq ft and acres on one line (the text shrinks a little to fit) */
.mc-f, body.d-full .mc-f { flex-wrap: nowrap !important; overflow: hidden; gap: clamp(6px, 2.5vw, 12px); }
.mc-f > span { white-space: nowrap; }
.facts-row.no-ico .fi, .mc-f.no-ico .fi { display: none; }
.facts-row { column-gap: max(6px, clamp(4px, 2.6cqi, 8px)); }
/* listing flags: a white border so they stand out on any photo */
.tag.flagged, .mb.flagged, body.d-full .mb.flagged { border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.ours { border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); }   /* the "Landmark" flag matches the status flags */
.ours { text-transform: uppercase; letter-spacing: .05em; }   /* LANDMARK, like the status flags */
/* the LANDMARK flag is our logo, the same height as the status flag beside it, with the same white border */
.ours.ours-logo { padding: 0; gap: 0; background: #404FAA; overflow: hidden; }
.ours.ours-logo img { display: block; height: 25.8px; width: auto; }   /* same height as the status flag */
.mc-ph .ours.ours-logo, body.d-full .mc-ph .ours.ours-logo { padding: 0; }
.mc-ph .ours.ours-logo img, body.d-full .mc-ph .ours.ours-logo img { height: 23.4px; }   /* map cards: same height as their status flag */
.mc-badges, body.d-full .mc-badges { right: 190px; }   /* room for the logo flag and the heart */
/* no LANDMARK logo flag on the listing page photos (it stays on the listing cards) */
.g-badges .ours { display: none; }
/* computers, search page (gallery and map view): a compact top. The search box and filter buttons share one row,
   and the results line is slimmer, so more listings (and a bigger map) fit on the screen. */
@media (min-width: 981px) {
  .search-top { padding-block: 8px; }
  .search-top > .wrap { display: grid; grid-template-columns: minmax(280px, 1fr) auto; column-gap: 14px; align-items: center; }
  .search-top .fbar { grid-column: 1; margin: 0; }
  .search-top .fbar .in { height: 42px; }
  .search-top .fbar .fgo { height: 42px; padding-block: 0; }
  .search-top .fpills { grid-column: 2; margin-top: 0; }
  .search-top .fpill { height: 38px; padding-block: 0; }
  .search-top .fchips { grid-column: 1 / -1; margin: 6px 0 0; }
  .res-wrap .results-bar { padding-block: 6px; flex-wrap: nowrap; }
  /* one line on any laptop: a long search description gets cut short ("…") instead of pushing the buttons to a second row */
  .res-wrap .results-bar > div:first-child { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex: 1 1 auto; }
  .res-wrap .results-bar > div:last-child { flex: none; flex-wrap: nowrap !important; }
  /* the search description is dropped; the filter tags sit on this line instead (they wrap if there are lots) */
  .res-wrap .results-bar .eyebrow, .search-top .fchips { display: none; }
  .res-wrap .results-bar .rb-chips { display: flex; margin: 0; min-width: 0; flex: 0 1 auto; }
  .res-wrap .results-bar > div:first-child { align-items: center; }
  .res-wrap .results-bar h2 { font-size: 1.2rem; margin: 0; white-space: nowrap; flex: none; }
  .res-wrap .results-bar #fsort, .res-wrap .results-bar .seg button, .res-wrap .results-bar .rb-pill { height: 36px; min-height: 36px; padding-block: 0; font-size: .9rem; }
  .res-wrap .results-bar .rb-pill .lg { display: none; } .res-wrap .results-bar .rb-pill .sm { display: inline; }
}
@media (min-width: 981px) { body.d-mapview .topbar { display: none; } }   /* map view: the address/phone bar (also in the footer) gives its room to the map */
/* Ask Landmark chat bot (inside the Chat with us window) */
.bot { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.bot[hidden] { display: none; }
.bot-log:empty { display: flex; }
.bot-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; background: var(--bg); }
.bot-chips:empty { display: none; }
.bot-chips .chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .84rem; cursor: pointer; }
.bot-chips .chip:hover { border-color: var(--brand); color: var(--brand); }
.bot-foot { display: flex; justify-content: space-between; gap: 10px; padding: 0 14px 10px; background: var(--surface); font-size: .86rem; }
.bot-send { border-top: 1px solid var(--line); }
.bot-res { align-self: stretch; display: grid; gap: 6px; margin: 2px 0 6px; }
.bot-res p { margin: 0; font-size: .84rem; color: var(--muted); }
.bot-res .btn { justify-self: start; }
.bot-card { display: grid; grid-template-columns: 84px 1fr; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; color: var(--ink); text-decoration: none; }
.bot-card:hover { border-color: var(--brand); }
.bc-ph { display: block; width: 84px; height: 64px; overflow: hidden; background: var(--surface-2); }
.bc-ph img, .bc-ph svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-tx { display: grid; gap: 1px; min-width: 0; padding-right: 8px; font-size: .82rem; }
.bc-tx b { font-size: .98rem; }
.bc-ad { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bot-agent-btn { align-self: flex-start; }
.bot-back { justify-self: start; font-size: .86rem; }
.bot-typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.bot-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: botDot 1s infinite ease-in-out; }
.bot-typing i:nth-child(2) { animation-delay: .15s; } .bot-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes botDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.cm.agent { display: block; }   /* the agent-card style (.agent: a 64px grid) was squeezing chat replies into a narrow column */
.bot-foot { padding-top: 2px; }
.chat-send textarea { overflow-y: hidden; }   /* no scroll arrows in the one-line message box */
/* Mark: tour form and agent card in the chat */
.bot-tour { align-self: stretch; display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 2px 0 6px; }
.bot-tour .bt-title { font-size: .98rem; }
.bot-tour .f { font-size: .82rem; }
.bot-tour .in { font-size: .9rem; }
.bot-tour .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bot-tour .consent { font-size: .72rem; color: var(--muted); display: flex; gap: 6px; align-items: start; }
.bot-ok { color: var(--ink) !important; font-weight: 650; }
.bot-agentcard { align-self: stretch; display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin: 2px 0 6px; }
.ba-tx { display: grid; gap: 2px; min-width: 0; font-size: .86rem; }
.ba-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ba-btns .btn { padding-block: 6px; }
.bot-backbar { padding: 6px 14px; border-bottom: 1px solid var(--line); background: var(--surface); font-size: .88rem; }
.bot-backbar[hidden], .bot-resume[hidden] { display: none; }
.bot-backbar .linkbtn { padding: 2px 0; }
.bot-resume { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: .84rem; }
.bot-resume.new { background: #fff4d6; }
.bot-resume .linkbtn { padding: 0; margin-left: 12px; }
.bot-gate { align-self: stretch; display: grid; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.bot-gate p { margin: 0; font-size: .9rem; }
.bot-send[hidden] { display: none; }
.ask-by { display: block; font-size: .72rem; color: var(--muted); margin-bottom: 2px; }
.ask-a .bot-typing { margin: 0; }
/* Ask Landmark button: a little life while Mark is on. Just the sparkles twinkle (no hop, no ring). It stops while the chat is open, and stays still with the site's or the device's reduce-motion setting. */
@media (prefers-reduced-motion: no-preference) {
  .chat-btn.chat-ai[aria-expanded="false"] .spk { transform-box: fill-box; transform-origin: center; animation: markTwinkle 1.8s ease-in-out infinite; }
  .chat-btn.chat-ai[aria-expanded="false"] .spk2 { animation-delay: .9s; }
  .chat-btn.chat-ai:hover { animation-play-state: paused; }
}
@keyframes markTwinkle { 0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; } 50% { transform: scale(.5) rotate(45deg); opacity: .55; } }
.bc-mi { font-weight: 500; color: var(--muted); font-size: .76rem; margin-left: 4px; }
/* ---------- Mark's window: a little more pizzazz (only while Mark is showing; the agent chat keeps its plain look) ---------- */
.chat-panel:not(.mark-mode) .mark-av { display: none; }
.chat-panel.mark-mode { border: 0; border-radius: 20px; box-shadow: 0 24px 60px rgba(38,47,110,.32), 0 2px 8px rgba(38,47,110,.12); }
@media (max-width: 640px) { .chat-panel.mark-mode { border-radius: 0; } }
.chat-panel.mark-mode .chat-head { position: relative; overflow: hidden; align-items: center; gap: 12px; padding: 16px 16px 18px;
  background: radial-gradient(120% 140% at 100% 0%, #6d7fe0 0%, transparent 55%), linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 70%); }
.chat-panel.mark-mode .chat-head::after { content: ""; position: absolute; right: 54px; top: 10px; width: 70px; height: 70px; opacity: .14; pointer-events: none;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.2 5.8L20 10l-5.8 2.2L12 18l-2.2-5.8L4 10l5.8-2.2z' fill='white'/%3E%3C/svg%3E"); }
.chat-panel.mark-mode .chat-head > div { flex: 1; min-width: 0; }
.mark-av { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--brand); display: grid; place-items: center; box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.mark-av svg { width: 24px; height: 24px; }
.chat-panel.mark-mode .chat-head h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.mark-pill { font-size: .66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35); padding: 2px 8px; border-radius: 999px; }
.mark-online { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; margin-right: 6px; box-shadow: 0 0 0 2px rgba(61,220,132,.3); vertical-align: 1px; }
.chat-panel.mark-mode .chat-head p { font-size: .82rem; opacity: .95; }
.chat-panel.mark-mode .chat-x { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.15); display: grid; place-items: center; font-size: 1.3rem; position: relative; z-index: 1; }
.chat-panel.mark-mode .chat-x:hover { background: rgba(255,255,255,.28); }
.mark-mode .bot-log { background: linear-gradient(180deg, #f3f5fd 0%, #fbfbfe 100%); padding: 16px 14px; gap: 8px; }
.mark-mode .bot-log .cm { border-radius: 18px; line-height: 1.45; }
.mark-mode .bot-log .cm.agent { background: #fff; border: 0; box-shadow: 0 2px 10px rgba(38,47,110,.08); border-bottom-left-radius: 6px; }
.mark-mode .bot-log .cm.visitor { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%); box-shadow: 0 4px 12px rgba(63,79,168,.25); border-bottom-right-radius: 6px; }
.mark-mode .bot-log .cm.mark-hello { font-size: 1rem; padding: 12px 14px; border-left: 3px solid var(--flag); }
.mark-mode .bot-log .cm-who { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand); }
.mark-mode .bot-log .cm-who::before { content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none;
  background: var(--brand) no-repeat center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.2 5.8L20 10l-5.8 2.2L12 18l-2.2-5.8L4 10l5.8-2.2z' fill='white'/%3E%3C/svg%3E"); }
.mark-mode .bot-chips { background: #fbfbfe; padding: 10px 14px 4px; gap: 8px; }
.mark-mode .bot-chips .chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--brand-deep); border: 1px solid #cfd5f0; font-weight: 600; box-shadow: 0 1px 3px rgba(38,47,110,.06); transition: transform .15s, box-shadow .15s, background .15s; }
.mark-mode .bot-chips .chip svg { color: var(--flag); }
.mark-mode .bot-chips .chip:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(38,47,110,.12); background: #f3f5fd; }
.mark-mode .bot-send { border-top: 0; padding: 10px 12px 6px; background: #fbfbfe; }
.mark-mode .bot-send .in { border-radius: 24px; padding-left: 16px; border: 1.5px solid #cfd5f0; background: #fff; box-shadow: 0 2px 8px rgba(38,47,110,.06); }
.mark-mode .bot-send .in:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(63,79,168,.15); }
.bot-go { width: 44px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--flag), #b81c23); border: 0; box-shadow: 0 4px 12px rgba(227,38,46,.3); }
.bot-go:hover { filter: brightness(1.06); }
.mark-mode .bot-foot { background: #fbfbfe; padding: 4px 16px 12px; font-size: .82rem; }
.mark-mode .bot-card { border: 0; border-radius: 14px; box-shadow: 0 2px 10px rgba(38,47,110,.08); transition: transform .15s, box-shadow .15s; }
.mark-mode .bot-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(38,47,110,.15); }
.mark-mode .bot-card b { color: var(--brand-deep); }
.mark-mode .bc-ph { height: 70px; }
.mark-mode .bot-res .btn { border-radius: 999px; }
.mark-mode .bot-typing i { background: var(--brand); }
.mark-mode .bot-typing i { animation-name: markDot; }
@keyframes markDot { 0%, 80%, 100% { opacity: .35; transform: translateY(0) scale(.85); } 40% { opacity: 1; transform: translateY(-4px) scale(1); } }
.mark-mode .bot-tour, .mark-mode .bot-agentcard, .mark-mode .bot-gate { border: 0; border-radius: 16px; box-shadow: 0 2px 12px rgba(38,47,110,.1); }
.mark-mode .bot-resume { background: #eef1ff; }
@media (prefers-reduced-motion: no-preference) {
  /* opening: the window springs up from the button, then Mark's avatar pops in with a spin, the header slides in,
     and the greeting and suggestions float up one after another. Closing shrinks it back toward the button. */
  .chat-panel.mark-mode:not([hidden]) { animation: markIn .5s cubic-bezier(.34,1.45,.64,1); transform-origin: calc(100% - 40px) 100%; }
  .chat-panel.mark-mode.mark-closing { animation: markOut .2s ease-in forwards; transform-origin: calc(100% - 40px) 100%; }
  .chat-panel.mark-mode:not([hidden]) .mark-av { animation: markAv .6s cubic-bezier(.34,1.56,.64,1) .12s both; }
  .chat-panel.mark-mode:not([hidden]) .chat-head > div { animation: markSlide .45s ease-out .18s both; }
  .chat-panel.mark-mode:not([hidden]) .chat-head::after { animation: markGlint 2.4s ease-in-out .3s infinite; }
  .chat-panel.mark-mode:not([hidden]) .bot-chips .chip { animation: markPop .35s ease-out both; }
  .chat-panel.mark-mode:not([hidden]) .bot-chips .chip:nth-child(1) { animation-delay: .38s; }
  .chat-panel.mark-mode:not([hidden]) .bot-chips .chip:nth-child(2) { animation-delay: .46s; }
  .chat-panel.mark-mode:not([hidden]) .bot-chips .chip:nth-child(3) { animation-delay: .54s; }
  .chat-panel.mark-mode:not([hidden]) .bot-chips .chip:nth-child(4) { animation-delay: .62s; }
  .chat-panel.mark-mode:not([hidden]) .bot-send { animation: markPop .4s ease-out .3s both; }
  .mark-mode .bot-log .cm, .mark-mode .bot-res, .mark-mode .bot-agentcard, .mark-mode .bot-tour { animation: markPop .25s ease-out both; }
}
@keyframes markIn { 0% { opacity: 0; transform: translateY(30px) scale(.6); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes markOut { to { opacity: 0; transform: translateY(20px) scale(.75); } }
@keyframes markAv { from { opacity: 0; transform: scale(.3) rotate(-120deg); } to { opacity: 1; transform: none; } }
@keyframes markSlide { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes markGlint { 0%, 100% { opacity: .1; transform: scale(.9) rotate(0deg); } 50% { opacity: .22; transform: scale(1.08) rotate(20deg); } }
@keyframes markPop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
html.a11y-still .chat-panel.mark-mode, html.a11y-still .mark-mode * { animation: none !important; }
.chat-panel.mark-mode, .mark-mode .bot { background: #fbfbfe; }
/* ---------- AI search bar (Site features > AI search bar): Mark's sparkle look in the search boxes ---------- */
body.ai-search #hq, body.ai-search #fq {
  padding-left: 44px; border: 2px solid transparent; border-radius: 14px;
  background: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(110deg, var(--brand-deep), var(--brand) 40%, #8f9cf0 60%, var(--flag)) border-box;
  background-size: auto, 100% 100%;
  box-shadow: 0 6px 18px rgba(63,79,168,.14);
  transition: box-shadow .2s;
}
/* the sparkles: a big blue one and a little red one that twinkle in turn */
body.ai-search .in-wrap:has(> #hq)::before, body.ai-search .in-wrap:has(> #fq)::before,
body.ai-search .in-wrap:has(> #hq)::after, body.ai-search .in-wrap:has(> #fq)::after {
  content: ""; position: absolute; pointer-events: none; z-index: 1; background: no-repeat center / contain;
}
body.ai-search .in-wrap:has(> #hq)::before, body.ai-search .in-wrap:has(> #fq)::before {
  left: 13px; top: 50%; width: 17px; height: 17px; margin-top: -9px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.2 5.8L20 10l-5.8 2.2L12 18l-2.2-5.8L4 10l5.8-2.2z' fill='%233f4fa8'/%3E%3C/svg%3E");
}
body.ai-search .in-wrap:has(> #hq)::after, body.ai-search .in-wrap:has(> #fq)::after {
  left: 26px; top: 50%; width: 8px; height: 8px; margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.2 5.8L20 10l-5.8 2.2L12 18l-2.2-5.8L4 10l5.8-2.2z' fill='%23e3262e'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: no-preference) {
  body.ai-search .in-wrap:has(> #hq)::before, body.ai-search .in-wrap:has(> #fq)::before { animation: markTwinkle 2.2s ease-in-out infinite; }
  body.ai-search .in-wrap:has(> #hq)::after, body.ai-search .in-wrap:has(> #fq)::after { animation: markTwinkle 2.2s ease-in-out 1.1s infinite; }
}
body.ai-search #hq:focus, body.ai-search #fq:focus { outline: none; box-shadow: 0 0 0 4px rgba(63,79,168,.16), 0 8px 22px rgba(63,79,168,.18); }
body.ai-search #hq::placeholder, body.ai-search #fq::placeholder { color: #6a6f8e; }
/* while Mark reads a search: the border shimmers and the sparkles twinkle faster */
@media (prefers-reduced-motion: no-preference) {
  body.ai-search.ai-thinking #hq, body.ai-search.ai-thinking #fq { background-size: auto, 300% 100%; animation: aiShimmer 1.2s linear infinite; }
  body.ai-search.ai-thinking .in-wrap:has(> #hq)::before, body.ai-search.ai-thinking .in-wrap:has(> #fq)::before,
  body.ai-search.ai-thinking .in-wrap:has(> #hq)::after, body.ai-search.ai-thinking .in-wrap:has(> #fq)::after { animation-duration: .8s; }
}
@keyframes aiShimmer { from { background-position: 0 0, 0% 0; } to { background-position: 0 0, 300% 0; } }
body.ai-search.ai-thinking .search-top .fgo, body.ai-search.ai-thinking #hqGo { opacity: .7; }
.mark-use { width: 100%; border-collapse: collapse; font-size: .92rem; }
.mark-use th, .mark-use td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; }
.mark-use th[scope="row"], .mark-use thead th:first-child { text-align: left; font-weight: 600; }
.mark-use thead th { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
/* ---------- Weekly Market animation: the boxes rise in one after another, the numbers count up (app.js animateMarket),
   a little "live" dot pulses in the tab, and a shine sweeps across a box when you point at it ---------- */
.mkt-live { position: relative; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--flag); margin-right: 8px; vertical-align: 2px; }
.mkt-live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(227,38,46,.5); opacity: 0; }
.market.checker > a { position: relative; overflow: hidden; }
.market.checker > a::after { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-120%);
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); }
@media (prefers-reduced-motion: no-preference) {
  .market.checker:not(.mkt-in) > a { opacity: 0; transform: translateY(18px); }
  .market.checker.mkt-in > a { animation: mktRise .55s cubic-bezier(.2,.9,.3,1.2) both; }
  .market.checker.mkt-in > a:nth-child(2) { animation-delay: .11s; }
  .market.checker.mkt-in > a:nth-child(3) { animation-delay: .22s; }
  .market.checker.mkt-in > a:nth-child(4) { animation-delay: .33s; }
  .market.checker > a:hover::after { animation: mktShine .7s ease-out; }
  .market.checker > a b { transition: transform .2s; display: inline-block; }
  .market.checker > a:hover b { transform: translateY(-2px) scale(1.04); }
  .mkt-live::after { animation: ringPulse 2s ease-out infinite; }
}
@keyframes mktRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes mktShine { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@keyframes mktPulse { 0% { box-shadow: 0 0 0 0 rgba(227,38,46,.5); } 70% { box-shadow: 0 0 0 7px rgba(227,38,46,0); } 100% { box-shadow: 0 0 0 0 rgba(227,38,46,0); } }
html.a11y-still .market.checker > a { opacity: 1 !important; transform: none !important; }
/* ---------- Weekly Market: more pizzazz. Rich blue and red gradients, a big faint icon in each box, bigger numbers,
   and a "View →" that slides in when you point at a box ---------- */
.market-wrap .market.checker { border-radius: 16px; overflow: hidden; box-shadow: 0 14px 34px rgba(27,31,51,.22); }
.market.checker > a { background: linear-gradient(140deg, #5162c9 0%, var(--brand) 45%, var(--brand-deep) 100%); padding: 18px 20px 16px; min-height: 104px; align-content: start; }
.market.checker > a.alt { background: linear-gradient(140deg, #f04a50 0%, #d42a31 45%, #9e171d 100%); }
.market.checker > a:hover, .market.checker > a.alt:hover { filter: brightness(1.08); }
.market.checker b { font-size: 2.3rem; color: #fff; letter-spacing: -.01em; text-shadow: 0 2px 10px rgba(0,0,0,.18); }
.market.checker span { color: rgba(255,255,255,.95); }
.mkt-ic { position: absolute; right: 12px; bottom: 8px; width: 58px; height: 58px; color: #fff; opacity: .16; pointer-events: none; transition: transform .35s, opacity .35s; }
.market.checker > a:hover .mkt-ic { opacity: .26; transform: rotate(-8deg) scale(1.08); }
.mkt-go { position: absolute; right: 14px; top: 14px; font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff;
  display: inline-flex; align-items: center; gap: 4px; opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s; }
.market.checker > a:hover .mkt-go, .market.checker > a:focus-visible .mkt-go { opacity: .95; transform: none; }
.market-tab { box-shadow: 0 -4px 14px rgba(27,31,51,.12); }
@media (max-width: 720px) { .market.checker b { font-size: 1.9rem; } .mkt-ic { width: 44px; height: 44px; } .market.checker > a { min-height: 92px; padding: 14px 14px 12px; } .mkt-go { display: none; } }

/* ---------- Ask Landmark on listing pages: Mark's look ---------- */
.ask.ask-fancy { border: 0; border-radius: 20px; padding: 0; overflow: hidden; gap: 0; background: linear-gradient(180deg, #f3f5fd 0%, #fbfbfe 100%);
  box-shadow: 0 14px 40px rgba(38,47,110,.16), 0 1px 3px rgba(38,47,110,.08); }
.ask-fancy .ask-head { position: relative; padding: 16px 18px; color: #fff; gap: 14px;
  background: radial-gradient(120% 160% at 100% 0%, #6d7fe0 0%, transparent 55%), linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 70%); }
.ask-fancy .ask-head::after { content: ""; position: absolute; right: 90px; top: 8px; width: 64px; height: 64px; opacity: .13; pointer-events: none;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.2 5.8L20 10l-5.8 2.2L12 18l-2.2-5.8L4 10l5.8-2.2z' fill='white'/%3E%3C/svg%3E"); }
.ask-fancy .ask-head h2 { color: #fff; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ask-fancy .ask-head .meta { color: rgba(255,255,255,.92); }
.ask-fancy .ask-ico { width: 46px; height: 46px; background: #fff; color: var(--brand); box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.ask-fancy .ask-clear { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); color: #fff; position: relative; z-index: 1; }
.ask-fancy .ask-clear:hover { background: rgba(255,255,255,.28); color: #fff; border-color: #fff; }
.ask-fancy .ask-log { padding: 14px 18px 4px; gap: 10px; }
.ask-fancy .ask-q { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%); border-radius: 18px 18px 6px 18px; padding: 9px 14px; box-shadow: 0 4px 12px rgba(63,79,168,.22); }
.ask-fancy .ask-a { background: #fff; border-radius: 18px 18px 18px 6px; padding: 11px 14px; box-shadow: 0 2px 10px rgba(38,47,110,.08); line-height: 1.45; }
.ask-fancy .ask-by { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand); margin-bottom: 4px; }
.ask-fancy .ask-by::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--brand) no-repeat center/11px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.2 5.8L20 10l-5.8 2.2L12 18l-2.2-5.8L4 10l5.8-2.2z' fill='white'/%3E%3C/svg%3E"); }
.ask-fancy .ask-acts .btn { border-radius: 999px; }
.ask-fancy .ask-chips { padding: 12px 18px 4px; gap: 8px; }
.ask-fancy .ask-chips .chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--brand-deep); border: 1px solid #cfd5f0; font-weight: 600;
  box-shadow: 0 1px 3px rgba(38,47,110,.06); transition: transform .15s, box-shadow .15s, background .15s; }
.ask-fancy .ask-chips .chip svg { color: var(--flag); }
.ask-fancy .ask-chips .chip:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(38,47,110,.12); background: #f3f5fd; color: var(--brand-deep); }
.ask-fancy .ask-form { padding: 10px 18px 6px; align-items: center; }
.ask-fancy .ask-form .in { border: 2px solid transparent; border-radius: 24px; padding-left: 16px;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(110deg, var(--brand-deep), var(--brand) 40%, #8f9cf0 60%, var(--flag)) border-box; box-shadow: 0 4px 12px rgba(38,47,110,.08); }
.ask-fancy .ask-form .in:focus { outline: none; box-shadow: 0 0 0 4px rgba(63,79,168,.15); }
.ask-go { width: 46px; height: 46px; padding: 0; border-radius: 50%; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, var(--flag), #b81c23); border: 0; box-shadow: 0 4px 12px rgba(227,38,46,.3); }
.ask-go-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ask-fancy > .courtesy { padding: 4px 18px 16px; }
@media (prefers-reduced-motion: no-preference) {
  .ask-mark .ask-ico .spk { transform-box: fill-box; transform-origin: center; animation: markTwinkle 1.8s ease-in-out infinite; }
  .ask-mark .ask-ico .spk2 { animation-delay: .9s; }
  .ask-fancy:not(.ask-in) .ask-chips .chip { opacity: 0; transform: translateY(8px); }
  .ask-fancy.ask-in .ask-chips .chip { animation: markPop .35s ease-out both; }
  .ask-fancy.ask-in .ask-chips .chip:nth-child(2) { animation-delay: .07s; } .ask-fancy.ask-in .ask-chips .chip:nth-child(3) { animation-delay: .14s; }
  .ask-fancy.ask-in .ask-chips .chip:nth-child(4) { animation-delay: .21s; } .ask-fancy.ask-in .ask-chips .chip:nth-child(5) { animation-delay: .28s; }
  .ask-fancy.ask-in .ask-chips .chip:nth-child(n+6) { animation-delay: .35s; }
  .ask-fancy .ask-q, .ask-fancy .ask-a { animation: markPop .25s ease-out both; }
  .ask-fancy.ask-in .ask-head::after { animation: markGlint 2.4s ease-in-out infinite; }
}
html.a11y-still .ask-fancy .ask-chips .chip { opacity: 1 !important; transform: none !important; }
@media (max-width: 640px) {
  .ask-fancy .ask-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; margin-right: 0; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .ask-fancy .ask-chips::-webkit-scrollbar { display: none; }
  .ask-fancy .ask-chips .chip { flex: none; white-space: nowrap; }
  .ask-fancy .ask-head { padding: 14px; gap: 10px; } .ask-fancy .ask-ico { width: 40px; height: 40px; }
  .ask-fancy .ask-log, .ask-fancy .ask-form { padding-inline: 14px; } .ask-fancy .ask-chips { padding-inline: 14px; } .ask-fancy > .courtesy { padding-inline: 14px; }
}
.ask-fancy .ask-head p.meta { display: block; }
/* ---------- Landmark Value Estimate: more pizzazz. A blue gradient header with the big number, a thicker range bar
   that fills in (with a pulsing estimate dot), a color-coded note, and a red call-to-action ---------- */
.avm.avm-fancy { border: 0; border-radius: 20px; padding: 0; overflow: hidden; gap: 0; background: #fff; box-shadow: 0 14px 40px rgba(38,47,110,.16), 0 1px 3px rgba(38,47,110,.08); }
.avm-fancy > * { margin-inline: 22px; }
.avm-fancy .avm-head { margin: 0; padding: 20px 22px 18px; color: #fff; align-items: center; gap: 14px; position: relative; overflow: hidden;
  background: radial-gradient(120% 160% at 100% 0%, #6d7fe0 0%, transparent 55%), linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 70%); }
.avm-fancy .avm-head::after { content: ""; position: absolute; right: -20px; bottom: -36px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.07); pointer-events: none; }
.avm-ic { flex: none; width: 50px; height: 50px; border-radius: 14px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; color: #fff; }
.avm-ic svg { width: 28px; height: 28px; }
.avm-fancy .avm-head .eyebrow { color: rgba(255,255,255,.85); }
.avm-fancy .avm-val { color: #fff; font-size: clamp(2.2rem, 5.5vw, 3rem); text-shadow: 0 2px 12px rgba(0,0,0,.2); }
.avm-fancy .avm-head .meta { color: rgba(255,255,255,.9); }
.avm-fancy .conf { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.35); color: #fff; position: relative; z-index: 1; }
.avm-fancy .conf i b { border-color: #fff; } .avm-fancy .conf i b.on { background: #fff; }
.avm-fancy .avm-scale { margin-top: 22px; height: 80px; }
.avm-fancy .avm-track { top: 32px; height: 12px; border-radius: 6px; background: #eceef7; }
.avm-fancy .avm-band { top: 32px; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #8f9cf0, var(--brand) 50%, #8f9cf0); box-shadow: 0 2px 8px rgba(63,79,168,.3); }
.avm-fancy .avm-dot { top: 26px; width: 24px; height: 24px; margin-left: -12px; border: 4px solid #fff; box-shadow: 0 2px 8px rgba(38,47,110,.35), 0 0 0 0 rgba(63,79,168,.45); }
.avm-fancy .avm-list { top: 20px; height: 36px; border-left: 3px dashed var(--flag); }
.avm-fancy .avm-lab.bot { top: 58px; }
.avm-fancy .avm-lab.top b { color: var(--brand-deep); }
.avm-fancy .avm-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: #f3f5fd; font-size: .95rem; }
.avm-note-ic { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--brand); margin-top: -1px; }
.avm-fancy .avm-note.avm-even { background: #ecf8f1; } .avm-even .avm-note-ic { background: #1f9d55; }
.avm-fancy .avm-note.avm-above { background: #fdeeee; } .avm-above .avm-note-ic { background: var(--flag); }
.avm-fancy .avm-note.avm-below { background: #eef1ff; } .avm-below .avm-note-ic { background: var(--brand); }
.avm-fancy details { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.avm-fancy summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #f3f5fd; border: 1px solid #cfd5f0; color: var(--brand-deep); }
.avm-fancy summary::-webkit-details-marker { display: none; }
.avm-fancy summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.avm-fancy details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.avm-fancy summary:hover { background: #e8ecfb; }
.avm-fancy .avm-fine { margin-top: 14px; }
.avm-fancy > div:last-child { margin-top: 14px; margin-bottom: 22px; }
.avm-fancy > .avm-fine:last-child { margin-bottom: 22px; }
.avm-cta { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 11px 20px; color: #fff; border: 0; background: linear-gradient(135deg, var(--flag), #b81c23); box-shadow: 0 6px 16px rgba(227,38,46,.3); transition: transform .15s, box-shadow .15s; }
.avm-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(227,38,46,.35); color: #fff; }
.avm-cta svg { transition: transform .15s; } .avm-cta:hover svg { transform: translateX(3px); }
@media (prefers-reduced-motion: no-preference) {
  .avm-fancy:not(.avm-in) .avm-band { transform: scaleX(0); }
  .avm-fancy:not(.avm-in) .avm-dot, .avm-fancy:not(.avm-in) .avm-lab, .avm-fancy:not(.avm-in) .avm-list { opacity: 0; }
  .avm-fancy.avm-in .avm-band { animation: avmBand .8s cubic-bezier(.2,.9,.3,1) .1s both; transform-origin: center; }
  .avm-fancy.avm-in .avm-dot { animation: avmDot .7s cubic-bezier(.34,1.56,.64,1) .45s both, none; }
  .avm-fancy.avm-in .avm-dot::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; background: rgba(63,79,168,.4); opacity: 0; animation: ringPulse 2.4s ease-out 1.4s infinite; }
  .avm-fancy.avm-in .avm-list { animation: markPop .4s ease-out .6s both; }
  .avm-fancy.avm-in .avm-lab { animation: markPop .4s ease-out .75s both; }
  .avm-fancy.avm-in .avm-note { animation: markPop .45s ease-out .9s both; }
}
@keyframes avmBand { from { transform: scaleX(0); opacity: .3; } to { transform: scaleX(1); opacity: 1; } }
@keyframes avmDot { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes avmPulse { 0% { box-shadow: 0 2px 8px rgba(38,47,110,.35), 0 0 0 0 rgba(63,79,168,.45); } 70% { box-shadow: 0 2px 8px rgba(38,47,110,.35), 0 0 0 12px rgba(63,79,168,0); } 100% { box-shadow: 0 2px 8px rgba(38,47,110,.35), 0 0 0 0 rgba(63,79,168,0); } }
html.a11y-still .avm-fancy .avm-band, html.a11y-still .avm-fancy .avm-dot, html.a11y-still .avm-fancy .avm-lab, html.a11y-still .avm-fancy .avm-list { opacity: 1 !important; transform: none !important; }
@media (max-width: 640px) { .avm-fancy > * { margin-inline: 16px; } .avm-fancy .avm-head { padding: 16px; } .avm-ic { width: 42px; height: 42px; } }
/* phones: the confidence badge gets its own line under the number, the list price label goes under the bar
   (the range's ends are already written in the header), so no labels overlap */
@media (max-width: 640px) {
  .avm-fancy .avm-head { flex-wrap: wrap; row-gap: 10px; }
  .avm-fancy .avm-head > div { flex: 1 1 calc(100% - 60px) !important; }
  .avm-fancy .conf { margin-left: 56px; }
  .avm-fancy .avm-val { font-size: 2.1rem; }
  .avm-fancy .avm-lab-end { display: none; }
  .avm-fancy .avm-lab-list { top: 58px !important; }
}
/* phones: nothing in Ask Landmark grabs the page's scrolling. The suggestion row only scrolls sideways (overflow-x on its
   own made it a tiny vertical scroller too, which caught swipes), and the answers grow with the page instead of
   scrolling in their own box (that box held on to the swipe once it reached its end) */
.ask-fancy .ask-chips { overflow-y: hidden; overscroll-behavior-y: auto; }
@media (max-width: 640px) {
  .ask-fancy .ask-chips { overflow-y: hidden; overscroll-behavior: auto; touch-action: pan-x pan-y; }
  .ask .ask-log { max-height: none; overflow: visible; overscroll-behavior: auto; }
}
/* ---------- Homepage: action tiles, guides and towns with more pizzazz ---------- */
/* the four action tiles: blue and red gradients, a big faint icon, lift and a sliding arrow on hover */
.home-tiles.checker { gap: 16px; }
.home-tiles.checker > .tile { position: relative; overflow: hidden; border-radius: 18px; padding: 24px 24px 22px; min-height: 196px; gap: 9px;
  background: linear-gradient(140deg, #5162c9 0%, var(--brand) 45%, var(--brand-deep) 100%); box-shadow: 0 12px 28px rgba(38,47,110,.22); transition: transform .2s, box-shadow .2s; }
.home-tiles.checker > .tile.alt { background: linear-gradient(140deg, #f04a50 0%, #d42a31 45%, #9e171d 100%); box-shadow: 0 12px 28px rgba(158,23,29,.22); }
.home-tiles.checker > .tile::before { content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.07); pointer-events: none; }
.home-tiles.checker > .tile:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(38,47,110,.3); filter: none; }
.home-tiles .tile h3 { font-size: 1.3rem; color: #fff; }
.home-tiles .tile .eyebrow { color: rgba(255,255,255,.85); }
.home-tiles .tile-ic { position: absolute; right: 12px; bottom: 10px; width: 64px; height: 64px; color: #fff; opacity: .14; transition: transform .35s, opacity .35s; pointer-events: none; }
.home-tiles .tile:hover .tile-ic { opacity: .24; transform: rotate(-8deg) scale(1.08); }
.home-tiles .tile .go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; color: #fff; }
.home-tiles .tile .go svg { transition: transform .2s; } .home-tiles .tile:hover .go svg { transform: translateX(4px); }
/* guides: white cards with a gradient top edge, a Guide / Blog pill, lift on hover */
.home-art .art-card { position: relative; overflow: hidden; border: 0; border-radius: 18px; padding: 24px 22px 20px; gap: 10px; background: #fff;
  box-shadow: 0 8px 24px rgba(38,47,110,.10), 0 1px 3px rgba(38,47,110,.08); transition: transform .2s, box-shadow .2s; }
.home-art .art-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--brand-deep), var(--brand), #8f9cf0); }
.home-art .art-card.is-blog::before { background: linear-gradient(90deg, #9e171d, var(--flag), #f27b80); }
.home-art .art-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(38,47,110,.18); }
.art-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: #eef1ff; color: var(--brand); }
.is-blog .art-pill { background: #fdeeee; color: #c81e25; }
.home-art .art-card h2 { font-size: 1.15rem; line-height: 1.3; transition: color .2s; }
.home-art .art-card:hover h2 { color: var(--brand); }
.home-art .art-card.is-blog:hover h2 { color: #c81e25; }
.home-art .art-card .go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; }
.home-art .art-card.is-blog .go { color: #c81e25; }
.home-art .art-card .go svg { transition: transform .2s; } .home-art .art-card:hover .go svg { transform: translateX(4px); }
/* towns: a pin badge, the count as a pill, the median price in bold, lift on hover */
.home-comm { gap: 12px; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); }
.home-comm a { position: relative; border: 0; border-radius: 16px; padding: 14px 14px 12px; gap: 4px; background: #fff; overflow: hidden;
  box-shadow: 0 6px 18px rgba(38,47,110,.09), 0 1px 3px rgba(38,47,110,.07); transition: transform .2s, box-shadow .2s; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.home-comm a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--brand), var(--brand-deep)); }
.home-comm a:nth-child(even)::before { background: linear-gradient(180deg, var(--flag), #9e171d); }
.home-comm a:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(38,47,110,.16); }
.cm-pin { grid-row: span 3; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #eef1ff; color: var(--brand); transition: transform .25s; }
.home-comm a:nth-child(even) .cm-pin { background: #fdeeee; color: #c81e25; }
.cm-pin svg { width: 19px; height: 19px; }
.home-comm a:hover .cm-pin { transform: translateY(-3px); }
.home-comm b { font-size: 1rem; }
.home-comm .cm-n { justify-self: start; font-size: .72rem; font-weight: 700; color: var(--muted); background: #f1f3f9; padding: 1px 8px; border-radius: 999px; }
.home-comm .cm-med { font-size: .8rem; color: var(--muted); } .home-comm .cm-med strong { color: var(--ink); font-weight: 750; }
/* float in one after another when the section comes into view */
@media (prefers-reduced-motion: no-preference) {
  .reveal:not(.shown) > * { opacity: 0; transform: translateY(18px); }
  .reveal.shown > * { animation: mktRise .55s cubic-bezier(.2,.9,.3,1.15) both; animation-delay: calc(var(--i, 0) * 60ms); }
  .home-tiles.reveal.shown > :nth-child(2) { --i: 1; } .home-tiles.reveal.shown > :nth-child(3) { --i: 2; } .home-tiles.reveal.shown > :nth-child(4) { --i: 3; }
}
html.a11y-still .reveal > * { opacity: 1 !important; transform: none !important; animation: none !important; }
@media (max-width: 640px) {
  .home-comm { grid-template-columns: 1fr 1fr; gap: 10px; }
  .home-comm a { grid-template-columns: 1fr; padding: 12px 12px 10px 14px; }
  .home-comm .cm-pin { grid-row: auto; width: 30px; height: 30px; margin-bottom: 2px; } .home-comm .cm-pin svg { width: 16px; height: 16px; }
  .home-tiles.checker > .tile { min-height: 0; }
}
/* ---------- Homepage Landmark Market Report: more pizzazz ---------- */
.mkt.mkt-home { border: 0; border-radius: 20px; padding: 22px; background: linear-gradient(180deg, #f3f5fd 0%, #fff 140px); box-shadow: 0 14px 40px rgba(38,47,110,.14), 0 1px 3px rgba(38,47,110,.08); }
.mkt-home .mk-top .in { border-radius: 12px; border: 1.5px solid #cfd5f0; background-color: #fff; font-weight: 600; }
.mkt-home .mkt-period { background: #fff; border: 1.5px solid #cfd5f0; border-radius: 999px; padding: 3px; }
.mkt-home .mkt-period button { border-radius: 999px; border: 0; font-weight: 650; }
.mkt-home .mkt-period button[aria-pressed="true"] { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; box-shadow: 0 4px 10px rgba(63,79,168,.3); }
.mkt-home .mk-tiles { gap: 14px; }
.mkt-home .mk-tile { position: relative; overflow: hidden; border: 0; border-radius: 16px; padding: 16px 16px 46px; gap: 4px; background: #fff; box-shadow: 0 6px 18px rgba(38,47,110,.10), 0 1px 3px rgba(38,47,110,.07); transition: transform .2s, box-shadow .2s; }
.mkt-home .mk-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(38,47,110,.16); }
.mkt-home .mk-tile::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--brand-deep), var(--brand), #8f9cf0); }
.mkt-home .mk-tile:nth-child(even)::before { background: linear-gradient(90deg, #9e171d, var(--flag), #f27b80); }
.mk-tile-top { display: flex; align-items: center; gap: 8px; }
.mk-ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: #eef1ff; color: var(--brand); flex: none; }
.mk-tile:nth-child(even) .mk-ic { background: #fdeeee; color: #c81e25; }
.mk-ic svg { width: 17px; height: 17px; }
.mkt-home .mk-tile b { font-size: 1.85rem; color: var(--brand-deep); margin-top: 4px; }
.mkt-home .mk-tile:nth-child(even) b { color: #a3191f; }
.mkt-home .mk-chg { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .8rem; margin-left: 2px; }
.mkt-home .mk-chg.up { background: #e6f6ec; } .mkt-home .mk-chg.down { background: #fdeeee; }
.mk-spark { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34px; }
.mk-spark polyline { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: .55; }
.mk-tile:nth-child(even) .mk-spark polyline { stroke: var(--flag); }
.mk-type { justify-self: start; font-weight: 700; font-size: .8rem; padding: 2px 10px; border-radius: 999px; background: #eef1ff; color: var(--brand); }
.mk-type-sell { background: #fdeeee; color: #c81e25; } .mk-type-buy { background: #e6f6ec; color: #1d7a46; }
.mk-gauge { position: relative; height: 8px; border-radius: 4px; margin-top: 8px; background: linear-gradient(90deg, #f27b80 0%, #f27b80 50%, #b9c2f2 50%, #b9c2f2 75%, #8fd3a8 75%); }
.mk-gauge i { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; border: 3px solid var(--brand-deep); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.mk-gauge-l { display: grid; grid-template-columns: 2fr 1fr 1fr; font-size: .66rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.mk-gauge-l span:nth-child(2) { text-align: center; } .mk-gauge-l span:nth-child(3) { text-align: right; }
.mkt-home .mk-tile:has(.mk-gauge) { padding-bottom: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .mkt-home.mk-play .mk-tile { animation: mktRise .55s cubic-bezier(.2,.9,.3,1.15) both; }
  .mkt-home.mk-play .mk-tile:nth-child(2) { animation-delay: .1s; } .mkt-home.mk-play .mk-tile:nth-child(3) { animation-delay: .2s; } .mkt-home.mk-play .mk-tile:nth-child(4) { animation-delay: .3s; }
  .mkt-home.mk-play .mk-spark { animation: mkDraw 1.3s ease-out .5s both; }
  .mkt-home.mk-play .mk-gauge i { animation: mkSlide 1s cubic-bezier(.2,.9,.3,1.2) .6s both; }
  .mkt-home:not(.mk-play) .mk-tile { opacity: 0; }
}
@keyframes mkDraw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }   /* the trend line draws in from the left */
@keyframes mkSlide { from { left: 0%; opacity: 0; } }
@media (max-width: 720px) { .mkt-home .mk-tiles { grid-template-columns: 1fr 1fr; gap: 10px; } .mkt-home .mk-tile b { font-size: 1.45rem; } .mkt.mkt-home { padding: 16px; } .mkt-home .mk-tile { padding: 14px 12px 42px; } }
html.a11y-still .mkt-home .mk-tile { opacity: 1 !important; }
.mk-tile-top .meta { white-space: normal; line-height: 1.25; }
@media (max-width: 720px) {
  .mkt-home .mkt-period { display: flex; width: 100%; }
  .mkt-home .mkt-period button { flex: 1; white-space: nowrap; padding-inline: 6px; font-size: .9rem; }
  .mkt-home .mk-top { flex-direction: column; align-items: stretch; }
  .mkt-home .mk-gauge-l { display: none; }
  .mk-ic { width: 26px; height: 26px; } .mk-ic svg { width: 15px; height: 15px; }
  .mk-tile-top .meta { font-size: .8rem; }
  .mkt-home .mk-type { font-size: .72rem; }
}
/* ---------- Popular searches: two rows of shortcuts gliding slowly across, opposite ways ---------- */
.pop-marquee { display: grid; gap: 12px; margin-inline: calc(50% - 50vw); padding-inline: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.pop-row { overflow: hidden; padding-block: 6px; }
.pop-track { display: flex; width: max-content; }
.pop-set { display: flex; gap: 12px; padding-right: 12px; }
.pop-chip { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; text-decoration: none; padding: 9px 10px 9px 9px; border-radius: 999px; background: #fff; color: var(--ink);
  font-weight: 650; font-size: .93rem; border: 1px solid #dfe3f3; box-shadow: 0 4px 12px rgba(38,47,110,.08); transition: transform .2s, box-shadow .2s, background .2s, color .2s; }
.pop-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #eef1ff; color: var(--brand); flex: none; transition: background .2s, color .2s; }
.pop-ic svg { width: 16px; height: 16px; }
.pop-row.rev .pop-ic { background: #fdeeee; color: #c81e25; }
.pop-n { font-size: .74rem; font-weight: 750; color: var(--muted); background: #f1f3f9; padding: 2px 8px; border-radius: 999px; }
.pop-chip:hover, .pop-chip:focus-visible { transform: translateY(-2px); background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; box-shadow: 0 10px 22px rgba(63,79,168,.3); border-color: transparent; }
.pop-row.rev .pop-chip:hover, .pop-row.rev .pop-chip:focus-visible { background: linear-gradient(135deg, var(--flag), #a3191f); box-shadow: 0 10px 22px rgba(227,38,46,.3); }
.pop-chip:hover .pop-ic, .pop-chip:focus-visible .pop-ic { background: rgba(255,255,255,.2); color: #fff; }
.pop-chip:hover .pop-n, .pop-chip:focus-visible .pop-n { background: rgba(255,255,255,.22); color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .pop-track { animation: popGlide 70s linear infinite; }
  .pop-row.rev .pop-track { animation-direction: reverse; animation-duration: 80s; }
  .pop-row:hover .pop-track, .pop-row:focus-within .pop-track, .pop-row:active .pop-track { animation-play-state: paused; }
}
@keyframes popGlide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* reduce motion (device or the site's own switch): no gliding; the shortcuts simply wrap, without the copies */
/* motion off (device or the site's own switch): still two rows, standing still; swipe them sideways on a phone, or
   click and drag (or scroll sideways) on a computer. The copies used for the glide are left out. */
@media (prefers-reduced-motion: reduce) {
  .pop-marquee { margin-inline: 0; }
  .pop-row { overflow-x: auto; scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain; }
  .pop-row::-webkit-scrollbar { display: none; }
  .pop-track { animation: none !important; padding-inline: 6%; }
  .pop-set[aria-hidden] { display: none; }
}
html.a11y-still .pop-marquee { margin-inline: 0; }
html.a11y-still .pop-row { overflow-x: auto; scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain; }
html.a11y-still .pop-row::-webkit-scrollbar { display: none; }
html.a11y-still .pop-track { animation: none !important; padding-inline: 6%; }
html.a11y-still .pop-set[aria-hidden] { display: none; }
.pop-row.dragging { cursor: grabbing; user-select: none; }
.pop-row.dragging .pop-chip { pointer-events: none; }
@media (max-width: 640px) { .pop-chip { font-size: .86rem; padding: 7px 9px 7px 7px; } .pop-ic { width: 26px; height: 26px; } }
/* ---------- Listing card flags: more pizzazz. Same colors as the map legend, with a soft gloss, rounder corners, a little
   icon for each kind (lightning bolt: new, house: for sale, door: open house, arrow: price change, clock: pending, check: sold),
   and a shine that sweeps across now and then. Same height as before, so the LANDMARK logo flag still lines up. ---------- */
.tag.flagged, .mb.flagged { position: absolute; overflow: hidden; border-radius: 7px; display: inline-flex; align-items: center; gap: 5px;
  background-image: linear-gradient(135deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 48%, rgba(0,0,0,.14) 100%) !important;
  box-shadow: 0 3px 10px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.25); text-shadow: 0 1px 1px rgba(0,0,0,.18); }
.mb.flagged { position: relative; }
.tag.flagged::before, .mb.flagged::before { content: ""; width: 11px; height: 11px; flex: none; background: currentColor; -webkit-mask: no-repeat center / contain; mask: no-repeat center / contain; }
.flagged.fl-new::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 1 4 14h7l-2 9 11-13h-7z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 1 4 14h7l-2 9 11-13h-7z'/%3E%3C/svg%3E"); }
.flagged.fl-act::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 1 11h3v11h6v-7h4v7h6V11h3z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 1 11h3v11h6v-7h4v7h6V11h3z'/%3E%3C/svg%3E"); }
.flagged.fl-oh::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 22V2h12v2l5 1.5V22zm11-10a1.3 1.3 0 1 0 0-2.6 1.3 1.3 0 0 0 0 2.6z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 22V2h12v2l5 1.5V22zm11-10a1.3 1.3 0 1 0 0-2.6 1.3 1.3 0 0 0 0 2.6z'/%3E%3C/svg%3E"); }
.flagged.fl-cut::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2h6v11h5l-8 9-8-9h5z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2h6v11h5l-8 9-8-9h5z'/%3E%3C/svg%3E"); }
.flagged.fl-pend::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1a11 11 0 1 0 0 22 11 11 0 0 0 0-22zm1 5v6.4l4 2.4-1 1.7-5-3V6z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1a11 11 0 1 0 0 22 11 11 0 0 0 0-22zm1 5v6.4l4 2.4-1 1.7-5-3V6z'/%3E%3C/svg%3E"); }
.flagged.fl-sold::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-2.1 2.1L9 20.4 21.3 8.1l-2.1-2.1z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-2.1 2.1L9 20.4 21.3 8.1l-2.1-2.1z'/%3E%3C/svg%3E"); }
.tag.flagged::after, .mb.flagged::after { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-130%);
  background: linear-gradient(100deg, transparent 25%, rgba(255,255,255,.55) 50%, transparent 75%); }
@media (prefers-reduced-motion: no-preference) {
  .tag.flagged::after, .mb.flagged::after { animation: flagShine 6s ease-in-out infinite; }
  .card:nth-child(3n+2) .tag.flagged::after { animation-delay: 2s; } .card:nth-child(3n) .tag.flagged::after { animation-delay: 4s; }
  .card:hover .tag.flagged::after { animation: flagShine .9s ease-out; }
  .flagged.fl-new::before { animation: flagPulse 1.8s ease-in-out infinite; }
}
@keyframes flagShine { 0%, 82% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
/* LANDMARK logo flags are off for now (cards and map cards), so the status flag has the room to stay on one line.
   To bring them back, delete these lines. */
.card .ph .ours.ours-logo, .mc-ph .ours.ours-logo { display: none !important; }
.mc-badges, body.d-full .mc-badges { right: 64px; }   /* only the heart to leave room for now */
.tag.flagged, .mb.flagged { white-space: nowrap; }
/* ---------- AI search bar: the hint takes turns, rising in word by word ---------- */
.ph-rot { position: absolute; top: 0; bottom: 0; left: 46px; right: 46px; pointer-events: none; overflow: hidden; white-space: nowrap; color: #6a6f8e; line-height: 1.2; }
.has-rot > .in::placeholder { color: transparent !important; }
.has-rot > .in:not(:placeholder-shown) ~ .ph-rot, .has-rot > .in:focus:not(:placeholder-shown) ~ .ph-rot { display: none; }
.ph-line { position: absolute; inset: 0; display: flex; align-items: center; gap: 0 .3em; }
.pw { display: inline-block; }
.pw-try { font-weight: 700; background: linear-gradient(100deg, var(--brand-deep), var(--brand) 45%, var(--flag)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-reduced-motion: no-preference) {
  .ph-in .pw { animation: phRise .55s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 55ms + 120ms); }
  .ph-out { animation: phLeave .38s ease-in both; }
  .ph-in .pw-try { background-size: 250% 100%; animation: phRise .55s cubic-bezier(.2,.8,.2,1) both, phGlow 1.6s ease-out .3s both; }
}
html.a11y-still .ph-in .pw, html.a11y-still .ph-out { animation: none !important; }
@keyframes phRise { from { opacity: 0; transform: translateY(70%); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes phLeave { to { opacity: 0; transform: translateY(-70%); filter: blur(4px); } }
@keyframes phGlow { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---------- Mark under the search bar: questions typed in a search box get answered right below it ---------- */
.mark-drop { color: var(--ink); background: #fbfbfe; border-radius: 16px; max-width: 880px; box-shadow: 0 14px 40px rgba(20,26,70,.22); overflow: hidden; position: relative;
  border: 2px solid transparent; background: linear-gradient(#fbfbfe, #fbfbfe) padding-box, linear-gradient(110deg, var(--brand-deep), var(--brand) 40%, #8f9cf0 60%, var(--flag)) border-box; }
.fbar + .mark-drop { margin: 10px 0 4px; max-width: none; }
.md-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 14px; background: linear-gradient(120deg, var(--brand-deep), var(--brand)); color: #fff; }
.md-av { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--brand); display: grid; place-items: center; flex: none; }
.md-av svg { width: 18px; height: 18px; }
.md-av .spk1 { color: var(--brand); } .md-av .spk2 { color: var(--flag); }
.md-pill { font-size: .62rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 2px 8px; }
.md-head .md-chat { margin-left: auto; color: #fff; font-size: .84rem; opacity: .9; }
.md-x { background: none; border: 0; color: #fff; font-size: 1.5rem; line-height: 1; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.md-x:hover, .md-x:focus-visible { background: rgba(255,255,255,.18); }
.md-log { display: flex; flex-direction: column; gap: 8px; padding: 14px; max-height: min(52vh, 440px); overflow-y: auto; overscroll-behavior: contain; }
.md-log .cm-who { font-size: .72rem; color: var(--muted); margin: 2px 0 -4px 4px; }
.md-log .bot-res { max-width: 560px; }
.md-ask { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); background: #fff; }
.md-ask .md-in { flex: 1; min-width: 0; border-radius: 999px; padding-inline: 16px; }
.md-go { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; color: #fff; cursor: pointer; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); display: grid; place-items: center; }
.md-go:hover { filter: brightness(1.1); }
@media (prefers-reduced-motion: no-preference) {
  .mark-drop { animation: mdOpen .32s cubic-bezier(.2,.9,.3,1.1) both; transform-origin: top center; }
  .mark-drop.md-closing { animation: mdClose .2s ease-in both; }
}
html.a11y-still .mark-drop { animation: none !important; }
@keyframes mdOpen { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes mdClose { to { opacity: 0; transform: translateY(-6px) scale(.98); } }
@media (max-width: 640px) {
  .md-head .md-chat { font-size: .78rem; }
  .md-log { max-height: 60vh; padding: 12px; }
  .md-ask .md-in { font-size: 16px; }   /* phones don't zoom in on the box */
}

/* =========== Page pizzazz: Buy, Sell, Learn, Agents, Contact, Afford, Market report, Account, Compare, Areas (pzDecorate) =========== */
/* the banner: Landmark blue with a red corner, the page's own icon, soft rings, the title rising in (sparkles are for Mark/AI only) */
body[data-pz] .page-head.pz-head { position: relative; overflow: hidden; isolation: isolate; margin-top: 20px; padding: clamp(26px, 4vw, 44px) clamp(20px, 4vw, 44px); padding-right: clamp(110px, 18vw, 220px);
  border-radius: 22px; color: #fff; gap: 10px;
  background: radial-gradient(120% 140% at 0% 0%, #5867cf 0%, var(--brand) 38%, var(--brand-deep) 100%); box-shadow: 0 18px 40px rgba(38,47,110,.25); }
body[data-pz] .pz-head h1 { color: #fff; font-size: clamp(1.75rem, 4.2vw, 2.7rem); line-height: 1.12; max-width: 22ch; }
body[data-pz] .pz-head p { color: rgba(255,255,255,.88); font-size: 1.04rem; max-width: 62ch; }
body[data-pz] .pz-head p .btn.ghost, body[data-pz] .pz-head p a { color: #fff; border-color: rgba(255,255,255,.5); }
body[data-pz] .pz-head .eyebrow { justify-self: start; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 4px 12px; letter-spacing: .08em; }
.pz-deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.pz-tri { position: absolute; right: -2px; top: -2px; width: clamp(90px, 15vw, 170px); aspect-ratio: 1; background: linear-gradient(200deg, #f04a50, #c81e25); clip-path: polygon(0 0, 100% 0, 100% 100%); opacity: .95; }
.pz-ic { position: absolute; right: clamp(22px, 5vw, 64px); bottom: clamp(14px, 3vw, 28px); width: clamp(70px, 11vw, 120px); aspect-ratio: 1; border-radius: 28px; display: grid; place-items: center;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); color: #fff; transform: rotate(-6deg); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.pz-ic svg { width: 54%; height: 54%; }
.pz-w { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  body[data-pz] .pz-head { animation: pzHead .6s cubic-bezier(.2,.8,.2,1) both; }
  .pz-head .pz-w { animation: phRise .6s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 60ms + 150ms); }
  .pz-head .eyebrow, .pz-head > p { animation: markPop .5s ease-out .25s both; }
  .pz-ic { animation: pzFloat 5s ease-in-out infinite; }
  .pz-rise.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease-out, transform .55s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0ms); }
  .pz-rise.reveal.shown { opacity: 1; transform: none; }
}
html.a11y-still .pz-head, html.a11y-still .pz-head *, html.a11y-still .pz-ic { animation: none !important; }
html.a11y-still .pz-rise.reveal { opacity: 1 !important; transform: none !important; }
@keyframes pzHead { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes pzFloat { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-6px); } }
@media (max-width: 640px) {
  body[data-pz] .page-head.pz-head { padding: 24px 20px 26px; padding-right: 20px; border-radius: 18px; margin-top: 12px; }
  .pz-ic { width: 54px; border-radius: 16px; right: 14px; top: 14px; bottom: auto; background: rgba(255,255,255,.12); }
  body[data-pz] .pz-head h1, body[data-pz] .pz-head .eyebrow { margin-right: 52px; }
  .pz-tri { width: 70px; opacity: .5; }
}

/* boxes on these pages: rounder, softer, lift a little on hover */
body[data-pz] .panel { border-radius: 18px; border-color: #e7e9f3; box-shadow: 0 6px 22px rgba(38,47,110,.07); }
body[data-pz] .detail > .panel:first-child, body[data-pz] .sell-main > .panel, body[data-pz] .bp-in, body[data-pz] .bp-lead { position: relative; overflow: hidden; }
body[data-pz] .detail > .panel:first-child::before, body[data-pz] .sell-main > .panel::before, body[data-pz] .bp-in::before, body[data-pz] .bp-lead::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--brand-deep), var(--brand) 50%, var(--flag)); }
body[data-pz] .panel h2 { color: var(--brand-deep); }
body[data-pz] .side .panel, body[data-pz] a.panel { transition: transform .2s, box-shadow .2s; }
body[data-pz] .side .panel:hover, body[data-pz] a.panel:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(38,47,110,.14); }
body[data-pz] .checker.checker > .panel { background: linear-gradient(140deg, #5162c9 0%, var(--brand) 45%, var(--brand-deep) 100%); border: 0; }
body[data-pz] .checker.checker > .panel.alt, body[data-pz] .pro-move.bp-cta.cta-red { background: linear-gradient(140deg, #f04a50 0%, #d42a31 45%, #9e171d 100%); border: 0; }
body[data-pz] .bp-cta { position: relative; overflow: hidden; }
body[data-pz] .bp-cta::after { content: ""; position: absolute; right: -36px; top: -36px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.09); }
body[data-pz] .bp-cta .go { display: inline-block; transition: transform .2s; }
body[data-pz] .bp-cta:hover .go { transform: translateX(4px); }
body[data-pz] .guide-link { border-radius: 10px; padding: 8px 10px; margin-inline: -10px; transition: background .15s; }
body[data-pz] .guide-link:hover { background: #f1f3fc; }

/* three reasons under the banner (Buy, Sell) */
.pz-perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 6px; }
.pz-perk { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid #e7e9f3; border-radius: 16px; padding: 14px 16px; box-shadow: 0 4px 14px rgba(38,47,110,.06); }
.pz-perk b { display: block; color: var(--brand-deep); }
.pz-perk .meta { font-size: .88rem; }
.pz-perk-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); }
.pz-perk:nth-child(2) .pz-perk-ic { background: linear-gradient(135deg, #f04a50, #b81d24); }
.pz-perk-ic svg { width: 21px; height: 21px; }
@media (max-width: 760px) { .pz-perks { grid-template-columns: 1fr; gap: 10px; } }

/* Contact: call / email / visit tiles */
.pz-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 4px; }
.pz-tile { display: grid; gap: 4px; justify-items: start; text-align: left; font: inherit; cursor: pointer; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid #e7e9f3; border-radius: 18px; padding: 18px; box-shadow: 0 6px 20px rgba(38,47,110,.07); transition: transform .2s, box-shadow .2s, border-color .2s; }
.pz-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(38,47,110,.14); border-color: #cfd5f5; }
.pz-tile b { color: var(--brand-deep); font-size: 1.05rem; margin-top: 6px; }
.pz-tile span:not(.pz-tile-ic) { color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.pz-tile-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); transition: transform .3s; }
.pz-tile:nth-child(2) .pz-tile-ic { background: linear-gradient(135deg, #f04a50, #b81d24); }
.pz-tile:hover .pz-tile-ic { transform: rotate(-8deg) scale(1.06); }
.pz-tile-ic svg { width: 22px; height: 22px; }
@media (max-width: 760px) { .pz-tiles { grid-template-columns: 1fr; gap: 10px; } .pz-tile { grid-template-columns: 46px 1fr; column-gap: 14px; align-items: center; } .pz-tile-ic { grid-row: span 2; } .pz-tile b { margin: 0; } }

/* Learn: article cards with a category pill, lift and a sliding arrow; the newest one is wider */
body[data-pz="learn"] .art-grid { gap: 18px; }
body[data-pz="learn"] .art-card { border-radius: 18px; border: 1px solid #e7e9f3; box-shadow: 0 6px 20px rgba(38,47,110,.07); padding: 22px; transition: transform .2s, box-shadow .2s; position: relative; overflow: hidden; }
body[data-pz="learn"] .art-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(38,47,110,.15); }
body[data-pz="learn"] .art-card h2 { color: var(--brand-deep); line-height: 1.25; }
body[data-pz="learn"] .art-card .go { display: inline-block; transition: transform .2s; }
body[data-pz="learn"] .art-card:hover .go { transform: translateX(5px); }
@media (min-width: 900px) {
  body[data-pz="learn"] .art-card:first-child { grid-column: span 2; padding: 30px; color: #fff; border: 0 !important; background: radial-gradient(120% 140% at 0% 0%, #5867cf 0%, var(--brand) 40%, var(--brand-deep) 100%); }
  body[data-pz="learn"] .art-card:first-child h2 { color: #fff; font-size: 1.6rem; max-width: 26ch; }
  body[data-pz="learn"] .art-card:first-child p, body[data-pz="learn"] .art-card:first-child .eyebrow { color: rgba(255,255,255,.9); }
  body[data-pz="learn"] .art-card:first-child .go { color: #fff; }
  body[data-pz="learn"] .art-card:first-child::after { content: ""; position: absolute; right: -50px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.08); }
}
body[data-pz="learn"] .seg button[aria-pressed="true"] { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; }

/* Agents: bigger photos with a ring, gradient cards, lift */
body[data-pz="agents"] .agent-grid { gap: 18px; }
body[data-pz="agents"] .agent-grid.checker > .agent { position: relative; overflow: hidden; border-radius: 20px; padding: 22px; grid-template-columns: 84px 1fr; gap: 16px;
  background: linear-gradient(140deg, #5162c9 0%, var(--brand) 45%, var(--brand-deep) 100%); box-shadow: 0 12px 28px rgba(38,47,110,.22); transition: transform .2s, box-shadow .2s; }
body[data-pz="agents"] .agent-grid.checker > .agent.alt { background: linear-gradient(140deg, #f04a50 0%, #d42a31 45%, #9e171d 100%); box-shadow: 0 12px 28px rgba(158,23,29,.22); }
body[data-pz="agents"] .agent-grid > .agent::before { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none; }
body[data-pz="agents"] .agent-grid > .agent:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(38,47,110,.3); }
body[data-pz="agents"] .agent-grid > .agent > :first-child { width: 84px !important; height: 84px !important; font-size: 1.6rem; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,.85), 0 8px 18px rgba(0,0,0,.2); transition: transform .3s; }
body[data-pz="agents"] .agent-grid > .agent:hover > :first-child { transform: scale(1.05) rotate(-2deg); }
body[data-pz="agents"] .agent h3 { font-size: 1.2rem; }

/* Areas: town cards with a pin, lift and a sliding arrow */
body[data-pz="areas"] .comm { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
body[data-pz="areas"] .comm > a { position: relative; border-radius: 18px; padding: 18px 18px 16px; gap: 4px; border: 1px solid #e7e9f3; box-shadow: 0 6px 20px rgba(38,47,110,.07); transition: transform .2s, box-shadow .2s; overflow: hidden; }
body[data-pz="areas"] .comm > a:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(38,47,110,.15); }
body[data-pz="areas"] .comm b { font-size: 1.15rem; color: var(--brand-deep); }
.comm-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff !important; opacity: 1 !important; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); margin-bottom: 6px; transition: transform .3s; }
.comm > a.alt .comm-ic { background: linear-gradient(135deg, #f04a50, #b81d24); }
.comm > a:hover .comm-ic { transform: translateY(-2px) rotate(-8deg); }
.comm-ic svg { width: 20px; height: 20px; }
.comm-go { position: absolute; right: 16px; top: 18px; font-size: 1.2rem !important; color: var(--brand) !important; transition: transform .2s; }
.comm > a:hover .comm-go { transform: translateX(4px); }
body:not([data-pz]) .comm:not(.home-areas) .comm-ic, body:not([data-pz]) .comm:not(.home-areas) .comm-go { display: none; }

/* Compare: a friendlier empty state */
.pz-empty { display: grid; justify-items: center; gap: 8px; padding: 40px 20px; border-radius: 20px; border: 2px dashed #d5daf3; background: #fafbff; text-align: center; }
.pz-empty > b { font-size: 1.2rem; color: var(--brand-deep); }
.pz-empty .btn { margin-top: 8px; }
.pz-empty-ic { width: 66px; height: 66px; border-radius: 20px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); box-shadow: 0 10px 24px rgba(38,47,110,.25); }
.pz-empty-ic svg { width: 34px; height: 34px; }
@media (prefers-reduced-motion: no-preference) { .pz-empty-ic { animation: pzFloat 4.5s ease-in-out infinite; } }
body[data-pz="compare"] table { border-radius: 16px; overflow: hidden; }

/* What can I afford: the answer box gets Mark's gradient edge */
body[data-pz="afford"] .bp-out { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, var(--brand-deep), var(--brand) 45%, #8f9cf0 65%, var(--flag)) border-box; }
body[data-pz="afford"] .fp-opts button[aria-checked="true"] { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; border-color: transparent; }

/* Market report page: the homepage report, then the email sign-up */
.mr-live { padding-top: 26px; }
.mr-sign { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; margin-top: 8px; padding: 26px; position: relative; overflow: hidden; }
.mr-sign::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--brand-deep), var(--brand) 50%, var(--flag)); }
.mr-sign-tx { display: flex; gap: 16px; align-items: flex-start; }
.mr-sign-tx h2 { font-size: 1.3rem; margin: 0 0 4px; }
.mr-sign-tx p { margin: 0; color: var(--muted); }
.mr-sign-ic { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #f04a50, #b81d24); box-shadow: 0 8px 18px rgba(158,23,29,.25); }
.mr-sign-ic svg { width: 26px; height: 26px; }
.mr-form .meta { margin: 0; }
#mrDone:empty { display: none; }
#mrDone { grid-column: 1 / -1; }
@media (max-width: 760px) { .mr-sign { grid-template-columns: 1fr; padding: 20px; } }

/* Account: rounder sections */
body[data-pz="account"] .panel h3, body[data-pz="account"] .panel h2 { color: var(--brand-deep); }
body[data-pz="account"] h2 { position: relative; }

/* CRM: livelier header and stage counts, softer cards */
body.crm-mode .crm-head h1 { background: linear-gradient(100deg, var(--brand-deep), var(--brand) 60%, var(--flag)); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.crm-mode .crm-pipe-mini a { border-radius: 16px; transition: transform .2s, box-shadow .2s; position: relative; overflow: hidden; }
body.crm-mode .crm-pipe-mini a::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--flag)); }
body.crm-mode .crm-pipe-mini a:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(38,47,110,.14); }
body.crm-mode .crm-pipe-mini b { color: var(--brand-deep); }
body.crm-mode .crm-card { border-radius: 16px; box-shadow: 0 6px 20px rgba(38,47,110,.07); }
@media (prefers-reduced-motion: no-preference) {
  body.crm-mode .crm-pipe-mini a, body.crm-mode .crm-grid > .crm-card { animation: markPop .45s ease-out both; }
  body.crm-mode .crm-pipe-mini a:nth-child(2) { animation-delay: .05s; } body.crm-mode .crm-pipe-mini a:nth-child(3) { animation-delay: .1s; }
  body.crm-mode .crm-pipe-mini a:nth-child(4) { animation-delay: .15s; } body.crm-mode .crm-pipe-mini a:nth-child(5) { animation-delay: .2s; }
  body.crm-mode .crm-grid > .crm-card:nth-child(2) { animation-delay: .08s; } body.crm-mode .crm-grid > .crm-card:nth-child(3) { animation-delay: .16s; } body.crm-mode .crm-grid > .crm-card:nth-child(n+4) { animation-delay: .24s; }
}
html.a11y-still body.crm-mode .crm-pipe-mini a, html.a11y-still body.crm-mode .crm-card { animation: none !important; }
@media (min-width: 760px) { body[data-pz="agents"] .grid.agent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
body[data-pz="agents"] .agent .meta, body[data-pz="agents"] .agent a { overflow-wrap: anywhere; }
body[data-pz="account"] .wrap > h2, body[data-pz="account"] .wrap > section > h2 { display: flex; align-items: center; gap: 10px; color: var(--brand-deep); }
body[data-pz="account"] .wrap > h2::before, body[data-pz="account"] .wrap > section > h2::before { content: ""; width: 6px; height: 1.1em; border-radius: 4px; background: linear-gradient(180deg, var(--brand), var(--flag)); }
body[data-pz="account"] .empty { border-radius: 16px; background: #fafbff; }
@keyframes flagPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.78); opacity: .7; } }
/* banner rings (instead of sparkles: those are kept for Mark and AI) */
.pz-ring { position: absolute; right: clamp(-60px, -4vw, -30px); bottom: clamp(-90px, -9vw, -60px); width: clamp(200px, 30vw, 340px); aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255,255,255,.12); box-shadow: 0 0 0 26px rgba(255,255,255,.04), 0 0 0 54px rgba(255,255,255,.03); }
@media (max-width: 640px) { .pz-ring { width: 170px; right: -50px; bottom: -70px; } }
@media (prefers-reduced-motion: no-preference) { .pz-ring { animation: pzRing 7s ease-in-out infinite; } }
html.a11y-still .pz-ring { animation: none !important; }
@keyframes pzRing { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* Trusted pros and Moving help */
body[data-pz] .pro-grid { gap: 16px; }
body[data-pz] .pro-grid > .pro-card, body[data-pz] .util-grid > .util, body[data-pz] .move-steps > .move-step { border-radius: 18px; border: 1px solid #e7e9f3; box-shadow: 0 6px 20px rgba(38,47,110,.07); transition: transform .2s, box-shadow .2s; }
body[data-pz] .pro-grid > .pro-card:hover, body[data-pz] .util-grid > .util:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(38,47,110,.14); }
body[data-pz] .pro-group > h2, body[data-pz] .sec-head h2 { display: flex; align-items: center; gap: 10px; color: var(--brand-deep); }
body[data-pz] .pro-group > h2::before, body[data-pz] .sec-head h2::before { content: ""; width: 6px; height: 1.1em; border-radius: 4px; background: linear-gradient(180deg, var(--brand), var(--flag)); }
body[data-pz] .pro-cat h3 { color: var(--brand-deep); }
body[data-pz] .pro-ini { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; }
body[data-pz] .pro-disclose { border-left: 4px solid var(--brand); background: #f6f7fe; }
body[data-pz] .pro-jump button { border-radius: 999px; transition: transform .15s, background .15s, color .15s; }
body[data-pz] .pro-jump button:hover { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; transform: translateY(-1px); }
body[data-pz] .move-step h3 { color: var(--brand-deep); font-size: 1.05rem; }
body[data-pz] .move-list input { accent-color: var(--brand); }
body[data-pz] .move-list label { padding: 6px 8px; margin-inline: -8px; border-radius: 10px; transition: background .15s; }
body[data-pz] .move-list label:hover { background: #f1f3fc; }
body[data-pz] .seg button[aria-pressed="true"] { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; }

/* ---------- Homepage search box: price boxes and buttons with more pizzazz ---------- */
.searchbox { border-radius: 18px; }
.searchbox select.in { border-radius: 14px; border: 1.5px solid #dfe3f3; background-color: #fff; box-shadow: 0 4px 12px rgba(38,47,110,.08); font-weight: 600; color: var(--brand-deep); cursor: pointer;
  -webkit-appearance: none; appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f4fa8' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 14px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.searchbox select.in:hover { border-color: #b9c1ec; box-shadow: 0 8px 18px rgba(38,47,110,.13); transform: translateY(-1px); }
.searchbox select.in:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(63,79,168,.16), 0 8px 18px rgba(63,79,168,.15); }
.searchbox .btn.flag, .searchbox .btn.near-btn { position: relative; overflow: hidden; border-radius: 14px; font-weight: 750; letter-spacing: .01em; transition: transform .2s, box-shadow .2s, filter .2s; }
.searchbox .btn.flag { background: linear-gradient(140deg, #f04a50 0%, #d42a31 45%, #9e171d 100%); box-shadow: 0 8px 20px rgba(158,23,29,.32), inset 0 1px 0 rgba(255,255,255,.25); }
.searchbox .btn.near-btn { background: linear-gradient(140deg, #5162c9 0%, var(--brand) 45%, var(--brand-deep) 100%); color: #fff; box-shadow: 0 8px 20px rgba(38,47,110,.3), inset 0 1px 0 rgba(255,255,255,.22); }
.searchbox .btn.flag:hover, .searchbox .btn.near-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.searchbox .btn.flag:hover { box-shadow: 0 12px 26px rgba(158,23,29,.4), inset 0 1px 0 rgba(255,255,255,.25); }
.searchbox .btn.near-btn:hover { box-shadow: 0 12px 26px rgba(38,47,110,.38), inset 0 1px 0 rgba(255,255,255,.22); }
.searchbox .btn.flag:active, .searchbox .btn.near-btn:active { transform: translateY(0); }
/* a shine that sweeps across the buttons now and then (and on hover) */
.searchbox .btn.flag::after, .searchbox .btn.near-btn::after { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-130%);
  background: linear-gradient(100deg, transparent 25%, rgba(255,255,255,.38) 50%, transparent 75%); }
.searchbox .btn.flag::before { content: ""; width: 17px; height: 17px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E") no-repeat center / contain; }
@media (prefers-reduced-motion: no-preference) {
  .searchbox .btn.flag::after { animation: flagShine 7s ease-in-out 2s infinite; }
  .searchbox .btn.near-btn::after { animation: flagShine 7s ease-in-out 5.5s infinite; }
  .searchbox .btn.flag:hover::after, .searchbox .btn.near-btn:hover::after { animation: flagShine .8s ease-out; }
  .searchbox .near-btn svg { transition: transform .5s; }
  .searchbox .near-btn:hover svg { transform: rotate(90deg); }
}
html.a11y-still .searchbox .btn::after { animation: none !important; }

/* ---------- Footer: the same red shading as the tiles, with soft circles ---------- */
footer { position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(90% 120% at 100% 0%, rgba(255,255,255,.10) 0%, transparent 55%), linear-gradient(140deg, #ec3d44 0%, #c81e25 42%, #8f141a 100%); }
footer::before { content: ""; position: absolute; z-index: -1; left: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: rgba(255,255,255,.05); box-shadow: 0 0 0 60px rgba(255,255,255,.025); pointer-events: none; }
footer::after { content: ""; position: absolute; z-index: -1; right: -80px; top: -90px; width: 260px; height: 260px; border-radius: 50%; border: 2px solid rgba(255,255,255,.1); pointer-events: none; }
footer ul a { display: inline-block; transition: transform .15s, opacity .15s; }
footer ul a:hover { transform: translateX(3px); text-decoration: underline; text-underline-offset: 3px; }
.searchbox #hq { border-radius: 14px; }

/* ---------- Area and neighborhood pages (/homes-for-sale/...) ---------- */
body[data-pz="area"] .crumbs { padding-bottom: 0; }
body[data-pz="area"] .crumbs a { color: var(--brand); font-weight: 600; }
/* the numbers: separate tiles with a colored top edge; they count up */
body[data-pz="area"] #townFacts { display: grid; grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; border: 0; background: none; margin-top: 18px !important; }
body[data-pz="area"] #townFacts > div { position: relative; overflow: hidden; border: 1px solid #e7e9f3 !important; border-radius: 16px; padding: 16px 16px 14px; background: #fff; box-shadow: 0 6px 18px rgba(38,47,110,.07); gap: 2px; transition: transform .2s, box-shadow .2s; }
body[data-pz="area"] #townFacts > div::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--brand), var(--brand-deep)); }
body[data-pz="area"] #townFacts > div:nth-of-type(even)::before { background: linear-gradient(90deg, #f04a50, #b81d24); }
body[data-pz="area"] #townFacts > div:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(38,47,110,.13); }
body[data-pz="area"] #townFacts b { font-size: 1.55rem; color: var(--brand-deep); }
body[data-pz="area"] #townFacts > div:nth-of-type(even) b { color: #b81d24; }
body[data-pz="area"] #townFacts span { font-size: .84rem; }
@media (prefers-reduced-motion: no-preference) {
  body[data-pz="area"] #townFacts > div { animation: markPop .45s ease-out both; }
  body[data-pz="area"] #townFacts > div:nth-child(2) { animation-delay: .06s; } body[data-pz="area"] #townFacts > div:nth-child(3) { animation-delay: .12s; }
  body[data-pz="area"] #townFacts > div:nth-child(4) { animation-delay: .18s; } body[data-pz="area"] #townFacts > div:nth-child(5) { animation-delay: .24s; } body[data-pz="area"] #townFacts > div:nth-child(6) { animation-delay: .3s; }
}
@media (max-width: 640px) { body[data-pz="area"] #townFacts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } body[data-pz="area"] #townFacts b { font-size: 1.3rem; } }
/* quick searches: pills that fill with Landmark blue and show an arrow on hover */
body[data-pz="area"] .town-chips { gap: 8px; margin-top: 16px; }
body[data-pz="area"] .town-chips .chip { display: inline-flex; align-items: center; gap: 0; font-weight: 600; color: var(--brand-deep); border: 1.5px solid #dfe3f3; box-shadow: 0 3px 10px rgba(38,47,110,.06); padding: 8px 16px; transition: background .2s, color .2s, transform .2s, box-shadow .2s, gap .2s; }
body[data-pz="area"] .town-chips .chip:hover { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; border-color: transparent; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(38,47,110,.22); gap: 6px; }
.tc-go { display: inline-block; width: 0; overflow: hidden; transition: width .2s; }
body[data-pz="area"] .town-chips .chip:hover .tc-go { width: 1em; }
body:not([data-pz="area"]) .tc-go { display: none; }
/* listing cards lift; neighborhoods use the town cards; sold homes, schools and questions get softer boxes */


body[data-pz="area"] #townHoods { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
body[data-pz="area"] #townHoods > a { border-radius: 18px; padding: 16px 18px; gap: 4px; border: 1px solid #e7e9f3; border-top: 4px solid var(--brand); box-shadow: 0 6px 20px rgba(38,47,110,.07); transition: transform .2s, box-shadow .2s; }
body[data-pz="area"] #townHoods > a:nth-child(even) { border-top-color: #c81e25; }
body[data-pz="area"] #townHoods > a:nth-child(even) .comm-ic { background: linear-gradient(135deg, #f04a50, #b81d24); }
body[data-pz="area"] #townHoods > a:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(38,47,110,.15); }
body[data-pz="area"] #townHoods b { color: var(--brand-deep); font-size: 1.05rem; }
body[data-pz="area"] .sold-cards { gap: 14px; }
body[data-pz="area"] .sold-card { border-radius: 16px; border-color: #e7e9f3; box-shadow: 0 6px 18px rgba(38,47,110,.07); transition: transform .2s, box-shadow .2s; }
body[data-pz="area"] .sold-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(38,47,110,.13); }
body[data-pz="area"] .sold-card b.num { color: #b81d24; font-size: 1.1rem; }
body[data-pz="area"] #townMkt { border-radius: 18px; }
body[data-pz="area"] .school-groups > div { background: #fff; border: 1px solid #e7e9f3; border-radius: 16px; padding: 14px 16px; box-shadow: 0 6px 18px rgba(38,47,110,.06); }
body[data-pz="area"] .school-groups .eyebrow { color: var(--brand); }
body[data-pz="area"] .school-groups a { text-decoration: none; font-weight: 600; }
body[data-pz="area"] .school-groups a:hover { text-decoration: underline; }
body[data-pz="area"] .faq details { border-radius: 14px; border-color: #e7e9f3; box-shadow: 0 4px 14px rgba(38,47,110,.06); transition: box-shadow .2s; }
body[data-pz="area"] .faq details[open] { box-shadow: 0 10px 24px rgba(38,47,110,.12); border-left: 4px solid var(--brand); }
body[data-pz="area"] .faq summary { color: var(--brand-deep); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
body[data-pz="area"] .faq summary::-webkit-details-marker { display: none; }
body[data-pz="area"] .faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--brand); transition: transform .25s; }
body[data-pz="area"] .faq details[open] summary::after { transform: rotate(45deg); }
body[data-pz="area"] .block > .panel:last-child { position: relative; overflow: hidden; }
body[data-pz="area"] .block > .panel:last-child::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--brand-deep), var(--brand) 50%, var(--flag)); }

/* ---------- Listing cards everywhere: lift and a soft shadow on hover (like the area pages) ---------- */
.card { transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(38,47,110,.15); }
@media (hover: none) { .card:hover { transform: none; } }
html.a11y-still .card:hover { transform: none; }
/* area pages: how many in each section */
.ak-n { display: inline-grid; place-items: center; min-width: 1.9em; height: 1.6em; padding: 0 .5em; margin-left: 4px; border-radius: 999px; font-size: .62em; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); vertical-align: middle; }
.area-kind + .area-kind .ak-n { background: linear-gradient(135deg, #f04a50, #b81d24); }

/* area pages: the numbers come in two rows, homes and then lots and land */
.tf-label { grid-column: 1 / -1; margin: 0 0 -4px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.tf-label.tf-land { margin-top: 8px; color: #2f7a3e; }
body[data-pz="area"] #townFacts > .tf-land ~ div::before { background: linear-gradient(90deg, #4f9b5c, #2f7a3e) !important; }
body[data-pz="area"] #townFacts > .tf-land ~ div b { color: #2f6b38 !important; }
body:not([data-pz="area"]) .tf-label { display: none; }

/* =========== Listing pages: more pizzazz =========== */
/* photos: rounder, a gentle zoom on hover */
.lp-page .gallery-one { border-radius: 20px; overflow: hidden; box-shadow: 0 14px 36px rgba(38,47,110,.16); }
.lp-page .gc-ph { overflow: hidden; }
.lp-page .gc-ph img { transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .3s; }
.lp-page .gc-ph:hover img { transform: scale(1.06); filter: brightness(1.04); }
.lp-page .g-all { border-radius: 999px; padding-inline: 14px; background: rgba(255,255,255,.95); color: var(--brand-deep); box-shadow: 0 6px 18px rgba(0,0,0,.22); font-weight: 700; transition: transform .2s, box-shadow .2s; }
.lp-page .g-all:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.28); }
/* the tabs under the photos: pills, the current one filled with Landmark blue */
.lp-page .jump { border-bottom: 0; padding-block: 8px; background: rgba(255,255,255,.97); }
.lp-page .jump-in { gap: 6px; }
.lp-page .jump-in button { border: 0; border-radius: 999px; padding: 8px 14px; transition: background .2s, color .2s; }
.lp-page .jump-in button:hover { background: #eef1fb; color: var(--brand-deep); }
.lp-page .jump-in button[aria-current="true"] { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; box-shadow: 0 6px 14px rgba(38,47,110,.25); }
/* price and the key facts */
.lp-page .d-head .price { background: linear-gradient(100deg, var(--brand-deep), var(--brand) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-page .d-head .price .was { -webkit-text-fill-color: initial; }
.lp-page #ov .facts { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; border: 0; background: none; margin-top: 14px; }
.lp-page #ov .facts > div { position: relative; overflow: hidden; border: 1px solid #e7e9f3 !important; border-radius: 14px; padding: 13px 14px 11px; background: #fff; box-shadow: 0 5px 16px rgba(38,47,110,.07); transition: transform .2s, box-shadow .2s; }
.lp-page #ov .facts > div::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--brand-deep)); }
.lp-page #ov .facts > div:nth-child(even)::before { background: linear-gradient(90deg, #f04a50, #b81d24); }
.lp-page #ov .facts > div:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(38,47,110,.12); }
.lp-page #ov .facts b { color: var(--brand-deep); font-size: 1.35rem; }
.lp-page .d-actions .btn { border-radius: 999px; transition: transform .15s, box-shadow .15s, background .15s; }
.lp-page .d-actions .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(38,47,110,.14); }
/* section headings get the blue-to-red marker */
.lp-page .lsec > h2, .lp-page #ov h2, .lp-page .near-h { display: flex; align-items: center; gap: 10px; color: var(--brand-deep); }
.lp-page .lsec > h2::before, .lp-page #ov h2::before { content: ""; width: 6px; height: 1.05em; border-radius: 4px; background: linear-gradient(180deg, var(--brand), var(--flag)); flex: none; }
/* map and flood note */
.lp-page .loc-map { border-radius: 18px; overflow: hidden; box-shadow: 0 8px 24px rgba(38,47,110,.12); }
.lp-page .loc-actions .btn { border-radius: 999px; }
.lp-page .flood { border-radius: 14px; }
/* what's nearby: little cards that lift, with the distance in a pill */
.lp-page .near { gap: 10px; }
.lp-page .near li { border: 1px solid #e7e9f3; border-radius: 14px; padding: 10px 14px; background: #fff; box-shadow: 0 3px 10px rgba(38,47,110,.05); transition: transform .2s, box-shadow .2s; }
.lp-page .near li:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(38,47,110,.12); }
.lp-page .near-what .eyebrow { color: var(--brand); }
.lp-page .near-mi { font-size: .82rem; color: var(--brand-deep); background: #eef1fb; border-radius: 999px; padding: 3px 9px; }
/* property details: rounder cards with a soft header */
.lp-page .dcard { border-radius: 16px; border-color: #e7e9f3; box-shadow: 0 6px 18px rgba(38,47,110,.07); }
.lp-page .dcard h3 { background: linear-gradient(90deg, #f4f6fe, #fff); border-bottom-color: #e7e9f3; }
/* price history: the timeline dots in Landmark colors with a soft ring */
.lp-page .h-list { border-left: 2px solid #dfe3f3; }
.lp-page .h-ev { border-bottom-color: #eef0f7; }
.lp-page .h-ev::before { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); box-shadow: 0 0 0 4px rgba(63,79,168,.14); }
.lp-page .h-ev.h-cut::before { background: linear-gradient(135deg, #f04a50, #b81d24); box-shadow: 0 0 0 4px rgba(200,30,37,.14); }
.lp-page .h-ev:hover { background: #fafbff; }
/* payment calculator and the tour box */
.lp-page .calc { border-radius: 18px; position: relative; overflow: hidden; border-color: #e7e9f3; box-shadow: 0 8px 24px rgba(38,47,110,.08); }
.lp-page .calc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--brand-deep), var(--brand) 50%, var(--flag)); }
.lp-page .calc .pay { background: linear-gradient(100deg, var(--brand-deep), var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-page .calc .bars > * { transition: filter .2s; }
.lp-page .calc .bars > *:hover { filter: brightness(1.12); }
.lp-page .tour { border-radius: 20px; overflow: hidden; box-shadow: 0 14px 36px rgba(38,47,110,.16); }
.lp-page .tour .days button { transition: transform .15s, box-shadow .15s; }
.lp-page .tour .days button:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(38,47,110,.14); }
/* sections rise in as they scroll into view */
@media (prefers-reduced-motion: no-preference) {
  .lp-page .d-head, .lp-page #ov .facts > div { animation: markPop .5s ease-out both; }
  .lp-page #ov .facts > div:nth-child(2) { animation-delay: .06s; } .lp-page #ov .facts > div:nth-child(3) { animation-delay: .12s; }
  .lp-page #ov .facts > div:nth-child(4) { animation-delay: .18s; } .lp-page #ov .facts > div:nth-child(5) { animation-delay: .24s; } .lp-page #ov .facts > div:nth-child(6) { animation-delay: .3s; }
  .lp-page .gallery-one { animation: pzHead .6s cubic-bezier(.2,.8,.2,1) both; }
}
html.a11y-still .lp-page .gallery-one, html.a11y-still .lp-page .d-head, html.a11y-still .lp-page #ov .facts > div { animation: none !important; }
@media (hover: none) { .lp-page .gc-ph:hover img { transform: none; } }
@media (max-width: 520px) {
  .lp-page #ov .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .lp-page #ov .facts > div:nth-child(odd):last-child { grid-column: auto; }
  .lp-page #ov .facts > div { padding: 11px 10px 9px; }
  .lp-page #ov .facts b { font-size: 1.15rem; }
}
/* town and neighborhood cards: a line for homes and one for lots and land */
.comm .al { display: flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--muted); opacity: 1 !important; }
.comm .al svg { width: 15px; height: 15px; flex: none; color: var(--brand); }
.comm .al + .al svg { color: #2f7a3e; }
.checker.checker > a .al, .checker.checker > a .al svg { color: #fff; }
.comm > a { align-content: start; }
.comm .al { white-space: nowrap; }

/* =========== Search filters: more pizzazz =========== */
.fpanel { border-radius: 22px; overflow: hidden; }
.fp-head { padding: 16px 22px; background: radial-gradient(120% 160% at 0% 0%, #5867cf 0%, var(--brand) 40%, var(--brand-deep) 100%); border-bottom: 0; position: relative; }
.fp-head::after { content: ""; position: absolute; right: -2px; top: -2px; width: 70px; height: 70px; background: linear-gradient(200deg, #f04a50, #c81e25); clip-path: polygon(0 0, 100% 0, 100% 100%); opacity: .9; pointer-events: none; }
.fp-head h2 { color: #fff; font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.fp-head h2::before { content: ""; width: 20px; height: 20px; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16M7 12h10M10 18h4'/%3E%3C/svg%3E") no-repeat center / contain; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16M7 12h10M10 18h4'/%3E%3C/svg%3E") no-repeat center / contain; }
.fp-x { color: #fff; position: relative; z-index: 1; }
.fp-x:hover { background: rgba(255,255,255,.18); color: #fff; }
.fp-body { padding: 14px 18px 18px; background: #f6f7fc; }
/* each group is its own card */
.fp-sec { border: 1px solid #e7e9f3 !important; border-radius: 18px; background: #fff; padding: 14px 16px 16px; margin-top: 12px; box-shadow: 0 4px 14px rgba(38,47,110,.06); }
.fp-sec:first-child { margin-top: 0; }
.fp-sec h3 { display: flex; align-items: center; gap: 8px; color: var(--brand-deep); font-size: 1rem; flex-wrap: wrap; }
.fp-sec > h3:first-child::before { content: ""; width: 26px; height: 26px; flex: none; border-radius: 8px; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); box-shadow: 0 4px 10px rgba(38,47,110,.2);
  -webkit-mask: none; }
.fp-sec > h3:first-child { position: relative; }
.fp-sec > h3:first-child::after { content: ""; position: absolute; left: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: #fff; -webkit-mask: var(--fp-ic) no-repeat center / contain; mask: var(--fp-ic) no-repeat center / contain; }
.fp-sec[data-sec="price"] { --fp-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12.5V4h8.5L21 13.5 13.5 21z'/%3E%3Ccircle cx='7.5' cy='8' r='1.4'/%3E%3C/svg%3E"); }
.fp-sec[data-sec="beds"] { --fp-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18V7M3 13h18v5M21 13v-2a3 3 0 00-3-3h-7v5'/%3E%3Ccircle cx='7' cy='10.5' r='1.6'/%3E%3C/svg%3E"); }
.fp-sec[data-sec="type"] { --fp-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5 12 4l9 7.5'/%3E%3Cpath d='M5.5 10v10h13V10'/%3E%3C/svg%3E"); }
.fp-sec[data-sec="more"] { --fp-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16M7 12h10M10 18h4'/%3E%3C/svg%3E"); }
.fp-sec[data-sec="beds"] > h3:first-child::before, .fp-sec[data-sec="more"] > h3:first-child::before { background: linear-gradient(135deg, #f04a50, #b81d24); box-shadow: 0 4px 10px rgba(158,23,29,.2); }
.fp-sec select.in { border-radius: 12px; border: 1.5px solid #dfe3f3; font-weight: 600; color: var(--brand-deep); }
.fp-sec select.in:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(63,79,168,.14); }
/* choices: lift on hover, Landmark blue with a check when picked */
.fp-opts button, .fp-tog { transition: transform .15s, box-shadow .15s, border-color .15s, background .15s, color .15s; }
.fp-opts button:hover, .fp-tog:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(38,47,110,.12); }
.fp-opts button[aria-checked="true"], .fp-tog[aria-pressed="true"] { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); border-color: transparent; box-shadow: 0 6px 14px rgba(38,47,110,.25); display: inline-flex; align-items: center; gap: 6px; }
.fp-opts button[aria-checked="true"]::before { content: ""; width: 12px; height: 12px; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / contain; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / contain; }
@media (prefers-reduced-motion: no-preference) { .fp-opts button[aria-checked="true"] { animation: fpPick .25s ease-out; } }
@keyframes fpPick { 0% { transform: scale(.92); } 60% { transform: scale(1.05); } 100% { transform: none; } }
.fp-links a, .fp-links .linkbtn { text-decoration: none; }
.fp-links a:hover, .fp-links .linkbtn:hover { text-decoration: underline; }
/* the bottom bar: Reset as a pill, Show results in the shaded red with a shine */
.fp-foot { border-radius: 0; background: #fff; box-shadow: 0 -6px 18px rgba(38,47,110,.06); border-top-color: #eef0f7; }
.fp-foot .btn.ghost { border-radius: 999px; }
.fp-foot .btn.flag { position: relative; overflow: hidden; border-radius: 14px; font-weight: 750; background: linear-gradient(140deg, #f04a50 0%, #d42a31 45%, #9e171d 100%); box-shadow: 0 8px 20px rgba(158,23,29,.3), inset 0 1px 0 rgba(255,255,255,.25); transition: transform .2s, box-shadow .2s; }
.fp-foot .btn.flag:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(158,23,29,.38); }
.fp-foot .btn.flag::after { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-130%); background: linear-gradient(100deg, transparent 25%, rgba(255,255,255,.38) 50%, transparent 75%); }
@media (prefers-reduced-motion: no-preference) {
  .fp-foot .btn.flag.fp-pop { animation: fpPop .35s ease-out; }
  .fp-foot .btn.flag.fp-pop::after { animation: flagShine .8s ease-out; }
  .fpanel:not([hidden]) { animation: fpOpen .28s cubic-bezier(.2,.9,.3,1.05) both; }
  .fpanel-back:not([hidden]) { animation: fpFade .25s ease-out both; }
}
@keyframes fpPop { 0% { transform: scale(1); } 40% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes fpOpen { from { opacity: 0; transform: translateX(-50%) translateY(-10px) scale(.98); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes fpOpenPhone { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fpFade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 760px) {
  .fpanel { border-radius: 0; }
  @media (prefers-reduced-motion: no-preference) { .fpanel:not([hidden]) { animation-name: fpOpenPhone; } }
  .fp-body { padding: 12px; }
  .fp-sec { padding: 12px 14px 14px; }
}
html.a11y-still .fpanel, html.a11y-still .fpanel *, html.a11y-still .fpanel-back { animation: none !important; }
.fpanel-back { background: rgba(15,18,40,.45); }

/* homepage towns: the same cards as the Areas page */
.home-areas.comm { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.home-areas.comm > a { position: relative; border-radius: 18px; padding: 18px 18px 16px; gap: 4px; border: 1px solid #e7e9f3; box-shadow: 0 6px 20px rgba(38,47,110,.07); transition: transform .2s, box-shadow .2s; overflow: hidden; }
.home-areas.comm > a:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(38,47,110,.15); }
.home-areas.comm b { font-size: 1.15rem; color: var(--brand-deep); }
@media (max-width: 640px) { .home-areas.comm { grid-template-columns: 1fr 1fr; gap: 10px; } .home-areas.comm > a { padding: 14px 14px 12px; } .home-areas .al { font-size: .76rem; } .home-areas .comm-go { top: 14px; right: 12px; } }
@media (max-width: 640px) { .home-areas .al { white-space: normal; align-items: flex-start; line-height: 1.35; } .home-areas .al svg { margin-top: 1px; } }

/* ---------- Hero picture until there's video (heroArt): stacked layers; each moving layer slides or fades as a whole ---------- */
.hero-art { position: absolute; inset: 0; overflow: hidden; }
.ha-l { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ha-clouds { position: absolute; inset: 0 -20%; pointer-events: none; }
.ha-clouds i { position: absolute; display: block; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.16), rgba(255,255,255,0)); }
.ha-clouds .hc1 { left: 8%; top: 18%; width: 34%; height: 9%; }
.ha-clouds .hc2 { left: 48%; top: 28%; width: 40%; height: 8%; background: radial-gradient(closest-side, rgba(255,215,181,.2), rgba(255,215,181,0)); }
.ha-clouds .hc3 { left: 72%; top: 12%; width: 30%; height: 7%; }
@media (prefers-reduced-motion: no-preference) {
  .ha-clouds { animation: haDrift 60s ease-in-out infinite alternate; will-change: transform; }
  .ha-wins { opacity: .15; animation: haLight 10s ease-in-out infinite; will-change: opacity; }
  .ha-w2 { animation-delay: -3.3s; } .ha-w3 { animation-delay: -6.6s; }
  .ha-glints { animation: haGlint 3.2s ease-in-out infinite; will-change: opacity; }
  .ha-g2 { animation-delay: -1.6s; }
  .ha-rips { animation: haRip 9s ease-in-out infinite alternate; will-change: transform; }
  .ha-glow { animation: haGlow 8s ease-in-out infinite; will-change: opacity; }
  .hero.ha-off .hero-art *, body.ha-hidden .hero-art * { animation-play-state: paused !important; }   /* off screen: nothing runs */
}
html.a11y-still .hero-art * { animation: none !important; }
html.a11y-still .ha-wins { opacity: 1; }
@keyframes haDrift { from { transform: translateX(-8%); } to { transform: translateX(8%); } }
@keyframes haLight { 0%, 100% { opacity: .15; } 30%, 75% { opacity: 1; } }   /* a third of the windows light up at a time */
@keyframes haGlint { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes haRip { from { transform: translateX(-1.5%); opacity: .6; } to { transform: translateX(1.5%); opacity: 1; } }
@keyframes haGlow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ---------- Homepage section headings: a little line before the label, a blue-to-red bar that draws in ---------- */
.home-page .sec-head h2, .home-page .pop-sec > .eyebrow { position: relative; }
.home-page .sec-head .eyebrow, .home-page .pop-sec > .eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); letter-spacing: .12em; }
.home-page .sec-head .eyebrow::before, .home-page .pop-sec > .eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--brand), var(--flag)); }
.home-page .sec-head h2 { color: var(--brand-deep); padding-bottom: 10px; }
.home-page .sec-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--brand-deep), var(--brand) 55%, var(--flag)); }
@media (prefers-reduced-motion: no-preference) {
  .home-page .sh.reveal .eyebrow::before, .home-page .pop-sec > .eyebrow.sh::before { transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.2,.8,.2,1) .1s; }
  .home-page .sh.reveal h2::after { transform: scaleX(0); transform-origin: left; transition: transform .8s cubic-bezier(.2,.8,.2,1) .25s; }
  .home-page .sh.reveal.shown .eyebrow::before, .home-page .pop-sec > .eyebrow.sh.shown::before, .home-page .sh.reveal.shown h2::after { transform: none; }
}
html.a11y-still .home-page .sh .eyebrow::before, html.a11y-still .home-page .sh::before, html.a11y-still .home-page .sh h2::after { transform: none !important; transition: none !important; }
/* hero text stays easy to read over the riverfront picture: a deeper blue wash behind the words and a stronger shadow */
.hero.has-art::before { background:
  radial-gradient(70% 85% at 22% 52%, rgba(16,20,58,.78) 0%, rgba(16,20,58,.55) 45%, rgba(16,20,58,0) 80%),
  linear-gradient(90deg, rgba(21,26,74,.7) 0%, rgba(21,26,74,.45) 45%, rgba(21,26,74,.08) 80%, rgba(21,26,74,0)); }
@media (max-width: 720px) { .hero.has-art::before { background: linear-gradient(180deg, rgba(16,20,58,.72) 0%, rgba(16,20,58,.55) 55%, rgba(16,20,58,.75) 100%); } }
.hero.has-art h1 { text-shadow: 0 2px 3px rgba(8,10,34,.55), 0 6px 28px rgba(8,10,34,.6); }
.hero.has-art .lede { color: #fff; text-shadow: 0 1px 2px rgba(8,10,34,.7), 0 3px 16px rgba(8,10,34,.65); }
/* listing pages: the estimate switch (only the accounts allowed to see it) */
.est-switch { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding: 10px 12px; border-radius: 14px; border: 1.5px dashed #c9cff0; background: #f6f7fe; font-size: .9rem; }
.est-switch .es-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); flex: none; }
.est-switch .es-ic svg { width: 16px; height: 16px; }
.est-switch .es-tx { flex: 1; min-width: 180px; }
.est-switch .btn { border-radius: 999px; }
.est-switch .btn.es-sure { background: var(--flag); color: #fff; border-color: var(--flag); }

/* ---------- speed: things that keep moving only while they're on screen and the tab is open ---------- */
body.ha-hidden *, body.ha-hidden *::before, body.ha-hidden *::after { animation-play-state: paused !important; }

@keyframes ringPulse { 0% { transform: scale(1); opacity: .9; } 70% { transform: scale(2.8); opacity: 0; } 100% { transform: scale(2.8); opacity: 0; } }   /* a ring that grows and fades (moves, never repaints) */
/* Mark's speaker button: reads his answers out loud (the device's own voice) */
.mark-voice { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .15s; position: relative; z-index: 1; }
.mark-voice svg { width: 19px; height: 19px; }
.mark-voice:hover { background: rgba(255,255,255,.24); transform: scale(1.05); }
.mark-voice[aria-pressed="true"] { background: #fff; color: var(--brand-deep); border-color: #fff; }
.mark-voice[hidden] { display: none; }
.chat-panel:not(.mark-mode) .mark-voice { display: none; }
.md-head .mark-voice { width: 32px; height: 32px; margin-left: 4px; }
.md-head .mark-voice svg { width: 17px; height: 17px; }
@media (prefers-reduced-motion: no-preference) { .mark-voice[aria-pressed="true"] svg path:last-child { animation: voiceWave 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: left center; } }
@keyframes voiceWave { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
html.a11y-still .mark-voice svg path { animation: none !important; }
.ask-head .mark-voice { margin-left: auto; width: 34px; height: 34px; }
.ask-head .mark-voice + .ask-clear { margin-left: 8px; }

/* ---------- phones: nothing wider than the screen ---------- */
p.meta { display: block; }   /* (.meta is a flex row for card details; in a sentence it put each bold word on its own line) */
.panel { min-width: 0; }
.tbl-wrap { max-width: 100%; }
@media (max-width: 640px) {
  body .tbl-wrap:has(> table:not(.comps)) { overflow-x: auto; }   /* other tables scroll inside their box, not the page */
  .mark-use { font-size: .8rem; }
  .mark-use th, .mark-use td { padding: 7px 6px; }
  .mark-use thead th { white-space: normal; line-height: 1.2; }
  /* Edit the website: the tabs slide sideways inside their row */
  .edit-tabs { display: flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .edit-tabs::-webkit-scrollbar { display: none; }
  .edit-tabs > button { flex: none; white-space: nowrap; }
}
/* Visitor stats: questions and who answered them */
.mq-filter { margin-bottom: 10px; }
.mq-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-height: 520px; overflow-y: auto; }
.mq-list li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: baseline; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.mq-list li[hidden] { display: none; }
.mq-list .meta { grid-column: 2; font-size: .78rem; }
.mq-q { overflow-wrap: anywhere; }
.mq-badge { grid-row: span 2; align-self: start; font-size: .7rem; font-weight: 750; letter-spacing: .03em; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.mq-ai { background: #eef1ff; color: var(--brand-deep); }
.mq-site { background: #e7f5ea; color: #2f6b38; }
.mq-fb { background: #fff4d6; color: #7a5a00; }

/* =========== Commercial page: counts that jump to each section, red/blue accents on the sections =========== */
.comm-jumps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.comm-jump { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 18px; color: #fff; text-decoration: none; position: relative; overflow: hidden;
  background: linear-gradient(140deg, #5162c9 0%, var(--brand) 45%, var(--brand-deep) 100%); box-shadow: 0 10px 26px rgba(38,47,110,.18); transition: transform .2s, box-shadow .2s; }
.comm-jump + .comm-jump { background: linear-gradient(140deg, #f04a50 0%, #d42a31 45%, #9e171d 100%); box-shadow: 0 10px 26px rgba(158,23,29,.18); }
.comm-jump::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.09); }
.comm-jump:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(38,47,110,.24); }
.comm-jump .pz-perk-ic { background: rgba(255,255,255,.16); color: #fff; }
.comm-jump b { display: block; font-size: 1.9rem; line-height: 1.05; }
.comm-jump .meta { color: rgba(255,255,255,.88); font-size: .95rem; }
.comm-jump .go { margin-left: auto; font-size: 1.3rem; transition: transform .2s; }
.comm-jump:hover .go { transform: translateX(4px); }
.comm-sec { scroll-margin-top: 90px; }
.comm-sec .sec-head h2 { position: relative; padding-bottom: 8px; }
.comm-sec .sec-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--brand), var(--flag)); }
.comm-all { font-weight: 600; white-space: nowrap; }
.comm-cta > .tile.dark { background: radial-gradient(120% 140% at 0% 0%, #5867cf 0%, var(--brand) 38%, var(--brand-deep) 100%); border-radius: 18px; }
@media (max-width: 640px) {
  .comm-jumps { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .comm-jump { padding: 14px 16px; }
  .comm-jump b { font-size: 1.6rem; }
  .comm-cta { grid-template-columns: minmax(0, 1fr) !important; }
}

/* =========== Guide and blog posts: banner (red for blog posts), reading bar, "In this guide", styled body, help box =========== */
.read-bar { position: fixed; left: 0; right: 0; top: 0; height: 4px; z-index: 60; pointer-events: none; }
.read-bar b { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--brand), var(--flag)); will-change: transform; }
.art-page { max-width: 780px; margin-inline: auto; }
body[data-pz] .art-page .page-head.pz-head { margin-top: 14px; }
body[data-pz="blog"] .pz-head { background: radial-gradient(120% 140% at 0% 0%, #f2666b 0%, #d42a31 40%, #9e171d 100%); box-shadow: 0 18px 40px rgba(158,23,29,.22); }
body[data-pz="blog"] .pz-tri { background: linear-gradient(200deg, #6f7de0, var(--brand-deep)); }
body[data-pz] .pz-head h1 { max-width: 26ch; }
.art-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.art-meta span { font-size: .84rem; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24); border-radius: 999px; padding: 3px 11px; }
.art-toc { margin: 22px 0 6px; padding: 18px 22px; border-radius: 18px; background: #f4f6fd; border: 1px solid #e3e7f6; }
.art-toc > b { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.art-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: 4px; }
.art-toc li { counter-increment: toc; }
.art-toc a { display: flex; gap: 10px; align-items: baseline; padding: 6px 8px; margin-inline: -8px; border-radius: 10px; color: var(--brand-deep); text-decoration: none; font-weight: 600; transition: background .15s; }
.art-toc a::before { content: counter(toc); flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; color: #fff; background: var(--brand); transform: translateY(3px); }
.art-toc a:hover { background: #e7ebfa; }
.is-blog .art-toc { background: #fdf3f3; border-color: #f6dede; }
.is-blog .art-toc > b { color: #c81e25; } .is-blog .art-toc a::before { background: #d42a31; } .is-blog .art-toc a:hover { background: #fae4e4; }
.art-page .doc-body { font-size: 1.06rem; margin-top: 18px; }
.art-page .doc-body > p:first-child { font-size: 1.16rem; color: var(--ink); line-height: 1.6; }
.art-page .doc-body h2 { position: relative; color: var(--brand-deep); font-size: 1.45rem; margin: 36px 0 12px; padding-top: 14px; scroll-margin-top: 90px; }
.art-page .doc-body h2::before { content: ""; position: absolute; left: 0; top: 0; width: 44px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--brand), var(--flag)); }
.art-page.is-blog .doc-body h2::before { background: linear-gradient(90deg, var(--flag), #f27b80); }
.art-page .doc-body h3 { color: var(--brand-deep); scroll-margin-top: 90px; }
.art-page .doc-body ul { list-style: none; padding-left: 0; display: grid; gap: 8px; }
.art-page .doc-body ul li { position: relative; padding: 10px 14px 10px 40px; border-radius: 12px; background: #f8f9fd; border: 1px solid #eceef7; }
.art-page .doc-body ul li::before { content: ""; position: absolute; left: 15px; top: 1.05em; width: 9px; height: 9px; border-radius: 3px; transform: rotate(45deg); background: var(--brand); }
.art-page.is-blog .doc-body ul li::before { background: var(--flag); }
.art-page .doc-body ol { padding-left: 0; list-style: none; counter-reset: step; display: grid; gap: 10px; }
.art-page .doc-body ol li { counter-increment: step; position: relative; padding-left: 44px; min-height: 30px; }
.art-page .doc-body ol li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); }
.art-page .doc-body strong { color: var(--brand-deep); }
.art-page .doc-body a { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.art-cta { margin-top: 34px; padding: 26px 26px 24px; border: 0 !important; color: #fff; background: linear-gradient(140deg, #5162c9 0%, var(--brand) 45%, var(--brand-deep) 100%) !important; }
.art-cta h3 { color: #fff; font-size: 1.3rem; margin: 0 0 6px; }
.art-cta p { color: rgba(255,255,255,.88); margin: 0 0 14px; }
.art-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.art-cta .btn { background: #fff; color: var(--brand-deep); border-color: #fff; }
.art-cta .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.is-blog .art-cta { background: linear-gradient(140deg, #f04a50 0%, #d42a31 45%, #9e171d 100%) !important; }
.is-blog .art-cta .btn:not(.ghost) { color: #9e171d; }
@media (max-width: 640px) {
  .art-page .doc-body { font-size: 1.02rem; }
  .art-page .doc-body h2 { font-size: 1.25rem; }
  .art-toc { padding: 14px 16px; }
  .art-cta { padding: 22px 18px; }
  .art-cta-btns .btn { flex: 1 1 100%; justify-content: center; text-align: center; }
}
html.a11y-still .read-bar { display: none; }

/* =========== The Curtis Building page =========== */
.cb-facts { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.cb-fact { display: grid; align-content: center; gap: 2px; padding: 14px 18px; border-radius: 18px; background: #fff; border: 1px solid #e7e9f3; box-shadow: 0 4px 14px rgba(38,47,110,.06); }
.cb-fact b { font-size: 1.7rem; line-height: 1.05; color: var(--brand-deep); }
.cb-fact .meta { font-size: .9rem; }
.cb-incl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cb-incl .pz-perk:nth-child(2n) .pz-perk-ic { background: linear-gradient(135deg, #f04a50, #b81d24); }
.cb-incl .pz-perk:nth-child(2n+1) .pz-perk-ic { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); }
.cb-story { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cb-story h2 { margin: 4px 0 14px; }
.cb-time { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; position: relative; }
.cb-time::before { content: ""; position: absolute; left: 30px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brand), var(--flag)); }
.cb-time li { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 14px; align-items: start; }
.cb-time b { position: relative; z-index: 1; justify-self: center; font-size: .82rem; color: #fff; background: var(--brand); border-radius: 999px; padding: 4px 9px; }
.cb-time li:nth-child(2) b { background: var(--flag); } .cb-time li:nth-child(3) b { background: var(--brand-deep); }
.cb-time span { line-height: 1.6; }
.cb-where-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
@media (max-width: 900px) {
  .cb-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cb-facts .comm-jump { grid-column: 1 / -1; }
  .cb-incl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cb-story { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .cb-facts { gap: 10px; }
  .cb-fact { padding: 12px; } .cb-fact b { font-size: 1.3rem; } .cb-fact .meta { font-size: .8rem; }
  .cb-incl { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

/* the Landmark logo in place of the word in the homepage heading */
.hero h1 .h1-logo { display: inline-block; height: .92em; width: auto; vertical-align: -0.1em; margin-left: .06em; border-radius: 0;
  box-shadow: 0 0 0 2px rgba(255,255,255,.9), 0 8px 24px rgba(8,10,34,.4); }
.hero h1.two-line { line-height: 1.3; }   /* a little room between the lines whenever the heading wraps (heroLines) */
