/* eXp Luxury — brand palette and type from the eXp Luxury Brand Guidelines */
:root {
  --gold: #b19a55;
  --gold-soft: #c9b57a;
  --light-grey: #e2e3e4;
  --dark-grey: #3d3d3d;
  --black: #000000;
  --white: #ffffff;
  --panel: #0d0d0d;
  --line: rgba(226, 227, 228, 0.16);
  --muted: rgba(226, 227, 228, 0.68);
  --ease: 0.35s ease;
  --gutter: clamp(20px, 6vw, 96px);
  --header-h: 92px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--light-grey);
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; }
a { color: var(--gold); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--white); }
h1, h2, h3, h4 { color: var(--white); font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.2em; }
.eyebrow {
  display: block;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.lead { font-weight: 300; font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--light-grey); }
.gold-rule { width: 64px; height: 1px; background: var(--gold); border: 0; margin: 28px 0; }
.center { text-align: center; }
.center .gold-rule { margin-left: auto; margin-right: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 34px;
  border: 1px solid var(--gold);
  color: var(--white);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.btn:hover { background: var(--gold); color: var(--black); }
.btn.solid { background: var(--gold); color: var(--black); }
.btn.solid:hover { background: transparent; color: var(--white); }

/* ---------- Header (modelled on norluxerealty.com) ---------- */
#header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  padding: 34px 0;
  transition: padding var(--ease), background var(--ease), box-shadow var(--ease);
}
#header.scrolled,
body.no-hero #header {
  padding: 16px 0;
  background: rgba(0, 0, 0, 0.94);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter);
}
.header-logo img { height: 54px; width: auto; transition: height var(--ease); }
#header.scrolled .header-logo img, body.no-hero #header .header-logo img { height: 38px; }
@media (min-width: 1081px) {
  .header-logo img { height: 72px; }
  #header.scrolled .header-logo img, body.no-hero #header .header-logo img { height: 50px; }
}

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > ul { display: flex; list-style: none; margin: 0; padding: 0; }
.nav li { position: relative; }
.nav > ul > li > a {
  display: block;
  padding: 8px 16px;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 20px;
  text-transform: uppercase;
}
.nav > ul > li > a:hover,
.nav > ul > li:hover > a,
.nav > ul > li > a[aria-current="page"],
.nav > ul > li.active > a { color: var(--gold); }
.nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 250px;
  margin: 0;
  padding: 14px 0 0;
  list-style: none;
  text-align: center;
  transform: translateX(-50%) translateY(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
}
.nav li:hover > .sub-menu,
.nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav .sub-menu a {
  display: block;
  padding: 11px 18px;
  background: rgba(10, 10, 10, 0.97);
  border-bottom: 1px solid var(--line);
  color: var(--light-grey);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav .sub-menu li:first-child a { border-top: 2px solid var(--gold); }
.nav .sub-menu a:hover, .nav .sub-menu a[aria-current="page"] { background: var(--gold); color: var(--black); }

.header-contact {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 14px;
  padding-left: 18px;
  position: relative;
}
.header-contact::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(50% - 13px);
  width: 1px;
  height: 26px;
  background: var(--white);
  opacity: 0.45;
}
.header-contact a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--white);
}
.header-contact a:hover { color: var(--gold); }
.header-contact svg { width: 18px; height: 18px; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  padding: 10px;
}
.burger span { display: block; height: 1px; background: currentColor; margin: 6px 0; transition: transform var(--ease), opacity var(--ease); }
body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .burger { display: block; }
  .header-contact { display: none; }
  .nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: block;
    padding: 110px var(--gutter) 40px;
    background: var(--black);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--ease), visibility var(--ease);
  }
  body.menu-open .nav { opacity: 1; visibility: visible; }
  body.menu-open { overflow: hidden; }
  .nav > ul { display: block; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav > ul > li > a { padding: 18px 0; font-size: 0.95rem; }
  /* visibility: inherit, not visible: a visible child of the hidden menu still takes taps, and the
     closed menu's invisible links would cover the page. */
  .nav .sub-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: inherit;
    padding: 0 0 14px;
    text-align: left;
    min-width: 0;
  }
  .nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { transform: none; }
  .nav .sub-menu a, .nav .sub-menu li:first-child a { background: none; border: 0; padding: 8px 0 8px 18px; color: var(--muted); font-size: 0.72rem; }
  .nav .sub-menu a:hover { background: none; color: var(--gold); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100vh, 1080px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 60px) var(--gutter) clamp(60px, 12vh, 130px);
  background: var(--black) center / cover no-repeat;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.95) 100%);
}
/* Brand pattern: the eXp "X" mark, white at low opacity over imagery */
.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: min(48vw, 640px);
  aspect-ratio: 1;
  background: url("/img/brand-x.svg") right bottom / contain no-repeat;
  opacity: 0.1;
  pointer-events: none;
}
.hero-content { max-width: 820px; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { max-width: 620px; color: var(--white); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero.short { min-height: 62vh; }
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 90px) var(--gutter) 70px;
  background: var(--black) center / cover no-repeat;
  isolation: isolate;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,1) 100%);
}
/* Darker for photos that are bright behind the gold eyebrow (snow, white walls) */
.page-hero.dim::before { background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.65) 45%, rgba(0,0,0,1) 100%); }
.page-hero .lead { max-width: 700px; }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 10vw, 140px) var(--gutter); }
.section.tight { padding-top: 40px; }
.section.panel { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.container { max-width: 1280px; margin: 0 auto; }
.narrow { max-width: 820px; margin: 0 auto; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.split.reverse > :first-child { order: 2; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-link { display: block; overflow: hidden; }
.split-link img { transition: transform 1.2s ease; }
.split-link:hover img, .split-link:focus-visible img { transform: scale(1.03); }
.split-link:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}

/* One row of equal tiles, however many are switched on (see ourListings in site.config.json) */
.tiles {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 3px;
}
.tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 460px;
  padding: 34px;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}
.tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.88) 100%);
  transition: background var(--ease);
}
.tile:hover img { transform: scale(1.05); }
.tile:hover { color: var(--white); }
.tile:hover::before { background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.92) 100%); }
.tile h3 { font-size: 1.5rem; margin-bottom: 6px; }
.tile span { color: var(--gold); font-size: 0.74rem; letter-spacing: 0.26em; text-transform: uppercase; }
@media (max-width: 900px) { .tiles { grid-auto-flow: row; } .tile { min-height: 340px; } }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}
.card {
  padding: 36px 32px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.card .num { color: var(--gold); font-size: 0.8rem; letter-spacing: 0.3em; display: block; margin-bottom: 16px; }
.card-icon { display: block; width: 64px; height: 64px; margin-bottom: 22px; }
@media (min-width: 1081px) { .cards.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: 16px 0 16px 36px; border-bottom: 1px solid var(--line); color: var(--white); font-size: 1.1rem; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 7px;
  height: 14px;
  margin-top: -10px;
  border: solid var(--gold);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.cta-band {
  position: relative;
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  text-align: center;
  background: var(--black) center / cover no-repeat;
  isolation: isolate;
}
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, 0.72); }
.cta-band .lead { max-width: 640px; margin: 0 auto 30px; }
.cta-band .bio-actions { justify-content: center; margin-top: 0; }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}
.gallery img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery img:nth-child(1) { grid-column: span 2; grid-row: span 2; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Embedded FrontDesk tools (listings, forms) ---------- */
.embed-wrap {
  min-height: 420px;
  border-top: 1px solid var(--line);
  padding-top: 36px;
}
.embed-wrap iframe { display: block; width: 100%; border: 0; min-height: 900px; background: var(--black); }
.embed-note { color: var(--muted); font-size: 0.85rem; margin-top: 18px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 90px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list span { display: block; color: var(--muted); font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; }
.contact-list a, .contact-list strong { color: var(--white); font-size: 1.15rem; font-weight: 400; }
.contact-list a:hover { color: var(--gold); }
.office { align-items: center; }
.office-map { position: relative; height: clamp(320px, 45vh, 480px); background: #111; border: 1px solid var(--line); }
.office-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 7px; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.form [hidden] { display: none; }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 14px 16px;
  background: #0b0b0b;
  border: 1px solid var(--line);
  color: var(--white);
  font: inherit;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 0;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); }
/* Keep the spam-trap field 1px: the input rule above would stretch it to the page width and
   push the page sideways. */
.form .sr-only { width: 1px; padding: 0; border: 0; }

/* ---------- Footer ---------- */
#footer {
  border-top: 1px solid var(--line);
  padding: 80px var(--gutter) 34px;
  background: var(--black);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1.25fr;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
}
.footer-grid img { height: 92px; width: auto; margin-bottom: 22px; }
.footer-grid h4 { color: var(--gold); font-size: 0.74rem; font-weight: 400; letter-spacing: 0.26em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; overflow-wrap: anywhere; }
.footer-grid a { color: var(--light-grey); font-size: 0.95rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-grid p { color: var(--muted); font-size: 0.92rem; }
.footer-bottom {
  max-width: 1280px;
  margin: 60px auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}
@media (max-width: 1180px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: none; }
/* The hero text is on screen from the start, so it fades up as soon as it's painted instead of waiting
   for site.js (it's the home page's Largest Contentful Paint). */
.hero .reveal, .page-hero .reveal { opacity: 1; transform: none; animation: reveal-in 0.9s ease both; }
@keyframes reveal-in { from { opacity: 0; transform: translateY(24px); } }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .hero .reveal, .page-hero .reveal { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Listings viewer (port of FrontDesk all-listings) ---------- */
.lx-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(130px, 1fr));
  gap: 14px;
  align-items: end;
  margin-bottom: 22px;
}
@media (max-width: 960px) { .lx-toolbar { grid-template-columns: 1fr 1fr; } .lx-search { grid-column: 1 / -1; } }
.lx-field { display: grid; gap: 7px; }
.lx-field span { color: var(--gold); font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; }
.lx-field input, .lx-field select {
  appearance: none;
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  background: #0b0b0b;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--white);
  font: inherit;
  font-size: 0.92rem;
}
.lx-field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.lx-field input:focus, .lx-field select:focus { outline: none; border-color: var(--gold); }
.lx-count { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.06em; margin-bottom: 22px; }
.lx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
@media (max-width: 420px) { .lx-grid { grid-template-columns: 1fr; } }
/* Cards are links to the listing's page; keep their text colours (links are gold, and white on hover). */
.lx-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--light-grey);
  cursor: pointer;
  transition: border-color var(--ease), transform var(--ease);
}
.lx-card:hover { color: var(--light-grey); }
.lx-card:hover, .lx-card:focus-visible { border-color: var(--gold); transform: translateY(-3px); outline: none; }
.sold-card { background: var(--panel); border: 1px solid var(--line); }
.lx-photo { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #111; }
.lx-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.lx-card:hover .lx-photo img { transform: scale(1.04); }
.lx-photo-empty { display: grid; place-items: center; height: 100%; color: var(--muted); }
.lx-badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; }
.lx-badge {
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.78);
  color: var(--white);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.lx-badge.gold { background: var(--gold); color: var(--black); }
