/* PBP Real Estate — brand values from /work/brand/DESIGN.md (live-site sampled 2026-08-08).
   Montserrat display, Lato body, square corners, #3C5FF7 CTA. Do not invent values. */
:root {
  --pbp-cta: #3C5FF7;
  --pbp-navy: #1b2a3a;
  --pbp-text: #555555;
  --pbp-ink: #222222;
  --pbp-cyan: #24E4D6;
  --pbp-blue: #3A31E5;
  --maxw: 780px;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Lato, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--pbp-text);
  background: #fff;
  line-height: 1.65;
  font-size: 17px;
}
h1, h2, h3, h4, .display {
  font-family: Montserrat, system-ui, sans-serif;
  color: var(--pbp-ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 400;
  line-height: 1.2;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: 1.4rem; letter-spacing: 0.08em; margin-top: 2.4em; }
a { color: var(--pbp-blue); }
img, iframe, video, table { max-width: 100%; }
iframe { aspect-ratio: 16/9; height: auto; border: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.site-header { background: var(--pbp-navy); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-header a { color: #fff; text-decoration: none; font-family: Montserrat, sans-serif; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; }
.site-header nav a + a { margin-left: 22px; }
.brand { font-weight: 700 !important; letter-spacing: 0.14em !important; }
.btn {
  display: inline-block; background: var(--pbp-cta); color: #fff; text-decoration: none;
  padding: 14px 28px; border-radius: 0; font-family: Montserrat, sans-serif;
  text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem;
}
.rule { height: 4px; border: 0; background: linear-gradient(90deg, var(--pbp-cyan) 0%, var(--pbp-blue) 100%); margin: 22px 0 30px; }
article :is(p, ul, ol) { font-size: 1.02rem; }
.meta { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.09em; font-family: Montserrat, sans-serif; }
.post-list { list-style: none; padding: 0; }
.post-list li { padding: 16px 0; border-bottom: 1px solid #eee; }
.post-list a { font-family: Montserrat, sans-serif; text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none; font-size: 0.95rem; }
footer.site-footer { margin-top: 70px; padding: 34px 0; border-top: 1px solid #eee; font-size: 0.82rem; }

/* Area market snapshot (data: PBP BeachesMLS feed via area_market_stats.py) */
.mkt { margin-top: 3em; border-top: 4px solid var(--pbp-cta); padding-top: 8px; }
.mkt h2 { margin-top: 1.2em; }
.mkt h3 { font-size: 1.05rem; margin: 1.8em 0 0.6em; }
.mkt-note { font-size: 0.95rem; }
.mkt-table { width: 100%; border-collapse: collapse; margin: 0 0 6px; }
.mkt-table th, .mkt-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #eee; font-size: 0.95rem; }
.mkt-table th { font-weight: 400; color: var(--pbp-text); width: 60%; }
.mkt-table td { font-family: Montserrat, sans-serif; color: var(--pbp-ink); }
.mkt-cmp { font-family: Lato, sans-serif; color: var(--pbp-text); font-size: 0.85rem; }
.mkt-thin { font-size: 0.9rem; background: #f7f8fa; border-left: 3px solid var(--pbp-cyan); padding: 12px 14px; }
.mkt-src { font-size: 0.8rem; color: #777; margin-top: 2em; }
.mkt-cta { margin: 1.6em 0 0; }
.nbhd-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 24px; }
.nbhd-grid li { padding: 8px 0; border-bottom: 1px solid #eee; }
.nbhd-grid a { font-family: Montserrat, sans-serif; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.82rem; text-decoration: none; display: block; }
.nbhd-grid .mkt-cmp { font-size: 0.78rem; }
.mkt-up { margin-top: 1.6em; font-size: 0.95rem; }

/* Owned lead form (/api/lead -> TrinityOS). Replaces RealGeeks capture. */
.lead-form { margin: 2em 0 0; padding: 26px; background: #f7f8fa; border-top: 4px solid var(--pbp-cta); }
.lf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-bottom: 14px; }
@media (max-width: 640px) { .lf-row { grid-template-columns: 1fr; } }
.lf-field { display: block; }
.lf-field > span { display: block; font-family: Montserrat, sans-serif; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--pbp-ink); margin-bottom: 5px; }
.lf-field > span em { text-transform: none; letter-spacing: 0; color: #777; font-style: normal; }
.lf-field input, .lf-field select, .lf-field textarea {
  width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid #d8dce3;
  background: #fff; font-family: Lato, sans-serif; font-size: 1rem; color: var(--pbp-text); border-radius: 0;
}
.lf-field input:focus, .lf-field select:focus, .lf-field textarea:focus { outline: 2px solid var(--pbp-cyan); outline-offset: 0; border-color: var(--pbp-cyan); }
.lf-full { margin-bottom: 16px; }
.lf-consent { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; font-size: 0.82rem; line-height: 1.5; color: #4a4f57; }
.lf-consent input { margin-top: 3px; flex: 0 0 auto; width: 16px; height: 16px; }
.lf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lf-submit {
  display: inline-block; background: var(--pbp-cta); color: #fff; border: 0; cursor: pointer;
  padding: 15px 32px; font-family: Montserrat, sans-serif; text-transform: uppercase;
  letter-spacing: 1px; font-size: 0.8rem; border-radius: 0;
}
.lf-submit:disabled { opacity: 0.55; cursor: default; }
.lf-status { margin: 14px 0 0; font-size: 0.95rem; }
.lf-status.lf-ok { color: #14663a; font-weight: 700; }
.lf-status.lf-error { color: #96231d; }
.lf-footnote { margin: 12px 0 0; font-size: 0.85rem; color: #6b7079; }

/* ── IDX property search (/search/) ────────────────────────────────────────────
   Data: BeachesMLS via SimplyRETS, proxied through /api/idx so credentials never
   reach the browser. Attribution and MLS notices are required furniture, not
   decoration - see functions/api/idx.ts before changing anything here. */
.idx-form { background: #f7f8fa; border-top: 4px solid var(--pbp-cta); padding: 22px; margin: 0 0 22px; }
.idx-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 16px; margin-bottom: 14px; }
.idx-row5 { grid-template-columns: repeat(5, 1fr); }
.idx-span2 { grid-column: span 2; }
@media (max-width: 820px) { .idx-row, .idx-row5 { grid-template-columns: repeat(2, 1fr); } .idx-span2 { grid-column: span 2; } }
@media (max-width: 480px) { .idx-row, .idx-row5 { grid-template-columns: 1fr; } .idx-span2 { grid-column: span 1; } }
.idx-field { display: block; }
.idx-field > span { display: block; font-family: Montserrat, sans-serif; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--pbp-ink); margin-bottom: 5px; }
.idx-field > span em { text-transform: none; letter-spacing: 0; color: #888; font-style: normal; }
.idx-field input, .idx-field select {
  width: 100%; padding: 11px 12px; border: 1px solid #d8dce3; background: #fff;
  font-family: Lato, sans-serif; font-size: 1rem; color: var(--pbp-text); border-radius: 0;
}
.idx-field input:focus, .idx-field select:focus { outline: 2px solid var(--pbp-cyan); outline-offset: 0; border-color: var(--pbp-cyan); }
.idx-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.idx-submit {
  background: var(--pbp-cta); color: #fff; border: 0; cursor: pointer; padding: 14px 34px;
  font-family: Montserrat, sans-serif; text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem;
}
.idx-submit:hover { background: #2f4ede; }
.idx-reset { background: none; border: 0; color: #777; cursor: pointer; font-size: 0.82rem; text-decoration: underline; padding: 0; }
.idx-sortwrap { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.idx-sortlabel { font-family: Montserrat, sans-serif; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--pbp-ink); }
.idx-sortwrap select { padding: 9px 10px; border: 1px solid #d8dce3; background: #fff; font-family: Lato, sans-serif; font-size: 0.9rem; border-radius: 0; }
.idx-status { font-size: 0.88rem; color: #666; margin: 0 0 14px; }
.idx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px 22px; }
.idx-card { border-bottom: 1px solid #eee; padding-bottom: 14px; }
.idx-card-link { text-decoration: none; color: inherit; display: block; }
.idx-photo { width: 100%; height: 190px; object-fit: cover; display: block; background: #eef0f3; }
.idx-photo-none { display: flex; align-items: center; justify-content: center; color: #999; font-size: 0.82rem; }
.idx-card-body { padding-top: 10px; }
.idx-price { font-family: Montserrat, sans-serif; color: var(--pbp-ink); font-size: 1.12rem; margin: 0 0 3px; }
.idx-addr { margin: 0 0 3px; font-size: 0.95rem; color: var(--pbp-ink); }
.idx-facts { margin: 0; font-size: 0.85rem; color: #777; }
.idx-badge { display: inline-block; font-family: Montserrat, sans-serif; font-size: 0.62rem; letter-spacing: 0.09em; text-transform: uppercase; padding: 3px 8px; vertical-align: middle; margin-left: 6px; }
.idx-badge-ok { background: #e8f7ef; color: #1c7a45; }
.idx-badge-warn { background: #fff4e0; color: #8a5a00; }
/* Attribution is a licence requirement, never a style choice. */
.idx-attrib { font-size: 0.75rem; color: #888; margin: 8px 0 0; }
.idx-attrib-missing { background: #fff4e0; color: #8a5a00; padding: 5px 8px; }
.idx-pager { display: flex; align-items: center; gap: 18px; justify-content: center; margin: 34px 0 0; }
.idx-page-btn { background: none; border: 1px solid #d8dce3; padding: 10px 18px; cursor: pointer; font-family: Montserrat, sans-serif; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--pbp-ink); }
.idx-page-btn:disabled { opacity: 0.4; cursor: default; }
.idx-page-label { font-size: 0.82rem; color: #777; }
.idx-help { margin-top: 3em; }
.idx-legal { margin-top: 3em; padding-top: 16px; border-top: 1px solid #eee; font-size: 0.72rem; line-height: 1.6; color: #777; }
.idx-legal p { margin: 0 0 8px; }
.idx-logo { display: block; margin-bottom: 10px; width: 180px; height: auto; max-width: 100%; }
.idx-logo-missing { background: #fff4e0; color: #8a5a00; padding: 9px 11px; font-size: 0.75rem; }

/* /homes-for-sale/ hub: crawl path + orientation for the 332 geo pages. */
.hub-county { margin-top: 2.4em; }
.hub-county h2 { margin-top: 0; }
.hub-next { margin-top: 3em; padding-top: 8px; border-top: 4px solid var(--pbp-cta); }
.mkt-cta2 { margin: 0.6em 0 0; font-size: 0.92rem; }
/* Secondary link inside a hub row: must not inherit the grid's uppercase heading style. */
.nbhd-grid .hub-sub { display: block; margin-top: 2px; }
.nbhd-grid .hub-sub a { font-family: Lato, sans-serif; text-transform: none; letter-spacing: 0; font-size: 0.8rem; }

/* Area CTAs. Replaced the RealGeeks 300x92 "click here" button images (2026-08-22). */
.area-cta { margin: 1.6em 0 2em; display: flex; flex-wrap: wrap; gap: 12px; }
.btn-alt { background: #fff; color: var(--pbp-cta); box-shadow: inset 0 0 0 2px var(--pbp-cta); }
.btn-alt:hover { background: var(--pbp-cta); color: #fff; }

/* Sitewide header + footer, matching the design Grant approved 2026-08-22.
   The homepage renders its own header over the hero photograph (bareHeader). */
.site-header .wrap { max-width: 1180px; }
.site-header nav { display: flex; align-items: center; flex-wrap: wrap; }
.site-header nav a { opacity: 0.86; }
.site-header nav a:hover { opacity: 1; }
.site-header nav a.tel { letter-spacing: 0.06em; font-size: 0.82rem; opacity: 1; }
@media (max-width: 1100px) { .site-header nav a.sec { display: none; } }
@media (max-width: 780px) {
  .site-header .wrap { height: auto; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; gap: 8px; }
  .site-header nav a + a { margin-left: 14px; }
}
footer.site-footer {
  margin-top: 70px; padding: 44px 0 40px; border-top: 0;
  background: var(--pbp-navy); color: #c8d0dc; font-size: 0.82rem;
}
footer.site-footer .wrap { max-width: 1180px; }
footer.site-footer a { color: #fff; }
footer.site-footer .fid { font-family: Montserrat, sans-serif; font-size: 0.78rem; letter-spacing: 0.03em; color: #fff; margin: 0 0 16px; }
/* A phone number broken across two lines ("561-395-" / "8418") looks like a typo and
   cannot be tapped as one target. Keep every phone number, and the licence numbers,
   whole wherever they appear. [Grant, 2026-08-27] */
a[href^="tel:"], .nowrap { white-space: nowrap; }
footer.site-footer .fid .fid-line { display: block; }
footer.site-footer .fid .fid-sub { margin-top: 4px; opacity: 0.85; }
footer.site-footer .flinks { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0 0 22px; }
footer.site-footer .flinks a { font-family: Montserrat, sans-serif; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; }
footer.site-footer .fsmall { font-size: 0.76rem; line-height: 1.6; margin: 0 0 12px; max-width: 78em; }
footer.site-footer .fsmall strong { color: #c8d0dc; }
footer.site-footer .eho { display: inline-block; border: 1px solid #8e98a8; font-size: 0.6rem; letter-spacing: 0.1em; padding: 2px 5px; margin-right: 6px; vertical-align: 1px; }

/* Saved searches: "email me new listings like this" on /search/. No account, express
   consent only, and the panel states the current criteria so the visitor knows what
   they are subscribing to. [neo, 2026-08-26] */
.idx-save { margin-top: 3em; padding: 26px 24px; background: #f6f7f9; border-top: 4px solid var(--pbp-cta); }
.idx-save h2 { margin-top: 0; }
.idx-save-lede { margin: 0 0 10px; }
.idx-save-current { margin: 0 0 18px; padding: 10px 14px; background: #fff; border-left: 3px solid var(--pbp-cyan); font-family: Montserrat, sans-serif; font-size: 0.9rem; color: var(--pbp-ink); }
.idx-save-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 18px; margin-bottom: 14px; }
.idx-check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; font-size: 0.88rem; line-height: 1.5; color: #444; }
.idx-check input { margin-top: 3px; flex: 0 0 auto; }
.idx-save-status { margin: 12px 0 0; font-size: 0.9rem; color: var(--pbp-ink); }
.idx-save-fine { margin: 10px 0 0; font-size: 0.75rem; color: #888; }
.idx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Market report call to action, reusable across area, neighborhood and blog pages. */
.mr-cta { margin: 2.6em 0; padding: 22px 24px; background: #f6f7f9; border-left: 4px solid var(--pbp-cta); }
.mr-cta h2, .mr-cta h3 { margin-top: 0; }
.mr-cta p { margin: 0 0 12px; }
.mr-cta .btn { display: inline-block; }
.mr-cta-fine { margin: 10px 0 0 !important; font-size: 0.75rem; color: #888; }
/* Market-report free-text hint (added 2026-08-27 with county-grouped areas). */
.mr-field span em.mr-opt{font-style:normal;font-weight:400;text-transform:none;letter-spacing:0;opacity:.7}

/* ---------------------------------------------------------------------------
   /selling/ rebuild, 2026-08-27 (Grant: "this page needs a major refresh").
   Replaces a legacy 25-item listing-presentation list and an outdated portals
   graphic. The flow diagram is plain HTML/CSS rather than an image so it stays
   sharp, reads on a phone, and can be edited without a design round trip.
--------------------------------------------------------------------------- */
.sell-lede{max-width:66ch;font-size:1.05rem;line-height:1.7}
.sell-cta-top,.sell-cta-bottom{border:1px solid #d8dbe8;padding:22px 24px;margin:26px 0 34px;background:#f8f9fc}
.sell-cta-bottom{margin:34px 0}
.sell-cta-kicker{font-family:Montserrat,sans-serif;font-size:.7rem;font-weight:700;letter-spacing:.09em;
  text-transform:uppercase;color:#3A31E5;margin:0 0 10px}
.sell-cta-line{margin:0 0 12px;max-width:64ch;line-height:1.65}
.sell-cta-actions{margin:0 0 12px;display:flex;flex-wrap:wrap;gap:14px;align-items:center}
.sell-btn{display:inline-block;background:#3C5FF7;color:#fff;font-family:Montserrat,sans-serif;font-size:.78rem;
  font-weight:700;letter-spacing:1px;text-transform:uppercase;padding:14px 26px;text-decoration:none;border-radius:0}
.sell-btn:hover{background:#2c49cf;color:#fff}
.sell-or{font-size:.9rem;color:#4b5563}
.sell-cta-fine{margin:6px 0 0;font-size:.88rem;color:#4b5563}

.sell-flow{border:1px solid #d8dbe8;padding:22px 20px;margin:28px 0}
.sell-flow-title{font-family:Montserrat,sans-serif;font-size:.72rem;font-weight:700;letter-spacing:.08em;
  text-transform:uppercase;color:#6b7280;margin:0 0 18px;text-align:center}
.sell-flow-row{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;gap:12px;align-items:stretch}
.sell-flow-row-2{grid-template-columns:repeat(3,1fr)}
.sell-node{border:1px solid #e5e7eb;background:#fff;padding:14px 16px}
.sell-node-origin{border-color:#3A31E5;border-width:2px}
.sell-node-sys{background:#1b2a3a;border-color:#1b2a3a}
.sell-node-sys .sell-node-h{color:#24E4D6}
.sell-node-sys .sell-node-b{color:#dfe3ea}
.sell-node-h{font-family:Montserrat,sans-serif;font-size:.82rem;font-weight:700;margin:0 0 6px;color:#1b2a3a}
.sell-node-b{font-size:.85rem;line-height:1.5;margin:0;color:#4b5563}
.sell-arrow{align-self:center;width:26px;height:2px;background:#3A31E5;position:relative}
.sell-arrow::after{content:"";position:absolute;right:-1px;top:-4px;border-left:8px solid #3A31E5;
  border-top:5px solid transparent;border-bottom:5px solid transparent}
.sell-flow-mid{text-align:center;font-family:Montserrat,sans-serif;font-size:.72rem;font-weight:700;
  letter-spacing:.08em;text-transform:uppercase;color:#3A31E5;margin:20px 0 14px}
.sell-flow-out{margin:18px 0 0;font-size:.92rem;line-height:1.6;color:#374151;max-width:70ch}
@media (max-width:820px){
  .sell-flow-row,.sell-flow-row-2{grid-template-columns:1fr;gap:10px}
  .sell-arrow{width:2px;height:20px;justify-self:center}
  .sell-arrow::after{right:-4px;top:auto;bottom:-1px;border-left:5px solid transparent;
    border-right:5px solid transparent;border-top:8px solid #3A31E5;border-bottom:0}
}

/* Blog index: date beside each title, and a visually separated listing archive
   (Grant, 2026-08-27 - listing posts were mixed into the article list). */
.post-list li { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; }
.post-list .post-date { flex: 0 0 auto; font-family: Montserrat, sans-serif; font-size: 0.72rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: #8a8f9c; }
.listing-archive { margin-top: 54px; padding-top: 26px; border-top: 1px solid #e4e8f2; }
.listing-archive h2 { margin-bottom: 6px; }

/* Client testimonials (/about/). Grant asked 2026-08-27 whether reviews should be
   italic. Decision: no - long quotes set in italic are measurably harder to read, and
   these run 60-120 words. They are differentiated structurally instead: a card, a real
   five-star row and a quote mark. The `.review-stars` divs came over from RealGeeks
   EMPTY with no CSS anywhere in the build, so the stars were invisible on every review
   until now. */
.review-stars {
  margin: 6px 0 28px 0;
  font-size: 1.05rem;
  letter-spacing: 2px;
  line-height: 1;
  color: #c8a96e;
}
.review-stars::before { content: "\2605\2605\2605\2605\2605"; }
p:has(+ .review-stars) {
  margin: 10px 0 0 0;
  padding: 18px 22px 20px 22px;
  background: #f7f9fd;
  border-left: 4px solid #3f4ff9;
  border-radius: 0 12px 12px 0;
  font-style: normal;
  font-size: 1.02rem;
  line-height: 1.7;
  color: #333;
}

/* /homes-for-sale/ smaller-municipalities block (Grant, 2026-08-27): cities we cover in
   the feed but do not publish a page for, deep-linked into MLS search. */
.hub-smaller { margin: 2.5rem 0 0; }
.hub-smaller-list { line-height: 2.1; }
.hub-smaller-n { color: #4a5468; font-size: 0.9em; }
.hub-smaller-note { color: #333c4f; }
