/*
Theme Name: Seamless Realty
Theme URI: https://seamlessrealty.com
Author: Seamless Realty
Author URI: https://seamlessrealty.com
Description: Modern residential theme for Seamless Realty with HAR.com IDX tools.
Version: 2.7
Requires at least: 6.0
Requires PHP: 7.4
License: Unlicense
Text Domain: seamless-realty
*/

/* ============================================================
   Seamless Commercial — Base Stylesheet
   Reset + design tokens + foundational element styles
   ============================================================ */

@font-face {
  font-family: 'Alex Brush';
  src: local('Alex Brush');
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Safety net: any inline icon svg without a more specific class-based size
   rule falls back to a modest, text-relative size instead of its raw 300x150
   browser default. Any class selector (e.g. .icon svg) outranks this. */
svg {
  width: 1.2em;
  height: 1.2em;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* ============================================================
   Seamless Commercial — Design Tokens & Component Styles
   ============================================================ */

:root,
[data-theme='light'] {
  /* Surfaces */
  --color-bg: #f8f4ea;
  --color-surface: #ffffff;
  --color-surface-2: #f1ead8;
  --color-surface-offset: #ece3cd;
  --color-divider: #e2d8bf;
  --color-border: #ddd0ac;

  /* Text */
  --color-text: #172234;
  --color-text-muted: #59677c;
  --color-text-faint: #93a0b0;
  --color-text-inverse: #f8f4ea;

  /* Brand — Navy */
  --color-navy: #0c2c4d;
  --color-navy-deep: #071a30;
  --color-navy-tint: #e8edf3;

  /* Brand — Gold */
  --color-gold: #bd9433;
  --color-gold-light: #d9bc7f;
  --color-gold-deep: #96721f;
  --color-gold-tint: #f4ecd8;

  /* Brand — Maroon (sparing accent) */
  --color-maroon: #862438;
  --color-maroon-deep: #63182a;
  --color-maroon-tint: #f6e6e9;

  --shadow-sm: 0 1px 3px rgba(11, 27, 48, 0.08), 0 1px 2px rgba(11, 27, 48, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 27, 48, 0.12);
  --shadow-lg: 0 24px 60px rgba(11, 27, 48, 0.18);

  color-scheme: light;
}

[data-theme='dark'] {
  --color-bg: #081a2e;
  --color-surface: #0d2440;
  --color-surface-2: #123151;
  --color-surface-offset: #16375c;
  --color-divider: #23486e;
  --color-border: #2b527a;

  --color-text: #f2ecdb;
  --color-text-muted: #b7c3d3;
  --color-text-faint: #7f8fa3;
  --color-text-inverse: #0c1c30;

  --color-navy: #0c2c4d;
  --color-navy-deep: #050f1c;
  --color-navy-tint: #12304f;

  --color-gold: #d9bc7f;
  --color-gold-light: #ecd9ab;
  --color-gold-deep: #bd9433;
  --color-gold-tint: #22344a;

  --color-maroon: #c15a6c;
  --color-maroon-deep: #862438;
  --color-maroon-tint: #33202a;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);

  color-scheme: dark;
}

/* ---------- Type scale ---------- */
:root {
  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.83rem + 0.2vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.3rem + 1vw, 2.125rem);
  --text-2xl: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  --text-3xl: clamp(2.5rem, 1.3rem + 3.5vw, 4.5rem);
  --text-hero: clamp(2.75rem, 1rem + 5.5vw, 6.25rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-script: 'Alex Brush', 'Brush Script MT', cursive;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1240px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 5vw, var(--space-10));
}

section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-navy);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
[data-theme='dark'] h1,
[data-theme='dark'] h2,
[data-theme='dark'] h3,
[data-theme='dark'] h4 {
  color: var(--color-text);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold-deep);
}
[data-theme='dark'] .eyebrow { color: var(--color-gold); }

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1.5px;
  background: currentColor;
  display: inline-block;
}

p.lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 62ch;
}

