/* ============================================================
   Davis Vernon Real Estate — design system
   ============================================================ */

:root {
  --bg: #0c0d0a;
  --bg-soft: #14160f;
  --surface: #1a1c14;
  --surface-2: #21241a;
  --line: rgba(245, 242, 234, 0.10);
  --line-strong: rgba(245, 242, 234, 0.18);

  --text: #f4f1e8;
  --text-muted: #b9b6a7;
  --text-faint: #8a8778;

  --rust: #a5402a;
  --rust-hover: #c04c30;
  --gold: #c9a227;
  --gold-soft: #e0c568;

  --success: #5c7a4f;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-label: var(--font-body);

  --container: 1200px;
  --radius: 4px;
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Playfair Display defaults to old-style numerals whose digits bounce up and
     down ($1,800,000); lining figures keep prices and acreage even. */
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 500;
}

/* Small navigational/UI "headings" (section labels, card eyebrows-in-a-heading-tag)
   read better as compact uppercase sans than as serif display type. */
.browse-col h3,
.footer-col h4 {
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

p { margin: 0 0 1em; color: var(--text-muted); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Wider container for content that benefits from more horizontal room —
   used sparingly, not a site-wide change. */
.container-wide {
  max-width: 1640px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Map Search specifically wants even more room for the map/list split
   than other .container-wide pages (property.html, boundary-tool.html),
   so it gets its own wider max-width rather than widening those too. */
.container-map {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold-soft);
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-label);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 30px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--rust); color: #fff; }
.btn-primary:hover { background: var(--rust-hover); }

.btn-outline { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--gold-soft); color: var(--gold-soft); }

.btn-ghost { background: transparent; color: var(--gold-soft); padding: 8px 0; }
.btn-ghost:hover { color: #fff; }

.btn-block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 13, 10, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-solid { background: rgba(12, 13, 10, 0.97); }

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-faint);
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.03em;
}
.header-top a { color: var(--text-muted); }
.header-top a:hover { color: var(--gold-soft); }
.header-top .top-phone { color: var(--gold-soft); font-weight: 600; }
.header-top .top-left, .header-top .top-right { display: flex; align-items: center; gap: 22px; }

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 56px; width: auto; border-radius: 6px; background: #f4f1e8; padding: 4px 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand-text span { font-size: 11px; letter-spacing: 0.14em; color: var(--gold-soft); text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 20px; flex-shrink: 1; min-width: 0; }
.main-nav a {
  font-family: var(--font-label);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  flex-shrink: 0;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--rust);
}

.header-cta { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-cta .btn-outline { padding: 12px 20px; font-size: 12px; }

/* "Listings" nav dropdown — land types first, residential/commercial set
   apart below a divider, so it stays easy to find without reading as five
   equal-weight categories. Opens on hover and on keyboard focus. */
.nav-dropdown { position: relative; flex-shrink: 0; }
.nav-dropdown-trigger { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.nav-dropdown-trigger .caret { font-size: 9px; transition: transform 0.15s ease; }
.nav-dropdown:hover .nav-dropdown-trigger .caret,
.nav-dropdown:focus-within .nav-dropdown-trigger .caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 14px;
  min-width: 190px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 50;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 3px;
  font-size: 12px;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--surface-2); color: var(--text); }
.nav-dropdown-menu .nav-dropdown-divider { height: 1px; background: var(--line); margin: 6px 4px; }
.nav-dropdown-menu .nav-dropdown-label {
  font-size: 10px; letter-spacing: 0.08em; color: var(--text-faint);
  padding: 4px 12px 2px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); display: block; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
/* Slow, subtle "Ken Burns" drift on the still photo — reads as motion/video
   without needing an actual video file or any third-party stock footage. */
.hero-bg {
  position: absolute; inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  animation: heroKenBurns 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroKenBurns {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.14) translate3d(-1.6%, -1.4%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; }
}
/* Background YouTube video — sits above the still photo (the photo stays
   in the DOM as a fallback for the rare case the embed itself fails to
   load, e.g. blocked by an ad blocker or offline). iframes don't support
   object-fit, so the standard trick is sizing it off viewport units at a
   16:9 ratio and centering it, which overshoots and crops in both
   directions like background-size: cover would. pointer-events: none
   keeps it purely decorative — clicks always reach the page underneath. */
.hero-video {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-video iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 177.78vh;
  height: 56.25vw;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
/* Warm color-grade layer, blended against the photo itself so the site's
   photography reads as branded rather than a raw stock/drone shot. */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(155deg, rgba(165,64,42,0.38) 0%, rgba(58,46,16,0.28) 45%, rgba(12,13,10,0.2) 100%);
  mix-blend-mode: color;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(8,9,6,0.55) 0%, rgba(8,9,6,0.45) 35%, rgba(8,9,6,0.88) 100%),
    linear-gradient(90deg, rgba(8,9,6,0.5) 0%, rgba(8,9,6,0.05) 55%);
}
.hero-content { position: relative; z-index: 3; max-width: 760px; }
/* Homepage-only centered layout — the eyebrow, heading, and search bar all
   center as a column instead of sitting left-aligned. The left-to-right
   darkening gradient in .hero::after is built for left-aligned text, so it
   switches to a flat, even scrim here instead of fading out on one side. */
.hero.is-centered .container { display: flex; justify-content: center; }
.hero.is-centered .hero-content { max-width: 700px; text-align: center; }
.hero.is-centered .hero-search,
.hero.is-centered .hero-search-map { margin-left: auto; margin-right: auto; }
.hero.is-centered::after {
  background: linear-gradient(180deg, rgba(8,9,6,0.55) 0%, rgba(8,9,6,0.45) 35%, rgba(8,9,6,0.88) 100%),
    rgba(8,9,6,0.28);
}
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  color: #fff;
  margin-bottom: 0.3em;
  text-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.hero-sub {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
/* Wider text block and a single row of buttons on desktop (Land & Energy
   page); phones keep the stacked layout. */
@media (min-width: 900px) {
  .hero-wide .hero-content { max-width: 1180px; }
  .hero-wide .hero-sub { max-width: 1100px; }
  .hero-wide .hero-actions { flex-wrap: nowrap; }
}

.stat-bar {
  position: relative;
  z-index: 3;
  border-top: 1px solid rgba(245,242,234,0.15);
  margin-top: 64px;
  padding-top: 32px;
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.stat-bar .stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: #fff;
}
.stat-bar .stat span {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Hero location search — county/city lookup, front and center like the
   national land-brokerage sites, feeding listings.html's ?q= filter. A
   single wide pill with the search action as an icon inside it, rather
   than a separate button box. */
.hero-search { position: relative; max-width: 560px; margin: 24px 0 12px; }
.hero-search input {
  width: 100%;
  background: rgba(20, 22, 15, 0.55);
  border: 1px solid rgba(245, 242, 234, 0.3);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 16px 60px 16px 24px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
}
.hero-search input::placeholder { color: rgba(245, 242, 234, 0.55); }
.hero-search input:focus { outline: none; border-color: var(--gold-soft); }
.hero-search-submit {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--rust);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-search-submit:hover { background: var(--rust-hover); }
.hero-search-submit svg { width: 18px; height: 18px; }

.hero-search-map {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.hero-search-map a { color: var(--gold-soft); font-weight: 600; }
.hero-search-map a:hover { color: var(--text); }
/* Centers the link's text within the same box width as .hero-search
   (560px) so it lines up under the search bar. On the homepage that box
   sits flush left, same as the search bar, so no extra margin here —
   see .page-header.is-centered below for the county-page variant, where
   the search bar itself is centered and this needs to match it. */
.hero-search-map.is-centered {
  justify-content: center;
  width: 100%;
  max-width: 560px;
}

/* Land-type browse grid — visual, count-driven wayfinding under the hero,
   the one thing worth borrowing from the big national land-brokerage
   homepages without borrowing their scale-dependent stat banners. */
.landtype-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.landtype-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 18px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.landtype-card:hover { border-color: var(--gold-soft); transform: translateY(-3px); }
.landtype-card .count {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold-soft);
  margin-bottom: 6px;
  min-height: 1.2em;
}
.landtype-card .label {
  display: block;
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
@media (max-width: 900px) {
  .landtype-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .landtype-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Trust strip — separated out from the hero entirely, styled as its own
   compact component rather than a stat row nested under the headline. */
.trust-strip {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.trust-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 22px 0;
}
.trust-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 40px;
}
.trust-item strong {
  font-family: var(--font-label);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}
.trust-item span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.trust-divider { width: 1px; height: 22px; background: var(--line-strong); }
@media (max-width: 760px) {
  .trust-item { padding: 6px 18px; }
  .trust-divider:nth-of-type(2) { display: none; }
}

/* Alternate, centered section header — used selectively so not every
   section on the page repeats the same eyebrow+headline+right-hand-button
   formula. */
.section-head.section-head-center {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  margin-bottom: 32px;
}
.section-head-center .eyebrow { justify-content: center; }
.section-head-center p { max-width: 560px; }

/* ---------- Sections ---------- */

section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--bg-soft); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 0.25em; }
.section-head p { margin: 0; max-width: 520px; }

/* Browse grid */
.browse-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.browse-col { background: var(--bg); padding: 28px 26px; }
.browse-col h3 {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--gold-soft);
  margin-bottom: 16px;
}
.browse-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.browse-col a { font-size: 14px; color: var(--text-muted); }
.browse-col a:hover { color: var(--text); }

