/* ICON Pinklao — sales site
   Palette taken from the ICON brand art: crimson, champagne gold, ivory cream, espresso.
   Signature motif: a thin "gold thread" gradient used for rules, borders and accents. */

:root {
  --crimson: #8e1420;
  --crimson-2: #a91d2a;
  --crimson-deep: #5c0b13;
  --gold: #b08540;
  --gold-2: #d6b46c;
  --gold-3: #f0dcaa;
  --gold-grad: linear-gradient(120deg, #9a6f2c 0%, #d9b56b 28%, #f3e3b3 48%, #c99b4c 70%, #9a6f2c 100%);
  --gold-line: linear-gradient(90deg, transparent, #c9a25a 20%, #f0dcaa 50%, #c9a25a 80%, transparent);
  --ivory: #fffdf9;
  --cream: #f7f1e7;
  --cream-2: #efe5d4;
  --espresso: #1b1512;
  --espresso-2: #261e19;
  --ink: #1f1a16;
  --text: #2e2823;
  --muted: #7a6f63;
  --line: #e7dcc9;
  --white: #fff;
  --green: #06c755;
  --wa: #25d366;

  --font: "IBM Plex Sans Thai", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Cormorant Garamond", Georgia, serif;

  --r-xl: 32px;
  --r-lg: 22px;
  --r-md: 14px;
  --shadow: 0 12px 30px -14px rgba(60, 30, 20, .22);
  --shadow-lg: 0 28px 60px -24px rgba(60, 30, 20, .35);
  --gutter: clamp(16px, 4vw, 32px);
  --top-h: 92px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--top-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font: 400 16px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--crimson); color: var(--white); padding: 8px 14px; z-index: 100; border-radius: 999px; }
.skip:focus { left: 8px; }

.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#i-line .fill { fill: currentColor; stroke: none; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
  background: linear-gradient(120deg, #7f5a1f 0%, #a8803a 45%, #c79c52 60%, #7f5a1f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, transparent, #b08540); }
.eyebrow::after { transform: scaleX(-1); }
.eyebrow--light, .section--dark .eyebrow { background: linear-gradient(90deg, #f3e3b3, #d9b56b); -webkit-background-clip: text; background-clip: text; }
.head { text-align: center; margin: 0 auto 40px; max-width: 760px; }
.head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; text-align: left; }
.head--row .eyebrow::after { display: none; }
.head--row .eyebrow::before { display: none; }
.head__title { margin: 0 0 10px; font-weight: 700; font-size: clamp(28px, 3.8vw, 42px); line-height: 1.25; color: var(--ink); text-wrap: balance; }
.head__title--left { text-align: left; }
.head__sub { margin: 0; color: var(--muted); font-size: 17px; }
.lead { color: var(--muted); font-size: 17px; margin: 0 0 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 15.5px; line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s, transform .2s, box-shadow .25s;
}
.btn:active { transform: scale(.98); }
.btn .ic { width: 18px; height: 18px; }
.btn--crimson { background: linear-gradient(180deg, var(--crimson-2), var(--crimson)); color: var(--white); box-shadow: inset 0 0 0 1px rgba(240, 220, 170, .25); }
.btn--crimson:hover { background: var(--crimson-deep); box-shadow: inset 0 0 0 1px rgba(240, 220, 170, .5), 0 10px 22px -10px rgba(142, 20, 32, .7); }
.btn--gold { background: var(--gold-grad); color: var(--espresso); }
.btn--gold:hover { filter: brightness(1.06); }
.btn--ghost { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--gold); color: var(--crimson); }
.btn--outline { background: transparent; border-color: var(--gold); color: var(--crimson); }
.btn--outline:hover { background: var(--crimson); border-color: var(--crimson); color: var(--white); }
.btn--glass { background: rgba(255,255,255,.12); border-color: rgba(240,220,170,.6); color: var(--white); backdrop-filter: blur(6px); }
.btn--glass:hover { background: rgba(255,255,255,.22); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 16.5px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink); cursor: pointer; text-decoration: none;
  transition: background-color .2s, color .2s;
}
.icon-btn:hover { background: var(--cream); color: var(--crimson); }
.round-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white);
  display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: all .2s;
}
.round-btn:hover { border-color: var(--crimson); background: var(--crimson); color: var(--white); }

