/* ============================================================
   VITA ESTATES — luxury real estate, Prievidza
   Design tokens + components. Hand-written, no framework.
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, picture, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Tokens ---------- */
:root {
  /* crisp black & white with gold */
  --onyx:        #060607;           /* base near-black */
  --onyx-soft:   #0B0B0C;
  --graphite:    #111112;           /* card surface */
  --graphite-2:  #191919;
  --paper:       #F4F3F1;           /* light section — clean near-white */
  --paper-2:     #E7E6E3;

  --gold:        #C8A75E;           /* gold accent */
  --gold-bright: #E4C888;
  --gold-deep:   #9A7B39;

  --white:       #FFFFFF;
  --text:        #F5F5F4;
  --text-dim:    rgba(255,255,255,0.62);
  --text-mute:   rgba(255,255,255,0.40);

  --line:        rgba(255,255,255,0.10);
  --line-strong: rgba(255,255,255,0.20);
  --ink:         #0B0B0C;            /* text on paper */
  --ink-dim:     rgba(11,11,12,0.60);
  --line-ink:    rgba(11,11,12,0.13);

  --r:   3px;
  --r-lg: 6px;

  --ff-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --ff-sans:    "Jost", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
body {
  background: var(--onyx);
  color: var(--text);
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* selection */
::selection { background: var(--gold); color: var(--onyx); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0.005em;
}
.display {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.display em, .h-serif em { font-style: italic; color: var(--gold-bright); }
.h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
.h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--text-dim);
  font-weight: 300;
  max-width: 52ch;
  line-height: 1.7;
}

/* Eyebrow label — echoes the surveyor's-line motif */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.9;
}
.eyebrow--center { justify-content: center; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 11vw, 140px); position: relative; }
.section--tight { padding-block: clamp(56px, 8vw, 96px); }
.section-head { max-width: 62ch; }
.section-head .h2 { margin-top: 1rem; }
.section-head .lead { margin-top: 1.25rem; }
.center { text-align: center; margin-inline: auto; }
.divider { height: 1px; background: var(--line); border: 0; }

/* Vertical gold hairline motif */
.spine {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(var(--gold), transparent);
  opacity: 0.35;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent;
  --fg: var(--text);
  --bd: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0 1.7rem;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn .ico { width: 15px; height: 15px; }
.btn-gold  { --bg: var(--gold); --fg: var(--onyx); --bd: var(--gold); font-weight: 500; }
.btn-gold:hover  { --bg: var(--gold-bright); --bd: var(--gold-bright); }
.btn-light { --bg: var(--white); --fg: var(--onyx); --bd: var(--white); font-weight: 500; }
.btn-light:hover { --bg: #ece9e2; --bd: #ece9e2; }
.btn-ghost:hover { --bd: var(--gold); --fg: var(--gold-bright); }
.btn--sm { min-height: 44px; padding: 0 1.2rem; font-size: 0.74rem; }
.btn--wide { width: 100%; }

/* text link with underline sweep */
.tlink {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 3px;
  position: relative;
}
.tlink::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.tlink:hover::after { transform: scaleX(1); transform-origin: left; }
.tlink .ico { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.tlink:hover .ico { transform: translateX(4px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,11,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand__logo { height: 46px; width: auto; }
.brand__word { display: none; }
.nav__links { display: flex; align-items: center; gap: 2.2rem; }
.nav__link {
  font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim); position: relative; padding: 6px 0;
  transition: color .3s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--gold);
}
.nav__cta { display: flex; align-items: center; gap: 1rem; }
.nav__toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line-strong);
  border-radius: var(--r); background: transparent; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 18px; height: 1.5px; background: var(--text);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav__toggle span::before { transform: translateY(-6px); }
.nav__toggle span::after  { transform: translateY(4.5px); }
body.menu-open .nav__toggle span { background: transparent; }
body.menu-open .nav__toggle span::before { transform: rotate(45deg); }
body.menu-open .nav__toggle span::after  { transform: rotate(-45deg); }

/* mobile drawer */
.nav__drawer {
  position: fixed; inset: 84px 0 0 0; z-index: 99;
  background: var(--onyx); border-top: 1px solid var(--line);
  padding: var(--gutter);
  display: flex; flex-direction: column; gap: 0.4rem;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
body.menu-open .nav__drawer { opacity: 1; transform: none; pointer-events: auto; }
/* When the mobile menu is open, force a solid nav (no backdrop-filter) so the
   drawer's full-screen dark background stays fixed to the viewport.
   Otherwise iOS collapses it on scroll and the page shows through. */
body.menu-open .nav { background: var(--onyx); -webkit-backdrop-filter: none; backdrop-filter: none; }
body.menu-open { overflow: hidden; }
.nav__drawer { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.nav__drawer a.nav__link { font-size: 1.5rem; font-family: var(--ff-display); text-transform: none; letter-spacing: 0; padding: 0.6rem 0; border-bottom: 1px solid var(--line); color: var(--text); }
.nav__drawer .btn { margin-top: 1.5rem; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding-top: 84px; }
.hero__bg { position: absolute; inset: 0; z-index: -2; background: var(--graphite); }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,11,0.55) 0%, rgba(10,10,11,0.2) 30%, rgba(10,10,11,0.75) 78%, var(--onyx) 100%),
    linear-gradient(90deg, rgba(10,10,11,0.7) 0%, rgba(10,10,11,0.1) 60%);
}
.hero__inner { width: 100%; padding-bottom: clamp(36px, 5vw, 64px); }
.hero__eyebrow { margin-bottom: 1.6rem; }
.hero .display { max-width: 15ch; }
.hero__sub { margin-top: 1.8rem; max-width: 46ch; }
.hero__actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.scroll-cue {
  position: absolute; right: var(--gutter); bottom: clamp(36px,5vw,64px);
  writing-mode: vertical-rl; font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--text-mute); display: flex; align-items: center; gap: 1rem;
}
.scroll-cue::after { content: ""; width: 1px; height: 54px; background: linear-gradient(var(--gold), transparent); }

