@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Manrope:wght@400;500;600;700&display=swap");
:root { --sand: #f4efe6; --sand-2: #ebe3d5; --ink: #1c2321; --teal: #1f5c5a; --teal-2: #2a7774; --terra: #d9643a; --peach: #f4b183; --muted: #66706d; --line: #ddd3c2; --card: #fffcf7; --r: 22px; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Manrope", sans-serif; background: var(--sand); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; } button, input, select { font: inherit; }
h1, h2, h3 { font-family: "Instrument Serif", serif; font-weight: 400; letter-spacing: -0.01em; line-height: 1.02; }
h1 em, h2 em { color: var(--terra); }
.w { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.sec { padding: 100px 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-2); }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 34em; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--teal); color: #fff; padding: 13px 20px; border-radius: 99px; font-weight: 700; font-size: 15px; border: 0; cursor: pointer; transition: background .2s, transform .2s; white-space: nowrap; }
.btn:hover { background: var(--ink); transform: translateY(-1px); } .btn.terra { background: var(--terra); } .btn.terra:hover { background: #b84f2a; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); } .btn.ghost:hover { background: var(--ink); color: #fff; }
[data-rv] { opacity: 0; transform: translateY(22px); transition: opacity .7s, transform .7s cubic-bezier(.2,.7,.2,1); } [data-rv].in { opacity: 1; transform: none; }

/* header / footer / badge */
.lh { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 28px; transition: background .3s, box-shadow .3s; }
.lh.scrolled, .lh.menu-open { background: rgba(244,239,230,.9); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Instrument Serif"; font-size: 26px; }
.lh-nav { display: flex; gap: 6px; } .lh-nav a { padding: 8px 14px; border-radius: 99px; font-size: 15px; font-weight: 500; color: var(--muted); } .lh-nav a:hover { color: var(--ink); background: var(--sand-2); } .lh-nav a[aria-current] { color: var(--ink); background: var(--sand-2); }
.lh-act { display: flex; gap: 14px; align-items: center; } .lh-sec { font-size: 15px; font-weight: 500; color: var(--muted); } .lh-sec::before { content: "♡ "; }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--ink); background: none; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger i { width: 16px; height: 1.5px; background: var(--ink); transition: transform .3s; }
.menu-open .burger i:first-child { transform: translateY(3.3px) rotate(45deg); } .menu-open .burger i:last-child { transform: translateY(-3.3px) rotate(-45deg); }
.drawer { position: fixed; inset: 70px 0 0 0; z-index: 49; background: var(--sand); padding: 26px 28px; display: flex; flex-direction: column; gap: 26px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.drawer.open { opacity: 1; pointer-events: auto; } .drawer nav { display: flex; flex-direction: column; } .drawer nav a { font-family: "Instrument Serif"; font-size: 40px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.lf { background: var(--teal); color: #d6e6e3; padding: 80px 28px 40px; margin-top: 60px; }
.lf .brand { color: #fff; } .lf-top { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.lf-brand p { margin-top: 12px; max-width: 22em; line-height: 1.55; color: #a9c7c3; }
.lf h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--peach); margin-bottom: 14px; }
.lf-top a { display: block; padding: 5px 0; } .lf-top a:hover { color: #fff; }
.lf-bot { max-width: 1240px; margin: 56px auto 0; padding-top: 22px; border-top: 1px solid #2f716e; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 14px; color: #93b5b1; } .lf-bot a:hover { color: var(--peach); }
.concept-badge { position: fixed; left: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 7px; border-radius: 99px; background: #0d0f12; color: #fff; font: 600 12px/1 Inter, sans-serif; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .2s; }
.concept-badge:hover { transform: translateY(-2px); } .concept-badge b { background: #8c83f6; padding: 5px 8px; border-radius: 99px; } .concept-badge i { font-style: normal; color: #8c83f6; }

/* hero */
.hero { padding: 40px 0 80px; position: relative; }
.hero .w { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(52px, 7vw, 104px); margin: 18px 0 22px; }
.hero h1 em { font-style: italic; }
.stats-mini { display: flex; gap: 26px; margin-top: 30px; flex-wrap: wrap; } .stats-mini b { display: block; font-family: "Instrument Serif"; font-size: 34px; } .stats-mini span { font-size: 13px; color: var(--muted); }
.scene { position: relative; aspect-ratio: 1.08; border-radius: 34px; overflow: hidden; box-shadow: 0 40px 80px rgba(28,35,33,.16); }
.scene svg { width: 100%; height: 100%; display: block; }
.sky { animation: sky 16s ease-in-out infinite alternate; }
@keyframes sky { 0% { filter: hue-rotate(0deg) saturate(1); } 100% { filter: hue-rotate(-28deg) saturate(1.25) brightness(.92); } }
.sun { animation: sun 16s ease-in-out infinite alternate; transform-origin: 300px 420px; } @keyframes sun { to { transform: rotate(38deg); } }
.cl { animation: drift 30s linear infinite; } .cl.b { animation-duration: 42s; animation-delay: -12s; } @keyframes drift { from { transform: translateX(-160px); } to { transform: translateX(640px); } }
.bp { transform-box: fill-box; opacity: 0; animation: .8s cubic-bezier(.2,.8,.2,1.1) forwards; }
.bp.found { transform-origin: center; animation-name: growX; animation-delay: .2s; }
.bp.walls { transform-origin: bottom; animation-name: growY; animation-delay: .6s; }
.bp.roof { animation-name: drop; animation-delay: 1.2s; }
.bp.chim { transform-origin: bottom; animation-name: growY; animation-delay: 1.6s; }
.bp.door { transform-origin: bottom; animation-name: growY; animation-delay: 1.8s; }
.bp.tree { transform-origin: bottom; animation-name: pop; animation-delay: 2.1s; } .bp.tree.t2 { animation-delay: 2.3s; }
.bp.path { animation-name: fade; animation-delay: 2.2s; }
.win { fill: #cfe1ea; animation: lit 1s ease forwards; } .win:nth-of-type(1) { animation-delay: 2.5s; } .win.w2 { animation-delay: 2.8s; } .win.w3 { animation-delay: 3.1s; } .win.w4 { animation-delay: 3.4s; }
@keyframes lit { to { fill: #ffd58a; } }
@keyframes growX { from { opacity: 1; transform: scaleX(0); } to { opacity: 1; transform: none; } }
@keyframes growY { from { opacity: 1; transform: scaleY(0); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-60px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 1; transform: scale(0); } to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
.scan { position: absolute; left: 0; right: 0; height: 90px; top: -90px; background: linear-gradient(transparent, rgba(244,177,131,.0), rgba(255,255,255,.55), transparent); mix-blend-mode: soft-light; animation: scan 5s ease-in-out 3.6s infinite; pointer-events: none; }
@keyframes scan { 0% { top: -90px; } 60%, 100% { top: 100%; } }
.chipf { position: absolute; background: rgba(255,252,247,.94); backdrop-filter: blur(8px); border-radius: 16px; padding: 10px 14px; font-size: 13.5px; font-weight: 600; box-shadow: 0 12px 30px rgba(28,35,33,.14); display: flex; gap: 8px; align-items: center; opacity: 0; transform: translateY(10px); animation: chipIn .6s cubic-bezier(.2,.8,.2,1.2) forwards, bob 5s ease-in-out infinite; }
.chipf b { color: var(--terra); } .chipf i { font-style: normal; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--sand-2); }
.chipf.a { left: 5%; top: 8%; animation-delay: 3.6s, 4.2s; } .chipf.b { right: 5%; top: 30%; animation-delay: 4s, 4.6s; } .chipf.c { left: 8%; bottom: 10%; animation-delay: 4.4s, 5s; }
@keyframes chipIn { to { opacity: 1; transform: none; } } @keyframes bob { 50% { translate: 0 -6px; } }

/* AI search */
.searchwrap { margin-top: -36px; position: relative; z-index: 5; }
.search { background: var(--card); border-radius: 30px; padding: 22px; box-shadow: 0 30px 70px rgba(28,35,33,.14), 0 0 0 1px var(--line); }
.modes { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; } .modes button { border: 0; background: var(--sand-2); padding: 9px 16px; border-radius: 99px; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; } .modes button.on { background: var(--ink); color: #fff; }
.ask { display: flex; gap: 10px; align-items: center; background: var(--sand); border-radius: 20px; padding: 8px 8px 8px 18px; border: 1.5px solid transparent; transition: border-color .2s, background .2s; }
.ask:focus-within { border-color: var(--teal-2); background: #fff; }
.ask .spark { color: var(--terra); font-size: 20px; } .ask input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 17px; padding: 12px 0; color: var(--ink); }
.parsed { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; min-height: 30px; align-items: center; }
.parsed .lbl { font-size: 13px; color: var(--muted); }
.pchip { display: inline-flex; gap: 6px; align-items: center; background: rgba(31,92,90,.1); color: var(--teal); font-weight: 700; font-size: 13px; padding: 6px 10px; border-radius: 99px; animation: pin .35s cubic-bezier(.2,.8,.2,1.3) both; } .pchip button { border: 0; background: none; color: inherit; cursor: pointer; font-weight: 700; }
@keyframes pin { from { opacity: 0; transform: scale(.8); } }
.filters { display: grid; grid-template-columns: 1.1fr 1fr 1.5fr 1fr 1fr; gap: 10px; margin-top: 14px; }
.fbox { background: var(--sand); border-radius: 16px; padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fbox label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.fbox select, .fbox input { border: 0; background: none; outline: 0; font-weight: 600; font-size: 15px; color: var(--ink); width: 100%; min-width: 0; }
.fbox input[type=range] { accent-color: var(--terra); padding: 0; } .fbox .val { font-weight: 700; font-size: 15px; }
.seg { display: flex; gap: 4px; } .seg button { flex: 1; border: 0; background: #fff; border-radius: 9px; padding: 5px 0; font-weight: 700; font-size: 13px; cursor: pointer; color: var(--muted); } .seg button.on { background: var(--teal); color: #fff; }

/* listings */
.lhead { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.lhead h2 { font-size: clamp(36px, 4.2vw, 58px); } .lhead .count { color: var(--muted); font-size: 15px; }
.sortsel { background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 9px 14px; font-weight: 600; font-size: 14px; color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lcard { background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; animation: cardIn .5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } }
.lcard:hover { transform: translateY(-5px); box-shadow: 0 0 0 1px var(--line), 0 30px 60px rgba(28,35,33,.12); }
.lart { position: relative; aspect-ratio: 400/260; overflow: hidden; } .lart svg { width: 100%; height: 100%; display: block; transition: transform .6s; } .lcard:hover .lart svg { transform: scale(1.04); }
.house .cloud { animation: drift 40s linear infinite; }
.match { position: absolute; left: 12px; top: 12px; background: rgba(28,35,33,.82); color: #fff; font-size: 12.5px; font-weight: 700; padding: 6px 10px; border-radius: 99px; backdrop-filter: blur(6px); }
.save { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,252,247,.92); cursor: pointer; font-size: 18px; color: var(--terra); transition: transform .2s; } .save:hover { transform: scale(1.1); } .save.on { background: var(--terra); color: #fff; }
.lbody { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.lprice { font-family: "Instrument Serif"; font-size: 30px; display: flex; align-items: baseline; gap: 10px; } .lprice small { font-family: Manrope; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-2); background: rgba(31,92,90,.1); padding: 3px 8px; border-radius: 99px; }
.lcard h3 { font-family: Manrope; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; line-height: 1.3; } .loc { color: var(--muted); font-size: 14px; }
.specs { display: flex; gap: 14px; font-size: 13.5px; color: var(--ink); margin-top: 6px; flex-wrap: wrap; } .specs span { display: inline-flex; gap: 4px; }
.why { margin-top: 8px; font-size: 13.5px; color: var(--teal); background: rgba(31,92,90,.07); padding: 8px 10px; border-radius: 10px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--muted); }

.cities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.city { position: relative; border-radius: var(--r); overflow: hidden; min-height: 220px; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; transition: transform .3s; } .city:hover { transform: translateY(-4px); }
.city h3 { font-size: 44px; } .city span { font-size: 14px; opacity: .9; }
.how3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.how3 > div { background: var(--card); border-radius: var(--r); padding: 28px; box-shadow: 0 0 0 1px var(--line); }
.how3 b { font-family: "Instrument Serif"; font-style: italic; font-size: 44px; color: var(--terra); display: block; line-height: 1; } .how3 h3 { font-size: 30px; margin: 18px 0 10px; } .how3 p { color: var(--muted); line-height: 1.6; }
.band { background: var(--teal); color: #fff; border-radius: 34px; padding: 64px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.band h2 { font-size: clamp(36px, 4.4vw, 60px); } .band h2 em { color: var(--peach); } .band p { color: #bcd6d2; margin-top: 14px; line-height: 1.6; }

/* search page */
.searchpage { display: grid; grid-template-columns: 1.25fr .75fr; gap: 22px; align-items: start; }
.searchpage .grid { grid-template-columns: repeat(2, 1fr); }
.map { position: sticky; top: 86px; height: calc(100vh - 110px); min-height: 420px; border-radius: var(--r); overflow: hidden; background: #e4ecd9; box-shadow: 0 0 0 1px var(--line); }
.map svg { width: 100%; height: 100%; display: block; }
.pin { position: absolute; transform: translate(-50%, -100%); background: var(--card); border-radius: 99px; padding: 6px 10px; font-weight: 700; font-size: 12.5px; box-shadow: 0 6px 16px rgba(28,35,33,.2); transition: all .2s; white-space: nowrap; cursor: pointer; }
.pin::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: inherit; transform: translateX(-50%) rotate(45deg); z-index: -1; }
.pin.hot { background: var(--terra); color: #fff; transform: translate(-50%, -100%) scale(1.12); z-index: 3; }
.lcard.hot { box-shadow: 0 0 0 2px var(--terra); }

/* listing page */
.ld-top { display: grid; grid-template-columns: 1.4fr .6fr; gap: 22px; margin-top: 20px; }
.ld-art { border-radius: 30px; overflow: hidden; aspect-ratio: 400/260; box-shadow: 0 30px 60px rgba(28,35,33,.12); } .ld-art svg { width: 100%; height: 100%; display: block; }
.ld-side { display: flex; flex-direction: column; gap: 14px; }
.ld-card { background: var(--card); border-radius: var(--r); padding: 22px; box-shadow: 0 0 0 1px var(--line); }
.ld-card h3 { font-size: 26px; margin-bottom: 10px; }
.meter { height: 8px; border-radius: 4px; background: var(--sand-2); overflow: hidden; margin: 8px 0 4px; } .meter b { display: block; height: 100%; background: linear-gradient(90deg, var(--teal-2), var(--terra)); border-radius: 4px; }
.reasons li { list-style: none; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; display: flex; gap: 10px; } .reasons li::before { content: "✦"; color: var(--terra); }
.facts4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 26px 0; } .facts4 div { background: var(--card); border-radius: 18px; padding: 16px; box-shadow: 0 0 0 1px var(--line); } .facts4 small { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; } .facts4 b { display: block; font-family: "Instrument Serif"; font-size: 28px; margin-top: 4px; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.commute li { list-style: none; display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; } .commute b { color: var(--teal); }
.pricebar { position: relative; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #a8d5b3, #f2d98b, #f0a48a); margin: 28px 0 10px; } .pricebar i { position: absolute; top: -8px; width: 4px; height: 28px; border-radius: 2px; background: var(--ink); }
.form { position: relative; overflow: hidden; }
.fld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; } .fld label { font-size: 13px; font-weight: 700; } .fld input, .fld select { border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 12px; background: var(--sand); outline: 0; font-size: 15px; color: var(--ink); } .fld input:focus { border-color: var(--teal-2); background: #fff; } .fld.bad input { border-color: #c2402f; }
.form .okmsg { position: absolute; inset: 0; background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .4s; }
.form.sent .okmsg { opacity: 1; pointer-events: auto; } .okmsg h3 { font-size: 34px; margin: 10px 0 6px; } .okmsg p { color: var(--muted); font-size: 14.5px; }
.crumb { font-size: 14px; color: var(--muted); } .crumb a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { [data-rv] { opacity: 1; transform: none; } .bp, .chipf { opacity: 1; animation: none; } .win { fill: #ffd58a; animation: none; } .sky, .sun, .cl, .scan, .house .cloud, .lcard { animation: none; } }
@media (max-width: 1024px) { .filters { grid-template-columns: 1fr 1fr 1fr; } .filters .fbox:nth-child(3) { grid-column: span 3; } }
@media (max-width: 960px) {
  .lh-nav, .lh-sec, .lh-act > .btn { display: none; } .burger { display: flex; } .lh { padding: 12px 20px; }
  .w { padding: 0 20px; } .sec { padding: 72px 0; }
  .hero .w, .band, .searchpage, .ld-top, .cols2 { grid-template-columns: 1fr; } .band { padding: 38px 26px; }
  .grid, .searchpage .grid { grid-template-columns: 1fr 1fr; } .cities, .how3 { grid-template-columns: 1fr; } .facts4 { grid-template-columns: 1fr 1fr; }
  .map { position: relative; top: 0; height: 340px; min-height: 0; order: -1; }
  .lf-top { grid-template-columns: 1fr 1fr; } .lf-brand { grid-column: span 2; }
  .searchwrap { margin-top: 24px; }
}
@media (max-width: 600px) { .grid, .searchpage .grid { grid-template-columns: 1fr; } .filters { grid-template-columns: 1fr 1fr; } .filters .fbox:nth-child(3) { grid-column: span 2; } .search { padding: 16px; border-radius: 24px; } .ask input { font-size: 16px; } .chipf { font-size: 12px; padding: 8px 10px; } }
