:root {
  --navy-950: #061235;
  --navy-900: #0B2160;
  --navy-800: #13307E;
  --navy-700: #1D3F98;
  --navy-100: #E3E9F6;
  --gold-600: #A87B1E;
  --gold-500: #C99A2E;
  --gold-300: #E9C86C;
  --gold-100: #F7EBCB;
  --ground: #F3F5FA;
  --surface: #FFFFFF;
  --ink: #0A1633;
  --ink-2: #3C4A6B;
  --ink-3: #5B6886;
  --line: #D7DEEC;
  --on-navy: #FFFFFF;
  --on-navy-2: #C4CFEA;
  --wa: #128C4A;
  --wa-hover: #0E7A3F;
  --radius: 14px;
  --radius-s: 9px;
  --shadow-1: 0 1px 2px rgba(6, 18, 53, .06), 0 4px 14px rgba(6, 18, 53, .06);
  --shadow-2: 0 2px 4px rgba(6, 18, 53, .08), 0 18px 40px rgba(6, 18, 53, .16);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --display: "Montserrat", system-ui, sans-serif;
  --text: "Figtree", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  accent-color: var(--navy-800);
  caret-color: var(--navy-800);
}
::selection { background: var(--gold-300); color: var(--navy-950); }
img { max-width: 100%; display: block; }
a { color: var(--navy-800); text-underline-offset: .2em; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); font-weight: 800; color: var(--navy-900); }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 4px; }
html { scrollbar-color: var(--navy-700) var(--ground); }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.ico { width: 20px; height: 20px; flex: none; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy-900); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px; border: 0;
  font: 600 .98rem/1 var(--text); text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease-out), transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-gold { background: var(--gold-500); color: var(--navy-950); }
.btn-gold:hover { background: var(--gold-300); }
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-800); }
.btn-ghost { background: transparent; color: var(--navy-900); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--navy-700); }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 8px 4px; color: var(--navy-800); font: 600 .92rem var(--text); text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand img { height: 56px; width: auto; }
.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a { color: var(--ink-2); font-weight: 600; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.main-nav a:hover { color: var(--navy-900); border-color: var(--gold-500); }
.header-wa { min-height: 42px; padding: 0 16px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--navy-100); color: var(--navy-900); cursor: pointer; align-items: center; justify-content: center; }

/* Hero */
.hero { position: relative; background: var(--navy-900); color: var(--on-navy); padding: 56px 0 120px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(41, 84, 190, .45), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem); font-weight: 800; color: #fff; letter-spacing: -.03em; }
.hero-sub { margin-top: 18px; font-size: 1.12rem; color: var(--on-navy-2); max-width: 54ch; }

.search {
  margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; max-width: 620px;
  background: var(--surface); border-radius: 18px; padding: 6px; box-shadow: var(--shadow-2);
}
.field { display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; border-radius: 12px; color: var(--ink); min-width: 0; transition: background-color .2s; }
.field:hover, .field:focus-within { background: var(--ground); }
.field span { font-size: .74rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.field select { border: 0; background: transparent; font: 600 .98rem var(--text); color: var(--ink); padding: 2px 0; width: 100%; cursor: pointer; }
.field select:focus { outline: none; }
.search-go { grid-column: 1 / -1; border-radius: 12px; min-height: 52px; margin-top: 2px; }

/* Featured property */
.feature { position: relative; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.35); aspect-ratio: 4 / 4.2; background: var(--navy-800); }
.feature img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.6s var(--ease-out); }
.feature.ready img { transform: scale(1); }
.feature-panel {
  position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 18px 18px 16px;
  background: var(--surface); color: var(--ink); border-radius: 16px; box-shadow: var(--shadow-2);
  display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: end;
}
.feature-tag { position: absolute; top: 16px; left: 16px; background: var(--gold-500); color: var(--navy-950); font: 700 .78rem var(--text); letter-spacing: .04em; padding: 7px 12px; border-radius: 999px; }
.feature-title { font: 700 1.12rem/1.25 var(--display); color: var(--navy-900); }
.feature-loc { display: flex; align-items: center; gap: 4px; color: var(--ink-3); font-size: .92rem; }
.feature-loc .ico { width: 16px; height: 16px; }
.feature-price { font: 800 1.5rem/1 var(--display); color: var(--navy-900); letter-spacing: -.02em; }
.feature-actions { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 8px; }
.feature-actions .btn { flex: 1; min-height: 44px; }