/* ---------- Header ---------- */
.topbar { position: fixed; inset: 14px 0 auto; z-index: 50; padding: 0 var(--gutter); pointer-events: none; }
.topbar__pill {
  pointer-events: auto; position: relative;
  max-width: 1240px; margin: 0 auto; height: 66px; padding: 0 10px 0 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: rgba(255, 253, 249, .9); backdrop-filter: blur(16px);
  border-radius: 999px; box-shadow: var(--shadow);
}
.topbar__pill::after { /* gold thread under the pill */
  content: ""; position: absolute; left: 40px; right: 40px; bottom: 0; height: 1px; background: var(--gold-line); opacity: .8;
}
.brand { display: inline-flex; align-items: baseline; gap: 6px; line-height: 1; text-decoration: none; color: var(--ink); }
.brand__mark { font-weight: 700; font-size: 23px; letter-spacing: .2em; }
.brand__sub { font-family: var(--script); font-style: italic; font-weight: 600; font-size: 21px; color: var(--gold); }
.brand--light { color: var(--white); }
.brand--light .brand__sub { color: var(--gold-2); }
.topbar__nav { display: flex; gap: 4px; }
.topbar__nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--text); transition: color .2s, background-color .2s; }
.topbar__nav a:hover { color: var(--crimson); background: var(--cream); }
.topbar__right { display: flex; align-items: center; gap: 6px; }
.menu-btn { display: none; }

/* ---------- Drawer ---------- */
dialog { border: 0; padding: 0; color: inherit; }
dialog::backdrop { background: rgba(27, 21, 18, .6); backdrop-filter: blur(3px); }
body.has-dialog { overflow: hidden; }
.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0; width: min(380px, 88vw); height: 100%; max-height: none;
  background: var(--ivory); border-radius: var(--r-xl) 0 0 var(--r-xl);
  display: none; flex-direction: column; padding: 22px 22px 28px;
}
.drawer[open] { display: flex; animation: slideIn .3s ease both; }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.drawer__nav { display: grid; gap: 2px; }
.drawer__nav a { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: var(--r-md); text-decoration: none; font-size: 16.5px; font-weight: 500; }
.drawer__nav a .ic { color: var(--gold); }
.drawer__nav a:hover { background: var(--cream); color: var(--crimson); }
.drawer__foot { margin-top: auto; display: grid; gap: 14px; }
.drawer__foot p { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }

/* ---------- Hero carousel ---------- */
.hero { position: relative; height: min(88svh, 820px); min-height: 560px; background: var(--espresso); color: var(--white); overflow: hidden; }
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.hero__slide.is-active img { transform: scale(1); }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(27,21,18,.82) 0%, rgba(27,21,18,.45) 42%, rgba(27,21,18,0) 70%),
    linear-gradient(0deg, rgba(27,21,18,.75) 0%, rgba(27,21,18,0) 38%),
    linear-gradient(180deg, rgba(27,21,18,.45) 0%, rgba(27,21,18,0) 22%);
}
.hero__content { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 120px; }
.hero__copy { max-width: 620px; min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero__copy > * { animation: copyIn .8s ease both; }
.hero__copy > :nth-child(2) { animation-delay: .08s; }
.hero__copy > :nth-child(3) { animation-delay: .16s; }
.hero__copy > :nth-child(4) { animation-delay: .24s; }
@keyframes copyIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero__eyebrow { margin: 0 0 12px; font-size: 12.5px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-3); display: flex; align-items: center; gap: 12px; }
.hero__eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--gold-line); }
.hero__title { margin: 0 0 14px; font-weight: 700; font-size: clamp(36px, 5.6vw, 66px); line-height: 1.12; text-wrap: balance; }
.hero__text { margin: 0 0 26px; font-size: 18px; color: rgba(255,255,255,.86); max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__controls { position: absolute; right: var(--gutter); bottom: 128px; display: flex; align-items: center; gap: 14px; }
.hero__arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(240,220,170,.55); background: rgba(27,21,18,.3); color: var(--white); display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); transition: background-color .2s; }
.hero__arrow:hover { background: var(--crimson); border-color: var(--crimson); }
.hero__dots { display: flex; gap: 8px; }
.hero__dot { width: 28px; height: 3px; padding: 0; border: 0; border-radius: 2px; background: rgba(255,255,255,.35); cursor: pointer; transition: width .3s, background-color .3s; }
.hero__dot[aria-selected="true"] { width: 48px; background: var(--gold-grad); }

