/* =========================================================
   Design tokens
   ========================================================= */
:root {
  /* Ink + surfaces */
  --ink:            #16211d;
  --ink-2:          #2c3a35;
  --muted:          #5f6f68;
  --faint:          #8b9a93;
  --line:           #e2ded5;
  --line-soft:      #efece5;

  --bg:             #fbf9f5;
  --surface:        #ffffff;
  --surface-2:      #f5f2eb;
  --deep:           #12211c;
  --deep-2:         #1b302a;

  /* Accent */
  --gold:           #b08432;
  --gold-soft:      #d9b877;
  --gold-wash:      #f6efe0;
  --green:          #1f6b52;
  --whatsapp:       #25d366;
  --danger:         #b23b30;

  /* Type */
  --display: "Fraunces", "Georgia", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Space + shape */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --pad:  clamp(20px, 5vw, 64px);
  --maxw: 1240px;

  --shadow-sm: 0 1px 2px rgba(22, 33, 29, .05), 0 2px 8px rgba(22, 33, 29, .04);
  --shadow:    0 2px 6px rgba(22, 33, 29, .05), 0 12px 32px rgba(22, 33, 29, .08);
  --shadow-lg: 0 4px 12px rgba(22, 33, 29, .06), 0 28px 64px rgba(22, 33, 29, .14);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* =========================================================
   Layout helpers
   ========================================================= */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(56px, 9vw, 112px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--dark { background: var(--deep); color: #d6ddd9; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--alt { background: var(--surface-2); }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold-soft); }
.eyebrow--center { justify-content: center; }

.section-head { max-width: 660px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.section--dark .section-head p { color: #a9b7b1; }

.head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px);
}
.head-row .section-head { margin-bottom: 0; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: #24332d; box-shadow: var(--shadow); }

.btn--gold { background: var(--gold); color: #fff; box-shadow: 0 6px 18px rgba(176, 132, 50, .28); }
.btn--gold:hover { background: #9c7429; }

.btn--wa { background: var(--whatsapp); color: #06301a; box-shadow: 0 6px 18px rgba(37, 211, 102, .3); }
.btn--wa:hover { background: #1cc65a; }

.btn--ghost { border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--ink); background: var(--surface); }

.btn--light { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.24); backdrop-filter: blur(6px); }
.btn--light:hover { background: rgba(255,255,255,.2); }

.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; color: var(--ink);
  border-bottom: 1px solid var(--gold-soft); padding-bottom: 3px;
  transition: gap .2s var(--ease), color .2s var(--ease);
}
.link-arrow:hover { gap: 13px; color: var(--gold); }
.section--dark .link-arrow { color: #fff; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 249, 245, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: var(--ink); color: var(--gold-soft);
  display: grid; place-items: center;
  font-family: var(--display); font-size: 17px; font-weight: 600;
  letter-spacing: .02em;
}
.brand__mark img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--ink); }
.brand__role { font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--faint); font-weight: 500; }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  position: relative; padding-block: 6px;
  transition: color .2s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--ink); font-weight: 600; }

.nav__cta { display: flex; align-items: center; gap: 12px; flex: none; }

.nav__toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); place-items: center; background: var(--surface);
}
.nav__toggle span {
  display: block; width: 18px; height: 1.5px; background: var(--ink);
  position: relative; transition: background .2s var(--ease);
}
.nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink);
  transition: transform .25s var(--ease);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top: 6px; }
body.nav-open .nav__toggle span { background: transparent; }
body.nav-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav__toggle span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav__links { gap: 22px; }
  .nav__links a { font-size: 14.5px; }
}

/* The trading name is long, and .brand is flex:none, so on a narrow phone it
   pushed the menu button off the right edge. Let it shrink and step the type
   down instead. */
@media (max-width: 560px) {
  .brand { min-width: 0; flex: 1 1 auto; }
  .brand__text { min-width: 0; }
  .brand__name { font-size: 15.5px; line-height: 1.2; }
  .brand__role { font-size: 10px; letter-spacing: .1em; }
}

