/* ============================================================
   *movenew — brand styles
   Palette pulled from the trademark logo:
   lime  #6EBE44 · charcoal #4E4F4F · ink #333333 · linen #F2EFE9
   ============================================================ */

:root {
  --lime: #6EBE44;
  --lime-deep: #57A331;
  --lime-tint: #E9F5E1;
  --ink: #333333;
  --charcoal: #4E4F4F;
  --linen: #F2EFE9;
  --paper: #FFFFFF;
  --muted: #6F7069;

  --font-display: "Jost", "Avenir Next", sans-serif;
  --font-body: "Hanken Grotesk", "Avenir", sans-serif;

  --radius-lg: 36px;
  --radius-md: 26px;
  --shadow-soft: 0 18px 50px -24px rgba(51, 51, 51, .28);
  --shell: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--linen);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.shell {
  width: min(var(--shell), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ---------- shared bits ---------- */

.asterisk {
  color: var(--lime);
  font-style: normal;
  display: inline-block;
  transform: translateY(.05em);
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 1.1rem;
}

.eyebrow .asterisk { margin-right: .4em; font-size: 1.15em; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  padding: .55rem .6rem .55rem 1.5rem;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-orb {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  transition: transform .25s ease;
}

.btn-orb svg { width: 1rem; height: 1rem; }
.btn:hover .btn-orb { transform: rotate(45deg); }

.btn-solid { background: var(--ink); color: #fff; }
.btn-solid .btn-orb { background: var(--lime); color: var(--ink); }
.btn-solid:hover { box-shadow: 0 14px 30px -14px rgba(51, 51, 51, .5); }

.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .55); }
.btn-orb-ink { background: var(--ink); color: #fff; }

/* secondary/low-emphasis action (e.g. quiz "Start over") — was unstyled,
   so it fell back to the browser's default button chrome instead of the
   site's own look. */
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid rgba(51, 51, 51, .25); }
.btn-ghost:hover { background: rgba(51, 51, 51, .06); border-color: var(--ink); box-shadow: none; }

.btn-hero {
  background: var(--paper);
  color: var(--ink);
  padding: .6rem .65rem .6rem 1.7rem;
  font-size: 1.05rem;
  box-shadow: 0 16px 34px -18px rgba(0, 0, 0, .55);
}
.btn-orb-lime { background: var(--lime); color: #fff; }

.link-quiet {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid rgba(51,51,51,.35);
  padding-bottom: .15rem;
  transition: border-color .2s ease, color .2s ease;
}
.link-quiet:hover { border-color: var(--ink); }

.link-onphoto { color: #fff; border-color: rgba(255, 255, 255, .5); }
.link-onphoto:hover { border-color: var(--lime); color: var(--lime); }

/* ---------- nav (floating frosted pill) ---------- */

.nav-b-wrap {
  position: fixed;
  top: 1.4rem;
  left: 0;
  right: 0;
  z-index: 50;
}

.nav-b {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 10px 34px -18px rgba(0, 0, 0, .45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-b .nav-logo img { width: 148px; height: auto; }

.nav-b-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  margin-left: auto;
}

.nav-b-links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--charcoal);
  text-decoration: none;
  transition: color .2s ease;
}
.nav-b-links a:hover { color: var(--lime-deep); }

.nav-cta { flex: none; }
.nav-cta-mobile { display: none; }
.nav-tel-mobile { display: none; }

/* "Browse" dropdown */
.nav-drop { position: relative; }
.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--charcoal);
  transition: color .2s ease;
}
.nav-drop-btn:hover { color: var(--lime-deep); }
.nav-drop-chev {
  width: 9px;
  height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
  margin-top: -2px;
}
.nav-drop.is-open .nav-drop-chev { transform: rotate(225deg); margin-top: 3px; }

.nav-drop-menu {
  display: none;
  position: absolute;
  top: calc(100% + .9rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 190px;
  list-style: none;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .3);
  border: 1px solid rgba(51, 51, 51, .1);
  padding: .5rem;
  z-index: 45;
}
.nav-drop.is-open .nav-drop-menu { display: block; }
.nav-drop-menu li a {
  display: block;
  padding: .6rem .8rem;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .95rem;
  color: var(--charcoal);
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.nav-drop-menu li a:hover { background: var(--lime-tint); color: var(--ink); }

/* Sign in/out sits inside the Account dropdown (js/movenew-auth-ui.js) —
   style it to match the <a> items above it, with a thin rule to separate
   the account action from the Favourites/Saved Searches links. */
.nav-drop-menu li button.nav-auth-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: .6rem .8rem;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .95rem;
  color: var(--charcoal);
  background: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.nav-drop-menu li button.nav-auth-btn:hover { background: var(--lime-tint); color: var(--ink); }
#nav-auth-item {
  margin-top: .3rem;
  padding-top: .3rem;
  border-top: 1px solid rgba(51, 51, 51, .1);
}

.nav-burger {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s ease;
}
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4.75px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4.75px) rotate(-45deg); }

/* ---------- hero (full-bleed photo) ---------- */

.hero-b {
  position: relative;
  min-height: clamp(620px, 94vh, 900px);
  display: flex;
  flex-direction: column;
  isolation: isolate;
  color: #fff;
}

.hero-b-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-b-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 24, 16, .42) 0%, rgba(20, 24, 16, 0) 30%),
    linear-gradient(75deg, rgba(20, 24, 16, .58) 0%, rgba(20, 24, 16, .18) 48%, rgba(20, 24, 16, 0) 72%),
    linear-gradient(0deg, rgba(20, 24, 16, .5) 0%, rgba(20, 24, 16, 0) 34%);
}

.hero-b-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  padding-top: clamp(7rem, 16vh, 9.5rem);
  padding-bottom: clamp(1.8rem, 4vh, 3rem);
}

.eyebrow-b { color: rgba(255, 255, 255, .85); margin-bottom: 1.4rem; }
.eyebrow-b .asterisk { color: var(--lime); }

.hero-b h1 {
  color: #fff;
  font-size: clamp(3rem, 7.6vw, 6.2rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, .25);
}

.hero-b-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
}

.hero-b-subwrap { max-width: 46ch; }

.hero-b-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 24px rgba(0, 0, 0, .35);
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.hero-foot { padding-top: 1.4rem; }

.hero-note {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--charcoal);
}
.hero-note .asterisk { margin-right: .35em; }

/* ---------- why new ---------- */

.why {
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3rem, 7vw, 5.5rem);
  /* Same fixed-nav clearance issue as .quiz-wrap (match.html#match) — any
     section that can be a same-page jump target needs this, since the
     floating nav reserves no layout space of its own. about.html links
     here via #focus. */
  scroll-margin-top: clamp(8rem, 18vh, 10.5rem);
}

.why-head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.why-head h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.card {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 2.3rem 2rem 2.6rem;
  box-shadow: var(--shadow-soft);
  transition: transform .3s ease;
}
.card:hover { transform: translateY(-6px); }

.card h3 {
  font-size: 1.45rem;
  margin: 1.4rem 0 .8rem;
}

.card p { color: var(--muted); font-size: 1rem; }

.card-lime { background: var(--lime); }
.card-lime h3 { color: var(--ink); }
.card-lime p { color: rgba(33, 42, 26, .88); }
.card-lime .card-icon { background: rgba(255,255,255,.9); }

