/* Global shell — banner, split nav, sidebar, footer, listing cards, chrome */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ClientRouter default root cross-fade reads as layout jitter — keep swaps instant. */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none !important;
}

/* Do not set scroll-behavior: smooth on html — ClientRouter scroll
   restore + smooth animates to a mid-page position and feels broken. */

html {
  /* clip avoids the sticky-break side effect of overflow-x:hidden + auto y. */
  overflow-x: clip;
  /* First-paint copy lives on `html` in tokens.css (inlined) — change both. */
  scroll-padding-top: var(--header-scroll-pad);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}

#main:focus {
  outline: none;
}

a {
  color: var(--black);
  cursor: pointer;
}

a:hover {
  color: var(--gold-deep);
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
textarea {
  font: inherit;
}

button,
[type='button'],
[type='submit'],
[type='reset'],
[role='button'],
summary {
  cursor: pointer;
}

button:disabled,
[type='submit']:disabled,
[type='button']:disabled {
  cursor: not-allowed;
}

/* Legacy baked banner (Nara Brown Team art on assets.soldtucson.com).
  Full-bleed black bar; image is capped to page width. Gold rule lives on the header.
  First-paint copy of these rules lives in tokens.css (inlined) — change both. */
.site-banner {
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--black);
}

.site-banner img {
  display: block;
  width: min(100%, var(--content-max));
  margin: 0 auto;
  height: auto;
  /* Matches width/height on the img — reserve space before the file arrives.
     contain, not cover: SOLDRANCHOVISTOSO.COM is painted into the file, so
     any crop clips the word on a phone. */
  aspect-ratio: 1232 / 175;
  object-fit: contain;
}

/* —— Header / split nav —— */
/* Wrapper carries sticky + z-index so the overflow menu stacks above page content
   (persist/transition wrappers otherwise leave the dropdown under main/aside). */
.site-header-shell {
  position: sticky;
  top: 0;
  z-index: 200;
}

.site-header {
  position: relative;
  z-index: 200;
  background: var(--black);
  /* Gold rule overlays the bar so hover can paint full height with no black strip. */
  border-bottom: none;
  padding-bottom: 4px;
}

.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--gold);
  pointer-events: none;
  z-index: 5;
}

.site-header__inner {
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: stretch;
  gap: 14px;
  flex-wrap: nowrap;
  min-height: 52px;
}

.site-header__wordmark {
  display: flex;
  align-items: center;
  color: var(--gold);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.15;
  padding: 0;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  text-decoration: none;
}

.site-header__wordmark.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-header__wordmark:hover {
  color: var(--gold);
}

.site-nav {
  flex: 1 1 auto;
  align-self: stretch;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0 2px;
  /* Clip pre-measure spill; unlock after measure (and while ⋯ is open). */
  overflow: hidden;
}

.site-header.is-nav-ready .site-nav,
.site-nav:has(.site-nav__more.is-open),
.site-nav:has(.site-nav__group:hover),
.site-nav:has(.site-nav__group:focus-within),
.site-nav:has(.site-nav__group.is-open) {
  overflow: visible;
}

.site-nav > li {
  display: flex;
  align-items: stretch;
  height: 100%;
}

/* Author `display: flex` otherwise beats [hidden] and overflow links
   keep painting — they pile up under the sticky wordmark. */
.site-nav > li[hidden] {
  display: none !important;
}

.site-nav a {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  height: 100%;
  padding: 0 10px;
  color: var(--white);
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
}

.site-nav a:hover {
  background: var(--gold);
  color: var(--black);
}

.site-nav a.is-active {
  color: var(--gold);
}

.site-nav a.is-active:hover {
  color: var(--black);
}

.site-nav__group {
  position: relative;
}

.site-nav__group > a,
.site-nav__group > .site-nav__group-btn {
  position: relative;
  z-index: 212;
  gap: 6px;
}

.site-nav__group > a::after,
.site-nav__group > .site-nav__group-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
}

.site-nav__group-btn {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 10px;
  background: transparent;
  border: none;
  color: var(--white);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  cursor: pointer;
}

.site-nav__group-btn:hover {
  background: var(--gold);
  color: var(--black);
}

.site-nav__group.is-current > a,
.site-nav__group.is-current > .site-nav__group-btn {
  color: var(--gold);
}