@media (max-width: 1023px) {
  .nav__links, .nav__cta .btn--desktop { display: none; }
  .nav__toggle { display: grid; }
  .nav {
    height: 68px;
  }
  .nav__links {
    position: fixed; inset: 68px 0 auto; z-index: 59;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 24px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease);
  }
  body.nav-open .nav__links { display: flex; opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 15px 0; border-bottom: 1px solid var(--line-soft); font-size: 17px; }
  .nav__links a::after { display: none; }
  .nav__links .btn { margin-top: 18px; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; background: var(--deep); color: #fff; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 78% 12%, rgba(176,132,50,.28), transparent 58%),
    linear-gradient(180deg, rgba(18,33,28,.4) 0%, rgba(18,33,28,.86) 72%, var(--deep) 100%);
  pointer-events: none;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero__inner {
  position: relative; z-index: 2;
  padding-block: clamp(72px, 12vw, 148px);
  max-width: 780px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(36px, 6.2vw, 68px);
  line-height: 1.04;
  margin-bottom: 22px;
}
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero__lede { font-size: clamp(16px, 2vw, 19px); color: #c6d1cc; max-width: 560px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.hero .eyebrow { color: var(--gold-soft); }
.hero .eyebrow::before { background: var(--gold); }

.hero__trust { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; }
.hero__trust li { display: flex; align-items: center; gap: 9px; font-size: 14px; color: #b9c6c0; }
.hero__trust svg { width: 17px; height: 17px; color: var(--gold-soft); flex: none; }

/* Hero search bar */
.searchbar {
  position: relative; z-index: 3;
  margin-top: -38px; margin-bottom: 0;
}
.searchbar__inner {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label {
  font-size: 11px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase;
  color: var(--faint); padding-left: 14px;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%235f6f68' stroke-width='1.6'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 11px;
  padding-right: 36px;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,132,50,.14);
}
.field input::placeholder, .field textarea::placeholder { color: #a8b3ae; }
.searchbar .btn { height: 46px; }

@media (max-width: 860px) {
  .searchbar__inner { grid-template-columns: 1fr 1fr; }
  .searchbar__inner .btn { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .searchbar__inner { grid-template-columns: 1fr; }
}

/* =========================================================
   Stats
   ========================================================= */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; }
.stats li { background: var(--bg); padding: 28px 22px; text-align: center; }
.stats b { display: block; font-family: var(--display); font-size: clamp(28px, 3.6vw, 40px); color: var(--ink); line-height: 1; margin-bottom: 8px; }
.stats span { font-size: 13px; color: var(--muted); letter-spacing: .01em; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* =========================================================
   Property cards
   ========================================================= */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

.pcard {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line); }

.pcard__media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
/* Portrait developer posters are shown whole rather than cropped through
   their own headline - see POSTER_CHECK in main.js. */
.pcard__media img.is-poster,
.gallery__main img.is-poster {
  object-fit: contain;
  background: var(--surface-2);
}
.pcard:hover .pcard__media img { transform: scale(1.05); }

.pcard__tags { position: absolute; top: 14px; left: 14px; display: flex; gap: 7px; flex-wrap: wrap; }
.tag {
  font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 999px;
  background: rgba(255,255,255,.94); color: var(--ink); backdrop-filter: blur(4px);
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.tag--gold { background: var(--gold); color: #fff; }
.tag--sold { background: var(--danger); color: #fff; }
.tag--reserved { background: #2c3a35; color: #fff; }

.pcard__count {
  position: absolute; bottom: 14px; right: 14px;
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: #fff;
  background: rgba(18,33,28,.72); padding: 5px 10px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.pcard__count svg { width: 13px; height: 13px; }

.pcard__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.pcard__loc {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted); margin-bottom: 8px;
}
.pcard__loc svg { width: 14px; height: 14px; color: var(--gold); flex: none; }
.pcard__title { font-size: 19px; margin: 0 0 12px; line-height: 1.25; }
.pcard__title a { transition: color .2s var(--ease); }
.pcard:hover .pcard__title a { color: var(--gold); }

.pcard__price {
  font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--ink);
  display: flex; align-items: baseline; gap: 6px; margin-bottom: 14px;
}
.pcard__price small { font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--muted); }

.pcard__specs {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  padding-top: 14px; margin-top: auto;
  border-top: 1px solid var(--line-soft);
  font-size: 13px; color: var(--muted);
}
.pcard__specs li { display: flex; align-items: center; gap: 6px; }
.pcard__specs svg { width: 15px; height: 15px; color: var(--faint); flex: none; }

/* image placeholder when no photo is set yet */
.ph {
  width: 100%; height: 100%;
  display: grid; place-items: center; gap: 8px;
  background: linear-gradient(140deg, #ece7dc 0%, #f6f2e9 48%, #e5ddcd 100%);
  color: #a5977c; text-align: center; padding: 16px;
}
.ph svg { width: 34px; height: 34px; opacity: .75; }
.ph span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }

/* =========================================================
   Filters
   ========================================================= */
.filters {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}
.filters__row { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1fr 1fr auto; gap: 12px; align-items: end; }
@media (max-width: 1180px) { .filters__row { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 980px) { .filters__row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .filters__row { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; }
.chip {
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 14px; font-weight: 500; color: var(--muted);
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.results-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-bottom: 22px;
  font-size: 14px; color: var(--muted);
}
.results-meta b { color: var(--ink); }

.empty {
  text-align: center; padding: 72px 24px;
  border: 1px dashed var(--line); border-radius: var(--r-lg); background: var(--surface);
}
.empty svg { width: 42px; height: 42px; color: var(--faint); margin: 0 auto 18px; }
.empty h3 { font-size: 21px; margin-bottom: 8px; }
.empty p { color: var(--muted); max-width: 380px; margin: 0 auto 22px; }

/* =========================================================
   Services / feature cards
   ========================================================= */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(16px, 2.2vw, 26px); }

.scard {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.scard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.scard__icon {
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--gold-wash); color: var(--gold);
  display: grid; place-items: center; margin-bottom: 20px;
}
.scard__icon svg { width: 23px; height: 23px; }
.scard h3 { font-size: 20px; margin-bottom: 10px; }
.scard p { color: var(--muted); font-size: 15px; margin: 0; }

.section--dark .scard {
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.1);
}
.section--dark .scard p { color: #a9b7b1; }
.section--dark .scard__icon { background: rgba(176,132,50,.18); color: var(--gold-soft); }

/* =========================================================
   Process steps
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 30px; }
.step { position: relative; padding-top: 26px; border-top: 2px solid var(--line); }
.step::before {
  content: ""; position: absolute; top: -2px; left: 0; width: 46px; height: 2px; background: var(--gold);
}
.step b {
  font-family: var(--display); font-size: 13px; letter-spacing: .1em;
  color: var(--gold); display: block; margin-bottom: 10px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }
.section--dark .step { border-top-color: rgba(255,255,255,.16); }
.section--dark .step p { color: #a9b7b1; }

/* =========================================================
   Companies
   ========================================================= */
.companies { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.company {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r); padding: 22px;
}
.company__logo {
  width: 52px; height: 52px; border-radius: 12px; flex: none;
  background: var(--ink); color: var(--gold-soft);
  display: grid; place-items: center;
  font-family: var(--display); font-size: 19px; font-weight: 600;
}
.company__logo img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; background: #fff; padding: 6px; }
.company h3 { font-size: 17px; margin-bottom: 3px; }
.company__role {
  font-size: 11px; letter-spacing: .11em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 8px; display: block;
}
.company p { font-size: 14px; color: var(--muted); margin: 0; }

/* =========================================================
   Testimonials
   ========================================================= */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.quote {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: 30px 28px;
  display: flex; flex-direction: column;
}
.quote__stars { display: flex; gap: 3px; color: var(--gold); margin-bottom: 16px; }
.quote__stars svg { width: 16px; height: 16px; }
.quote p { font-size: 16px; color: var(--ink-2); line-height: 1.7; flex: 1; }
.quote footer { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.quote__av {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: var(--gold-wash); color: var(--gold);
  display: grid; place-items: center; font-weight: 600; font-size: 15px;
}
.quote__who b { display: block; font-size: 15px; color: var(--ink); }
.quote__who span { font-size: 13px; color: var(--faint); }

/* =========================================================
   FAQ
   ========================================================= */
.faq { max-width: 780px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; font-size: 17px; font-weight: 600; color: var(--ink);
  font-family: var(--display);
}
.faq__q svg { width: 20px; height: 20px; color: var(--gold); flex: none; transition: transform .3s var(--ease); }
.faq__item.is-open .faq__q svg { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq__a p { color: var(--muted); padding-bottom: 22px; margin: 0; font-size: 15.5px; }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band {
  background: var(--deep); color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(36px, 6vw, 64px);
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 140% at 88% 10%, rgba(176,132,50,.34), transparent 60%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 12px; }
.cta-band p { color: #b9c6c0; margin: 0; max-width: 520px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } }

/* =========================================================
   Page header (inner pages)
   ========================================================= */
.pagehead {
  background: var(--deep); color: #fff;
  padding-block: clamp(48px, 7vw, 86px);
  position: relative; overflow: hidden;
}
.pagehead::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 130% at 85% 0%, rgba(176,132,50,.26), transparent 58%);
}
.pagehead > * { position: relative; z-index: 1; }
.pagehead h1 { color: #fff; font-size: clamp(30px, 5vw, 52px); margin-bottom: 14px; }
.pagehead p { color: #b9c6c0; max-width: 560px; font-size: 17px; margin: 0; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #8fa39b; margin-bottom: 18px; }
.crumbs a:hover { color: var(--gold-soft); }

/* =========================================================
   Property detail
   ========================================================= */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: clamp(28px, 4vw, 52px); align-items: start; }
@media (max-width: 1000px) { .detail { grid-template-columns: 1fr; } }

.gallery { margin-bottom: 34px; }
.gallery__main {
  aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface-2); margin-bottom: 12px; position: relative;
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.94); color: var(--ink);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: background .2s var(--ease);
}
.gallery__nav:hover { background: #fff; }
.gallery__nav svg { width: 19px; height: 19px; }
.gallery__nav--prev { left: 16px; }
.gallery__nav--next { right: 16px; }
.gallery__thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery__thumbs button {
  width: 96px; height: 68px; border-radius: 10px; overflow: hidden; flex: none;
  border: 2px solid transparent; opacity: .62; transition: all .2s var(--ease);
  background: var(--surface-2);
}
.gallery__thumbs button.is-active, .gallery__thumbs button:hover { opacity: 1; border-color: var(--gold); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.spec-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--line-soft);
  border: 1px solid var(--line-soft); border-radius: var(--r);
  overflow: hidden; margin-bottom: 34px;
}
.spec-grid li { background: var(--surface); padding: 20px 18px; }
.spec-grid span {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--faint); font-weight: 600; margin-bottom: 7px;
}
.spec-grid span svg { width: 14px; height: 14px; color: var(--gold); }
.spec-grid b { font-size: 16px; color: var(--ink); font-weight: 600; }

.prose { font-size: 16.5px; color: var(--ink-2); line-height: 1.75; }
.prose h2 { font-size: 24px; margin-top: 38px; }
.prose h2:first-child { margin-top: 0; }

.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 24px; margin-top: 8px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--ink-2); }
.feature-list svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 2px; }

/* Sticky agent card */
.agent-card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  position: sticky; top: 96px;
}
.agent-card__price {
  font-family: var(--display); font-size: 30px; color: var(--ink); line-height: 1.1;
  padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line-soft);
}
.agent-card__price small { display: block; font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 6px; }
.agent-card__who { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.agent-card__av {
  width: 56px; height: 56px; border-radius: 50%; flex: none; overflow: hidden;
  background: var(--gold-wash); color: var(--gold);
  display: grid; place-items: center; font-family: var(--display); font-size: 20px; font-weight: 600;
  position: relative;
}
.agent-card__av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.agent-card__who b { display: block; font-size: 16px; color: var(--ink); }
.agent-card__who span { font-size: 13px; color: var(--muted); }
.agent-card .btn + .btn { margin-top: 10px; }
.agent-card__note {
  font-size: 12.5px; color: var(--faint); text-align: center; margin: 16px 0 0; line-height: 1.5;
}

/* =========================================================
   Forms
   ========================================================= */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.form-card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: clamp(24px, 4vw, 38px);
  box-shadow: var(--shadow-sm);
}
.form-note { font-size: 13px; color: var(--faint); margin: 14px 0 0; }

.contact-grid { display: grid; grid-template-columns: 1fr 400px; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; } }

