:root {
  --bg: #070d1a;
  --bg-2: #0c1426;
  --card: #0f1a31;
  --line: rgba(148, 178, 255, 0.12);
  --line-2: rgba(148, 178, 255, 0.24);
  --blue: #2f6bff;
  --blue-2: #5b8cff;
  --text: #eef3ff;
  --muted: #9aa8c7;
  --display: "Manrope", system-ui, sans-serif;
  --sans: "Inter", system-ui, sans-serif;
  --radius: 18px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font: 400 15.5px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
.eyebrow { display: inline-block; color: var(--blue-2); font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 12px; }
.section { padding: 100px 0; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 44px; flex-wrap: wrap; }
.head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.head p { color: var(--muted); max-width: 460px; }
.center-head { text-align: center; max-width: 620px; margin: 0 auto 50px; }
.center-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 12px; }
.center-head p { color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 12px; font-weight: 600; font-size: .93rem; cursor: pointer; border: 1px solid transparent; transition: all .25s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 10px 30px rgba(47,107,255,.3); }
.btn-blue:hover { background: var(--blue-2); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line-2); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--blue-2); color: var(--blue-2); }
.btn-block { width: 100%; }

/* Header (blur on ::before so the fixed mobile nav isn't trapped) */
.header { position: fixed; inset: 0 0 auto; z-index: 60; border-bottom: 1px solid transparent; transition: border-color .3s; }
.header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(7,13,26,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transition: opacity .3s; }
.header.scrolled, .header.solid { border-color: var(--line); }
.header.scrolled::before, .header.solid::before { opacity: 1; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.logo-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--blue); display: grid; place-items: center; color: #fff; }
.logo-mark svg { width: 20px; height: 20px; }
.nav { display: flex; align-items: center; gap: 32px; font-size: .93rem; }
.nav a { color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--text); }
.nav .btn { color: #fff; padding: 10px 20px; }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; }
.menu-btn svg { width: 28px; height: 28px; }

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: center / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,13,26,.94) 0%, rgba(7,13,26,.7) 45%, rgba(7,13,26,.25) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); max-width: 700px; margin-bottom: 20px; }
.hero h1 span { color: var(--blue-2); }
.hero p { color: var(--muted); font-size: 1.12rem; max-width: 500px; margin-bottom: 36px; }