/* ---------- Finder (overlaps hero) ---------- */
.finder-wrap { position: relative; z-index: 5; margin-top: -84px; }
.finder {
  position: relative; max-width: 980px; margin: 0 auto; padding: 18px;
  background: rgba(255, 253, 249, .96); backdrop-filter: blur(14px);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
}
.finder::before { /* gold thread border */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, rgba(201,162,90,.9), rgba(240,220,170,.3), rgba(201,162,90,.9));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.finder__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.qchip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: 14px; font-weight: 500; cursor: pointer; transition: all .2s; }
.qchip .ic { width: 17px; height: 17px; color: var(--gold); }
.qchip:hover { border-color: var(--crimson); color: var(--crimson); }
.finder__row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: stretch; }
.finder__field { display: grid; gap: 2px; padding: 9px 18px; border-radius: var(--r-lg); background: var(--cream); border: 1px solid transparent; transition: border-color .2s; }
.finder__field:focus-within { border-color: var(--gold-2); }
.finder__field span { font-size: 12.5px; color: var(--muted); }
.finder__field select { border: 0; background: transparent; font-size: 16px; font-weight: 600; color: var(--ink); padding: 2px 0; cursor: pointer; outline: none; }
.finder__go { min-height: 64px; border-radius: var(--r-lg); }

/* ---------- Quick categories ---------- */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; padding: 48px 0 36px; }
.cats a { display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; font-size: 15px; font-weight: 500; text-align: center; color: var(--text); }
.cats__ic {
  position: relative; width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, var(--crimson-2), var(--crimson) 60%, var(--crimson-deep));
  color: var(--gold-3); transition: transform .3s;
}
.cats__ic::before { /* gold ring */
  content: ""; position: absolute; inset: -6px; border-radius: 50%; padding: 1.5px;
  background: var(--gold-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.cats__ic .ic { width: 32px; height: 32px; stroke-width: 1.5; }
.cats a:hover .cats__ic { transform: translateY(-4px); }
.cats a:hover { color: var(--crimson); }

/* ---------- Key numbers ---------- */
.stats {
  list-style: none; margin: 0 0 clamp(56px, 7vw, 88px); padding: 30px 12px; display: grid; grid-template-columns: repeat(4, 1fr);
  background: radial-gradient(120% 140% at 0% 0%, #3a2a22 0%, var(--espresso) 55%); border-radius: var(--r-xl);
  position: relative; overflow: hidden;
}
.stats::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--gold-line); }
.stats li { text-align: center; padding: 0 12px; position: relative; }
.stats li + li::before { content: ""; position: absolute; left: 0; top: 10%; bottom: 10%; width: 1px; background: linear-gradient(180deg, transparent, rgba(214,180,108,.5), transparent); }
.stats b { display: block; font-size: clamp(34px, 4.2vw, 50px); font-weight: 600; line-height: 1.1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats sup { font-size: .5em; vertical-align: .7em; }
.stats small { font-size: .42em; margin-left: 4px; font-weight: 500; }
.stats span { font-size: 14px; color: #cbbfae; }

/* ---------- Sections ---------- */
.section { padding: clamp(68px, 8.5vw, 112px) 0; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--espresso); color: #cbbfae; position: relative; }
.section--dark::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--gold-line); }
.section--dark .head__title { color: var(--ivory); }
.section--dark .head__sub { color: #b3a796; }

/* ---------- Listings ---------- */
.segment {
  display: flex; width: max-content; max-width: 100%; margin: 0 auto 18px; padding: 6px; gap: 4px;
  background: var(--white); border-radius: 999px; box-shadow: var(--shadow); overflow-x: auto; scrollbar-width: none;
}
.segment::-webkit-scrollbar { display: none; }
.segment__btn, .segment .tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px;
  background: transparent; font-size: 15.5px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap;
  transition: background-color .25s, color .25s;
}
.segment__btn:hover, .segment .tab:hover { color: var(--crimson); }
.segment__btn.is-active, .segment .tab[aria-selected="true"] { background: linear-gradient(180deg, var(--crimson-2), var(--crimson)); color: var(--white); }
.count { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 999px; font-size: 12.5px; background: var(--cream-2); color: var(--crimson); }
.is-active .count { background: rgba(240, 220, 170, .9); color: var(--crimson-deep); }
.budget-note { text-align: center; margin: 0 0 18px; font-size: 14.5px; color: var(--muted); }
.budget-note button { border: 0; background: none; color: var(--crimson); font-weight: 600; cursor: pointer; text-decoration: underline; }

.promo { display: flex; align-items: center; gap: 16px; max-width: 900px; margin: 0 auto 36px; padding: 12px 24px 12px 12px; background: var(--white); border-radius: 999px; border: 1px solid var(--line); }
.promo__ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: var(--espresso); flex: none; }
.promo p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.5; }
.promo b { color: var(--crimson); }

