/* ============================================================
   LEGACY PROPERTIES — Design system
   Auberge-quiet luxury · parchment + ink + antique brass
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Inter:wght@400;500;600&family=Libre+Caslon+Text:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:wght@400;600&family=Poppins:wght@400;500;600;700&family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;1,500;1,600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* ── Surface (warm, light) ── */
  --parchment:    #F2ECDF;   /* page bg */
  --vellum:       #E8DFCC;   /* secondary surface */
  --shell:        #FAF6EC;   /* cards / panels */
  --linen:        #EFE7D6;   /* alternate stripe */

  /* ── Ink (warm dark) ── */
  --ink:          #1B1813;
  --ink-2:        #2E2A22;
  --ink-soft:     #4A4136;
  --ink-mute:     #7A6F60;
  --ink-faint:    #A89C8A;

  /* ── Accent ── */
  --brass:        #8C6E3D;   /* primary accent — antique brass */
  --brass-warm:   #A6824A;
  --brass-bright: #C99E5A;
  --moss:         #3A4A38;   /* secondary — sierra moss */
  --oxblood:      #6E2A20;   /* tertiary — almost never */

  /* ── Hairlines ── */
  --rule:        rgba(27,24,19,0.10);
  --rule-soft:   rgba(27,24,19,0.06);
  --rule-strong: rgba(27,24,19,0.20);

  /* ── States ── */
  --hot:         #B85A3E;    /* lead hot */
  --warm:        #C99E5A;    /* lead warm */
  --cold:        #7A6F60;    /* lead cold */
  --positive:    #4A6A3D;
  --negative:    #8B3A2A;

  /* ── Layout ── */
  --max:         1320px;
  --gutter:      48px;
  --radius:      0px;        /* sharp, editorial */

  /* ── Type ── */
  /* Hybrid type system (2026-07): Fraunces carries headlines, Inter carries
     everything people actually read, Libre Caslon dresses formal client
     documents, JetBrains Mono is reserved for true data (ids, code). Italic
     is garnish, never body text. */
  --serif:       'Fraunces', Georgia, serif;
  --sans:        'Inter', system-ui, sans-serif;
  --mono:        'JetBrains Mono', ui-monospace, monospace;
  --serif-doc:   'Libre Caslon Text', Georgia, serif;
  --sans-doc:    'Source Sans 3', system-ui, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }

/* ── Subtle paper grain on body ── */
body.paper::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(circle at 25% 35%, rgba(27,24,19,0.018) 0, transparent 60%),
    radial-gradient(circle at 75% 65%, rgba(140,110,61,0.022) 0, transparent 60%);
  mix-blend-mode: multiply;
}

/* ============================================================
   TYPE PRIMITIVES
   ============================================================ */
.serif        { font-family: var(--serif); }
.mono         { font-family: var(--mono); }

.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
}
.eyebrow-ink { color: var(--ink-mute); }

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  line-height: 0.96;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.display em { font-style: italic; color: var(--brass); }

.h-section {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.h-section em { color: var(--brass); }

.h-sub {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
}

.lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink-soft);
}

.label-cap {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}

.numeral {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-variant-numeric: lining-nums;
}