/* Listing cards */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
/* Full-bleed photo card with the details overlaid at the bottom behind a
   dark gradient scrim, instead of a photo strip + separate solid-color
   body below it — modeled after landandranch.exprealty.com/search-properties. */
.listing-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}
.listing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.listing-card-link { position: relative; display: block; height: 100%; color: inherit; }
.listing-card-link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; filter: saturate(0.86) contrast(1.05) sepia(0.08); }
.listing-card:hover .listing-card-link img { transform: scale(1.06); }
.listing-card-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 20px 18px;
  background: linear-gradient(180deg, rgba(12,13,10,0) 0%, rgba(12,13,10,0.55) 38%, rgba(12,13,10,0.94) 100%);
}
.listing-card-overlay .listing-name { display: block; font-family: var(--font-display); font-size: 1.15rem; color: #fff; font-weight: 500; margin-bottom: 2px; }
.listing-card-overlay .listing-loc { font-size: 13px; color: rgba(245,242,234,0.72); margin: 0 0 10px; }
.listing-card-overlay .listing-specs {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-size: 12px; color: rgba(245,242,234,0.8);
  border-top: none; padding-top: 0; margin: 0 0 12px;
}
.listing-card-overlay .listing-price { font-family: var(--font-display); font-size: 1.3rem; color: #fff; margin-bottom: 10px; }
.listing-card-overlay .listing-price small { font-family: var(--font-body); font-size: 12px; color: rgba(245,242,234,0.65); font-weight: 400; margin-left: 6px; }
.listing-card-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-label); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold-soft); transition: color 0.2s ease;
}
.listing-card-cta svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
/* Listing agent in the bottom-right corner, level with "View Details". */
.listing-card-agent {
  position: absolute; right: 18px; bottom: 13px;
  display: flex; align-items: center; gap: 8px;
  max-width: 55%;
}
.listing-card-agent .team-avatar { width: 28px; height: 28px; font-size: 10.5px; margin: 0; flex-shrink: 0; }
.listing-card-agent span { font-size: 11.5px; line-height: 1.2; color: rgba(245,242,234,0.88); text-align: right; }
/* The card's full-bleed photo rules (.listing-card-link img, and its hover
   zoom) also match a headshot <img> in here — turn them off for it. */
.listing-card-agent img.team-avatar,
.listing-card:hover .listing-card-agent img.team-avatar {
  position: static; inset: auto; transform: none; transition: none; filter: none;
}
/* Photo browsing on the card: stacked slides fade between each other. */
.listing-card.has-carousel .card-slide { opacity: 0; transition: opacity 0.3s ease, transform 0.5s ease; }
.listing-card.has-carousel .card-slide.is-active { opacity: 1; }
.card-slide-end {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 0 24px 90px; text-align: center;
  background: radial-gradient(circle at 50% 40%, #2a2d22 0%, #14160f 75%);
}
.card-end-title { font-family: var(--font-display); font-size: 1.35rem; color: #fff; }
.card-end-btn {
  font-family: var(--font-label); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold-soft); border: 1px solid var(--gold-soft); border-radius: 999px; padding: 9px 18px;
}
.listing-card:hover .card-end-btn { background: var(--gold-soft); color: #14160f; }
.card-nav {
  position: absolute; top: 36%; z-index: 4; transform: translateY(-50%);
  width: 36px; height: 36px; padding: 0 0 3px; border: 0; border-radius: 50%;
  background: rgba(12,13,10,0.55); color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s ease, background 0.2s ease;
}
.card-nav[hidden] { display: none; }
.card-nav-prev { left: 10px; }
.card-nav-next { right: 10px; }
.card-nav:hover, .card-nav:focus-visible { background: rgba(12,13,10,0.85); }
.listing-card:hover .card-nav, .card-nav:focus-visible { opacity: 1; }
@media (hover: none) { .card-nav { opacity: 0.9; } }
.card-dots {
  position: absolute; top: 48px; left: 50%; transform: translateX(-50%); z-index: 4;
  display: flex; gap: 5px; pointer-events: none;
}
.card-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.45); box-shadow: 0 0 3px rgba(0,0,0,0.5); }
.card-dots i.is-active { background: #fff; }
.listing-card:hover .listing-card-cta { color: #fff; }
.listing-card:hover .listing-card-cta svg { transform: translateX(3px); }
.listing-tag {
  /* z-index needed because the photo below has a CSS filter, which gives
     it its own stacking context — without this, the (later-in-DOM) photo
     paints over this absolutely-positioned badge despite being static. */
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(12,13,10,0.85);
  color: var(--gold-soft);
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  border-radius: 3px;
  text-transform: uppercase;
}
/* Listing status badge — every listing gets one, including Active. */
.status-tag {
  /* The save button already owns the top-right corner on cards, so this
     sits top-left — where the category tag used to be before it was
     removed from listing photos (still used behind the scenes for
     filtering, and still shown on article cards, which is why the
     .listing-tag CSS rule itself is still here). */
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: 3px;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-tag.status-active { background: rgba(92,122,79,0.92); color: #fff; }
.status-tag.status-under-contract { background: rgba(224,197,104,0.95); color: #201f18; }
.status-tag.status-sold { background: rgba(165,64,42,0.95); color: #fff; }
.status-tag.status-coming-soon { background: rgba(12,13,10,0.85); color: var(--gold-soft); border: 1px solid var(--gold-soft); }
.status-tag.status-new { background: var(--rust); color: #fff; }
.status-tag.status-open-house { background: rgba(58,90,120,0.94); color: #fff; }

/* Wrapper for the overlay case (photo cards, property hero) so the status
   badge and the "New" tag sit side by side instead of stacking on top of
   each other — both .status-tag children go back to static positioning
   and let the row itself carry the absolute placement. */
.status-tag-row { position: absolute; top: 14px; left: 14px; right: 60px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.status-tag-row .status-tag { position: static; top: auto; left: auto; }

/* Inline variant — property page header and map-search's compact list
   cards, where the badge sits in normal text flow instead of overlaid
   on a photo. */
.status-tag-inline {
  position: static;
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  font-size: 10px;
  padding: 3px 9px;
}

.listing-card.cta-card {
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-soft) 100%);
  padding: 40px 28px;
  gap: 18px;
}
.listing-card.cta-card h3 { font-size: 1.3rem; margin-bottom: 6px; }

/* ---------- Articles ---------- */

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.article-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.article-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2); }
.article-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; filter: saturate(0.86) contrast(1.05) sepia(0.08); }
.article-card:hover .article-media img { transform: scale(1.06); }
.article-card .listing-tag { background: rgba(12,13,10,0.85); }
.article-card-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article-date { font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); }
.article-card-title { font-family: var(--font-display); font-size: 1.1rem; color: var(--text); font-weight: 500; line-height: 1.35; }
.article-excerpt { font-size: 13.5px; color: var(--text-muted); flex: 1; }
.article-byline {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-faint);
  border-top: 1px solid var(--line); padding-top: 10px; margin-top: auto;
}
.article-byline .team-avatar { width: 24px; height: 24px; font-size: 10px; margin-bottom: 0; }

/* Article detail page — reuses .guide-section's h2/p/ul/li styling, since
   both are long-form reading content, plus the extra elements markdown
   output produces that the hand-written guide pages don't use. */
.article-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-faint); margin-bottom: 28px;
}
.article-meta strong { color: var(--text-muted); font-weight: 600; }
.article-meta .team-avatar { width: 34px; height: 34px; font-size: 13px; margin-bottom: 0; }
.article-hero { border-radius: var(--radius); overflow: hidden; margin-bottom: 36px; border: 1px solid var(--line); }
.article-hero img { width: 100%; aspect-ratio: 16/9; object-fit: cover; filter: saturate(0.86) contrast(1.05) sepia(0.08); }
.article-body h3 { font-size: 1.25rem; margin: 32px 0 14px; }
.article-body a { color: var(--gold-soft); }
.article-body a:hover { color: var(--text); }
.article-body strong { color: var(--text); }
.article-body blockquote {
  margin: 24px 0; padding: 4px 22px;
  border-left: 3px solid var(--rust);
  color: var(--text-muted);
  font-style: italic;
}
.article-body ol { padding-left: 20px; }
.article-body ol li { color: var(--text-muted); font-size: 15px; margin-bottom: 8px; max-width: 90ch; }

