/* =================================================================
   Homestead — Farm & Ranch Real Estate Template
   Plain CSS3. No frameworks. No build step.

   ┌──────────────────────────────────────────────────────────────┐
   │  TO REBRAND: edit the CSS variables in :root below.           │
   │  Change --barn / --olive to recolor the whole site instantly. │
   └──────────────────────────────────────────────────────────────┘
   ================================================================= */

:root {
  /* ---- Brand colors (edit these to rebrand) ---- */
  --barn: #8a2c20;          /* primary deep barn-red */
  --barn-deep: #5f1d15;     /* darker barn-red for gradients */
  --olive: #6b7333;         /* secondary olive green */
  --olive-deep: #4c5224;    /* darker olive */
  --gold: #c98a1e;          /* warm accent / harvest gold */
  --gold-dark: #a96f12;     /* accent hover */

  /* ---- Neutrals (warm tan / cream / charcoal) ---- */
  --white: #ffffff;
  --cream: #f7f1e6;         /* warm cream background */
  --soft: #f1e9da;          /* soft alternating background */
  --tan: #e7d9c2;           /* warm tan borders/fills */
  --ink: #2c2620;           /* charcoal main text */
  --muted: #7a6f5f;         /* secondary warm-grey text */
  --line: #e3d6c0;          /* borders / dividers */

  /* ---- Typography ---- */
  --font-head: 'Bitter', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* ---- Effects & layout ---- */
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 4px 14px rgba(60, 40, 25, 0.08);
  --shadow-md: 0 14px 36px rgba(60, 40, 25, 0.14);
  --shadow-lg: 0 24px 60px rgba(60, 40, 25, 0.20);
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.18;
  color: var(--barn-deep);
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

/* ============================= LAYOUT HELPERS ============================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }

.section-alt { background: var(--cream); }

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }

.section-sub { color: var(--muted); font-size: 1.05rem; margin: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.accent { color: var(--gold); }

/* ============================= BUTTONS ============================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 13px 28px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    box-shadow 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--barn);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(138, 44, 32, 0.30);
}
.btn-primary:hover { background: var(--barn-deep); }

.btn-light { background: var(--white); color: var(--barn); }
.btn-light:hover { box-shadow: var(--shadow-md); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

/* ============================= HEADER ============================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 241, 230, 0.90);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--barn-deep);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--barn), var(--olive-deep));
  color: var(--white);
}

.logo-text { letter-spacing: -0.02em; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.main-nav ul {
  display: flex;
  gap: 28px;
}

.main-nav a {
  font-weight: 500;
  color: var(--ink);
  font-size: 0.98rem;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}

/* Animated underline on nav links */
.main-nav ul a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.28s var(--ease);
}
.main-nav ul a:hover { color: var(--barn); }
.main-nav ul a:hover::after { width: 100%; }

.nav-cta { padding: 10px 22px; }

/* Hamburger (hidden on desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--barn-deep);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* Hamburger -> X when open */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================= HERO ============================= */
.hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(160deg, var(--barn) 0%, var(--barn-deep) 100%);
  overflow: hidden;
}

.hero.has-photo {
  background:
    linear-gradient(155deg, rgba(60, 22, 16, 0.86) 0%, rgba(40, 35, 18, 0.78) 100%),
    var(--hero-photo) center / cover no-repeat;
}

.hero-inner { position: relative; padding: 112px 0 120px; }

.hero-content { max-width: 760px; }

.hero .eyebrow {
  color: #f3e0bc;
  background: rgba(255, 255, 255, 0.10);
  padding: 6px 14px;
  border-radius: 999px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-bottom: 0.35em;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.18rem;
  max-width: 600px;
  margin-bottom: 34px;
}

/* ---- Search bar ---- */
.search-bar {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 10px;
  background: var(--white);
  padding: 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  align-items: end;
}

.search-field { display: flex; flex-direction: column; text-align: left; }

.search-field label {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 4px 0 4px 12px;
}

.search-field input,
.search-field select {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.search-field input:focus,
.search-field select:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(107, 115, 51, 0.18);
}

.search-submit { height: 48px; align-self: end; }

.search-result {
  margin: 16px 0 0;
  min-height: 1.4em;
  font-weight: 500;
  color: #f6e7c8;
}

/* ============================= LISTINGS ============================= */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.listing-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.listing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.listing-media {
  position: relative;
  height: 210px;
  overflow: hidden;
  background-color: var(--olive-deep);
}

.listing-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.listing-card:hover .listing-media img { transform: scale(1.07); }

/* Tag pills */
.tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--white);
  z-index: 2;
}
.tag-ranch { background: var(--barn); }
.tag-farm { background: var(--olive); }
.tag-homestead { background: var(--gold-dark); }
.tag-recreational { background: var(--olive-deep); }
.tag-sale { background: var(--barn); }

