/* ==========================================================================
   CasaProperti — Design System
   Palet: hitam pekat + emas hangat + krem
   ========================================================================== */

:root {
  --ink: #0E0E10;
  --ink-2: #17171B;
  --ink-3: #26262C;
  --gold: #C8922B;
  --gold-2: #E3B44B;
  --gold-3: #F7DC93;
  --gold-soft: #FBF3E2;
  --cream: #FAF7F1;
  --cream-2: #F3EEE4;
  --paper: #FFFFFF;
  --line: #E7E1D6;
  --line-2: #2E2E35;
  --muted: #6E6E78;
  --muted-2: #9A9AA4;
  --text: #212127;
  --ok: #2E7D5B;
  --warn: #B8860B;
  --danger: #B3402F;
  --info: #2C5C8A;

  --ff-display: "Playfair Display", "Didot", Georgia, serif;
  --ff-body: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1260px;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --sh-sm: 0 2px 8px rgba(20, 18, 14, .06);
  --sh: 0 12px 40px rgba(20, 18, 14, .09);
  --sh-lg: 0 30px 80px rgba(14, 14, 16, .16);
  --t: .28s cubic-bezier(.4, 0, .2, 1);
  --header-h: 84px;
}

/* -------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.95rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 40px, 860px); margin-inline: auto; }

.sec { padding: clamp(64px, 8vw, 118px) 0; }
.sec-tight { padding: clamp(48px, 5vw, 76px) 0; }
.sec-cream { background: var(--cream); }
.sec-dark { background: var(--ink); color: #E8E6E1; }
.sec-dark h1, .sec-dark h2, .sec-dark h3, .sec-dark h4 { color: #fff; }

/* -------------------------------------------------------------- type helpers */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .72rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); }
.eyebrow.no-rule::before { display: none; }
.sec-dark .eyebrow { color: var(--gold-2); }
.sec-dark .eyebrow::before { background: var(--gold-2); }

.accent { color: var(--gold); }
.lede { font-size: 1.08rem; color: var(--muted); max-width: 60ch; }
.sec-dark .lede { color: #B9B7B1; }
.small { font-size: .85rem; }
.muted { color: var(--muted); }

.sec-head { max-width: 640px; margin-bottom: 52px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; margin-bottom: 52px; flex-wrap: wrap;
}
.sec-head-row .sec-head { margin-bottom: 0; }

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
  font-size: .9rem; font-weight: 600; letter-spacing: .01em;
  transition: var(--t); white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--ink); }
