/* ============================================
   PRESTIGE ESTATES - Professional editorial
   Deep navy + warm cream + brass. Serif display.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

/* ── Design Tokens ─────────────────────── */
:root {
  /* Brand - deep, sophisticated, premium */
  --ink: #0F1A2A;
  --ink-2: #1B2A40;
  --ink-soft: #2A3B55;
  --brand: #0F1A2A;
  --brand-hover: #1B2A40;
  --brand-soft: #E8E2D0;
  --accent: #B89968;          /* muted brass */
  --accent-hover: #A48654;
  --accent-soft: #F2EAD5;

  /* Neutrals - warm, editorial */
  --text: #1F2937;
  --text-muted: #6B6B66;
  --text-faint: #A09E94;
  --bg: #FAF7F1;              /* warm off-white */
  --bg-pure: #FFFFFF;
  --bg-subtle: #F2EEE3;       /* cream */
  --bg-sunken: #EAE5D6;
  --bg-dark: #0F1A2A;
  --border: #E5E0D0;
  --border-strong: #C8BFA6;
  --success: #4A6B4A;
  --warning: #B8804A;
  --info: #4A6B85;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;

  /* Spacing - more generous */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px;
  --s-4: 16px; --s-5: 20px; --s-6: 28px;
  --s-7: 40px; --s-8: 56px; --s-9: 80px; --s-10: 112px;

  /* Layout */
  --container: 1240px;
  --header-h: 76px;

  /* Radius - soft, refined */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 8px;
  --r-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--bg); }

/* ── Typography ────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.15;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(40px, 5.5vw, 72px); font-weight: 400; line-height: 1.05; }
h2 { font-size: clamp(28px, 3.5vw, 44px); font-weight: 400; }
h3 { font-size: 22px; font-weight: 400; letter-spacing: -0.01em; }
h4 { font-size: 18px; font-weight: 500; font-family: var(--font); letter-spacing: 0; }
h5 { font-size: 15px; font-weight: 600; font-family: var(--font); letter-spacing: 0; }
p  { color: var(--text-muted); line-height: 1.65; font-size: 15px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-hover);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.eyebrow.no-line::before { display: none; }
.eyebrow.light { color: var(--accent); }
.eyebrow.light::before { background: var(--accent); }

.text-center { text-align: center; }
.italic { font-style: italic; }
.serif { font-family: var(--font-display); }

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

/* ── Buttons - refined, editorial ─────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  line-height: 1.2;
  font-family: var(--font);
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--bg); }
.btn-dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-dark:hover { background: transparent; color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
  padding: 10px 0;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}
.btn-ghost:hover { color: var(--accent); }
.btn-ghost::after {
  content: '→';
  margin-left: 4px;
  transition: transform 0.2s;
}
.btn-ghost:hover::after { transform: translateX(4px); }
.btn-light { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn-light:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn-accent { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-lg { padding: 18px 32px; font-size: 14px; }
.btn-sm { padding: 10px 18px; font-size: 12px; }
.btn-block { width: 100%; }

/* ── Legacy two-row header (compatibility) ─── */
.header-search {
  flex: 1;
  max-width: 480px;
  display: flex;
  border: 1px solid var(--border-strong);
  background: var(--bg-pure);
  transition: border-color 0.2s;
}
.header-search:focus-within { border-color: var(--ink); }
.header-search input {
  flex: 1;
  padding: 10px 16px;
  font-size: 14px;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font);
}
.header-search button {
  padding: 0 18px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background 0.2s;
  font-family: var(--font);
}
.header-search button:hover { background: var(--accent); }
.header-nav-row {
  height: 48px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-nav-row-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.header-nav-row-inner::-webkit-scrollbar { display: none; }
.header-nav-row .nav-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 12px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font);
}
.header-nav-row .nav-link:hover { color: var(--ink); }
.header-nav-row .nav-link.active { color: var(--ink); }
.header-nav-row .nav-link::after { display: none; }