.listing-body { padding: 22px 22px 24px; }

.listing-price {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.55rem;
  color: var(--barn-deep);
  margin-bottom: 4px;
}
.listing-acres { color: var(--olive-deep); font-weight: 700; font-size: 0.92rem; margin-bottom: 4px; font-family: var(--font-head); }

.listing-title { font-size: 1.18rem; margin-bottom: 6px; }

.listing-address { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }

.listing-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.listing-specs li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--ink);
  font-weight: 500;
}

/* ============================= CATEGORIES ============================= */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 0 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--olive);
}
.category-media {
  display: block;
  height: 150px;
  background-color: var(--olive-deep);
  overflow: hidden;
}
.category-media img { width: 100%; height: 100%; object-fit: cover; }
.category-card h3 { font-size: 1.2rem; margin: 18px 0 2px; }
.category-card p { color: var(--muted); margin: 0; font-size: 0.92rem; }

/* ============================= FEATURES ============================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: 1.6rem;
  border-radius: 12px;
  background: var(--soft);
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.15rem; }
.feature-card p { color: var(--muted); margin: 0; font-size: 0.96rem; }

/* ============================= PROCESS ============================= */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.process-step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--olive), var(--olive-deep));
  border-radius: 50%;
  margin-bottom: 16px;
}
.process-step h3 { font-size: 1.12rem; }
.process-step p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ============================= TEAM / AGENTS ============================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 0 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.team-photo {
  width: 100%;
  height: 230px;
  object-fit: cover;
  background-color: var(--soft);
}
.team-card h3 { font-size: 1.15rem; margin: 20px 0 2px; }
.team-role { color: var(--gold-dark); font-weight: 600; font-size: 0.92rem; margin-bottom: 8px; }
.team-meta { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ============================= STATS BAND ============================= */
.stats-band {
  background: linear-gradient(160deg, var(--olive) 0%, var(--olive-deep) 100%);
  color: var(--white);
  padding: 64px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--white);
  line-height: 1;
}
.stat-label {
  color: rgba(255, 255, 255, 0.80);
  font-size: 0.98rem;
  margin-top: 6px;
  display: block;
}

/* ============================= TESTIMONIALS ============================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  margin: 0;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 14px; font-size: 1.05rem; }

.testimonial-card blockquote {
  margin: 0 0 22px;
  font-size: 1.04rem;
  color: var(--ink);
  line-height: 1.7;
}

.testimonial-card figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
}
.t-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background-color: var(--soft);
}
.t-meta { display: flex; flex-direction: column; line-height: 1.3; }
.t-meta strong { color: var(--barn-deep); font-family: var(--font-head); }
.t-meta small { color: var(--muted); }

/* ============================= CTA BAND ============================= */
.cta-band {
  background: linear-gradient(135deg, var(--barn-deep), var(--olive-deep) 90%);
  color: var(--white);
  padding: 84px 0;
}
.cta-inner { text-align: center; max-width: 680px; margin: 0 auto; }
.cta-inner h2 { color: var(--white); font-size: clamp(2rem, 4.5vw, 3rem); }
.cta-inner p { color: rgba(255, 255, 255, 0.88); font-size: 1.12rem; margin-bottom: 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================= FOOTER ============================= */
.site-footer { background: #241c16; color: rgba(255, 255, 255, 0.72); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 68px 24px 48px;
}

.logo-footer { color: var(--white); margin-bottom: 16px; }
.logo-footer .logo-text { color: var(--white); }

.footer-tagline { font-size: 0.95rem; max-width: 320px; }

.social { display: flex; gap: 12px; margin-top: 18px; }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.1rem;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.social a:hover { background: var(--gold-dark); transform: translateY(-3px); }

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px 24px;
  font-size: 0.88rem;
}
.footer-bottom-inner p { margin: 0; }

/* ============================= SCROLL REVEAL ============================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.listings-grid .reveal.is-visible,
.category-grid .reveal.is-visible,
.features-grid .reveal.is-visible,
.process-grid .reveal.is-visible,
.team-grid .reveal.is-visible,
.testimonials-grid .reveal.is-visible { transition-delay: var(--reveal-delay, 0s); }

.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover, .listing-card:hover, .category-card:hover,
  .feature-card:hover, .process-step:hover, .team-card:hover,
  .testimonial-card:hover, .office-card:hover {
    transform: none;
  }
  .listing-card:hover .listing-media img { transform: none; }
}

/* ============================= ACTIVE NAV STATE ============================= */
.main-nav ul a.active { color: var(--barn); font-weight: 600; }
.main-nav ul a.active::after { width: 100%; }
@media (max-width: 768px) {
  .main-nav ul a.active { color: var(--gold-dark); }
}

