/* Ceiba — quiet, generous and emotional. Big type, lots of space, one idea per screen. */
:root {
  --forest: #1f3d2e;
  --forest-deep: #142a1f;
  --ink: #17201c;
  --muted: #56615a;
  --paper: #fcfaf6;
  --white: #ffffff;
  --cream: #f4ede1;
  --sand: #e8dcc6;
  --terracotta: #a94e2c;
  --gold: #d6a84e;
  --gold-soft: #f6ead0;
  --whatsapp: #17773f;
  --whatsapp-dark: #115e31;
  --line: rgba(23, 32, 28, 0.12);
  --focus: #e0a526;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 22px;
  --shadow-soft: 0 1px 2px rgba(23, 32, 28, 0.04), 0 12px 40px rgba(23, 32, 28, 0.08);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
img.img-broken { visibility: hidden; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 0.45em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--forest); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.small { font-size: 0.9rem; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); padding: 12px 18px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.icon { flex-shrink: 0; }

.eyebrow { margin-bottom: 14px; color: var(--terracotta); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.display { font-size: clamp(2.2rem, 5vw, 3.9rem); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 34em; margin-left: auto; margin-right: auto; }

/* Gentle fade-in as sections appear */
.js-reveal .reveal:not(.is-visible) { transform: translateY(24px); }
.reveal { transition: transform 0.9s ease; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  border: 2px solid transparent; border-radius: 999px;
  font: 600 1rem/1.2 var(--sans); text-align: center; text-decoration: none;
  cursor: pointer; transition: background-color 0.2s, transform 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-sm { min-height: 44px; padding: 8px 20px; font-size: 0.95rem; }
.btn-lg { min-height: 60px; padding: 14px 34px; font-size: 1.08rem; }
.btn-xl { min-height: 72px; padding: 18px 40px; font-size: 1.2rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--forest); color: var(--paper); }
.btn-primary:hover { background: var(--forest-deep); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--white); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp-dark); }

.text-link { font-weight: 600; text-decoration: none; padding: 12px 4px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.text-link-light { color: var(--paper); }

.round-btn {
  display: grid; place-items: center; width: 60px; height: 60px;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line); border-radius: 50%;
  cursor: pointer; box-shadow: var(--shadow-soft); transition: transform 0.2s;
}
.round-btn:hover { transform: scale(1.05); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: rgba(252, 250, 246, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; color: var(--forest); text-decoration: none; }
.logo-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; color: var(--forest); }
.ceiba-mark { width: 100%; height: 100%; }
.logo-name { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; margin: 0; color: var(--ink); }
.main-nav { display: flex; gap: 30px; margin-left: auto; }
.main-nav a { color: var(--ink); text-decoration: none; font-size: 0.97rem; font-weight: 500; opacity: 0.85; }
.main-nav a:hover { opacity: 1; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; padding: 3px; background: var(--cream); border-radius: 999px; }
.lang-switch button {
  min-width: 48px; min-height: 40px; padding: 0 12px;
  background: transparent; color: var(--muted); border: 0; border-radius: 999px;
  font: 700 0.9rem var(--sans); cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(calc(100vh - var(--header-h)), 900px); display: flex; align-items: flex-end; overflow: hidden; color: var(--paper); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: slow-zoom 24s ease-out both; }
@keyframes slow-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero-img { animation: none; } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 20, 15, 0.1) 0%, rgba(10, 20, 15, 0.25) 40%, rgba(10, 20, 15, 0.82) 100%); }
.hero-content { position: relative; width: 100%; padding-top: 120px; padding-bottom: 88px; }
.hero-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: 0.04em; opacity: 0.9; }
.hero-brand span:first-child { display: inline-grid; width: 30px; height: 30px; color: var(--gold); }
.hero h1 { max-width: 12em; font-size: clamp(2.8rem, 7.5vw, 6.2rem); font-weight: 500; line-height: 1; margin: 0 0 24px; letter-spacing: -0.02em; }
.hero-subtitle { font-size: clamp(1.15rem, 2vw, 1.45rem); max-width: 30em; line-height: 1.55; opacity: 0.95; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 36px; }

/* ---------- Story ---------- */
.story { padding: 140px 0 120px; }
.story-line { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.15; margin: 0; }
.story-accent { font-style: italic; font-weight: 500; color: var(--forest); }
.story-text { max-width: 32em; margin: 36px auto 0; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); }
.story-figure { margin: 88px 0 0; border-radius: var(--radius); overflow: hidden; }
.story-figure img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