/* 12-col grid: houses = 2 featured cards per row, land = 4 per row */
.cards { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.cards__empty { grid-column: 1 / -1; text-align: center; padding: 40px; color: var(--muted); background: var(--white); border-radius: var(--r-xl); }
.card {
  grid-column: span 3; position: relative; display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--r-xl); overflow: hidden;
  box-shadow: 0 1px 0 var(--line);
  transition: box-shadow .35s, transform .35s;
}
.card--house { grid-column: span 6; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.card__media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; overflow: hidden; border-radius: var(--r-xl) var(--r-xl) var(--r-xl) 0; cursor: pointer; background: var(--cream-2); }
.card--house .card__media { aspect-ratio: 16 / 10; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.4,0,.2,1); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(27,21,18,.35), transparent 40%); }
.card:hover .card__media img { transform: scale(1.08); }
.ribbon {
  position: absolute; top: 0; left: 0; z-index: 2;
  padding: 8px 22px 8px 20px; border-bottom-right-radius: var(--r-lg);
  font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--white);
  background: linear-gradient(180deg, var(--crimson-2), var(--crimson));
  box-shadow: inset 0 -1px 0 rgba(240,220,170,.6);
}
.ribbon--land { background: linear-gradient(180deg, #3a2c24, var(--espresso)); color: var(--gold-3); }
.card__count { position: absolute; right: 14px; bottom: 14px; z-index: 2; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; background: rgba(27,21,18,.6); color: var(--white); backdrop-filter: blur(4px); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; text-align: center; }
.card__title { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.card--house .card__title { font-size: 22px; }
.card__loc { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.card__divider { height: 1px; margin: 14px 0 12px; background: var(--gold-line); }
.card__price { margin: 0; font-size: 18px; font-weight: 700; color: var(--crimson); }
.card--house .card__price { font-size: 22px; }
.card__price small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.card__specs { list-style: none; margin: 14px 0 18px; padding: 0; display: grid; gap: 6px; text-align: left; font-size: 14px; color: var(--muted); }
.card--house .card__specs { justify-items: center; }
.card__specs li { display: flex; align-items: center; gap: 10px; }
.card__specs .ic { width: 18px; height: 18px; color: var(--gold); }
.card__specs b { color: var(--text); font-weight: 600; }
.card__actions { display: flex; gap: 10px; margin-top: auto; }
.card__actions .btn { flex: 1; }
.line-btn { width: 48px; height: 48px; flex: none; border-radius: 16px; display: grid; place-items: center; background: var(--green); color: var(--white); text-decoration: none; transition: filter .2s; }
.line-btn .ic { width: 26px; height: 26px; }
.line-btn:hover { filter: brightness(.92); }

/* ---------- Lifestyle rail ---------- */
.rail-nav { display: flex; gap: 10px; flex: none; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 26vw, 340px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))) 8px;
  scroll-padding-left: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter)));
}
.rail::-webkit-scrollbar { display: none; }
.tile {
  position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--r-xl); overflow: hidden;
  scroll-snap-align: start; text-decoration: none; color: var(--white); background: var(--espresso);
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.4,0,.2,1); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(27,21,18,.88) 0%, rgba(27,21,18,.2) 45%, rgba(27,21,18,0) 70%); }
.tile:hover img { transform: scale(1.07); }
.tile__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.tile h3 { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.3; }
.tile p { margin: 4px 0 0; font-size: 14px; color: rgba(255,255,255,.8); line-height: 1.45; }
.tile__go { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(240,220,170,.7); color: var(--gold-3); transition: all .25s; }
.tile:hover .tile__go { background: var(--gold-grad); color: var(--espresso); border-color: transparent; }