/* ============================= PAGE BANNER ============================= */
.page-banner {
  position: relative;
  color: var(--white);
  background:
    linear-gradient(155deg, rgba(60, 22, 16, 0.86) 0%, rgba(40, 35, 18, 0.80) 100%),
    var(--banner-photo, none) center / cover no-repeat,
    linear-gradient(160deg, var(--barn) 0%, var(--barn-deep) 100%);
  overflow: hidden;
  padding: 86px 0 72px;
}
.page-banner .container { position: relative; }
.page-banner .eyebrow {
  color: #f3e0bc;
  background: rgba(255, 255, 255, 0.10);
  padding: 6px 14px;
  border-radius: 999px;
}
.page-banner h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  margin: 14px 0 0.3em;
}
.page-banner-sub {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
  max-width: 620px;
  margin: 0 0 22px;
}
.page-banner-compact { padding: 30px 0 26px; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-family: var(--font-head);
  color: rgba(255, 255, 255, 0.72);
}
.breadcrumb a { color: rgba(255, 255, 255, 0.80); transition: color 0.2s var(--ease); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span[aria-current] { color: #f3e0bc; }
.breadcrumb span[aria-hidden] { color: rgba(255, 255, 255, 0.45); }

/* ============================= FILTER BAR (listings) ============================= */
.filter-section { padding-bottom: 48px; }
.filter-bar {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
  gap: 12px;
  background: var(--white);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  align-items: end;
  margin-top: -56px;
  position: relative;
  z-index: 5;
}
.filter-bar .search-submit { height: 48px; }
.search-result-dark { color: var(--muted); }

/* ---- Filter chips (type) ---- */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.chip {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.chip:hover { border-color: var(--olive); transform: translateY(-2px); }
.chip.is-active { background: var(--barn); border-color: var(--barn); color: var(--white); }

/* ---- Listings toolbar (count + sort) ---- */
.listings-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}
.listings-count { margin: 0; color: var(--muted); }
.listings-count strong { color: var(--barn-deep); font-family: var(--font-head); }
.sort-field { display: flex; align-items: center; gap: 10px; }
.sort-field label {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.sort-field select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
}
.sort-field select:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(107, 115, 51, 0.18);
}

a.listing-card { color: inherit; display: block; }

/* Hidden card (filtered out) */
.listing-card.is-hidden { display: none; }
.no-results {
  text-align: center;
  color: var(--muted);
  padding: 30px 0;
  font-size: 1.02rem;
  display: none;
}
.no-results.is-visible-msg { display: block; }

/* ============================= PAGINATION ============================= */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.page-btn:hover { border-color: var(--olive); color: var(--olive-deep); transform: translateY(-2px); }
.page-btn.is-current {
  background: var(--barn);
  border-color: var(--barn);
  color: var(--white);
}
.page-btn.is-current:hover { color: var(--white); transform: none; }
.page-ellipsis { color: var(--muted); padding: 0 4px; }

/* ============================= PROPERTY DETAIL ============================= */
.property-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 26px;
}
.property-status { position: static; display: inline-block; margin-bottom: 12px; }
.property-title { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 6px; }
.property-address { color: var(--muted); font-size: 1.02rem; margin: 0; }
.property-price-box { text-align: right; }
.property-price {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--barn-deep);
  line-height: 1.1;
}
.property-price-note { color: var(--muted); font-size: 0.95rem; }

/* ---- Gallery ---- */
.gallery { margin-bottom: 48px; }
.gallery-main {
  height: clamp(280px, 46vw, 480px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background-color: var(--olive-deep);
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.gallery-thumb {
  height: 86px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  background-color: var(--olive-deep);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { transform: translateY(-3px); }
.gallery-thumb.is-active { border-color: var(--gold); }

/* ---- Property two-column layout ---- */
.property-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}
.property-content { min-width: 0; }

/* ---- Key facts ---- */
.property-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.fact {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
}
.fact-icon { font-size: 1.6rem; display: block; margin-bottom: 8px; }
.fact-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--barn-deep);
}
.fact-label { color: var(--muted); font-size: 0.85rem; }

.property-block { margin-bottom: 40px; }
.property-block h2 { font-size: 1.5rem; margin-bottom: 14px; }
.property-block p { color: var(--muted); }

/* ---- Features list ---- */
.features-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 24px;
}
.features-list li { color: var(--ink); font-weight: 500; }