.btn-gold:hover { filter: brightness(1.07); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(200, 146, 43, .32); }
.btn-ghost { border-color: rgba(14, 14, 16, .22); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--gold-2); }
.btn-outline-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-sm { padding: 10px 18px; font-size: .82rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: .88rem; color: var(--ink);
  border-bottom: 1px solid var(--gold); padding-bottom: 4px; transition: var(--t);
}
.link-arrow svg { width: 16px; height: 16px; transition: var(--t); }
.link-arrow:hover { color: var(--gold); }
.link-arrow:hover svg { transform: translateX(5px); }
.sec-dark .link-arrow { color: #fff; }

/* -------------------------------------------------------------- header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 90;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background var(--t), box-shadow var(--t), height var(--t);
}
.site-header.on-dark { color: #fff; }
.site-header.solid {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(20, 18, 14, .06);
  color: var(--ink);
  height: 72px;
}
.header-inner { display: flex; align-items: center; gap: 28px; width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 42px; height: 42px; }
.brand-text { line-height: 1.05; }
.brand-name { font-family: var(--ff-display); font-size: 1.32rem; font-weight: 700; letter-spacing: -.01em; }
.brand-name span { color: var(--gold); }
.site-header.on-dark:not(.solid) .brand-name { color: #fff; }
.site-header.on-dark:not(.solid) .brand-name span { color: var(--gold-2); }
.brand-sub { font-size: .55rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.site-header.on-dark:not(.solid) .brand-sub { color: rgba(255, 255, 255, .6); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a, .nav-drop > button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 15px; border-radius: 999px; background: none; border: 0;
  font-size: .89rem; font-weight: 500; transition: var(--t); color: inherit;
}
.nav > a:hover, .nav-drop > button:hover { color: var(--gold); }
.nav > a.active { color: var(--gold); font-weight: 700; }
.nav-drop { position: relative; }
.nav-drop > button svg { width: 13px; height: 13px; transition: var(--t); }
.nav-drop:hover > button svg { transform: rotate(180deg); }
.nav-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 232px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: var(--t); color: var(--text);
}
.nav-drop:hover .nav-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu a { display: block; padding: 10px 14px; border-radius: var(--r-sm); font-size: .87rem; transition: var(--t); }
.nav-menu a:hover { background: var(--cream); color: var(--gold); }
.nav-menu small { display: block; color: var(--muted); font-size: .74rem; line-height: 1.4; }

.header-cta { display: flex; align-items: center; gap: 10px; flex: none; }
.burger {
  display: none; width: 44px; height: 44px; border: 1px solid currentColor;
  border-radius: 50%; background: none; align-items: center; justify-content: center;
  opacity: .5;
}
.burger span { display: block; width: 17px; height: 1.6px; background: currentColor; position: relative; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.6px; background: currentColor; transition: var(--t);
}
.burger span::before { top: -5.5px; }
.burger span::after { top: 5.5px; }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 100; background: var(--ink); color: #fff;
  padding: 24px; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .38s cubic-bezier(.4, 0, .2, 1);
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.drawer-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: none; color: #fff; font-size: 1.3rem; }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a {
  padding: 15px 0; border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-family: var(--ff-display); font-size: 1.45rem;
}
.drawer nav a:hover { color: var(--gold-2); }
.drawer-foot { margin-top: auto; padding-top: 28px; display: grid; gap: 10px; }

/* -------------------------------------------------------------- hero */
.hero { position: relative; padding-top: var(--header-h); background: var(--ink); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,10,12,.93) 0%, rgba(10,10,12,.82) 36%, rgba(10,10,12,.32) 66%, rgba(10,10,12,.5) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: clamp(60px, 9vw, 130px) 0 clamp(150px, 14vw, 190px); }
.hero-copy { max-width: 640px; color: #fff; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--gold-2); }
.hero p { color: rgba(255, 255, 255, .78); font-size: 1.1rem; max-width: 46ch; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; left: 50%; bottom: 190px; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,.5); font-size: .68rem; letter-spacing: .24em;
  text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll::after { content: ""; width: 1px; height: 38px; background: linear-gradient(var(--gold-2), transparent); }

/* stat bar */
.statbar {
  position: relative; z-index: 3; margin-top: -96px;
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.statbar-item { padding: 34px 30px; border-right: 1px solid var(--line); }
.statbar-item:last-child { border-right: 0; }
.statbar-val { font-family: var(--ff-display); font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 700; color: var(--ink); line-height: 1; }
.statbar-lab { font-weight: 700; font-size: .84rem; margin-top: 10px; }
.statbar-note { font-size: .78rem; color: var(--muted); line-height: 1.5; }

/* -------------------------------------------------------------- page hero (inner pages) */
.page-hero {
  position: relative; background: var(--ink); color: #fff;
  padding: calc(var(--header-h) + clamp(56px, 7vw, 96px)) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.page-hero-media { position: absolute; inset: 0; opacity: .38; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,.86), rgba(10,10,12,.7));
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,.76); max-width: 60ch; }
.crumbs { display: flex; gap: 8px; font-size: .78rem; color: rgba(255,255,255,.55); margin-bottom: 20px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--gold-2); }
.crumbs span { color: rgba(255,255,255,.3); }

/* -------------------------------------------------------------- property card */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 40px; }

.pcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column; transition: var(--t);
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--sh); border-color: transparent; }
.pcard-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-2); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.pcard:hover .pcard-media img { transform: scale(1.06); }
.pcard-tags { position: absolute; top: 14px; left: 14px; display: flex; gap: 7px; flex-wrap: wrap; }
.pcard-fav {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px;
  border-radius: 50%; border: 0; background: rgba(255,255,255,.92);
  display: grid; place-items: center; transition: var(--t);
}
.pcard-fav svg { width: 17px; height: 17px; stroke: var(--ink); fill: none; stroke-width: 1.7; }
.pcard-fav:hover { background: var(--gold-2); }
.pcard-fav.on svg { fill: var(--gold); stroke: var(--gold); }
.pcard-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.pcard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 4px; }
.pcard-title { font-family: var(--ff-display); font-size: 1.16rem; font-weight: 700; line-height: 1.25; }
.pcard-title a:hover { color: var(--gold); }
.pcard-price { font-weight: 800; font-size: 1rem; color: var(--ink); white-space: nowrap; text-align: right; }
.pcard-price small { display: block; font-weight: 500; font-size: .7rem; color: var(--muted); }
.pcard-loc { display: flex; align-items: center; gap: 7px; font-size: .84rem; color: var(--muted); margin-bottom: 16px; }
.pcard-loc svg { width: 14px; height: 14px; flex: none; color: var(--gold); }
.pcard-specs {
  display: flex; gap: 18px; flex-wrap: wrap; margin-top: auto;
  padding-top: 16px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted);
}
.pcard-specs span { display: inline-flex; align-items: center; gap: 6px; }
.pcard-specs svg { width: 15px; height: 15px; color: var(--ink); opacity: .55; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}
.badge-dark { background: rgba(14,14,16,.88); color: #fff; backdrop-filter: blur(6px); }
.badge-gold { background: var(--gold); color: var(--ink); }
.badge-sold { background: var(--danger); color: #fff; }
.badge-line { background: rgba(255,255,255,.9); color: var(--ink); }
.badge-soft { background: var(--gold-soft); color: #8A6218; }

/* -------------------------------------------------------------- feature tiles */
.tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 34px 30px; transition: var(--t); height: 100%;
}
.tile:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--sh-sm); }
.tile-ico {
  width: 54px; height: 54px; border-radius: 14px; background: var(--gold-soft);
  display: grid; place-items: center; margin-bottom: 22px; color: var(--gold);
}
.tile-ico svg { width: 25px; height: 25px; }
.tile h3 { font-size: 1.22rem; margin-bottom: 10px; }
.tile p { color: var(--muted); font-size: .92rem; margin: 0; }
.tile ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.tile li { position: relative; padding-left: 24px; font-size: .88rem; color: var(--muted); line-height: 1.55; }
.tile li::before {
  content: ""; position: absolute; left: 0; top: .52em; width: 12px; height: 7px;
  border-left: 1.8px solid var(--gold); border-bottom: 1.8px solid var(--gold);
  transform: rotate(-45deg);
}

.sec-dark .tile { background: var(--ink-2); border-color: var(--line-2); }
.sec-dark .tile:hover { border-color: var(--gold); }
.sec-dark .tile p, .sec-dark .tile li { color: #A9A7A2; }
.sec-dark .tile-ico { background: rgba(200,146,43,.14); color: var(--gold-2); }

/* -------------------------------------------------------------- filter bar */
.filterbar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh); padding: 22px;
}
.filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; align-items: end; }
.field { display: grid; gap: 7px; }
.field label { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; font-size: .9rem; transition: var(--t); font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,146,43,.14);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-full { grid-column: 1 / -1; }
.field-hint { font-size: .76rem; color: var(--muted); }

.chips { display: flex; gap: 9px; flex-wrap: wrap; }
.chip {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: .82rem; font-weight: 600; transition: var(--t);
}
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.results-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin: 34px 0 26px;
}
.results-bar strong { font-size: 1rem; }