@media (max-width: 900px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .article-grid { grid-template-columns: 1fr; }
}

/* Value props */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 48px;
}
/* A 2-card .value-grid (e.g. the homepage's "Two Practices, One
   Brokerage") — a plain inline grid-template-columns override would beat
   the responsive rules below at every width, including mobile, and never
   collapse to a single column. */
.value-grid-two { grid-template-columns: 1fr 1fr; margin-top: 20px; }
.value-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 30px 26px;
  border-radius: var(--radius);
}
.value-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  margin-bottom: 20px;
  color: var(--gold-soft);
}
.value-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.value-card p { font-size: 14px; margin: 0; }

.why-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.why-layout .copy p { font-size: 15.5px; }
/* Narrow heading column, wide text column (Land & Energy page) */
@media (min-width: 900px) {
  .why-layout.why-wide { grid-template-columns: 1fr 2fr; gap: 56px; }
  .why-layout.why-wide .copy p { max-width: none; }
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
/* For a grid whose card count varies (e.g. land-advisory.html's CMS-driven
   team list) — flexbox centers a leftover card in the last row instead of
   leaving it stuck at the start the way grid would. */
.team-grid-center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.team-grid-center .team-card {
  flex: 0 1 320px;
  max-width: 360px;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: left;
}
.team-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold-soft);
  margin-bottom: 16px;
  border: 1px solid var(--line-strong);
}
.team-avatar-photo { object-fit: cover; border: 1px solid var(--line-strong); }

/* An agent photo that flips over to a second one — see flipAvatarHTML() in
   main.js. The wrapper keeps the .team-avatar class so the existing sizes
   (agents grid, profile page) apply unchanged; it just drops the flex
   centering/border/background so the two faces fill it edge to edge. */
.flip-photo {
  display: block;
  position: relative;
  padding: 0;
  border: none;
  background: none;
  perspective: 1000px;
}
.flip-photo-inner {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.flip-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%; /* favor the top of the photo, where faces are */
  border-radius: inherit;
  border: 1px solid var(--line-strong);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.flip-back { transform: rotateY(180deg); }
.flip-photo[data-tap-flip] { cursor: pointer; }
.flip-photo[data-tap-flip]:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }
.flip-photo.is-flipped .flip-photo-inner { transform: rotateY(180deg); }
@media (hover: hover) {
  .flip-photo:hover .flip-photo-inner { transform: rotateY(180deg); }
}
@media (prefers-reduced-motion: reduce) {
  .flip-photo-inner { transition: none; }
}
.team-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.team-card h3 a:hover { color: var(--gold-soft); }
.team-role { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 12px; }
.team-card p { font-size: 13.5px; }
/* Phone and email are the point of these cards (there's no bio), so they're
   full-size and bright rather than small muted text: the phone number is
   the standout, the email sits under it. */
.team-contact { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.team-contact a { color: var(--text); font-size: 14.5px; overflow-wrap: anywhere; }
.team-contact a:first-child { color: var(--gold-soft); font-size: 17px; font-weight: 600; letter-spacing: 0.01em; }
.team-contact a:hover { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }

/* Service areas */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.area-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.area-card .eyebrow { margin-bottom: 10px; font-size: 11px; }
.area-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.area-card .area-phone { color: var(--gold-soft); font-family: var(--font-label); font-weight: 600; letter-spacing: 0.04em; margin-bottom: 14px; display: block; }
.area-card .area-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.area-card .area-tags span,
.tag-list span {
  font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 12px; color: var(--text-muted);
}
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }

/* County hub cards */
.county-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.county-card:hover { border-color: var(--gold-soft); transform: translateY(-3px); }
.county-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.county-card .county-count { font-family: var(--font-label); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 12px; display: block; }
.county-card p { font-size: 14px; margin-bottom: 14px; }
.county-card .area-cta { font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-soft); font-weight: 600; }

.region-block { margin-bottom: 32px; }
.region-block h3 { font-size: 1rem; color: var(--gold-soft); margin-bottom: 12px; font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.06em; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, #241408 0%, #1a1c14 60%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); max-width: 720px; margin: 0 auto 16px; }
.cta-band p { max-width: 560px; margin: 0 auto 32px; }
.cta-band .hero-actions { justify-content: center; }

/* Footer */
.site-footer { background: #080906; border-top: 1px solid var(--line); padding: 72px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.footer-brand img { height: 52px; margin-bottom: 16px; border-radius: 6px; background: #f4f1e8; padding: 4px 8px; }
.footer-brand p { font-size: 14px; max-width: 280px; }
.footer-col h4 {
  color: var(--gold-soft); margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
/* The Explore column (second one, after the logo/blurb) has about a dozen
   links, so it runs in two columns, filled top-to-bottom, to keep the footer
   from getting so tall. */
.footer-grid > .footer-col:nth-child(2) ul { display: block; columns: 2; column-gap: 32px; }
.footer-grid > .footer-col:nth-child(2) li { break-inside: avoid; margin-bottom: 11px; }
.footer-col a, .footer-col span { font-size: 14px; color: var(--text-muted); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: 12.5px; color: var(--text-faint); flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: var(--text-faint); }
.footer-bottom a:hover { color: var(--gold-soft); }
.footer-legal-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* Page header (interior pages) */
.page-header {
  /* The header is position: sticky (in the flow), not fixed, so the title
     banner doesn't need extra top padding to clear it. */
  padding: 64px 0 36px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.page-header::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(155deg, rgba(165,64,42,0.32) 0%, rgba(58,46,16,0.22) 50%, transparent 100%);
  mix-blend-mode: color;
}
.page-header::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,9,6,0.75), rgba(8,9,6,0.92));
}
.page-header .container { position: relative; z-index: 2; }
/* Photo-less variant: just the breadcrumb + title, for pages where the
   content (e.g. the MLS map) should start high up. .site-header is sticky and
   already takes its own space, so no big top padding is needed. */
.page-header-plain {
  background-image: none !important;
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--line);
}
.page-header-plain::before,
.page-header-plain::after { display: none; }
.page-header h1 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
@media (max-width: 820px) {
  .page-header { padding: 44px 0 24px; }
}
.breadcrumb { font-size: 13px; color: var(--text-faint); margin-bottom: 14px; letter-spacing: 0.05em; }
.breadcrumb a:hover { color: var(--gold-soft); }

/* "Scroll down" hint — only ever shown on .page-header-mobile-compact
   pages on mobile (see the 760px breakpoint below); hidden everywhere
   else by default. Fixed to the bottom of the viewport (not the header)
   so it stays visible regardless of where the header ends up. */
.scroll-hint { display: none; }
@keyframes scroll-hint-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
@keyframes scroll-hint-flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Centered county-page header — breadcrumb, title, and search bar all
   centered instead of the default left alignment. */
.page-header.is-centered .container { text-align: center; }
.page-header.is-centered .hero-search,
.page-header.is-centered .hero-search-map {
  margin-left: auto;
  margin-right: auto;
}

/* Filters (listings page) */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 24px 0; margin-bottom: 8px;
}
.filter-btn {
  font-family: var(--font-label);
  font-size: 14.5px; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-muted);
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover { color: var(--text); border-color: var(--gold-soft); }
.filter-btn.active { background: var(--rust); color: #fff; border-color: var(--rust); }

/* Two-tier filter bar: land types (primary) vs residential/commercial
   (secondary) — same control, but reads as a hierarchy, not five equal
   options, matching how the rest of the site weights the two practices. */
.filter-divider {
  width: 1px;
  align-self: stretch;
  background: var(--line-strong);
  margin: 4px 4px;
}
.filter-btn-secondary {
  opacity: 0.72;
  font-size: 13px;
  padding: 10px 19px;
}
.filter-btn-secondary:hover { opacity: 1; }
.filter-btn-secondary.active { opacity: 1; background: var(--surface-2); color: var(--text); border-color: var(--line-strong); }
/* The "Search All MLS" pill is an <a>, not a <button> — same look. */
.filter-btn-link { display: inline-block; text-decoration: none; line-height: normal; }

/* Mobile stand-in for .filter-bar — a single select instead of several
   rows of pills. Hidden by default (desktop/tablet keep the pills); see
   the 600px breakpoint below for the swap. */
.filter-select-wrap { display: none; }
.filter-select-wrap label { display: block; margin-bottom: 6px; font-size: 11.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }

.mobile-search-wrap { display: none; }
@media (max-width: 600px) {
  .filter-bar { display: none; }
  .filter-select-wrap { display: block; margin: 14px 0; }
  .mobile-search-wrap { display: block; margin: 0 0 14px; }
}

.results-count { color: var(--text-faint); font-size: 14px; margin-bottom: 28px; }

/* Contact page */
.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; }
/* "Send A Message" on a property page links straight to #form-heading (skips
   past the office-info cards, which sit first in DOM order and would
   otherwise be all a mobile visitor sees after the jump) — this keeps the
   sticky header from covering it when the browser jumps to the anchor. */
