/* ============================================================
   NEXRA CAPITAL - nexracapital.ca
   Navy & gold design system
   Fonts: Fraunces (display) · Hanken Grotesk (text)
   ============================================================ */

:root {
  /* Palette */
  --navy-950: #081120;
  --navy-900: #0c1b2e;
  --navy-800: #102a44;
  --navy: #11293f;
  --navy-btn: #142f4b;
  --navy-line: rgba(255, 255, 255, 0.14);
  --gold: #c9a45c;
  --gold-deep: #b08c44;
  --gold-soft: #f0e2c4;
  --ink: #15263c;
  --text: #33445c;
  --muted: #6b7a90;
  --faint: #93a0b4;
  --line: #e5eaf1;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-warm: #f7f8fb;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-text: "Hanken Grotesk", -apple-system, "Segoe UI", sans-serif;

  /* Shape & shadow */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(12, 27, 46, 0.08), 0 4px 14px -6px rgba(12, 27, 46, 0.1);
  --shadow-md: 0 8px 30px -12px rgba(12, 27, 46, 0.25);
  --shadow-lg: 0 24px 60px -24px rgba(12, 27, 46, 0.35);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 72px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-text);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15.5px;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

::selection {
  background: var(--gold);
  color: var(--navy-900);
}

/* ---------- Layout ---------- */
.wrap {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

.section {
  padding: clamp(60px, 8vw, 100px) 0;
}

.section--tight {
  padding: clamp(40px, 5vw, 64px) 0;
}

.section--soft {
  background: var(--bg-warm);
}

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.021em;
  font-optical-sizing: auto;
}

.display em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}

h1.display {
  font-size: clamp(2.5rem, 5.6vw, 4.3rem);
}

h2.display {
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
}

.lede {
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
  color: var(--muted);
  max-width: 58ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1.5px;
  background: var(--gold);
}

.eyebrow--bare::before {
  display: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}

.btn--small {
  min-height: 34px;
  padding: 8px 14px;
  font-size: 0.82rem;
}

.btn--navy {
  background: var(--navy-btn);
  color: #f4f6f9;
}

.btn--navy:hover {
  background: var(--navy-900);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--gold {
  background: var(--gold);
  color: var(--navy-900);
}

.btn--gold:hover {
  background: var(--gold-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(201, 164, 92, 0.55);
}

.btn--outline-light {
  border: 1px solid var(--navy-line);
  color: #eef2f7;
  background: rgba(255, 255, 255, 0.03);
}

.btn--outline-light:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--outline {
  border: 1.5px solid var(--navy-btn);
  color: var(--navy-btn);
}

.btn--outline:hover {
  background: var(--navy-btn);
  color: #fff;
}

.btn--white {
  background: #fff;
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn .arr {
  transition: transform 0.3s var(--ease);
}

.btn:hover .arr {
  transform: translateX(4px);
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Text link */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--ink);
}

.tlink .arr {
  transition: transform 0.3s var(--ease);
  color: var(--gold);
}

.tlink:hover .arr {
  transform: translateX(4px);
}

.tlink:hover {
  color: var(--gold-deep);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  transition: height 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

/* Once the page is scrolled, the bar slims down but stays visible */
body.scrolled {
  --nav-h: 60px;
}

body.scrolled .nav {
  box-shadow: 0 12px 32px -20px rgba(8, 17, 32, 0.85);
}

.brand__mark {
  transition: width 0.3s var(--ease), height 0.3s var(--ease);
}

.brand__logo {
  display: block;
  width: clamp(170px, 15vw, 210px);
  height: 52px;
  object-fit: contain;
  object-position: left center;
  transition: width 0.3s var(--ease), height 0.3s var(--ease);
}

body.scrolled .brand__mark {
  width: 33px;
  height: 33px;
}

body.scrolled .brand__logo {
  width: clamp(150px, 13vw, 184px);
  height: 44px;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand__mark {
  width: 40px;
  height: 40px;
  flex: none;
}

.brand__logo {
  flex: none;
}

.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name b {
  font-family: var(--font-text);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  color: #f4f6f9;
}

.brand__name span {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.52em;
  color: var(--gold);
  margin-top: 5px;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav__links > li {
  position: relative;
}

.nav__links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 0.92rem;
  color: #cfd8e4;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  transition: color 0.25s, background 0.25s;
}

.nav__links > li > a:hover,
.nav__links > li > a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav__links .caret {
  transition: transform 0.3s;
}

.nav__links li:hover .caret {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 390px;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(12, 27, 46, 0.08);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.3s var(--ease);
  z-index: 50;
}

.nav__links li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.dropdown a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 650;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
}

.dropdown a:hover {
  background: var(--bg-soft);
  color: var(--ink);
  border-color: rgba(201, 164, 92, 0.2);
}

.dropdown a small {
  min-width: 28px;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: var(--bg-warm);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
}

.dropdown__group + .dropdown__group {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.dropdown__label {
  display: block;
  margin: 2px 6px 8px;
  color: var(--faint);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dropdown__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.dropdown__item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown__item--mode {
  background: var(--bg-soft);
}

.dropdown__item--mode small {
  background: #fff;
  color: var(--gold-deep);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav__cta .btn {
  padding: 11px 20px;
  font-size: 0.88rem;
}

.nav__signin {
  color: #cfd8e4;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: color 0.25s;
}

.nav__signin:hover {
  color: #fff;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 130;
}

.burger span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s;
}

.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile navigation: a side drawer that slides in from the right */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(348px, 86vw);
  z-index: 120;
  background: var(--navy-900);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
  padding: 0 28px;
  transform: translateX(100%);
  pointer-events: none;
  transition: transform 0.4s var(--ease);
  box-shadow: -24px 0 60px -28px rgba(0, 0, 0, 0.65);
}

.mobile-menu.open {
  transform: none;
  pointer-events: auto;
}

.mobile-menu a {
  font-family: var(--font-text);
  font-size: 1.05rem;
  font-weight: 600;
  color: #eef2f7;
  padding: 16px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s, padding-left 0.25s var(--ease);
}

.mobile-menu a:hover {
  color: var(--gold);
  padding-left: 8px;
}

.market-links {
  display: grid;
  gap: 2px;
  padding: 8px 0 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.market-links a {
  color: #d7e0ec;
  padding: 10px 2px;
}

.market-links__label {
  padding: 8px 2px 2px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mobile-menu a > span {
  font-family: var(--font-text);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.18em;
}

/* The "Sign in / Sign out" label should read as the link text, not the number */
.mobile-menu a span[data-auth-label] {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  letter-spacing: normal;
}

/* Backdrop behind the drawer */
.mm-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(8, 17, 32, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.mm-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin-top: var(--nav-h);
  height: clamp(430px, 48vh, 520px);
  min-height: 430px;
  display: flex;
  align-items: center;
  color: #fff;
  isolation: isolate;
  padding: clamp(20px, 2.6vw, 40px) 0 clamp(88px, 8.5vw, 112px);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Two stacked hero images that cross-fade when the segment toggle changes */
.hero__bg .hero__img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: none;
  transition: opacity 0.45s ease;
  will-change: opacity;
}
.hero__bg .hero__img.is-active {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .hero__bg .hero__img {
    transition: opacity 0.25s linear;
    transform: none;
  }
  .hero__bg .hero__img.is-active {
    transform: none;
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      100deg,
      rgba(8, 17, 32, 0.88) 0%,
      rgba(8, 17, 32, 0.62) 38%,
      rgba(8, 17, 32, 0.18) 70%,
      rgba(8, 17, 32, 0.38) 100%
    ),
    linear-gradient(180deg, rgba(8, 17, 32, 0.35), transparent 30%);
}

.hero__content {
  max-width: min(720px, 100%);
  min-height: clamp(236px, 26vh, 276px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__content .eyebrow {
  color: var(--gold);
  margin-bottom: 12px;
}

.hero h1 {
  color: #fff;
  margin-bottom: 14px;
  min-height: 2.35em;
  text-wrap: balance;
}

.hero h1 em {
  color: var(--gold);
  font-style: normal;
}

.hero .lede {
  color: #c9d4e2;
  margin-bottom: 18px;
  max-width: 44ch;
  min-height: 3.3em;
  text-wrap: balance;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.play-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-weight: 600;
  font-size: 0.94rem;
  color: #fff;
}

.play-link .play {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  transition: 0.3s var(--ease);
}

.play-link:hover .play {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-900);
  transform: scale(1.06);
}

/* Sign-in button shown in the hero on phones only (desktop keeps it in the nav) */
.hero__signin {
  display: none;
}

/* ---------- Search card ---------- */
.search-zone {
  position: relative;
  z-index: 5;
  margin-top: clamp(-104px, -8.2vw, -82px);
}

.search-card {
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr 1fr auto;
  align-items: stretch;
  padding: 10px;
  gap: 2px;
}

.sfield {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px 18px;
  border-right: 1px solid var(--line);
}

.sfield:nth-last-child(2) {
  border-right: none;
}

.sfield label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.sfield__control {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
}

.sfield__control svg {
  color: var(--gold-deep);
  flex: none;
}

.sfield input,
.sfield select {
  border: none;
  outline: none;
  background: transparent;
  font-weight: 500;
  font-size: 0.93rem;
  width: 100%;
  color: var(--ink);
}

.sfield input::placeholder {
  color: var(--faint);
  font-weight: 400;
}

.sfield select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7a90' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 20px;
}

.search-card .btn {
  align-self: center;
  padding: 16px 26px;
  margin-left: 8px;
}

/* ---------- Property paths ---------- */
.property-paths {
  padding-top: clamp(46px, 6vw, 76px);
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.path-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}

.path-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 164, 92, 0.55);
  box-shadow: var(--shadow-md);
}

.path-card--dark {
  background: var(--navy-900);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.path-card__eyebrow {
  width: fit-content;
  margin-bottom: 22px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: rgba(201, 164, 92, 0.12);
  color: var(--gold-deep);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.path-card--dark .path-card__eyebrow {
  background: rgba(201, 164, 92, 0.18);
  color: var(--gold);
}

.path-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 14px;
}

.path-card--dark h2 {
  color: #fff;
}

.path-card p {
  max-width: 34ch;
  color: var(--muted);
  line-height: 1.6;
}

.path-card--dark p {
  color: #c9d4e2;
}

.path-card__link {
  margin-top: auto;
  padding-top: 26px;
  color: var(--gold-deep);
  font-weight: 800;
}

.path-card--dark .path-card__link {
  color: var(--gold);
}

/* ---------- Trust strip ---------- */
.trust {
  padding: clamp(36px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--line);
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 6px 28px;
  border-right: 1px solid var(--line);
}

.trust__item:first-child {
  padding-left: 0;
}

.trust__item:last-child {
  border-right: none;
}

.trust__ico {
  flex: none;
  color: var(--gold);
  margin-top: 2px;
}

.trust__item b {
  display: block;
  color: var(--ink);
  font-size: 0.97rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.trust__item p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- Section head ---------- */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(30px, 4.5vw, 48px);
}

.sec-head .lede {
  margin-top: 12px;
}

/* ---------- Property cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

/* Carousel variant */
.carousel {
  position: relative;
}

.car-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 22px) / 4);
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px;
  margin: -4px;
}

.car-track::-webkit-scrollbar {
  display: none;
}

.car-track > * {
  scroll-snap-align: start;
}

.car-btn {
  position: absolute;
  top: 38%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink);
  z-index: 6;
  transition: 0.25s;
}

.car-btn:hover {
  background: var(--navy-btn);
  color: #fff;
}

.car-btn--prev {
  left: -22px;
}

.car-btn--next {
  right: -22px;
}

.car-btn:disabled {
  opacity: 0;
  pointer-events: none;
}

/* Card */
.pcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.pcard:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.pcard__media {
  position: relative;
  aspect-ratio: 4/3.1;
  overflow: hidden;
  background: var(--bg-soft);
}

.pcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.pcard:hover .pcard__media img {
  transform: scale(1.06);
}

.pcard__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #fff;
  color: var(--ink);
  border-radius: var(--r-sm);
  padding: 7px 13px;
  font-size: 0.74rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.pcard__fav {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: 0.25s;
  z-index: 3;
}

.pcard__fav:hover {
  transform: scale(1.08);
}

.pcard__fav.on {
  color: var(--gold-deep);
}

.pcard__fav.on svg {
  fill: var(--gold);
  stroke: var(--gold-deep);
}

.pcard__body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.pcard__name {
  font-family: var(--font-text);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
}

.pcard__city {
  font-size: 0.86rem;
  color: var(--muted);
}

.pcard__specs {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 12px 0;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--muted);
}