.site-nav__group:hover > a,
.site-nav__group:hover > .site-nav__group-btn,
.site-nav__group:focus-within > a,
.site-nav__group:focus-within > .site-nav__group-btn,
.site-nav__group.is-open > a,
.site-nav__group.is-open > .site-nav__group-btn,
.site-nav__group.is-current > a:hover,
.site-nav__group.is-current > .site-nav__group-btn:hover {
  background: var(--gold);
  color: var(--black);
  /* Paint through the 4px gold header rule so tab + panel are one piece. */
  box-shadow: 0 4px 0 var(--gold);
}

.site-nav__group > .site-nav__dropdown {
  left: 0;
  right: auto;
  top: 100%;
  min-width: max(240px, 100%);
}

.site-nav__group:hover > .site-nav__dropdown,
.site-nav__group:focus-within > .site-nav__dropdown,
.site-nav__group.is-open > .site-nav__dropdown {
  display: block;
}

.site-nav__overflow-label {
  display: none;
  padding: 10px 12px 4px;
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
}

[data-navmore-menu] > li.is-group-lead:not([hidden]) > .site-nav__overflow-label {
  display: block;
}

.site-nav__overflow-group + .site-nav__overflow-group {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid rgb(0 0 0 / 18%);
}

.site-nav__sub {
  list-style: none;
  margin: 0;
  padding: 0 0 2px;
}

.site-nav__sub a {
  padding-left: 20px;
}

/* Reserve ⋯ width always; stay invisible until measure + overflow needed.
   Avoids the gold ⋯ flashing on every load when overflow isn’t required. */
.site-nav__more {
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  opacity: 0;
  pointer-events: none;
}

.site-header.is-nav-ready .site-nav__more:not(.is-empty) {
  opacity: 1;
  pointer-events: auto;
}

.site-nav__more-btn {
  position: relative;
  z-index: 212;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--gold);
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
}

.site-nav__more-btn:hover,
.site-nav__more.is-open .site-nav__more-btn {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 4px 0 var(--gold);
}

.site-nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  min-width: 240px;
  background: var(--gold);
  border: none;
  border-radius: 0 0 6px 6px;
  box-shadow: var(--shadow-dropdown);
  z-index: 210;
}

.site-nav__more.is-open .site-nav__dropdown {
  display: block;
}

.site-nav__dropdown > li {
  display: block;
}

.site-nav__dropdown > li[hidden] {
  display: none !important;
}

.site-nav__dropdown a {
  display: flex;
  align-items: center;
  width: 100%;
  height: auto;
  min-height: 40px;
  padding: 8px 14px;
  color: var(--black);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  border-radius: 4px;
}

.site-nav__dropdown a:hover,
.site-nav__dropdown a.is-active {
  background: var(--black);
  color: var(--gold);
}

.site-nav__dropdown a.is-active:hover {
  background: var(--black);
  color: var(--gold);
}

.site-nav__measure {
  position: absolute;
  left: 0;
  top: 0;
  visibility: hidden;
  pointer-events: none;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 0 2px;
  white-space: nowrap;
}

.site-nav__measure li {
  padding: 0 10px;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
}

/* Same caret + gap as `.site-nav__group > a` so overflow math is honest. */
.site-nav__measure li.has-caret {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav__measure li.has-caret::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.site-header__actions {
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  margin-left: 10px;
  padding-left: 12px;
  border-left: 1px solid var(--nav-divider);
}

.site-header__actions a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 10px;
  color: var(--nav-dim);
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
}

.site-header__actions a:hover {
  color: var(--gold);
}

/*
  ↗ sits on the baseline and renders differently in every font fallback.
  Hide the character and paint a stroke arrow via mask so header, drawer,
  footer, and in-page `.site-ext` marks all match.
*/
.site-ext,
.site-footer__site-ext {
  --ext-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7'/%3E%3Cpath d='M8 7h9v9'/%3E%3C/svg%3E");
  font-size: 0;
  display: inline-flex;
  align-items: center;
}

.site-ext {
  margin-left: 0.35em;
}

.site-ext::after,
.site-footer__site-ext::after {
  content: '';
  display: block;
  width: 13px;
  height: 13px;
  background: currentColor;
  -webkit-mask: var(--ext-arrow) center / contain no-repeat;
  mask: var(--ext-arrow) center / contain no-repeat;
}

.site-header__call {
  margin-left: 10px !important;
  height: auto !important;
  align-self: center;
  background: var(--gold);
  color: var(--black) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  padding: 8px 20px !important;
  border-radius: var(--radius-pill);
}

.site-header__call:hover {
  background: var(--white) !important;
  color: var(--black) !important;
}

.site-header__mobile {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  width: 100%;
}