.info-list li {
  display: flex; gap: 15px; align-items: flex-start;
  padding: 18px 0; border-bottom: 1px solid var(--line-soft);
}
.info-list li:last-child { border-bottom: none; }
.info-list__icon {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: var(--gold-wash); color: var(--gold); display: grid; place-items: center;
}
.info-list__icon svg { width: 19px; height: 19px; }
.info-list b { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 3px; }
.info-list a, .info-list p { font-size: 16px; color: var(--ink); margin: 0; }
.info-list a:hover { color: var(--gold); }

/* =========================================================
   About page
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: clamp(30px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.portrait {
  border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5;
  background: var(--surface-2); position: relative; box-shadow: var(--shadow);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--deep); color: #9fb0a9; padding-block: clamp(48px, 6vw, 72px) 32px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__role { color: var(--gold-soft); }
.site-footer h4 {
  color: #fff; font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; margin-bottom: 16px;
}
.footer-links li { margin-bottom: 11px; }
.footer-links a { font-size: 14.5px; transition: color .2s var(--ease); }
.footer-links a:hover { color: var(--gold-soft); }
/* Contact column: icon + label, so WhatsApp / phone / email / address are
   scannable rather than four lines of similar-looking text. */
.footer-contact li { margin-bottom: 12px; }
.footer-contact li > a,
.footer-contact li > span {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  transition: color .2s var(--ease);
}
.footer-contact svg {
  width: 16px; height: 16px;
  flex: none;
  margin-top: 4px;
  color: var(--gold-soft);
}
/* WhatsApp and phone rows show the same number, so with the labels gone the
   icon is the only thing telling them apart. Give WhatsApp its own colour -
   people recognise it instantly and stop tapping the dialler by mistake. */