/* ── Header (editorial, refined) ──────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.header.scrolled {
  background: rgba(250, 247, 241, 0.98);
  box-shadow: 0 1px 0 var(--border), 0 8px 24px -16px rgba(15, 26, 42, 0.08);
}
.header-top {
  height: var(--header-h);
}
.header-top-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1;
}
.logo .logo-mark {
  display: inline-block;
  width: 26px;
  height: 26px;
  border: 1px solid var(--ink);
  position: relative;
  margin-right: 2px;
  align-self: center;
}
.logo .logo-mark::before {
  content: '';
  position: absolute;
  inset: 5px;
  background: var(--accent);
}
.logo-sub {
  display: block;
  font-family: var(--font);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
  margin-left: 36px;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  padding: 8px 14px;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px;
  bottom: 2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .icon-btn {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border: 1px solid transparent;
  transition: all 0.2s;
  position: relative;
}
.header-actions .icon-btn:hover {
  border-color: var(--border-strong);
  color: var(--accent);
}
.header-actions .icon-btn svg { width: 18px; height: 18px; }
.header-actions .favorites-badge {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 16px; height: 16px;
  background: var(--accent);
  color: var(--bg);
  font-size: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 4px;
  font-family: var(--font);
}
.header-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 0;
  position: relative;
  transition: color 0.2s;
}
.header-link:hover { color: var(--accent); }

.mobile-menu-btn {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--border-strong);
}
.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--ink);
  transition: 0.2s;
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  flex-direction: column;
  padding: 100px 32px 40px;
  gap: 0;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.mobile-menu.active { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

/* ── Hero search tabs / grid (compatibility) ─ */
.hero-search-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.hero-search-tab {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font);
  cursor: pointer;
}
.hero-search-tab:hover { color: var(--ink); }
.hero-search-tab.active { color: var(--ink); border-bottom-color: var(--accent); }
.hero-search-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 0;
  border: 1px solid var(--border);
  background: var(--bg-pure);
}
.hero-search-field {
  padding: 12px 16px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-search-field:last-of-type { border-right: none; }
.hero-search-field label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: var(--font);
}
.hero-search-field input,
.hero-search-field select {
  border: none;
  outline: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 0;
  background: transparent;
  width: 100%;
  font-family: var(--font);
}
.hero-search-btn {
  background: var(--ink);
  color: var(--bg);
  padding: 0 24px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  white-space: nowrap;
  transition: background 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font);
}
.hero-search-btn:hover { background: var(--accent); }

/* ── Quick categories / suburb pills (compatibility) ─ */
.quick-categories {
  background: var(--bg-pure);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.quick-categories-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.quick-categories-inner::-webkit-scrollbar { display: none; }
.quick-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font);
}
.quick-cat:hover { border-color: var(--ink); }
.quick-cat.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.quick-cat i { color: var(--accent); font-size: 12px; }
.quick-cat.active i { color: var(--accent); }

