/* ---------- FAHROH design tokens (shared) ---------- */
:root {
  --background: oklch(0.978 0.012 110);
  --foreground: oklch(0.18 0.025 145);
  --card: oklch(1 0 0);
  --muted: oklch(0.93 0.015 105);
  --muted-foreground: oklch(0.45 0.025 140);
  --border: oklch(0.88 0.018 110);
  --forest: oklch(0.22 0.05 150);
  --pine: oklch(0.32 0.06 150);
  --sage: oklch(0.55 0.09 145);
  --fern: oklch(0.62 0.11 142);
  --moss: oklch(0.74 0.08 140);
  --meadow: oklch(0.85 0.06 135);
  --mint: oklch(0.94 0.025 145);
  --cream: oklch(0.96 0.022 100);
  --clay: oklch(0.78 0.07 35);
  --blush: oklch(0.86 0.05 20);
}
* { box-sizing: border-box; border-color: var(--border); }
html, body { margin: 0; padding: 0; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: "Libre Franklin", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.55;
}
h1, h2, h3, h4, .display { font-family: "Playfair Display", Georgia, serif; letter-spacing: -0.01em; font-weight: 500; margin: 0; line-height: 1.05; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: color-mix(in oklab, var(--foreground) 55%, transparent);
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 80%, transparent);
  background: color-mix(in oklab, var(--background) 85%, transparent);
  backdrop-filter: blur(10px);
}
.header-inner { max-width: 1280px; margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 16px; padding: 0 24px; }
.logo { font-family: "Playfair Display", Georgia, serif; font-weight: 700; letter-spacing: 0.18em; color: var(--forest); font-size: 18px; }
.nav { display: flex; gap: 4px; margin-left: 18px; }
.nav a {
  padding: 8px 14px; font-size: 13.5px; font-weight: 500;
  border-radius: 999px; color: color-mix(in oklab, var(--foreground) 75%, transparent);
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { background: color-mix(in oklab, var(--foreground) 5%, transparent); color: var(--foreground); }
.nav a.active { background: var(--foreground); color: var(--background); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.btn-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--card);
  font-size: 13px; font-weight: 500;
}
.btn-pill:hover { background: var(--cream); }
.btn-pill.primary { background: var(--pine); color: var(--cream); border-color: var(--pine); }
.btn-pill.primary:hover { background: var(--forest); }

/* ---------- footer ---------- */
.foot {
  margin-top: 80px;
  background: var(--forest); color: var(--cream);
}
.foot-inner { max-width: 1280px; margin: 0 auto; padding: 56px 24px 24px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot h4 { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: color-mix(in oklab, var(--cream) 60%, transparent); font-weight: 500; }
.foot ul { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot ul a { color: color-mix(in oklab, var(--cream) 80%, transparent); }
.foot ul a:hover { color: var(--cream); }
.foot-tag { color: color-mix(in oklab, var(--cream) 70%, transparent); font-size: 14px; line-height: 1.55; margin-top: 14px; max-width: 32ch; }
.foot-bot { border-top: 1px solid color-mix(in oklab, var(--cream) 12%, transparent); }
.foot-bot-inner { max-width: 1280px; margin: 0 auto; padding: 18px 24px; display: flex; justify-content: space-between; font-size: 12px; color: color-mix(in oklab, var(--cream) 50%, transparent); }
.foot-bot-inner .mono-tag { font-family: "IBM Plex Mono", monospace; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- shared utils ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.eyebrow-mono { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-foreground); }
.tag-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--meadow); color: var(--forest);
  font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
}
.verified-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px;
  background: color-mix(in oklab, var(--meadow) 70%, transparent);
  color: var(--forest);
  font-family: "IBM Plex Mono", monospace; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase;
}

/* property card */
.prop-card {
  display: block; overflow: hidden; border-radius: 18px; background: var(--card); border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.prop-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -16px color-mix(in oklab, var(--forest) 40%, transparent); }
.prop-card .img-wrap { aspect-ratio: 4/3; overflow: hidden; background: var(--muted); position: relative; }
.prop-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.prop-card:hover img { transform: scale(1.04); }
.prop-card .body { padding: 16px; }
.prop-card .title { font-family: "Playfair Display", serif; font-size: 18px; line-height: 1.15; margin-top: 4px; }
.prop-card .price { font-family: "IBM Plex Mono", monospace; font-size: 13px; margin-top: 8px; }
.prop-card .meta-line { font-size: 12px; color: var(--muted-foreground); margin-top: 4px; display: flex; gap: 10px; }
.prop-card .img-badge {
  position: absolute; top: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: 4px;
  background: color-mix(in oklab, var(--background) 92%, transparent);
  padding: 4px 8px; border-radius: 999px; font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
}
.prop-card .img-fav {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 999px;
  background: color-mix(in oklab, var(--background) 90%, transparent);
  display: grid; place-items: center;
  cursor: pointer;
}
.prop-card .img-fav.on { background: var(--clay); color: white; }
.prop-card .img-fav.on svg { fill: currentColor; }
.prop-card .img-verified {
  position: absolute; bottom: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--forest); color: var(--cream);
  padding: 4px 9px; border-radius: 999px;
  font-family: "IBM Plex Mono", monospace; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
}

