:root {
  --ink: #13242a;
  --ink-soft: #3d4f55;
  --muted: #7a8a8e;
  --sand: #f7f3ec;
  --sand-2: #efe8dc;
  --line: #e2d9ca;
  --white: #ffffff;
  --gold: #b0813a;
  --gold-2: #d2a75f;
  --sea: #2f6b70;
  --red: #a2453a;
  --serif: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --sans: "Manrope", -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --radius: 4px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--sand); line-height: 1.6; font-size: 15px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 24px; }
.eyebrow { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(247, 243, 236, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand span { font-family: var(--serif); font-size: 21px; font-style: italic; color: var(--ink-soft); border-left: 1px solid var(--line); padding-left: 14px; }
.nav { display: flex; gap: 28px; align-items: center; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--gold); }
.nav .cta { border: 1px solid var(--ink); padding: 9px 16px; color: var(--ink); }
.nav .cta:hover { background: var(--ink); color: var(--sand); }
@media (max-width: 760px) {
  .nav a:not(.cta) { display: none; }
  .brand span { display: none; }
  .brand img { height: 40px; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end; color: var(--white); overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 22, 26, 0.72) 0%, rgba(10, 22, 26, 0.35) 55%, rgba(10, 22, 26, 0.1) 100%), linear-gradient(180deg, rgba(10, 22, 26, 0) 50%, rgba(10, 22, 26, 0.55) 100%); }