/* ── Hero (editorial, full-bleed) ────── */
.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: transform 8s ease;
}
.hero:hover .hero-bg img { transform: scale(1.04); }
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(15,26,42,0.15) 0%,
    rgba(15,26,42,0.45) 60%,
    rgba(15,26,42,0.85) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 80px 0 96px;
  color: var(--bg);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
}
.hero h1 {
  color: var(--bg);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin-bottom: 28px;
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.hero p.lead {
  font-size: 17px;
  color: rgba(250, 247, 241, 0.85);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.55;
  font-weight: 300;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-actions .btn-primary {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.hero-actions .btn-primary:hover { background: var(--bg); border-color: var(--bg); }
.hero-actions .btn-light {
  background: transparent;
  color: var(--bg);
  border-color: rgba(250, 247, 241, 0.5);
}
.hero-actions .btn-light:hover {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}
.hero-stats {
  display: flex;
  gap: 64px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(250, 247, 241, 0.2);
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  color: var(--bg);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-stat .num em { color: var(--accent); font-style: normal; }
.hero-stat .label {
  font-size: 11px;
  color: rgba(250, 247, 241, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

/* Editorial hero variant (alternative for inner pages) */
.hero.editorial-hero {
  min-height: 480px;
  align-items: center;
  text-align: center;
  padding: 96px 0;
}
.hero.editorial-hero .hero-inner { text-align: center; }
.hero.editorial-hero h1 { margin-left: auto; margin-right: auto; }
.hero.editorial-hero p.lead { margin-left: auto; margin-right: auto; }
.hero.editorial-hero .hero-actions { justify-content: center; }

/* ── Search bar (refined, integrated) ── */
.search-bar {
  background: var(--bg-pure);
  border: 1px solid var(--border);
  padding: 24px;
  margin-top: -56px;
  position: relative;
  z-index: 5;
  box-shadow: 0 24px 48px -12px rgba(15, 26, 42, 0.12);
}
.search-bar-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  padding-bottom: 0;
}
.search-bar-tab {
  padding: 10px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.search-bar-tab.active { color: var(--ink); border-bottom-color: var(--accent); }
.search-bar-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr auto;
  gap: 0;
  align-items: center;
}
.search-bar-field {
  padding: 12px 20px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.search-bar-field:last-of-type { border-right: none; }
.search-bar-field label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.search-bar-field input,
.search-bar-field select {
  width: 100%;
  border: none;
  outline: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  padding: 0;
  background: transparent;
}
.search-bar-field input::placeholder { color: var(--text-faint); }
.search-bar-btn {
  background: var(--ink);
  color: var(--bg);
  padding: 0 32px;
  height: 48px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  transition: background 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.search-bar-btn:hover { background: var(--accent); }

/* ── Section spacing & heads ─────────── */
.section {
  padding: 144px 0;
}
.section.tight { padding: 80px 0; }
.section.large { padding: 192px 0; }
.section-subtle { background: var(--bg-subtle); }
.section-cream { background: var(--bg-subtle); }
.section-dark { background: var(--ink); color: var(--bg); }
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5 { color: var(--bg); }
.section-dark p { color: rgba(250, 247, 241, 0.7); }
.section-dark .eyebrow { color: var(--accent); }
.section-dark .eyebrow::before { background: var(--accent); }
.section-bordered { border-top: 1px solid var(--border); }

.section-head {
  margin-bottom: 80px;
  max-width: 720px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center { text-align: center; }
.section-head .row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 16px;
}
.section-head h2 {
  max-width: 720px;
  font-weight: 300;
}
.section-head h2 em { font-style: italic; color: var(--accent); }
.section-head p {
  font-size: 16px;
  max-width: 560px;
  margin-top: 16px;
}
.section-head.center p { margin-left: auto; margin-right: auto; }
.section-head a.more {
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  transition: all 0.2s;
}
.section-head a.more:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  gap: 14px;
}

/* ── Property Cards (editorial) ──────── */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px 48px;
}
.property-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  transition: transform 0.3s ease;
}
.property-card:hover { transform: translateY(-4px); }
.property-card-image {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--bg-sunken);
  overflow: hidden;
  margin-bottom: 20px;
}
.property-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(15,26,42,0.4));
  opacity: 0;
  transition: opacity 0.3s;
}
.property-card:hover .property-card-image::after { opacity: 1; }
.property-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.property-card:hover .property-card-image img { transform: scale(1.05); }

.property-card-tags {
  position: absolute;
  top: 16px; left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 600;
  background: var(--bg);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
  width: fit-content;
  font-family: var(--font);
}
.tag.new { background: var(--accent); color: var(--ink); }
.tag.auction { background: var(--ink); color: var(--bg); }
.tag.sold { background: var(--bg); color: var(--text-muted); }
.tag.open-home { background: var(--bg-pure); color: var(--ink); }
.tag.just-listed { background: var(--accent); color: var(--ink); }
.tag.price-reduced { background: var(--ink); color: var(--accent); }
.tag.off-market { background: var(--ink); color: var(--bg); }
.tag.for-rent { background: var(--bg-subtle); color: var(--ink); }
.tag.under-offer { background: var(--ink); color: var(--bg); }

.favorite-btn {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  background: rgba(250, 247, 241, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.2s;
  color: var(--ink);
  border-radius: 50%;
}
.favorite-btn:hover { background: var(--bg); color: var(--accent); }
.favorite-btn.active { background: var(--accent); color: var(--bg); }
.favorite-btn svg { width: 16px; height: 16px; }

.property-card-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.property-card-loc {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.property-card-loc .dot {
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
}
.property-card-price {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.property-card-price small {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 4px;
  font-family: var(--font);
}
.property-card-address {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink);
  line-height: 1.3;
  font-weight: 400;
  margin-top: 4px;
}
.property-card-features {
  display: flex;
  gap: 20px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  border-top: none;
  padding-top: 0;
}
.property-card-features span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.property-card-features strong {
  color: var(--ink);
  font-weight: 600;
}
.property-card-inspection {
  margin-top: 10px;
  font-size: 12px;
  color: var(--accent-hover);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.property-card-inspection i { font-size: 11px; }
.property-card-agent { display: none; }
.property-card-inspection { display: none; }
.property-card-footer { display: none; }

/* ── Legacy card footer / agent strip ─ */
.property-card-footer {
  padding: 16px 0 4px;
  border-top: 1px solid var(--border);
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.property-card-agent {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  min-width: 0;
  font-family: var(--font);
  font-style: normal;
}
.property-card-agent::before { display: none; }
.property-card-agent-logo {
  width: 32px; height: 32px;
  background: var(--ink);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  font-family: var(--font);
}
.property-card-agent-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font);
}
.property-card-arrow {
  width: 32px; height: 32px;
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--ink);
  transition: all 0.2s;
  flex-shrink: 0;
  font-family: var(--font);
}
.property-card:hover .property-card-arrow {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* Address / location (legacy class) */
.property-card-loc {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-family: var(--font);
}
.property-card-loc .dot {
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
}
.property-card-address {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
}
.property-card-price small {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 4px;
  font-family: var(--font);
}

/* ── Featured (large hero) card variant ─ */
.property-card.featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: stretch;
  background: var(--bg-pure);
  border: 1px solid var(--border);
  padding: 0;
  margin-bottom: 48px;
}
.property-card.featured .property-card-image {
  aspect-ratio: auto;
  height: 100%;
  min-height: 480px;
  margin-bottom: 0;
}
.property-card.featured .property-card-body {
  padding: 48px 48px 48px 0;
  justify-content: center;
}
.property-card.featured .property-card-price {
  font-size: 44px;
  font-weight: 300;
}
.property-card.featured .property-card-address {
  font-size: 24px;
  margin-top: 8px;
}
.property-card.featured .property-card-features {
  margin-top: 24px;
  padding-top: 20px;
}

/* ── Stats - editorial, large ─────────── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-card {
  padding: 48px 32px;
  text-align: left;
  border-right: 1px solid var(--border);
}
.stat-card:last-child { border-right: none; }
.stat-card .num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}
.stat-card .num em { color: var(--accent); font-style: normal; }
.stat-card .label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}
.section-dark .stat-row { border-color: rgba(250, 247, 241, 0.15); }
.section-dark .stat-card { border-color: rgba(250, 247, 241, 0.15); }
.section-dark .stat-card .num { color: var(--bg); }
.section-dark .stat-card .label { color: rgba(250, 247, 241, 0.6); }

/* ── Services - elegant list ──────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.service-card {
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  padding: 72px 56px;
  transition: all 0.3s;
}
.service-card:nth-child(3n) { border-right: none; }
.service-card:hover { background: var(--bg-pure); }
.service-card .num {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 32px;
  font-weight: 400;
  letter-spacing: 0.05em;
  font-style: italic;
}
.service-card h3 {
  font-size: 22px;
  margin-bottom: 16px;
  font-weight: 400;
}
.service-card p { font-size: 15px; color: var(--text-muted); line-height: 1.6; }
.service-card ul {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-card li {
  font-size: 14px;
  color: var(--ink);
  padding-left: 20px;
  position: relative;
  line-height: 1.4;
}
.service-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 1px;
  background: var(--accent);
}
.service-icon {
  width: 56px; height: 56px;
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 24px;
  border: 1px solid var(--border-strong);
}

/* ── Filter Bar (refined) ────────────── */
.filter-bar {
  background: var(--bg-pure);
  border: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}
.filter-group {
  padding: 16px 20px;
  border-right: 1px solid var(--border);
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.filter-group:last-of-type { border-right: none; }
.filter-group label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.filter-group select,
.filter-group input {
  width: 100%;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: none;
  outline: none;
}
.filter-search {
  background: var(--ink);
  color: var(--bg);
  padding: 0 32px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  transition: background 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.filter-search:hover { background: var(--accent); }

/* ── Tabs ─────────────────────────────── */
.tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-nav::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color 0.2s;
  margin-bottom: -1px;
  white-space: nowrap;
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { color: var(--ink); }
.tab-btn.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Property Detail ──────────────────── */
.property-gallery { margin-bottom: 32px; }
.gallery-main {
  aspect-ratio: 16/9;
  background: var(--bg-sunken);
  margin-bottom: 12px;
  overflow: hidden;
  position: relative;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-main:hover img { transform: scale(1.02); }
.gallery-main .gallery-count {
  position: absolute;
  bottom: 16px; right: 16px;
  background: rgba(15, 26, 42, 0.8);
  color: var(--bg);
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.gallery-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color 0.2s;
  background: var(--bg-sunken);
}
.gallery-thumb.active { border-color: var(--accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.property-detail-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 80px;
  align-items: start;
}
.property-detail-head {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.property-detail-head .address-line {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.property-detail-head h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 16px;
  font-weight: 300;
}
.property-detail-head .price-line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.property-detail-head .price {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.property-detail-head .price small {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 6px;
  font-family: var(--font);
}
.property-detail-head .inspection {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--accent-hover);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font);
}

.property-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.property-meta-item {
  padding: 32px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.property-meta-item:last-child { border-right: none; }
.property-meta-item .icon {
  color: var(--accent);
  font-size: 20px;
  margin-bottom: 12px;
}
.property-meta-item .value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.property-meta-item .label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 6px;
  font-weight: 500;
}

.property-section {
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.property-section:last-child { border-bottom: none; }
.property-section h2 {
  font-size: 28px;
  margin-bottom: 24px;
  font-weight: 400;
}
.property-section p { font-size: 15px; line-height: 1.75; color: var(--text); margin-bottom: 16px; }

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  list-style: none;
}
.feature-list li {
  padding: 16px 0;
  font-size: 14px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding-right: 16px;
}
.feature-list li:nth-child(3n) { border-right: none; }
.feature-list li i { color: var(--accent); font-size: 10px; }
.feature-list li::before {
  content: '';
  width: 16px; height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.agent-card {
  background: var(--bg-pure);
  border: 1px solid var(--border);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}
.agent-card img {
  width: 72px; height: 72px;
  object-fit: cover;
  flex-shrink: 0;
  filter: grayscale(10%);
}
.agent-card h4 { font-size: 16px; margin-bottom: 4px; font-family: var(--font-display); font-weight: 500; }
.agent-card .role { font-size: 12px; color: var(--text-muted); }
.agent-phone { font-size: 13px; color: var(--ink); margin-top: 6px; font-weight: 500; }

.sidebar-card {
  background: var(--bg-pure);
  border: 1px solid var(--border);
  padding: 28px;
  margin-bottom: 16px;
}
.sidebar-card h4 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 400;
}
.sidebar-card .form-group { margin-bottom: 12px; }

.map-placeholder {
  height: 280px;
  background: var(--bg-sunken);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 13px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.map-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15,26,42,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,26,42,0.04) 1px, transparent 1px);
  background-size: 30px 30px;
}
.map-placeholder::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(184, 153, 104, 0.2);
}

/* ── Forms ────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--ink);
  background: var(--bg-pure);
  border: 1px solid var(--border);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: var(--font);
  border-radius: 0;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--accent);
}
.form-group textarea { min-height: 120px; resize: vertical; font-family: var(--font); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.form-success {
  display: none;
  text-align: center;
  padding: 40px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
}
.form-success.show { display: block; }
.form-success h3 { color: var(--ink); margin-bottom: 8px; font-family: var(--font-display); }
.form-success p { color: var(--text); }

/* ── Contact ──────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-info-card {
  background: var(--bg-pure);
  border: 1px solid var(--border);
  padding: 40px;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
  width: 44px; height: 44px;
  background: var(--bg-subtle);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.contact-info-item h4 { font-size: 11px; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); font-weight: 600; }
.contact-info-item p { font-size: 15px; color: var(--ink); font-family: var(--font-display); }

/* ── Blog ─────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px 56px;
}
.blog-card {
  background: transparent;
  border: none;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.blog-card:hover { transform: translateY(-4px); }
.blog-card-image {
  aspect-ratio: 4/3;
  background: var(--bg-sunken);
  overflow: hidden;
  margin-bottom: 24px;
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.blog-card:hover .blog-card-image img { transform: scale(1.05); }
.blog-card-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.blog-card-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}
.blog-card-meta .category { color: var(--accent-hover); }
.blog-card-body h3 {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 400;
}
.blog-card-body h3 a { transition: color 0.2s; }
.blog-card-body h3 a:hover { color: var(--accent); }
.blog-card-body p { font-size: 15px; color: var(--text-muted); line-height: 1.6; }

.read-more {
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink);
  transition: all 0.2s;
}
.read-more:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  gap: 14px;
}

/* ── Team - editorial ─────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 40px;
}
.team-card {
  background: transparent;
  border: none;
  text-align: left;
  transition: transform 0.3s ease;
}
.team-card:hover { transform: translateY(-4px); }
.team-card-image {
  aspect-ratio: 3/4;
  background: var(--bg-sunken);
  overflow: hidden;
  margin-bottom: 20px;
  filter: grayscale(20%);
  transition: filter 0.3s;
}
.team-card:hover .team-card-image { filter: grayscale(0%); }
.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.team-card:hover .team-card-image img { transform: scale(1.05); }
.team-card h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 4px;
}
.team-card .role {
  font-size: 11px;
  color: var(--accent-hover);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-family: var(--font);
}
.team-card .bio { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.team-social { display: flex; gap: 8px; margin-top: 16px; }
.team-social a {
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.team-social a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ── Timeline (editorial) ────────────── */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before {
  content: '';
  position: absolute;
  left: 100px;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--border-strong);
}
.timeline-item {
  display: flex;
  gap: 48px;
  padding: 24px 0;
  align-items: flex-start;
}
.timeline-year {
  width: 80px;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--accent);
  padding-top: 4px;
  letter-spacing: -0.01em;
}
.timeline-content {
  flex: 1;
  padding: 24px 32px;
  background: var(--bg-pure);
  border: 1px solid var(--border);
}
.timeline-content h4 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 500;
}
.timeline-content p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── Chatbot (refined) ──────────────── */
.chatbot-widget { position: fixed; bottom: 24px; right: 24px; z-index: 1000; }
.chatbot-toggle {
  width: 56px; height: 56px;
  background: var(--ink);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(15, 26, 42, 0.25);
  transition: all 0.3s;
  position: relative;
}
.chatbot-toggle:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(184, 153, 104, 0.3);
}
.chatbot-toggle .notification-dot {
  position: absolute;
  top: 4px; right: 4px;
  width: 10px; height: 10px;
  background: var(--accent);
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.chatbot-panel {
  display: none;
  position: absolute;
  bottom: 68px; right: 0;
  width: 360px; height: 480px;
  background: var(--bg-pure);
  box-shadow: 0 16px 48px rgba(15, 26, 42, 0.2);
  flex-direction: column;
  overflow: hidden;
  animation: chatIn 0.3s ease;
}
.chatbot-panel.open { display: flex; }
@keyframes chatIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.chatbot-header {
  padding: 20px 24px;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chatbot-header-info { display: flex; align-items: center; gap: 12px; }
.chatbot-avatar {
  width: 36px; height: 36px;
  background: var(--accent);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.chatbot-header h4 { font-size: 14px; color: var(--bg); font-family: var(--font-display); font-weight: 500; }
.chatbot-header .status { font-size: 11px; opacity: 0.7; display: inline-flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: 0.08em; }
.status-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.chatbot-close { font-size: 22px; color: var(--bg); opacity: 0.7; width: 28px; height: 28px; }
.chatbot-quick-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.quick-action-btn {
  padding: 6px 12px;
  font-size: 11px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--border);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.2s;
}
.quick-action-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chatbot-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-message {
  max-width: 85%;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
}
.chat-message.bot {
  align-self: flex-start;
  background: var(--bg-subtle);
  color: var(--ink);
  font-family: var(--font);
}
.chat-message.user {
  align-self: flex-end;
  background: var(--ink);
  color: var(--bg);
}
.typing-indicator { display: flex; gap: 4px; padding: 4px 0; }
.typing-indicator span { width: 5px; height: 5px; background: var(--text-faint); border-radius: 50%; animation: typing 1.4s ease-in-out infinite; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-3px); } }
.chatbot-input { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); }
.chatbot-input input {
  flex: 1;
  padding: 10px 14px;
  font-size: 13px;
  background: var(--bg-subtle);
  border: 1px solid transparent;
  outline: none;
  font-family: var(--font);
}
.chatbot-input input:focus { background: var(--bg-pure); border-color: var(--ink); }
.chatbot-input button {
  width: 40px; height: 40px;
  background: var(--ink);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: background 0.2s;
}
.chatbot-input button:hover { background: var(--accent); }