.lx-media { top: auto; bottom: 12px; left: 12px; }
/* Sold cards: a larger, bold SOLD badge */
.sold-card .lx-badge { padding: 8px 16px; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.22em; }
.lx-photo-count { position: absolute; right: 12px; bottom: 12px; padding: 3px 9px; background: rgba(0,0,0,0.7); font-size: 0.72rem; color: var(--light-grey); }
.lx-body { padding: 22px 24px 20px; }
.lx-price { color: var(--gold); font-size: 1.55rem; font-weight: 300; letter-spacing: 0.02em; }
.lx-addr { color: var(--white); font-weight: 700; margin-top: 4px; }
.lx-city { color: var(--muted); font-size: 0.86rem; }
.lx-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--muted); }
.lx-meta strong { color: var(--white); font-weight: 700; }
.lx-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.lx-empty { grid-column: 1 / -1; padding: 60px 30px; text-align: center; border: 1px solid var(--line); }
/* 12 cards at a time: the rest are drawn but hidden until Show more listings (site/js/listings.js) */
.lx-card[hidden] { display: none; }
.lx-more { display: flex; justify-content: center; margin-top: 44px; }
.lx-more[hidden] { display: none; }
/* Placeholder cards while the listings load */
.lx-skeleton { background: var(--panel); border: 1px solid var(--line); }
.lx-skeleton .lx-body { min-height: 224px; }
.lx-skeleton .lx-body span { display: block; width: 70%; height: 12px; margin-top: 14px; background: #1a1a1a; }
.lx-skeleton .lx-body span:first-child { width: 45%; height: 26px; margin-top: 6px; }
.lx-skeleton .lx-body span:last-child { width: 40%; }
.lx-skeleton > * { animation: lx-pulse 1.6s ease-in-out infinite; }
@keyframes lx-pulse { 50% { opacity: 0.5; } }
@media (prefers-reduced-motion: reduce) { .lx-skeleton > * { animation: none; } }

/* ---------- Listing page (/listings/<MLS#>/<address>, lib/listing-page.js) ----------
   Solid header (body.no-hero), so nothing sits over the photos' REALTOR® watermark. */
.lx-page { padding: calc(var(--header-h) + 34px) var(--gutter) clamp(70px, 9vw, 120px); }
/* Back to listings, at the top and the bottom of the page: a gold-outlined button like Share listing's */
.lx-back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 22px 0 20px;
  border: 1px solid var(--gold);
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background var(--ease), color var(--ease);
}
.lx-back::before { content: ""; width: 8px; height: 8px; margin-left: 4px; border: solid var(--gold); border-width: 0 0 1.5px 1.5px; transform: rotate(45deg); transition: border-color var(--ease); }
.lx-back:hover { background: var(--gold); color: var(--black); }
.lx-back:hover::before { border-color: var(--black); }
.lx-back:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
.lx-back-row { margin-top: clamp(44px, 6vw, 72px); padding-top: 34px; border-top: 1px solid var(--line); }
.lx-detail-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 30px; align-items: flex-end; padding: 26px 0 26px; }
.lx-detail-top h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin: 0; }
.lx-detail-top .eyebrow { margin-bottom: 10px; }
/* Share listing: a gold label and a Copy link button (Share on phones, which opens the share sheet) */
.lx-share { display: flex; align-items: center; gap: 14px; }
.lx-share-label { color: var(--gold); font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase; white-space: nowrap; }
.lx-share button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--white);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
.lx-share button:hover { background: var(--gold); color: var(--black); }
.lx-share button:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
.lx-share svg { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lx-share .icon-share, .lx-share.is-sheet .icon-copy { display: none; }
.lx-share.is-sheet .icon-share { display: block; }
.lx-missing { min-height: 70vh; display: flex; align-items: center; }
.lx-missing .container { width: 100%; }
.lx-missing .bio-actions { justify-content: center; }
/* The gallery keeps one shape whatever each photo's shape (full width, 3:2 but at most 66% of the
   window's height; width: 100% stops the height limit narrowing it), so nothing jumps between photos.
   While a photo loads, its thumbnail (--preview) stands in, blurred (site/js/listing.js). pan-y leaves
   vertical drags to the page and horizontal ones to the swipe. */
.lx-hero { position: relative; width: 100%; aspect-ratio: 3 / 2; max-height: 66vh; overflow: hidden; background: #050505; touch-action: pan-y pinch-zoom; }
.lx-hero::before { content: ""; position: absolute; inset: 0; background: var(--preview, none) center / contain no-repeat; filter: blur(8px); opacity: 0; }
.lx-hero.is-loading::before { opacity: 1; }
.lx-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 0.2s ease; }
.lx-hero.is-loading img { opacity: 0; transition: none; }
@media (prefers-reduced-motion: reduce) { .lx-hero img { transition: none; } }
.lx-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border: 0; background: rgba(0,0,0,0.6); color: var(--white); font-size: 2rem; cursor: pointer; }
.lx-nav:hover { background: var(--gold); color: var(--black); }
.lx-nav.prev { left: 14px; }
.lx-nav.next { right: 14px; }
.lx-counter { position: absolute; right: 14px; bottom: 14px; padding: 3px 10px; background: rgba(0,0,0,0.7); font-size: 0.78rem; }
.lx-thumbs { display: flex; gap: 4px; overflow-x: auto; padding: 4px 0; background: #050505; }
.lx-thumbs img { flex: none; width: 104px; height: 70px; object-fit: cover; opacity: 0.5; cursor: pointer; transition: opacity var(--ease); }
.lx-thumbs img.active, .lx-thumbs img:hover { opacity: 1; }
.lx-thumbs img.active { outline: 2px solid var(--gold); outline-offset: -2px; }
.lx-detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 44px; padding: 40px 0 0; }
@media (max-width: 860px) { .lx-detail-grid { grid-template-columns: 1fr; padding-top: 30px; } }
.lx-detail-grid h2 { color: var(--gold); font-size: 0.74rem; font-weight: 400; letter-spacing: 0.26em; text-transform: uppercase; margin: 34px 0 14px; }
.lx-detail-grid aside h2 { margin-top: 0; }
.lx-detail-price { color: var(--gold); font-size: 2.3rem; font-weight: 300; }
.lx-summary { display: flex; flex-wrap: wrap; gap: 30px; margin: 18px 0 26px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lx-summary span { display: block; color: var(--muted); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; }
.lx-summary strong { color: var(--white); font-weight: 400; font-size: 1.1rem; }
.lx-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lx-actions .btn { padding: 12px 20px; font-size: 0.7rem; }
.lx-remarks { white-space: pre-line; }
.lx-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.lx-table th { text-align: left; color: var(--muted); font-weight: 400; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; padding: 8px 0; border-bottom: 1px solid var(--line); }
.lx-table td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.lx-specs td:first-child { color: var(--muted); width: 42%; }
.lx-specs td:last-child { color: var(--white); }
/* One PID per line, never broken at a hyphen */
.lx-specs .lx-line { display: block; white-space: nowrap; }
.lx-disclaimer { color: var(--muted); font-size: 0.74rem; margin-top: 18px; }
/* CREA DDF display rules: the listing brokerage as plain text (6(a)(ii)) and CREA's Powered by
   REALTOR.ca badge, 90px wide at its own proportions, linking to the listing (6(a)(i)). */
.lx-credit { color: var(--light-grey); font-size: 0.82rem; margin: 18px 0 0; }
.lx-realtor { display: inline-block; margin-top: 20px; line-height: 0; }
.lx-realtor img { width: 90px; height: 43px; }
.lx-map { position: relative; aspect-ratio: 16 / 10; background: #111; border: 1px solid var(--line); }
.lx-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 600px) { .lx-map { aspect-ratio: 4 / 3; } }
/* Room dimensions: collapsed under a gold heading with a chevron */
.lx-rooms { margin-top: 34px; }
.lx-rooms summary {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  max-width: 100%;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  line-height: 1.15;
  list-style: none;
  cursor: pointer;
  transition: color var(--ease);
}
.lx-rooms summary::-webkit-details-marker { display: none; }
.lx-rooms summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--ease);
}
.lx-rooms[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.lx-rooms summary:hover { color: var(--white); }
.lx-rooms summary:focus-visible { outline: 1px solid var(--gold); outline-offset: 6px; }
/* Imperial | Metric switch for the room sizes (hidden until site/js/listing.js shows it) */
.lx-units { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.lx-units[hidden] { display: none; }
.lx-units button {
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
.lx-units button + button { border-left: 0; }
.lx-units button[aria-pressed="true"] { background: var(--gold); color: var(--black); }
.lx-units button:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
.lx-rooms .u-met, .lx-rooms.is-metric .u-imp { display: none; }
.lx-rooms.is-metric .u-met { display: inline; }
/* 16:9 tour and video windows (listing pages, Luxury Marketing), ported from FrontDesk's .tour-frame/.tour-tile.
   On a listing page a cover tile with a play button is swapped for the player on click. */
.lx-tours { display: grid; gap: 14px; margin-top: 26px; }
.tour-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #050505; border: 1px solid var(--line); isolation: isolate; }
.tour-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tour-actions { margin-top: 26px; text-align: center; }
.tour-tile { position: absolute; inset: 0; color: var(--white); }
.tour-tile:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.tour-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.tour-tile:hover img { transform: scale(1.03); }
.tour-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.8) 100%);
}
.tour-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  transition: background var(--ease), transform var(--ease);
}
.tour-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -11px 0 0 -6px;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--gold);
  transition: border-color var(--ease);
}
.tour-tile:hover .tour-play, .tour-tile:focus-visible .tour-play { background: var(--gold); transform: scale(1.06); }
.tour-tile:hover .tour-play::before, .tour-tile:focus-visible .tour-play::before { border-left-color: var(--black); }
.tour-label { position: absolute; left: 24px; right: 24px; bottom: 20px; z-index: 1; font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase; line-height: 1.4; }
.tour-label span { display: block; margin-bottom: 4px; color: var(--gold); font-size: 0.66rem; letter-spacing: 0.26em; }
@media (max-width: 600px) {
  .tour-play { width: 58px; height: 58px; margin: -29px 0 0 -29px; }
  .tour-play::before { margin: -9px 0 0 -5px; border-width: 9px 0 9px 15px; }
  .tour-label { left: 16px; bottom: 12px; font-size: 0.72rem; }
}