/* -------------------------------------------------------------- property detail */
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.gallery-main { border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 11; background: var(--cream-2); cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-side { display: grid; gap: 12px; grid-template-rows: repeat(3, 1fr); }
.gallery-thumb { border-radius: var(--r); overflow: hidden; position: relative; cursor: pointer; background: var(--cream-2); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: var(--t); }
.gallery-thumb:hover img { transform: scale(1.05); }
.gallery-more {
  position: absolute; inset: 0; background: rgba(14,14,16,.66); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .95rem;
}

.detail-layout { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: start; }
.specs-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.specs-grid > .spec { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec {
  background: #fff; padding: 20px 22px;
}
.spec-lab { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.spec-val { font-weight: 700; font-size: 1.02rem; margin-top: 4px; }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pill-list li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: .85rem; background: #fff;
}
.pill-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.sticky-card { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px;
}
.card-dark { background: var(--ink); color: #DEDCD7; border-color: var(--line-2); }
.card-dark h3, .card-dark h4 { color: #fff; }

.agent-mini { display: flex; gap: 15px; align-items: center; margin-bottom: 20px; }
.avatar {
  width: 58px; height: 58px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-family: var(--ff-display);
  font-weight: 700; font-size: 1.22rem; color: var(--ink);
  background: linear-gradient(135deg, var(--gold-3), var(--gold));
}
.avatar-lg { width: 96px; height: 96px; font-size: 2rem; }
img.avatar { object-fit: cover; background: var(--cream-2); }
.avatar-sm { width: 40px; height: 40px; font-size: .92rem; }

.price-block { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-big { font-family: var(--ff-display); font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 700; color: var(--ink); line-height: 1; }
.price-per { font-size: .88rem; color: var(--muted); }

/* -------------------------------------------------------------- listing row (compact) */
.rowcard { display: grid; grid-template-columns: 240px 1fr; gap: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: var(--t); }
.rowcard:hover { box-shadow: var(--sh); }
.rowcard-media { aspect-ratio: 4/3; }
.rowcard-media img { width: 100%; height: 100%; object-fit: cover; }
.rowcard-body { padding: 20px 24px 20px 0; display: flex; flex-direction: column; }

/* -------------------------------------------------------------- testimonials / cta */
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 32px 30px; height: 100%; display: flex; flex-direction: column;
}
.stars { display: flex; gap: 3px; color: var(--gold); margin-bottom: 16px; }
.stars svg { width: 15px; height: 15px; fill: currentColor; }
.quote blockquote { margin: 0 0 22px; font-size: .97rem; line-height: 1.75; color: #35353D; }
.quote-by { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.quote-by strong { display: block; font-size: .92rem; }
.quote-by span { font-size: .8rem; color: var(--muted); }

.cta-band {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--ink); color: #fff;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
}
.cta-band-media { position: relative; min-height: 340px; }
.cta-band-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,14,16,1), rgba(14,14,16,.35)); }
.cta-band-copy { padding: clamp(36px, 5vw, 64px); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.72); }
.play-btn {
  position: absolute; z-index: 3; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%; border: 0;
  background: #fff; display: grid; place-items: center; transition: var(--t);
}
.play-btn::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.45); animation: pulse 2.6s infinite;
}
.play-btn svg { width: 22px; height: 22px; fill: var(--ink); margin-left: 3px; }
.play-btn:hover { background: var(--gold-2); transform: translate(-50%, -50%) scale(1.07); }
@keyframes pulse { 0% { transform: scale(1); opacity: .8 } 100% { transform: scale(1.3); opacity: 0 } }