/* ── Page Header (inner pages) ─────── */
.page-header {
  padding: 80px 0 64px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
  margin-bottom: 16px;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 300;
}
.page-header h1 em { font-style: italic; color: var(--accent); }
.page-header p { color: var(--text-muted); font-size: 17px; max-width: 640px; line-height: 1.6; }
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}
.breadcrumb a { color: var(--ink); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--text-faint); }

/* ── Lead Dashboard ──────────────────── */
.lead-dashboard {
  background: var(--bg-pure);
  border: 1px solid var(--border);
  padding: 40px;
  margin-top: 56px;
}
.lead-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-pure);
  font-size: 14px;
}
.lead-table th {
  background: transparent;
  text-align: left;
  padding: 16px 12px;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  font-family: var(--font);
}
.lead-table td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}
.lead-table tr:last-child td { border-bottom: 0; }
.lead-table tr:hover { background: var(--bg-subtle); }
.lead-status {
  display: inline-block;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font);
}
.lead-status.new { background: var(--accent-soft); color: var(--accent-hover); }
.lead-status.contacted { background: var(--bg-sunken); color: var(--text); }
.lead-status.closed { background: var(--ink); color: var(--bg); }

/* ── Preloader ────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  transition: opacity 0.4s, visibility 0.4s;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo { font-family: var(--font-display); font-size: 28px; font-weight: 400; color: var(--ink); display: inline-flex; align-items: center; gap: 12px; }
.preloader-logo .logo-mark { display: inline-block; width: 28px; height: 28px; border: 1px solid var(--ink); position: relative; }
.preloader-logo .logo-mark::before { content: ''; position: absolute; inset: 6px; background: var(--accent); }
.preloader-bar { width: 140px; height: 1px; background: var(--border); position: relative; overflow: hidden; }
.preloader-bar::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40%;
  height: 100%;
  background: var(--accent);
  animation: preload 1.5s ease-in-out infinite;
}
@keyframes preload { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* ── Utilities ────────────────────────── */
.mt-1 { margin-top: 16px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 48px; }
.mb-1 { margin-bottom: 16px; } .mb-2 { margin-bottom: 24px; } .mb-3 { margin-bottom: 48px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-sm { gap: 8px; } .gap-md { gap: 16px; } .gap-lg { gap: 24px; }
.no-results, .empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-faint);
}
.no-results h3, .empty-state h3 {
  color: var(--ink);
  margin-bottom: 8px;
  font-size: 24px;
  font-family: var(--font-display);
  font-weight: 400;
}