/* ---------- Search bar ---------- */
.search {
  margin-top: 2.6rem;
  background: rgba(22,23,27,0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  overflow: hidden;
}
.search__field { padding: 0.95rem 1.4rem; border-right: 1px solid var(--line); position: relative; }
.search__field label { display: block; font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.search__field select, .search__field input {
  width: 100%; background: transparent; border: 0; color: var(--text);
  font-size: 0.95rem; font-weight: 300; cursor: pointer;
}
.search__field select { appearance: none; }
.search__field select option { background: var(--graphite); color: var(--text); }
.search__submit { border: 0; }
.search__submit .btn { min-height: 100%; border-radius: 0; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.stat { background: var(--onyx); padding: clamp(1.6rem, 3vw, 2.6rem) 1rem; text-align: center; }
.stat__num { font-family: var(--ff-display); font-size: clamp(2.4rem, 4.5vw, 3.6rem); line-height: 1; color: var(--text); font-feature-settings: "tnum"; }
.stat__num small { color: var(--gold); }
.stat__label { margin-top: 0.7rem; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-mute); }

/* ---------- Split (about) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r-lg); }
.split__media .tag {
  position: absolute; left: -1px; bottom: 24px;
  background: var(--onyx); border: 1px solid var(--line-strong); border-left: 2px solid var(--gold);
  padding: 0.9rem 1.3rem; max-width: 78%;
}
.split__media .tag b { font-family: var(--ff-display); font-size: 1.6rem; font-weight: 500; }
.split__media .tag span { display:block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mute); }

/* ---------- Property cards ---------- */
.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.4rem); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.property { position: relative; display: flex; flex-direction: column; background: var(--graphite); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: border-color .4s var(--ease), transform .4s var(--ease); }
.property__link { position: absolute; inset: 0; z-index: 3; border-radius: var(--r-lg); }
.property__link:focus-visible { outline-offset: -3px; }
.property__title { transition: color .3s var(--ease); }
.property:hover .property__title { color: var(--gold-bright); }
.property:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.property__media { position: relative; aspect-ratio: 3/2.15; overflow: hidden; background: var(--graphite-2); }
.property__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.property:hover .property__media img { transform: scale(1.05); }
/* clickable affordance — diagonal arrow, appears on hover */
.property__media::after {
  content: ""; position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(6,6,7,0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7'/%3E%3Cpath d='M8 7h9v9'/%3E%3C/svg%3E") center / 16px no-repeat;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(-4px) scale(0.92);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.property:hover .property__media::after { opacity: 1; transform: none; }
.property__badge { position: absolute; top: 14px; left: 14px; background: rgba(10,10,11,0.72); backdrop-filter: blur(6px); border: 1px solid var(--line-strong); color: var(--text); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; padding: 0.4rem 0.7rem; border-radius: 2px; }
.property__price { position: absolute; bottom: 14px; right: 14px; background: var(--gold); color: var(--onyx); font-weight: 500; font-size: 0.98rem; letter-spacing: 0.02em; padding: 0.4rem 0.8rem; border-radius: 2px; font-feature-settings: "tnum"; }
.property__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.9rem; flex: 1; }
.property__loc { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.property__title { font-family: var(--ff-display); font-size: 1.5rem; font-weight: 500; line-height: 1.15; }
.property__meta { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; gap: 1.4rem; color: var(--text-dim); font-size: 0.82rem; }
.property__meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.property__meta .ico { width: 15px; height: 15px; color: var(--gold); }

/* ---------- Services ---------- */
.svc { padding: clamp(1.6rem, 3vw, 2.2rem); border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--graphite), var(--onyx-soft)); transition: border-color .4s var(--ease), transform .4s var(--ease); height: 100%; }
.svc:hover { border-color: var(--gold); transform: translateY(-4px); }
.svc__ico { width: 40px; height: 40px; color: var(--gold); margin-bottom: 1.3rem; }
.svc__ico svg { width: 100%; height: 100%; }
.svc h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.svc p { color: var(--text-dim); font-size: 0.94rem; }

/* ---------- Process (how it works) ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.step { padding: 2rem 1.6rem 2rem 0; border-top: 1px solid var(--line-strong); position: relative; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 46px; height: 2px; background: var(--gold); }
.step__num { font-family: var(--ff-display); font-size: 0.95rem; letter-spacing: 0.2em; color: var(--gold); }
.step h3 { font-size: 1.35rem; margin: 1rem 0 0.6rem; }
.step p { color: var(--text-dim); font-size: 0.9rem; padding-right: 1rem; }

/* ---------- Team ---------- */
.member { }
.member__media { position: relative; aspect-ratio: 3/3.6; overflow: hidden; border-radius: var(--r-lg); background: var(--graphite-2); filter: grayscale(1) contrast(1.02); transition: filter .5s var(--ease); }
.member:hover .member__media { filter: grayscale(0); }
.member__media img { width: 100%; height: 100%; object-fit: cover; }
.member__name { font-family: var(--ff-display); font-size: 1.5rem; margin-top: 1rem; }
.member__role { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-top: 0.2rem; }
.member__contact { margin-top: 0.7rem; font-size: 0.86rem; color: var(--text-dim); display: flex; flex-direction: column; gap: 0.15rem; }
.member__contact a:hover { color: var(--gold); }

/* ---------- Paper (light) section ---------- */
.section--paper { background: var(--paper); color: var(--ink); }
.section--paper .h2, .section--paper h3 { color: var(--ink); }
.section--paper .lead, .section--paper p { color: var(--ink-dim); }
.section--paper .eyebrow { color: var(--gold-deep); }
.section--paper .divider { background: var(--line-ink); }
.section--paper .step { border-top-color: rgba(11,11,12,0.18); }
.section--paper .step p { color: var(--ink-dim); }
.section--paper .cta-band { background: var(--onyx); color: var(--text); }
/* dark service cards keep light text even inside the light section */
.section--paper .svc h3 { color: var(--text); }
.section--paper .svc p  { color: var(--text-dim); }

/* ---------- CTA band ---------- */
.cta-band { border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: clamp(2.4rem, 5vw, 4.5rem); text-align: center; background: linear-gradient(180deg, var(--graphite), var(--onyx)); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); }
.cta-band .h2 { max-width: 20ch; margin-inline: auto; }
.cta-band .btn-row { margin-top: 2rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.55rem; }
.field .req { color: var(--gold-bright); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--onyx-soft); border: 1px solid var(--line-strong);
  border-radius: var(--r); padding: 0.9rem 1rem; color: var(--text); font-weight: 300;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: #0b0c0f; }