/* Signature arc */
.arc { position: absolute; left: 0; bottom: -1px; width: 100%; height: 90px; }
.arc-fill { fill: var(--ground); }
.arc-line { fill: none; stroke: var(--gold-500); stroke-width: 5; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .hero .arc-line { stroke-dashoffset: 1; animation: draw 1.6s .25s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Listings */
.listings { padding: 40px 0 88px; }
.list-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.list-count { margin-top: 6px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.currency { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.currency button { border: 0; background: transparent; min-height: 36px; padding: 0 14px; border-radius: 999px; font: 700 .9rem var(--text); color: var(--ink-3); cursor: pointer; }
.currency button[aria-pressed="true"] { background: var(--navy-900); color: #fff; }

.filters { margin-top: 24px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-2);
  min-height: 40px; padding: 0 16px; border-radius: 999px; font: 600 .94rem var(--text); cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s;
}
.chip:hover { border-color: var(--navy-700); color: var(--navy-900); }
.chip[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.chip small { font-weight: 500; opacity: .75; margin-left: 4px; font-variant-numeric: tabular-nums; }
.filter-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.mini { display: flex; flex-direction: column; gap: 4px; flex: 1 1 150px; }
.mini span { font-size: .78rem; font-weight: 700; color: var(--ink-3); }
select, input, textarea { font: inherit; color: inherit; }
.mini select {
  appearance: none; min-height: 42px; padding: 0 36px 0 12px; border: 1.5px solid var(--line); border-radius: var(--radius-s);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233C4A6B' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 12px center;
  font-weight: 600; cursor: pointer;
}
.mini select:hover { border-color: var(--navy-700); }

.grid { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-1); transition: box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
}
.card:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-100); cursor: pointer; border: 0; padding: 0; display: block; width: 100%; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.card:hover .card-media img { transform: scale(1.04); }
.badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.badge { font: 700 .74rem var(--text); letter-spacing: .05em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--surface); color: var(--navy-900); }
.badge.rent { background: var(--gold-500); color: var(--navy-950); }
.code { position: absolute; bottom: 12px; right: 12px; font: 700 .76rem var(--text); color: #fff; background: rgba(6, 18, 53, .78); padding: 5px 9px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.price { font: 800 1.45rem/1.1 var(--display); color: var(--navy-900); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price small { font: 600 .9rem var(--text); color: var(--ink-3); letter-spacing: 0; }
.price .from { font: 600 .82rem var(--text); color: var(--ink-3); display: block; letter-spacing: 0; margin-bottom: 2px; }
.card h3 { font-size: 1.06rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.loc { display: flex; align-items: center; gap: 4px; color: var(--ink-3); font-size: .93rem; }
.loc .ico { width: 16px; height: 16px; }
.specs { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px 0; margin-top: 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: .92rem; font-variant-numeric: tabular-nums; }
.specs span { display: inline-flex; align-items: center; gap: 6px; }
.specs .ico { width: 18px; height: 18px; color: var(--gold-600); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .8rem; font-weight: 600; color: var(--navy-800); background: var(--navy-100); padding: 4px 10px; border-radius: 999px; }
.card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.card-actions .btn { flex: 1; min-height: 44px; padding: 0 12px; font-size: .94rem; }

.empty { margin-top: 28px; padding: 48px 24px; text-align: center; background: var(--surface); border-radius: var(--radius); border: 1.5px dashed var(--line); }
.empty h3 { font-size: 1.3rem; color: var(--navy-900); }
.empty p { margin: 10px auto 20px; max-width: 52ch; color: var(--ink-2); }
.empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.sample-note { margin-top: 28px; font-size: .86rem; color: var(--ink-3); }

/* Brief form */
.brief { padding: 88px 0; background: var(--surface); }
.brief-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.brief-copy p { margin-top: 16px; color: var(--ink-2); font-size: 1.08rem; max-width: 52ch; }
.ticks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; font-weight: 600; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--gold-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='%23A87B1E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center; }

.card-form { background: var(--ground); border-radius: 20px; padding: 28px; border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.field-l { display: flex; flex-direction: column; gap: 6px; }
.field-l.wide { grid-column: 1 / -1; }
.field-l span { font-size: .88rem; font-weight: 700; color: var(--ink-2); }
.field-l em { font-style: normal; font-weight: 500; color: var(--ink-3); }
.field-l input, .field-l select, .field-l textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
}
.field-l select { appearance: none; padding-right: 36px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233C4A6B' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 12px center; cursor: pointer; }
.field-l textarea { resize: vertical; }
.field-l input::placeholder, .field-l textarea::placeholder { color: #6B7794; }
.field-l input:focus, .field-l select:focus, .field-l textarea:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(29, 63, 152, .18); }
.field-l [aria-invalid="true"] { border-color: #B42318; }
.form-error { color: #B42318; font-weight: 600; font-size: .92rem; margin: -6px 0 14px; }
.form-hint { margin-top: 10px; font-size: .86rem; color: var(--ink-3); text-align: center; }

/* Sell */
.sell { position: relative; background: var(--navy-900); color: var(--on-navy); padding: 150px 0 96px; }
.arc-top { top: -1px; bottom: auto; }
.arc-top .arc-fill { fill: var(--surface); }
.sell-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.sell h2 { color: #fff; }
.sell-copy > p { margin-top: 16px; color: var(--on-navy-2); font-size: 1.08rem; max-width: 50ch; }
.steps { list-style: none; counter-reset: s; margin: 28px 0 0; padding: 0; display: grid; gap: 0; }
.steps li { counter-increment: s; position: relative; padding: 14px 0 14px 52px; color: var(--on-navy-2); border-top: 1px solid rgba(255,255,255,.12); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 12px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: transparent; box-shadow: inset 0 0 0 1.5px var(--gold-500); color: var(--gold-300); font: 700 .95rem var(--display); }
.steps strong { color: #fff; }
.card-form.dark { background: var(--navy-800); border-color: rgba(255,255,255,.1); box-shadow: 0 24px 50px rgba(0,0,0,.25); }
.card-form.dark .field-l span { color: var(--on-navy-2); }
.card-form.dark .field-l em { color: #9FB0D8; }
.card-form.dark .form-error { color: #FFB4A8; }

/* About */
.about { padding: 96px 0; }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.about-mark { background: var(--surface); border-radius: 22px; padding: 32px; box-shadow: var(--shadow-1); max-width: 440px; }
.about p { margin-top: 16px; color: var(--ink-2); font-size: 1.08rem; max-width: 60ch; }
.about .placeholder-note { font-size: .92rem; color: var(--gold-600); font-weight: 600; }
.about-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }

/* Footer */
.site-footer { background: var(--navy-950); color: var(--on-navy-2); padding: 56px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid a { display: block; color: var(--on-navy-2); text-decoration: none; padding: 4px 0; }
.footer-grid a:hover { color: var(--gold-300); }
.footer-brand { font: 800 1.15rem var(--display); color: #fff; }
.footer-h { font-weight: 700; color: #fff; margin-bottom: 6px; }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .86rem; color: #93A2C9; }

.float-wa { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; display: none; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(6, 18, 53, .3); }
.float-wa .ico { width: 30px; height: 30px; }

/* Detail dialog */
.detail { width: min(920px, 100% - 24px); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2); overflow: auto; }
.detail::backdrop { background: rgba(6, 18, 53, .6); backdrop-filter: blur(3px); }
.detail[open] { animation: rise .4s var(--ease-out); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.detail-inner { display: grid; grid-template-columns: 1.15fr 1fr; }
.detail-media { position: relative; min-height: 100%; background: var(--navy-100); }
.detail-media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.detail-thumbs { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.detail-thumbs button { flex: none; width: 64px; height: 48px; padding: 0; border: 2px solid rgba(255,255,255,.7); border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--navy-100); }
.detail-thumbs button[aria-pressed="true"] { border-color: var(--gold-500); }
.detail-thumbs img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.detail-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.detail-body h3 { font-size: 1.5rem; font-weight: 800; color: var(--navy-900); }
.detail-body p { color: var(--ink-2); }
.detail-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--surface); color: var(--navy-900); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-1); }
.detail .card-actions { flex-direction: column; }

/* Responsive */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: 720px; }
  .feature { aspect-ratio: 16 / 10; }
}
@media (max-width: 900px) {
  .main-nav, .header-wa { display: none; }
  .menu-btn { display: inline-flex; }
  .main-nav.open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow-1); }
  .main-nav.open a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .hero { padding: 32px 0 100px; }
  .hero-grid, .brief-grid, .sell-grid, .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .feature { aspect-ratio: 4 / 3.6; }
  .float-wa { display: grid; }
  .detail-inner { grid-template-columns: 1fr; }
  .detail-media img { min-height: 0; aspect-ratio: 16 / 10; }
  .about-mark { max-width: 360px; }
  .sell { padding-top: 120px; }
}
@media (max-width: 620px) {
  .brand img { height: 46px; }
  .header-row { min-height: 64px; }
  .grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .card-form { padding: 20px; }
  .list-head { flex-wrap: wrap; }
  .filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .mini { min-width: 0; }
  .mini select { width: 100%; min-width: 0; }
  .link-btn { justify-self: start; }
  .feature { aspect-ratio: auto; display: flex; flex-direction: column; background: var(--surface); }
  .feature img { aspect-ratio: 4 / 3; height: auto; }
  .feature-panel { position: static; box-shadow: none; border-radius: 0; padding: 16px; }
  .feature-price { font-size: 1.3rem; }
  .arc { height: 56px; }
  .brief, .about { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .hero .arc-line { stroke-dashoffset: 0; }
}