.text-muted { color: var(--color-text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.9em 1.8em;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(180deg, var(--color-gold-light), var(--color-gold));
  color: var(--color-navy-deep);
  box-shadow: var(--shadow-sm);
}
.btn-gold:hover { box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-outline:hover { background: rgba(255,255,255,0.08); }
.btn-navy {
  background: var(--color-navy);
  color: #fff;
}
.btn-navy:hover { background: var(--color-navy-deep); }
.btn-sm { padding: 0.65em 1.35em; font-size: var(--text-xs); }

.filter-tab {
  padding: 0.75em 1.6em;
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 600;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.filter-tab:hover { border-color: var(--color-navy); color: var(--color-navy); }
.filter-tab.is-active {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: #fff;
}
[data-theme='dark'] .filter-tab.is-active { background: var(--color-gold); border-color: var(--color-gold); color: var(--color-navy-deep); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 160;
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header.is-hidden { transform: translateY(-100%); }

.topbar {
  background: var(--color-navy-deep);
  color: var(--color-gold-light);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-2);
  gap: var(--space-4);
  flex-wrap: wrap;
}
.topbar a { transition: color 0.2s var(--ease); }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: var(--space-5); align-items: center; }
.topbar-links a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar-links svg { width: 13px; height: 13px; flex-shrink: 0; }
.pin-line { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-2); }
.pin-line svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--color-gold-deep); }
[data-theme='dark'] .pin-line svg { color: var(--color-gold); }

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-4);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  flex-shrink: 0;
}
.brand svg { height: 42px; width: auto; }
@media (max-width: 480px) {
  .brand svg { height: 34px; }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-3), 2vw, var(--space-6));
}
.main-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  padding-block: var(--space-2);
  position: relative;
  transition: color 0.2s var(--ease);
}
.main-nav a:hover, .main-nav a.active { color: var(--color-navy); }
[data-theme='dark'] .main-nav a:hover,
[data-theme='dark'] .main-nav a.active { color: var(--color-gold-light); }
.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--color-gold);
}

.header-actions { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
.mobile-nav-cta { display: none; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-navy);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
[data-theme='dark'] .theme-toggle { color: var(--color-gold-light); }
.theme-toggle:hover { transform: rotate(20deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme='dark'] .theme-toggle .icon-moon { display: none; }
[data-theme='dark'] .theme-toggle .icon-sun { display: block; }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 210;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.nav-toggle svg { width: 20px; height: 20px; color: var(--color-navy); }
[data-theme='dark'] .nav-toggle svg { color: var(--color-gold-light); }
.nav-toggle .icon-close { display: none; }
.nav-toggle.is-open .icon-menu { display: none; }
.nav-toggle.is-open .icon-close { display: block; }

@media (max-width: 920px) {
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    height: 100vh;
    width: min(320px, 85vw);
    background: var(--color-navy-deep);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--space-16)) var(--space-8) var(--space-8);
    gap: var(--space-5);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 200;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { color: var(--color-text-inverse); font-size: var(--text-lg); }
  .main-nav a.active { color: var(--color-gold-light); }
  .nav-toggle { display: inline-flex; }
  .topbar .wrap { justify-content: center; text-align: center; }
  .header-actions .btn-gold.btn-sm { display: none; }
  .mobile-nav-cta { display: inline-flex; margin-top: var(--space-4); }
}

@media (max-width: 420px) {
  .topbar-links span { display: none; }
}