/* ---------- Hero slideshow: slow crossfade with a camera pan ----------
   Each photo pans 280px sideways while pushing in 6% towards its house, easing in and out:
   about 10-17 CSS px a second on phones and desktops alike. .reverse slides pan the other way
   and roll gently from -0.75deg to 0.75deg. A slide is the whole photo at its own aspect
   (--ar = width / height, default 1.5), just big enough to cover the hero plus the pan, and is
   centred on the house (--fx = how far across the photo it stands) as far as the photo allows,
   so on a phone the camera travels across the photo instead of sitting in its middle. Browsers
   without container units get the hero plus a fixed margin instead. The 23s move outlasts the
   hold plus the crossfade (HOLD 11s + FADE 3s in hero-slides.js; FADE matches the opacity
   transition). The keyframes' +/-140px is half the pan and must stay inside --mx. Only the
   slides that are on (two at most) get a GPU layer, as each is bigger than the screen. */
.hero-slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; container-type: size; }
.hero-slides::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 55%, rgba(0,0,0,0.38) 100%);
}
.hero-slide {
  --ar: 1.5;
  --fx: 0.5;
  position: absolute;
  inset: -48px -170px;
  background: calc(var(--fx) * 100%) 50% / cover no-repeat;
  opacity: 0;
  transform-origin: calc(var(--fx) * 100%) 50%;
  transition: opacity 3s ease-in-out;
}
@supports (width: 1cqh) {
  .hero-slide {
    --mx: calc(140px + 1cqh + 8px); /* half the pan, plus room for the roll */
    --my: calc(1cqw + 8px);
    --w: max(100cqw + 2 * var(--mx), (100cqh + 2 * var(--my)) * var(--ar));
    --h: calc(var(--w) / var(--ar));
    inset: auto;
    left: clamp(100cqw + var(--mx) - var(--w), 50cqw - var(--fx) * var(--w), -1 * var(--mx));
    top: calc((100cqh - var(--h)) / 2);
    width: var(--w);
    height: var(--h);
  }
}
.hero-slide.is-on { animation: hero-pan 23s cubic-bezier(0.3, 0.1, 0.7, 0.9) forwards; will-change: transform, opacity; }
.hero-slide.reverse.is-on { animation-name: hero-pan-reverse; }
.hero-slide.is-visible { opacity: 1; }
/* Page heroes (Who We Are, Buy, Sell, Contact and the agent pages): one photo with the same pan at
   30% of the home page's speed (23s / 0.3 = 77s, about 3.6px a second), drifting back and forth
   instead of stopping, and without the home vignette. No script: the photo is on from the start. */
