/* ============================================================
   HomesFound — rebrand (2026-10-02)
   Design tokens matched to homesfound.ca:
     brand red #ff0000 · ink #0B1F2A
     gray #5A6B75 · hairline #E3E8EB · band #EFF4F6
   Fonts: Montserrat (UI/headings) · Fira Sans Condensed (prices)
   ============================================================ */
:root {
  --teal-dark: #ff0000;
  --teal: #ff0000;
  --pink: #ff0000;
  --crimson: #ff0000;
  --navy: #07364B;
  --ink: #0B1F2A;
  --muted: #5A6B75;
  --line: #E3E8EB;
  --band: #EFF4F6;
  --card: #ffffff;
  --radius: 8px;
  --maxw: 1440px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}
a { color: var(--pink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- utility strip ---------- */
.util { background: var(--teal); color: #fff; font-size: .78rem; }
.util-inner { display: flex; align-items: center; justify-content: flex-end; height: 30px; }
.util a { color: #fff; opacity: .92; margin-left: 18px; font-weight: 500; }
.util a:hover { opacity: 1; }
.util .util-tag { opacity: .85; }

/* ---------- header ---------- */
.site-header { background: var(--teal-dark); position: sticky; top: 0; z-index: 60; }
.header-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { font-size: 1.45rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-accent { color: var(--pink); }
.nav { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.nav > a, .nav .drop > button {
  background: none; border: 0; cursor: pointer; font: inherit;
  color: #fff; font-weight: 600; font-size: .95rem; padding: 10px 14px;
  border-radius: 6px; white-space: nowrap;
}
.nav > a:hover, .nav .drop > button:hover { text-decoration: none; background: rgba(255,255,255,.08); }
.nav > a.active { box-shadow: inset 0 -3px 0 var(--pink); border-radius: 0; }
.nav .drop { position: relative; }
.nav .drop-panel {
  display: none; position: absolute; top: 100%; left: 0; min-width: 200px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(2,52,72,.16); padding: 8px; z-index: 70;
}
.nav .drop.open .drop-panel { display: block; }
.nav .drop-panel a { display: block; color: var(--ink); padding: 9px 12px; border-radius: 6px; font-size: .9rem; }
.nav .drop-panel a:hover { background: var(--band); text-decoration: none; }
.hsearch { display: flex; align-items: center; background: #fff; border-radius: 999px; padding: 4px 4px 4px 14px; position: relative; }
.hsearch svg { flex: none; }
.hsearch input { border: 0; outline: 0; font: inherit; font-size: .88rem; width: 170px; padding: 7px 6px; color: var(--ink); background: transparent; }
.hsearch button { border: 0; cursor: pointer; background: var(--crimson); color: #fff; font: inherit; font-weight: 600; font-size: .82rem; border-radius: 999px; padding: 8px 16px; }
.login-block { display: flex; align-items: center; gap: 10px; background: var(--crimson); align-self: stretch; padding: 0 22px; margin-right: -20px; }
.login-block a { color: #fff; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.login-block a:hover { text-decoration: underline; }
.login-block .sep { color: rgba(255,255,255,.6); }
.login-block .linklike.light { color: #fff; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.login-block .linklike.light:hover { text-decoration: underline; }
.login-block .u-name { color: #fff; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.auth-toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: #111; color: #fff; padding: 12px 22px; border-radius: 10px; font-size: .92rem; z-index: 300; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; max-width: 90vw; text-align: center; }
.auth-toast.show { opacity: 1; transform: translate(-50%, 0); }
.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 10px; margin-left: auto; }
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  padding: 96px 0 110px; min-height: 420px; display: flex; align-items: center;
  background: url(/img/hero-gta.jpg) center 65%/cover no-repeat;
}
.hero-inner { position: relative; z-index: 1; width: 100%; }
.hero h1 { margin: 0 0 28px; font-size: 3rem; font-weight: 700; color: #fff; letter-spacing: -0.02em;
  text-shadow: 0 1px 14px rgba(2,20,30,.55), 0 2px 4px rgba(2,20,30,.35); }
.pill-search {
  display: flex; align-items: center; max-width: 640px; margin: 0 auto;
  background: #fff; border-radius: 999px; padding: 6px 6px 6px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); position: relative;
}
.pill-search svg { flex: none; margin-right: 10px; }
.pill-search input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 1rem; color: var(--ink); background: transparent; min-width: 0; }
.pill-search button {
  border: 0; cursor: pointer; background: var(--crimson); color: #fff;
  font: inherit; font-weight: 600; border-radius: 999px; padding: 14px 34px; font-size: 1rem;
}
.pill-search button:hover { background: #a50d27; }

/* Live search suggestions (hero + header search). */
.search-suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 80; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 28px rgba(2,52,72,.16); overflow: hidden; max-height: 320px; overflow-y: auto; text-align: left; }
.ss-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 14px; background: #fff; border: 0; border-bottom: 1px solid #f0f0f0; cursor: pointer; text-align: left; font: inherit; font-size: .9rem; color: var(--ink); }
.ss-row:last-child { border-bottom: 0; }
.ss-row:hover, .ss-row.on { background: #f6f6f8; }
.ss-row .ss-label { font-weight: 600; }
.ss-row .ss-kind { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }

/* ---------- sections ---------- */
.section { padding: 44px 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sec-head h2 { margin: 0; font-size: 1.6rem; color: var(--ink); }
.sec-head .sub { color: var(--muted); margin: 6px 0 0; font-size: .95rem; }

/* ---------- buttons ---------- */
/* "View all" button on city hub + property-type pages: solid red, white
   text, centered. Scoped to #ptype-more (hub + ptype only). */
#ptype-more { text-align: center; }
#ptype-more a { background: var(--pink); color: #fff; border-color: var(--pink); }
#ptype-more a:hover { background: #cc0000; border-color: #cc0000; color: #fff; text-decoration: none; }
/* "View all" button on neighbourhood pages: solid red, white text,
   right-aligned on desktop, centered on mobile. Applies to ALL
   neighbourhood pages. (The old .toronto-more class is legacy and inert.) */
#hood-more { text-align: right; }
#hood-more a { background: var(--pink); color: #fff; border-color: var(--pink); }
#hood-more a:hover { background: #cc0000; border-color: #cc0000; color: #fff; text-decoration: none; }
@media (max-width: 640px) {
  #hood-more { text-align: center; }
}
#comm-more { text-align: right; }
#comm-more a { background: var(--pink); color: #fff; border-color: var(--pink); }
#comm-more a:hover { background: #cc0000; border-color: #cc0000; color: #fff; text-decoration: none; }
@media (max-width: 640px) {
  #comm-more { text-align: center; }
}
.btn {
  display: inline-block; border: 0; cursor: pointer; border-radius: var(--radius);
  background: var(--crimson); color: #fff; font-family: inherit; font-weight: 600; font-size: .95rem;
  padding: 13px 26px; text-align: center;
}
.btn:hover { background: #a50d27; text-decoration: none; color: #fff; }
.btn-block { width: 100%; }
.btn-outline {
  display: inline-block; cursor: pointer; border-radius: var(--radius);
  background: #fff; color: var(--ink); border: 1px solid #b9c6cf;
  font-family: inherit; font-weight: 600; font-size: .9rem; padding: 11px 22px; text-align: center;
}
.btn-outline:hover { border-color: var(--ink); text-decoration: none; }
.btn:disabled { opacity: .6; cursor: default; }
.btn-sm { font-size: .8rem; padding: 7px 14px; }

/* ---------- listing cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.cards.auto { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card:hover { border-color: #c3cfd6; }
.card-img { position: relative; aspect-ratio: 4/3; background: #dfe6ee; overflow: hidden; display: block; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img:hover { text-decoration: none; }
.badge-open {
  position: absolute; top: 12px; left: 12px; display: inline-block;
  background: #0d7a3f; color: #fff; font-size: .72rem; font-weight: 700;
  padding: 5px 12px; letter-spacing: .02em; border-radius: 20px;
  /* Stop short of the favourite heart (top-right) so long two-session
     labels ellipsize cleanly instead of clipping behind it (2026-10-21). */
  max-width: calc(100% - 64px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.badge-featured {
  position: absolute; top: 12px; left: 0; display: inline-flex; align-items: center; gap: 6px;
  background: var(--navy); color: #fff; font-size: .72rem; font-weight: 600;
  padding: 5px 12px 5px 10px; letter-spacing: .02em;
}
.badge-featured svg { display: block; }
.fav {
  position: absolute; top: 8px; right: 10px; cursor: pointer; padding: 6px; line-height: 0;
  background: none; border: 0;
}
.fav svg { fill: rgba(255,255,255,.85); stroke: #fff; stroke-width: 1.5; transition: fill .15s; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.fav.on svg { fill: var(--pink); stroke: var(--pink); }
.card-body { padding: 14px 16px 12px; display: flex; flex-direction: column; flex: 1; }
.card-price { font-family: "Fira Sans Condensed", "Montserrat", sans-serif; font-weight: 600; font-size: 1.45rem; color: var(--ink); }
.card-addr { font-weight: 600; font-size: .95rem; margin-top: 2px; }
.card-addr a { color: var(--ink); }
.card-specs { color: var(--muted); font-size: .83rem; margin-top: 6px; }
.card-mls { color: var(--muted); font-size: .78rem; margin-top: 4px; }
.card-broker { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; margin-top: 8px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.pill-compare {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  border: 1px solid var(--pink); background: #fff; color: var(--pink);
  border-radius: 999px; padding: 6px 14px; font-family: inherit; font-weight: 600; font-size: .8rem;
}
.pill-compare:hover { background: #fdf0f4; }
.pill-compare.on { background: var(--pink); color: #fff; }
.card-time { color: var(--muted); font-size: .78rem; }

/* ---------- sample banner ---------- */
.sample-banner { background: #fff8e1; border: 1px solid #f0d971; color: #7a5c00; border-radius: var(--radius); padding: 10px 16px; margin: 18px 0 0; font-size: .88rem; }

/* ---------- search page ---------- */
.page-title { margin: 26px 0 4px; font-size: 1.75rem; color: var(--ink); }
.page-sub { color: var(--muted); margin: 0 0 18px; font-size: .95rem; }
.pill-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.pill {
  position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: #fff; border: 1px solid #b9c6cf; color: var(--ink);
  border-radius: 999px; padding: 9px 18px; font-family: inherit; font-weight: 600; font-size: .88rem;
}
.pill:hover { border-color: var(--ink); }
.pill svg { display: block; }
.pill-red { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.pill-red:hover { background: #a50d27; border-color: #a50d27; color: #fff; }
.drop-panel {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; z-index: 50;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(2,52,72,.16); padding: 16px; min-width: 250px;
}
.pill.open .drop-panel { display: block; }
.drop-panel .field { margin-bottom: 10px; }
.drop-panel .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sort-wrap { margin-left: auto; }
select.pill { appearance: none; -webkit-appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23023448' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.results-count { color: var(--muted); font-size: .9rem; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 30px 0 10px; flex-wrap: wrap; }
.pagination a, .pagination span.cur {
  min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink);
  font-weight: 600; font-size: .88rem; padding: 0 12px; background: #fff;
}
.pagination a:hover { border-color: var(--pink); color: var(--pink); text-decoration: none; }
.pagination span.cur { background: var(--pink); border-color: var(--pink); color: #fff; }
.pagination span.ell { border: 0; color: var(--muted); }

/* ---------- forms ---------- */
.field label { display: block; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 5px; }
.req-star { color: #c00; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #b9c6cf; border-radius: var(--radius);
  font-family: inherit; font-size: .93rem; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--pink); border-color: var(--pink); }
.field { margin-bottom: 12px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.form-ok { background: #e8f5e9; border: 1px solid #a5d6a7; color: #2e7d32; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 12px; font-size: .9rem; }
.form-err { background: #fdecea; border: 1px solid #f5c6cb; color: #a33; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 12px; font-size: .9rem; }
.signed-in-note { background: #f2f6fa; border: 1px solid var(--line); color: var(--muted); padding: 10px 14px; border-radius: var(--radius); margin-bottom: 12px; font-size: .85rem; }

/* ---------- listing detail ---------- */
.crumbs { font-size: .85rem; margin: 20px 0 6px; color: var(--muted); }
.crumbs a { color: var(--pink); font-weight: 600; }
.detail-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px; flex-wrap: wrap; }
.detail-top h1 { margin: 0; font-size: 1.7rem; color: var(--ink); }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.action-pill {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  background: #fff; border: 1px solid #b9c6cf; color: var(--ink);
  border-radius: 999px; padding: 9px 18px; font-family: inherit; font-weight: 600; font-size: .85rem;
}
.action-pill:hover { border-color: var(--ink); text-decoration: none; }
.action-pill.on { border-color: var(--pink); color: var(--pink); }
.action-pill.on svg.heart { fill: var(--pink); stroke: var(--pink); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 32px; align-items: start; }
/* Grid items default to min-width:auto, which lets one wide child (e.g. the
   thumb strip) blow the column to thousands of px. Cap them. */
.detail-grid > div { min-width: 0; }
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; background: #dfe6ee; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
/* Mobile: main listing photo goes full-bleed (edge-to-edge, no rounded
   corners) to maximize photo size. The page container pads 20px, so the
   negative margins cancel it exactly. (User decision 2026-10-19.) */
@media (max-width: 640px) {
  .gallery-main { border-radius: 0; margin-left: -20px; margin-right: -20px; }
}
.gal-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #023448; font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25); z-index: 2; }
.gal-arrow:hover { background: #fff; }
.gal-prev { left: 12px; }
.gal-next { right: 12px; }
.thumbs-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; min-width: 0; }
.thumbs-scroll { flex: 0 0 auto; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #eef2f6; color: #023448; font-size: 22px; line-height: 1; cursor: pointer; }
.thumbs-scroll:hover { background: #dfe6ee; }
.gallery-thumbs { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; flex: 1; min-width: 0; scroll-behavior: smooth; }
.gallery-thumbs img { aspect-ratio: 4/3; object-fit: contain; border-radius: 6px; cursor: pointer; border: 2px solid transparent; flex: 0 0 auto; width: 104px; background: #dfe6ee; }
.gallery-thumbs img.active { border-color: var(--pink); }
/* Locked (photo-gate) thumbs in the strip: same 104px slot as a free thumb.
   Without this, .pg-locked's width:100% collapses in the flex row. */
.gallery-thumbs .pg-locked { flex: 0 0 auto; width: 104px; }
.gallery-thumbs .pg-locked img { border: 0; }
.spec-strip { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 18px 0 6px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec-item { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: .95rem; color: var(--ink); }
.spec-item svg { flex: none; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 14px 0 4px; flex-wrap: wrap; }
.price-big { font-family: "Fira Sans Condensed", "Montserrat", sans-serif; font-weight: 600; font-size: 2.25rem; color: var(--ink); }
.listing-provided-by { font-size: 1rem; color: var(--ink); margin: 6px 0 0; }
.listing-provided-by strong { font-weight: 600; }
.realtorca-badge { display: inline-block; min-width: 90px; margin-top: 10px; }
.realtorca-badge img { display: block; width: 90px; height: auto; }
.realtorca-text { display: inline-block; font-size: .82rem; font-weight: 600; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; background: #fff; }
.status-chip { display: inline-block; background: var(--band); color: var(--ink); font-size: .78rem; font-weight: 600; border-radius: 999px; padding: 5px 14px; }
.keyfacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 20px 0; }
.kf { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; min-width: 0; }
.kf .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.kf .v { font-weight: 600; font-size: 1.02rem; color: var(--ink); overflow-wrap: anywhere; }
.prop-details { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 8px 0 20px; }
.prop-details .pd-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.prop-details .pd-row .k { color: var(--muted); font-weight: 600; }
.remarks { margin: 20px 0; }
.remarks p { color: #33424c; }
.map-embed { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 18px 0; }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }
.sec-title { font-size: 1.25rem; margin: 30px 0 6px; color: var(--ink); }

/* agent rail */
.rail { position: sticky; top: 104px; }
.agent-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.agent-top { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  background: var(--band); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.15rem;
}
.agent-name { font-weight: 600; font-size: 1rem; }
.agent-name a { color: var(--pink); }
.agent-broker { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; margin-top: 2px; }
.agent-phone { font-size: .9rem; margin-top: 6px; color: var(--ink); }
/* Call/Text row: number left, buttons right-justified, breathing room above
   the Request-a-viewing button (2026-10-19). */
.agent-contact-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 20px; flex-wrap: wrap; row-gap: 8px; }
.agent-tel { font-size: .9rem; color: var(--ink); text-decoration: none; }
.agent-call-btns { display: flex; gap: 8px; margin-left: auto; }
.agent-call-btns a { font-size: .75rem; font-weight: 700; padding: 7px 12px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.agent-call-btns .ab-call { background: var(--pink); color: #fff; }
.agent-call-btns .ab-text { border: 1.5px solid var(--pink); color: var(--pink); background: #fff; }
.contact-agent-link { display: block; text-align: center; color: var(--pink); font-weight: 600; margin-top: 10px; font-size: .9rem; }
.lead-box { background: #eef6f9; border: 1px solid #6fa8bd; border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.lead-box h3 { margin: 0 0 4px; font-size: 1.1rem; }
.lead-box p { margin: 0 0 14px; color: var(--muted); font-size: .88rem; }
.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tab { border: 1px solid #b9c6cf; background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 16px; cursor: pointer; font-family: inherit; font-weight: 600; font-size: .84rem; }
.tab.active { background: var(--pink); color: #fff; border-color: var(--pink); }
.broker-line { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; font-size: .82rem; color: var(--muted); }

/* ---------- market report band ---------- */
.market-band { background: #fff; padding: 52px 0; border-top: 1px solid var(--line); }
.market-band h2 { margin: 0 0 4px; font-size: 1.6rem; color: var(--ink); }
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 22px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat-card .k { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.stat-card .v { font-family: "Fira Sans Condensed", "Montserrat", sans-serif; font-weight: 600; font-size: 1.9rem; color: var(--ink); margin-top: 6px; }
.stat-card .n { font-size: .78rem; color: var(--muted); margin-top: 6px; }

/* ---------- city chips ---------- */
.city-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.city-chips a {
  border: 1px solid #b9c6cf; color: var(--ink); border-radius: 999px;
  padding: 9px 20px; font-weight: 600; font-size: .88rem; background: #fff;
}
.city-chips a:hover { border-color: var(--pink); color: var(--pink); text-decoration: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--teal-dark); color: #ffd9d9; margin-top: 56px; padding: 44px 0 26px; font-size: .88rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 30px; }
.foot-grid h4 { color: #fff; font-size: .95rem; margin: 0 0 14px; font-weight: 600; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid a { color: #ffd9d9; }
.foot-grid a:hover { color: #fff; }
.foot-brand { font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 10px; display: block; }
.foot-brand:hover { text-decoration: none; }
.foot-copy { text-align: center; border-top: 1px solid rgba(255,255,255,.35); padding-top: 20px; color: #ffc9c9; font-size: .82rem; }
.site-footer .disclaimer { color: #ffc9c9; font-size: .78rem; margin-top: 14px; text-align: center; max-width: 900px; margin-left: auto; margin-right: auto; }
.trademark-footnote { color: #ffc9c9; font-size: .75rem; margin-top: 12px; text-align: center; max-width: 900px; margin-left: auto; margin-right: auto; line-height: 1.5; }
.brokerage-line { color: #ffd9d9; font-size: .82rem; margin-top: 10px; text-align: center; }
.broker-footer-line { color: #ffd9d9; font-size: .82rem; margin-top: 10px; margin-bottom: -6px; text-align: center; }

/* ---------- admin ---------- */
.admin-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table.admin { width: 100%; border-collapse: collapse; font-size: .86rem; }
table.admin th, table.admin td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.admin th { background: var(--band); white-space: nowrap; font-weight: 600; }

/* ---------- modal ---------- */
.modal-back { display: none; position: fixed; inset: 0; background: rgba(2,52,72,.55); z-index: 100; align-items: center; justify-content: center; padding: 20px; }
.modal-back.open { display: flex; }
.modal { background: #fff; border-radius: 12px; max-width: 440px; width: 100%; padding: 28px; position: relative; }
.modal h3 { margin: 0 0 6px; font-size: 1.2rem; }
.modal p { color: var(--muted); font-size: .9rem; margin: 0 0 16px; }
.modal-close { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: var(--muted); line-height: 1; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--teal-dark); flex-direction: column; align-items: stretch; padding: 10px 20px 18px; gap: 2px; }
  .nav.open { display: flex; }
  .nav .drop-panel { position: static; box-shadow: none; border: 0; background: rgba(255,255,255,.06); margin: 4px 0; }
  .nav .drop-panel a { color: #fff; }
  /* Location-tree summaries/chevrons/districts are dark on desktop (white
     panel) but must be white on the red mobile menu, like the links above. */
  .nav .drop-panel .tree-region > summary,
  .nav .drop-panel .tree-city > summary { color: #fff; }
  .nav .drop-panel .tree-region > summary::after,
  .nav .drop-panel .tree-city > summary::after { border-right-color: #fff; border-bottom-color: #fff; }
  .nav .drop-panel .tree-district { color: #fff; }
  .nav .drop-panel .tree-region > summary:hover,
  .nav .drop-panel .tree-city > summary:hover { background: rgba(255,255,255,.12); }
  .hsearch { display: none; }
  .hamburger { display: block; }
  .login-block { margin-right: 0; }
}
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; }
  .keyfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prop-details { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 70px 0 84px; min-height: 360px; }
  .hero h1 { font-size: 2rem; }
  .sort-wrap { margin-left: 0; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .login-block { padding: 0 12px; }
  .login-block a { font-size: .8rem; }
  .brand { font-size: 1.15rem; }
  .pill-search button { padding: 12px 20px; }
  .foot-grid { grid-template-columns: 1fr; }
}
/* Account bar on phones/tablets: its own row above the logo, left-aligned,
   so "Hi, ___ | My alerts | Log out" is always on screen and the header
   never forces sideways scrolling. (Later in the file than the 560px rule
   above, so the padding here wins for the stacked row.) */
@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; height: auto; gap: 0 28px; padding-top: 10px; padding-bottom: 10px; }
  .header-inner .login-block { order: -1; flex: 1 1 100%; align-self: auto; padding: 8px 0; justify-content: flex-start; }
  /* Util strip wraps instead of overflowing on narrow phones. */
  .util-inner { flex-wrap: wrap; height: auto; min-height: 30px; padding-top: 4px; padding-bottom: 4px; row-gap: 2px; }
}

/* ---------- showing scheduler ---------- */
.sched-fields .field select { cursor: pointer; }
.time-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.time-pill {
  border: 1px solid #b9c6cf; background: #fff; color: var(--ink);
  border-radius: 999px; padding: 8px 14px; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: .82rem;
}
.time-pill:hover:not(:disabled) { border-color: var(--pink); color: var(--pink); }
.time-pill.selected { background: var(--pink); border-color: var(--pink); color: #fff; }
/* Selected must stay white-text even while the tap lingers in :hover on touch. */
.time-pill.selected:hover:not(:disabled) { color: #fff; }
.time-pill:disabled { opacity: .32; cursor: default; text-decoration: line-through; }

/* ---------- booking confirmation ---------- */
.confirm-panel {
  background: #EFF4F6; border: 1px solid var(--line);
  border-left: 4px solid var(--teal-dark);
  border-radius: var(--radius); padding: 20px 22px; margin-top: 4px;
}
.confirm-panel h4 { margin: 0 0 6px; color: var(--ink); font-size: 1.1rem; font-weight: 700; }
.confirm-panel p { margin: 0; color: var(--ink); font-size: .95rem; }
.confirm-panel p strong { color: var(--pink); }

/* ---------- admin requested-slot chip ---------- */
.sched-chip {
  display: inline-block; background: var(--teal-dark); color: #fff;
  border-radius: 999px; padding: 4px 12px;
  font-size: .78rem; font-weight: 600; white-space: nowrap;
}

/* ---------- market report ---------- */
.market-hero-stat { text-align: center; margin: 26px 0 6px; }
.market-hero-stat .k { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.market-hero-stat .v { font-family: "Fira Sans Condensed", "Montserrat", sans-serif; font-weight: 600; font-size: 2.6rem; color: var(--ink); margin-top: 4px; }
.market-hero-stat .n { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.market-note { background: #EFF4F6; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; color: var(--ink); font-size: .95rem; margin: 18px 0; }
.market-note strong { color: var(--ink); }
.table-scroll { overflow-x: auto; margin: 14px 0 26px; border: 1px solid var(--line); border-radius: var(--radius); }
.market-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 640px; }
.market-table caption { text-align: left; font-weight: 700; color: var(--ink); padding: 12px 16px; font-size: 1rem; background: #fff; caption-side: top; }
.market-table caption .t-cap { font-weight: 500; color: var(--muted); font-size: .8rem; margin-left: 8px; }
.market-table th, .market-table td { padding: 10px 16px; text-align: left; border-top: 1px solid var(--line); white-space: nowrap; }
.market-table thead th { background: var(--teal-dark); color: #fff; border-top: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.market-table tbody tr:nth-child(even) { background: #F7FAFB; }
.market-table tr.t-avg td { font-weight: 700; background: #EFF4F6; border-top: 2px solid var(--teal-dark); }
.chart-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 14px 0 26px; background: #fff; }
.chart-card svg { width: 100%; height: auto; display: block; }
.chart-cap { font-size: .8rem; color: var(--muted); margin: 10px 0 0; font-style: italic; }
.stat-card.gated .v.blurred { filter: blur(6px); user-select: none; }
.stat-card.gated .btn { margin-top: 12px; }
#market-toggle { margin-top: 20px; }
.methodology { background: #EFF4F6; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 30px 0; }
.methodology h3 { margin: 0 0 10px; color: var(--ink); }
.methodology p, .methodology li { font-size: .92rem; color: var(--ink); }
.methodology ul { margin: 8px 0 0; padding-left: 20px; }
h3.mkt-h { color: var(--ink); margin: 34px 0 4px; font-size: 1.25rem; }

/* ---------- neighbourhood pages ---------- */
.crumbs { font-size: .85rem; margin: 20px 0 6px; color: var(--muted); }
.crumbs a { color: var(--pink); font-weight: 600; }
.hood-hero { padding: 26px 0 6px; }
.hood-hero h1 { margin: 0 0 8px; font-size: 2rem; color: var(--ink); }
.hood-hero .sub { color: var(--muted); max-width: 720px; }
.district-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.district-pills a { border: 1px solid #b9c6cf; color: var(--ink); border-radius: 999px; padding: 7px 15px; font-size: .82rem; font-weight: 600; }
.district-pills a:hover { border-color: var(--pink); color: var(--pink); text-decoration: none; }
.district-pills a.on { background: var(--teal-dark); border-color: var(--ink); color: #fff; }
/* Zone pills + same-zone pill clouds (neighbourhood pages, /neighborhoods/ hub). */
.pill-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 26px; }
.pill-cloud a { display: inline-block; padding: 7px 15px; border-radius: 999px; background: #fff; border: 1px solid #cfd8de; color: var(--ink); font-size: .88rem; text-decoration: none; }
.pill-cloud a:hover { border-color: var(--pink); color: var(--pink); text-decoration: none; }
.pill-cloud a.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.pill-cloud a.feat { border-color: var(--pink); color: var(--pink); font-weight: 600; }
.zone-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.zone-nav a { display: inline-block; padding: 10px 22px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: .95rem; text-decoration: none; }
.zone-nav a:hover { background: var(--pink); color: #fff; text-decoration: none; }
.prose { max-width: 780px; }
.prose h2 { color: var(--ink); margin: 34px 0 10px; font-size: 1.4rem; }
.prose p { font-size: .98rem; line-height: 1.7; color: var(--ink); }
.prose .live-num { font-weight: 700; color: var(--pink); }
.faq { border: 1px solid var(--line); border-radius: var(--radius); margin: 10px 0; background: #fff; }
.faq summary { cursor: pointer; padding: 15px 18px; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--pink); font-size: 1.3rem; font-weight: 700; }
.faq[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 18px 16px; font-size: .95rem; color: var(--ink); line-height: 1.65; }
.hood-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 14px 0 30px; }
.hood-links a { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; color: var(--ink); font-weight: 600; font-size: .9rem; }
.hood-links a:hover { border-color: var(--pink); color: var(--pink); text-decoration: none; }
.hood-links a span { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; margin-top: 2px; }

/* ---------- nav dropdown districts + footer SEO links ---------- */
.drop-district { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 10px 12px 4px; }
.drop-district:first-child { padding-top: 4px; }
.seo-links { border-top: 1px solid rgba(255,255,255,.14); margin-top: 26px; padding-top: 18px; font-size: .82rem; color: rgba(255,255,255,.65); line-height: 2; }
.seo-links span { font-weight: 700; color: #fff; margin-right: 6px; }
.seo-links a { color: rgba(255,255,255,.75); }
.seo-links a:hover { color: #fff; }

@media (max-width: 720px) {
  .market-hero-stat .v { font-size: 2rem; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .hood-hero h1 { font-size: 1.5rem; }
}
@media (max-width: 560px) {
  .stat-cards { grid-template-columns: 1fr; }
}

/* ---------- Ontario location tree dropdown ---------- */
#hood-drop .drop-panel { min-width: 340px; max-width: 420px; max-height: 72vh; overflow-y: auto; }
.tree-region > summary, .tree-city > summary {
  cursor: pointer; font-weight: 700; font-size: .9rem; color: var(--ink);
  padding: 10px 12px; border-radius: 6px; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.tree-region > summary::-webkit-details-marker, .tree-city > summary::-webkit-details-marker { display: none; }
.tree-region > summary::after, .tree-city > summary::after {
  content: ""; width: 8px; height: 8px; flex: none;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); margin-left: 10px; transition: transform .15s;
}
.tree-region[open] > summary::after, .tree-city[open] > summary::after { transform: rotate(225deg); }
.tree-region > summary:hover, .tree-city > summary:hover { background: var(--band); }
.tree-region { border-bottom: 1px solid var(--line); padding-bottom: 4px; margin-bottom: 4px; }
.tree-region:last-child { border-bottom: 0; margin-bottom: 0; }
.tree-city { margin-left: 10px; }
.tree-district { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 10px 12px 4px; margin-left: 10px; }
.tree-region a, .tree-city a { display: block; color: var(--ink); padding: 7px 12px; border-radius: 6px; font-size: .88rem; }
.tree-region a:hover, .tree-city a:hover { background: var(--band); text-decoration: none; }
.tree-city a { margin-left: 10px; }
a.tree-all { font-weight: 700; color: var(--pink); margin-left: 10px; }
a.tree-city-link { font-weight: 600; }

/* ---------- stale listing page ---------- */
.gone-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 36px; max-width: 720px; }
.gone-panel h1 { margin: 0 0 12px; font-size: 1.7rem; color: var(--ink); }
.gone-panel p { color: var(--muted); margin: 0 0 16px; }
.gone-panel p strong { color: var(--ink); }

/* ---------- map search ---------- */
.map-main { padding-bottom: 40px; }
.map-head { padding-top: 18px; }
.map-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 16px; }
.map-toolbar select, .map-toolbar input {
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px;
  font: inherit; font-size: .88rem; background: #fff; color: var(--ink); max-width: 170px;
}
.map-toolbar .btn { border-radius: 999px; }
.map-layout { display: flex; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: calc(100vh - 330px); min-height: 480px; background: #eef2f4; }
#map { flex: 1 1 auto; min-width: 0; z-index: 1; }
#map-panel { width: 380px; flex: none; overflow-y: auto; background: #fff; border-left: 1px solid var(--line); padding: 14px; }
#map-panel .card { margin-bottom: 14px; }
.map-panel-hint { color: var(--muted); font-size: .9rem; padding: 18px 6px; text-align: center; }
.cluster-bubble {
  background: var(--teal-dark); color: #fff; border: 3px solid #fff; border-radius: 50%;
  min-width: 44px; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 700; font-size: .95rem; box-shadow: 0 2px 8px rgba(0,0,0,.35); cursor: pointer; padding: 4px;
}
.cluster-bubble span { font-size: .62rem; font-weight: 600; opacity: .9; white-space: nowrap; }
.cluster-bubble.med { min-width: 56px; height: 56px; background: var(--teal); }
.cluster-bubble.big { min-width: 68px; height: 68px; background: var(--pink); font-size: 1.05rem; }
.map-pop { font-size: .85rem; line-height: 1.5; }
.map-pop a { color: var(--pink); font-weight: 700; }
/* Map pin photo popup (2026-10-21, user-approved sample): thumbnail card
   inside the Leaflet popup on /map-search/ price pins. */
.map-pop-card { width: 230px; }
.map-pop-card a { text-decoration: none; }
.map-pop-photo { display: block; width: 100%; height: 130px; object-fit: cover; border-radius: 6px; }
.map-pop-price { font-size: 1.15rem; font-weight: 800; color: var(--navy); margin: 8px 0 2px; }
.map-pop-addr { font-size: .92rem; color: #222; }
.map-pop-specs { font-size: .85rem; color: #666; margin: 2px 0 10px; }
.map-pop-btn { display: block; background: var(--pink); color: #fff !important; text-align: center; font-weight: 700; padding: 9px 0; border-radius: 6px; font-size: .92rem; }
#map-results .card.flash { animation: cardflash 1.8s ease; border-color: var(--pink); }
.leaflet-container { font: inherit; }
#map-list-toggle { display: none; }
@media (max-width: 900px) {
  /* Mobile: the results list is NOT stacked below the map (user,
     2026-10-21). The map gets the full area; a pill button toggles the
     list as an overlay on top of the map. */
  .map-layout { flex-direction: column; height: auto; position: relative; }
  #map { height: 72vh; min-height: 420px; }
  #map-panel { position: absolute; inset: 0; width: 100%; max-height: none; border-left: 0; border-top: 0; z-index: 800; display: none; }
  .map-layout.list-open #map-panel { display: block; }
  #map-list-toggle { display: block; position: absolute; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 900; background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: 10px 22px; font-weight: 700; font-size: .95rem; box-shadow: 0 2px 8px rgba(0,0,0,.35); cursor: pointer; }
}

/* ---------- open houses ---------- */
.oh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 18px 0 30px; }
.oh-city { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; }
.oh-city:hover { text-decoration: none; border-color: var(--pink); }
.oh-city strong { display: block; color: var(--ink); font-size: 1.02rem; margin-bottom: 4px; }
.oh-city span { color: var(--muted); font-size: .85rem; }
.oh-when { display: inline-block; background: var(--band); border-radius: 999px; padding: 6px 14px; font-size: .85rem; font-weight: 600; color: var(--ink); margin: 6px 0 0; }

/* ---------- agents ---------- */
.agents-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin: 22px 0 40px; }
.agent-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.agent-card img { width: 100%; height: 260px; object-fit: cover; background: var(--band); }
.agent-photo-ph { height: 260px; display: flex; align-items: center; justify-content: center; font-size: 4rem; font-weight: 700; color: #fff; background: var(--pink); }
.agent-body { padding: 18px; }
.agent-body h3 { margin: 0 0 2px; font-size: 1.15rem; }
.agent-title { color: var(--muted); font-size: .88rem; margin: 0 0 8px; }
.agent-areas { font-size: .85rem; font-weight: 600; margin: 0 0 8px; }
.agent-bio { font-size: .88rem; color: var(--muted); margin: 0 0 10px; }
.agent-contact { margin: 0; font-size: .88rem; font-weight: 600; }

/* ---------- owner admin ---------- */
.admin-main { padding-bottom: 60px; max-width: 900px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin: 18px 0; }
.admin-card h2 { margin: 0 0 8px; font-size: 1.25rem; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.admin-tabs .active { background: var(--crimson); color: #fff; border-color: var(--crimson); }
.admin-card label { display: block; font-size: .85rem; font-weight: 600; margin: 12px 0 4px; }
.admin-card input, .admin-card textarea, .admin-card select {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
  font: inherit; font-size: .92rem; background: #fff; color: var(--ink);
}
.admin-actions { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.admin-card .notify-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f0f0f0; font-size: .95rem; font-weight: 400; cursor: pointer; margin: 0; }
.admin-card .notify-row:last-of-type { border-bottom: 0; }
.notify-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 8px; }
.notify-col h3 { margin: 0 0 2px; font-size: 1rem; }
.notify-col .muted { font-size: .82rem; margin: 0 0 6px; }
@media (max-width: 640px) { .notify-cols { grid-template-columns: 1fr; } }
.admin-card .notify-row input { width: 18px; height: 18px; accent-color: #0b5fff; flex: none; }
.form-err { color: #b00000; font-size: .88rem; font-weight: 600; }
.form-ok { color: #1a7a3a; font-size: .88rem; font-weight: 600; }
.agent-edit { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 14px 0; background: #fbfcfd; }
.agent-edit-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.linklike { background: none; border: 0; cursor: pointer; font: inherit; font-size: .85rem; color: var(--pink); font-weight: 600; }
.linklike.danger { color: #b00000; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .span2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- photo gate (SMS PIN lead capture) ---------- */
.pg-locked { position: relative; aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; cursor: pointer; width: 100%; border: 2px solid transparent; }
.pg-locked img { width: 100%; height: 100%; object-fit: cover; filter: blur(9px) brightness(.65); }
.pg-lock-ov { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.pg-lock-ov span { color: #fff; font-size: .78rem; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.pg-overlay { position: fixed; inset: 0; background: rgba(10,10,10,.62); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 18px; }
.pg-card { background: #fff; border-radius: 14px; max-width: 400px; width: 100%; padding: 30px 28px 24px; position: relative; text-align: center; }
.pg-card h3 { margin: 0 0 8px; font-size: 1.25rem; }
.pg-card p { color: var(--muted); font-size: .9rem; margin: 0 0 14px; }
.pg-card input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font: inherit; font-size: 1rem; margin-bottom: 10px; box-sizing: border-box; }
.pg-card input:focus { outline: none; border-color: #ff0000; }
.pg-card .btn { margin-top: 2px; }
.pg-sub { margin-bottom: 12px !important; }
.pg-perks { list-style: none; margin: 0 0 16px; padding: 0; text-align: left; }
.pg-perks li { position: relative; padding: 5px 0 5px 30px; font-size: .9rem; color: #333; }
.pg-perks li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 16px; height: 9px; border-left: 3px solid #ff0000; border-bottom: 3px solid #ff0000; transform: rotate(-45deg); border-radius: 2px; }
.pg-x { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--muted); line-height: 1; }
.pg-err { color: #b00000 !important; font-size: .85rem !important; font-weight: 600; }
.pg-fine { font-size: .76rem !important; margin-top: 12px !important; }
.pg-optin { display: flex; gap: 8px; align-items: flex-start; font-size: .82rem; color: #444; margin: 2px 0 10px; text-align: left; cursor: pointer; }
.pg-optin input { width: auto !important; margin: 2px 0 0 !important; flex: none; }
.pg-optin[hidden] { display: none; }

/* roster agent photo in listing agent card */
.avatar { position: relative; overflow: hidden; }
.avatar img.ag-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- neighborhood map split (map left, cards right) ---------- */
.hood-map-split { display: grid; grid-template-columns: 1.12fr 1fr; gap: 20px; align-items: start; }
.hood-map-wrap { position: sticky; top: 14px; }
#hood-map { height: 560px; border: 1px solid var(--line); border-radius: var(--radius); background: #eef2f6; z-index: 0; }
.hood-map-cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); max-height: 560px; overflow-y: auto; padding-right: 6px; align-content: start; }
.hood-map-cards .card.flash { animation: cardflash 1.8s ease; border-color: var(--pink); }
@keyframes cardflash { 0%, 100% { box-shadow: none; } 25% { box-shadow: 0 0 0 3px var(--pink); } }
.price-pin { background: #fff; border: 2px solid var(--teal-dark); color: var(--ink); font-weight: 700; font-size: .72rem; padding: 3px 9px; border-radius: 20px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.28); cursor: pointer; }
.price-pin:hover { background: var(--teal-dark); color: #fff; }
@media (max-width: 960px) {
  .hood-map-split { grid-template-columns: 1fr; }
  .hood-map-wrap { position: static; }
  #hood-map { height: 380px; }
  .hood-map-cards { max-height: none; overflow: visible; padding-right: 0; }
}

/* ---------- neighborhoods hub ---------- */
.hood-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.hood-hub-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.hood-hub-card:hover { border-color: var(--pink); transform: translateY(-2px); }
.hood-hub-card h3 { margin: 6px 0 8px; font-size: 1.25rem; }
.hood-hub-card p { margin: 0 0 12px; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.hood-hub-place { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--teal-dark); }
.hood-hub-cta { font-weight: 700; color: var(--pink); font-size: .9rem; }

/* ---------- area alert band (neighborhood / community pages) ---------- */
.alert-band { background: #fff; border: 2px solid var(--pink); border-radius: var(--radius); padding: 26px 28px; display: flex; gap: 26px; align-items: center; flex-wrap: wrap; margin: 8px 0 26px; }
.alert-band > div { flex: 1 1 280px; }
.alert-band h2 { margin: 0 0 6px; font-size: 1.3rem; }
.alert-band p { margin: 0; color: var(--muted); font-size: .92rem; }
.alert-band-form { display: flex; gap: 10px; flex: 2 1 380px; flex-wrap: wrap; align-items: flex-start; }
.alert-band-form input { flex: 1 1 160px; border: 1px solid var(--line); border-radius: 8px; padding: 11px 14px; font: inherit; font-size: .92rem; }
.alert-band-form .btn { white-space: nowrap; }
.alert-band-form .form-ok, .alert-band-form .form-err { flex-basis: 100%; margin: 0; }
.alert-band-form .alert-login { flex-basis: 100%; font-size: .85rem; color: var(--muted); }

/* ---------- price history (property.ca-style, login-gated) ---------- */
[data-price-history] .sub { color: var(--muted); margin: 0 0 14px; font-size: .95rem; }
.ph-gate {
  border: 1.5px solid #6fa8bd; border-radius: 12px; background: #eef6f9;
  padding: 20px; margin-bottom: 14px;
}
.ph-gate p { margin: 0 0 16px; color: var(--ink); font-size: .98rem; }
.ph-gate-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ph-gate .ph-signup { border-radius: 10px; padding: 12px 34px; }
.ph-or { color: var(--muted); }
.ph-gate .ph-login { color: var(--crimson); text-decoration: underline; font-size: .95rem; }
.ph-list { display: grid; gap: 10px; margin-bottom: 14px; }
.ph-entry {
  display: flex; gap: 14px; align-items: center;
  background: #f4f8fb; border-radius: 10px; padding: 12px;
}
.ph-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: 0 0 64px; }
.ph-thumb-empty { background: #dfe6ec; }
.ph-login-required { color: #d6336c; font-weight: 700; margin-bottom: 4px; }
.ph-headline { font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.ph-line { color: var(--muted); font-size: .9rem; }
.ph-blur {
  display: inline-block; min-width: 64px; background: #cfd8df; color: transparent;
  border-radius: 4px; filter: blur(3px); user-select: none;
}
.ph-status {
  display: inline-block; font-size: .72rem; font-weight: 700; color: #0a6c2f;
  background: #e3f4e9; border-radius: 20px; padding: 2px 10px; margin-left: 6px;
  vertical-align: middle;
}
.ph-full { width: 100%; border-radius: 10px; }
.ph-note { color: var(--muted); font-size: .92rem; }
.pc-body:empty { display: none; }
.pc-head { display: flex; align-items: center; gap: 10px; margin: 4px 0 10px; }
.pc-title { font-weight: 700; font-size: 1.02rem; }
.pc-chip { color: #fff; font-weight: 700; font-size: .82rem; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pc-down { background: #15803d; }
.pc-up { background: #475569; }
.pc-list { display: grid; gap: 6px; margin-bottom: 8px; }
.pc-row { display: flex; gap: 12px; align-items: baseline; font-size: .95rem; }
.pc-what { font-weight: 600; min-width: 118px; }
.pc-when { color: var(--muted); min-width: 108px; }
.pc-note { color: var(--muted); font-size: .85rem; margin-bottom: 14px; }
@media (max-width: 640px) { .pc-row { flex-wrap: wrap; gap: 4px 10px; } .pc-what, .pc-when { min-width: 0; } }
@media (max-width: 640px) {
  .ph-gate .ph-signup { flex: 1 1 160px; }
}

/* ---------- compare tray + toast ---------- */
#cmp-tray {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 1200;
  display: flex; align-items: center; gap: 12px;
  background: #111; color: #fff; border-radius: 999px; padding: 10px 10px 10px 20px;
  box-shadow: 0 8px 28px rgba(0,0,0,.35); font-size: .9rem; font-weight: 600;
}
#cmp-tray .cmp-go {
  background: var(--pink); color: #fff; border: 0; border-radius: 999px;
  padding: 9px 20px; font: inherit; cursor: pointer;
}
#cmp-tray .cmp-go:disabled { opacity: .45; cursor: default; }
#cmp-tray .cmp-clear {
  background: transparent; color: #fff; border: 0; font-size: 1.3rem; line-height: 1;
  cursor: pointer; padding: 4px 10px;
}
#cmp-toast {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(10px); bottom: 76px; z-index: 1300;
  background: #111; color: #fff; border-radius: 8px; padding: 10px 18px; font-size: .88rem;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
#cmp-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- compare page ---------- */
.cmp-wrap { overflow-x: auto; margin: 0 0 24px; }
.cmp-table { border-collapse: collapse; min-width: 640px; width: 100%; background: #fff; }
.cmp-table th, .cmp-table td {
  border: 1px solid var(--line); padding: 12px 14px; text-align: left;
  font-size: .92rem; vertical-align: top;
}
.cmp-table thead th { background: #fafafa; }
.cmp-table tbody th { background: #fafafa; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); width: 130px; }
.cmp-table .cmp-photo img { width: 100%; max-width: 260px; border-radius: 8px; display: block; }
.cmp-table .cmp-price { font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.cmp-table .cmp-remove { background: none; border: 0; color: var(--pink); cursor: pointer; font: inherit; font-size: .82rem; padding: 0; margin-top: 8px; }
@media (max-width: 640px) {
  #cmp-tray { bottom: 12px; padding: 8px 8px 8px 16px; font-size: .82rem; }
}

/* ---------- account menu (My Account dropdown) ---------- */
.acct-drop { position: relative; display: inline-block; }
.acct-drop .caret { font-size: .7em; }
.acct-panel {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 1300;
  min-width: 170px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.18);
  padding: 6px;
}
.acct-panel[hidden] { display: none; }
.acct-panel a {
  display: block; color: var(--ink); padding: 9px 12px; border-radius: 6px;
  font-size: .9rem; text-decoration: none; white-space: nowrap;
}
.acct-panel a:hover { background: var(--band); text-decoration: none; }

/* ---------- account pages (shared with my-account/*) ---------- */
.alert-card { border:1px solid #e5e5e5; border-radius:12px; padding:18px 20px; margin:0 0 14px; background:#fff; }
.alert-card h3 { margin:0 0 6px; font-size:17px; }
.alert-meta { color:#666; font-size:13px; margin:0 0 12px; }
.badge { display:inline-block; font-size:11px; font-weight:700; padding:3px 10px; border-radius:20px; margin-left:8px; vertical-align:middle; }
.badge-active { background:#e8f5e9; color:#1b7a2e; }
.badge-paused { background:#f5f5f5; color:#777; }
.badge-pending { background:#fff3e0; color:#b26a00; }
.alert-actions { display:flex; gap:10px; }
.alert-freq { display:flex; gap:18px; margin:0 0 12px; font-size:14px; }
.alert-freq label { display:inline-flex; align-items:center; gap:6px; cursor:pointer; }
.alert-freq input[type="radio"] { accent-color:#d21f26; width:16px; height:16px; margin:0; }
.alert-freq .freq-note { color:#888; font-size:12px; }
.btn-ghost { background:#fff; border:1px solid #ddd; border-radius:8px; padding:8px 16px; font-size:14px; cursor:pointer; }
.btn-ghost:hover { border-color:#999; }
.btn-danger { color:#c00; }
.login-card { border:1px solid #e5e5e5; border-radius:12px; padding:28px; text-align:center; background:#fff; }
.verify-banner { border:1px solid #f0d9a8; background:#fff8e6; border-radius:12px; padding:16px 18px; margin:0 0 6px; font-size:14px; }
.verify-banner strong { display:block; margin-bottom:4px; }
.verify-banner .btn { margin-top:10px; }
.verify-ok { border:1px solid #a5d6a7; background:#e8f5e9; color:#1b7a2e; border-radius:12px; padding:14px 18px; margin:0 0 6px; font-size:14px; font-weight:600; }
.profile-card { border:1px solid #e5e5e5; border-radius:12px; padding:18px 20px; margin:0 0 6px; background:#fff; }
.profile-card .field { margin:0 0 10px; }
.profile-card label { display:block; font-size:12px; font-weight:700; color:#555; margin:0 0 4px; }
.profile-card input { width:100%; padding:10px 12px; border:1px solid #ddd; border-radius:8px; font-size:15px; }
.profile-card input[readonly] { background:#f7f7f7; color:#777; }
.profile-row { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.form-ok { color:#1b7a2e; font-size:14px; margin:8px 0 0; }
.form-err { color:#c00; font-size:14px; margin:8px 0 0; }
.alert-card h3 a { color:inherit; text-decoration:none; }
.alert-card h3 a:hover { text-decoration:underline; }

/* ---------- floating Request-a-viewing button (mobile listing pages) ---------- */
#viewing-fab { display: none; }
#lead-box { scroll-margin-top: 76px; }
@media (max-width: 640px) {
  #viewing-fab {
    display: block;
    position: fixed; left: 16px; right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 1250;
    background: var(--pink); color: #fff; border: 0; border-radius: 10px;
    padding: 12px 20px; font: inherit; font-weight: 700; font-size: .92rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.3); cursor: pointer;
    transition: transform .25s, opacity .25s;
  }
  #viewing-fab.fab-hidden { transform: translateY(90px); opacity: 0; pointer-events: none; }
  body.has-cmp-tray #viewing-fab { bottom: calc(88px + env(safe-area-inset-bottom)); }
}