.footer-contact li:first-child svg { color: var(--whatsapp); }

/* Honeypot. Positioned away rather than display:none, which the more
   careful bots know to skip. Real visitors never see or tab into it. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.footer-contact li > a > span,
.footer-contact li > span > span { overflow-wrap: break-word; }
/* A phone number should wrap to its own line rather than split down the
   middle when the column gets narrow. */
.footer-contact .nb { white-space: nowrap; }
.footer-contact a:hover { color: var(--gold-soft); }

.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.16); display: grid; place-items: center;
  transition: all .2s var(--ease);
}
.socials a:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.socials svg { width: 17px; height: 17px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 24px; font-size: 13px; color: #7d8f88;
}

/* =========================================================
   Floating WhatsApp
   ========================================================= */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 55;
  display: flex; align-items: center; gap: 10px;
  background: var(--whatsapp); color: #06301a;
  padding: 13px 20px 13px 15px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  box-shadow: 0 8px 26px rgba(37,211,102,.4);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(37,211,102,.5); }
.wa-float svg { width: 24px; height: 24px; flex: none; }
@media (max-width: 640px) {
  .wa-float { right: 14px; bottom: 14px; padding: 14px; }
  .wa-float span { display: none; }
}

/* =========================================================
   Toast
   ========================================================= */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: all .3s var(--ease); z-index: 200;
  max-width: calc(100vw - 40px); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast--bad { background: var(--danger); }

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Admin
   ========================================================= */