.site-header__mobile-wordmark {
  color: var(--gold);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.2px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

.site-header__mobile-call {
  margin-left: auto;
  flex-shrink: 0;
  background: var(--gold);
  color: var(--black);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
}

.site-header__mobile-call:hover {
  background: var(--white);
  color: var(--black);
}

.site-header__burger {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 2px solid var(--gold);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}

.site-header__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
}

.site-drawer {
  display: none;
  background: var(--black);
  border-bottom: 4px solid var(--gold);
}

.site-drawer.is-open {
  display: block;
}

.site-drawer a {
  display: flex;
  align-items: center;
  padding: 13px 18px;
  color: var(--white);
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
}

.site-drawer a:hover,
.site-drawer a.is-active {
  background: var(--gold);
  color: var(--black);
}

.site-drawer__auth {
  display: flex;
  gap: 10px;
  padding: 14px 18px 18px;
}

.site-drawer__auth a {
  flex: 1;
  text-align: center;
  border: 2px solid var(--gold);
  border-radius: var(--radius-pill);
  color: var(--gold);
  padding: 10px 12px;
  font-size: 15px;
}

.site-drawer__auth a:hover {
  background: var(--gold);
  color: var(--black);
}

.site-drawer__label {
  margin: 0;
  padding: 14px 18px 4px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-drawer__group {
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}

.site-drawer__group.is-open {
  border-bottom: none;
}

.site-drawer__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 18px;
  background: transparent;
  border: none;
  color: var(--white);
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.15;
  text-align: left;
  cursor: pointer;
}

.site-drawer__toggle::after {
  content: '';
  width: 0.42em;
  height: 0.42em;
  margin-left: 12px;
  flex-shrink: 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.12em) rotate(45deg);
}

.site-drawer__group.is-open > .site-drawer__toggle {
  background: var(--gold);
  color: var(--black);
}

.site-drawer__group.is-open > .site-drawer__toggle::after {
  transform: translateY(0.12em) rotate(-135deg);
}

.site-drawer__sub {
  display: none;
  background: var(--cream-warm);
  padding: 4px 0;
  border-bottom: 2px solid var(--gold);
}

.site-drawer__group.is-open > .site-drawer__sub {
  display: block;
}

.site-drawer__sub a {
  justify-content: flex-start;
  color: var(--black);
  font-size: 16px;
  font-weight: 600;
  padding: 12px 18px 12px 32px;
  text-align: left;
}

.site-drawer__sub a + a {
  box-shadow: inset 0 1px 0 rgb(0 0 0 / 8%);
}

.site-drawer__sub a:hover,
.site-drawer__sub a.is-active {
  background: var(--gold);
  color: var(--black);
}

.site-drawer__sub a .site-ext {
  opacity: 0.5;
}

/* —— Page grid —— */
.site-page {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
  gap: var(--main-gap);
  padding: var(--page-pad);
  align-items: start;
}

.site-page--solo {
  grid-template-columns: minmax(0, 1fr);
}

.site-main {
  min-width: 0;
}

.site-main__empty {
  min-height: 120px;
}

/* —— Sidebar —— */
.site-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-card {
  border: var(--border-card);
  border-radius: var(--radius-card);
  background: var(--white);
  overflow: hidden;
}

.side-contact {
  position: relative;
  padding: 12px 14px 10px;
  /* Portrait is 165px and out of flow — shorter than this clips it. */
  min-height: 165px;
  overflow: hidden;
}

.side-contact__copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  /* Leave room for absolute portrait on the bottom-right. */
  padding-right: 120px;
}

.side-contact__name {
  margin: 0 0 1px;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.1;
}

.side-contact__title {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}

.side-contact__phone {
  display: inline-block;
  margin-top: 6px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  color: var(--black);
}

.side-contact__email {
  display: block;
  margin-top: 1px;
  font-size: 15.5px;
  text-decoration: none;
  color: var(--black);
  overflow-wrap: anywhere;
}

.side-contact__social {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.side-contact__social a {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  border: 1px solid var(--line-portrait);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
  background: var(--white);
}

.side-contact__social a:hover {
  border-color: var(--black);
}

.side-contact__social img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.side-contact__social .fb-mark {
  width: 20px;
  height: 20px;
  fill: #0866ff;
}

.side-contact__portrait {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 132px;
  aspect-ratio: 4 / 5;
  pointer-events: none;
  z-index: 0;
}

.side-contact__portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  transform: scaleX(-1);
}