.nav-scrim {
  display: none;
  position: fixed; inset: 0;
  background: rgba(4, 12, 24, 0.55);
  z-index: 150;
}
.nav-scrim.is-open { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: #fdf9ee;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,15,28,0.55) 0%, rgba(5,15,28,0.55) 30%, rgba(5,15,28,0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-block: clamp(var(--space-16), 10vw, var(--space-32)) clamp(var(--space-12), 6vw, var(--space-20));
  max-width: 900px;
}
.hero .eyebrow { color: var(--color-gold-light); }
.hero h1 {
  color: #fdf9ee;
  font-size: var(--text-hero);
  margin-block: var(--space-4) var(--space-5);
}
.hero h1 em { font-style: italic; color: var(--color-gold-light); }
.hero p.lede { color: #e7e2d2; }
.hero-cta { display: flex; gap: var(--space-4); margin-top: var(--space-8); flex-wrap: wrap; }
.hero .btn-outline { border-color: rgba(253,249,238,0.5); color: #fdf9ee; }

.page-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  color: #fdf9ee;
}
.page-hero .hero-content { max-width: 720px; padding-block: clamp(var(--space-14), 8vw, var(--space-24)) clamp(var(--space-10), 4vw, var(--space-14)); }
.page-hero h1 { color: #fdf9ee; font-size: var(--text-3xl); margin-top: var(--space-3); }

/* ---------- Stat / trust bar ---------- */
.stat-bar {
  background: var(--color-navy);
  color: var(--color-text-inverse);
  padding-block: var(--space-8);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  text-align: center;
}
.stat-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-gold-light);
}
.stat-grid span { font-size: var(--text-xs); color: #c9d2df; letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 760px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Cards & grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
@media (max-width: 920px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 640px) and (max-width: 920px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

.section-head { max-width: 680px; margin-bottom: clamp(var(--space-8), 5vw, var(--space-14)); }
.section-head h2 { font-size: var(--text-2xl); margin-top: var(--space-3); }
.section-head.center { margin-inline: auto; text-align: center; }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-gold); }
.icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-gold-tint);
  color: var(--color-gold-deep);
  margin-bottom: var(--space-5);
}
[data-theme='dark'] .icon { color: var(--color-gold); }
.icon svg { width: 24px; height: 24px; }
.icon.icon-xl { width: 96px; height: 96px; background: transparent; margin-bottom: 0; }
.icon.icon-xl svg { width: 48px; height: 48px; color: var(--color-gold-light); }
.card h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.card p { color: var(--color-text-muted); font-size: var(--text-sm); }
.card a.card-link {
  display: inline-flex; align-items: center; gap: var(--space-1);
  margin-top: var(--space-4);
  font-size: var(--text-sm); font-weight: 600; color: var(--color-navy);
}
.card a.card-link svg { width: 15px; height: 15px; }
[data-theme='dark'] .card a.card-link { color: var(--color-gold-light); }

.tag {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.35em 0.9em; border-radius: 999px;
}
.tag-gold { background: var(--color-gold-tint); color: var(--color-gold-deep); }
.tag-maroon { background: var(--color-maroon-tint); color: var(--color-maroon); }
.tag-navy { background: var(--color-navy-tint); color: var(--color-navy); }
[data-theme='dark'] .tag-navy { background: var(--color-surface-2); color: var(--color-text); }

/* ---------- Divider quote ---------- */
.quote-band {
  background: var(--color-navy);
  color: #fdf9ee;
  position: relative;
  overflow: hidden;
}
.quote-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(217,188,127,0.16), transparent 55%);
}
.quote-band blockquote {
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-2xl);
  max-width: 900px;
  line-height: 1.25;
}
.quote-band blockquote span { color: var(--color-gold-light); }
.quote-band cite {
  position: relative;
  display: block;
  margin-top: var(--space-6);
  font-style: normal;
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c9d2df;
}

/* ---------- Featured property ---------- */
.property-feature {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.property-gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  min-height: 420px;
}
.property-gallery img { width: 100%; height: 100%; object-fit: cover; }
.property-gallery a:first-child { grid-row: 1 / 3; }
@media (max-width: 760px) {
  .property-gallery { grid-template-columns: 1fr; grid-template-rows: auto; min-height: 0; }
  .property-gallery a:first-child { grid-row: auto; aspect-ratio: 4/3; }
  .property-gallery a { aspect-ratio: 4/3; }
}
.property-body { padding: clamp(var(--space-6), 4vw, var(--space-10)); }
.property-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-block: var(--space-6);
  padding-block: var(--space-6);
  border-block: 1px solid var(--color-divider);
}
.property-facts div strong { display: block; font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-navy); }
[data-theme='dark'] .property-facts div strong { color: var(--color-text); }
.property-facts div span { font-size: var(--text-xs); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
@media (max-width: 760px) { .property-facts { grid-template-columns: repeat(2, 1fr); } }

.unit-table { font-size: var(--text-sm); width: 100%; table-layout: fixed; }
.unit-table th, .unit-table td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-divider);
  word-break: break-word;
}
.unit-table th { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); font-weight: 600; }
.unit-table tr:last-child td { border-bottom: none; }
.unit-table th:nth-child(1), .unit-table td:nth-child(1) { width: 18%; }
.unit-table th:nth-child(2), .unit-table td:nth-child(2) { width: 26%; }
.unit-table th:nth-child(3), .unit-table td:nth-child(3) { width: 23%; }
.unit-table th:nth-child(4), .unit-table td:nth-child(4) { width: 33%; }
.unit-table th { white-space: nowrap; letter-spacing: 0.02em; }
.unit-status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: var(--text-xs); white-space: nowrap; }
.unit-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--color-gold); flex-shrink: 0; }
@media (max-width: 480px) {
  .unit-table { font-size: 12px; }
  .unit-table th, .unit-table td { padding: var(--space-2) var(--space-2); }
  .unit-status { font-size: 11px; }
}