.admin-bar {
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--pad); flex-wrap: wrap;
}
.admin-bar b { font-family: var(--display); font-size: 17px; }
.admin-bar__right { display: flex; align-items: center; gap: 12px; font-size: 14px; }

.admin-layout { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 1000px) { .admin-layout { grid-template-columns: 1fr; } }

.admin-list { display: flex; flex-direction: column; gap: 10px; }
.admin-row {
  display: flex; gap: 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r); padding: 12px 14px;
}
.admin-row__thumb { width: 64px; height: 48px; border-radius: 8px; overflow: hidden; flex: none; background: var(--surface-2); }
.admin-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-row__main { flex: 1; min-width: 0; }
.admin-row__main b { display: block; font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-row__main span { font-size: 13px; color: var(--muted); }
.admin-row__acts { display: flex; gap: 6px; flex: none; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--muted); background: var(--surface);
  transition: all .18s var(--ease);
}
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.icon-btn--danger:hover { border-color: var(--danger); color: var(--danger); background: #fdf3f2; }
.icon-btn svg { width: 16px; height: 16px; }

.dropzone {
  border: 2px dashed var(--line); border-radius: var(--r);
  padding: 26px; text-align: center; color: var(--muted);
  transition: all .2s var(--ease); cursor: pointer; background: var(--surface-2);
}
.dropzone:hover, .dropzone.is-over { border-color: var(--gold); background: var(--gold-wash); color: var(--gold); }
.dropzone svg { width: 28px; height: 28px; margin: 0 auto 10px; }

.thumb-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.thumb-strip figure {
  position: relative; width: 88px; height: 66px; border-radius: 10px; overflow: hidden;
  margin: 0; background: var(--surface-2); border: 1px solid var(--line-soft);
}
.thumb-strip img { width: 100%; height: 100%; object-fit: cover; }
.thumb-strip button {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(18,33,28,.8); color: #fff; display: grid; place-items: center; font-size: 13px; line-height: 1;
}
.thumb-strip figure:first-child::after {
  content: "COVER"; position: absolute; left: 4px; bottom: 4px;
  font-size: 8px; font-weight: 700; letter-spacing: .08em;
  background: var(--gold); color: #fff; padding: 2px 5px; border-radius: 4px;
}

.gate { max-width: 400px; margin: clamp(60px, 12vh, 130px) auto; }

/* utilities */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 32px; }
.hide { display: none !important; }
.muted { color: var(--muted); }