/* ── Gold hairline ── */
.hairline-brass {
  display: block; width: 36px; height: 1px;
  background: var(--brass); opacity: 0.7;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 1px solid transparent;
  text-decoration: none;
  background: none;
  cursor: pointer;
  transition: all .18s ease;
  white-space: nowrap;
}
.btn-ink         { background: var(--ink); color: var(--shell); }
.btn-ink:hover   { background: var(--ink-2); }
.btn-brass       { background: var(--brass); color: var(--shell); }
.btn-brass:hover { background: var(--ink); }
.btn-ghost       { background: transparent; border-color: var(--rule-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-link {
  background: none; border: none; padding: 6px 0;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brass); border-bottom: 1px solid var(--brass); border-radius: 0;
}
.btn-link:hover { color: var(--ink); border-color: var(--ink); }
.btn-sm  { font-size: 10px; padding: 10px 18px; letter-spacing: 0.14em; }
.btn-xs  { font-size: 9px;  padding: 7px 14px;  letter-spacing: 0.12em; }

/* ============================================================
   CARDS / PANELS
   ============================================================ */
.card        { background: var(--shell); border: 1px solid var(--rule); }
.card-vellum { background: var(--vellum); border: 1px solid var(--rule); }
.card-pad    { padding: 28px 32px; }
.card-pad-lg { padding: 44px 48px; }

.divider { border-top: 1px solid var(--rule); }

/* ============================================================
   GLOBAL CHROME — used across surfaces
   ============================================================ */

/* ── Brand wordmark ── */
.wordmark { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; }
.wordmark-word {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: 27px;
  letter-spacing: 0.03em;
  color: var(--ink);
  white-space: nowrap;
  display: block;
}
.wordmark-sub {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
  display: block;
}

/* ── Dynamic header wordmark (topnav only) ──────────────────────
   The Legacy mark settles in on page load; on hover/focus an
   antique-brass hairline sweeps out from the centre while a soft
   gold sheen crosses the letters and the subline warms to brass.
   Scoped to .topnav so the footer + sidebar wordmarks are untouched.
   No markup change — pure CSS on the existing .wordmark. */
.topnav .wordmark { position: relative; padding-bottom: 9px; }

/* brass hairline, drawn out from the centre on hover/focus */
.topnav .wordmark::after {
  content: "";
  position: absolute; left: 50%; bottom: 0;
  width: 0; height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg,
    transparent 0%, var(--brass-warm) 18%, var(--brass-bright) 50%,
    var(--brass-warm) 82%, transparent 100%);
  opacity: 0;
  transition: width .55s cubic-bezier(.22,.61,.36,1), opacity .45s ease;
}
.topnav .wordmark:hover::after,
.topnav .wordmark:focus-visible::after { width: 84%; opacity: .9; }

/* the name warms to brass and opens slightly on hover/focus —
   text stays solid (always visible), motion comes from the
   transition, the hairline below, and the load settle-in */
.topnav .wordmark-word {
  color: var(--ink);
  transition: color .5s ease, letter-spacing .5s cubic-bezier(.22,.61,.36,1);
}
.topnav .wordmark:hover .wordmark-word,
.topnav .wordmark:focus-visible .wordmark-word {
  color: var(--brass);
  letter-spacing: 0.072em;
}

/* subline warms + opens up alongside the sweep */
.topnav .wordmark-sub { transition: color .4s ease, letter-spacing .4s ease; }
.topnav .wordmark:hover .wordmark-sub,
.topnav .wordmark:focus-visible .wordmark-sub { color: var(--brass); letter-spacing: 0.46em; }

/* one-time settle-in on load (respects reduced-motion) */
@media (prefers-reduced-motion: no-preference) {
  .topnav .wordmark-word { animation: wm-rise .85s cubic-bezier(.22,.61,.36,1) backwards; }
  .topnav .wordmark-sub  { animation: wm-track 1s .15s cubic-bezier(.22,.61,.36,1) backwards; }
}
@keyframes wm-rise {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: none; }
}
@keyframes wm-track {
  from { opacity: 0; letter-spacing: .66em; }
  to   { opacity: 1; letter-spacing: .42em; }
}

/* ── Top nav (public marketing) ── */
.topnav {
  position: sticky; top: 0; z-index: 60;
  background: var(--parchment);
  border-bottom: 1px solid var(--rule);
}
.topnav-bar1 {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px var(--gutter);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--ink-mute); border-bottom: 1px solid var(--rule-soft);
}
.topnav-bar1 a { text-decoration: none; color: var(--ink-mute); transition: color .15s; }
.topnav-bar1 a:hover { color: var(--brass); }
.topnav-bar2 {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px var(--gutter);
}
.topnav-links { display: flex; gap: 34px; align-items: center; }
.topnav-links a {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; transition: color .15s;
}
.topnav-links a:hover, .topnav-links a.active { color: var(--brass); }
.topnav-links.right { justify-content: flex-end; }