/* ---------- Sections ---------- */
.section { padding: 130px 0; }
.section-cream { background: var(--cream); }

/* ---------- Assistant ---------- */
.chat-wrap { max-width: 900px; margin-top: 56px; }
.chat { background: var(--white); border-radius: 28px; box-shadow: var(--shadow-soft); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 14px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.chat-avatar { display: grid; place-items: center; width: 50px; height: 50px; padding: 9px; border-radius: 50%; background: var(--forest); color: var(--gold); flex-shrink: 0; }
.chat-id { display: flex; flex-direction: column; line-height: 1.3; }
.chat-id strong { font-size: 1.05rem; }
.chat-id span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.88rem; }
.chat-id .dot { width: 9px; height: 9px; border-radius: 50%; background: #2e9d5b; }
.chat-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.mini-switch { display: flex; padding: 3px; background: var(--cream); border-radius: 999px; }
.mini-switch button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 700 0.85rem var(--sans); cursor: pointer; }
.mini-switch button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); }
.chat-restart { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font: 600 0.9rem var(--sans); cursor: pointer; }

.chat-log { display: flex; flex-direction: column; gap: 14px; min-height: 200px; max-height: 520px; padding: 28px 24px; overflow-y: auto; scroll-behavior: smooth; }
.msg { max-width: 82%; padding: 16px 20px; border-radius: 22px; font-size: 1.08rem; line-height: 1.55; animation: pop 0.35s ease both; }
.msg p { margin: 0; }
.msg p + p { margin-top: 10px; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .msg { animation: none; } }
.msg-bot { align-self: flex-start; background: var(--cream); border-bottom-left-radius: 6px; }
.msg-user { align-self: flex-end; background: var(--forest); color: var(--paper); border-bottom-right-radius: 6px; }
.typing { display: flex; gap: 6px; padding: 20px; }
.typing span { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); opacity: 0.4; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 50% { opacity: 1; } }