.pcard__specs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pcard__specs svg {
  color: var(--faint);
}

.pcard__price {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.pcard__price b {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink);
}

.pcard__price span {
  color: var(--muted);
}

.pcard .btn {
  margin-top: auto;
}

/* ---------- About band ---------- */
.about-band {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(18px, 2.4vw, 28px);
  align-items: stretch;
}

.about-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  border-radius: var(--r-md);
  overflow: hidden;
  min-height: 420px;
}

.about-card__media {
  background: var(--bg-soft);
}

.about-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-card__panel {
  background: var(--navy-900);
  color: #c9d4e2;
  padding: clamp(28px, 3.4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-card__panel h2 {
  color: #fff;
  margin-bottom: 16px;
}

.about-card__panel p {
  font-size: 0.93rem;
  margin-bottom: 26px;
}

.about-card__panel .tlink {
  color: #fff;
}

.about-card__panel .tlink:hover {
  color: var(--gold);
}

/* Stats */
.stats-panel {
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.stat {
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  gap: 18px;
  align-items: center;
}

.stat:nth-child(1) {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.stat:nth-child(2) {
  border-bottom: 1px solid var(--line);
}

.stat:nth-child(3) {
  border-right: 1px solid var(--line);
}

.stat__ico {
  flex: none;
  color: var(--gold);
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}

.stat span {
  font-size: 0.84rem;
  color: var(--muted);
}

/* ---------- Logos strip ---------- */
.logos {
  padding: clamp(36px, 5vw, 56px) 0 clamp(48px, 6vw, 72px);
  text-align: center;
}

.logos__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 30px;
}

.logos__row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  flex-wrap: wrap;
  filter: grayscale(1);
  opacity: 0.55;
}

.logos__row span {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: #5a6878;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.logos__row small {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: left;
  line-height: 1.2;
  max-width: 90px;
}

/* ---------- Communities ---------- */
.hoods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 230px;
  gap: 18px;
}

.hood {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  color: #fff;
  background: var(--navy-900);
}

.hood img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 0.7s var(--ease), opacity 0.4s;
}

.hood::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(8, 17, 32, 0.85));
}

.hood:hover img {
  transform: scale(1.07);
  opacity: 0.95;
}

.hood__label {
  position: relative;
  z-index: 2;
}

.hood__label b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}

.hood__label span {
  font-size: 0.8rem;
  opacity: 0.8;
}

.hood--wide {
  grid-column: span 2;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-900);
  border-radius: var(--r-lg);
  color: #c9d4e2;
  padding: clamp(40px, 6vw, 72px);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 164, 92, 0.22), transparent 65%);
  top: -180px;
  right: -120px;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 14px;
}

.cta-band p {
  max-width: 50ch;
  font-size: 0.95rem;
}

.cta-band__actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-950);
  color: #9fadc0;
  margin-top: clamp(60px, 8vw, 100px);
  padding: clamp(48px, 7vw, 80px) 0 0;
  font-size: 0.92rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.3fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 52px;
}

.footer .brand {
  margin-bottom: 20px;
}

.footer > .wrap p {
  max-width: 38ch;
}

.footer h4 {
  color: #eef2f7;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer h4::after {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: var(--gold);
  margin-top: 8px;
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer ul a {
  transition: color 0.25s, padding-left 0.3s var(--ease);
}

.footer ul a:hover {
  color: var(--gold);
  padding-left: 6px;
}

.footer__contact li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.footer__contact svg {
  color: var(--gold);
  flex: none;
  margin-top: 4px;
}

.footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  flex-wrap: wrap;
}

.footer__bar a:hover {
  color: var(--gold);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  margin-top: var(--nav-h);
  background: var(--navy-900);
  color: #fff;
  padding: clamp(44px, 6vw, 72px) 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 164, 92, 0.16), transparent 65%);
  top: -140px;
  right: -80px;
}

.page-hero h1 {
  color: #fff;
}

.page-hero .lede {
  color: #b7c3d4;
  margin-top: 12px;
}

.crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 500;
  color: #8fa0b8;
  margin-bottom: 16px;
}

.crumbs a:hover {
  color: var(--gold);
}

.crumbs .sep {
  opacity: 0.5;
}

/* Detail page: light crumbs zone */
.crumbs--light {
  color: var(--faint);
  margin: calc(var(--nav-h) + 26px) 0 18px;
}

.crumbs--light a:hover {
  color: var(--gold-deep);
}

/* ---------- Filter bar ---------- */
.filterbar {
  position: sticky;
  top: var(--nav-h);
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.filterbar__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.fselect {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 9px 14px;
  font-size: 0.86rem;
  font-weight: 500;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.fselect:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.16);
}

.fselect label {
  color: var(--faint);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.fselect select {
  border: none;
  background: transparent;
  outline: none;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7a90' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 16px;
}

.fcheck {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 9px 14px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  transition: 0.25s;
}

.fcheck input {
  display: none;
}

.fcheck .box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--faint);
  display: grid;
  place-items: center;
  transition: 0.2s;
}

.fcheck .box svg {
  opacity: 0;
  transform: scale(0.5);
  transition: 0.2s;
}

.fcheck input:checked ~ .box {
  background: var(--gold);
  border-color: var(--gold);
}

.fcheck input:checked ~ .box svg {
  opacity: 1;
  transform: scale(1);
}

.fcheck input:checked ~ span:last-child {
  color: var(--gold-deep);
}

.filterbar__spacer {
  flex: 1;
}

.fclear {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fclear:hover {
  color: var(--gold-deep);
}

.results-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 30px 0 22px;
  flex-wrap: wrap;
}

.results-meta b {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
}

.results-meta span {
  color: var(--faint);
  font-size: 0.88rem;
}

.results-meta__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.save-search-msg {
  min-height: 1.2em;
  color: var(--faint);
  font-size: 0.84rem;
  font-weight: 600;
}

.save-search-msg.is-error {
  color: #b3261e;
}

/* Empty state */
.empty {
  text-align: center;
  padding: 80px 20px;
  border: 1.5px dashed var(--line);
  border-radius: var(--r-md);
  background: var(--bg-warm);
}

.empty .big {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 10px;
}

.empty p {
  color: var(--muted);
  margin-bottom: 22px;
}