#form-heading { scroll-margin-top: 140px; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 20px;
}
.contact-card h3 { font-size: 1rem; margin-bottom: 12px; }
.contact-card p { font-size: 14.5px; margin-bottom: 6px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; }
input, select, textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 13px 14px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14.5px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-soft); }
textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 12.5px; color: var(--text-faint); margin-top: 14px; }
.sms-consent { display: grid; gap: 12px; }
.consent-row { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; color: var(--text-muted); font-weight: 400; text-transform: none; letter-spacing: normal; cursor: pointer; }
.consent-row input[type="checkbox"] { width: 18px; height: 18px; min-width: 18px; margin: 2px 0 0; accent-color: var(--gold); cursor: pointer; }
.consent-row a { color: var(--gold-soft); text-decoration: underline; }

/* Data Center Land Guide (data-center-land-guide.html) */
.dc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 20px 0; }
.dc-grid .value-card, .deal-grid .value-card { height: 100%; }
.deal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 20px 0; }
.dc-steps { padding-left: 22px; display: grid; gap: 12px; font-size: 15.5px; max-width: 92ch; }
.dc-calc-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 26px; margin: 24px 0; }
.dc-calc-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.calc-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin: 18px 0; }
.calc-fields label { display: block; margin-bottom: 6px; }
.calc-check { grid-column: 1 / -1; }
.calc-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 18px 0; }
.calc-stat { background: var(--bg, #0c0d0a); border: 1px solid var(--line-strong, var(--line)); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.calc-stat span { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.calc-stat strong { font-size: 1.35rem; color: var(--gold-soft); font-family: var(--font-display, inherit); }
.calc-stat em { font-style: normal; font-size: 12.5px; color: var(--text-faint); }
.calc-error { color: var(--rust); font-size: 14px; grid-column: 1 / -1; margin: 0; }
.calc-example { font-size: 14px; color: var(--text-muted); margin: 14px 0; }
.calc-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0 0; }
.calc-table caption { text-align: left; font-size: 12.5px; color: var(--text-faint); padding-bottom: 8px; }
.calc-table th, .calc-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.calc-table th { color: var(--gold-soft); font-weight: 600; }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0 18px; }
.faq-item summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style-position: outside; }
.faq-item[open] summary { color: var(--gold-soft); }
.faq-item p { margin: 0 0 16px; font-size: 15px; }
.glossary { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0 0 24px; }
.glossary dt { font-weight: 600; color: var(--gold-soft); margin-top: 14px; }
.glossary dd { margin: 4px 0 0; font-size: 15px; color: var(--text-muted); max-width: 92ch; }
/* Split call-to-action bar: copy on the left, one strong button on the right */
.cta-split { background: linear-gradient(120deg, #241408 0%, #1a1c14 60%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 64px 0; }
.cta-split-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.cta-split-copy { max-width: 680px; }
.cta-split-copy h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin: 6px 0 14px; }
.cta-split-copy p { margin: 0; color: var(--text-muted); font-size: 15.5px; }
.cta-split-action { display: flex; flex-direction: column; align-items: center; gap: 12px; flex-shrink: 0; }
.cta-split .btn-lg { padding: 18px 40px; font-size: 15px; box-shadow: 0 10px 30px rgba(165, 64, 42, 0.35); }
.cta-split-phone { font-size: 13.5px; color: var(--gold-soft); letter-spacing: 0.02em; }
.cta-split-phone:hover { text-decoration: underline; }
.cta-inline { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--surface-2); border: 1px solid var(--line-strong); border-left: 3px solid var(--rust); border-radius: 10px; padding: 20px 24px; margin: 28px 0; }
.cta-inline strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.cta-inline span { font-size: 14px; color: var(--text-muted); }
.cta-inline .btn { flex-shrink: 0; }
@media (max-width: 820px) {
  .cta-split { padding: 48px 0; }
  .cta-split-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .cta-split-action { width: 100%; align-items: stretch; text-align: center; }
  .cta-inline { flex-direction: column; align-items: flex-start; }
  .cta-inline .btn { width: 100%; }
}
@media (max-width: 560px) {
  .dc-calc-card { padding: 18px; }
  .calc-table { font-size: 13px; }
  .calc-table th, .calc-table td { padding: 6px 6px; }
}

/* Star rating picker (leave-a-review.html) — five radios styled as stars.
   DOM order is 5,4,3,2,1 with row-reverse so the visual order reads 1..5
   left to right, which makes the ":checked ~ label" / ":hover ~ label"
   general-sibling trick fill in every star at-or-below the chosen one. */
.star-picker { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 6px; }
.star-picker input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.star-picker label {
  font-size: 34px;
  line-height: 1;
  color: var(--line-strong);
  cursor: pointer;
  transition: color 0.1s ease;
}
.star-picker input:checked ~ label,
.star-picker label:hover,
.star-picker label:hover ~ label {
  color: var(--gold-soft);
}

/* Honeypot field on the review form — off-screen and out of tab order for
   real visitors, but present enough in the DOM that a form-filling bot
   still finds and fills it. */
.visually-hidden-field {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Client Reviews (agent.html) */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.star-rating { color: var(--gold-soft); font-size: 15px; letter-spacing: 2px; }
.review-text { font-family: var(--font-display); font-style: italic; font-size: 17px; margin: 12px 0; color: var(--text); }
.review-author { font-size: 13px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
/* Client Reviews page (reviews.html) */
.review-agent { margin-top: 10px; font-size: 13px; color: var(--text-muted); }
.review-agent a { color: var(--gold-soft); }
.reviews-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.reviews-summary { display: flex; align-items: center; gap: 16px; }
.reviews-summary[hidden] { display: none; }
.reviews-avg { font-family: var(--font-display); font-size: 3rem; line-height: 1; color: #fff; }
.reviews-avg-meta { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--text-muted); }
.reviews-avg-meta .star-rating { font-size: 20px; }
.reviews-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.reviews-filter { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.reviews-filter[hidden], .reviews-empty[hidden], .reviews-widget-wrap[hidden] { display: none; }
.reviews-filter label { margin: 0; white-space: nowrap; }
.reviews-filter select { max-width: 320px; }
.reviews-empty { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 40px 28px; text-align: center; max-width: 720px; margin: 20px auto; }
.reviews-empty h2 { font-size: 1.6rem; margin-bottom: 10px; }
.reviews-empty p { margin: 0 auto 20px; max-width: 52ch; }
.reviews-widget-wrap { margin-top: 56px; }
.reviews-widget-wrap h2 { font-size: 1.6rem; margin-bottom: 20px; }
/* Property page: on-page inquiry form + phone action bar */
#inquiry { scroll-margin-top: 110px; }
.inquiry-section { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.inquiry-section h2 { margin-bottom: 8px; }
.inquiry-section > p { margin: 0 0 20px; }
.mobile-action-bar { display: none; }
@media (max-width: 820px) {
  .mobile-action-bar {
    display: flex; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    padding: 10px 84px 10px 12px; /* right side left clear for the chat bubble */
    background: var(--bg-soft); border-top: 1px solid var(--line-strong);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.35);
  }
  .mobile-action-bar .btn { flex: 1 1 0; padding: 12px 8px; font-size: 13px; }
  body.has-mobile-action-bar { padding-bottom: 76px; }
  .inquiry-section { padding: 20px; }
}
@media (max-width: 560px) {
  .reviews-actions .btn { flex: 1 1 100%; }
  .reviews-filter { flex-direction: column; align-items: stretch; gap: 6px; }
  .reviews-filter select { max-width: none; }
}

/* Agents page */
.agents-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
/* Full headshot instead of the small circular initials/photo used
   elsewhere (article bylines, etc.) — this grid is all about the people. */
.agents-grid .team-card .team-avatar {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  font-size: 2.6rem;
  margin-bottom: 16px;
}

/* Property detail page */
/* minmax(0, …) — not just 1.7fr 1fr — stops the classic grid-blowout bug: a
   grid item's default min-width is auto, which can inflate to an oversized
   child's intrinsic content size instead of shrinking to fit the track. Hit
   this for real with a listing whose main photo was uploaded at its full
   camera resolution (~6000px wide, no resizing) — the left column (and the
   full-width hero photo/boundary map inside it) stretched to match the raw
   image's width instead of the column's actual space, pushing the whole
   page into horizontal scroll. minmax(0, …) gives the track a floor of 0
   instead of "however wide my widest child wants to be." */
.property-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 48px; align-items: start; }
/* Keeps the agent card (Call/Text/Send Message) in view while the much
   longer description column scrolls past it, and stops on its own once the
   grid row (the left column) runs out, so it never floats over the footer.
   It's pinned exactly where it already sits on the page: --aside-top is set
   by property.html to the layout's own top edge, so there is no nudge when
   scrolling starts (pinning it any higher makes it slide up as you scroll).
   The 110px fallback only applies if that script hasn't run. max-height +
   its own scrollbar covers a card taller than the space below the pin
   (short laptop screens, co-listed properties with two cards). Turned off
   on the stacked single-column mobile layout below. */
.property-layout aside {
  position: sticky;
  top: var(--aside-top, 110px);
  max-height: calc(100vh - var(--aside-top, 110px) - 20px);
  overflow-y: auto;
}
.property-media { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-bottom: 12px; }
.property-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; filter: saturate(0.86) contrast(1.05) sepia(0.08); cursor: zoom-in; }
.property-media .save-btn { top: 16px; right: 16px; width: 40px; height: 40px; font-size: 18px; }
.property-media .status-tag { top: 16px; right: auto; left: 16px; font-size: 12px; padding: 7px 14px; }
.property-media .status-tag-row { top: 16px; left: 16px; right: 66px; }
.property-media .status-tag-row .status-tag { top: auto; left: auto; }
.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(12, 13, 10, 0.55); border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.hero-nav:hover { background: rgba(12, 13, 10, 0.85); }
.hero-nav-prev { left: 14px; }
.hero-nav-next { right: 14px; }

.property-thumbs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 32px; padding-bottom: 2px; }
.property-thumbs .property-thumb {
  flex: 0 0 auto; width: 84px; height: 60px; padding: 0; border-radius: 6px; overflow: hidden;
  border: 2px solid transparent; opacity: 0.6; cursor: pointer; background: none;
}
.property-thumbs .property-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.86) contrast(1.05) sepia(0.08); }
.property-thumbs .property-thumb:hover { opacity: 0.85; }
.property-thumbs .property-thumb.is-active { border-color: var(--gold-soft); opacity: 1; }