.card-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: var(--lime-tint);
  display: grid;
  place-items: center;
  color: var(--ink);
}

.card-icon svg { width: 46px; height: 46px; }

/* circle-arrow chip sitting in a notch on the card corner */
.card-go {
  position: absolute;
  top: -9px;
  right: -9px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 9px solid var(--linen);
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  transition: transform .25s ease, background .25s ease;
}
.card-go svg { width: 15px; height: 15px; }
.card:hover .card-go { transform: rotate(45deg); background: var(--lime-deep); }
.card-lime .card-go { background: var(--ink); }

/* ---------- independent representation ---------- */

.rep { padding: clamp(1rem, 3vw, 2rem) 0 clamp(3rem, 7vw, 5.5rem); }

.rep-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.rep-media {
  position: relative;
  align-self: stretch;
}

.rep-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.rep-chip {
  position: absolute;
  left: 1.4rem;
  bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem 1.5rem;
  border-radius: 22px;
  background: rgba(30, 34, 26, .55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
}

.rep-chip-big {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--lime);
}

.rep-chip-sub {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .92rem;
  line-height: 1.25;
}

/* margin-inline:auto is a no-op on index.html (rep-body fills its .rep-grid
   column, no max-width of its own there) but centers about.html's usage,
   which has no rep-media counterpart and constrains itself to 68ch inline —
   without this it just sat flush against the shell's left edge. */
.rep-body {
  margin-inline: auto;
}

.rep-body h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  max-width: 22ch;
}

.rep-intro {
  margin-top: 1.2rem;
  color: var(--muted);
  max-width: 56ch;
}

.rep-how {
  margin-top: 1.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}

.rep-list {
  list-style: none;
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem 2.2rem;
}

.rep-list li {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 0;
}

@media (max-width: 640px) {
  .rep-list { grid-template-columns: 1fr; gap: 1.4rem; }
}

.rep-ico {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
}
.rep-ico svg { width: 28px; height: 28px; }

.rep-list h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.rep-list p { color: var(--muted); font-size: .98rem; max-width: 52ch; }

.rep-note {
  margin-top: 1.4rem;
  padding: 1.1rem 1.4rem;
  border-radius: 18px;
  background: var(--lime-tint);
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
}
.rep-note .asterisk { margin-right: .35em; }

/* mortgage-deals.html — "for this home" context when arrived at from a
   listing's pre-approval link, same visual language as .rep-note. */
.mtg-context {
  margin-bottom: 1.4rem;
  padding: 1.1rem 1.4rem;
  border-radius: 18px;
  background: var(--lime-tint);
  font-family: var(--font-display);
  font-size: .95rem;
  color: var(--ink);
}
.mtg-context .asterisk { margin-right: .35em; }

/* ---------- property style tabs ---------- */

.browse { padding: clamp(3rem, 7vw, 5.5rem) 0; }

.browse-head { text-align: center; }

.browse-head h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }

.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .6rem;
  margin: clamp(1.8rem, 4vw, 2.6rem) 0 2rem;
}

.tab {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--charcoal);
  background: transparent;
  border: 1.5px solid rgba(51, 51, 51, .22);
  border-radius: 999px;
  padding: .6rem 1.5rem;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.tab:hover { border-color: var(--ink); color: var(--ink); }

.tab[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.tab-blurb {
  text-align: center;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 auto 2.2rem;
}

.tab-panel.panel-in { animation: panel-in .45s ease both; }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.listing-grid {
  display: grid;
  /* minmax(0, …) not 1fr: a bare 1fr floors at the card's min-content width,
     which lets the track overflow its container instead of shrinking. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.listing-card {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: .7rem;
  box-shadow: var(--shadow-soft);
  transition: transform .3s ease;
}
.listing-card:hover { transform: translateY(-6px); }

/* Remove-from-favourites overlay (favourites.html only) — sits on the card's
   own photo corner; stopPropagation in the click handler keeps it from also
   triggering the card's own link-through to the listing. */
.fav-remove {
  position: absolute; top: .95rem; right: .95rem; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%; border: 0;
  background: rgba(51, 51, 51, .55); color: #fff; font-size: 1.3rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s ease;
}
.fav-remove:hover { background: var(--ink); }

/* No top padding: the .page-head inside (favourites.html, saved-searches.html)
   already provides the standard nav clearance — this used to add its own
   3rem on top of that, landing both pages 48px lower than every other
   non-search page. */
.fav-page { padding: 0 0 5rem; }
.fav-empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.fav-empty p { margin-bottom: 1.2rem; font-size: 1.05rem; }

/* "Save this search" — sits right under the active-filter chips */
.results-save-search { margin-top: 1rem; }

/* Saved Searches page */
.ss-list { display: flex; flex-direction: column; gap: 1rem; max-width: 640px; }
.ss-card {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1.2rem 1.4rem;
}
.ss-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.ss-card-top h3 { margin: 0; font-size: 1.1rem; }
.ss-criteria { color: var(--muted); margin: .5rem 0 1rem; }
.ss-delete { position: static; opacity: .6; }
.ss-delete:hover { opacity: 1; background: var(--ink); }

.listing-media {
  position: relative;
  border-radius: calc(var(--radius-md) - 7px);
  overflow: hidden;
}

.listing-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .5s ease;
}
.listing-card:hover .listing-media img { transform: scale(1.04); }

/* feature badges over a card's main photo — same language as the detail
   gallery: top-left, lead badge in lime. */
.listing-tags {
  position: absolute;
  top: .8rem;
  left: .8rem;
  right: .8rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}

.listing-ftag {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .75rem;
  color: #fff;
  background: rgba(20, 24, 16, .62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: .22rem .7rem;
  white-space: nowrap;
}
.listing-ftag:first-child {
  background: var(--lime);
  color: var(--ink);
  border-color: transparent;
}

.listing-body { padding: 1rem .6rem .7rem; }
.listing-body h3 { font-size: 1.25rem; }
.listing-body p { color: var(--muted); font-size: .95rem; margin-top: .15rem; }

.listing-body .listing-addr {
  font-size: .85rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.listing-body .listing-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--ink);
  margin-top: .5rem;
}

.listing-body .listing-mortgage { font-size: .82rem; color: var(--lime-deep); margin-top: .1rem; }
.listing-body .listing-broker { font-size: .78rem; }

.browse-more {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.browse-more[hidden] { display: none; }
/* .btn's own `display: inline-flex` ties the UA [hidden] rule on specificity,
   and author rules win ties over UA ones — so a hidden .btn wouldn't actually
   hide without this. Needed now that the pagination button can be hidden
   while its sibling "Find Your Match" button stays visible. */
.browse-more .btn[hidden] { display: none; }

.browse-note {
  margin-top: 2.2rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: .95rem;
  color: var(--charcoal);
}
.browse-note .asterisk { margin-right: .35em; }

.browse-cta { text-align: center; margin-top: 1.6rem; }

@media (prefers-reduced-motion: reduce) {
  .tab-panel.panel-in { animation: none; }
}

/* ---------- match page · head ---------- */

.page-head {
  padding-top: clamp(8rem, 18vh, 10.5rem);
  text-align: center;
}

.page-head h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.2rem);
}