/* Nav CTA buttons keep their own contrast — `.topnav-links a` (above) is more
   specific than `.btn-ink`, which left the Find My Match button dark-on-dark.
   Restore the button text colours so the CTA is readable on every page. */
.topnav-links a.btn-ink,
.topnav-links a.btn-ink:hover,
.topnav-links a.btn-brass,
.topnav-links a.btn-brass:hover { color: var(--shell); }
.topnav-links a.btn-ghost { color: var(--ink); }

/* ── Footer ── */
.footer {
  background: var(--ink); color: var(--shell);
  padding: 80px var(--gutter) 32px;
  margin-top: 0;
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 56px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.10); }
.footer .wordmark-word { color: var(--shell); }
.footer .wordmark-sub  { color: rgba(255,255,255,0.4); }
.footer h4 {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--brass-bright); margin-bottom: 18px; font-weight: 500;
}
.footer a {
  display: block; font-size: 13px; color: rgba(255,255,255,0.55);
  text-decoration: none; margin-bottom: 10px; transition: color .15s;
}
.footer a:hover { color: var(--brass-bright); }
.footer-tagline {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: 18px; line-height: 1.4; color: rgba(255,255,255,0.7);
  max-width: 320px; margin-top: 14px;
}
.footer-bottom {
  display: flex; justify-content: space-between; padding-top: 28px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  color: rgba(255,255,255,0.35); flex-wrap: wrap; gap: 12px;
}

/* ============================================================
   APP CHROME — dashboard / CRM / seller / consumer
   ============================================================ */
.app {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.app-side {
  background: var(--shell);
  border-right: 1px solid var(--rule);
  padding: 28px 0;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
}
.app-side-brand { padding: 0 26px 28px; border-bottom: 1px solid var(--rule); }
.app-side-brand .wordmark { align-items: flex-start; }
.app-side-brand .wordmark-word { font-size: 24px; }
.app-side-brand .wordmark-sub  { font-size: 8px; letter-spacing: 0.38em; }
.app-side-section {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-faint); padding: 24px 26px 10px;
}
.app-side-nav { padding: 0 12px; display: flex; flex-direction: column; gap: 2px; }
.app-side-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; font-size: 13px; color: var(--ink-soft);
  text-decoration: none; transition: all .15s; font-weight: 500;
  border-left: 2px solid transparent;
}
.app-side-nav a:hover { background: var(--linen); color: var(--ink); }
.app-side-nav a.active {
  color: var(--ink); background: var(--linen); border-left-color: var(--brass);
}
.app-side-nav .pill {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em;
  padding: 2px 8px; background: var(--ink); color: var(--shell);
}
.app-side-foot {
  margin-top: auto; padding: 20px 26px; border-top: 1px solid var(--rule);
  display: flex; align-items: center; gap: 12px;
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brass); color: var(--shell);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic; font-size: 16px;
  flex-shrink: 0; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 28px; height: 28px; font-size: 13px; }
.avatar-lg { width: 56px; height: 56px; font-size: 22px; }

.app-main { background: var(--parchment); min-width: 0; }
.app-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 36px; background: var(--parchment);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 20;
}
.app-search {
  background: var(--shell); border: 1px solid var(--rule);
  padding: 10px 16px; min-width: 320px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; color: var(--ink-mute);
}
.app-search input {
  border: none; background: none; outline: none; flex: 1;
  font-family: var(--sans); font-size: 13px; color: var(--ink);
}
.app-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  width: 36px; height: 36px; border: 1px solid var(--rule);
  background: var(--shell); display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); transition: all .15s; position: relative;
}
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.icon-btn .dot {
  position: absolute; top: 8px; right: 8px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--hot);
}

.app-content { padding: 36px; max-width: 1400px; }
.app-h {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding-bottom: 22px; border-bottom: 1px solid var(--rule); margin-bottom: 28px;
  flex-wrap: wrap; gap: 14px;
}