/* =========================================================
   Admin: enquiries inbox
   ========================================================= */
.admin-tabs { display: flex; gap: 6px; }
.admin-tab {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: #9fb0a9;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.admin-tab:hover { color: #fff; }
.admin-tab.is-active { background: rgba(255,255,255,.12); color: #fff; }
.admin-tab__badge {
  min-width: 20px; padding: 1px 6px; border-radius: 999px;
  background: var(--gold); color: #fff; font-size: 12px; text-align: center;
}

.lead {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px 20px; margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.lead.is-handled { opacity: .62; }
.lead__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.lead__head b { font-size: 16px; color: var(--ink); }
.lead__when { display: block; font-size: 12.5px; color: var(--faint); margin-top: 2px; }
.lead__tag {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted);
  flex: none;
}
.lead__tag--new { background: var(--gold-wash); color: var(--gold); }

.lead__meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px 20px; margin: 14px 0 0;
}
.lead__meta div { min-width: 0; }
.lead__meta dt {
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint);
}
.lead__meta dd { margin: 2px 0 0; font-size: 14.5px; color: var(--ink-2); overflow-wrap: break-word; }

.lead__msg {
  margin: 14px 0 0; padding: 12px 14px;
  background: var(--surface-2); border-radius: var(--r-sm);
  font-size: 14.5px; white-space: pre-wrap; overflow-wrap: break-word;
}
.lead__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