.page-head-sub {
  margin: 1.2rem auto 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.1rem;
}

/* ---------- section 5 · process timeline ---------- */

.process { padding: clamp(3rem, 7vw, 5rem) 0 clamp(3.5rem, 8vw, 6.5rem); }

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.step { position: relative; padding-top: .4rem; }

/* connector line between numbered orbs */
.step::before {
  content: "";
  position: absolute;
  top: calc(.4rem + 28px);
  left: 68px;
  right: -2rem;
  height: 2px;
  background: rgba(51, 51, 51, .16);
}
.step:last-child::before { display: none; }

.step-num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid rgba(51, 51, 51, .22);
  transition: background .4s ease, border-color .4s ease, transform .4s ease;
}

.step.is-lit .step-num {
  background: var(--lime);
  border-color: var(--lime);
  transform: scale(1.06);
}

.step h3 { font-size: 1.25rem; margin: 1.1rem 0 .5rem; }
.step p { color: var(--muted); font-size: .98rem; }

/* ---------- matchmaker quiz ---------- */

.quiz-wrap {
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

.quiz-head { text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.quiz-head h2 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }

.quiz {
  max-width: 860px;
  margin-inline: auto;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: var(--shadow-soft);
}

.quiz-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--linen);
  overflow: hidden;
  margin-bottom: 2rem;
}

.quiz-progress-fill {
  display: block;
  height: 100%;
  width: 25%;
  border-radius: 999px;
  background: var(--lime);
  transition: width .4s ease;
}

.quiz-step.step-in { animation: panel-in .4s ease both; }

.quiz-q {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin-bottom: .6rem;
  text-align: center;
}

.quiz-sub {
  color: var(--muted);
  text-align: center;
  max-width: 56ch;
  margin: 0 auto 1.6rem;
}

.opt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.6rem;
}

.opt {
  font-family: var(--font-body);
  text-align: left;
  background: var(--paper);
  border: 1.5px solid rgba(51, 51, 51, .18);
  border-radius: 20px;
  padding: 1.3rem 1.4rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.opt:hover { border-color: var(--ink); transform: translateY(-2px); }

.opt.is-picked {
  border-color: var(--lime);
  background: var(--lime-tint);
}

.opt-wide { grid-column: 1 / -1; }

.opt-ico {
  color: var(--ink);
  margin-bottom: .4rem;
}
.opt-ico svg { width: 34px; height: 34px; }

.opt-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
}
.opt-title .asterisk { margin-right: .3em; }

.opt-sub { color: var(--muted); font-size: .95rem; line-height: 1.45; }

/* selection summary chips on the hand-off step */
.quiz-summary {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.8rem;
}

.quiz-chip {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .88rem;
  background: var(--lime-tint);
  color: var(--ink);
  border-radius: 999px;
  padding: .35rem 1rem;
}
.quiz-chip .asterisk { margin-right: .35em; }

/* form */
.quiz-form { max-width: 560px; margin-inline: auto; }

.form-row { margin-bottom: 1.1rem; }

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.quiz-form label {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .95rem;
  margin-bottom: .35rem;
}

.quiz-form input,
.quiz-form select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--linen);
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: .75rem 1rem;
  transition: border-color .2s ease, background .2s ease;
}

.quiz-form input:focus,
.quiz-form select:focus {
  outline: none;
  border-color: var(--lime);
  background: #fff;
}

.quiz-form small {
  display: block;
  margin-top: .3rem;
  color: var(--muted);
  font-size: .82rem;
}

.quiz-error {
  color: #B3372B;
  font-size: .95rem;
  margin-bottom: 1rem;
}

.quiz-submit {
  width: 100%;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-size: 1.05rem;
  padding: .8rem .8rem .8rem 1.6rem;
  margin-top: .4rem;
}

/* success */
.quiz-success { text-align: center; }

.quiz-success-orb {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  background: var(--lime);
  color: #fff;
  font-size: 2.4rem;
  font-style: normal;
}

.quiz-success .btn { margin-top: 1.4rem; }

/* quiz nav */
.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
}

.quiz-back {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--charcoal);
  background: none;
  border: 0;
  cursor: pointer;
  padding: .3rem .2rem;
}
.quiz-back:hover { color: var(--ink); }

.quiz-count {
  font-family: var(--font-display);
  font-size: .92rem;
  color: var(--muted);
  margin-left: auto;
}

/* ---------- search / community results ---------- */

.results { padding: clamp(7rem, 15vh, 9rem) 0 clamp(3rem, 7vw, 5rem); }
.results-head { margin-bottom: 2rem; }
.results-head h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
.results-head .tab-blurb { margin: .8rem 0 0; text-align: left; }

.results-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.1rem; }
.results-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-display);
  font-size: .85rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--lime-tint);
  border-radius: 999px;
  padding: .3rem .85rem;
  transition: background .15s ease;
}
.results-chip:hover { background: var(--lime); }
.results-chip-x { color: var(--muted); font-size: 1rem; line-height: 1; }
.results-chip-clear { background: none; border: 1.5px solid rgba(51, 51, 51, .2); }
.results-chip-clear:hover { background: var(--ink); color: #fff; }

.results-none { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; }
.results-none h2 { font-size: 1.5rem; margin-bottom: .6rem; }
.results-none p { color: var(--muted); max-width: 48ch; margin: 0 auto 1.4rem; }

/* chips double as remove-filter buttons on the search page */
button.results-chip { border: 0; cursor: pointer; font: inherit; font-size: .85rem; }
button.results-chip-clear { border: 1.5px solid rgba(51, 51, 51, .2); }

/* =====================================================================
   GENERAL / MAP SEARCH  (search.html)
   App-shell: docked nav + realtor.ca filter bar + split list/map.
   ===================================================================== */

.shell-wide { width: min(1580px, calc(100% - 2.5rem)); margin-inline: auto; }

/* nav is docked (not floating) on this page */
.nav-b-wrap-static { position: static; padding: 1rem 0 .4rem; }

/* ---------- filter bar ---------- */
.searchbar-wrap {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--linen);
  padding: .5rem 0 .9rem;
  border-bottom: 1px solid rgba(51, 51, 51, .1);
}

.searchbar {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  align-items: stretch;
  gap: .5rem;
  background: var(--paper);
  border: 1px solid rgba(51, 51, 51, .14);
  border-radius: 999px;
  padding: .4rem .5rem .4rem 1.2rem;
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .35);
}

.searchbar-q {
  flex: 0 0 380px;
  max-width: 380px;
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}
.searchbar-q:focus { outline: none; }
.searchbar-q::placeholder { color: var(--muted); }

.searchbar-sel {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  border-left: 1px solid rgba(51, 51, 51, .12);
  padding-left: .4rem;
}
.searchbar-sel::after {
  content: "";
  position: absolute;
  right: .7rem;
  width: 8px; height: 8px;
  border-right: 2px solid var(--charcoal);
  border-bottom: 2px solid var(--charcoal);
  transform: rotate(45deg) translateY(-2px);
  pointer-events: none;
}
.searchbar-sel select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink);
  padding: .4rem 1.9rem .4rem .7rem;
}
.searchbar-sel select:focus { outline: none; color: var(--lime-deep); }
.searchbar-sel-type select { font-weight: 600; }