.side-reviews {
  /* Mobile-lead is full-bleed; the desktop aside is 360. Size the
     stars and wordmarks from the card, not the viewport. */
  container: reviews-card / inline-size;
  padding: 16px 14px 0;
}

.side-reviews__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 14px;
}

.side-reviews__summary {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.side-reviews__stars {
  --stars-fill: 100%;
  --star-size: 22px;
  position: relative;
  flex-shrink: 0;
  width: calc(var(--star-size) * 5);
  height: var(--star-size);
}

.side-reviews__stars-row {
  display: block;
  width: calc(var(--star-size) * 5);
  height: var(--star-size);
}

.side-reviews__stars-row path {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 0.4;
  stroke-linejoin: round;
}

.side-reviews__stars-empty {
  color: #e4dcc8;
}

.side-reviews__stars-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--stars-fill);
  overflow: hidden;
  color: var(--star);
}

.side-reviews__stars-fill .side-reviews__stars-row path {
  stroke: var(--gold-deep);
  stroke-width: 0.7;
}

.side-reviews__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 18px;
  row-gap: 12px;
  padding: 2px 4px 16px;
  min-height: 22px;
}

.side-reviews__logos img {
  /* Shared 4/1 slot, not each file's ratio. Realtor.com and Facebook
     are tightly cropped bold wordmarks — equal height makes them look
     twice the size of Google. object-fit contain keeps the mark intact. */
  display: block;
  height: 22px;
  width: auto;
  aspect-ratio: 4 / 1;
  max-width: none;
  object-fit: contain;
}

@container reviews-card (min-width: 420px) {
  .side-reviews__top {
    margin-bottom: 16px;
  }

  .side-reviews__stars {
    --star-size: 28px;
  }

  .side-reviews__logos {
    column-gap: clamp(20px, 4cqi, 36px);
    row-gap: 14px;
    padding: 4px 8px 18px;
  }

  .side-reviews__logos img {
    height: 26px;
  }
}

.side-reviews__cta {
  display: block;
  margin: 0 -14px;
  text-align: center;
  padding: 12px 10px;
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
  font-size: 15.5px;
  text-decoration: none;
}

.side-reviews__cta:hover {
  background: var(--black);
  color: var(--gold);
}

.side-award {
  padding: 16px 14px;
  text-align: center;
}

.side-award h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
}

.side-award p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.side-value {
  padding: 22px 16px;
  background: var(--gold);
  text-align: center;
}

.side-value a {
  display: block;
  color: var(--black);
  text-decoration: none;
  font-size: 23px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
}

.side-value a:hover {
  color: var(--black);
  text-decoration: underline;
}

.side-value p {
  margin: 10px 0 0;
  font-size: 15.5px;
  color: var(--black);
}

.side-listings {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-listings__more {
  align-self: center;
  background: var(--white);
  color: var(--black);
  border: var(--border-card);
  border-radius: var(--radius-pill);
  padding: 10px 28px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.side-listings__more:hover {
  background: var(--gold);
}

.side-listings__more[hidden] {
  display: none !important;
}

.listing-card[hidden],
.listing-card[data-load-deferred] {
  display: none !important;
}

/* —— Contact form —— */
.side-form {
  padding: 16px 14px 18px;
}

.side-form h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
}

.side-form__helper {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--muted);
}

.side-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.side-form__grid .full {
  grid-column: 1 / -1;
}

.side-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 3px;
}

.side-form input,
.side-form textarea {
  width: 100%;
  border: 1px solid var(--black);
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 15px;
  background: var(--white);
}

.side-form textarea {
  resize: vertical;
  min-height: 56px;
}