/* ---- Map placeholder ---- */
.map-placeholder {
  background:
    repeating-linear-gradient(45deg, var(--cream), var(--cream) 18px, var(--soft) 18px, var(--soft) 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
}
.map-pin { font-size: 2.4rem; margin-bottom: 8px; }
.map-placeholder p { margin: 0; font-family: var(--font-head); font-weight: 700; color: var(--barn-deep); }
.map-note { color: var(--muted); font-size: 0.88rem; margin-top: 4px; }

/* ---- Broker contact card (sidebar) ---- */
.property-sidebar { position: sticky; top: 96px; }
.agent-contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-md);
}
.agent-contact-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.agent-contact-head img {
  width: 60px; height: 60px; border-radius: 50%; object-fit: cover;
  background-color: var(--soft); flex-shrink: 0;
}
.agent-contact-head h3 { font-size: 1.15rem; margin: 0; }
.agent-role { color: var(--gold-dark); font-weight: 600; font-size: 0.9rem; margin: 2px 0 0; }
.agent-contact-info {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  margin-bottom: 18px;
}
.agent-contact-info li { display: flex; align-items: center; gap: 10px; color: var(--ink); margin-bottom: 8px; font-size: 0.95rem; }
.agent-contact-info li:last-child { margin-bottom: 0; }

/* ============================= FORMS (contact + lead) ============================= */
.form-field { display: flex; flex-direction: column; text-align: left; margin-bottom: 16px; }
.form-field label {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 6px 2px;
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-field textarea { resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(107, 115, 51, 0.18);
}
.form-field input.invalid,
.form-field textarea.invalid { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.14); }
.field-error { color: #c0392b; font-size: 0.82rem; margin-top: 5px; min-height: 1em; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-submit { margin-top: 4px; }
.form-status { margin: 16px 0 0; font-weight: 500; min-height: 1.4em; }
.form-status.success { color: var(--olive-deep); }
.form-status.error { color: #c0392b; }

/* ---- Contact layout ---- */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.contact-form-wrap h2 { font-size: 1.6rem; margin-bottom: 4px; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.info-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  font-size: 1.5rem;
  border-radius: 12px;
  background: var(--soft);
  margin-bottom: 12px;
}
.info-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.info-card p { margin: 0 0 4px; color: var(--ink); }
.info-card a { color: var(--barn); font-weight: 600; }
.info-card a:hover { text-decoration: underline; }
.info-note { color: var(--muted); font-size: 0.88rem; }

/* ---- Offices ---- */
.offices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.office-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.office-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.office-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: 1.6rem;
  border-radius: 12px;
  background: var(--soft);
  margin-bottom: 14px;
}
.office-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.office-card p { color: var(--muted); margin: 0 0 6px; }

/* ============================= ABOUT PAGE ============================= */
.about-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.about-text h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 14px; }
.about-text p { color: var(--muted); }
.about-text .btn { margin-top: 10px; }
.about-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: var(--olive-deep);
}
.about-visual img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; display: block; }

.features-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ============================= RESPONSIVE ============================= */
@media (max-width: 992px) {
  .listings-grid,
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid,
  .features-grid,
  .process-grid,
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .search-bar { grid-template-columns: 1fr 1fr; }
  .search-submit { grid-column: 1 / -1; }
  .filter-bar { grid-template-columns: 1fr 1fr; margin-top: -48px; }
  .filter-bar .search-submit { grid-column: 1 / -1; }
  .property-layout { grid-template-columns: 1fr; gap: 36px; }
  .property-sidebar { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .offices-grid { grid-template-columns: 1fr; }
  .about-split { grid-template-columns: 1fr; gap: 36px; }
  .features-grid-3 { grid-template-columns: 1fr; }
  .features-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .main-nav {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 12px 24px 24px;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease),
      visibility 0.3s var(--ease);
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .main-nav ul li { border-bottom: 1px solid var(--line); }
  .main-nav ul a { display: block; padding: 14px 4px; }
  .main-nav ul a::after { display: none; }
  .nav-cta { margin-top: 14px; width: 100%; }

  .section { padding: 70px 0; }
  .hero-inner { padding: 80px 0 90px; }
  .footer-bottom-inner { flex-direction: column; }
  .page-banner { padding: 64px 0 56px; }
  .property-facts { grid-template-columns: repeat(2, 1fr); }
  .property-head { flex-direction: column; }
  .property-price-box { text-align: left; }
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .listings-grid,
  .testimonials-grid,
  .category-grid,
  .features-grid,
  .process-grid,
  .team-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .search-bar { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr; margin-top: -40px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .features-list { grid-template-columns: 1fr; }
  .property-facts { grid-template-columns: 1fr 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(2, 1fr); }
  .contact-form-wrap { padding: 24px; }
  .container { padding: 0 18px; }
}