.chat-homes { display: grid; gap: 12px; margin-top: 14px; }
.chat-home { display: flex; gap: 14px; padding: 10px; background: var(--white); border-radius: 16px; color: var(--ink); text-decoration: none; transition: box-shadow 0.2s; }
.chat-home:hover { box-shadow: var(--shadow-soft); }
.chat-home img { width: 120px; height: 100px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.chat-home-body { display: flex; flex-direction: column; gap: 2px; font-size: 0.95rem; line-height: 1.35; }
.chat-home-place { color: var(--terracotta); font-weight: 700; font-size: 0.85rem; }
.chat-home strong { font-family: var(--serif); font-size: 1.08rem; font-weight: 600; }
.chat-home-price { color: var(--muted); }
.chat-home-link { color: var(--forest); font-weight: 700; margin-top: 4px; }

.msg-wide { max-width: 100%; width: min(460px, 100%); }
.lead-card { display: grid; gap: 14px; }
.lead-card label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.lead-card input {
  min-height: 54px; padding: 10px 16px;
  border: 2px solid var(--line); border-radius: 14px; background: var(--white);
  font: 500 1.05rem var(--sans); color: var(--ink);
}
.lead-card input:focus { outline: none; border-color: var(--forest); }
.lead-title { display: flex; align-items: center; gap: 8px; font-weight: 700; margin: 0; }
.lead-title .icon { color: var(--whatsapp); }
.lead-error { color: #9f2a14; font-weight: 600; margin: 0; }
.lead-consent { font-size: 0.85rem; color: var(--muted); margin: 0; line-height: 1.5; }
.lead-card .btn:disabled { opacity: 0.7; cursor: wait; }

.chat-chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 24px; }
.chat-chips:not(:empty) { padding-bottom: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 10px 22px;
  background: var(--white); color: var(--forest);
  border: 2px solid var(--forest); border-radius: 999px;
  font: 600 1rem var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.chip:hover { background: var(--forest); color: var(--paper); }
.chip-whatsapp { background: var(--whatsapp); border-color: var(--whatsapp); color: #fff; }
.chip-whatsapp:hover { background: var(--whatsapp-dark); color: #fff; }

.chat-input { display: flex; gap: 10px; padding: 16px 20px 20px; border-top: 1px solid var(--line); }
.chat-input input {
  flex: 1; min-width: 0; min-height: 56px; padding: 12px 20px;
  border: 2px solid var(--line); border-radius: 999px; background: var(--paper);
  font: 500 1.02rem var(--sans); color: var(--ink);
}
.chat-input input:focus { outline: none; border-color: var(--forest); }
.chat-input .btn { min-height: 56px; }

/* ---------- The bridge ---------- */
.bridge { position: relative; list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.bridge::before {
  content: ""; position: absolute; top: 48px; left: 16%; right: 16%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 18px);
}
.bridge-node { position: relative; }
.bridge-icon { display: grid; place-items: center; width: 96px; height: 96px; margin: 0 auto 28px; border-radius: 50%; background: var(--forest); color: var(--gold); box-shadow: 0 0 0 10px var(--paper); }
.bridge-node h3 { font-size: 1.7rem; margin-bottom: 4px; }
.bridge-place { color: var(--terracotta); font-weight: 600; font-size: 0.95rem; margin-bottom: 14px; }
.bridge-node p:last-child { color: var(--muted); max-width: 20em; margin: 0 auto; }

/* ---------- About us ---------- */
.team { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--sand); }
.person h3 { font-size: 1.6rem; margin: 22px 0 2px; }
.person-role { color: var(--terracotta); font-weight: 700; font-size: 0.95rem; margin-bottom: 10px; }
.person p:last-child { color: var(--muted); margin: 0; }
.team-soon { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.person-soon { display: flex; align-items: center; gap: 20px; padding: 24px; border: 2px dashed var(--sand); border-radius: var(--radius); background: var(--paper); }
.person-soon h3 { font-size: 1.3rem; margin: 2px 0 4px; }
.person-soon p:last-child { color: var(--muted); margin: 0; font-size: 0.97rem; }
.soon-icon { display: grid; place-items: center; flex-shrink: 0; width: 72px; height: 72px; border-radius: 50%; background: var(--forest); color: var(--gold); }
.soon-tag { display: inline-block; margin: 0; padding: 2px 12px; border-radius: 999px; background: var(--gold-soft); color: var(--forest); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Homes carousel ---------- */
.carousel { margin-top: 48px; }
.carousel-track {
  display: flex; gap: 24px; margin: 0; padding: 8px max(28px, calc((100vw - 1240px) / 2 + 28px)) 24px;
  list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  scroll-padding-left: max(28px, calc((100vw - 1240px) / 2 + 28px));
}
.carousel-track::-webkit-scrollbar { display: none; }
.home-card { flex: 0 0 min(420px, 82vw); scroll-snap-align: start; }
.home-card a { display: block; color: var(--ink); text-decoration: none; }
.home-card-media { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.home-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.home-card a:hover img { transform: scale(1.04); }
.home-card-place { margin: 18px 0 4px; color: var(--terracotta); font-weight: 700; font-size: 0.9rem; }
.home-card h3 { font-size: 1.45rem; margin-bottom: 6px; }
.home-card-price { font-weight: 600; margin: 0; }
.home-card-price span { color: var(--muted); font-weight: 500; }
.carousel-controls { display: flex; justify-content: flex-end; gap: 14px; max-width: 1240px; margin: 12px auto 0; padding: 0 28px; }

/* ---------- Full-bleed banners ---------- */
.banner { position: relative; min-height: 78vh; display: flex; align-items: center; overflow: hidden; color: var(--paper); }
.banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 20, 15, 0.72) 0%, rgba(10, 20, 15, 0.25) 70%); }
.banner-content { position: relative; padding-top: 100px; padding-bottom: 100px; }
.banner-content p { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.15; margin: 0; }
.banner-accent { font-style: italic; color: var(--gold); }
.banner-final .banner-shade { background: rgba(10, 20, 15, 0.6); }
.banner-final .banner-content { display: flex; flex-direction: column; align-items: center; }
.banner-final .lead { color: var(--paper); opacity: 0.92; font-family: var(--sans); font-size: 1.25rem; margin-bottom: 36px; }
.final-call { font-family: var(--sans) !important; font-size: 1.05rem !important; margin-top: 24px !important; }
.final-call a { color: var(--gold); font-weight: 700; }

/* ---------- How it works ---------- */
.steps { list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }
.steps li { padding-top: 28px; border-top: 2px solid var(--ink); }
.step-n { display: block; font-family: var(--serif); font-size: 1.1rem; color: var(--terracotta); margin-bottom: 18px; }
.steps h3 { font-size: 2.1rem; }
.steps p { color: var(--muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq { margin-top: 56px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 28px 64px 28px 0; cursor: pointer; list-style: none; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); color: var(--forest); font-family: var(--sans); font-size: 1.5rem;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 64px 28px 0; margin: 0; color: var(--muted); font-size: 1.08rem; }

.faq-more { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- All homes (catalogue) ---------- */
.homes-all { display: flex; justify-content: center; margin-top: 36px; }
.or-browse { text-align: center; margin: 28px 0 0; font-weight: 600; }
.or-browse a { color: var(--forest); }
.list-page { padding: 36px 0 120px; }
.list-page-head { margin: 32px 0 28px; }
.list-page-head .lead { margin-left: 0; }
.list-filters {
  display: grid; gap: 22px; padding: 26px 28px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft);
}
.filter-group { display: flex; flex-direction: column; gap: 10px; }
.filter-label { font-weight: 700; font-size: 0.98rem; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  min-height: 50px; padding: 10px 22px;
  background: var(--white); color: var(--ink);
  border: 2px solid var(--line); border-radius: 999px;
  font: 600 1rem var(--sans); cursor: pointer;
}
.pill:hover { border-color: var(--forest); }
.pill[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.filter-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 18px; align-items: end; padding-top: 22px; border-top: 1px solid var(--line); }
.filter-row select {
  width: 100%; min-height: 54px; padding: 10px 40px 10px 16px;
  border: 2px solid var(--line); border-radius: 14px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231f3d2e' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none; font: 500 1rem var(--sans); color: var(--ink); cursor: pointer;
}
.filter-row select:focus { outline: none; border-color: var(--forest); }
.list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin: 28px 0 18px; }
.results-count { font-weight: 700; font-size: 1.1rem; margin: 0; }
.link-button { min-height: 44px; padding: 8px 4px; background: none; border: 0; color: var(--terracotta); font: 600 1rem var(--sans); text-decoration: underline; cursor: pointer; }
.listing-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.listing { display: flex; flex-direction: column; height: 100%; background: var(--white); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-soft); transition: transform 0.2s; }
.listing:hover { transform: translateY(-3px); }
.listing-media { position: relative; aspect-ratio: 4 / 3; background: var(--sand); }
.listing-media img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 12px; left: 12px; padding: 4px 12px; border-radius: 999px; background: var(--white); color: var(--forest); font-size: 0.85rem; font-weight: 700; }
.listing-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.listing-place { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; color: var(--terracotta); font-weight: 700; font-size: 0.9rem; }
.listing h3 { font-size: 1.2rem; margin-bottom: 8px; }
.listing-price { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--forest); margin: 0; }
.listing-price span { font-family: var(--sans); font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.listing-specs { list-style: none; margin: 12px 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 0.93rem; font-weight: 500; }
.listing-specs li { display: inline-flex; align-items: center; gap: 5px; }
.listing-specs .icon { color: var(--terracotta); }
.listing-cta { margin-top: auto; color: var(--forest); font-weight: 700; }
.list-more { display: flex; justify-content: center; margin-top: 40px; }
.list-empty { padding: 44px 24px; text-align: center; background: var(--white); border-radius: var(--radius); font-size: 1.1rem; }
.list-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn-outline { background: var(--white); color: var(--forest); border-color: var(--forest); }

/* ---------- Questions page ---------- */
.faq-page { padding: 36px 0 120px; }
.faq-page-head { margin: 32px 0 36px; }
.faq-page-head .lead { margin-left: 0; }
.faq-topics { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.faq-group { margin-top: 56px; scroll-margin-top: calc(var(--header-h) + 24px); }
.faq-group h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 8px; }
.faq-group .faq { margin-top: 16px; }
.faq-cta { margin-top: 80px; padding: 40px; border-radius: var(--radius); background: var(--forest); color: var(--paper); }
.faq-cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.faq-cta p { opacity: 0.92; font-size: 1.1rem; }
.faq-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.faq-cta .btn-primary { background: var(--paper); color: var(--ink); }
.faq-cta .btn-primary:hover { background: var(--white); }

/* ---------- Property page ---------- */
.detail { padding: 36px 0 120px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; color: var(--ink); font-weight: 600; text-decoration: none; }
.back-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.detail-head { margin: 32px 0 36px; max-width: 900px; }
.detail-head h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
.map-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -6px 0 10px; color: var(--forest); font-weight: 600; }
.detail-price { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; margin: 0; color: var(--forest); }
.detail-price span { font-family: var(--sans); font-size: 1.05rem; font-weight: 500; color: var(--muted); margin-left: 8px; }