.side-form__submit {
  display: block;
  margin: 14px auto 0;
  background: var(--gold);
  color: var(--black);
  border: var(--border-card);
  border-radius: var(--radius-pill);
  padding: 9px 28px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.side-form__submit:hover {
  background: var(--black);
  color: var(--gold);
}

.side-form__messages {
  margin: 0 0 10px;
  font-size: 14.5px;
  font-weight: 600;
}

.side-form__messages.is-error {
  color: #8b1e1e;
}

.side-form__messages.is-ok {
  color: #196535;
}

.ohnohoney {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

/* —— Listing cards —— */
.listing-card {
  border: var(--border-card);
  border-radius: var(--radius-card);
  background: var(--gold);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.listing-card__media {
  position: relative;
  height: 200px;
  background: #2a2a2a;
  overflow: hidden;
}

.listing-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #2a2a2a;
}

/* Lazy images: soft fade-in after decode (see /js/lazy.js). */
img[data-src],
img.is-lazy:not(.is-loaded) {
  opacity: 0;
  background: #e8e2d4;
}

img.is-lazy {
  transition: opacity 0.55s ease;
}

img.is-lazy.is-loaded {
  opacity: 1;
  background: transparent;
}

@media (prefers-reduced-motion: reduce) {
  img.is-lazy {
    transition: none;
  }
}

.listing-card__body {
  padding: 0 12px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.listing-card__address {
  position: relative;
  z-index: 2;
  background: var(--white);
  border: var(--border-card);
  border-radius: var(--radius-plate);
  width: 94%;
  margin: -32px auto 10px;
  padding: 10px 12px 11px;
  text-align: center;
}

.listing-card__street {
  margin: 0;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listing-card__city {
  margin: 3px 0 0;
  font-size: 16px;
  font-weight: 500;
  color: #666;
}

.listing-card__feats {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 10px;
}

.listing-card__feats li {
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.2;
  display: flex;
  gap: 8px;
  align-items: center;
}

.listing-card__feats .st-icon {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  stroke-width: 1.7;
}

.listing-card__note {
  margin: 0 0 12px;
  padding: 7px 10px;
  text-align: center;
  font-size: 14.5px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.2px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 6px;
}

.listing-card__actions {
  display: flex;
  gap: 8px;
  padding-bottom: 12px;
  margin-top: auto;
}

.listing-card__video,
.listing-card__details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  font-size: 15px;
  font-weight: 700;
  border: var(--border-card);
  border-radius: var(--radius-btn);
  text-decoration: none;
  cursor: pointer;
}

.listing-card__video {
  flex: 1.25;
  color: var(--white);
  background: var(--black);
}

.listing-card__video:hover {
  background: #1f1c15;
  color: var(--white);
}

.listing-card__play {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.listing-card__details {
  flex: 1;
  color: var(--black);
  background: var(--white);
}

.listing-card__details:hover {
  background: var(--cream-warm);
  color: var(--black);
}

.listing-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: var(--for-sale);
}

.listing-card.is-sold .listing-card__footer {
  background: var(--sold);
}

.listing-card__status {
  border: 3px solid var(--white);
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  padding: 6px 10px;
  line-height: 1;
}

.listing-card__price {
  color: var(--white);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -1px;
}

/* —— Footer —— */
.site-footer {
  border-top: 3px solid var(--black);
  padding: 0 0 40px;
  background: var(--white);
}

.site-footer__explore {
  background: var(--cream);
  padding: 40px 32px 36px;
}

.site-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.site-footer__legal {
  padding: 0 32px;
}

.site-footer__heading {
  font-size: 31px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 0 0 10px;
  text-align: center;
}

.site-footer__rule {
  height: 4px;
  width: 140px;
  background: var(--gold);
  margin: 0 auto 28px;
}

.site-footer__sites {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__sites a {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: var(--border-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--white);
  text-decoration: none;
  color: var(--black);
}

.site-footer__sites a:hover {
  color: var(--black);
  background: var(--cream-warm);
}

.site-footer__site-name {
  display: block;
  padding: 16px 18px;
  background: var(--gold);
  border-bottom: var(--border-card);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.2px;
}

.site-footer__site-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 16px 18px;
}

.site-footer__site-domain {
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
  border-bottom: 2px solid var(--gold);
}

.site-footer__sites a:hover .site-footer__site-domain {
  color: var(--gold-deep);
  border-bottom-color: var(--black);
}

.site-footer__site-ext {
  flex-shrink: 0;
  color: var(--gold-deep);
}

.site-footer__sites a:hover .site-footer__site-ext {
  color: var(--black);
}

.site-footer__band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 2px solid var(--gold);
  text-align: center;
}

.site-footer__contact,
.site-footer__brand,
.site-footer__marks {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.site-footer__team {
  display: block;
  height: 72px;
  width: auto;
  max-width: min(240px, 100%);
  object-fit: contain;
  margin-bottom: 4px;
}

.site-footer__name {
  font-size: 26px;
  font-weight: 700;
}

.site-footer__role {
  font-size: 19px;
  margin-top: 4px;
  line-height: 1.5;
}

.site-footer__reach {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
}

.site-footer__reach a,
.site-footer__reach a:link,
.site-footer__reach a:visited {
  color: var(--black);
  text-decoration: none;
}

.site-footer__reach a:first-child {
  font-size: 22px;
  font-weight: 700;
}

.site-footer__reach a:last-child {
  font-size: 19px;
}

.site-footer__reach a:hover {
  color: var(--gold-deep);
  text-decoration: none;
}

.site-footer__brand {
  gap: 10px;
}

.site-footer__long {
  display: block;
  height: 72px;
  width: auto;
  max-width: min(280px, 100%);
  object-fit: contain;
}

.site-footer__brand-line {
  font-size: 18px;
  font-weight: 600;
}

.site-footer__marks {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.site-footer__realtor {
  display: block;
  height: 56px;
  width: auto;
  object-fit: contain;
}

.site-footer__equal {
  display: block;
  height: 56px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 860px) {
  .site-footer__explore {
    padding: 32px 20px 28px;
  }

  .site-footer__legal {
    padding: 0 20px;
  }

  .site-footer__heading {
    font-size: 26px;
  }

  .site-footer__band {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer__long,
  .site-footer__team {
    height: 64px;
  }
}

.site-footer__nav-wrap {
  margin-top: 26px;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__nav a {
  color: var(--black);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}

.site-footer__nav a:hover {
  color: var(--gold-deep);
}

.site-footer__copy {
  margin: 18px 0 0;
  font-size: 15px;
  text-align: center;
  color: var(--ink);
}

/* —— Back to top / video modal / PDF overlay —— */
.back-to-top {
  --top-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5'/%3E%3Cpath d='m5 12 7-7 7 7'/%3E%3C/svg%3E");
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  border: var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-top);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  /* ↑ has the same font-fallback problem as ↗ — hide it, paint a stroke. */
  font-size: 0;
}

.back-to-top::after {
  content: '';
  display: block;
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: var(--top-arrow) center / contain no-repeat;
  mask: var(--top-arrow) center / contain no-repeat;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.video-modal.is-open {
  display: flex;
}

.video-modal__panel {
  position: relative;
  /* Cap by width and by height so the box is stable before metadata loads. */
  width: min(960px, 100%, calc(78vh * 16 / 9));
}

.video-modal__close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: var(--black);
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.video-modal video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 10px;
  background: var(--black);
}

/* Above sticky header (200) and overflow menu (210). Cream stage is the
   site page, not Chrome's grey PDF chrome. */
.pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  flex-direction: column;
  background: var(--cream);
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

.pdf-modal.is-open {
  display: flex;
}

.pdf-modal__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-height: 52px;
  padding: 8px 14px;
  background: var(--black);
  border-bottom: 2px solid var(--gold);
}

.pdf-modal__identity {
  flex: 1;
  min-width: 0;
}

.pdf-modal__kicker:empty {
  display: none;
}

.pdf-modal__title {
  margin: 0;
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdf-modal__status {
  flex-shrink: 0;
  margin: 0;
  color: var(--nav-dim);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.pdf-modal__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pdf-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  min-width: 36px;
  padding: 6px 12px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.pdf-modal__btn:hover,
.pdf-modal__btn:focus-visible {
  background: var(--gold);
  color: var(--black);
}

.pdf-modal__btn:disabled {
  opacity: 0.45;
  cursor: wait;
}

.pdf-modal__btn:disabled:hover {
  background: transparent;
  color: var(--gold);
}

.pdf-modal__close {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: var(--black);
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.pdf-modal__stage {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  background: var(--cream);
  padding: 20px 16px 40px;
  -webkit-overflow-scrolling: touch;
}

.pdf-modal__stage[data-state='loading']::before {
  content: 'Loading…';
  display: block;
  text-align: center;
  color: var(--gold-deep);
  font-weight: 700;
  padding: 72px 16px 24px;
}

.pdf-modal__page {
  display: block;
  margin: 0 auto 20px;
  background: var(--white);
  border: var(--border-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-top);
}

@media (max-width: 860px) {
  .pdf-modal__bar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .pdf-modal__identity {
    flex-basis: calc(100% - 52px);
  }

  .pdf-modal__title {
    font-size: 15px;
    white-space: normal;
  }

  .pdf-modal__status {
    order: 1;
    flex-basis: 100%;
  }
}

/* Desktop-only: the sidebar already has contact + form + reviews. */
.mobile-lead {
  display: none;
}

@media (max-width: 860px) {
  .site-header__inner {
    display: none;
  }

  .site-header__mobile {
    display: flex;
  }

  .site-page {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .site-aside-shell,
  .site-aside {
    display: none;
  }

  /* Recovers contact on every chrome page; reviews + form are homepage-only. */
  .mobile-lead {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 8px 0 12px;
  }
}