/* -------------------------------------------------------------- process / timeline */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (min-width: 900px) {
  .steps.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .steps.cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.step { background: #fff; padding: 32px 28px; }
.step-num { font-family: var(--ff-display); font-size: 2.4rem; color: var(--gold); opacity: .38; line-height: 1; margin-bottom: 14px; }
.step h4 { margin-bottom: 8px; font-size: 1.08rem; }
.step p { color: var(--muted); font-size: .89rem; margin: 0; }

/* -------------------------------------------------------------- accordion */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-q {
  width: 100%; text-align: left; background: none; border: 0; padding: 24px 44px 24px 0;
  font-weight: 700; font-size: 1.02rem; position: relative; color: var(--ink);
  font-family: var(--ff-body);
}
.acc-q::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: translateY(-70%) rotate(45deg); transition: var(--t);
}
.acc-item.open .acc-q::after { transform: translateY(-20%) rotate(-135deg); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.acc-a > div { padding-bottom: 26px; color: var(--muted); font-size: .95rem; max-width: 76ch; }

/* -------------------------------------------------------------- article */
.article-body { font-size: 1.06rem; line-height: 1.85; color: #30303A; }
.article-body p { margin-bottom: 1.5em; }
.article-body p:first-of-type::first-letter {
  font-family: var(--ff-display); font-size: 3.6rem; line-height: .82;
  float: left; padding: 6px 12px 0 0; color: var(--gold);
}
.article-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: .84rem; color: var(--muted); align-items: center; }
.acard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: var(--t); display: flex; flex-direction: column; }
.acard:hover { transform: translateY(-5px); box-shadow: var(--sh); }
.acard-media { aspect-ratio: 16/10; overflow: hidden; }
.acard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.acard:hover .acard-media img { transform: scale(1.05); }
.acard-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.acard h3 { font-size: 1.14rem; margin: 10px 0 10px; }
.acard h3 a:hover { color: var(--gold); }
.acard p { font-size: .88rem; color: var(--muted); }

/* -------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: #A7A5A0; padding: clamp(56px, 7vw, 92px) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 44px; padding-bottom: 56px; }
.site-footer h4 { color: #fff; font-family: var(--ff-body); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 20px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.site-footer a { font-size: .9rem; transition: var(--t); }
.site-footer a:hover { color: var(--gold-2); }
.footer-brand .brand-name { color: #fff; font-size: 1.5rem; }
.footer-brand p { font-size: .9rem; margin: 18px 0 22px; max-width: 34ch; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16);
  display: grid; place-items: center; transition: var(--t);
}
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.socials svg { width: 16px; height: 16px; }
.footer-bar {
  border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: .82rem;
}

.newsletter { display: flex; gap: 10px; margin-top: 16px; }
.newsletter input {
  flex: 1; padding: 13px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.05); color: #fff; font-size: .87rem;
}
.newsletter input::placeholder { color: rgba(255,255,255,.4); }
.newsletter input:focus { outline: none; border-color: var(--gold); }

/* -------------------------------------------------------------- misc */
.logo-strip { display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap; }
.logo-strip span {
  font-family: var(--ff-display); font-size: 1.28rem; font-weight: 700;
  color: var(--ink); opacity: .34; transition: var(--t);
}
.logo-strip span:hover { opacity: .8; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.media-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.media-frame img { width: 100%; aspect-ratio: 4/3.2; object-fit: cover; }
.media-badge {
  position: absolute; left: 24px; bottom: 24px; background: #fff;
  border-radius: var(--r); padding: 18px 22px; box-shadow: var(--sh);
}
.media-badge strong { font-family: var(--ff-display); font-size: 1.9rem; display: block; line-height: 1; }
.media-badge span { font-size: .78rem; color: var(--muted); }

.empty {
  text-align: center; padding: 80px 20px; border: 1px dashed var(--line);
  border-radius: var(--r); color: var(--muted);
}
.empty h3 { margin-bottom: 8px; }

.pager { display: flex; gap: 8px; justify-content: center; margin-top: 52px; flex-wrap: wrap; }
.pager button {
  min-width: 44px; height: 44px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: .88rem; transition: var(--t);
}
.pager button:hover:not(:disabled) { border-color: var(--ink); }
.pager button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager button:disabled { opacity: .38; cursor: not-allowed; }

.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 140%);
  background: var(--ink); color: #fff; padding: 15px 26px; border-radius: 999px;
  box-shadow: var(--sh-lg); z-index: 200; font-size: .9rem; font-weight: 600;
  transition: transform .4s cubic-bezier(.4,0,.2,1); max-width: calc(100% - 40px);
}
.toast.show { transform: translate(-50%, 0); }
.toast.err { background: var(--danger); }

.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(8,8,10,.95);
  display: none; align-items: center; justify-content: center; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 86vh; object-fit: contain; border-radius: var(--r); }
.lightbox-close, .lightbox-nav {
  position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff;
  width: 50px; height: 50px; border-radius: 50%; font-size: 1.2rem; transition: var(--t);
}
.lightbox-close:hover, .lightbox-nav:hover { background: var(--gold); color: var(--ink); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-nav.prev { left: 24px; top: 50%; }
.lightbox-nav.next { right: 24px; top: 50%; }
.lightbox-count { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: .85rem; }

.map-embed {
  border-radius: var(--r); overflow: hidden; border: 1px solid var(--line);
  background: var(--cream-2); aspect-ratio: 16/8; position: relative;
  display: grid; place-items: center; text-align: center; padding: 24px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

.skiplink {
  position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--ink);
  padding: 12px 20px; z-index: 999; border-radius: 0 0 8px 0; font-weight: 700;
}
.skiplink:focus { left: 0; }

/* -------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .detail-layout { grid-template-columns: 1fr; }
  .sticky-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 980px) {
  .nav, .header-cta .btn { display: none; }
  .burger { display: flex; margin-left: auto; }
  .statbar { grid-template-columns: repeat(2, 1fr); }
  .statbar-item:nth-child(2) { border-right: 0; }
  .statbar-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band-media { min-height: 260px; order: -1; }
  .cta-band-media::after { background: linear-gradient(180deg, rgba(14,14,16,.3), rgba(14,14,16,.85)); }
  .split { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-side { grid-template-rows: none; grid-template-columns: repeat(3, 1fr); }
  .gallery-thumb { aspect-ratio: 4/3; }
  .rowcard { grid-template-columns: 1fr; }
  .rowcard-body { padding: 0 22px 22px; }
}
@media (max-width: 620px) {
  :root { --header-h: 72px; }
  .wrap, .wrap-narrow { width: min(100% - 32px, var(--wrap)); }
  .statbar { grid-template-columns: 1fr; margin-top: -60px; }
  .statbar-item { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px; }
  .statbar-item:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; }
  .hero-scroll { display: none; }
  .brand-sub { display: none; }
  .article-body { font-size: 1rem; }
  .lightbox-nav.prev { left: 10px; }
  .lightbox-nav.next { right: 10px; }
}

@media print {
  .site-header, .site-footer, .burger, .hero-scroll, .pcard-fav { display: none !important; }
  body { color: #000; }
}

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

/* ==========================================================================
   MOBILE — disusun mobile-first pada lapisan ini
   ========================================================================== */

:root { --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px); }