.gallery-main { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.gallery-nav:hover { transform: translateY(-50%) scale(1.05); }
.gallery-nav.prev { left: 20px; }
.gallery-nav.next { right: 20px; }
.gallery-count { position: absolute; bottom: 18px; right: 18px; padding: 6px 16px; border-radius: 999px; background: rgba(10, 20, 15, 0.7); color: var(--paper); font-weight: 600; font-size: 0.92rem; }
.gallery-thumbs { display: flex; gap: 12px; margin-top: 14px; overflow-x: auto; padding: 4px 2px; }
.thumb { flex: 0 0 130px; height: 88px; padding: 0; border: 3px solid transparent; border-radius: 14px; overflow: hidden; background: var(--sand); cursor: pointer; opacity: 0.7; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--forest); opacity: 1; }

.spec-row { display: grid; grid-template-columns: repeat(4, 1fr); margin: 48px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec-row div { padding: 26px 20px; text-align: center; }
.spec-row div + div { border-left: 1px solid var(--line); }
.spec-row dt { color: var(--muted); font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.spec-row dd { margin: 6px 0 0; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }

.detail-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; margin-top: 64px; align-items: start; }
.detail-text h2 { font-size: 2rem; margin-top: 8px; }
.detail-text h2:not(:first-child) { margin-top: 48px; }
.detail-description { white-space: pre-line; font-size: 1.15rem; line-height: 1.75; }
.note { color: var(--muted); font-style: italic; }
.amenities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.amenities li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.amenities .icon { width: 28px; height: 28px; padding: 4px; border-radius: 50%; background: var(--forest); color: var(--paper); }

.detail-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.trust-badge { display: flex; gap: 14px; padding: 22px; background: var(--gold-soft); border-radius: 20px; }
.trust-badge .icon { color: var(--forest); }
.trust-badge strong { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--forest); line-height: 1.3; }
.trust-badge p { margin: 6px 0 0; font-size: 0.95rem; }
.ask-card { padding: 24px; background: var(--white); border-radius: 20px; box-shadow: var(--shadow-soft); }
.ask-card p { margin: 12px 0 0; }
.detail-missing { padding: 48px 28px 140px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-deep); color: #cfd8d1; padding: 72px 0 130px; font-size: 0.93rem; }
.footer-inner { display: grid; grid-template-columns: 260px 1fr; gap: 56px; }
.footer-brand { display: flex; align-items: center; gap: 12px; align-self: start; }
.footer-brand .logo-mark { color: var(--gold); }
.footer-brand .logo-name { color: var(--paper); }
.footer-tagline { margin: 0; font-size: 0.85rem; opacity: 0.85; }
.footer-about { color: var(--paper); font-size: 1.05rem; font-weight: 500; }
.footer-rights { margin: 28px 0 0; opacity: 0.75; }