.searchbar-more { position: relative; flex: none; display: flex; align-items: center; }
.searchbar-morebtn {
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .95rem;
  color: var(--charcoal);
  padding: .4rem .9rem;
  border-left: 1px solid rgba(51, 51, 51, .12);
}
.searchbar-morebtn:hover { color: var(--ink); }
.searchbar-morepanel {
  position: absolute;
  top: calc(100% + .8rem);
  right: 0;
  width: 280px;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .3);
  border: 1px solid rgba(51, 51, 51, .1);
  padding: 1.1rem 1.2rem 1.2rem;
  z-index: 40;
}
.searchbar-morepanel h4 { font-family: var(--font-display); font-size: .95rem; margin-bottom: .6rem; }
.searchbar-range { display: flex; align-items: center; gap: .5rem; }
.searchbar-dash { color: var(--muted); }
.searchbar-num {
  width: 100%;
  border: 1.5px solid rgba(51, 51, 51, .18);
  border-radius: 12px;
  padding: .55rem .7rem;
  font-family: var(--font-body);
  font-size: .95rem;
  background: var(--linen);
}
.searchbar-num:focus { outline: none; border-color: var(--lime); background: #fff; }
.searchbar-hint { font-size: .78rem; color: var(--muted); margin-top: .7rem; }

.searchbar-morepanel h4 + .searchbar-checks,
.searchbar-range + h4 {
  margin-top: .2rem;
}
.searchbar-morepanel h4:not(:first-child) {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(51, 51, 51, .1);
}

.searchbar-checks { display: flex; flex-direction: column; gap: .7rem; }
.searchbar-check {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  cursor: pointer;
}
.searchbar-check input {
  margin-top: .2rem;
  width: 16px;
  height: 16px;
  accent-color: var(--lime);
  cursor: pointer;
  flex: none;
}
.searchbar-check span { display: flex; flex-direction: column; }
.searchbar-check strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .92rem;
  color: var(--ink);
}
.searchbar-check small { font-size: .78rem; color: var(--muted); }

.searchbar-go {
  flex: none;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s ease, color .2s ease;
}
.searchbar-go svg { width: 18px; height: 18px; }
.searchbar-go:hover { background: var(--lime-deep); color: #fff; }

/* ---------- split panes ---------- */
.searchpage-list { padding: 1.4rem 0 2.5rem; }
.searchpage-list .shell,
.searchpage-list > * { }
.searchpage-list .results-head { margin-bottom: 1.4rem; }
.searchpage-list .results-head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.listing-grid-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* isolate: Leaflet assigns its internal panes real z-index values up to 700
   (tile/marker/popup panes). Without a stacking context of its own here, those
   values leak past this wrapper and compete directly with sibling UI (like
   the searchbar's "More" dropdown) at the page root — and often win. This
   contains all of Leaflet's internal stacking inside the map pane. */
.searchpage-map { position: relative; isolation: isolate; background: #E7E3DB; }
.searchmap { position: absolute; inset: 0; }

/* card flash when its pin is clicked */
.listing-card.is-flash {
  box-shadow: 0 0 0 3px var(--lime), var(--shadow-soft);
}

/* ---------- map pins ---------- */
.map-pin { background: transparent; border: 0; }
.map-pin-inner {
  position: absolute;
  left: 0; top: 0;
  transform: translate(-50%, -115%);
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .8rem;
  line-height: 1;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: .3rem .6rem;
  box-shadow: 0 3px 8px -2px rgba(0, 0, 0, .35);
  cursor: pointer;
  transition: background .12s ease, color .12s ease, transform .12s ease;
}
.map-pin-inner::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -5px;
  width: 8px; height: 8px;
  background: inherit;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: translateX(-50%) rotate(45deg);
}
.map-pin:hover .map-pin-inner,
.map-pin.is-active .map-pin-inner,
.map-pin .map-pin-inner.is-hover {
  background: var(--lime);
  border-color: var(--lime-deep);
  transform: translate(-50%, -122%) scale(1.06);
  z-index: 500;
}
.map-pin.is-active .map-pin-inner::after,
.map-pin:hover .map-pin-inner::after { border-color: var(--lime-deep); }

/* ---------- clusters ---------- */
.map-cluster { background: transparent; border: 0; }
.map-cluster span {
  position: absolute;
  left: 0; top: 0;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
  background: var(--lime-deep);
  border: 3px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  box-shadow: 0 3px 10px -2px rgba(0, 0, 0, .4);
}
.map-cluster-sm span { width: 38px; height: 38px; font-size: .85rem; }
.map-cluster-md span { width: 46px; height: 46px; font-size: .9rem; }
.map-cluster-lg span { width: 56px; height: 56px; font-size: .95rem; }

/* ---------- map popup mini-card ---------- */
.mappop-wrap .leaflet-popup-content-wrapper {
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .4);
}
.mappop-wrap .leaflet-popup-content { margin: 0; width: 240px !important; }
.mappop-wrap .leaflet-popup-tip { }
.mappop { display: block; text-decoration: none; color: var(--ink); }
.mappop-media { position: relative; display: block; }
.mappop-media img { width: 100%; height: 132px; object-fit: cover; display: block; }
.mappop-tags { position: absolute; top: .5rem; left: .5rem; display: flex; gap: .3rem; flex-wrap: wrap; }
.mappop-tag {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .68rem;
  color: #fff;
  background: rgba(20, 24, 16, .62);
  border-radius: 999px;
  padding: .18rem .55rem;
}
.mappop-tags .mappop-tag:first-child { background: var(--lime); color: var(--ink); }
.mappop-body { display: block; padding: .7rem .85rem .85rem; }
.mappop-price { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; display: block; }
.mappop-hood { font-family: var(--font-display); font-weight: 500; font-size: .95rem; display: block; margin-top: .1rem; }
.mappop-meta { color: var(--muted); font-size: .85rem; display: block; margin-top: .1rem; }
.mappop-addr { color: var(--muted); font-size: .8rem; display: block; margin-top: .15rem; }
.mappop-cta { color: var(--lime-deep); font-family: var(--font-display); font-weight: 600; font-size: .88rem; display: block; margin-top: .55rem; }

/* ---------- mobile list/map toggle ---------- */
.search-toggle {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  background: var(--ink);
  border-radius: 999px;
  padding: .3rem;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5);
}
.search-toggle button {
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .95rem;
  color: rgba(255, 255, 255, .8);
  padding: .5rem 1.4rem;
  border-radius: 999px;
}
.search-toggle button.is-picked { background: var(--lime); color: var(--ink); }

/* map hidden until Leaflet confirms it loaded */
body.no-map .searchpage { grid-template-columns: 1fr; }
body.no-map .searchpage-map { display: none; }