html { -webkit-text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: rgba(200, 146, 43, .16); }
img, svg, video, iframe, table { max-width: 100%; }

/* --- galeri swipe (hanya mobile) --- */
.gal-mobile { display: none; }
.gal-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 88%;
  gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px; padding: 0 16px 4px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.gal-track::-webkit-scrollbar { display: none; }
.gal-slide { scroll-snap-align: center; border-radius: var(--r); overflow: hidden; background: var(--cream-2); }
.gal-slide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gal-count {
  display: flex; justify-content: center; gap: 6px; margin-top: 12px;
}
.gal-count i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: var(--t); }
.gal-count i.on { background: var(--gold); width: 20px; border-radius: 3px; }

/* --- bilah aksi bawah (halaman properti) --- */
.mbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(20, 18, 14, .10);
  padding: 10px 16px calc(10px + var(--safe-b));
  gap: 10px; align-items: center;
}
.mbar-price { flex: 1; min-width: 0; line-height: 1.15; }
.mbar-price strong { display: block; font-size: 1.05rem; font-weight: 800; }
.mbar-price span { font-size: .74rem; color: var(--muted); display: block; }
.mbar .btn { padding: 12px 16px; font-size: .84rem; min-height: 46px; }

/* --- panel filter sebagai sheet --- */
.filter-toggle { display: none; }
.sheet-back { display: none; }