/* ---------- responsive header ---------- */
.link-quiet {
  font-size: 13px; font-weight: 500; padding: 8px 10px; color: color-mix(in oklab, var(--foreground) 80%, transparent);
}
.link-quiet:hover { color: var(--foreground); }
.hamburger {
  display: none; width: 38px; height: 38px; border-radius: 999px; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: var(--card);
}
.mobile-drawer {
  position: fixed; inset: 0; background: rgba(20,30,22,0.5); z-index: 60;
  display: flex; justify-content: flex-end;
  animation: fadein 0.2s ease;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.drawer-card {
  width: min(86vw, 340px); height: 100%; background: var(--background); padding: 20px;
  display: flex; flex-direction: column; gap: 18px;
  animation: slidein 0.25s ease;
}
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.drawer-nav { display: flex; flex-direction: column; gap: 4px; }
.drawer-nav a {
  padding: 12px 14px; border-radius: 12px; font-size: 16px; font-weight: 500;
  font-family: "Playfair Display", serif;
}
.drawer-nav a:hover { background: var(--mint); }
.drawer-nav a.active { background: var(--forest); color: var(--cream); }
.drawer-divide { height: 1px; background: var(--border); margin: 8px 0; }

@media (max-width: 960px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .hide-sm { display: none; }
}
@media (max-width: 720px) {
  .foot-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-bot-inner { flex-direction: column; gap: 8px; }
}

/* ---------- Faro AI assistant ---------- */
.faro-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 18px 12px 14px; border-radius: 999px;
  background: var(--forest); color: var(--cream);
  box-shadow: 0 14px 40px -10px rgba(20,40,25,0.35);
  font-family: "IBM Plex Mono", monospace; font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
  transition: transform 0.2s;
}
.faro-fab:hover { transform: translateY(-2px); }
.faro-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 100px));
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border); border-radius: 22px; overflow: hidden;
  box-shadow: 0 24px 70px -20px rgba(20,40,25,0.35);
}
.faro-panel header {
  padding: 16px 18px; display: flex; align-items: center; justify-content: space-between;
  background: var(--forest); color: var(--cream);
}
.faro-panel header strong { font-family: "Playfair Display", serif; font-size: 18px; font-weight: 500; }
.faro-tag { font-family: "IBM Plex Mono", monospace; font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: color-mix(in oklab, var(--cream) 60%, transparent); margin-left: 10px; }
.faro-panel header button { color: var(--cream); }
.faro-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: color-mix(in oklab, var(--cream) 30%, var(--background)); }
.faro-msg { padding: 10px 14px; border-radius: 14px; max-width: 85%; font-size: 14px; line-height: 1.5; }
.faro-msg.faro { background: var(--card); border: 1px solid var(--border); }
.faro-msg.you { background: var(--forest); color: var(--cream); align-self: flex-end; }
.faro-msg.typing { display: inline-flex; gap: 4px; }
.faro-msg.typing span { width: 6px; height: 6px; border-radius: 999px; background: var(--muted-foreground); animation: bounce 1s infinite; }
.faro-msg.typing span:nth-child(2) { animation-delay: 0.15s; }
.faro-msg.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%,80%,100% { transform: translateY(0); opacity: 0.5; } 40% { transform: translateY(-4px); opacity: 1; } }
.faro-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: var(--card); }
.faro-input input { flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; font-family: inherit; background: var(--background); color: var(--foreground); }
.faro-input input:focus { outline: 2px solid var(--sage); outline-offset: 1px; }
.faro-input button { width: 38px; height: 38px; border-radius: 999px; background: var(--forest); color: var(--cream); display: grid; place-items: center; }
.faro-input button:disabled { opacity: 0.5; }

/* ---------- generic page chrome ---------- */
.page-wrap { max-width: 1280px; margin: 0 auto; padding: 48px 24px 80px; }
.page-head { padding: 48px 0 32px; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.page-head .eyebrow-mono { color: var(--sage); }
.page-head h1 { font-size: clamp(40px, 6vw, 72px); margin-top: 12px; max-width: 16ch; }
.page-head h1 em { font-style: italic; color: var(--sage); }
.page-head p.lede { margin-top: 18px; font-size: 17px; color: color-mix(in oklab, var(--foreground) 78%, transparent); max-width: 64ch; line-height: 1.55; }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--forest); color: var(--cream);
  padding: 14px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
}
.btn-primary:hover { background: var(--pine); }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--card); color: var(--foreground); border: 1px solid var(--border);
  padding: 14px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
}
.btn-secondary:hover { background: var(--cream); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-foreground); }
.field input, .field select, .field textarea {
  padding: 13px 14px; border: 1px solid var(--border); border-radius: 12px; font-size: 15px; font-family: inherit;
  background: var(--card); color: var(--foreground);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--sage); outline-offset: 1px; }
.field-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

.card-pad { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 28px; }

/* grid utility */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }

/* status pills */
.status-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--sage); display: inline-block; }
.status-dot.warn { background: var(--clay); }
.status-dot.muted { background: var(--muted-foreground); }

/* progress steps */
.steps { display: flex; gap: 0; align-items: center; flex-wrap: wrap; }
.step { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted-foreground); }
.step .dot { width: 22px; height: 22px; border-radius: 999px; border: 1px solid var(--border); display: grid; place-items: center; font-family: "IBM Plex Mono", monospace; font-size: 11px; }
.step.done .dot, .step.active .dot { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.step.active { color: var(--foreground); font-weight: 500; }
.step-line { flex: 1; height: 1px; background: var(--border); margin: 0 12px; min-width: 18px; }
.step.done + .step-line { background: var(--forest); }