.field select { appearance: none; }
.field select option { background: var(--graphite); }
.form__note { font-size: 0.8rem; color: var(--text-mute); margin-top: 0.5rem; }
.form__success { display: none; border: 1px solid var(--gold); border-left: 2px solid var(--gold); background: rgba(198,169,124,0.08); padding: 1rem 1.2rem; border-radius: var(--r); color: var(--text); margin-bottom: 1.3rem; }
.form__success.show { display: block; }

.info-list { display: flex; flex-direction: column; gap: 1.6rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.info-item:last-child { border-bottom: 0; }
.info-item .ico { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 3px; }
.info-item h4 { font-family: var(--ff-sans); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 0.35rem; }
.info-item p, .info-item a { font-size: 1.05rem; color: var(--text); }
.info-item a:hover { color: var(--gold); }
.map { margin-top: 2rem; border: 1px solid var(--line-strong); border-radius: var(--r-lg); overflow: hidden; filter: grayscale(0.4) invert(0.9) hue-rotate(180deg) contrast(0.9); }
.map iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-top: calc(84px + clamp(60px, 10vw, 130px)); padding-bottom: clamp(40px, 6vw, 80px); position: relative; border-bottom: 1px solid var(--line); }
.page-hero .display { max-width: 20ch; }
.crumbs { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 1.4rem; }
.crumbs a:hover { color: var(--gold); }
.crumbs span { color: var(--gold); }