/* ---------- Overview ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.split__media { margin: 0; position: relative; }
.split__media img { width: 100%; aspect-ratio: 5 / 4.4; object-fit: cover; object-position: 38% 50%; border-radius: var(--r-xl); }
.split__media::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--gold-2); border-radius: var(--r-xl); z-index: -1; }
.split__badge {
  position: absolute; right: -14px; bottom: 34px; display: flex; align-items: center; gap: 12px;
  padding: 14px 22px; border-radius: var(--r-lg); background: var(--espresso); color: #d8ccba; font-size: 13px; line-height: 1.35; box-shadow: var(--shadow-lg);
}
.split__badge b { font-size: 40px; line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.facts li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; padding: 16px 18px; background: var(--white); border-radius: var(--r-lg); border: 1px solid var(--line); }
.facts .ic { grid-row: span 2; color: var(--gold); align-self: center; width: 26px; height: 26px; }
.facts span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.facts b { font-weight: 600; color: var(--ink); line-height: 1.4; }

/* ---------- Models ---------- */
.segment--models { margin-bottom: 30px; }
.segment .tab { letter-spacing: .08em; }
.model { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 52px); align-items: start; padding: clamp(16px, 2.5vw, 28px); background: var(--cream); border-radius: var(--r-xl); animation: fadeUp .45s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.model__media > img { width: 100%; aspect-ratio: 850 / 754; object-fit: cover; border-radius: var(--r-lg); }
.model__plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.model__plans button { border: 1px solid var(--line); background: var(--white); padding: 10px; cursor: zoom-in; border-radius: var(--r-md); transition: border-color .2s; }
.model__plans button:hover { border-color: var(--gold); }
.model__plans img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.model__plans span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.model__info { padding: 8px 4px; }
.model__type { display: inline-block; padding: 5px 14px; border-radius: 999px; border: 1px solid var(--gold-2); color: var(--gold); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; }
.model__name { margin: 14px 0 4px; font-size: clamp(38px, 4.6vw, 56px); font-weight: 600; letter-spacing: .14em; line-height: 1.05; color: var(--ink); }
.model__tag { margin: 0 0 14px; font-family: var(--font); font-size: 18px; font-weight: 600; color: var(--crimson); }
.model__body { margin: 0 0 22px; color: var(--muted); }
.model__specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0 0 24px; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.model__specs li { background: var(--white); padding: 12px 10px; font-size: 13px; color: var(--muted); text-align: center; }
.model__specs b { display: block; font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.model__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.model__note { margin: 16px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- Facilities (dark) ---------- */
.facilities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.facility { margin: 0; }
.facility__img { aspect-ratio: 4 / 5; border-radius: var(--r-xl); overflow: hidden; background: var(--espresso-2); position: relative; }
.facility__img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(214,180,108,.25); }
.facility img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.4,0,.2,1); }
.facility:hover img { transform: scale(1.07); }
.facility figcaption { padding: 14px 6px 0; text-align: center; font-weight: 600; color: var(--ivory); line-height: 1.35; }
.facility figcaption small { display: block; font-weight: 400; font-size: 13.5px; color: #a99d8b; margin-top: 2px; }

/* ---------- Location ---------- */
.location { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(20px, 3vw, 32px); align-items: stretch; }
.location__side { display: flex; flex-direction: column; gap: 16px; }
.near { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.near li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 10px 22px 10px 10px; background: var(--white); border-radius: 999px; border: 1px solid var(--line); }
.near__ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--gold); }
.near p { margin: 0; font-weight: 500; color: var(--ink); line-height: 1.35; }
.near b { color: var(--crimson); font-size: 18px; white-space: nowrap; }
.location__graphic { position: relative; padding: 0; border: 0; cursor: zoom-in; border-radius: var(--r-xl); overflow: hidden; background: var(--white); flex: 1; min-height: 200px; }
.location__graphic img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.location__graphic span { position: absolute; left: 14px; bottom: 14px; padding: 6px 14px; border-radius: 999px; background: rgba(27,21,18,.75); color: var(--white); font-size: 13px; }
.location__map { display: flex; flex-direction: column; gap: 14px; }
.location__map iframe { width: 100%; flex: 1; min-height: 420px; border: 0; border-radius: var(--r-xl); background: var(--cream-2); filter: sepia(.12) saturate(.9); }
.location__map .btn { align-self: flex-start; }