.amenity-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.amenity-list li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-sm); }
.amenity-list svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--color-gold-deep); margin-top: 2px; }
[data-theme='dark'] .amenity-list svg { color: var(--color-gold); }

.check-list { list-style: none; }
.check-list li { display: flex; gap: var(--space-3); align-items: flex-start; margin-bottom: var(--space-3); }
.check-list svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; color: var(--color-gold-deep); }
[data-theme='dark'] .check-list svg { color: var(--color-gold); }

/* ---------- Team ---------- */
.team-card { text-align: left; }
.avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-navy-deep);
  background: linear-gradient(145deg, var(--color-gold-light), var(--color-gold));
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.team-card h3 { font-size: var(--text-lg); }
.team-card .role { color: var(--color-gold-deep); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-block: var(--space-1) var(--space-3); }
[data-theme='dark'] .team-card .role { color: var(--color-gold); }
.team-card .credentials { font-size: var(--text-xs); color: var(--color-text-faint); margin-top: var(--space-3); letter-spacing: 0.03em; }
.team-card a.contact-line { display: flex; gap: var(--space-2); align-items: center; font-size: var(--text-sm); margin-top: var(--space-1); }
.team-card a.contact-line svg { width: 15px; height: 15px; color: var(--color-gold-deep); }
[data-theme='dark'] .team-card a.contact-line svg { color: var(--color-gold); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-deep) 100%);
  color: #fdf9ee;
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-10), 6vw, var(--space-16));
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); flex-wrap: wrap;
}
.cta-band h2 { color: #fdf9ee; font-size: var(--text-xl); max-width: 480px; }
.cta-band-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field label {
  display: block; font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--color-text-muted); margin-bottom: var(--space-2);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.85em 1em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px var(--color-gold-tint);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: var(--text-xs); color: var(--color-text-faint); margin-top: var(--space-3); }

.form-success {
  display: none;
  background: var(--color-gold-tint);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  font-size: var(--text-sm);
}
.form-success.is-visible { display: block; }