.hero h1, .hero p { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-block: 64px; }
.hero .eyebrow { color: var(--gold-2); }
.hero h1 { font-size: clamp(42px, 7vw, 92px); max-width: 14ch; margin: 14px 0 18px; }
.hero h1 em { color: var(--gold-2); }
.hero p { max-width: 52ch; font-size: 17px; opacity: 0.92; margin: 0; }
.hero-links { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border: 1px solid transparent; background: var(--ink); color: var(--sand); text-decoration: none; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; cursor: pointer; border-radius: var(--radius); transition: background 0.2s, color 0.2s; }
.btn:hover { background: var(--gold); }
.btn.light { background: var(--sand); color: var(--ink); }
.btn.light:hover { background: var(--gold-2); }
.btn.ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn.ghost:hover { background: var(--white); color: var(--ink); }
.btn.gold { background: var(--gold); color: var(--white); }
.btn.gold:hover { background: var(--ink); }
.btn.whatsapp { background: #1f8f55; color: #fff; }
.btn.whatsapp:hover { background: #17733f; }
.btn:disabled { opacity: 0.5; cursor: default; }

/* ---------- collection intro + tabs ---------- */
.section { padding-block: 80px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 54px); margin-top: 10px; }
.tabs { display: flex; gap: 0; border: 1px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.tabs button { background: transparent; border: 0; padding: 11px 20px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; cursor: pointer; color: var(--ink); }
.tabs button + button { border-left: 1px solid var(--ink); }
.tabs button[aria-pressed="true"] { background: var(--ink); color: var(--sand); }

.filters { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 14px; }
.filters label { background: var(--white); padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.filters input, .filters select { border: 0; background: transparent; padding: 2px 0; font-size: 15px; outline: none; letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--ink); width: 100%; }
@media (max-width: 860px) { .filters { grid-template-columns: 1fr 1fr; } .filters label:first-child { grid-column: 1 / -1; } }
.count { font-size: 13px; color: var(--muted); margin: 0 0 28px; }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 40px 28px; }
@media (max-width: 400px) { .grid { grid-template-columns: 1fr; } }
.card { text-decoration: none; display: flex; flex-direction: column; }
.card .ph { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand-2); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.card:hover .ph img { transform: scale(1.04); }
.badge { position: absolute; top: 14px; left: 14px; background: var(--sand); color: var(--ink); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; padding: 6px 10px; }
.badge.luxury { background: var(--ink); color: var(--gold-2); }
.ribbon { position: absolute; top: 14px; right: 14px; background: var(--red); color: #fff; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; padding: 6px 10px; }
.ribbon.reserved { background: var(--gold); }
.card .nphotos { position: absolute; bottom: 12px; right: 12px; background: rgba(19, 36, 42, 0.7); color: #fff; font-size: 11px; padding: 3px 8px; }
.card .body { padding-top: 16px; }
.card .loc { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.card h3 { font-size: 26px; margin: 6px 0 10px; }
.card .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.card .price { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.specs { display: flex; gap: 14px; font-size: 13px; color: var(--ink-soft); flex-wrap: wrap; }
.specs b { font-weight: 700; color: var(--ink); }
.empty { text-align: center; padding: 70px 20px; border: 1px dashed var(--line); color: var(--muted); }
.empty h3 { color: var(--ink); font-size: 28px; margin-bottom: 8px; }

/* ---------- pillars ---------- */
.pillars { background: var(--ink); color: var(--sand); }
.pillars .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
@media (max-width: 860px) { .pillars .grid3 { grid-template-columns: 1fr; gap: 32px; } }
.pillars .num { font-family: var(--serif); font-size: 46px; color: var(--gold-2); line-height: 1; }
.pillars h3 { font-size: 28px; margin: 14px 0 10px; }
.pillars p { margin: 0; opacity: 0.78; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 36px; } }
.contact h2 { font-size: clamp(34px, 4.6vw, 54px); margin: 10px 0 18px; }
.contact-lines { margin-top: 28px; display: grid; gap: 14px; }
.contact-lines div { display: flex; flex-direction: column; }
.contact-lines small { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact-lines a { text-decoration: none; font-size: 18px; }
.form { display: grid; gap: 12px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .form .row { grid-template-columns: 1fr; } }
.form input, .form textarea { width: 100%; border: 1px solid var(--line); background: var(--white); padding: 14px; border-radius: var(--radius); outline: none; }
.form input:focus, .form textarea:focus { border-color: var(--gold); }
.form textarea { min-height: 120px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form-msg { font-size: 14px; margin: 0; }
.form-msg.ok { color: var(--sea); }
.form-msg.err { color: var(--red); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); font-size: 13px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--ink-soft); }

/* ---------- listing page ---------- */
.crumbs { padding-block: 22px 0; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.lhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-block: 18px 26px; }
.lhead h1 { font-size: clamp(34px, 5vw, 60px); margin-top: 8px; max-width: 22ch; }
.lhead .price { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 44px); font-weight: 600; white-space: nowrap; }
.lhead .ref { font-size: 12px; color: var(--muted); text-align: right; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: min(62vh, 580px); }
.gallery button { border: 0; padding: 0; cursor: zoom-in; overflow: hidden; background: var(--sand-2); position: relative; }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.gallery button:hover img { transform: scale(1.03); }
.gallery button:first-child { grid-row: 1 / 3; }
.gallery .more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(19, 36, 42, 0.5); color: #fff; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; }
.gallery.one { grid-template-columns: 1fr; }
.gallery.two { grid-template-rows: 1fr; }
.gallery.two button:first-child { grid-row: auto; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 62vw; min-height: 240px; }
  .gallery button:not(:first-child) { display: none; }
  .gallery button:first-child { grid-row: auto; }
}
.mobile-count { display: none; }
@media (max-width: 760px) { .mobile-count { display: block; position: absolute; bottom: 10px; right: 10px; background: rgba(19, 36, 42, 0.75); color: #fff; font-size: 12px; padding: 4px 10px; } }

.ldetail { display: grid; grid-template-columns: 1fr 380px; gap: 56px; padding-block: 44px 80px; }
@media (max-width: 960px) { .ldetail { grid-template-columns: 1fr; gap: 40px; } }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); column-gap: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { padding: 18px 0; }
.facts small { display: block; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.facts b { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.desc { margin-top: 32px; font-size: 16px; color: var(--ink-soft); white-space: pre-line; }
.ldetail h2 { font-size: 30px; margin: 40px 0 16px; }
.features { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 32px; }
.features li { padding: 8px 0 8px 22px; border-bottom: 1px solid var(--line); position: relative; break-inside: avoid; }
.features li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 9px; height: 1px; background: var(--gold); }
@media (max-width: 520px) { .features { columns: 1; } }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.aside { position: sticky; top: 96px; align-self: start; background: var(--white); border: 1px solid var(--line); padding: 28px; }
.aside h3 { font-size: 28px; margin-bottom: 6px; }
.aside p.small { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.aside .form .row { grid-template-columns: 1fr; }
.aside .btn { width: 100%; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(8, 16, 19, 0.96); display: flex; flex-direction: column; color: #fff; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; font-size: 13px; letter-spacing: 0.1em; }
.lb-top button, .lb-nav { background: transparent; border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; cursor: pointer; width: 44px; height: 44px; font-size: 20px; border-radius: 50%; }
.lb-stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 70px; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-nav.prev { left: 14px; }
.lb-nav.next { right: 14px; }
@media (max-width: 600px) { .lb-stage { padding: 0 6px; } .lb-nav { background: rgba(0, 0, 0, 0.4); } }
.lb-thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 12px 20px 18px; }
.lb-thumbs button { flex: 0 0 auto; border: 2px solid transparent; padding: 0; cursor: pointer; opacity: 0.55; background: none; }
.lb-thumbs button.on { border-color: var(--gold-2); opacity: 1; }
.lb-thumbs img { width: 84px; height: 60px; object-fit: cover; }

.skeleton { background: linear-gradient(90deg, var(--sand-2), #f4eee4, var(--sand-2)); background-size: 200% 100%; animation: sk 1.4s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- language switch ---------- */
.lang { position: relative; }
.lang-btn { background: transparent; border: 1px solid var(--line); color: var(--ink); padding: 8px 12px; font-size: 12px; letter-spacing: 0.08em; font-weight: 700; cursor: pointer; border-radius: var(--radius); }
.lang-btn:hover { border-color: var(--ink); }
.lang-btn span { font-size: 9px; margin-left: 2px; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--white); border: 1px solid var(--line); list-style: none; margin: 0; padding: 6px 0; min-width: 150px; box-shadow: 0 12px 32px rgba(19, 36, 42, 0.12); z-index: 60; text-transform: none; letter-spacing: 0; }
.lang-menu a { display: block; padding: 8px 16px; font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; }
.lang-menu a:hover { background: var(--sand); color: var(--ink); }
.lang-menu a[aria-current] { color: var(--gold); font-weight: 700; }
@media (max-width: 760px) { .nav { gap: 10px; } .nav .cta { padding: 8px 12px; } }

.ribbon.newb { background: var(--sea); }
.more-wrap { grid-column: 1 / -1; display: flex; justify-content: center; padding-top: 8px; }
.btn.ghost-dark { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn.ghost-dark:hover { background: var(--ink); color: var(--sand); }
.facts b { overflow-wrap: anywhere; }