/* ---------- Invest ---------- */
.brand-banner { display: block; margin-bottom: 22px; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.brand-banner img { width: 100%; aspect-ratio: 2000 / 744; object-fit: cover; transition: transform .8s ease; }
.brand-banner:hover img { transform: scale(1.02); }
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service { padding: 30px 24px 32px; background: var(--cream); border-radius: var(--r-xl); text-align: center; border: 1px solid transparent; transition: border-color .25s, transform .25s, background-color .25s; }
.service:hover { border-color: var(--gold-2); background: var(--white); transform: translateY(-4px); }
.service__ic { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, var(--crimson-2), var(--crimson-deep)); color: var(--gold-3); box-shadow: 0 0 0 5px var(--white), 0 0 0 6px var(--gold-2); }
.service__ic .ic { width: 28px; height: 28px; stroke-width: 1.5; }
.service h3 { margin: 20px 0 8px; font-size: 18px; font-weight: 700; color: var(--ink); }
.service p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.6; }
.fineprint { margin: 18px 0 0; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 14px; }
.gallery button { padding: 0; border: 0; background: var(--cream-2); cursor: zoom-in; overflow: hidden; border-radius: var(--r-lg); }
.gallery button.wide { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.4,0,.2,1); }
.gallery button:hover img { transform: scale(1.06); }

/* ---------- Contact ---------- */
.contact {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start;
  padding: clamp(28px, 5vw, 56px); border-radius: 40px; overflow: hidden; color: #f3e6d6;
  background:
    radial-gradient(80% 90% at 0% 0%, #b12432 0%, transparent 60%),
    radial-gradient(70% 80% at 100% 100%, #3d0710 0%, transparent 65%),
    var(--crimson);
}
.contact::before { /* gold thread frame */
  content: ""; position: absolute; inset: 12px; border-radius: 30px; border: 1px solid rgba(240, 220, 170, .35); pointer-events: none;
}
.contact .head__title { color: var(--white); }
.contact .lead { color: rgba(255, 240, 225, .82); }
.channels { display: grid; gap: 10px; position: relative; }
.channels a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 9px 20px 9px 9px; border-radius: 999px; background: rgba(255, 253, 249, .96); color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.channels a:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(0,0,0,.5); }
.channels__ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--white); background: var(--crimson); }
.channels__ic--line { background: var(--green); }
.channels__ic--wa { background: var(--wa); }
.channels__ic--fb { background: #1877f2; font-weight: 700; font-size: 20px; }
.channels__ic--web { background: var(--gold-grad); color: var(--espresso); }
.channels span { display: grid; line-height: 1.3; }
.channels small { color: var(--muted); font-size: 13px; }
.channels b { font-weight: 600; overflow-wrap: anywhere; }
.channels a > .ic { color: var(--gold); width: 18px; height: 18px; }

.form { position: relative; background: var(--ivory); color: var(--text); padding: clamp(22px, 3.5vw, 36px); border-radius: var(--r-xl); display: grid; gap: 14px; box-shadow: 0 30px 60px -28px rgba(0,0,0,.6); }
.form h3 { margin: 0 0 4px; font-size: 24px; font-weight: 700; color: var(--ink); }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--text); }
.form input, .form select, .form textarea {
  width: 100%; min-height: 50px; padding: 10px 18px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); color: var(--ink); font-size: 16px; font-weight: 400;
}
.form textarea { resize: vertical; min-height: 96px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(214, 180, 108, .22); }
.form [aria-invalid="true"] { border-color: var(--crimson-2); }
.form__error { margin: 0; color: var(--crimson-2); font-size: 14px; }
.form__send { display: flex; flex-wrap: wrap; gap: 10px; }
.form__send .btn--lg { flex: 1 1 100%; }
.form__send .btn--ghost { flex: 1; }
.form__note { margin: 0; font-size: 12.5px; color: var(--muted); text-align: center; }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--espresso); color: #a99d8b; padding: 60px 0 120px; font-size: 14px; }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--gold-line); }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
.footer__brand p { margin: 12px 0 0; }
.footer__by { font-size: 13px; letter-spacing: .02em; }
.footer__by b { color: var(--gold-2); letter-spacing: .14em; font-weight: 600; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__links a { text-decoration: none; color: var(--ivory); }
.footer__links a:hover { color: var(--gold-2); }
.footer__legal { grid-column: 1 / -1; margin: 0; padding-top: 24px; border-top: 1px solid rgba(214,180,108,.18); font-size: 12.5px; color: #8a7f70; }

/* ---------- Floating dock ---------- */
.dock {
  position: fixed; left: 50%; bottom: 18px; z-index: 40; translate: -50% 0;
  display: flex; align-items: center; gap: 8px; padding: 7px; border-radius: 999px;
  background: rgba(255, 253, 249, .94); backdrop-filter: blur(12px); box-shadow: var(--shadow-lg);
  border: 1px solid rgba(214, 180, 108, .5);
  transition: opacity .3s, translate .3s;
}
.dock.is-hidden { opacity: 0; translate: -50% 140%; pointer-events: none; }
.dock__chip { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px 0 14px; border-radius: 999px; background: var(--cream); text-decoration: none; font-weight: 600; color: var(--ink); }
.dock__chip .ic { width: 19px; height: 19px; color: var(--crimson); }
.dock__btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--white); text-decoration: none; transition: transform .2s; }
.dock__btn:hover { transform: translateY(-2px); }
.dock__btn--line { background: var(--green); }
.dock__btn--line .ic { width: 26px; height: 26px; }
.dock__btn--wa { background: var(--wa); }
.dock__cta { min-height: 46px; }