/* ---------- Listing detail ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  grid-template-rows: 250px 250px;
  gap: 12px;
  border-radius: var(--r-md);
  overflow: hidden;
}

.gallery figure {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
}

.gallery figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.gallery figure:hover img {
  transform: scale(1.05);
}

.gallery figure:first-child {
  grid-row: span 2;
}

.gallery__count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: rgba(8, 17, 32, 0.78);
  color: #fff;
  border-radius: var(--r-sm);
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
  margin-top: clamp(26px, 4vw, 40px);
}

.detail-head h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  margin: 6px 0 8px;
}

.detail-loc {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.93rem;
}

.detail-loc svg {
  color: var(--gold-deep);
}

.spec-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin: 24px 0;
}

.spec-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px 16px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text);
}

.spec-chip svg {
  color: var(--gold-deep);
}

.detail-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  margin: 32px 0 12px;
}

.detail-body > p {
  color: var(--muted);
  max-width: 66ch;
}

.amenities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px 26px;
  list-style: none;
  margin-top: 14px;
}

.amenities li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text);
}

.amenities svg {
  color: var(--gold-deep);
  flex: none;
}

.map-note {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-warm);
  padding: 20px 22px;
  display: flex;
  gap: 14px;
  align-items: center;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.9rem;
}

.map-note svg {
  color: var(--gold-deep);
  flex: none;
}

/* Booking card */
.book-card {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.book-card__head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 20px;
}

.book-card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.book-card__price small {
  color: var(--muted);
  font-weight: 500;
}

.book-card__price b {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--ink);
}

.book-card__avail {
  font-size: 0.84rem;
  font-weight: 600;
  color: #2f7a4d;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
}

.book-card__avail::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f7a4d;
}

.field {
  margin-bottom: 13px;
}

.field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-warm);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 15px;
  font-size: 0.93rem;
  font-weight: 500;
  outline: none;
  transition: 0.25s;
}

.field textarea {
  resize: vertical;
  min-height: 84px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.15);
}

.field--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field .err {
  display: none;
  color: #b03a2e;
  font-size: 0.76rem;
  font-weight: 600;
  margin-top: 5px;
}

.field.invalid input,
.field.invalid select {
  border-color: #b03a2e;
}

.field.invalid .err {
  display: block;
}

/* Success state */
.book-success {
  text-align: center;
  padding: 26px 6px 10px;
  display: none;
}

.book-success.show {
  display: block;
  animation: rise 0.5s var(--ease);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.book-success .ico {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-deep);
  display: grid;
  place-items: center;
}

.book-success h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.book-success p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.book-error,
.form-error {
  margin: 4px 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fcebe8;
  border: 1px solid #f0c2b9;
  color: #9c2f22;
  font-size: 0.82rem;
  font-weight: 600;
}

.btn.is-loading {
  opacity: 0.7;
  cursor: progress;
}

.similar {
  margin-top: clamp(56px, 8vw, 90px);
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] {
  transition-delay: 0.08s;
}

.reveal[data-delay="2"] {
  transition-delay: 0.16s;
}

.reveal[data-delay="3"] {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .car-track {
    grid-auto-columns: calc((100% - 2 * 22px) / 3);
  }
}

@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust__grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px 0;
  }
  .trust__item:nth-child(2) {
    border-right: none;
  }
  .trust__item:nth-child(3) {
    padding-left: 0;
  }
  .about-band {
    grid-template-columns: 1fr;
  }
  .hoods {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .book-card {
    position: static;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .cta-band {
    grid-template-columns: 1fr;
  }
  .cta-band__actions {
    justify-content: flex-start;
  }
  .search-card {
    grid-template-columns: 1fr 1fr;
  }
  .path-grid {
    grid-template-columns: 1fr;
  }
  .sfield {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .sfield:nth-child(odd) {
    border-right: 1px solid var(--line);
  }
  .search-card .btn {
    grid-column: span 2;
    margin: 8px 0 0;
  }
}

@media (max-width: 880px) {
  .nav__links {
    display: none;
  }
  .burger {
    display: flex;
  }
  .nav__cta .btn,
  .nav__saved,
  .nav__account,
  .nav__signin {
    display: none;
  }
  .hero__signin {
    display: inline-flex;
  }
  .car-track {
    grid-auto-columns: calc((100% - 22px) / 2);
  }
  .car-btn--prev {
    left: -8px;
  }
  .car-btn--next {
    right: -8px;
  }
}

@media (max-width: 720px) {
  .hero {
    height: clamp(500px, 68vh, 620px);
    min-height: 500px;
    align-items: flex-start;
    padding-top: clamp(28px, 8vw, 44px);
  }

  .hero__content {
    min-height: 340px;
  }

  .hero h1 {
    min-height: 3.35em;
  }

  .hero .lede {
    min-height: 4.9em;
  }
}

/* ============================================================
   CUSTOM DROPDOWNS (replaces native select drawers)
   ============================================================ */
.cselect {
  position: relative;
}

.cselect__btn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}

.cselect__btn .val {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cselect__btn .car {
  color: var(--muted);
  transition: transform 0.3s var(--ease);
  flex: none;
}

.cselect.open .cselect__btn .car {
  transform: rotate(180deg);
}

.cselect__panel {
  position: absolute;
  top: calc(100% + 12px);
  left: -10px;
  min-width: max(100%, 210px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: 0.25s var(--ease);
}

.cselect.open .cselect__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.cselect__panel::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--gold);
}

.cselect__opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  transition: background 0.2s, color 0.2s;
}

.cselect__opt:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

.cselect__opt.on {
  color: var(--gold-deep);
  font-weight: 700;
  background: rgba(201, 164, 92, 0.09);
}

.cselect__opt .tick {
  opacity: 0;
  color: var(--gold-deep);
}

.cselect__opt.on .tick {
  opacity: 1;
}

/* ============================================================
   ZILLOW-STYLE SEARCH BAR (listings page)
   ============================================================ */
.zbar {
  position: sticky;
  top: var(--nav-h);
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.mode-tabs {
  display: flex;
  gap: 8px;
  padding-top: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mode-tabs::-webkit-scrollbar {
  display: none;
}

.mode-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  transition: 0.2s;
}

.mode-tabs button:hover,
.mode-tabs button.on {
  border-color: var(--gold);
  background: rgba(201, 164, 92, 0.1);
  color: var(--gold-deep);
}

.mode-tabs button span {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.72rem;
}

.mode-tabs button.on span {
  background: var(--gold);
  color: var(--navy-900);
}

.zbar__row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 0;
}

.zsearch {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  min-width: 230px;
  flex: 1 1 230px;
  max-width: 330px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.zsearch:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.16);
}

.zsearch svg {
  color: var(--gold-deep);
  flex: none;
}

.zsearch input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink);
}

.zsearch input::placeholder {
  color: var(--faint);
  font-weight: 400;
}

/* Dropdown trigger buttons */
.fwrap {
  position: relative;
}

.fbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  transition: border-color 0.25s, background 0.2s, color 0.2s;
  white-space: nowrap;
}

.fbtn:hover {
  border-color: var(--faint);
}

.fbtn .car {
  color: var(--muted);
  transition: transform 0.3s var(--ease);
}

.fwrap.open .fbtn .car {
  transform: rotate(180deg);
}

.fbtn.active,
.fwrap.open .fbtn {
  border-color: var(--gold);
  color: var(--gold-deep);
  background: rgba(201, 164, 92, 0.07);
}

.fbtn .cnt {
  background: var(--navy-btn);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--r-pill);
  padding: 1px 7px;
}

/* Dropdown panel */
.fpanel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 300px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: 0.25s var(--ease);
}

.fwrap.open .fpanel {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.fpanel::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--gold);
}

.fpanel h5 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}

.fpanel__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.fpanel__foot .btn {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.flink {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.flink:hover {
  color: var(--gold-deep);
}

/* Segmented control */
.seg {
  display: flex;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 4px;
  gap: 4px;
}

.seg button {
  flex: 1;
  padding: 9px 6px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--muted);
  transition: 0.2s;
}

.seg button:hover {
  color: var(--ink);
}

.seg button.on {
  background: var(--navy-btn);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

/* Price inputs */
.price-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.price-row .dash {
  color: var(--faint);
  font-weight: 600;
}

.pinput {
  display: flex;
  align-items: center;
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  gap: 4px;
  font-weight: 600;
  transition: 0.25s;
}

.pinput:focus-within {
  border-color: var(--gold);
  background: #fff;
}

.pinput span {
  color: var(--faint);
}

.pinput input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-weight: 600;
  font-size: 0.92rem;
}

.quick-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.qp {
  background: var(--bg-warm);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  padding: 9px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: 0.2s;
}

.qp:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
  background: rgba(201, 164, 92, 0.08);
}

.qp.on {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
}

/* ============================================================
   ALL-FILTERS MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 17, 32, 0.64);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: none;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(460px, 100vw);
  background: #fff;
  z-index: 210;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  box-shadow: var(--shadow-lg);
  will-change: transform;
}

.modal.open {
  transform: none;
}

body.filters-open .zbar,
body.filters-open .zbar .lane-tabs,
body.filters-open .zbar .lane-tabs *,
body.filters-open .zsearch,
body.filters-open .zsearch *,
body.filters-open .fbtn,
body.filters-open .fbtn *,
body.filters-open .results-meta,
body.filters-open .results-meta *,
body.filters-open .pcard,
body.filters-open .pcard * {
  border-color: transparent !important;
  box-shadow: none !important;
  transition: none !important;
}

body.filters-open .pcard {
  background: #fff;
}

body.filters-open .pcard:hover {
  transform: none;
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
}

.modal__head h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
}

.modal__close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px solid var(--line);
  transition: 0.2s;
}

.modal__close:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

.modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 26px 26px;
}

.modal__sec {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.modal__sec:last-child {
  border-bottom: none;
}

.modal__sec h5 {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}

body[data-listing-mode="comm-rent"] [data-res-filter],
body[data-listing-mode="comm-buy"] [data-res-filter],
body:not([data-listing-mode="res-rent"]) [data-rent-filter] {
  display: none;
}

body[data-listing-mode="comm-rent"] #wrapBeds,
body[data-listing-mode="comm-buy"] #wrapBeds {
  visibility: hidden;
  pointer-events: none;
}

.modal__foot {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 26px;
  border-top: 1px solid var(--line);
  background: var(--bg-warm);
}

/* Checkbox grid (cities, utilities) */
.cbgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.cb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: 0.2s;
}