/* ---------- desktop app-shell ---------- */
@media (min-width: 900px) {
  .search-body { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
  .searchpage {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  }
  .searchpage-list {
    overflow-y: auto;
    padding: 1.4rem clamp(1rem, 2.5vw, 2rem) 3rem;
  }
  .searchpage-map { display: block; }
  .search-toggle { display: none; }
}

/* ---------- mobile ---------- */
@media (max-width: 899px) {
  .searchpage { display: block; }
  .searchpage-list { padding: 1.2rem clamp(1rem, 4vw, 1.5rem) 6rem; }
  .listing-grid-2 { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .searchpage-map {
    position: fixed;
    left: 0; right: 0;
    top: 0; bottom: 0;
    z-index: 45;
    display: none;
  }
  body.show-map .searchpage-map { display: block; }
  body.show-map .searchpage-list { display: none; }
  .searchbar { flex-wrap: wrap; width: 100%; margin-inline: 0; border-radius: 24px; padding: .6rem .7rem; }
  .searchbar-q { flex-basis: 100%; max-width: none; padding: .3rem .2rem .5rem; border-bottom: 1px solid rgba(51,51,51,.1); }
  .searchbar-sel:first-of-type { border-left: 0; padding-left: 0; }
  .searchbar-go { margin-left: auto; }

  /* the More panel floats via right:0 relative to its own button, which
     works on a full-width desktop bar but runs off-screen once the bar
     wraps into narrow rows here — let it sit in normal flow instead. */
  .searchbar-more { flex-basis: 100%; order: 1; }
  .searchbar-morepanel {
    position: static;
    width: 100%;
    max-width: none;
    margin-top: .6rem;
    box-shadow: none;
    border: 0;
    border-top: 1px solid rgba(51, 51, 51, .12);
    border-radius: 0;
    padding: 1rem 0 .2rem;
  }
}

/* ---------- property detail page ---------- */

.pdp { padding-top: clamp(6.5rem, 14vh, 8.5rem); }

.pdp-loading, .pdp-missing { padding: 4rem 0; text-align: center; }
.pdp-missing h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .8rem; }
.pdp-missing p { color: var(--muted); max-width: 46ch; margin: 0 auto 1.6rem; }

.pdp-back {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  margin-bottom: 1rem;
}
.pdp-back:hover { color: var(--lime-deep); }

/* action bar — share / print / favourite / signup / login */
.pdp-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: .9rem;
}
.pdp-actions-l, .pdp-actions-r { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }

.pdp-action {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .88rem;
  color: var(--charcoal);
  background: none;
  border: 0;
  border-radius: 999px;
  padding: .4rem .7rem;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.pdp-action:hover { background: rgba(51, 51, 51, .07); color: var(--ink); }
.pdp-action-ico { display: grid; place-items: center; }
.pdp-action-ico svg { width: 18px; height: 18px; }

.pdp-fav.is-on { color: var(--lime-deep); }
.pdp-fav.is-on .heart-path { fill: var(--lime); stroke: var(--lime-deep); }

.pdp-action-ghost {
  border: 1.5px solid rgba(51, 51, 51, .18);
  padding: .4rem 1rem;
}
.pdp-action-ghost:hover { border-color: var(--ink); background: none; }

/* toast */
.pdp-toast {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 90;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-size: .92rem;
  border-radius: 999px;
  padding: .6rem 1.3rem;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6);
}

/* modal */
.modal-back {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 24, 16, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 1.2rem;
  overflow-y: auto;
}
.modal-card {
  position: relative;
  width: min(460px, 100%);
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
}
.modal-x {
  position: absolute;
  top: .9rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.modal-x:hover { background: var(--linen); color: var(--ink); }
.modal-title { font-size: 1.5rem; margin-bottom: .5rem; padding-right: 2rem; }
.modal-sub { color: var(--muted); font-size: .95rem; margin-bottom: 1.3rem; }

.modal-form label {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .92rem;
  margin-bottom: .3rem;
}
.modal-form input, .modal-form select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--linen);
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: .7rem .9rem;
  margin-bottom: .9rem;
}
.modal-form input:focus, .modal-form select:focus {
  outline: none; border-color: var(--lime); background: #fff;
}
.modal-form small {
  display: block;
  margin: -.7rem 0 .9rem;
  color: var(--muted);
  font-size: .78rem;
}
.modal-submit { width: 100%; justify-content: center; border: 0; cursor: pointer; padding: .75rem .75rem .75rem 1.5rem; }
.modal-fine { margin-top: .9rem; font-size: .78rem; color: var(--muted); line-height: 1.5; }

/* Account modal: Google button + step-nav links (js/listing.js openAuth) */
.auth-google-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: .7rem .9rem; margin-bottom: .9rem;
  background: #fff; border: 1.5px solid var(--linen); border-radius: 14px;
  font-family: var(--font-display); font-size: .92rem; font-weight: 600; color: var(--ink);
  cursor: pointer;
}
.auth-google-btn:active { transform: scale(0.98); }
.auth-divider {
  display: flex; align-items: center; gap: .7rem; margin: -.2rem 0 .9rem;
  font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em;
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--linen); }
.auth-links { margin: -.3rem 0 .3rem; }
.modal-link {
  display: block; width: 100%; text-align: center; background: none; border: 0;
  padding: .4rem; margin-top: .3rem; font-size: .85rem; color: var(--muted); cursor: pointer;
}
.modal-link:hover { color: var(--lime-deep); }
.modal-result {
  margin-top: .4rem;
  padding: .9rem 1rem;
  border-radius: 14px;
  background: var(--lime-tint);
  font-family: var(--font-display);
  font-weight: 500;
  text-align: center;
}
.modal-done { text-align: center; }
.modal-done h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.modal-done p { color: var(--muted); font-size: .95rem; }

/* gallery */
.gal { margin-bottom: 1.8rem; }

.gal-stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #E7E3DB;
  box-shadow: var(--shadow-soft);
}