/* ---------- Filter bar ---------- */
.filters-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; margin-bottom: clamp(2rem,4vw,3rem); }
.filters-bar .filters { margin-bottom: 0; }
.filter-loc { display: inline-flex; align-items: center; gap: 0.7rem; }
.filter-loc__label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-mute); white-space: nowrap; }
.filter-loc select {
  background-color: var(--onyx-soft); border: 1px solid var(--line-strong); border-radius: 40px;
  color: var(--text); font-family: var(--ff-sans); font-weight: 300; font-size: 0.85rem;
  padding: 0.6rem 2.4rem 0.6rem 1.2rem; cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C8A75E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px;
  transition: border-color .3s var(--ease);
}
.filter-loc select:hover { border-color: var(--text-dim); }
.filter-loc select:focus { outline: none; border-color: var(--gold); }
.filter-loc select option { background: var(--graphite); color: var(--text); }
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: clamp(2rem,4vw,3rem); }
.chip { border: 1px solid var(--line-strong); background: transparent; color: var(--text-dim); border-radius: 40px; padding: 0.55rem 1.2rem; font-size: 0.78rem; letter-spacing: 0.06em; cursor: pointer; transition: all .3s var(--ease); }
.chip:hover { color: var(--text); border-color: var(--text-dim); }
.chip.active { background: var(--gold); color: var(--onyx); border-color: var(--gold); font-weight: 500; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: clamp(48px, 7vw, 84px) 2.5rem; background: var(--onyx-soft); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer__brand .brand__logo { height: 68px; }
.footer__brand p { margin-top: 1.3rem; color: var(--text-dim); font-size: 0.92rem; max-width: 34ch; }
.footer h4 { font-family: var(--ff-sans); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 1.3rem; }
.footer__links { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__links a { color: var(--text-dim); font-size: 0.94rem; transition: color .3s var(--ease); }
.footer__links a:hover { color: var(--gold); }
.footer__bottom { margin-top: clamp(2.5rem,5vw,4rem); padding-top: 2rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; color: var(--text-mute); font-size: 0.82rem; }
.socials { display: flex; gap: 0.6rem; }
.socials a { width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: var(--r); display: inline-flex; align-items: center; justify-content: center; color: var(--text-dim); transition: all .3s var(--ease); }
.socials a:hover { color: var(--onyx); background: var(--gold); border-color: var(--gold); }
.socials .ico { width: 17px; height: 17px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ---------- Focus visibility ---------- */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .step { padding-right: 1rem; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__cta { gap: 0.6rem; }
  .search { grid-template-columns: 1fr 1fr; }
  .search__submit { grid-column: 1 / -1; }
  .search__submit .btn { min-height: 54px; }
  .search__field:nth-child(2) { border-right: 0; }
  .split { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .grid--4 { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr; }
  .hero .display { max-width: 100%; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Property detail page ---------- */
.detail__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.detail__head .property__loc { font-size: 0.78rem; }
.detail__head .h1 { margin: 0.7rem 0 1.2rem; max-width: 22ch; }
.detail__head .property__meta { border: 0; padding: 0; margin: 0; }
.detail__price { text-align: right; }
.detail__badge { display: inline-block; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--line-strong); padding: 0.4rem 0.75rem; border-radius: 2px; margin-bottom: 0.9rem; }
.detail__pricebig { font-family: var(--ff-display); font-size: clamp(2.1rem, 4.5vw, 3.2rem); line-height: 1; color: var(--text); font-feature-settings: "tnum"; }
.detail__price .btn { margin-top: 1.3rem; }

.gallery { margin: 2.4rem 0 3rem; }
.gallery__main { aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--graphite-2); border: 1px solid var(--line); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; margin-top: 0.8rem; }
.gallery__thumbs button { padding: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--graphite-2); cursor: pointer; transition: border-color .3s var(--ease); }
.gallery__thumbs button.active { border-color: var(--gold); }
.gallery__thumbs button:hover { border-color: var(--line-strong); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.detail__main h2.h3 { margin-bottom: 1.1rem; }
.detail__main h2.h3 + h2.h3, .detail__main .features + h2.h3, .detail__main p + h2.h3 { margin-top: 2.6rem; }
.detail__main p { color: var(--text-dim); margin-bottom: 1rem; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem 1.6rem; }
.features li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--text-dim); font-size: 0.94rem; }
.features li::before { content: ""; width: 6px; height: 6px; margin-top: 0.5rem; background: var(--gold); transform: rotate(45deg); flex: none; }

.detail__aside { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 1.2rem; }
.infocard { border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--graphite), var(--onyx-soft)); padding: 1.7rem 1.7rem; }
.infocard h3 { font-family: var(--ff-sans); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 1.2rem; }
.infocard dl { display: grid; grid-template-columns: auto 1fr; gap: 0.85rem 1rem; }
.infocard dt { color: var(--text-mute); font-size: 0.9rem; }
.infocard dd { text-align: right; color: var(--text); font-size: 0.95rem; }
.contactcard { background: var(--onyx-soft); }
.contactcard p { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 1.2rem; }
.contactcard .btn { width: 100%; }
.notfound { text-align: center; padding: clamp(3rem, 8vw, 6rem) 0; }
.notfound .h2 { margin-bottom: 1rem; }