/* ============================================================
   STATUS PILLS
   ============================================================ */
.pill-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 4px 10px;
  background: var(--vellum); color: var(--ink-soft); font-weight: 500;
  border: 1px solid var(--rule);
}
.pill-status::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink-mute);
}
.pill-hot    { background: rgba(184,90,62,0.10); color: var(--hot); border-color: rgba(184,90,62,0.25); }
.pill-hot::before    { background: var(--hot); }
.pill-warm   { background: rgba(201,158,90,0.14); color: #8a6a30; border-color: rgba(201,158,90,0.30); }
.pill-warm::before   { background: var(--brass); }
.pill-cold   { background: var(--vellum); color: var(--ink-mute); }
.pill-cold::before   { background: var(--ink-mute); }
.pill-new {
  background: var(--ink); color: var(--shell); border-color: var(--ink);
}
.pill-new::before { display: none; }
.pill-brass {
  background: var(--brass); color: var(--shell); border-color: var(--brass);
}
.pill-brass::before { display: none; }

/* ============================================================
   FORM CONTROLS
   ============================================================ */
.field {
  display: flex; flex-direction: column; gap: 6px;
}
.field-label {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-mute); font-weight: 500;
}
.field-input {
  background: var(--shell); border: 1px solid var(--rule);
  padding: 10px 14px; font-family: var(--sans); font-size: 14px; color: var(--ink);
  outline: none; transition: border-color .15s;
}
.field-input:focus { border-color: var(--brass); }
.field-input::placeholder { color: var(--ink-faint); }
select.field-input { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%231B1813' stroke-width='1'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; }

/* ============================================================
   PROPERTY CARD (shared)
   ============================================================ */
.prop-card {
  background: var(--shell); border: 1px solid var(--rule);
  display: flex; flex-direction: column; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
  text-decoration: none; color: inherit;
}
.prop-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -16px rgba(27,24,19,0.20); }
.prop-photo {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  background: var(--vellum);
}
.prop-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.prop-card:hover .prop-photo img { transform: scale(1.04); }
.prop-photo-frame {
  /* Diagonal-stripe placeholder when image fails */
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, var(--vellum) 0 14px, var(--linen) 14px 28px);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-mute);
}
.prop-tags {
  position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; flex-wrap: wrap;
}
.prop-body { padding: 22px 24px; flex: 1; display: flex; flex-direction: column; }
.prop-price {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 28px; line-height: 1; color: var(--ink); margin-bottom: 8px;
}
.prop-address { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 14px; line-height: 1.5; }
.prop-specs {
  display: flex; gap: 16px; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; color: var(--ink-mute); text-transform: uppercase;
  padding: 12px 0; border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft);
  flex-wrap: wrap;
}
.prop-specs span { display: inline-flex; align-items: center; gap: 6px; }
.prop-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; margin-top: 14px;
}
.prop-match {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--brass); text-transform: uppercase; font-weight: 500;
}

/* ── Section wrappers ── */
.section { padding: 100px var(--gutter); position: relative; z-index: 1; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-h {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: end; margin-bottom: 56px;
  padding-bottom: 22px; border-bottom: 1px solid var(--rule);
}
.section-h .right { text-align: left; }

/* ── Utility ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.grid-3 > * { background: var(--shell); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.grid-4 > * { background: var(--shell); }

.scrollbar-thin::-webkit-scrollbar { width: 8px; height: 8px; }
.scrollbar-thin::-webkit-scrollbar-thumb { background: var(--rule-strong); }
.scrollbar-thin::-webkit-scrollbar-track { background: transparent; }

/* ── Tiny icons (line, SVG drawn) ── */
.icon { width: 14px; height: 14px; flex-shrink: 0; }

/* ── Responsive bare minimum ── */
@media (max-width: 1100px) {
  :root { --gutter: 24px; }
  .app { grid-template-columns: 220px 1fr; }
}
@media (max-width: 800px) {
  .topnav-bar2 { grid-template-columns: 1fr auto; }
  .topnav-links { display: none; }
}