.gal-main {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* feature badges over the main photo */
.gal-tags {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  max-width: calc(100% - 2rem);
}

.gal-tag {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .82rem;
  color: #fff;
  background: rgba(20, 24, 16, .62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: .3rem .85rem;
  white-space: nowrap;
}
.gal-tag:first-child { background: var(--lime); color: var(--ink); border-color: transparent; }

.gal-count {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  font-family: var(--font-display);
  font-size: .85rem;
  color: #fff;
  background: rgba(20, 24, 16, .6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: .3rem .9rem;
}

.gal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--ink);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .2s ease;
}
.gal-nav:hover { background: #fff; }
.gal-prev { left: 1rem; }
.gal-next { right: 1rem; }

.gal-thumbs {
  display: flex;
  gap: .5rem;
  margin-top: .6rem;
  overflow-x: auto;
  padding-bottom: .3rem;
}

.gal-thumb {
  flex: none;
  width: 104px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  opacity: .62;
  transition: opacity .2s ease, border-color .2s ease;
}
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gal-thumb:hover { opacity: 1; }
.gal-thumb[aria-current="true"] { opacity: 1; border-color: var(--lime); }

/* builder incentives banner */
.pdp-promo {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--lime);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  margin-bottom: 1.6rem;
}
.pdp-promo-ico { font-size: 1.6rem; color: var(--ink); line-height: 1; }
.pdp-promo-txt { flex: 1 1 320px; color: var(--ink); font-size: 1rem; }
.pdp-promo-txt strong { font-family: var(--font-display); font-weight: 600; }

/* mortgage estimate */
.pdp-mort {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
  margin: .6rem 0 .9rem;
}
.pdp-mort-main { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.pdp-mort-val {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
}
.pdp-mort-lab { font-size: .85rem; color: var(--muted); }
.pdp-mort-tweak {
  background: none;
  border: 0;
  border-bottom: 1.5px solid rgba(51, 51, 51, .3);
  padding: 0 0 1px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: .85rem;
  color: var(--charcoal);
}
.pdp-mort-tweak:hover { color: var(--ink); border-color: var(--ink); }

/* pre-approval — an inline text link, not another pill */
.pdp-pre-link {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .95rem;
  color: var(--lime-deep);
  border-bottom: 1.5px solid rgba(110, 190, 68, .45);
  transition: color .2s ease, border-color .2s ease;
}
.pdp-pre-link:hover { color: var(--ink); border-color: var(--ink); }

/* pricing guide — how this list price compares to similar new homes.
   One flowing paragraph; only the stat itself (arrow + % + above/below)
   is coloured, the rest reads as plain body copy. */
.pdp-pricing {
  margin-top: .7rem;
  max-width: 44ch;
  font-size: .92rem;
  line-height: 1.55;
  color: var(--charcoal);
}
.pdp-pricing-stat { font-weight: 600; white-space: nowrap; }
.pdp-pricing-stat.is-above { color: #B3372B; }
.pdp-pricing-stat.is-below { color: var(--lime-deep); }
.pdp-pricing-stat.is-at { color: var(--muted); }
.pdp-pricing-how {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: inherit;
  color: var(--lime-deep);
  border-bottom: 1.5px solid rgba(110, 190, 68, .5);
}
.pdp-pricing-how:hover { color: var(--ink); border-color: var(--ink); }

.pdp-hood-link { color: var(--lime-deep); text-decoration: none; border-bottom: 1.5px solid rgba(110, 190, 68, .5); }
.pdp-hood-link:hover { border-color: var(--lime-deep); }

.pdp-tag-days { background: var(--lime-tint); border-color: transparent; }

/* pdp tabs */
.pdp-tabs {
  display: flex;
  gap: .3rem;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(51, 51, 51, .16);
  margin-bottom: 1.6rem;
}
.pdp-tab {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: .7rem 1.1rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--muted);
  transition: color .2s ease, border-color .2s ease;
}
.pdp-tab:hover { color: var(--ink); }
.pdp-tab[aria-selected="true"] { color: var(--ink); border-color: var(--lime); }

.pdp-panel.panel-in { animation: panel-in .35s ease both; }

.pdp-hood-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0 .4rem; }

/* similar */
.pdp-similar { margin: 2.4rem 0 1rem; }
.pdp-similar h2 { font-size: clamp(1.5rem, 3vw, 2rem); text-align: center; }
.pdp-similar .tab-blurb { margin-bottom: 1.6rem; }
.pdp-similar .listing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.pdp-nearby { margin-top: 2rem; text-align: center; }
.pdp-nearby h3 { font-size: 1.05rem; margin-bottom: .7rem; }
.pdp-nearby .pdp-hood-actions { justify-content: center; margin: 0; }

/* top info — address, community, MLS#, listing credit, above the gallery */
.pdp-topinfo { margin-bottom: 1.1rem; }
.pdp-topinfo-agent { color: var(--muted); font-size: .8rem; }

/* header */
.pdp-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}

.pdp-tags { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: .9rem; }

.pdp-tag {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .82rem;
  border-radius: 999px;
  padding: .25rem .8rem;
  background: var(--paper);
  color: var(--charcoal);
  border: 1px solid rgba(51, 51, 51, .14);
}
.pdp-tag-lime { background: var(--lime); color: var(--ink); border-color: transparent; }

.pdp-price { font-size: clamp(2.2rem, 4.6vw, 3.2rem); line-height: 1; }
.pdp-price-was { margin-top: .3rem; font-size: .95rem; font-weight: 600; color: var(--lime-deep); }
.pdp-addr { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; margin-top: .5rem; }
.pdp-hood { color: var(--muted); }
.pdp-mls { color: var(--muted); font-size: .9rem; margin-top: .2rem; }

.pdp-head-cta { text-align: right; }
.pdp-free { font-size: .88rem; color: var(--muted); margin-top: .5rem; }

/* spec strip */
.pdp-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  background: rgba(51, 51, 51, .12);
  border: 1px solid rgba(51, 51, 51, .12);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 2.2rem;
}

.pdp-spec {
  background: var(--paper);
  padding: 1.2rem 1rem;
  text-align: center;
}
.pdp-spec-v {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ink);
}
.pdp-spec-k { display: block; font-size: .82rem; color: var(--muted); margin-top: .15rem; }

/* columns */
.pdp-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 1.6rem;
  align-items: start;
}

.pdp-block {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.4rem;
}

.pdp-block h2 { font-size: 1.4rem; margin-bottom: .9rem; }
.pdp-desc p { color: var(--muted); white-space: pre-line; }

.pdp-group { margin-top: 1.2rem; }
.pdp-group:first-of-type { margin-top: 0; }
.pdp-group h3 {
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lime-deep);
  margin-bottom: .5rem;
}

.pdp-dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  column-gap: 1rem;
}
.pdp-dl dt {
  color: var(--muted);
  font-size: .95rem;
  padding: .5rem 0;
  border-top: 1px solid rgba(51, 51, 51, .1);
}
.pdp-dl dd {
  font-size: .95rem;
  padding: .5rem 0;
  border-top: 1px solid rgba(51, 51, 51, .1);
}
.pdp-dl dt:first-of-type, .pdp-dl dd:first-of-type { border-top: 0; }

.pdp-roomlist { list-style: none; }
.pdp-roomlist li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem 0;
  border-top: 1px solid rgba(51, 51, 51, .1);
}
.pdp-roomlist li:first-child { border-top: 0; }
.pdp-room-t { font-family: var(--font-display); font-weight: 500; }
.pdp-room-d { color: var(--muted); font-size: .92rem; }

.pdp-note { margin-top: 1rem; font-size: .88rem; color: var(--muted); }

/* side */
.pdp-side { position: sticky; top: 6.5rem; }
.pdp-book-sub { color: var(--muted); font-size: .95rem; margin-bottom: 1.2rem; }

.book-modes { display: grid; gap: .5rem; }
.book-mode {
  font-family: var(--font-body);
  font-size: .95rem;
  text-align: left;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid rgba(51, 51, 51, .18);
  border-radius: 14px;
  padding: .7rem 1rem;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.book-mode:hover { border-color: var(--ink); }
.book-mode.is-picked { border-color: var(--lime); background: var(--lime-tint); }
.book-modes-2 { grid-template-columns: 1fr 1fr; }
.book-modes-2 .book-mode { text-align: center; }

.book-ask {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--linen);
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: .7rem .9rem;
  resize: vertical;
  min-height: 96px;
}
.book-ask:focus { outline: none; border-color: var(--lime); background: #fff; }

/* "Contact us" inside the incentives banner */
.pdp-promo-link {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: inherit;
  color: var(--ink);
  border-bottom: 2px solid rgba(51, 51, 51, .5);
  transition: border-color .2s ease;
}
.pdp-promo-link:hover { border-color: var(--ink); }

/* contact page — who you're actually talking to */
.contact-intro {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(51, 51, 51, .1);
}
.contact-photo {
  flex: none;
  width: 84px;
  height: 84px;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}
.contact-name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.contact-role { color: var(--muted); font-size: .92rem; margin-top: .1rem; }
.contact-tel { font-size: .92rem; margin-top: .3rem; }
.contact-tel a {
  color: var(--lime-deep);
  text-decoration: none;
  border-bottom: 1.5px solid rgba(110, 190, 68, .5);
}
.contact-tel a:hover { border-color: var(--lime-deep); }

.book-form label {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .95rem;
  margin-bottom: .35rem;
}
.book-form input, .book-form select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--linen);
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: .7rem .9rem;
  transition: border-color .2s ease, background .2s ease;
}
.book-form input:focus, .book-form select:focus {
  outline: none;
  border-color: var(--lime);
  background: #fff;
}
.book-form small { display: block; margin-top: .3rem; color: var(--muted); font-size: .8rem; }