/* Search panel */
.search { background: rgba(15,26,49,.9); border: 1px solid var(--line-2); border-radius: 20px; padding: 10px; max-width: 900px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.search-tabs { display: flex; gap: 6px; padding: 6px 6px 12px; }
.search-tab { background: none; border: 0; color: var(--muted); padding: 8px 16px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: .9rem; }
.search-tab.active { background: var(--blue); color: #fff; }
.search-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 8px; }
.sfield { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; }
.sfield label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.sfield select, .sfield input { background: none; border: 0; outline: none; padding: 2px 0; font-weight: 500; width: 100%; }
.sfield select option { background: var(--bg-2); }
.search .btn { height: 100%; padding: 0 28px; }
.hero-stats { display: flex; gap: 44px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats b { font-family: var(--display); font-size: 1.9rem; display: block; line-height: 1; }
.hero-stats span { color: var(--muted); font-size: .85rem; }

/* Property card */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prop { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, border-color .3s, box-shadow .3s; }
.prop:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: 0 24px 50px rgba(0,0,0,.35); }
.prop-img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.prop-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.prop:hover .prop-img img { transform: scale(1.06); }
.status { position: absolute; top: 14px; left: 14px; background: var(--blue); color: #fff; font-size: .72rem; font-weight: 700; padding: 5px 11px; border-radius: 8px; text-transform: uppercase; letter-spacing: .05em; }
.status.rent { background: #10b981; }
.fav { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; background: rgba(7,13,26,.7); border: 0; display: grid; place-items: center; cursor: pointer; color: #fff; transition: all .2s; }
.fav svg { width: 18px; height: 18px; }
.fav.on { color: #ff5a7a; }
.fav.on svg { fill: currentColor; }
.prop-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.prop-price { font-family: var(--display); font-size: 1.45rem; font-weight: 800; color: var(--blue-2); }
.prop-price small { font-size: .85rem; color: var(--muted); font-weight: 500; }
.prop h3 { font-size: 1.12rem; margin: 6px 0 4px; }
.prop-loc { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; }
.prop-loc svg { width: 15px; height: 15px; }
.prop-meta { display: flex; gap: 18px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); margin-top: 16px; color: var(--muted); font-size: .86rem; flex-wrap: wrap; }
.prop-meta span { display: flex; align-items: center; gap: 6px; }
.prop-meta svg { width: 16px; height: 16px; color: var(--blue-2); }

/* Categories / why */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: border-color .3s, transform .3s; }
.cat:hover { border-color: var(--blue); transform: translateY(-4px); }
.cat .ic { width: 50px; height: 50px; border-radius: 14px; background: rgba(47,107,255,.14); color: var(--blue-2); display: grid; place-items: center; margin-bottom: 18px; }
.cat .ic svg { width: 24px; height: 24px; }
.cat h3 { font-size: 1.1rem; margin-bottom: 4px; }
.cat p { color: var(--muted); font-size: .88rem; }

.why { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.why-media { position: relative; }
.why-media img { border-radius: 24px; aspect-ratio: 5 / 6; object-fit: cover; width: 100%; }
.why-badge { position: absolute; right: -20px; bottom: 36px; background: var(--blue); border-radius: 18px; padding: 20px 24px; box-shadow: 0 20px 40px rgba(47,107,255,.35); }
.why-badge b { font-family: var(--display); font-size: 2rem; display: block; line-height: 1; }
.why-badge span { font-size: .85rem; opacity: .9; }
.why h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 16px; }
.why > div > p { color: var(--muted); margin-bottom: 28px; }
.points { display: grid; gap: 20px; margin-bottom: 32px; }
.point { display: flex; gap: 16px; }
.point .ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(47,107,255,.14); color: var(--blue-2); display: grid; place-items: center; flex-shrink: 0; }
.point .ic svg { width: 22px; height: 22px; }
.point b { display: block; margin-bottom: 2px; }
.point span { color: var(--muted); font-size: .9rem; }

/* Agents */
.agents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.agent { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: center; }
.agent img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; }
.agent div { padding: 20px; }
.agent h3 { font-size: 1.12rem; }
.agent p { color: var(--muted); font-size: .88rem; margin: 2px 0 14px; }
.agent a { display: inline-flex; align-items: center; gap: 6px; color: var(--blue-2); font-weight: 600; font-size: .9rem; }
.agent a svg { width: 16px; height: 16px; }

/* CTA / contact */
.cta { background: linear-gradient(135deg, #1740b8, #2f6bff 60%, #5b8cff); border-radius: 28px; padding: 60px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; border: 60px solid rgba(255,255,255,.07); right: -120px; top: -160px; }
.cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 12px; }
.cta p { opacity: .9; }
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; z-index: 1; }
.cta .form { background: rgba(7,13,26,.92); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .8rem; color: var(--muted); }
.field input, .field select, .field textarea { background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; outline: none; transition: border-color .2s; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-2); }
.field input::-webkit-calendar-picker-indicator { filter: invert(.8); }
.form .btn { margin-top: 18px; width: 100%; }
.form-note { font-size: .78rem; color: var(--muted); text-align: center; margin-top: 10px; }
.form-ok { display: none; text-align: center; padding: 30px 6px; }
.form-ok svg { width: 50px; height: 50px; color: #10b981; margin: 0 auto 14px; }
.form-ok h3 { margin-bottom: 8px; }
.form-ok p { color: var(--muted); font-size: .92rem; }
.form.done > *:not(.form-ok) { display: none; }
.form.done .form-ok { display: block; }

/* Listings page */
.page-top { padding: 140px 0 40px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at top right, rgba(47,107,255,.18), transparent 60%); }
.page-top h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 8px; }
.page-top p { color: var(--muted); }
.listings { display: grid; grid-template-columns: 290px 1fr; gap: 32px; padding: 40px 0 100px; align-items: start; }
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 96px; display: grid; gap: 18px; }
.filters h3 { font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; }
.filters h3 button { background: none; border: 0; color: var(--blue-2); font-size: .82rem; cursor: pointer; font-weight: 600; }
.opt { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg button { background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 4px; cursor: pointer; font-size: .85rem; transition: all .2s; }
.seg button.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.range-val { color: var(--blue-2); font-weight: 600; font-size: .9rem; }
input[type=range] { width: 100%; accent-color: var(--blue); }
.list-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.list-bar span { color: var(--muted); }
.list-bar select { background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 14px; outline: none; }
.list-grid { grid-template-columns: repeat(2, 1fr); }
.no-results { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--muted); background: var(--card); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.filter-toggle { display: none; }

/* Property page */
.prop-page { padding: 110px 0 90px; }
.crumbs { display: flex; gap: 8px; color: var(--muted); font-size: .85rem; margin-bottom: 20px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: 520px; margin-bottom: 36px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; cursor: pointer; transition: opacity .2s; }
.gallery img:hover { opacity: .9; }
.gallery img:first-child { grid-row: span 2; }
.prop-layout { display: grid; grid-template-columns: 1fr 380px; gap: 44px; align-items: start; }
.prop-title { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 24px; }
.prop-title h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 6px; }
.prop-title .prop-price { font-size: 2rem; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 32px; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.fact svg { width: 20px; height: 20px; color: var(--blue-2); margin-bottom: 8px; }
.fact b { display: block; font-family: var(--display); font-size: 1.2rem; }
.fact span { color: var(--muted); font-size: .8rem; }
.block { margin-bottom: 36px; }
.block h2 { font-size: 1.35rem; margin-bottom: 14px; }
.block p { color: var(--muted); }
.amen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.amen span { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; }
.amen svg { width: 18px; height: 18px; color: #10b981; }
.calc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.calc-out { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); }
.calc-out b { font-family: var(--display); font-size: 2rem; color: var(--blue-2); }
.calc-out span { color: var(--muted); font-size: .9rem; }
.side { position: sticky; top: 96px; display: grid; gap: 18px; }
.agent-card { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.agent-card img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; object-position: top; }
.agent-card b { display: block; }
.agent-card span { color: var(--muted); font-size: .85rem; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 220px; background:
  linear-gradient(0deg, rgba(47,107,255,.06) 1px, transparent 1px) 0 0 / 28px 28px,
  linear-gradient(90deg, rgba(47,107,255,.06) 1px, transparent 1px) 0 0 / 28px 28px, var(--card); display: grid; place-items: center; position: relative; }
.map::before { content: ""; position: absolute; width: 140%; height: 18px; background: rgba(148,178,255,.08); transform: rotate(-18deg); }
.map::after { content: ""; position: absolute; width: 18px; height: 140%; background: rgba(148,178,255,.08); transform: rotate(12deg); left: 58%; }
.pin { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(47,107,255,.2), 0 0 0 26px rgba(47,107,255,.08); }
.pin svg { width: 22px; height: 22px; color: #fff; }
.map-label { position: absolute; bottom: 12px; left: 12px; right: 12px; background: rgba(7,13,26,.85); border-radius: 10px; padding: 8px 12px; font-size: .85rem; z-index: 1; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(3,6,12,.94); z-index: 150; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .25s; padding: 20px; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-height: 86vh; border-radius: 14px; }
.lightbox button { position: absolute; top: 18px; right: 18px; background: rgba(255,255,255,.1); border: 0; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 70px 0 110px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer p, .footer li { color: var(--muted); font-size: .9rem; }
.footer h4 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer li a:hover { color: var(--text); }
.footer .logo { margin-bottom: 14px; }
.footer-bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom a { color: var(--blue-2); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1060px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .cats { grid-template-columns: 1fr 1fr; }
  .why, .cta, .prop-layout { grid-template-columns: 1fr; gap: 44px; }
  .why-badge { right: 16px; }
  .listings { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: grid; }
  .filter-toggle { display: inline-flex; }
  .side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { position: fixed; top: 76px; left: 0; right: 0; bottom: 0; background: rgba(7,13,26,.98); flex-direction: column; align-items: flex-start; padding: 36px 24px; gap: 24px; font-size: 1.15rem; transform: translateX(100%); visibility: hidden; transition: transform .3s, visibility .3s; }
  .nav.open { transform: none; visibility: visible; }
  .search-row { grid-template-columns: 1fr 1fr; }
  .search .btn { grid-column: 1 / -1; padding: 14px; }
  .agents { grid-template-columns: 1fr 1fr; }
  .gallery { height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery img { aspect-ratio: 4 / 3; }
  .gallery img:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 10; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .section { padding: 72px 0; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(7,13,26,.8) 45%, rgba(7,13,26,.7) 100%); }
  .search-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
  .grid, .list-grid, .agents, .cats { grid-template-columns: 1fr; }
  .cta { padding: 36px 22px; }
  .form { padding: 22px 18px; }
  .form-grid, .calc-grid { grid-template-columns: 1fr; }
  .amen { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .why-media img { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