/* ---------- Listing sheet ---------- */
.sheet { width: min(1080px, calc(100% - 32px)); max-height: calc(100svh - 40px); border-radius: var(--r-xl); background: var(--ivory); overflow: auto; }
.sheet__close, .lightbox__close { position: absolute; top: 12px; right: 12px; z-index: 3; background: rgba(255,253,249,.94); box-shadow: var(--shadow); }
.sheet__body { display: grid; grid-template-columns: 1.35fr 1fr; }
.sheet__gallery { min-width: 0; padding: 14px 0 14px 14px; }
.sheet__main { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--espresso); }
.sheet__main img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.sheet__thumbs { display: flex; gap: 8px; padding: 10px 0 2px; overflow-x: auto; scrollbar-width: thin; }
.sheet__thumbs button { flex: 0 0 78px; height: 58px; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; opacity: .55; border-radius: 12px; overflow: hidden; transition: opacity .2s; }
.sheet__thumbs button[aria-current="true"] { border-color: var(--gold); opacity: 1; }
.sheet__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.sheet__info { padding: 36px 30px 30px; display: flex; flex-direction: column; gap: 14px; }
.sheet__info .ribbon { position: static; align-self: flex-start; border-radius: 999px; padding: 6px 16px; }
.sheet__info h2 { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.25; color: var(--ink); }
.sheet__info p { margin: 0; color: var(--muted); font-size: 15px; }
.sheet__price { font-size: 30px; font-weight: 700; color: var(--crimson); line-height: 1.1; padding-bottom: 14px; position: relative; }
.sheet__price::after { content: ""; position: absolute; left: 0; bottom: 0; width: 120px; height: 1px; background: var(--gold-line); }
.sheet__price small { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 400; color: var(--muted); }
.sheet__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.sheet__table th, .sheet__table td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; }
.sheet__table th { font-weight: 400; color: var(--muted); }
.sheet__table td { text-align: right; color: var(--ink); font-weight: 600; }
.sheet__cta { display: grid; gap: 10px; margin-top: auto; padding-top: 6px; }
.btn--line { background: var(--green); color: var(--white); }
.btn--line:hover { filter: brightness(.92); }