.book-submit {
  width: 100%;
  justify-content: center;
  border: 0;
  cursor: pointer;
  padding: .75rem .75rem .75rem 1.5rem;
  margin-top: .4rem;
}

.book-done { text-align: center; padding: 1rem 0; }
.book-done h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.book-done p { color: var(--muted); font-size: .95rem; }

.pdp-map-embed {
  height: 260px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: .9rem;
  background: #E7E3DB;
}
.pdp-map-directions {
  display: block;
  width: fit-content;
  margin: 0 auto;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .92rem;
  color: var(--lime-deep);
  text-decoration: none;
  border-bottom: 1.5px solid rgba(110, 190, 68, .5);
}
.pdp-map-directions:hover { border-color: var(--lime-deep); }

/* legal */
.pdp-legal {
  margin: 1rem 0 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(51, 51, 51, .14);
}
.pdp-legal p { font-size: .8rem; color: var(--muted); line-height: 1.5; margin-bottom: .6rem; }
.pdp-courtesy {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .95rem !important;
  color: var(--ink) !important;
}

/* ---------- footer ---------- */

.site-footer {
  margin-top: clamp(2rem, 6vw, 4rem);
  background: var(--ink);
  color: rgba(255,255,255,.75);
  font-size: .95rem;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.4rem 3rem;
  padding: 2.4rem 0 1.8rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  max-width: 260px;
}
.footer-logo { width: 128px; height: auto; }
.footer-credit {
  font-size: .78rem;
  color: rgba(255, 255, 255, .45);
}
.footer-contact {
  margin-top: .4rem;
  font-size: .85rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .75);
}
.footer-contact a { color: inherit; text-decoration: none; }
.footer-contact a:hover { color: #fff; }

.footer-col h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  margin: 0 0 1rem;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.footer-col a {
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  font-size: .92rem;
}
.footer-col a:hover { color: #fff; }

.footer-legal {
  padding-bottom: 1.4rem;
}
.footer-legal p {
  font-size: .78rem;
  color: rgba(255, 255, 255, .45);
}
.footer-bottom {
  margin-top: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.2rem;
  justify-content: space-between;
}
.footer-bottom p { margin: 0; max-width: none; }
.footer-bottom a {
  font-size: .78rem;
  color: rgba(255, 255, 255, .45);
  text-decoration: underline;
}
.footer-bottom a:hover { color: rgba(255, 255, 255, .75); }

@media (max-width: 560px) {
  .footer-inner { gap: 2rem; }
  .footer-brand { max-width: none; }
}

/* ---------- legal content (privacy-policy.html) ---------- */

.legal-content {
  max-width: 68ch;
  margin: 0 auto;
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}
.legal-content .updated { color: var(--muted); font-size: .92rem; margin-bottom: 2.5rem; }
.legal-content h2 {
  font-size: 1.4rem;
  margin: 2.4rem 0 .9rem;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--charcoal); }
.legal-content p { margin-top: .9rem; }
.legal-content ul, .legal-content ol { margin-top: .9rem; padding-left: 1.3rem; }
.legal-content li { margin-top: .5rem; }
.legal-content li::marker { color: var(--lime-deep); }
.legal-content a { color: var(--lime-deep); text-decoration: underline; }
.legal-content a:hover { color: var(--ink); }
.legal-content strong { color: var(--ink); }

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .nav-b-links { gap: 1.2rem; }
  .nav-b { gap: 1rem; }
}

@media (max-width: 1080px) {
  .pdp-similar .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .why-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }

  .rep-grid { grid-template-columns: 1fr; }
  .rep-media img { min-height: 0; aspect-ratio: 4 / 3; }
  .rep-body h2, .rep-intro { max-width: none; }

  .listing-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
}

@media (max-width: 860px) {
  .nav-b { padding: .6rem 1rem; }
  .nav-b-links {
    display: none;
    position: absolute;
    top: calc(100% + .6rem);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    flex-direction: column;
    gap: 0;
    padding: .6rem 1.25rem 1.4rem;
  }
  .nav-b-links.is-open { display: flex; }
  .nav-b-links li a { display: block; padding: .85rem 0; font-size: 1.15rem; }

  .nav-drop-btn { width: 100%; justify-content: space-between; padding: .85rem 0; font-size: 1.15rem; }
  .nav-drop-menu {
    display: none;
    position: static;
    transform: none;
    min-width: 0;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    background: var(--linen);
    padding: 0 0 .4rem .9rem;
    margin-bottom: .4rem;
  }
  .nav-drop.is-open .nav-drop-menu { display: block; }
  .nav-drop-menu li a { padding: .6rem 0; font-size: 1.05rem; border-radius: 0; }
  .nav-drop-menu li a:hover { background: none; color: var(--lime-deep); }

  .nav-cta { display: none; }
  .nav-cta-mobile { display: block; margin-top: .8rem; }
  .nav-cta-mobile .btn { justify-content: center; width: 100%; padding: .8rem 1.5rem; }
  .nav-tel-mobile { display: block; margin-top: .6rem; text-align: center; }
  .nav-tel-mobile a { font-size: .95rem; color: var(--muted); padding: 0; }
  .nav-burger { display: flex; margin-left: auto; }

  .hero-b { min-height: 88vh; }
  .hero-b-inner { padding-top: 7rem; }
  .hero-b h1 { font-size: clamp(2.7rem, 12vw, 3.6rem); }

  .steps { grid-template-columns: 1fr; gap: 2.2rem; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 1.2rem; }
  .step h3 { margin: 0 0 .4rem; align-self: center; }
  .step p { grid-column: 2; }
  .step::before {
    top: calc(.4rem + 56px + 8px);
    left: 27px;
    right: auto;
    bottom: -2.2rem;
    width: 2px;
    height: auto;
  }

  .opt-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; gap: 0; }
  .form-row-2 > div { margin-bottom: 1.1rem; }

  .pdp-cols { grid-template-columns: 1fr; }
  .pdp-side { position: static; }
  .pdp-head { align-items: flex-start; }
  .pdp-head-cta { text-align: left; width: 100%; }
  .pdp-head-cta .btn { width: 100%; justify-content: center; }
  .gal-main { aspect-ratio: 4 / 3; }
  .pdp-dl { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

  .pdp-similar .listing-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
  .pdp-actions { justify-content: flex-start; }
}

/* ---------- print ---------- */