.photo-lightbox {
  position: fixed; inset: 0; z-index: 1000; background: rgba(10, 10, 10, 0.94);
  display: flex; align-items: center; justify-content: center; padding: 40px;
}
.photo-lightbox[hidden] { display: none; }
.photo-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.photo-lightbox-close {
  position: absolute; top: 20px; right: 24px; background: none; border: none; color: #fff;
  font-size: 34px; line-height: 1; cursor: pointer; opacity: 0.8;
}
.photo-lightbox-close:hover { opacity: 1; }
.photo-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25); color: #fff; width: 48px; height: 48px; border-radius: 50%;
  font-size: 26px; line-height: 1; cursor: pointer;
}
.photo-lightbox-nav:hover { background: rgba(255, 255, 255, 0.18); }
.photo-lightbox-prev { left: 20px; }
.photo-lightbox-next { right: 20px; }
.photo-lightbox-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: var(--text-faint); font-size: 13px; }

.highlight-list { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 10px; }
.highlight-list li { position: relative; padding-left: 26px; font-size: 15.5px; color: var(--text-muted); }
.highlight-list li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--rust);
}

.property-map-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.property-map-head h2 { margin-bottom: 0; }
.property-map-head a { font-size: 13.5px; font-weight: 600; color: var(--gold-soft); white-space: nowrap; }
.property-map-head a:hover { color: var(--text); }
.property-map-intro { font-size: 14.5px; color: var(--text-muted); max-width: 62ch; margin-bottom: 14px; }

/* Land id / Aerial / Topo / Street switcher — sits above the map itself
   (rather than overlaid on it) so it doesn't collide with Land id's own
   in-map layer controls when that view is active. */