/* ---------- Lightbox ---------- */
.lightbox { width: 100vw; height: 100svh; max-width: none; max-height: none; background: transparent; overflow: hidden; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox__fig { margin: 0; max-width: calc(100% - 140px); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox__fig img { max-width: 100%; max-height: calc(100svh - 120px); object-fit: contain; border-radius: var(--r-md); }
.lightbox__fig figcaption { color: rgba(255,255,255,.8); font-size: 14px; text-align: center; }
.lightbox__nav {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 54px; height: 54px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255,253,249,.94); color: var(--ink); cursor: pointer;
}
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.lightbox__nav:hover { background: var(--crimson); color: var(--white); }
.video { width: min(1100px, calc(100vw - 32px)); aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #000; }
.video iframe { width: 100%; height: 100%; border: 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .topbar__nav { display: none; }
  .menu-btn { display: inline-flex; }
}

@media (max-width: 1024px) {
  .card { grid-column: span 6; }
  .facilities { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
}

@media (max-width: 860px) {
  .split, .model, .location, .contact, .sheet__body { grid-template-columns: 1fr; }
  .split__badge { right: 12px; }
  .finder__row { grid-template-columns: 1fr 1fr; }
  .finder__go { grid-column: 1 / -1; min-height: 56px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .stats li:nth-child(3)::before { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .sheet__gallery { padding: 12px 12px 0; }
  .sheet__info { padding: 22px 22px 26px; }
  .location__graphic { min-height: 220px; }
  .location__map iframe { min-height: 340px; }
  .head--row { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  :root { --top-h: 80px; --r-xl: 26px; }
  .topbar { inset: 10px 0 auto; }
  .topbar__pill { height: 58px; padding: 0 6px 0 18px; }
  .hide-sm { display: none; }
  .brand__mark { font-size: 20px; }
  .brand__sub { font-size: 18px; }
  .hero { height: 86svh; min-height: 560px; }
  .hero__shade { background: linear-gradient(0deg, rgba(27,21,18,.9) 0%, rgba(27,21,18,.45) 50%, rgba(27,21,18,.25) 100%); }
  .hero__content { padding-bottom: 104px; }
  .hero__copy { min-height: 0; }
  .hero__text { font-size: 16px; }
  .hero__controls { left: var(--gutter); right: auto; bottom: 64px; }
  .hero__arrow { display: none; }
  .finder-wrap { margin-top: -44px; }
  .finder { padding: 12px; }
  .finder__row { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(3, 1fr); padding: 40px 0 32px; }
  .cats__ic { width: 64px; height: 64px; }
  .cats__ic .ic { width: 27px; height: 27px; }
  .cats a { font-size: 14px; }
  .stats { padding: 24px 6px; }
  .promo { border-radius: var(--r-lg); align-items: flex-start; }
  .cards { gap: 18px; }
  .card, .card--house { grid-column: 1 / -1; }
  .card--house .card__media { aspect-ratio: 4 / 3; }
  .card--house .card__title, .card--house .card__price { font-size: 19px; }
  .rail { grid-auto-columns: 78vw; }
  .rail-nav { display: none; }
  .facts { grid-template-columns: 1fr; }
  .split__media::before { inset: 12px -10px -12px 12px; }
  .model__specs { grid-template-columns: repeat(2, 1fr); }
  .facilities { gap: 12px; }
  .services { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 210px; }
  .gallery button.wide { grid-column: auto; }
  .near li { border-radius: var(--r-lg); }
  .contact { border-radius: var(--r-xl); padding: 26px 16px; }
  .contact::before { inset: 8px; border-radius: 20px; }
  .footer__inner { grid-template-columns: 1fr; }
  .dock { width: calc(100% - 20px); bottom: 10px; }
  .dock__chip span { display: none; }
  .dock__chip { width: 46px; padding: 0; justify-content: center; }
  .dock__cta { flex: 1; padding: 0 14px; }
  .lightbox__fig { max-width: 100%; }
  .lightbox__nav { top: auto; bottom: 20px; translate: none; }
  .sheet { width: 100%; max-height: 100svh; border-radius: var(--r-xl) var(--r-xl) 0 0; margin-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