.cb:hover {
  border-color: var(--faint);
}

.cb input {
  display: none;
}

.cb .box {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1.5px solid var(--faint);
  display: grid;
  place-items: center;
  flex: none;
  transition: 0.2s;
}

.cb .box svg {
  opacity: 0;
  transform: scale(0.5);
  transition: 0.2s;
}

.cb input:checked ~ .box {
  background: var(--gold);
  border-color: var(--gold);
}

.cb input:checked ~ .box svg {
  opacity: 1;
  transform: scale(1);
}

.cb input:checked ~ span:last-child {
  color: var(--gold-deep);
  font-weight: 600;
}

/* Type cards in modal */
.tcards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.tcard {
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  transition: 0.2s;
}

.tcard svg {
  color: var(--faint);
  transition: 0.2s;
}

.tcard:hover {
  border-color: var(--faint);
  color: var(--ink);
}

.tcard.on {
  border-color: var(--gold);
  color: var(--gold-deep);
  background: rgba(201, 164, 92, 0.07);
}

.tcard.on svg {
  color: var(--gold-deep);
}

/* Toggle rows */
.trow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-weight: 500;
  font-size: 0.93rem;
  color: var(--text);
}

.tog {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: var(--r-pill);
  background: var(--line);
  transition: background 0.25s;
  cursor: pointer;
  flex: none;
}

.tog::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease);
}

.tog.on {
  background: var(--gold);
}

.tog.on::after {
  transform: translateX(20px);
}

/* ============================================================
   LISTING DETAIL ADDITIONS
   ============================================================ */
/* Header row with share */
.detail-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

/* Share buttons */
.share-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--r-pill);
  padding: 8px 15px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  transition: 0.2s;
}

.share-btn svg {
  color: var(--gold-deep);
}

.share-btn:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
  transform: translateY(-1px);
}

.share-btn.copied {
  border-color: var(--gold);
  background: rgba(201, 164, 92, 0.1);
  color: var(--gold-deep);
}

/* Included in rent - light, editorial two-column list */
.inc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px clamp(26px, 4vw, 52px);
  margin-top: 16px;
}

.inc-col h6 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.inc-col h6::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}

.inc-col--in h6::before {
  background: var(--gold);
}

.inc-col--out h6::before {
  background: #cfd6e0;
}

.inc-col ul {
  list-style: none;
}

.inc-col li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.inc-col li + li {
  border-top: 1px dashed var(--line);
}

.inc-col li svg {
  flex: none;
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
}

.inc-col--in li svg {
  color: var(--gold-deep);
  background: rgba(201, 164, 92, 0.13);
}

.inc-col--out li svg {
  color: var(--faint);
  background: var(--bg-soft);
}

/* Booking card: which property this request is for */
.book-for {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(201, 164, 92, 0.45);
  background: rgba(201, 164, 92, 0.07);
  border-radius: var(--r-md);
  padding: 10px 14px 10px 10px;
  margin-bottom: 16px;
}

.book-for img {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
}

.book-for > div {
  flex: 1;
  min-width: 0;
}

.book-for label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 2px;
}

.book-for b {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.25;
}

.book-for span {
  font-size: 0.78rem;
  color: var(--muted);
}

.book-for > svg {
  color: var(--gold-deep);
  flex: none;
}

/* Lightbox photo viewer */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 320;
  background: rgba(6, 13, 24, 0.93);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lb-stage {
  max-width: min(1100px, 86vw);
}

.lb-stage img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 78vh;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lb-stage figcaption {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: center;
  color: #fff;
}

.lb-stage figcaption b {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.lb-count {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transition: 0.2s;
  z-index: 2;
}

.lb-close:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: rotate(90deg);
}

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transition: 0.2s;
  z-index: 2;
}

.lb-arrow:hover {
  background: var(--gold);
  color: var(--navy-900);
}

.lb-prev {
  left: clamp(10px, 3vw, 34px);
}

.lb-next {
  right: clamp(10px, 3vw, 34px);
}

.gallery figure {
  cursor: zoom-in;
}

/* Listing pop-up (property details over the page) */
.lpop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(8, 17, 32, 0.62);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: clamp(10px, 3vw, 36px);
  opacity: 0;
  visibility: hidden;
  transition: 0.28s;
}

.lpop.open {
  opacity: 1;
  visibility: visible;
}

.lpop__box {
  position: relative;
  width: min(1120px, 100%);
  height: min(880px, 100%);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(4, 10, 20, 0.45);
  transform: translateY(16px) scale(0.985);
  transition: 0.28s var(--ease);
}

.lpop.open .lpop__box {
  transform: none;
}

.lpop iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

.lpop__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: 0.2s;
}

.lpop__close:hover {
  background: var(--gold);
  color: var(--navy-900);
  transform: rotate(90deg);
}

/* Embed mode: listing.html rendered inside the pop-up */
body.is-embed .nav,
body.is-embed .mobile-menu,
body.is-embed .crumbs,
body.is-embed .similar,
body.is-embed .footer {
  display: none;
}

body.is-embed section {
  padding-top: clamp(18px, 3vw, 28px);
}

/* Inside the pop-up the top-right corner belongs to the pop-up's own
   close button, so the photo viewer's close moves to the top-left. */
body.is-embed .lb-close {
  right: auto;
  left: 18px;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero {
  margin-top: var(--nav-h);
  background: var(--navy-900);
  color: #fff;
  padding: clamp(56px, 8vw, 100px) 0;
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 164, 92, 0.2), transparent 65%);
  top: -200px;
  right: -120px;
}

.about-hero h1 {
  color: #fff;
  max-width: 16ch;
}

.about-hero .lede {
  color: #b7c3d4;
  margin-top: 18px;
  max-width: 52ch;
}

.about-hero--owner {
  padding: clamp(58px, 7vw, 92px) 0 clamp(68px, 8vw, 112px);
  background:
    linear-gradient(115deg, rgba(201, 164, 92, 0.13), transparent 38%),
    radial-gradient(62% 84% at 98% 2%, rgba(74, 112, 146, 0.22), transparent 58%),
    linear-gradient(180deg, #0c1b2e 0%, #081422 100%);
}

.about-hero--owner::before {
  display: none;
}

.about-hero--owner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 164, 92, 0.75), rgba(201, 164, 92, 0.08), transparent);
}

.about-owner-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  max-width: 900px;
}

.about-owner-hero::after {
  content: "";
  width: min(470px, 74vw);
  height: 1px;
  margin-top: clamp(26px, 4vw, 42px);
  background: linear-gradient(90deg, var(--gold), rgba(201, 164, 92, 0.08));
}

.about-owner-hero .crumbs {
  margin-bottom: 22px;
}

.about-owner-hero .display {
  max-width: 15ch;
  text-wrap: balance;
}

.about-owner-hero .lede {
  max-width: 66ch;
  color: #d4dde9;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.62;
  text-wrap: pretty;
}

.about-owner-section {
  background:
    linear-gradient(180deg, #fff 0%, #f7f8fb 100%);
}

.about-owner-card {
  display: block;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.about-owner-body {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(290px, 0.58fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: start;
  padding: 0;
}

.about-owner-copy {
  position: relative;
}

.about-owner-body p {
  max-width: 72ch;
  color: var(--text);
  font-size: clamp(0.98rem, 1.05vw, 1.04rem);
  line-height: 1.78;
  margin-bottom: 17px;
}

/* Opening statement, set as a refined lead with a gold opener rule */
.about-owner-body .about-owner-lead {
  position: relative;
  max-width: 58ch;
  margin-bottom: 24px;
  padding-top: 0;
  font-size: clamp(1.24rem, 1.8vw, 1.62rem);
  font-weight: 500;
  line-height: 1.48;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.about-owner-body .about-owner-lead::before {
  content: none;
}

/* Disclosures — the legal notes, grouped and set quieter than the narrative */
.about-disclosures {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  margin-top: 0;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(12, 27, 46, 0.08);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 44px -34px rgba(8, 17, 32, 0.42);
  display: grid;
  gap: 15px;
}

.about-disclosures__label {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 3px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.about-disclosures__label::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--gold);
}

.about-owner-body .about-owner-note {
  max-width: none;
  margin: 0;
  padding: 0;
  font-size: 0.86rem;
  line-height: 1.7;
  color: #5d6a7b;
}

/* Keyboard focus — the site lacks visible focus rings; scope a clear one to this page */
.about-hero a:focus-visible,
.about-owner-section a:focus-visible,
.cta-band a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- Legal pages ---------- */
.legal-hero {
  margin-top: var(--nav-h);
  background: var(--navy-900);
  color: #fff;
  padding: clamp(44px, 6vw, 76px) 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8, 17, 32, 0.28), rgba(201, 164, 92, 0.08) 56%, transparent);
  pointer-events: none;
}

.legal-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(201, 164, 92, 0));
  opacity: 0.9;
}

.legal-hero .wrap {
  position: relative;
  z-index: 1;
}

.legal-hero h1 {
  color: #fff;
  max-width: 14ch;
  text-wrap: balance;
}