@media print {
  .nav-b-wrap, .site-footer, .pdp-actions, .pdp-head-cta, .pdp-book,
  .pdp-pre-link, .pdp-mort-tweak, .gal-nav, .gal-thumbs,
  .pdp-back, .pdp-similar, .pdp-map, .browse-more, .pdp-tabs {
    display: none !important;
  }
  body { background: #fff; }
  .pdp { padding-top: 0; }
  .pdp-block { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
  .pdp-cols { grid-template-columns: 1fr; }
  .gal-main { aspect-ratio: 16 / 9; max-height: 8cm; }
  /* every tab's content prints, not just the visible one */
  .pdp-panel[hidden] { display: block !important; }
  .pdp-specs { border: 1px solid #ddd; }
  a[href]::after { content: ""; }
}


/* ===== Matchmaker: multi-select tiles, continue button, results ===== */
.quiz-hint{font-size:.98rem;color:var(--muted);margin:-2px 0 16px}
.opt[aria-pressed="true"],.opt.is-picked{position:relative}
.opt.is-picked::after{content:"✓";position:absolute;top:10px;right:12px;
  width:20px;height:20px;border-radius:50%;display:grid;place-items:center;
  font-size:12px;font-weight:700;background:var(--accent,#1c3faa);color:#fff}
.quiz-next-wrap{display:flex;justify-content:flex-end;margin-top:18px}
.quiz-next:disabled{opacity:.4;cursor:not-allowed}
.quiz-results .listing-grid{margin-top:18px}
.match-relaxed{margin-top:12px;padding:12px 16px;border-radius:12px;font-size:.98rem;line-height:1.55;
  color:var(--muted);background:rgba(51,51,51,.045)}
.match-actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;margin-top:22px}
.match-save{margin-top:26px;padding:22px 24px;border:1px solid rgba(51,51,51,.10);border-radius:16px;
  background:rgba(51,51,51,.03)}
.match-save h4{margin:0 0 6px;font-size:16px}
.match-save p{margin:0 0 14px;font-size:13.5px;line-height:1.55;color:var(--ink-2,#555553)}
.match-save-note{margin-top:10px!important;font-weight:600}
@media (max-width:640px){.quiz-next-wrap{justify-content:stretch}.quiz-next{width:100%}}


/* Quiz buttons centre their own label. The site's .btn is a flex row built for
   an icon-plus-text pairing (asymmetric padding to leave room for a trailing
   orb icon), so a plain text button both sat left of centre and looked
   off-centre even with justify-content set, since the padded box itself was
   lopsided. Symmetric padding here fixes both. */
.quiz-next,#match-restart,#match-see-all,#match-save-btn{
  display:inline-flex;align-items:center;justify-content:center;text-align:center;
  padding:.7rem 1.6rem}

/* Continue reads as the primary action — green, matching the site's other
   primary CTAs (nav "Find Your Match", hero search button). */
.quiz-next{background:var(--lime);color:var(--ink)}
.quiz-next:hover{background:var(--lime-deep)}
.quiz-next:disabled{background:var(--lime);opacity:.4}

/* ---- 4) results break the shell ----
   The quiz sits in .shell, which is right for reading questions and wrong for a
   listing grid — cards were rendering into roughly half the viewport while the
   same grid on search.html runs edge to edge. Only the results escape it. */
.quiz-results .listing-grid,
.quiz-results .browse-more{
  width:100vw;max-width:100vw;
  margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);
  padding-left:clamp(16px,4vw,48px);padding-right:clamp(16px,4vw,48px)}

/* ======================= HOME HERO (promoted from ALT+2.5) ======================= */
.a2-hero {
  position: relative;
  min-height: clamp(660px, 96vh, 940px);
  display: flex;
  flex-direction: column;
  isolation: isolate;
  color: #fff;
  /* room for the floating search panel to overhang the bottom edge */
  padding-bottom: clamp(5rem, 11vh, 8rem);
}

.a2-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Darker at top-left (headline) and along the bottom (search panel edge)
   so white type stays legible over an unpredictable photo. */
.a2-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 24, 16, .46) 0%, rgba(20, 24, 16, 0) 32%),
    linear-gradient(75deg, rgba(20, 24, 16, .62) 0%, rgba(20, 24, 16, .22) 50%, rgba(20, 24, 16, .06) 74%),
    linear-gradient(0deg, rgba(20, 24, 16, .72) 0%, rgba(20, 24, 16, .34) 34%, rgba(20, 24, 16, 0) 60%);
}

.a2-hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(1.4rem, 3vh, 2.2rem);
  padding-top: clamp(7rem, 16vh, 9.5rem);
  padding-bottom: clamp(5rem, 12vh, 8rem);
}

/* ---- headline, with the supporting line stacked underneath ---- */
.a2-headrow {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.a2-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, .3);
}
.a2-hero-sub {
  font-size: 1.25rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .93);
  text-shadow: 0 1px 24px rgba(0, 0, 0, .4);
  max-width: 52ch;
}

/* ---- floating search panel ---- */
.a2-searchwrap {
  position: relative;
  z-index: 2;
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
  /* pulls the panel down over the photo's bottom edge */
  margin-bottom: clamp(-7rem, -11vh, -4.5rem);
}
.a2-search {
  /* full content width — matches the nav's shell above it */
  background: var(--paper);
  border-radius: var(--radius-md);
  box-shadow: 0 30px 70px -30px rgba(20, 24, 16, .55);
  padding: clamp(1rem, 1.8vw, 1.4rem);
}
.a2-search-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: .7rem;
}
.a2-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 1rem;
  align-items: end;
}
.a2-field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .25rem;
}
.a2-field input,
.a2-field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--ink);
  background: var(--linen);
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: .52rem .8rem;
  appearance: none;
  -webkit-appearance: none;
}
.a2-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%234E4F4F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  background-size: 12px;
  padding-right: 2.1rem;
  cursor: pointer;
}
.a2-field input:focus,
.a2-field select:focus { outline: none; border-color: var(--lime); background: #fff; }

.a2-search-go {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .95rem;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 12px;
  padding: .55rem 1.5rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s ease;
}
.a2-search-go:hover { background: var(--lime-deep); }

/* ---- bottom filter row ---- */
.a2-filterrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .7rem;
  padding-top: .7rem;
  border-top: 1px solid rgba(51, 51, 51, .1);
}
.a2-filterrow-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .85rem;
  color: var(--muted);
  margin-right: .2rem;
}
.a2-chip {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .85rem;
  color: var(--charcoal);
  background: var(--linen);
  border: 1px solid rgba(51, 51, 51, .1);
  border-radius: 999px;
  padding: .38rem 1rem;
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}
.a2-chip:hover { background: var(--lime-tint); color: var(--ink); }

/* stands apart from the plain filter chips — this one leads somewhere
   different (the match quiz), not another search.html filter */
.a2-chip-cta {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
  font-weight: 600;
}
.a2-chip-cta:hover { background: var(--lime-deep); border-color: var(--lime-deep); color: #fff; }

/* space below the overhanging panel before the note */
.a2-foot { padding-top: clamp(6rem, 12vh, 8.5rem); }

@media (max-width: 900px) {
  .a2-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a2-search-go { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 560px) {
  .a2-fields { grid-template-columns: 1fr; }
  .a2-searchwrap { margin-bottom: clamp(-5rem, -8vh, -3rem); }
}