/* ── Focus ────────────────────────────── */
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

/* ── Pagination ───────────────────────── */
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 56px; }
.pagination .page {
  min-width: 40px; height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--border);
  transition: all 0.2s;
  background: transparent;
  font-family: var(--font);
}
.pagination .page:hover { border-color: var(--ink); }
.pagination .page.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ── Animations ───────────────────────── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.animate-on-scroll.from-left { transform: translateX(-20px); }
.animate-on-scroll.from-left.visible { transform: translateX(0); }
.animate-on-scroll.from-right { transform: translateX(20px); }
.animate-on-scroll.from-right.visible { transform: translateX(0); }

/* ── Responsive ───────────────────────── */
@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  .properties-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { border-right: 1px solid var(--border); padding: 56px 40px; }
  .service-card:nth-child(3n) { border-right: 1px solid var(--border); }
  .service-card:nth-child(2n) { border-right: none; }
  .team-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
  .property-detail-grid { grid-template-columns: 1fr; gap: 64px; }
  .contact-grid { grid-template-columns: 1fr; gap: 64px; }
  .search-bar-grid { grid-template-columns: 1fr 1fr; }
  .search-bar-field { border-bottom: 1px solid var(--border); }
  .search-bar-btn { grid-column: span 2; height: 56px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat-card { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .stat-card:nth-child(2n) { border-right: none; }
  .stat-card:nth-last-child(-n+2) { border-bottom: none; }
  .filter-bar { flex-wrap: wrap; }
  .filter-group { min-width: 140px; border-bottom: 1px solid var(--border); }
  .filter-search { width: 100%; padding: 16px; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 112px 0; }
  .section.tight { padding: 64px 0; }
  .hero-stats { gap: 40px; }
  .property-card.featured { grid-template-columns: 1fr; }
  .property-card.featured .property-card-image { min-height: 400px; }
  .property-card.featured .property-card-body { padding: 40px 32px; }
}
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .header-nav { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .mobile-menu { display: flex; }
  .container { padding: 0 20px; }
  .hero { min-height: 560px; }
  .hero-inner { padding: 64px 0 80px; }
  .hero h1 { font-size: clamp(40px, 10vw, 56px); }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-stat .num { font-size: 28px; }
  .search-bar { padding: 16px; margin-top: -32px; }
  .search-bar-grid { grid-template-columns: 1fr; }
  .search-bar-field { border-right: none; border-bottom: 1px solid var(--border); }
  .search-bar-btn { grid-column: span 1; }
  .properties-grid { grid-template-columns: 1fr; gap: 32px; }
  .blog-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { border-right: none; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .property-meta { grid-template-columns: repeat(2, 1fr); }
  .property-meta-item { border-right: none; border-bottom: 1px solid var(--border); }
  .property-meta-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .property-meta-item:nth-last-child(-n+2) { border-bottom: none; }
  .property-meta-item .value { font-size: 24px; }
  .property-detail-head h1 { font-size: 32px; }
  .property-detail-head .price { font-size: 32px; }
  .feature-list { grid-template-columns: 1fr; }
  .feature-list li { border-right: none; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
  .timeline::before { left: 0; }
  .timeline-year { width: auto; }
  .timeline-item { padding-left: 32px; gap: 16px; flex-direction: column; }
  .timeline-content { padding: 16px 20px; }
  .chatbot-panel { width: calc(100vw - 32px); right: -4px; }
  .section { padding: 88px 0; }
  .section.tight { padding: 56px 0; }
  .section-head .row { flex-direction: column; align-items: flex-start; }
  .stat-card { padding: 32px 20px; }
  .stat-card .num { font-size: 40px; }
  .property-card-image { aspect-ratio: 4/3; }
  .property-card.featured .property-card-image { min-height: 280px; }
  .page-header { padding: 56px 0 48px; }
  .lead-dashboard { padding: 24px; }
  .contact-info-card { padding: 24px; }
  .timeline::before { left: 0; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { min-height: 520px; }
  .hero-stats { flex-direction: column; gap: 16px; align-items: flex-start; }
  .stat-row { grid-template-columns: 1fr; }
  .stat-card { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-card:last-child { border-bottom: none; }
  .team-grid { grid-template-columns: 1fr; }
  .lead-table { font-size: 12px; }
  .lead-table th, .lead-table td { padding: 10px 8px; }
}

/* ── Dark Mode (subtle) ─ */
[data-theme="dark"] {
  --ink: #F0EBE0;
  --ink-2: #E0DAC8;
  --brand: #F0EBE0;
  --accent: #D4B889;
  --accent-hover: #C9A961;
  --accent-soft: #2A2418;
  --text: #E5DFD0;
  --text-muted: #A09E94;
  --text-faint: #6E6A5E;
  --bg: #14181F;
  --bg-pure: #1B2029;
  --bg-subtle: #1F2530;
  --bg-sunken: #14181F;
  --border: #2A2F38;
  --border-strong: #404654;
}
[data-theme="dark"] body { background: var(--bg); }
[data-theme="dark"] .header { background: rgba(20, 24, 31, 0.92); border-bottom-color: var(--border); }
[data-theme="dark"] .logo .logo-mark { border-color: var(--ink); }
[data-theme="dark"] .logo .logo-mark::before { background: var(--accent); }
[data-theme="dark"] .property-card,
[data-theme="dark"] .agent-card,
[data-theme="dark"] .sidebar-card,
[data-theme="dark"] .contact-info-card,
[data-theme="dark"] .timeline-content,
[data-theme="dark"] .lead-dashboard,
[data-theme="dark"] .form-success,
[data-theme="dark"] .filter-bar,
[data-theme="dark"] .search-bar { background: var(--bg-pure); border-color: var(--border); }
[data-theme="dark"] .property-card:hover { transform: translateY(-4px); }
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
  background: var(--bg-pure);
  color: var(--ink);
  border-color: var(--border);
}
[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus {
  border-color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--accent);
}
[data-theme="dark"] .filter-group select,
[data-theme="dark"] .filter-group input,
[data-theme="dark"] .search-bar-field input,
[data-theme="dark"] .search-bar-field select { color: var(--ink); }
[data-theme="dark"] .lead-table th { color: var(--text-muted); border-bottom-color: var(--border); }
[data-theme="dark"] .lead-table td { border-bottom-color: var(--border); }
[data-theme="dark"] .chatbot-panel { background: var(--bg-pure); }
[data-theme="dark"] .chatbot-messages { background: var(--bg-pure); }
[data-theme="dark"] .chatbot-input { border-top-color: var(--border); }
[data-theme="dark"] .chatbot-input input { background: var(--bg-subtle); color: var(--ink); }
[data-theme="dark"] .map-placeholder { background: var(--bg-sunken); }
[data-theme="dark"] .pagination .page { color: var(--ink); border-color: var(--border); }
[data-theme="dark"] .pagination .page.active { background: var(--accent); color: var(--ink); border-color: var(--accent); }
[data-theme="dark"] .quick-action-btn { color: var(--ink); border-color: var(--border); }
[data-theme="dark"] .quick-action-btn:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
[data-theme="dark"] .service-card:hover { background: var(--bg-pure); }
[data-theme="dark"] .service-card { border-color: var(--border); }
[data-theme="dark"] .services-grid { border-top-color: var(--border); }
[data-theme="dark"] .stat-row { border-color: var(--border); }
[data-theme="dark"] .stat-card { border-color: var(--border); }
[data-theme="dark"] .property-card.featured { background: var(--bg-pure); border-color: var(--border); }
[data-theme="dark"] .property-meta { border-color: var(--border); }
[data-theme="dark"] .property-meta-item { border-color: var(--border); }
[data-theme="dark"] .feature-list { border-color: var(--border); }
[data-theme="dark"] .feature-list li { border-color: var(--border); }
[data-theme="dark"] .lead-table tr:hover { background: var(--bg-subtle); }
[data-theme="dark"] .section-head a.more { color: var(--ink); border-bottom-color: var(--ink); }
[data-theme="dark"] .read-more { color: var(--ink); border-bottom-color: var(--ink); }