.legal-hero .lede {
  color: #c9d4e2;
  margin-top: 14px;
  font-family: var(--font-text);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.legal-hero .crumbs {
  margin-bottom: 16px;
}

.legal-section-wrap {
  position: relative;
  background: linear-gradient(180deg, #fff 0%, var(--bg-warm) 100%);
}

.legal-section-wrap::before {
  content: none;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 860px);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  justify-content: center;
}

.legal-toc {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  max-height: calc(100dvh - var(--nav-h) - 56px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(147, 160, 180, 0.6) transparent;
}

.legal-toc span {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}

.legal-toc a {
  position: relative;
  display: block;
  padding: 9px 0 9px 14px;
  border-top: 1px solid var(--line);
  border-radius: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  transition: color 0.2s;
}

.legal-toc a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 2px;
  border-radius: var(--r-pill);
  background: transparent;
}

.legal-toc a:hover {
  color: var(--gold-deep);
}

.legal-toc a.is-active,
.legal-toc a[aria-current="true"] {
  color: var(--gold-deep);
}

.legal-toc a.is-active::before,
.legal-toc a[aria-current="true"]::before {
  background: var(--gold);
}

.legal-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: clamp(30px, 5vw, 58px);
}

.legal-card::before {
  content: none;
}

.legal-intro {
  font-family: var(--font-text);
  font-size: clamp(1.02rem, 1.24vw, 1.12rem);
  line-height: 1.68;
  color: var(--ink);
  font-weight: 600;
  padding-bottom: 24px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.legal-block {
  position: relative;
  padding: 0 0 26px;
  margin: 0 0 28px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 22px);
}

.legal-block h2,
.legal-contact h2 {
  font-family: var(--font-text);
  font-size: clamp(1.08rem, 1.45vw, 1.28rem);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: 0;
}

.legal-block p,
.legal-contact p {
  color: var(--text);
  line-height: 1.72;
  margin-bottom: 10px;
  max-width: 78ch;
}

.legal-block p:last-child,
.legal-contact p:last-child {
  margin-bottom: 0;
}

.legal-callout {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--r-sm);
  padding: clamp(18px, 2.5vw, 24px);
}

.legal-callout--plain {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0 0 26px;
}

.legal-list {
  list-style: none;
  display: grid;
  gap: 9px;
  margin-top: 12px;
  max-width: 76ch;
}

.legal-list li {
  position: relative;
  min-height: 0;
  padding: 0 0 0 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  line-height: 1.6;
  font-weight: 500;
}

.legal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: none;
}

.legal-contact {
  background: var(--navy-900);
  color: #c9d4e2;
  border-radius: var(--r-md);
  padding: clamp(22px, 3vw, 30px);
  scroll-margin-top: calc(var(--nav-h) + 22px);
}

.legal-contact::after {
  content: none;
}

.legal-contact h2,
.legal-contact strong {
  color: #fff;
}

.legal-contact p {
  color: #c9d4e2;
}

.legal-contact h2 {
  color: #fff;
}

.about-story {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.about-story h2 {
  margin-bottom: 18px;
}

.about-story p {
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 0.97rem;
}

.about-story .pull {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--ink);
  border-left: 3px solid var(--gold);
  padding-left: 18px;
  margin: 22px 0;
}

.about-story__media {
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/4.6;
}

.about-story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 26px);
}

.value {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 26px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.value:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.value .ico {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: rgba(201, 164, 92, 0.13);
  color: var(--gold-deep);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.value h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.value p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Contact + map */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(20px, 3vw, 32px);
  align-items: stretch;
}

.contact-card {
  background: var(--navy-900);
  color: #c9d4e2;
  border-radius: var(--r-md);
  padding: clamp(26px, 3.4vw, 40px);
  display: flex;
  flex-direction: column;
}

.contact-card h2 {
  color: #fff;
  margin-bottom: 10px;
}

.contact-card > p {
  font-size: 0.93rem;
  margin-bottom: 24px;
}

.contact-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-card li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: 0.94rem;
}

.contact-card li b {
  display: block;
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.contact-card svg {
  color: var(--gold);
  flex: none;
  margin-top: 3px;
}

.contact-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.map-card {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  min-height: 420px;
  position: relative;
  background: var(--bg-soft);
}

.map-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-card__pin {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: #fff;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-md);
  padding: 12px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  z-index: 2;
}

.map-card__pin span {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.78rem;
}

/* ============================================================
   RESPONSIVE for new components
   ============================================================ */
@media (max-width: 1024px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: sticky;
    top: calc(var(--nav-h) + 8px);
    z-index: 45;
    display: flex;
    align-items: center;
    gap: 8px;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px;
    border-radius: var(--r-md);
  }

  .legal-toc span {
    flex: 0 0 auto;
    margin: 0 8px 0 4px;
  }

  .legal-toc a {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 9px 13px;
    white-space: nowrap;
    border: 1px solid rgba(12, 27, 46, 0.08);
    border-radius: var(--r-sm);
    background: #fff;
  }

  .legal-toc a::before {
    display: none;
  }

  .about-owner-hero,
  .about-owner-card,
  .about-owner-body {
    grid-template-columns: 1fr;
  }

  .about-disclosures {
    position: static;
  }

  .about-story {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .value-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .legal-hero {
    padding: 36px 0 44px;
  }

  .legal-hero h1 {
    max-width: 11ch;
  }

  .legal-card {
    padding: 24px 20px;
    border-radius: var(--r-md);
  }

  .legal-toc {
    margin-inline: calc((100vw - 92vw) / -2);
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: 0 18px 34px -28px rgba(8, 17, 32, 0.42);
  }

  .legal-toc span {
    display: none;
  }

  .legal-callout {
    padding: 18px;
  }

  .legal-callout--plain {
    padding: 0 0 24px;
  }

  .about-owner-hero .display {
    max-width: 12ch;
  }

  .about-owner-card {
    border-radius: var(--r-sm);
  }

  .about-owner-body {
    padding: 0;
  }

  .about-owner-body p {
    font-size: 0.96rem;
  }

  .about-owner-note {
    padding: 0;
  }

  .inc-grid {
    grid-template-columns: 1fr;
  }
  .lb-arrow {
    width: 42px;
    height: 42px;
  }
  .lpop {
    padding: 0;
  }
  .lpop__box {
    border-radius: 0;
    height: 100%;
  }
  .cbgrid {
    grid-template-columns: 1fr;
  }
  .tcards {
    grid-template-columns: 1fr 1fr;
  }
  .zbar__row {
    gap: 8px;
  }
  .zsearch {
    max-width: none;
    flex: 1 1 100%;
    order: -1;
  }
  /* Price & Beds fold into the "All filters" sheet on phones */
  #wrapPrice,
  #wrapBeds,
  .filterbar__spacer,
  .fclear {
    display: none;
  }
  #btnAll {
    flex: 1;
    justify-content: center;
  }
  #wrapSort .fbtn {
    max-width: 48vw;
  }
  #wrapSort #btnSortLabel {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .modal__foot {
    padding-bottom: max(16px, calc(env(safe-area-inset-bottom, 0px) + 12px));
  }
  .fpanel {
    width: min(300px, 86vw);
  }
  .detail-top {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .car-track {
    grid-auto-columns: 86%;
  }
  .trust__grid {
    grid-template-columns: 1fr;
  }
  .trust__item {
    border-right: none;
    padding-left: 0;
  }
  .search-card {
    grid-template-columns: 1fr;
  }
  .sfield,
  .sfield:nth-child(odd) {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .search-card .btn {
    grid-column: span 1;
  }
  .about-card {
    grid-template-columns: 1fr;
  }
  .about-card__media {
    min-height: 220px;
  }
  .stats-panel {
    grid-template-columns: 1fr;
  }
  .stat:nth-child(n) {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .stat:last-child {
    border-bottom: none;
  }
  .hoods {
    grid-template-columns: 1fr;
    grid-auto-rows: 190px;
  }
  .hood--wide {
    grid-column: span 1;
  }
  .gallery {
    grid-template-columns: 1fr;
    grid-template-rows: 250px 150px 150px;
  }
  .gallery figure:first-child {
    grid-row: span 1;
  }
  .sec-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .amenities {
    grid-template-columns: 1fr;
  }
  .field--row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PROPERTY CARD — quick-view trigger
   ============================================================ */
.pcard__badge {
  pointer-events: none;
}

.pcard__open {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: transparent;
  cursor: zoom-in;
}

.pcard__open-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.pcard__open-tag svg {
  color: var(--gold-deep);
}

.pcard:hover .pcard__open-tag,
.pcard__open:focus-visible .pcard__open-tag {
  opacity: 1;
  transform: none;
}

.pcard__fav {
  z-index: 4;
}

.pcard__title {
  font: inherit;
  color: inherit;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s;
}

.pcard__title:hover {
  color: var(--gold-deep);
}

/* ============================================================
   QUICK-VIEW MODAL
   ============================================================ */
.qv-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(8, 17, 32, 0.62);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: clamp(12px, 4vw, 40px);
  opacity: 0;
  visibility: hidden;
  transition: 0.28s;
}

.qv-overlay.open {
  opacity: 1;
  visibility: visible;
}

.qv {
  position: relative;
  width: min(880px, 100%);
  max-height: calc(100dvh - 48px);
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  transform: translateY(14px) scale(0.985);
  transition: 0.28s var(--ease);
}

.qv-overlay.open .qv {
  transform: none;
}

.qv__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: 0.2s;
}

.qv__close:hover {
  background: #fff;
  transform: rotate(90deg);
}

.qv__media {
  position: relative;
  background: var(--bg-soft);
  min-height: 320px;
  min-width: 0;
  isolation: isolate;
  overflow: hidden;
}

.qv__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qv__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  transition: 0.2s;
}

.qv__nav:hover {
  background: var(--gold);
  color: var(--navy-900);
}

.qv__prev {
  left: 12px;
}

.qv__next {
  right: 12px;
}

.qv__count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(8, 17, 32, 0.78);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--r-sm);
}

.qv__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
}