.property-map-toggle { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.property-map-toggle .basemap-btn {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 16px;
}
.property-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin-bottom: 8px; }
.property-title-row h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 6px; }
.property-loc { color: var(--text-faint); font-size: 15px; margin-bottom: 24px; }
.property-price { font-family: var(--font-display); font-size: 2rem; color: #fff; white-space: nowrap; }
.property-price small { display: block; font-family: var(--font-body); font-size: 13px; color: var(--text-faint); font-weight: 400; margin-top: 4px; }

.spec-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
}
.spec-strip div { background: var(--surface); padding: 20px; text-align: center; }
.spec-strip strong { display: block; font-family: var(--font-display); font-size: 1.05rem; color: #fff; overflow-wrap: break-word; }
.spec-strip span { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }

.property-section { margin-bottom: 40px; }
.property-section h2 { font-size: 1.2rem; margin-bottom: 14px; }

/* Description — the one section meant to read like the brochure's own
   "PROPERTY OVERVIEW" copy, not another plain field like Location or
   Documents, so it gets a card of its own instead of sitting flush with
   the page: a rust rule down the left (same device the brochure's own
   Property Overview label uses, just as a bar here instead of a label,
   since the page already has a "Description" heading of its own), a
   slightly raised surface and larger text to read like the lede of a
   feature, not a form field. (The big drop cap was removed: it looked odd on
   short descriptions and on ones starting with a number.) */
.property-description {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #1d1e17 0%, var(--surface) 55%);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 38px 42px 34px;
}
.property-description .desc-quote {
  position: absolute; top: -6px; right: 26px;
  font-family: var(--font-display); font-size: 9rem; line-height: 1;
  color: var(--gold-soft); opacity: 0.09; pointer-events: none; user-select: none;
}
.property-description .eyebrow { margin-bottom: 10px; }
.property-description h2 { color: #fff; font-size: 1.6rem; margin-bottom: 22px; }
.property-description .desc-body { position: relative; max-width: 70ch; }
/* Serif (display font) for the headline and opening paragraph only; the rest
   of the description is set in the clean body sans so long text stays easy
   to read. */
.property-section.property-description p { font-family: var(--font-body); font-size: 17px; line-height: 1.85; color: var(--text-muted); margin: 0 0 1.15em; }
.property-description p:last-child { margin-bottom: 0; }
.property-section.property-description .desc-headline { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.4; color: var(--gold-soft); margin-bottom: 14px; }
.property-section.property-description .desc-lede {
  font-family: var(--font-display); font-size: 1.3rem; line-height: 1.6; color: #fff;
  padding-bottom: 1.1em; margin-bottom: 1.2em; border-bottom: 1px solid var(--line);
}
/* Long descriptions start collapsed behind a fade, with Read More. */
.property-description.is-collapsible:not(.is-expanded) .desc-body { max-height: 33em; overflow: hidden; }
.property-description.is-collapsible:not(.is-expanded) .desc-body::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7em;
  background: linear-gradient(180deg, rgba(26,28,20,0) 0%, #1a1c14 92%); pointer-events: none;
}
.desc-toggle {
  margin-top: 18px; background: none; border: 1px solid var(--gold-soft); color: var(--gold-soft);
  font-family: var(--font-label); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 10px 20px; border-radius: 999px; cursor: pointer; transition: background 0.2s ease, color 0.2s ease;
}
.desc-toggle:hover, .desc-toggle:focus-visible { background: var(--gold-soft); color: #14160f; }
@media (max-width: 600px) {
  .property-description { padding: 28px 22px 26px; }
  .property-description h2 { font-size: 1.35rem; }
  .property-section.property-description p { font-size: 16.5px; }
  .property-section.property-description .desc-lede { font-size: 1.15rem; }
  .property-section.property-description .desc-headline { font-size: 1.15rem; }
  .property-description .desc-quote { font-size: 6rem; right: 14px; }
}
.property-section p { font-size: 16.5px; line-height: 1.7; }
@media (max-width: 600px) {
  .property-section p { font-size: 17px; line-height: 1.75; }
}

/* Divider line between every pair of adjacent sections (not before the
   first one), so a run of several stays easy to scan regardless of which
   optional sections are present for a given listing. */
.property-section + .property-section {
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

/* Sits just above an .agent-card — "Listing Agent" / "Co-Listing Agent",
   only really doing anything when both are on screen at once (a co-listed
   property); on the common single-agent case it's a bit of redundant
   context above the name, kept mainly for consistency with the same
   labels in the PDF brochure. */
.agent-card-label { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 6px; text-align: center; }
.agent-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  text-align: center;
}
.agent-card .team-avatar {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  font-size: 2.6rem;
  margin: 0 0 16px;
}
.agent-card h3 { font-size: 1.15rem; margin-bottom: 2px; }
.agent-card .team-role { margin-bottom: 16px; }
.agent-card p { max-width: 32ch; margin-left: auto; margin-right: auto; text-align: center; }
.agent-card .btn { margin-top: 8px; }

/* Portrait photo for the listing sidebar's single-agent card — same
   full-headshot crop as elsewhere, just not full-width, since that was too
   dominant next to a property's own photos. A gold frame + shadow gives it
   a bit of presence at the smaller size instead of just shrinking it. */
.property-layout .agent-card .team-avatar {
  width: 220px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  margin: 0 auto 20px;
  font-size: 2.8rem;
  box-sizing: border-box;
  border: 3px solid var(--gold-soft);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* Compact variant — only used on a co-listed property, where the listing
   agent and co-agent each get their own card plus a shared action box. */
.agent-card--compact {
  padding: 24px;
  margin-bottom: 16px;
  text-align: center;
}
.agent-card-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 14px;
}
.property-layout .agent-card-person .team-avatar {
  width: 170px;
  height: auto;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  margin: 0 auto;
  font-size: 2.2rem;
  flex-shrink: 0;
  box-sizing: border-box;
  border: 2px solid var(--gold-soft);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.agent-card-person h3 { font-size: 1.15rem; margin-bottom: 2px; margin-top: 12px; }
.agent-card-person .team-role { margin-bottom: 0; font-size: 0.85rem; }
.agent-card-actions { display: flex; gap: 10px; }
.agent-card-actions .btn { margin-top: 0; flex: 1; padding: 15px 10px; font-size: 0.85rem; }

.agent-card--compact.agent-actions-box .btn { margin-top: 8px; padding: 16px 30px; }
.agent-card--compact.agent-actions-box .btn:first-child { margin-top: 0; }
.agent-card--compact.agent-actions-box .idx-note { padding-top: 10px; margin-top: 2px; }

/* Agent profile page */
.agent-profile-header {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.agent-profile-avatar.team-avatar {
  width: 280px;
  height: 340px;
  border-radius: var(--radius);
  font-size: 5rem;
  flex-shrink: 0;
}
.agent-profile-info h1 { margin-bottom: 4px; }
@media (max-width: 600px) {
  .agent-profile-avatar.team-avatar { width: 220px; height: 270px; font-size: 3.8rem; }
}

.agent-licensed-in { margin-top: 14px; }
.agent-licensed-label { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; }

.agent-contact-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.agent-contact-panel .btn { padding: 11px 22px; font-size: 13.5px; }
.agent-contact-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 16px;
  font-size: 17px;
  color: var(--text);
}
.agent-contact-detail a:hover { color: var(--gold-soft); }

/* Fixed prev/next arrows, shared by the agent profile and property detail
   pages, so browsing the roster/listings doesn't mean going back to the
   grid between every entry. Hidden on narrow screens, where there isn't
   room for them without overlapping the page content. */
.page-nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.page-nav-btn:hover { background: var(--surface-2); color: #fff; }
.page-nav-prev { left: 20px; }
.page-nav-next { right: 20px; }
@media (max-width: 960px) {
  .page-nav-btn { display: none; }
}
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
}
.video-embed video,
.video-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
/* 3D tour viewer: 16:9 on desktop, but a short letterbox is unusable on a
   phone, so it gets a tall, near-square frame there. */
.tour-embed { margin-bottom: 14px; }
.tour-open { margin: 0 0 40px; }
@media (max-width: 700px) {
  .tour-embed { aspect-ratio: auto; height: min(78vh, 560px); margin-left: -8px; margin-right: -8px; width: calc(100% + 16px); }
  .tour-open .btn { display: block; width: 100%; text-align: center; }
}
/* Narrower cap on the agent bio page's simpler single-column layout —
   property.html's video stays full-width to match its other sections. */
.agent-video { max-width: 720px; }
@media (max-width: 600px) {
  .agent-profile-header { flex-direction: column; align-items: flex-start; }
}

/* Property boundary map — our own traced outline, Aerial/Topo/Street */
.property-boundary-map-wrap { margin-bottom: 10px; }
.property-boundary-map {
  width: 100%;
  height: 600px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.property-boundary-map.basemap-street .leaflet-tile-pane img {
  filter: invert(1) hue-rotate(180deg) brightness(0.95) contrast(0.9) saturate(0.6);
}
@media (max-width: 600px) {
  .property-boundary-map { height: 360px; }
}

/* Land id map embed */
.landid-embed {
  width: 100%;
  height: 600px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 10px;
}
.landid-embed iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 600px) {
  .landid-embed { height: 360px; }
}

/* Property documents */
.document-list { display: flex; flex-wrap: wrap; gap: 12px; }
.document-list .document-btn { font-weight: 600; }

.idx-note {
  font-size: 12.5px;
  color: var(--text-faint);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 4px;
}

/* Land Data cards (rainfall/terrain/soils, looked up once from public GIS
   sources and entered by hand — see admin/config.yml's "landData" field). */
.land-data-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 16px; }
.land-data-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.land-data-card .label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 10px; }
.land-data-card .value { font-family: var(--font-display); font-size: 1.35rem; color: #fff; line-height: 1.25; }
.land-data-card .value.is-long { font-size: 1rem; font-family: var(--font-body); font-weight: 600; color: var(--text); }

@media (max-width: 900px) {
  .property-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .property-layout aside { position: static; max-height: none; overflow: visible; }
  .spec-strip { grid-template-columns: repeat(2, 1fr); }

  /* Stacked layout order: photos, title/price, spec boxes, THEN the agent
     card, then the rest of the sections, with the mortgage calculator last
     (below the map). The left column's wrapper stops being a box
     (display: contents) so its children can be ordered against the agent
     card, which is a sibling of the wrapper in the DOM. Order values:
     0 = photos/title/spec strip (default), 1 = agent, 2 = sections (in
     their DOM order, which ends with the mortgage calculator under the map). */
  .property-layout > div:first-child { display: contents; }
  .property-layout > aside { order: 1; margin-bottom: 40px; }
  .property-layout .property-section { order: 2; }
}

/* ---------- Saved properties (localStorage favorites) ---------- */

.save-btn {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(12,13,10,0.65);
  border: 1px solid rgba(245,242,234,0.25);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.save-btn:hover { border-color: var(--gold-soft); transform: scale(1.06); }
.save-btn.is-saved { background: var(--rust); border-color: var(--rust); }

.saved-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-muted);
}
.saved-link:hover { color: var(--gold-soft); }
.saved-link .saved-count {
  background: var(--rust);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  padding: 1px 7px;
  min-width: 18px;
  text-align: center;
}
.saved-link .saved-count.is-zero { background: transparent; border: 1px solid var(--line-strong); color: var(--text-faint); }

/* ---------- Listings toolbar (sort + count) ---------- */

.listings-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.sort-control { display: flex; align-items: center; gap: 10px; }
.sort-control label { margin: 0; font-size: 11.5px; }
.sort-control select {
  width: auto;
  padding: 9px 32px 9px 14px;
  font-size: 13px;
}

/* ---------- Region chips (clickable service-area cards) ---------- */

.area-card.is-link { cursor: pointer; transition: border-color 0.2s ease, transform 0.2s ease; }
.area-card.is-link:hover { border-color: var(--gold-soft); transform: translateY(-3px); }
.area-card .area-cta { display: inline-block; margin-top: 12px; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-soft); font-weight: 600; }

/* ---------- Financing calculator (Buyer's Guide) ---------- */

.calc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.calc-field { margin-bottom: 18px; }
.calc-field:last-child { margin-bottom: 0; }
.calc-field .calc-value { color: var(--gold-soft); font-weight: 600; }
.calc-result {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.calc-result .amount { font-family: var(--font-display); font-size: 2.4rem; color: #fff; }
.calc-result .amount-label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 6px; }
.calc-breakdown { margin-top: 18px; text-align: left; font-size: 13.5px; color: var(--text-muted); border-top: 1px solid var(--line); padding-top: 14px; }
.calc-breakdown div { display: flex; justify-content: space-between; padding: 4px 0; }
input[type="range"] {
  width: 100%;
  accent-color: var(--rust);
  padding: 0;
  background: transparent;
  border: none;
}
@media (max-width: 760px) {
  .calc-card { grid-template-columns: 1fr; }
}

/* ---------- Map search ---------- */

.map-search-shell {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 900px;
  max-height: 88vh;
}
.map-list-panel {
  overflow-y: auto;
  background: var(--bg-soft);
  border-left: 1px solid var(--line);
}
.map-list-inner { padding: 18px; }
#map-list { display: grid; grid-template-columns: 1fr; gap: 16px; }
.map-panel { position: relative; }
#map-canvas { position: absolute; inset: 0; background: #0c0d0a; }

/* Photo-forward card, one per row in the list panel — sized to match the
   split with the map (see .map-search-shell), which now takes the wider
   left column, leaving a narrower right-hand list of bigger, single-column
   cards instead of the old 2-up grid. */
.map-mini-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.map-mini-card:hover { border-color: var(--line-strong); }
.map-mini-card.is-active { border-color: var(--gold-soft); background: var(--surface-2); }
.map-mini-card img { width: 100%; height: 170px; object-fit: cover; filter: saturate(0.86) contrast(1.05) sepia(0.08); }
.map-mini-card .info { padding: 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.map-mini-card .info-main { min-width: 0; }
.map-mini-card .price { font-family: var(--font-display); color: #fff; font-size: 1.3rem; line-height: 1.2; }
.map-mini-card .price small { font-family: var(--font-body); font-size: 13px; color: var(--text-faint); margin-left: 4px; }
.map-mini-card .name { font-size: 15.5px; font-weight: 600; margin: 6px 0 3px; }
.map-mini-card .loc { font-size: 13px; color: var(--text-faint); }

/* Small agent credit on the right side of each mini-card — avatar +
   name, own column so it doesn't get squeezed by long listing names. */
.map-mini-card-agent {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  width: 60px;
}
.map-mini-card-agent .team-avatar { width: 36px; height: 36px; font-size: 13px; margin-bottom: 0; }
.map-mini-card-agent span { font-size: 10.5px; color: var(--text-faint); line-height: 1.25; }
.map-mini-card-agent span.map-mini-card-agent-label { font-size: 8.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-soft); }

/* Label pins show the price (or acreage, via the top-left toggle) right
   on the pin. Legibility as inventory grows is handled by clustering
   (leaflet.markercluster, set up in map-search.html) collapsing dense
   areas into a single count bubble, rather than by hiding the number
   until you click. */
.map-pin { background: transparent; border: none; }
.map-pin .price-tag {
  position: absolute;
  left: 0; top: 0;
  transform: translate(-50%, -100%);
  margin-top: -6px;
  background: var(--rust);
  color: #fff;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 5px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}
.map-pin .price-tag::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--rust);
}
/* Pin color reflects listing status, same four statuses as the badge
   shown on the listing itself. "Selected" (clicked from the map or the
   list) is a separate white ring layered on top, not a color swap — so
   it stays visible no matter which status color is underneath. */
.map-pin.pin-status-active .price-tag { background: var(--success); }
.map-pin.pin-status-active .price-tag::after { border-top-color: var(--success); }
.map-pin.pin-status-under-contract .price-tag { background: var(--rust); }
.map-pin.pin-status-under-contract .price-tag::after { border-top-color: var(--rust); }
.map-pin.pin-status-sold .price-tag { background: #6b6b63; }
.map-pin.pin-status-sold .price-tag::after { border-top-color: #6b6b63; }
.map-pin.pin-status-coming-soon .price-tag { background: var(--gold-soft); color: #14150f; }
.map-pin.pin-status-coming-soon .price-tag::after { border-top-color: var(--gold-soft); }
.map-pin.is-active .price-tag { box-shadow: 0 0 0 3px #fff, 0 3px 8px rgba(0, 0, 0, 0.45); }

/* Map legend — explains the pin colors above. */
.map-legend {
  position: absolute;
  left: 14px; bottom: 14px;
  z-index: 1001;
  background: rgba(12, 13, 10, 0.88);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.map-legend-item { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--text-muted); white-space: nowrap; }
.map-legend-swatch { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.map-legend-swatch.status-active { background: var(--success); }
.map-legend-swatch.status-under-contract { background: var(--rust); }
.map-legend-swatch.status-sold { background: #6b6b63; }
.map-legend-swatch.status-coming-soon { background: var(--gold-soft); }
@media (max-width: 700px) {
  .map-legend { left: 8px; bottom: 8px; padding: 8px 10px; gap: 4px 10px; }
  .map-legend-item { font-size: 10.5px; }
}

/* Cluster bubbles (leaflet.markercluster), themed to match the pins
   instead of the plugin's default red/orange/yellow circles. */
.map-cluster {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--gold-soft);
  color: #fff;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}

/* Hover tooltip (price + name) */
.map-tooltip {
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: var(--radius) !important;
  font-family: var(--font-body);
  font-size: 12.5px;
  padding: 6px 10px !important;
  box-shadow: var(--shadow-sm);
}
.map-tooltip::before { border-top-color: var(--line-strong) !important; }
.map-tooltip strong { font-family: var(--font-label); color: #fff; margin-right: 6px; }

/* Dark-themed Leaflet popup to match the site (overrides Leaflet defaults) */
.leaflet-popup-content-wrapper { background: var(--surface); color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.leaflet-popup-tip { background: var(--surface); }
.leaflet-popup-content { margin: 0; width: 220px !important; }
.leaflet-container a.leaflet-popup-close-button { color: var(--text-faint); }
.map-popup img { width: 100%; height: 120px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; filter: saturate(0.86) contrast(1.05) sepia(0.08); }
.map-popup .body { padding: 12px 14px; }
.map-popup .price { font-family: var(--font-display); color: #fff; font-size: 1.1rem; }
.map-popup .name { font-size: 13px; font-weight: 600; margin: 2px 0 8px; }
.map-popup a.btn { padding: 8px 0; font-size: 11.5px; }
.boundary-note { font-size: 10.5px; color: var(--text-faint); margin-top: 8px; text-align: center; }
.leaflet-control-attribution { background: rgba(12,13,10,0.75) !important; color: var(--text-faint) !important; }
.leaflet-control-attribution a { color: var(--text-muted) !important; }
.leaflet-control-zoom a { background: var(--surface) !important; color: var(--text) !important; border-color: var(--line) !important; }

/* Basemap toggle (Map / Satellite) — overlaid top-left of the map, our own
   dark pill-button chrome rather than any third-party map UI's styling. */
.basemap-toggle {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 1001;
  display: flex;
  background: rgba(12,13,10,0.88);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  overflow: hidden;
}
.basemap-btn {
  font-family: var(--font-label);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 15px;
  background: transparent;
  color: var(--text-muted);
  border: none;
  cursor: pointer;
}
.basemap-btn.active { background: var(--rust); color: #fff; }

/* Price/Acres label toggle — same pill chrome as the basemap toggle,
   stacked underneath it on the top-right so it doesn't sit over the
   zoom controls in the top-left corner. */
.pin-label-toggle {
  position: absolute;
  top: 58px; right: 14px;
  z-index: 1001;
  font-family: var(--font-label);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 15px;
  background: rgba(12,13,10,0.88);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  cursor: pointer;
}
.pin-label-toggle:hover { border-color: var(--gold-soft); color: var(--gold-soft); }

/* Draw-search-area toggle — same pill chrome, stacked under the other two. */
.draw-search-toggle {
  position: absolute;
  top: 102px; right: 14px;
  z-index: 1001;
  font-family: var(--font-label);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 15px;
  background: rgba(12, 13, 10, 0.88);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  cursor: pointer;
}
.draw-search-toggle:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.draw-search-toggle.active { background: var(--rust); color: #fff; border-color: var(--rust); }

/* Clear-boundary button — only shown once a search area is drawn, stacked
   under the Draw button. Muted rust tint reads as the "undo" action. */
.clear-search-toggle {
  top: 146px;
  color: var(--rust);
  border-color: var(--rust);
}
.clear-search-toggle:hover { background: var(--rust); color: #fff; }

/* Only the "Map" basemap gets the dark CSS grade — satellite imagery is
   left untouched so it reads as real terrain, not tinted. Toggled via a
   class on #map-canvas itself (set in map-search.html's setBasemap()),
   since Leaflet's per-tile className option isn't applied reliably. */
#map-canvas.is-dark-basemap .leaflet-tile-pane img {
  filter: invert(1) hue-rotate(180deg) brightness(0.95) contrast(0.9) saturate(0.6);
}

/* Extra map filters (county / price / acreage) */
.map-extra-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: -8px;
  margin-bottom: 12px;
}
.map-extra-filters select {
  width: auto;
  padding: 9px 30px 9px 12px;
  font-size: 12.5px;
}

@media (max-width: 900px) {
  .map-search-shell { grid-template-columns: 1fr; height: auto; max-height: none; }
  .map-panel { height: 380px; }
  .map-list-panel { border-left: none; border-top: 1px solid var(--line); max-height: 60vh; }
}

/* ---------- Guide content (Buyer's Guide page) ---------- */

.guide-grid { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; }
.guide-toc { position: sticky; top: 110px; }
.guide-toc h4 { font-family: var(--font-label); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 14px; }
.guide-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.guide-toc a { font-size: 13.5px; color: var(--text-muted); }
.guide-toc a:hover { color: var(--text); }
.guide-section { margin-bottom: 56px; scroll-margin-top: 100px; }
.guide-section h2 { font-size: 1.6rem; margin-bottom: 16px; }
.guide-section p { font-size: 15.5px; max-width: 92ch; }
.guide-section ul { padding-left: 20px; }
.guide-section li { color: var(--text-muted); font-size: 15px; margin-bottom: 8px; max-width: 90ch; }
.guide-callout {
  background: var(--surface);
  border-left: 3px solid var(--rust);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  font-size: 14.5px;
  color: var(--text-muted);
  margin: 20px 0;
}
@media (max-width: 900px) {
  .guide-grid { grid-template-columns: 1fr; }
  .guide-toc { position: static; }
}

/* Utility */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .browse-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-grid { grid-template-columns: 1fr; }
  .why-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > .footer-col:nth-child(2) { grid-column: 1 / -1; }
  .agents-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  /* Stacked: put the message form first so a phone visitor who tapped
     "Contact" lands on the form, not on the office-info cards above it. */
  .contact-layout > div:nth-child(2) { order: -1; }
  #form-heading { scroll-margin-top: 90px; }
}

/* The desktop nav (8 links + a CTA button) needs real room — below this
   it starts colliding with the "List Your Property" button well before
   the 760px breakpoint below, so the hamburger takes over earlier than
   the rest of the tablet/mobile layout changes do. */
@media (max-width: 1240px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-cta .btn-outline { display: none; }
}

@media (max-width: 760px) {
  .header-top { display: none; }
  .hero { min-height: 100vh; }
  /* The full-bleed photo + tall padding on .page-header (listings.html's
     "Land & Property Listings" banner, etc.) pushes the actual content
     well below the fold on small screens — enough that some visitors
     never scroll down to it. Opt-in per page via this class: drop the
     photo and its gradients, and shrink the padding to plain breathing
     room around the breadcrumb/title — .site-header is `position:
     sticky`, not fixed, so it already occupies its own space and this
     padding doesn't need to additionally clear it. The `!important` is
     overriding an inline background-image set per-page in HTML (each
     page uses its own hero photo), not fighting another stylesheet
     rule. */
  .page-header-mobile-compact {
    background-image: none !important;
    padding: 20px 0 16px;
  }
  .page-header-mobile-compact::before,
  .page-header-mobile-compact::after {
    display: none;
  }
  /* .section-tight's own 64px top/bottom padding (used broadly site-wide)
     was stacking on top of everything above it, adding back a big chunk
     of the "too much space" that trimming the header alone didn't fix. */
  .section-tight-mobile-compact {
    padding-top: 8px;
    padding-bottom: 40px;
  }
  .page-header-mobile-compact .scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(12, 13, 10, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    color: var(--gold-soft);
    font-size: 22px;
    line-height: 1;
    z-index: 50;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.25s ease;
    animation: scroll-hint-bounce 1.6s ease-in-out infinite, scroll-hint-flash 1.2s ease-in-out infinite;
  }
  /* Faded out once the visitor has actually scrolled — see the scroll
     listener in listings.html. Not needed once they're already doing
     the thing it was nudging them to do. */
  .page-header-mobile-compact .scroll-hint.is-hidden {
    opacity: 0;
    /* The flash keyframe drives opacity every frame and would otherwise
       fight the transition above, so the fade-out never actually finished
       — stop the animations outright while hidden. */
    animation: none;
  }
  .stat-bar { gap: 32px; }
  .browse-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: minmax(0, 1fr); }
  /* Long button labels (e.g. "Explore Land & Energy Advisory") must wrap
     inside a card on a phone instead of forcing the card wider than the
     screen. */
  .area-card .btn { white-space: normal; text-align: center; }
  .team-grid { grid-template-columns: 1fr; }
  .listing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .agents-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8,9,6,0.98);
  display: flex; flex-direction: column;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav.open { transform: translateX(0); }
/* Sticky (not "background: none") so Close stays pinned at the top of the
   visible screen, opaque, while the long link list scrolls underneath it
   instead of scrolling away with the rest. */
.mobile-nav-close { position: sticky; top: 0; align-self: flex-end; background: rgba(8,9,6,0.98); border: 0; color: var(--text); font-size: 28px; cursor: pointer; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 26px; letter-spacing: -0.01em;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.mobile-nav .top-phone { color: var(--gold-soft); margin-top: 20px; font-size: 20px; }
.mobile-nav a.mobile-nav-sub {
  font-family: var(--font-label);
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 0 12px 22px;
  border-bottom: 1px dashed var(--line);
}

/* Land Details table, drive times and "Keep Exploring" links on listing pages. */
.land-details-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.land-details-table th, .land-details-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.land-details-table th { width: 38%; font-family: var(--font-label); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-soft); font-weight: 500; }
.land-details-table td { color: var(--text-muted); }
.land-details-table tr:first-child th, .land-details-table tr:first-child td { border-top: 1px solid var(--line); }
@media (max-width: 560px) { .land-details-table th { width: 42%; padding: 10px 8px; } .land-details-table td { padding: 10px 8px; } }
.drive-times-head { font-size: 1rem; margin: 18px 0 12px; }
.drive-grid { grid-template-columns: repeat(var(--dt-cols, 2), 1fr); margin-bottom: 0; }
@media (max-width: 560px) { .drive-grid { grid-template-columns: repeat(2, 1fr); } }
.drive-grid .land-data-card { padding: 16px 18px; }
.drive-times-note { margin: 10px 0 0; font-size: 12.5px !important; line-height: 1.5 !important; color: var(--text-faint); }
.more-land-section { padding: 36px 0 44px; border-top: 1px solid var(--line); }
.more-land-section h2 { font-size: 1.3rem; margin-bottom: 16px; }
.more-land-links { display: flex; flex-wrap: wrap; gap: 10px; }
.more-land-links a { padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; color: var(--text-muted); transition: color 0.2s ease, border-color 0.2s ease; }
.more-land-links a:hover { color: var(--gold-soft); border-color: var(--gold-soft); }

/* Spec boxes are spread across balanced rows by property.html (60 columns so
   rows of 1-4 boxes all divide evenly). */
.spec-strip.is-balanced { grid-template-columns: repeat(60, 1fr); }

/* MLS page: IDX Broker Quick Search widget, restyled to match the site.
   The widget injects its own #IDX-quicksearch-3797 styles (a 250px box with a
   shadow, floated labels), so these rules use !important to win. */
.idx-search-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px 30px; margin-bottom: 28px; }
.idx-search-panel h2 { font-size: 1.5rem; margin-bottom: 6px; }
.idx-search-panel > p { color: var(--text-muted); font-size: 15.5px; margin: 0 0 22px; }
.idx-search-panel #IDX-quicksearch-3797 { width: 100% !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; background: none !important; padding: 0 !important; }
.idx-search-panel #IDX-quicksearchForm-3797, .idx-search-panel .IDX-quicksearchForm { display: grid !important; grid-template-columns: 1fr 1.5fr 1fr 1fr 0.8fr 0.8fr auto !important; gap: 14px !important; align-items: end !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
/* Property type, then City, then the price/size filters, then Search. */
.idx-search-panel #IDX-qsPtWrap-3797 { order: 1; }
.idx-search-panel #IDX-qsCityListWrap-3797 { order: 2; }
.idx-search-panel #IDX-qsMinPriceWrap-3797 { order: 3; }
.idx-search-panel #IDX-qsMaxPriceWrap-3797 { order: 4; }
.idx-search-panel #IDX-qsMinBedWrap-3797 { order: 5; }
.idx-search-panel #IDX-qsMinBathWrap-3797 { order: 6; }
.idx-search-panel #IDX-qsSubmitWrap-3797 { order: 7; }
.idx-search-panel .IDX-qsFieldWrap { padding: 0 !important; margin: 0 !important; text-align: left !important; }
.idx-search-panel .IDX-qsLabel { display: block !important; float: none !important; margin: 0 0 6px !important; font-family: var(--font-label); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.idx-search-panel .IDX-qsInput { width: 100% !important; box-sizing: border-box; height: 46px; padding: 0 12px; background: var(--bg); color: var(--text); border: 1px solid var(--line-strong); border-radius: 8px; font-family: var(--font-body); font-size: 15px; }
.idx-search-panel .IDX-qsInput:focus { outline: none; border-color: var(--gold-soft); }
.idx-search-panel #IDX-qsSubmitWrap-3797 { margin: 0 !important; }
.idx-search-panel .IDX-qsButtonInput { background: var(--rust); border-color: var(--rust); color: #fff; font-family: var(--font-label); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; cursor: pointer; transition: background 0.2s ease; }
.idx-search-panel .IDX-qsButtonInput:hover { background: var(--rust-hover); }
@media (max-width: 1000px) { .idx-search-panel #IDX-quicksearchForm-3797, .idx-search-panel .IDX-quicksearchForm { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } .idx-search-panel #IDX-qsSubmitWrap-3797 { grid-column: 1 / -1; } }
@media (max-width: 600px) {
  .idx-search-panel { padding: 22px 18px 24px; }
  .idx-search-panel #IDX-quicksearchForm-3797, .idx-search-panel .IDX-quicksearchForm { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .idx-search-panel #IDX-qsSubmitWrap-3797 { grid-column: 1 / -1; }
}

.idx-search-panel #IDX-qsIdxIDWrap-3797 { display: none !important; }