/* ---------- Contact cards ---------- */
.info-card {
  display: flex; gap: var(--space-4); align-items: flex-start;
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.info-card .icon { width: 44px; height: 44px; border-radius: 50%; background: var(--color-gold-tint); color: var(--color-gold-deep); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
[data-theme='dark'] .info-card .icon { color: var(--color-gold); }
.info-card .icon svg { width: 20px; height: 20px; }
.info-card h3 { font-size: var(--text-base); margin-bottom: var(--space-1); }
.info-card p, .info-card a { font-size: var(--text-sm); color: var(--color-text-muted); }
.info-card a { display: block; transition: color 0.2s var(--ease); }
.info-card a:hover { color: var(--color-gold-deep); }
[data-theme='dark'] .info-card a:hover { color: var(--color-gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-navy-deep); color: #cdd7e3; padding-block: var(--space-16) var(--space-8); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-10); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fdf9ee; font-family: var(--font-sans); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-4); }
.site-footer p, .site-footer a { font-size: var(--text-sm); color: #b6c1d1; }
.site-footer a { transition: color 0.2s var(--ease); }
.site-footer a:hover { color: var(--color-gold-light); }
.site-footer ul li { margin-bottom: var(--space-3); }
.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap;
  font-size: var(--text-xs); color: #8b9bb0;
}
.footer-bottom a { color: #8b9bb0; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--color-gold); color: var(--color-navy-deep);
  padding: var(--space-3) var(--space-5); z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

@media (max-width: 760px) {
  .stat-grid, .property-facts { text-align: left; }
}

/* ============ Seamless Realty additions ============ */
.page-hero { background: linear-gradient(135deg, var(--color-navy-deep), var(--color-navy)); overflow:hidden; }
.page-hero .eyebrow { color: var(--color-gold-light); }
.page-hero .lede { color: rgba(253,249,238,.86); }
.idx-frame { border:1px solid var(--color-border); border-radius:14px; overflow:hidden; background:#fff; box-shadow:var(--shadow-md); }
.idx-frame iframe { display:block; width:100%; border:0; background:#fff; }
.idx-bar { display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:.7rem 1.1rem; background:var(--color-navy); color:#fdf9ee; font-size:var(--text-sm); }
.idx-bar a { display:inline-flex; align-items:center; gap:.4rem; color:var(--color-gold-light); font-weight:600; }
.idx-bar svg { width:1em; height:1em; }
.tabs { display:flex; gap:.5rem; flex-wrap:wrap; margin-bottom:1.25rem; }
.area-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:1.5rem; }
.area-card { display:flex; flex-direction:column; background:var(--color-surface); border:1px solid var(--color-border); border-radius:14px; overflow:hidden; transition:transform .25s, box-shadow .25s; }
.area-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.area-card img, .area-ph { width:100%; aspect-ratio:16/10; object-fit:cover; }
.area-ph { display:grid; place-items:center; background:linear-gradient(135deg,var(--color-navy),var(--color-navy-deep)); }
.area-ph span { font-family:'Fraunces',serif; font-size:1.6rem; color:var(--color-gold-light); text-align:center; padding:1rem; }
.area-body { padding:1.25rem 1.4rem 1.5rem; display:flex; flex-direction:column; gap:.5rem; flex:1; }
.area-body h3 { font-size:var(--text-lg); }
.area-body p { color:var(--color-text-muted); font-size:var(--text-sm); flex:1; }
.area-detail, .contact-grid { display:grid; grid-template-columns:1.6fr 1fr; gap:3rem; align-items:start; }
.area-detail aside { position:sticky; top:120px; display:flex; flex-direction:column; gap:.75rem; }
.area-detail .check-list li { margin-bottom:.5rem; }
.contact-grid { grid-template-columns:1fr 1.6fr; }
.contact-grid .info-card p { margin-top:.75rem; }
@media (max-width: 860px){ .area-detail, .contact-grid { grid-template-columns:1fr; } .area-detail aside{position:static;} }
/* Native branded search */
.sr-search { background:var(--color-surface); border:1px solid var(--color-border); border-top:4px solid var(--color-gold); border-radius:16px; padding:1.25rem 1.5rem 1.5rem; box-shadow:var(--shadow-md); margin-bottom:2rem; }
.sr-mode { display:inline-flex; background:var(--color-surface-2); border-radius:999px; padding:4px; margin-bottom:1rem; }
.sr-mode input { position:absolute; opacity:0; pointer-events:none; }
.sr-mode span { display:block; padding:.45rem 1.25rem; border-radius:999px; font-weight:600; font-size:var(--text-sm); cursor:pointer; color:var(--color-text-muted); }
.sr-mode input:checked + span { background:var(--color-navy); color:#fdf9ee; }
.sr-fields { display:grid; grid-template-columns:2fr 1fr 1fr .8fr auto; gap:.9rem; align-items:end; }
.sr-f { display:flex; flex-direction:column; gap:.35rem; }
.sr-f span { font-size:var(--text-xs); font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--color-gold-deep); }
.sr-f input, .sr-f select { height:48px; padding:0 .9rem; border:1px solid var(--color-border); border-radius:10px; background:var(--color-bg); color:var(--color-text); }
.sr-f input:focus, .sr-f select:focus { outline:2px solid var(--color-gold); border-color:transparent; }
.sr-search .btn { height:48px; padding-inline:2rem; }
[data-theme='dark'] .sr-f span { color:var(--color-gold); }
@media (max-width:900px){ .sr-fields { grid-template-columns:1fr 1fr; } .sr-wide, .sr-search .btn { grid-column:1/-1; } }
/* Blend HAR frames: branded shell + soft inner matte */
.idx-frame { border:1px solid var(--color-gold); padding:0; background:var(--color-surface); }
.idx-frame iframe { border-top:3px solid var(--color-gold); }
[data-theme='dark'] .idx-frame iframe { filter: brightness(.96); }
.area-tag{display:inline-block;font-size:var(--text-xs);letter-spacing:.12em;text-transform:uppercase;color:var(--color-gold);font-weight:700;margin-bottom:var(--space-2)}
.area-best{font-size:var(--text-sm);margin-top:var(--space-2)}
.vibe-filter{display:flex;flex-wrap:wrap;gap:var(--space-2);justify-content:center;margin-bottom:var(--space-8)}
.area-card.is-hidden{display:none}
.compare-wrap{overflow-x:auto;border-radius:12px;border:1px solid var(--color-border,rgba(0,0,0,.1))}
.compare{width:100%;border-collapse:collapse;font-size:var(--text-sm);min-width:640px}
.compare th{background:var(--color-navy,#0b2a45);color:#fff;text-align:left;padding:14px 16px;font-weight:600}
.compare td{padding:12px 16px;border-top:1px solid var(--color-border,rgba(0,0,0,.08));vertical-align:top}
.compare td a{color:var(--color-gold);font-weight:600}
.agent-card{text-align:center;display:flex;flex-direction:column;align-items:center}
.agent-avatar{width:160px;height:160px;object-fit:cover;border-radius:50%;background:var(--color-navy,#0b2a45);color:var(--color-gold);display:grid;place-items:center;font-size:32px;font-weight:700;letter-spacing:.05em;margin-bottom:var(--space-4);border:3px solid var(--color-gold)}
.agent-role{color:var(--color-gold);font-size:var(--text-sm);margin-bottom:var(--space-5)}
.agent-card .btn{width:100%}
.contact-form{display:flex;flex-direction:column;gap:var(--space-4)}
.contact-form label{display:flex;flex-direction:column;gap:6px;font-size:var(--text-sm);font-weight:600}
.contact-form input,.contact-form select,.contact-form textarea{font:inherit;font-weight:400;padding:12px 14px;border:1px solid rgba(11,42,69,.2);border-radius:10px;background:#fff;color:#0b2a45}
.contact-form input:focus,.contact-form select:focus,.contact-form textarea:focus{outline:2px solid var(--color-gold);border-color:transparent}
.contact-form .form-row{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-4)}
@media(max-width:600px){.contact-form .form-row{grid-template-columns:1fr}}
.contact-form .hp{position:absolute;left:-9999px}
.form-note{padding:14px 16px;border-radius:10px;margin-bottom:var(--space-4);font-weight:600}
.form-note.ok{background:#e8f5e9;color:#1b5e20}.form-note.err{background:#fdecea;color:#8a1c12}
.contact-grid .info-card{display:flex;flex-direction:column;gap:var(--space-3);align-self:start}.contact-grid .info-card p{margin:0}
.portal-card{text-decoration:none;color:inherit;display:flex;flex-direction:column;gap:var(--space-2);border-top:4px solid var(--color-gold)}.portal-card:hover{transform:translateY(-3px)}
.main-nav a{white-space:nowrap}@media(min-width:1025px) and (max-width:1300px){.main-nav{gap:14px}.main-nav a{font-size:14px}}
.brand-logo{display:inline-flex;flex-direction:column;align-items:flex-start;line-height:1}.brand-logo img{height:38px;width:auto;display:block}.brand-sub{font-family:Inter,sans-serif;font-weight:700;font-size:10px;letter-spacing:.55em;margin:3px 0 0 6px;color:currentColor}.site-footer .brand-logo img{height:48px}