.qv__panel {
  padding: clamp(22px, 3vw, 32px);
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.qv__type {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.qv__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 8px 0 6px;
}

.qv__loc {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
}

.qv__loc svg {
  color: var(--gold-deep);
}

.qv__specs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 22px;
  margin: 14px 0 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.qv__specs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.qv__specs svg {
  width: 16px;
  height: 16px;
  color: var(--gold-deep);
}

.qv__price {
  font-size: 0.9rem;
  color: var(--muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.qv__price b {
  font-size: 1.2rem;
  color: var(--ink);
  font-weight: 700;
}

.qv__price em {
  font-style: normal;
  color: var(--faint);
  font-size: 0.82rem;
}

.qv__desc {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.qv__book-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}

.qv__book .field {
  margin-bottom: 12px;
}

.qv__success {
  display: none;
  text-align: center;
  padding: 14px 0 6px;
}

.qv__success.show {
  display: block;
  animation: rise 0.5s var(--ease);
}

.qv__success-ic {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-deep);
  display: grid;
  place-items: center;
}

.qv__success p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.qv__full {
  margin-top: 16px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}

.qv__full .arr {
  color: var(--gold);
  transition: transform 0.3s var(--ease);
}

.qv__full:hover {
  color: var(--gold-deep);
}

.qv__full:hover .arr {
  transform: translateX(4px);
}

@media (max-width: 760px) {
  /* Flex column gives the panel a real height so it scrolls and the
     actions (Save / View full details) stay reachable on phones */
  .qv {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - 24px);
  }
  .qv__media {
    flex: none;
    min-height: 190px;
    height: 32vh;
    max-height: 32vh;
  }
  .qv__panel {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
  }
  /* Keep the actions pinned to the bottom of the scrolling panel */
  .qv__actions {
    position: sticky;
    bottom: 0;
    background: #fff;
    margin-top: 14px;
    padding-bottom: 2px;
  }
}

/* ============================================================
   RESPONSIVE / MOBILE FIXES (every page)
   ============================================================ */
/* Anchor targets shouldn't hide behind the fixed nav */
[id] {
  scroll-margin-top: calc(var(--nav-h) + 14px);
}

/* Fixed nav clears the notch in landscape */
.nav {
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

/* Drawer: scrollable, safe-area aware, leaves room for its close button */
.mobile-menu {
  overflow-y: auto;
  padding-top: max(72px, calc(env(safe-area-inset-top, 0px) + 66px));
  padding-bottom: max(28px, calc(env(safe-area-inset-bottom, 0px) + 28px));
}

.mobile-menu__close {
  position: absolute;
  top: max(14px, calc(env(safe-area-inset-top, 0px) + 12px));
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: none;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.3s var(--ease);
}

.mobile-menu.open .mobile-menu__close {
  display: grid;
}

.mobile-menu__close:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-900);
  transform: rotate(90deg);
}

/* Touch devices have no hover — keep the "Quick view" cue visible */
@media (hover: none) {
  .pcard__open-tag {
    opacity: 1;
    transform: none;
  }
}

/* Phone: tighter modal padding + comfortable tap targets */
@media (max-width: 480px) {
  .qv__panel {
    padding: 20px 18px 24px;
  }
  .qv__nav {
    width: 36px;
    height: 36px;
  }
}

/* ============================================================
   QUICK VIEW — orientation-proof media + light balanced panel
   ============================================================ */
.qv__media {
  position: relative;
  overflow: hidden;
}

.qv__media-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: blur(26px) brightness(0.58) saturate(1.1);
  transform: scale(1.25);
  pointer-events: none;
}

.qv__photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: opacity 0.35s var(--ease);
}

/* Controls must sit above the photo layer */
.qv__nav,
.qv__count,
.qv__badge {
  z-index: 2;
}

.qv__highlights {
  margin-bottom: 22px;
}

.qv__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}

.qv__feats {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px 20px;
}

.qv__feats li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}

.qv__feats li svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--gold-deep);
}

.qv__scores {
  margin-bottom: 22px;
}

.qv__score-h {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}

.qv__score-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.qv__score {
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 8px;
  text-align: center;
}

.qv__score b {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
  line-height: 1;
}

.qv__score span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.qv__actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.qv__save {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: 11px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  transition: 0.2s;
}

.qv__save:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.qv__save.on {
  border-color: var(--gold);
  background: rgba(201, 164, 92, 0.1);
  color: var(--gold-deep);
}

.qv__save svg {
  transition: 0.2s;
}

.qv__save.on svg {
  fill: var(--gold);
  stroke: var(--gold-deep);
}

.qv__full {
  margin-left: auto;
}

/* ============================================================
   SAVED / LIKES
   ============================================================ */
@keyframes heartPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.pcard__fav.on svg,
.qv__save.on svg,
.save-btn.on svg {
  animation: heartPop 0.35s var(--ease);
}

.nav__saved {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #cfd8e4;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav__saved:hover,
.nav__saved.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.nav__saved svg {
  width: 18px;
  height: 18px;
}

.nav__saved.has-saved svg {
  fill: var(--gold);
  stroke: var(--gold);
}

.nav__saved-label {
  line-height: 1;
}

.nav__saved-count {
  font-size: 0.78rem;
  font-weight: 700;
  min-width: 16px;
  text-align: center;
  color: #9fb0c3;
}

.nav__saved.has-saved .nav__saved-count {
  color: var(--gold);
}

.nav__account {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #cfd8e4;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: 0.2s;
}

.nav__account:hover,
.nav__account.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.nav__account svg {
  width: 18px;
  height: 18px;
}

.msaved span {
  font-family: var(--font-text);
  font-size: 0.8rem;
  color: var(--gold);
}

.save-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--r-pill);
  padding: 8px 15px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  transition: 0.2s;
}

.save-btn svg {
  color: var(--gold-deep);
  transition: 0.2s;
}

.save-btn:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
  transform: translateY(-1px);
}

.save-btn.on {
  border-color: var(--gold);
  background: rgba(201, 164, 92, 0.1);
  color: var(--gold-deep);
}

.save-btn.on svg {
  fill: var(--gold);
  stroke: var(--gold-deep);
}

body.is-signed-out .pcard__fav,
body.is-signed-out .qv__save,
body.is-signed-out .save-btn {
  display: none !important;
}

.saved-empty {
  text-align: center;
  padding: 60px 24px;
  border: 1.5px dashed var(--line);
  border-radius: var(--r-md);
  background: var(--bg-warm);
  max-width: 540px;
  margin: 0 auto;
}

.saved-empty__ic {
  width: 66px;
  height: 66px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-deep);
  display: grid;
  place-items: center;
}

.saved-empty__ic svg {
  width: 28px;
  height: 28px;
}

.saved-empty .big {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 10px;
}

.saved-empty p {
  color: var(--muted);
  margin-bottom: 22px;
}

@media (max-width: 760px) {
  .qv__actions {
    flex-wrap: wrap;
  }
  .qv__save {
    flex: 1;
    justify-content: center;
  }
  .qv__full {
    margin-left: 0;
    flex: 1;
    justify-content: center;
  }
}

/* ============================================================
   QUICK-VIEW REFINEMENTS — consistent size, icons, actions
   ============================================================ */
/* Consistent, photo-forward proportions on tablet/desktop */
@media (min-width: 761px) {
  .qv-overlay {
    padding: 16px;
  }

  .qv {
    width: min(1040px, calc(100vw - 32px));
    height: min(620px, calc(100dvh - 32px));
    max-height: calc(100dvh - 32px);
    min-height: 0;
    grid-template-columns: minmax(320px, 1.08fr) minmax(340px, 0.92fr);
  }

  .qv__media,
  .qv__panel {
    height: 100%;
    min-height: 0;
  }

  .qv__panel {
    overflow: hidden;
    padding: clamp(20px, 2.1vw, 28px);
  }

  .qv__type {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .qv__name {
    font-size: clamp(1.28rem, 2vw, 1.48rem);
    line-height: 1.08;
    letter-spacing: 0;
    margin: 6px 0 5px;
  }

  .qv__loc {
    font-size: 0.86rem;
  }

  .qv__specs {
    gap: 6px 16px;
    margin: 10px 0 12px;
    padding-top: 10px;
  }

  .qv__price {
    padding-bottom: 10px;
    margin-bottom: 12px;
  }

  .qv__desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
    font-size: 0.9rem;
    line-height: 1.52;
  }

  .qv__highlights {
    margin-bottom: 14px;
  }

  .qv__label {
    margin-bottom: 9px;
  }

  .qv__feats {
    gap: 8px 14px;
  }

  .qv__feats li {
    font-size: 0.84rem;
    gap: 8px;
  }

  .qv__actions {
    padding-top: 12px;
  }

  .qv__save,
  .qv__full {
    min-height: 42px;
    padding: 10px 14px;
  }
}

/* Uniform icon size + weight across the whole panel */
.qv__loc svg,
.qv__specs li svg,
.qv__feats li svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}

/* Clear primary (View full details) / secondary (Save) actions */
.qv__actions {
  gap: 10px;
  align-items: stretch;
}

.qv__save {
  flex: 0 0 auto;
}

.qv__full {
  flex: 1;
  margin-top: 0;
  margin-left: 0;
  align-self: stretch;
  justify-content: center;
  background: var(--navy-btn);
  color: #f4f6f9;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  font-weight: 600;
}