.page-hero .hero-slide.is-on { animation-duration: 77s; animation-iteration-count: infinite; animation-direction: alternate; }
.page-hero .hero-slides::after { display: none; }
@keyframes hero-pan {
  from { transform: translateX(140px) scale(1); }
  to { transform: translateX(-140px) scale(1.06); }
}
@keyframes hero-pan-reverse {
  from { transform: translateX(-140px) rotate(-0.75deg) scale(1); }
  to { transform: translateX(140px) rotate(0.75deg) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-on, .hero-slide.reverse.is-on { animation: none; }
  .hero-slide { transition-duration: 1s; }
}

/* ---------- Testimonials ---------- */
/* Every slide sits in one grid cell, so the box is as tall as the longest quote and nothing jumps. */
.tm { max-width: 900px; margin: 0 auto; text-align: center; }
.tm-track { display: grid; }
.tm-slide { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity 0.8s ease, visibility 0.8s; }
.tm-slide.is-active { opacity: 1; visibility: visible; }
.tm blockquote, .quote-card blockquote { margin: 0; }
.tm blockquote::before, .quote-card blockquote::before { content: "\201C"; display: block; color: var(--gold); font-family: Georgia, "Times New Roman", serif; line-height: 0.8; height: 0.5em; }
.tm blockquote::before { font-size: 4.5rem; margin-bottom: 22px; }
.tm blockquote p { margin: 0; color: var(--white); font-weight: 300; font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.7; }
.tm figcaption { margin-top: 28px; }
.tm figcaption strong, .quote-card figcaption strong { display: block; color: var(--white); font-size: 0.8rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; }
.tm figcaption span { display: block; margin-top: 6px; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.06em; }
.tm-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 34px; }
.tm-controls[hidden] { display: none; }
.tm-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--gold);
  background: transparent;
  cursor: pointer;
  transition: background var(--ease);
}
.tm-nav::before { content: ""; width: 8px; height: 8px; border: solid var(--gold); border-width: 0 0 1.5px 1.5px; transition: border-color var(--ease); }
.tm-prev::before { transform: translateX(2px) rotate(45deg); }
.tm-next::before { transform: translateX(-2px) rotate(-135deg); }
.tm-nav:hover { background: var(--gold); }
.tm-nav:hover::before { border-color: var(--black); }
.tm-nav:focus-visible, .tm-dots button:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
.tm-dots { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.tm-dots button { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.tm-dots button::before { content: ""; width: 9px; height: 9px; border: 1px solid var(--gold); border-radius: 50%; transition: background var(--ease); }
.tm-dots button[aria-current="true"]::before { background: var(--gold); }
.quote-block { margin-top: clamp(50px, 7vw, 90px); }
.quote-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 26px; }
@media (max-width: 860px) { .quote-pair { grid-template-columns: 1fr; } }
.quote-card { margin: 0; min-width: 0; padding: 36px 32px; border: 1px solid var(--line); background: transparent; }
.quote-card blockquote::before { font-size: 3rem; margin-bottom: 14px; }
.quote-card blockquote p { margin: 0; color: var(--white); font-weight: 300; font-size: 1rem; line-height: 1.75; }
.quote-card figcaption { margin-top: 22px; }
@media (prefers-reduced-motion: reduce) { .tm-slide { transition: none; } }

/* ---------- Agent bio ---------- */
.bio { align-items: start; }
.bio-photo { margin: 0 18px 18px 0; position: relative; isolation: isolate; }
.bio-photo img { width: 100%; height: auto; aspect-ratio: auto; }
.bio-photo::after {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  z-index: -1;
  border: 1px solid var(--gold);
}
.bio h3 { color: var(--gold); font-size: 0.78rem; font-weight: 400; letter-spacing: 0.26em; text-transform: uppercase; margin: 30px 0 8px; }
.bio .lead { color: var(--white); margin-bottom: 10px; }
.bio-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
@media (max-width: 860px) { .bio-photo::after { inset: 12px -12px -12px 12px; } .bio-photo { margin: 0 12px 12px 0; } }

/* Buyer on-boarding form */
.onboarding fieldset { margin: 0 0 18px; padding: 0; border: 0; display: grid; gap: 18px; }
.onboarding legend { margin-bottom: 18px; color: var(--gold); font-size: 0.78rem; font-weight: 400; letter-spacing: 0.26em; text-transform: uppercase; padding-bottom: 12px; border-bottom: 1px solid var(--line); width: 100%; }
.page-hero .bio-actions { margin-top: 26px; }