/* ---------- Floating buttons (kept above Netlify's badge in the corner) ---------- */
.floaters {
  position: fixed; right: 20px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 50;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  transition: opacity 0.3s, transform 0.3s;
}
.floaters.is-hidden, .assistant-open .floaters { opacity: 0; transform: translateY(20px); pointer-events: none; }
.wa-float, .assistant-float {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 60px; padding: 12px 22px; border: 0; border-radius: 999px;
  font: 700 1rem var(--sans); text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}
.wa-float { background: var(--whatsapp); color: #fff; }
.wa-float:hover { background: var(--whatsapp-dark); }
.assistant-float { background: var(--forest); color: var(--paper); }
.assistant-float:hover { background: var(--forest-deep); }
.assistant-float-mark { display: inline-grid; width: 30px; height: 30px; color: var(--gold); }

/* ---------- Assistant window ---------- */
.assistant-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; flex-direction: column;
  width: min(440px, calc(100vw - 40px)); height: min(720px, calc(100vh - 40px));
  background: var(--white); border-radius: 26px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(10, 20, 15, 0.35);
}
.assistant-panel[hidden] { display: none; }
.panel-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 20px; background: var(--forest); color: var(--paper); }
.panel-close { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(248, 243, 234, 0.15); color: var(--paper); font: 700 0.95rem var(--sans); cursor: pointer; }
.panel-close:hover { background: rgba(248, 243, 234, 0.25); }
.panel-slot { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.panel-slot #concierge { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.panel-slot .chat { flex: 1; min-height: 0; display: flex; flex-direction: column; border-radius: 0; box-shadow: none; }
.panel-slot .chat-head .chat-avatar, .panel-slot .chat-id { display: none; }
.panel-slot .chat-head { padding: 10px 16px; }
.panel-slot .chat-tools { width: auto; margin-left: auto; }
.panel-slot .chat-log { flex: 1; max-height: none; min-height: 0; padding: 20px 16px; }
.panel-slot .msg { max-width: 92%; font-size: 1.02rem; }
.panel-slot .chat-home img { width: 90px; height: 90px; }
.panel-slot .chat-chips { padding: 0 16px; }
.chat-moved { padding: 40px 24px; text-align: center; background: var(--white); border-radius: 28px; box-shadow: var(--shadow-soft); }
.chat-moved p { font-size: 1.1rem; }

/* ---------- What the assistant can do ---------- */
.can-do { list-style: none; max-width: 900px; margin: 40px auto 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.can-do li { display: flex; align-items: flex-start; gap: 12px; padding: 18px; background: var(--paper); border-radius: 18px; font-weight: 500; line-height: 1.5; }
.can-do li > span:first-child { display: inline-grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--forest); color: var(--gold); }
.can-do .icon { width: 22px; height: 22px; }
.chat-wrap { margin-top: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .chat-head { flex-wrap: wrap; padding: 14px 16px; }
  .chat-tools { width: 100%; justify-content: space-between; margin-left: 0; }
}

@media (max-width: 1000px) {
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .bridge { grid-template-columns: 1fr; gap: 56px; }
  .can-do { grid-template-columns: 1fr; max-width: 560px; }
  .listing-grid { grid-template-columns: 1fr 1fr; }
  .filter-row { grid-template-columns: 1fr 1fr; }
  .bridge::before { top: 48px; bottom: 48px; left: 50%; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--gold) 0 10px, transparent 10px 18px); }
  .bridge-node { background: var(--paper); padding-bottom: 8px; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .team { gap: 20px; }
  .team-soon { grid-template-columns: 1fr; }
  .detail-body { grid-template-columns: 1fr; gap: 40px; }
  .detail-aside { position: static; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  body { font-size: 17.5px; }
  .container { padding: 0 18px; }
  .header-cta { display: none; }
  .hero-content { padding-bottom: 56px; }
  .hero-actions .btn { width: 100%; }
  .story { padding: 88px 0 72px; }
  .story-figure { margin-top: 56px; }
  .story-figure img { aspect-ratio: 4 / 3; }
  .section { padding: 88px 0; }
  .chat-wrap { margin-top: 36px; padding: 0 10px; }
  .chat { border-radius: 22px; }
  .chat-log { max-height: 480px; padding: 20px 14px; }
  .msg { max-width: 92%; font-size: 1.02rem; }
  .chat-home img { width: 90px; height: 90px; }
  .chat-chips { padding: 0 14px; }
  .chip { flex: 1 1 auto; justify-content: center; }
  .chat-input { padding: 12px; }
  .chat-input .btn { padding: 0 18px; }
  .carousel-track { padding-left: 18px; padding-right: 18px; scroll-padding-left: 18px; gap: 16px; }
  .carousel-controls { padding: 0 18px; }
  .banner { min-height: 70vh; }
  .spec-row { grid-template-columns: 1fr 1fr; }
  .spec-row div:nth-child(3) { border-left: 0; }
  .spec-row div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .amenities { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .gallery-main { aspect-ratio: 4 / 3; }
  .round-btn { width: 52px; height: 52px; }
  .gallery-nav.prev { left: 12px; }
  .gallery-nav.next { right: 12px; }
  .thumb { flex-basis: 96px; height: 68px; }
  .faq summary { font-size: 1.15rem; padding-right: 56px; }
  .faq-cta { padding: 26px 20px; }
  .faq-cta-actions .btn { width: 100%; }
  .faq details p { padding-right: 0; }
  .btn-xl { width: 100%; }
  .floaters { right: 14px; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .wa-float { padding: 14px; }
  .wa-float .float-text { display: none; }
  .assistant-panel { inset: 0; width: 100%; height: 100%; border-radius: 0; }
  .can-do { grid-template-columns: 1fr; }
  .listing-grid { grid-template-columns: 1fr; }
  .filter-row { grid-template-columns: 1fr; }
  .list-filters { padding: 20px 16px; }
  .pill { padding: 10px 18px; }
}