.qv__full:hover {
  background: var(--navy-900);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.qv__full .arr {
  color: var(--gold);
}

/* ============================================================
   COOKIE CONSENT
   ============================================================ */
.cc-banner-shell {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 330;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: opacity 0.24s var(--ease), visibility 0.24s, transform 0.24s var(--ease);
}

.cc-banner-shell.open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.cc-banner {
  width: 100%;
  pointer-events: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 28px;
  padding: 14px clamp(16px, 4vw, 48px);
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
}

.cc-banner__copy {
  display: grid;
  gap: 2px;
  max-width: 820px;
}

.cc-banner h2 {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

.cc-banner p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.cc-banner__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.cc-banner .btn {
  min-height: 44px;
  padding: 11px 16px;
  box-shadow: none;
}

.cc-banner .btn:hover {
  transform: none;
}

.cc-banner .btn--white {
  border: 1.5px solid var(--line);
}

.cc-banner .btn--white:hover {
  border-color: var(--navy-btn);
  box-shadow: none;
}

.cc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 340;
  display: grid;
  place-items: center;
  padding: 20px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  background: rgba(8, 17, 32, 0.48);
  transition: opacity 0.24s var(--ease), visibility 0.24s;
}

.cc-modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cc-modal {
  width: min(720px, 100%);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  pointer-events: auto;
  background: #fff;
  border: 1px solid rgba(12, 27, 46, 0.1);
  border-radius: var(--r-sm);
  box-shadow: 0 22px 54px -24px rgba(8, 17, 32, 0.58);
  padding: clamp(18px, 3vw, 26px);
  transform: translateY(12px);
  transition: transform 0.24s var(--ease);
}

.cc-modal-overlay.open .cc-modal {
  transform: none;
}

.cc-modal__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.cc-kicker {
  color: var(--gold-deep);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cc-modal h2 {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
}

.cc-modal p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.cc-modal__intro {
  margin-bottom: 18px;
}

.cc-modal__close {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--navy-btn);
  font-size: 0.84rem;
  font-weight: 700;
  background: #fff;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.cc-modal__close:hover {
  border-color: var(--navy-btn);
  background: var(--bg-soft);
}

.cc-modal__close:focus-visible,
.cc-banner .btn:focus-visible,
.cc-actions .btn:focus-visible {
  outline: 3px solid rgba(201, 164, 92, 0.36);
  outline-offset: 2px;
}

.cc-list {
  display: grid;
  gap: 10px;
}

.cc-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.cc-row strong {
  display: block;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.25;
}

.cc-row span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.cc-switch {
  position: relative;
  display: inline-flex;
  flex: none;
  cursor: pointer;
}

.cc-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cc-switch > span {
  width: 46px;
  height: 28px;
  border-radius: var(--r-pill);
  background: #d7dce3;
  transition: background 0.2s;
}

.cc-switch i {
  display: block;
  width: 22px;
  height: 22px;
  margin: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s;
}

.cc-switch input:checked + span {
  background: var(--navy-btn);
}

.cc-switch input:checked + span i {
  transform: translateX(18px);
}

.cc-switch input:focus-visible + span {
  outline: 3px solid rgba(201, 164, 92, 0.35);
  outline-offset: 2px;
}

.cc-switch--locked {
  cursor: not-allowed;
  opacity: 0.72;
}

.cc-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.cc-actions .btn {
  min-height: 44px;
  padding: 12px 18px;
  box-shadow: none;
}

.cc-actions .btn:hover {
  transform: none;
}

.cc-note {
  margin-top: 14px;
  font-size: 0.8rem !important;
}

.cc-note a {
  color: var(--gold-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .cc-banner {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 14px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }

  .cc-banner__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cc-banner__actions .btn {
    width: 100%;
  }

  .cc-modal-overlay {
    padding: 12px;
  }

  .cc-modal {
    border-radius: var(--r-sm);
    padding: 18px;
  }

  .cc-modal__head {
    align-items: start;
  }

  .cc-row {
    align-items: start;
    gap: 14px;
  }

  .cc-actions {
    align-items: stretch;
  }

  .cc-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc-banner-shell,
  .cc-modal-overlay,
  .cc-modal {
    transition: none;
  }
}

@media (min-width: 761px) {
  .qv__save,
  .qv__full {
    min-height: 42px;
    padding: 10px 14px;
  }
}

/* ============================================================
   LISTING DETAIL — header price/date, mobile gallery,
   vertical photo viewer, sticky action bar
   ============================================================ */
.detail-meta {
  display: flex;
  align-items: center;
  gap: 8px 16px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* Price shows up top on phones/tablets; desktop keeps it in the booking card */
.detail-price {
  display: none;
  align-items: baseline;
  gap: 6px;
}

.detail-price small {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.82rem;
}

.detail-price b {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--ink);
  line-height: 1;
}

.detail-price span {
  color: var(--muted);
  font-size: 0.85rem;
}

.detail-listed {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--muted);
}

.detail-listed::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

/* Mobile single-photo gallery (one swipeable image) */
.gallery-m {
  display: none;
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
}

.gallery-m__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gallery-m__track::-webkit-scrollbar {
  display: none;
}

.gallery-m__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
}

.gallery-m__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-m__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}

.gallery-m__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transition: background 0.2s, width 0.2s;
}

.gallery-m__dots span.on {
  width: 18px;
  border-radius: 3px;
  background: #fff;
}

/* Vertical photo viewer (mobile): scroll-only, no controls but close */
.vstack {
  position: fixed;
  inset: 0;
  z-index: 340;
  background: var(--navy-950);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s;
}

.vstack.open {
  opacity: 1;
  visibility: visible;
}

.vstack__scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 56px 0 calc(env(safe-area-inset-bottom, 0px) + 24px);
}

.vstack__scroll img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 10px;
}

.vstack__close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top, 0px));
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(4px);
}

/* Sticky mobile action bar */
.detail-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  gap: 10px;
  padding: 12px 16px calc(env(safe-area-inset-bottom, 0px) + 12px);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -18px rgba(8, 17, 32, 0.4);
  transition: transform 0.3s var(--ease);
}

.detail-cta--hidden {
  transform: translateY(120%);
}

.detail-cta__save {
  flex: 0 0 auto;
  justify-content: center;
  border-radius: var(--r-sm);
  padding: 12px 16px;
}

.detail-cta__book {
  flex: 1;
  padding: 13px 18px;
}

body.is-embed .detail-cta {
  display: none !important;
}

/* Breakpoint switches for the detail page */
@media (max-width: 1024px) {
  .detail-price {
    display: flex;
  }
  /* Price already shows up top — hide the duplicate in the booking card */
  .book-card__price {
    display: none;
  }
}

@media (max-width: 640px) {
  .gallery {
    display: none;
  }
  .gallery-m {
    display: block;
  }
}

@media (max-width: 760px) {
  .detail-cta {
    display: flex;
  }
}

/* ============================================================
   Multi-line additions (Rent / Buy / Commercial)
   ============================================================ */

/* Centered section head (used on the homepage "what we do" intro) */
.sec-head--center {
  justify-content: center;
  text-align: center;
}
.sec-head--center > div {
  max-width: 720px;
}
.sec-head--center .lede {
  margin-left: auto;
  margin-right: auto;
}

/* Live segment count under a property-path card */
.path-card__count {
  margin-top: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--gold-deep);
}
.path-card--dark .path-card__count {
  color: var(--gold);
}

.search-card.is-commercial .sf-beds {
  display: none;
}

/* ---------- Lane toggles (segment + intent) on top of the search bar ---------- */
.hsearch__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-bottom: 12px;
}

.hsearch__tabs .seg-toggle button {
  justify-content: center;
  min-width: 126px;
}

.hsearch__tabs .seg-toggle[data-role="intent"] button {
  min-width: 76px;
}

.seg-toggle {
  display: inline-flex;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 4px;
  gap: 2px;
}
.seg-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.18s var(--ease), box-shadow 0.25s var(--ease);
}
.seg-toggle button:hover {
  color: var(--ink);
}
.seg-toggle button.on {
  background: var(--navy-900);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.seg-toggle--gold button.on {
  background: var(--gold);
  color: var(--navy-900);
}
.seg-toggle .n {
  opacity: 0.65;
  font-weight: 600;
  margin-left: 6px;
  font-size: 0.85em;
  transition: opacity 0.25s var(--ease);
}
.seg-toggle button.on .n {
  opacity: 0.85;
}
@media (prefers-reduced-motion: reduce) {
  .seg-toggle button:active { transform: none; }
}

/* Lane search field grid: Location · Type · Beds · Budget · Search */
@media (min-width: 1025px) {
  .search-card--lane {
    grid-template-columns: 1.5fr 1fr 1fr 1fr auto;
  }

  .search-card--lane.is-commercial {
    grid-template-columns: 1.7fr 1.1fr 1.1fr auto;
  }
}

/* Listings toolbar: two lane toggles stacked above the filter row */
.zbar .lane-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-bottom: 14px;
}
.lane-tabs__label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-right: 2px;
}
.hsearch__hint {
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ---------- UI polish: four-lane property flow ---------- */
.zbar {
  border-bottom: 1px solid rgba(12, 27, 46, 0.08);
}

.zbar .lane-tabs {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(12, 27, 46, 0.08);
  border-radius: var(--r-md);
  padding: 10px;
  box-shadow: 0 12px 36px rgba(12, 27, 46, 0.06);
}

.seg-toggle {
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(12, 27, 46, 0.02);
}

.seg-toggle button {
  min-height: 38px;
}

.seg-toggle button:focus-visible,
.fbtn:focus-visible,
.pcard__title:focus-visible,
.pcard__open:focus-visible {
  outline: 3px solid rgba(201, 164, 92, 0.35);
  outline-offset: 2px;
}

.zbar__row {
  align-items: stretch;
}

.zsearch,
.fbtn {
  min-height: 46px;
}

.results-meta {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 18px;
  box-shadow: 0 10px 30px rgba(12, 27, 46, 0.05);
}

.pcard {
  border-color: rgba(12, 27, 46, 0.1);
  box-shadow: 0 10px 32px rgba(12, 27, 46, 0.045);
}

.pcard:hover {
  box-shadow: 0 18px 48px rgba(12, 27, 46, 0.12);
}

.pcard__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 17, 32, 0.2), transparent 34%, rgba(8, 17, 32, 0.12));
  opacity: 0.72;
}