@media (max-width: 860px) {

  /* ---- dasar ---- */
  .sec { padding: clamp(44px, 9vw, 64px) 0; }
  .sec-tight { padding: 32px 0; }
  h1 { font-size: clamp(2rem, 8.4vw, 2.7rem); }
  h2 { font-size: clamp(1.6rem, 6.6vw, 2.1rem); }
  h3 { font-size: 1.18rem; }
  .lede { font-size: 1rem; }
  .sec-head, .sec-head-row { margin-bottom: 30px; }
  .sec-head-row { gap: 16px; }
  .grid-cards, .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 18px; }

  /* ---- target sentuh ---- */
  .btn { min-height: 48px; padding: 14px 22px; }
  .btn-sm { min-height: 42px; padding: 11px 18px; }
  .chip { min-height: 42px; padding: 10px 18px; }
  .pager button { min-width: 46px; height: 46px; }
  .pcard-fav { width: 44px; height: 44px; }
  .link-arrow { padding: 8px 0; }
  .socials a { width: 46px; height: 46px; }

  /* ---- form: cegah zoom otomatis iOS ---- */
  .field input, .field select, .field textarea,
  input, select, textarea { font-size: 16px; }
  .field input, .field select { min-height: 50px; }

  /* ---- header ---- */
  .header-inner { gap: 12px; }
  .brand img { width: 38px; height: 38px; }
  .brand-name { font-size: 1.18rem; }
  .drawer { padding: 20px 20px calc(20px + var(--safe-b)); }
  .drawer nav a { padding: 17px 0; font-size: 1.3rem; }
  .drawer-foot .btn { min-height: 50px; }

  /* ---- hero ---- */
  .hero-inner { padding: 44px 0 120px; }
  .hero p { font-size: 1rem; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .page-hero { padding: calc(var(--header-h) + 40px) 0 44px; }

  /* ---- kartu properti ---- */
  .pcard-media { aspect-ratio: 16 / 11; }
  .pcard-body { padding: 16px 16px 18px; }
  .pcard-top { flex-direction: column; gap: 4px; }
  .pcard-price { text-align: left; font-size: 1.08rem; }
  .pcard-price small { display: inline; margin-left: 4px; }
  .pcard-specs { gap: 14px; font-size: .78rem; }

  /* ---- filter jadi sheet ---- */
  .filter-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%; padding: 14px 18px; border-radius: 999px;
    border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: .92rem;
    box-shadow: var(--sh-sm); min-height: 50px;
  }
  .filter-toggle .n { background: var(--gold); color: var(--ink); border-radius: 999px; padding: 2px 10px; font-size: .78rem; }
  .filterbar.as-sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
    border-radius: 20px 20px 0 0; max-height: 86vh; overflow-y: auto;
    padding: 8px 18px calc(18px + var(--safe-b));
    transform: translateY(102%); transition: transform .34s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 -18px 50px rgba(14, 14, 16, .28);
  }
  .filterbar.as-sheet.open { transform: none; }
  .filterbar.as-sheet::before {
    content: ""; display: block; width: 44px; height: 4px; border-radius: 2px;
    background: var(--line); margin: 8px auto 16px;
  }
  .filter-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .filter-grid .field-full, .filter-grid > div:last-child { grid-column: 1 / -1; }
  .sheet-back {
    display: block; position: fixed; inset: 0; z-index: 105;
    background: rgba(12, 12, 14, .5); opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .sheet-back.open { opacity: 1; pointer-events: auto; }
  .results-bar { margin: 22px 0 18px; gap: 10px; }
  .results-bar strong { font-size: .92rem; }

  /* ---- detail properti ---- */
  .gallery { display: none; }
  .gal-mobile { display: block; margin-inline: -16px; }
  .detail-layout { gap: 36px; }
  .specs-grid { grid-template-columns: 1fr 1fr; }
  .spec { padding: 14px 16px; }
  .spec-val { font-size: .95rem; }
  .price-big { font-size: 1.9rem; }
  body[data-page="property"] { padding-bottom: 82px; }
  body[data-page="property"] .mbar { display: flex; }
  .sticky-card { gap: 16px; }

  /* ---- konten ---- */
  .steps { grid-template-columns: 1fr; }
  .step { padding: 24px 20px; }
  .split { gap: 28px; }
  .media-badge { left: 16px; bottom: 16px; padding: 14px 16px; }
  .media-badge strong { font-size: 1.5rem; }
  .quote { padding: 24px 20px; }
  .tile { padding: 26px 22px; }
  .acc-q { padding: 20px 40px 20px 0; font-size: .96rem; }
  .article-body { font-size: 1rem; }
  .article-body p:first-of-type::first-letter { font-size: 3rem; padding-right: 10px; }
  .logo-strip { gap: 22px; justify-content: center; }
  .logo-strip span { font-size: 1.05rem; }
  .cta-band-copy { padding: 30px 22px 34px; }
  .map-embed { aspect-ratio: 4 / 3; }

  /* ---- KPR: hasil tampil lebih dulu ---- */
  body[data-page="kpr"] .detail-layout { display: flex; flex-direction: column; }
  body[data-page="kpr"] .sticky-card { order: -1; }

  /* ---- footer ---- */
  .site-footer { padding-top: 48px; }
  .footer-grid { gap: 30px; padding-bottom: 36px; }
  .footer-bar { flex-direction: column; gap: 12px; padding-bottom: calc(24px + var(--safe-b)); }
  .newsletter { flex-direction: column; }
  .newsletter input { min-height: 50px; }
  .newsletter .btn { min-height: 48px; }
  .lightbox { padding: 10px; }
  .lightbox-close { top: calc(12px + var(--safe-t)); right: 12px; }
}

@media (max-width: 420px) {
  .wrap, .wrap-narrow { width: calc(100% - 32px); }
  .filter-grid { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: 1fr 1fr; }
  .statbar-val { font-size: 1.9rem; }
  .badge { font-size: .64rem; padding: 4px 9px; }
  .mbar .btn span { display: none; }
}

/* layar lebar tapi pendek / lanskap ponsel */
@media (max-height: 460px) and (orientation: landscape) {
  .hero-inner { padding: 30px 0 90px; }
  .drawer nav a { padding: 11px 0; font-size: 1.1rem; }
}