/* Agent card (detail page) */
.agentcard .agent { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.3rem; }
.agent__photo { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-strong); filter: grayscale(1); flex: none; }
.agent__name { font-family: var(--ff-display); font-size: 1.4rem; line-height: 1.1; }
.agent__role { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-top: 0.2rem; }
.agent__contact { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.4rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.agent__contact a { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text-dim); font-size: 0.95rem; }
.agent__contact a:hover { color: var(--gold); }
.agent__contact .ico { width: 17px; height: 17px; color: var(--gold); flex: none; }

/* Agent tag on listing cards */
.property__agent { display: flex; align-items: center; gap: 0.55rem; margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--text-dim); }
.property__agent img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; filter: grayscale(1); flex: none; }
.property__agent b { font-weight: 400; color: var(--text); }
.property__agent .lbl { color: var(--text-mute); }

@media (max-width: 860px) {
  .detail__grid { grid-template-columns: 1fr; }
  .detail__aside { position: static; }
  .detail__head { align-items: flex-start; }
  .detail__price { text-align: left; }
  .features { grid-template-columns: 1fr; }
}

/* ---------- Agent silhouette placeholders (no photos) ---------- */
.member__media { display: grid; place-items: center; filter: none; background: linear-gradient(180deg, var(--graphite), var(--onyx-soft)); }
.member:hover .member__media { filter: none; }
.member__media svg { width: 42%; height: auto; color: var(--text-mute); }

.agent__photo { display: grid; place-items: center; background: var(--graphite-2); }
.agent__photo svg { width: 55%; height: auto; color: var(--text-mute); }

.property__agent .ph { width: 26px; height: 26px; border-radius: 50%; background: var(--graphite-2); display: grid; place-items: center; flex: none; }
.property__agent .ph svg { width: 15px; height: 15px; color: var(--text-mute); }

/* ---------- Empty listings state ---------- */
.grid--empty { display: block; }
.empty-listings { text-align: center; padding: clamp(2.5rem, 6vw, 5rem) 1.5rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--graphite), var(--onyx-soft)); }
.empty-listings .lead { max-width: 46ch; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