.pcard__badge {
  z-index: 3;
  border: 1px solid rgba(12, 27, 46, 0.08);
}

.pcard__city {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  background: var(--bg-warm);
  border: 1px solid rgba(201, 164, 92, 0.18);
  border-radius: var(--r-pill);
  padding: 5px 10px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.25;
}

.pcard__specs {
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 10px;
}

.pcard__specs li {
  background: var(--bg-soft);
  border: 1px solid rgba(12, 27, 46, 0.06);
  border-radius: var(--r-pill);
  padding: 6px 10px;
}

.pcard__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 6px;
}

.pcard .btn {
  min-height: 44px;
}

.modal__sec h5,
.fpanel h5,
.lane-tabs__label {
  color: #6c7685;
}

@media (max-width: 720px) {
  .zbar .lane-tabs {
    align-items: stretch;
  }

  .lane-tabs__label {
    width: 100%;
  }

  .zbar .lane-tabs .seg-toggle {
    width: 100%;
  }

  .zbar .lane-tabs .seg-toggle button {
    flex: 1;
    padding-inline: 10px;
  }

  .results-meta {
    align-items: flex-start;
  }
}

/* Listings page should surface properties quickly, not behave like a long
   marketing hero. Keep this scoped so content pages can stay more spacious. */
body.listings-page .page-hero {
  padding: clamp(16px, 2.4vw, 30px) 0 clamp(16px, 2.2vw, 28px);
}

body.listings-page .page-hero::before {
  width: 260px;
  height: 260px;
  top: -125px;
  right: -70px;
  opacity: 0.72;
}

body.listings-page .page-hero .wrap {
  display: block;
}

body.listings-page .page-hero .crumbs,
body.listings-page .page-hero .eyebrow {
  grid-column: 1 / -1;
}

body.listings-page .page-hero .crumbs {
  display: none;
}

body.listings-page .page-hero .eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
}

body.listings-page .page-hero .eyebrow::before {
  width: 28px;
}

body.listings-page .page-hero h1 {
  font-size: clamp(1.95rem, 3.7vw, 3rem);
  line-height: 1.02;
  max-width: 15ch;
}

body.listings-page .page-hero .lede {
  display: none;
}

body.listings-page .zbar .lane-tabs {
  gap: 6px 10px;
  margin-bottom: 6px;
  padding: 5px;
  border-radius: var(--r-sm);
  box-shadow: 0 8px 24px rgba(12, 27, 46, 0.045);
}

body.listings-page .lane-tabs__label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  margin: 0 4px;
}

body.listings-page .seg-toggle {
  padding: 3px;
}

body.listings-page .seg-toggle button {
  min-height: 32px;
  padding: 5px 12px;
  font-size: 0.82rem;
  justify-content: center;
}

body.listings-page .seg-toggle .n {
  display: inline-grid;
  min-width: 1.5em;
  text-align: center;
  margin-left: 5px;
}

body.listings-page .seg-toggle[data-group="intent"] button {
  min-width: 84px;
}

body.listings-page .seg-toggle[data-group="seg"] button {
  min-width: 132px;
}

body.listings-page .zbar__row {
  gap: 8px;
  padding: 6px 0 8px;
}

body.listings-page .zsearch,
body.listings-page .fbtn {
  min-height: 38px;
}

body.listings-page .zsearch {
  padding: 7px 12px;
}

body.listings-page .fbtn {
  padding: 7px 12px;
  font-size: 0.86rem;
}

body.listings-page .listings-results {
  padding-top: clamp(16px, 2.4vw, 26px);
}

body.listings-page .results-meta {
  margin: 0 0 16px;
  padding: 12px 18px;
}

body.listings-page .results-meta b {
  font-size: 1.32rem;
}

@media (max-width: 900px) {
  body.listings-page .page-hero .wrap {
    grid-template-columns: 1fr;
  }

  body.listings-page .page-hero .lede {
    margin-top: 4px;
    max-width: 58ch;
  }
}

@media (max-width: 720px) {
  body.listings-page .page-hero {
    padding: 22px 0 20px;
  }

  body.listings-page .page-hero h1 {
    font-size: clamp(2rem, 11vw, 2.75rem);
  }

  body.listings-page .zbar .lane-tabs {
    margin-bottom: 6px;
  }

  body.listings-page .zbar__row {
    padding: 8px 0;
  }

  body.listings-page .listings-results {
    padding-top: 18px;
  }
}

/* ---------- Borderless search and filter controls ---------- */
.search-card,
.zbar,
.zbar .lane-tabs,
.mode-tabs button,
.zsearch,
.fbtn,
.fpanel,
.cselect__panel,
.fselect,
.fcheck,
.results-meta,
.seg-toggle,
.seg,
.pinput,
.qp,
.cb,
.tcard,
.modal__head,
.modal__sec,
.modal__foot,
.modal__close {
  border-color: transparent;
}

.search-card .sfield {
  border-right-color: transparent;
}

.fpanel__foot {
  border-top-color: transparent;
}

.seg-toggle {
  box-shadow: none;
}

.zsearch:focus-within,
.fselect:focus-within,
.pinput:focus-within,
.mode-tabs button:hover,
.mode-tabs button.on,
.fbtn:hover,
.fbtn.active,
.fwrap.open .fbtn,
.qp:hover,
.qp.on,
.cb:hover,
.tcard:hover,
.tcard.on {
  border-color: transparent;
}

/* ============================================================
   Listing tags / scoring chips + admin preview banner
   ============================================================ */
/* Tone palette for tag chips and the primary badge. */
:root {
  --tag-new-bg: #e7f0ff;        --tag-new-fg: #1a4f9c;
  --tag-drop-bg: #fdeaea;       --tag-drop-fg: #b3261e;
  --tag-featured-bg: #f3e7c6;   --tag-featured-fg: #7a5a16;
  --tag-value-bg: #e3f1e6;      --tag-value-fg: #1f7a37;
  --tag-luxury-bg: #ece7f6;     --tag-luxury-fg: #5a3ea0;
  --tag-pet-bg: #e9f3ec;        --tag-pet-fg: #2c6e49;
  --tag-transit-bg: #e6f1f5;    --tag-transit-fg: #1d6a86;
  --tag-walk-bg: #eaf3e9;       --tag-walk-fg: #3a7a2f;
  --tag-space-bg: #eef1f5;      --tag-space-fg: #44546a;
  --tag-parking-bg: #eef1f5;    --tag-parking-fg: #44546a;
  --tag-available-bg: #fff3e0;  --tag-available-fg: #8a5a12;
  --tag-neutral-bg: #eef1f5;    --tag-neutral-fg: #44546a;
}

/* Secondary chips row on cards and the full row on the detail page. */
.pcard__tags,
.listing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 2px;
}
.listing-tags {
  margin: 10px 0 4px;
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--tag-neutral-bg);
  color: var(--tag-neutral-fg);
  white-space: nowrap;
}
.tag-chip--new { background: var(--tag-new-bg); color: var(--tag-new-fg); }
.tag-chip--drop { background: var(--tag-drop-bg); color: var(--tag-drop-fg); }
.tag-chip--featured { background: var(--tag-featured-bg); color: var(--tag-featured-fg); }
.tag-chip--value { background: var(--tag-value-bg); color: var(--tag-value-fg); }
.tag-chip--luxury { background: var(--tag-luxury-bg); color: var(--tag-luxury-fg); }
.tag-chip--pet { background: var(--tag-pet-bg); color: var(--tag-pet-fg); }
.tag-chip--transit { background: var(--tag-transit-bg); color: var(--tag-transit-fg); }
.tag-chip--walk { background: var(--tag-walk-bg); color: var(--tag-walk-fg); }
.tag-chip--space { background: var(--tag-space-bg); color: var(--tag-space-fg); }
.tag-chip--parking { background: var(--tag-parking-bg); color: var(--tag-parking-fg); }
.tag-chip--available { background: var(--tag-available-bg); color: var(--tag-available-fg); }

/* Primary badge tone accents (the badge keeps its position/shape from above). */
.pcard__badge--new, .qv__badge--new { color: var(--tag-new-fg); }
.pcard__badge--drop, .qv__badge--drop { color: var(--tag-drop-fg); }
.pcard__badge--featured, .qv__badge--featured { color: var(--tag-featured-fg); }
.pcard__badge--value, .qv__badge--value { color: var(--tag-value-fg); }
.pcard__badge--luxury, .qv__badge--luxury { color: var(--tag-luxury-fg); }
.pcard__badge--pet, .qv__badge--pet { color: var(--tag-pet-fg); }
.pcard__badge--transit, .qv__badge--transit { color: var(--tag-transit-fg); }
.pcard__badge--walk, .qv__badge--walk { color: var(--tag-walk-fg); }
.pcard__badge--available, .qv__badge--available { color: var(--tag-available-fg); }

/* Admin-only preview banner (listing.html?preview=1). */
.nexra-preview-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  background: #102a44;
  color: #fff;
  font-family: var(--font-text);
  font-size: 0.85rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.nexra-preview-banner strong {
  background: var(--gold);
  color: var(--navy-900);
  padding: 3px 9px;
  border-radius: var(--r-sm);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
.nexra-preview-banner--error {
  background: #7a1f1f;
}
.nexra-preview-banner__close {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.14);
  border: 0;
  color: #fff;
  padding: 5px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font: inherit;
}
.nexra-preview-banner__close:hover {
  background: rgba(255, 255, 255, 0.26);
}
body.has-preview-banner {
  padding-top: 44px;
}
