/* Kodlayan: Serhan Şahin | MSF Yazılım */
/* =========================================================
   NUPEL EMLAK — Tasarım Sistemi (Demo)
   ========================================================= */
:root {
  --ink: #0d1321;
  --ink-2: #1c2433;
  --ink-soft: #4a5468;
  --muted: #8a93a6;
  --bg: #f6f4ef;
  --surface: #ffffff;
  --line: #e7e3da;
  --gold: #c9a063;
  --gold-2: #e6c896;
  --gold-deep: #9c7438;
  --on-accent: #1a1205;
  --green: #2f7d5b;
  --red: #d24b4b;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 2px 8px rgba(13, 19, 33, .06);
  --shadow: 0 18px 50px -18px rgba(13, 19, 33, .25);
  --shadow-lg: 0 40px 90px -30px rgba(13, 19, 33, .45);
  --font-display: "Fraunces", Georgia, serif;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1280px;
}

:root[data-theme="dark"] {
  --ink: #f3efe6;
  --ink-2: #e2ddd1;
  --ink-soft: #b4b9c6;
  --muted: #7d8597;
  --bg: #0b0f18;
  --surface: #141a26;
  --line: #242c3b;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, .7);
  --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, .9);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s, color .4s;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }

.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.serif { font-family: var(--font-display); font-weight: 400; letter-spacing: -.02em; }
.gold { color: var(--gold); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-deep);
}
:root[data-theme="dark"] .eyebrow { color: var(--gold); }
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }

.section { padding: 120px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 56px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 5vw, 60px); line-height: 1.05; letter-spacing: -.03em; margin-top: 14px; max-width: 720px; }
.section-head h2 em { font-style: italic; color: var(--gold); }
.section-head p { color: var(--ink-soft); max-width: 420px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 100px; font-weight: 600; font-size: 15px;
  transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .3s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-gold { background: var(--gold); color: var(--on-accent, #1a1205); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--gold) 80%, transparent); }
.btn-gold:hover { background: var(--gold-2); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-glass { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(12px); }
.btn-glass:hover { background: rgba(255, 255, 255, .22); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  padding: 20px 0; transition: padding .4s var(--ease), background .4s, box-shadow .4s;
}
.header.scrolled, .header.solid {
  padding: 12px 0;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep)); color: var(--on-accent, #1a1205);
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  box-shadow: 0 8px 20px -8px rgba(156, 116, 56, .8);
}
.logo small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .3em; color: var(--muted); margin-top: -4px; }
/* Logo: ikon görsel, NUPEL ve alt yazı net metin */
.lockup { display: inline-flex; flex-direction: column; align-items: center; }
.lk-img { position: relative; display: block; height: var(--lk-h, 38px); aspect-ratio: 402 / 377; margin-bottom: calc(var(--lk-h, 38px) * .14); transition: height .4s; }
.lk-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .35s; }
.lk-name { font-family: "Josefin Sans", sans-serif; font-weight: 400; font-size: var(--lk-n, 21px); line-height: 1; letter-spacing: .6em; padding-left: .6em; background: linear-gradient(90deg, #7f5f33, #b98d55 50%, #e0b57c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lk-tag { font-family: "Josefin Sans", sans-serif; font-weight: 600; font-size: calc(var(--lk-n, 21px) * .375); line-height: 1; letter-spacing: 0; margin-top: .55em; color: #2b303b; white-space: nowrap; transition: color .35s; }
.header.scrolled .lockup, .header.solid .lockup { --lk-h: 32px; --lk-n: 19px; }
.lk-lg { --lk-h: 70px; --lk-n: 34px; }
.on-dark { opacity: 0; }
:root[data-theme="dark"] .on-light, .header:not(.scrolled):not(.solid) .on-light { opacity: 0; }
:root[data-theme="dark"] .on-dark, .header:not(.scrolled):not(.solid) .on-dark { opacity: 1; }
:root[data-theme="dark"] .lk-tag, .header:not(.scrolled):not(.solid) .lk-tag { color: #f3efe6; }
:root[data-theme="dark"] .lk-name, .header:not(.scrolled):not(.solid) .lk-name { background-image: linear-gradient(90deg, #c99a5e, #e6c18a 50%, #f5d3a0); }
.header:not(.scrolled):not(.solid) .lk-tag { text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.footer-logo { display: inline-block; }
.header:not(.scrolled):not(.solid) .logo,.header:not(.scrolled):not(.solid) .nav-links a, .header:not(.scrolled):not(.solid) .icon-btn { color: #fff; }
.header:not(.scrolled):not(.solid) .logo small { color: rgba(255, 255, 255, .6); }
.nav-links { display: flex; gap: 6px; list-style: none; }
.nav-links a { padding: 10px 16px; border-radius: 100px; font-weight: 500; font-size: 15px; transition: background .3s; position: relative; }
.nav-links a:hover, .nav-links a.active { background: color-mix(in srgb, var(--gold) 18%, transparent); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent); transition: background .3s, transform .3s;
}
.icon-btn:hover { background: color-mix(in srgb, var(--gold) 20%, transparent); transform: rotate(-8deg); }
.icon-btn svg { width: 19px; height: 19px; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;
  color: #fff; padding: 160px 0 60px; overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 11, 19, .55) 0%, rgba(8, 11, 19, .15) 35%, rgba(8, 11, 19, .85) 100%),
    radial-gradient(ellipse at 20% 80%, color-mix(in srgb, var(--gold) 25%, transparent), transparent 60%);
}
.hero-content { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: end; }
.hero h1 {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(48px, 8.4vw, 124px);
  line-height: .95; letter-spacing: -.045em;
}
.hero h1 em { font-style: italic; font-weight: 400; color: var(--gold-2); }
.hero-sub { font-size: 18px; color: rgba(255, 255, 255, .78); max-width: 440px; margin-bottom: 28px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 100px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(10px);
  font-size: 13px; margin-bottom: 28px;
}
.hero-badge span { background: var(--gold); color: var(--on-accent, #1a1205); padding: 4px 10px; border-radius: 100px; font-weight: 700; font-size: 11px; letter-spacing: .05em; }
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span { display: block; transform: translateY(110%); animation: lineUp 1.2s var(--ease) forwards; }
.reveal-line:nth-child(2) > span { animation-delay: .12s; }
.reveal-line:nth-child(3) > span { animation-delay: .24s; }
@keyframes lineUp { to { transform: translateY(0); } }

/* Search box */
.search-box {
  margin-top: 56px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(22px) saturate(1.5); border-radius: 28px; padding: 10px;
  opacity: 0; animation: fadeUp 1s .5s var(--ease) forwards;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.search-tabs { display: flex; gap: 4px; padding: 6px 6px 12px; }
.search-tabs button {
  padding: 9px 20px; border-radius: 100px; font-weight: 600; font-size: 14px; color: rgba(255, 255, 255, .75); transition: .3s;
}
.search-tabs button.active { background: #fff; color: var(--ink); }
:root[data-theme="dark"] .search-tabs button.active { color: #0d1321; }
.search-fields {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr auto; gap: 4px;
  background: #fff; border-radius: 20px; padding: 8px; color: #0d1321;
}
.field { padding: 10px 18px; border-radius: 14px; transition: background .25s; position: relative; }
.field:hover { background: #f4f1ea; }
.field + .field::before { content: ""; position: absolute; left: -2px; top: 22%; height: 56%; width: 1px; background: #e7e3da; }
.field label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8a93a6; }
.field select, .field input { width: 100%; border: 0; outline: 0; background: transparent; font-weight: 600; font-size: 15px; padding: 2px 0; color: #0d1321; appearance: none; cursor: pointer; }
.search-fields .btn { padding: 0 32px; border-radius: 15px; height: 100%; min-height: 58px; }

.hero-stats { display: flex; gap: 46px; margin-top: 40px; opacity: 0; animation: fadeUp 1s .7s var(--ease) forwards; }
.hero-stats div strong { display: block; font-family: var(--font-display); font-size: 40px; font-weight: 400; line-height: 1; }
.hero-stats div span { font-size: 13px; color: rgba(255, 255, 255, .65); }

.scroll-hint {
  position: absolute; right: 40px; bottom: 50%; transform: translateY(50%) rotate(90deg); transform-origin: right;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .6);
  display: flex; align-items: center; gap: 12px;
}
.scroll-hint::after { content: ""; width: 60px; height: 1px; background: rgba(255, 255, 255, .5); animation: pulseLine 2s infinite; transform-origin: left; }
@keyframes pulseLine { 0% { transform: scaleX(0); } 50% { transform: scaleX(1); } 100% { transform: scaleX(0); transform-origin: right; } }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: var(--bg); padding: 26px 0; overflow: hidden; }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-size: 30px; font-style: italic; display: flex; align-items: center; gap: 60px; white-space: nowrap; }
.marquee-track span::after { content: "✦"; color: var(--gold); font-style: normal; font-size: 20px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Categories (Bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; gap: 18px; }
.bento-item { position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; isolation: isolate; }
.bento-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.bento-item:nth-child(4) { grid-column: span 2; }
.bento-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.bento-item::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(8, 11, 19, .85)); }
.bento-item:hover img { transform: scale(1.08); }
.bento-info { position: absolute; left: 26px; right: 26px; bottom: 24px; display: flex; justify-content: space-between; align-items: end; }
.bento-info h3 { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.1; }
.bento-item:nth-child(1) .bento-info h3 { font-size: 46px; }
.bento-info p { font-size: 14px; opacity: .75; }
.bento-arrow {
  width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, .15); backdrop-filter: blur(10px);
  display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .3); transition: .4s var(--ease); flex-shrink: 0;
}
.bento-arrow svg { width: 20px; height: 20px; transform: rotate(-45deg); transition: transform .4s var(--ease); }
.bento-item:hover .bento-arrow { background: var(--gold); color: var(--on-accent, #1a1205); border-color: var(--gold); }
.bento-item:hover .bento-arrow svg { transform: rotate(0); }

/* ---------- Property Card ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  display: flex; flex-direction: column; position: relative;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; margin: 10px 10px 0; border-radius: 16px; background: linear-gradient(135deg, #d9cfbd, #a8977a); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card-media img { transform: scale(1.07); }
.card-tags { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; }
.tag { padding: 6px 12px; border-radius: 100px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .92); color: #0d1321; backdrop-filter: blur(8px); }
.tag-gold { background: var(--gold); color: var(--on-accent, #1a1205); }
.tag-dark { background: rgba(13, 19, 33, .78); color: #fff; }
.fav {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: #0d1321; transition: .3s var(--ease);
}
.fav svg { width: 18px; height: 18px; transition: .3s; }
.fav:hover { transform: scale(1.12); }
.fav.on { color: var(--red); }
.fav.on svg { fill: currentColor; animation: pop .45s var(--ease); }
@keyframes pop { 50% { transform: scale(1.35); } }
.card-photos { position: absolute; bottom: 14px; right: 14px; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-loc { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.card-loc svg { width: 15px; height: 15px; color: var(--gold); }
.card-title { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin: 6px 0 16px; line-height: 1.3; }
.card-specs { display: flex; gap: 18px; padding: 14px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); font-size: 14px; color: var(--ink-soft); }
.card-specs span { display: flex; align-items: center; gap: 7px; }
.card-specs svg { width: 17px; height: 17px; color: var(--muted); }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 16px; }
.price { font-family: var(--font-display); font-size: 26px; font-weight: 500; letter-spacing: -.02em; }
.price small { font-family: var(--font); font-size: 13px; color: var(--muted); font-weight: 500; }
.card-go {
  width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center;
  transition: .4s var(--ease);
}
.card-go svg { width: 18px; height: 18px; transform: rotate(-45deg); transition: .4s var(--ease); }
.card:hover .card-go { background: var(--gold); color: var(--on-accent, #1a1205); }
.card:hover .card-go svg { transform: rotate(0); }

/* ---------- Filter pills ---------- */
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  padding: 10px 20px; border-radius: 100px; border: 1.5px solid var(--line); font-weight: 600; font-size: 14px;
  transition: .3s var(--ease); background: var(--surface);
}
.pill:hover { border-color: var(--ink); }
.pill.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Showcase / Why us ---------- */
.why { background: var(--ink); color: #f3efe6; border-radius: 40px; margin: 0 20px; padding: 120px 0; position: relative; overflow: hidden; }
:root[data-theme="dark"] .why { background: #121826; }
.why::before { content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--gold) 22%, transparent), transparent 70%); top: -200px; right: -150px; }
.why .section-head p { color: rgba(243, 239, 230, .65); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.why-img { position: relative; border-radius: 30px; overflow: hidden; aspect-ratio: 4 / 5; }
.why-img img { width: 100%; height: 100%; object-fit: cover; }
.why-float {
  position: absolute; left: 24px; bottom: 24px; right: 24px; padding: 22px; border-radius: 20px;
  background: rgba(255, 255, 255, .12); backdrop-filter: blur(18px); border: 1px solid rgba(255, 255, 255, .2);
  display: flex; align-items: center; gap: 18px;
}
.why-float .avatars { display: flex; }
.why-float .avatars img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; margin-left: -12px; object-fit: cover; }
.why-float .avatars img:first-child { margin-left: 0; }
.why-float strong { font-size: 22px; display: block; line-height: 1.1; }
.why-float span { font-size: 13px; opacity: .75; }
.features { display: grid; gap: 14px; margin-top: 40px; }
.feature {
  display: flex; gap: 20px; padding: 24px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .1);
  transition: .4s var(--ease);
}
.feature:hover { background: rgba(255, 255, 255, .05); border-color: color-mix(in srgb, var(--gold) 50%, transparent); transform: translateX(8px); }
.feature-ic { width: 54px; height: 54px; border-radius: 16px; background: color-mix(in srgb, var(--gold) 15%, transparent); color: var(--gold-2); display: grid; place-items: center; flex-shrink: 0; }
.feature-ic svg { width: 24px; height: 24px; }
.feature h4 { font-size: 18px; margin-bottom: 4px; }
.feature p { font-size: 14px; color: rgba(243, 239, 230, .65); }

.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 90px; padding-top: 60px; border-top: 1px solid rgba(255, 255, 255, .1); }
.counter strong { font-family: var(--font-display); font-weight: 300; font-size: clamp(44px, 6vw, 76px); line-height: 1; display: block; color: var(--gold-2); }
.counter span { color: rgba(243, 239, 230, .65); font-size: 14px; }

/* ---------- Agents ---------- */
.agents { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.agent { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; color: #fff; isolation: isolate; }
.agent img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(.4); transition: 1s var(--ease); }
.agent:hover img { filter: none; transform: scale(1.05); }
.agent::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8, 11, 19, .9)); z-index: -1; }
.agent-info { position: absolute; left: 22px; right: 22px; bottom: 22px; }
.agent-info h4 { font-size: 20px; }
.agent-info p { font-size: 13px; opacity: .7; }
.agent-social { display: flex; gap: 8px; margin-top: 14px; transform: translateY(20px); opacity: 0; transition: .5s var(--ease); }
.agent:hover .agent-social { transform: none; opacity: 1; }
.agent-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .15); backdrop-filter: blur(8px); display: grid; place-items: center; transition: .3s; }
.agent-social a:hover { background: var(--gold); color: var(--on-accent, #1a1205); }
.agent-social svg { width: 16px; height: 16px; }
.agent-count { position: absolute; top: 18px; right: 18px; }

/* ---------- Testimonials ---------- */
.testi-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: center; }
.testi-card { background: var(--surface); border-radius: 30px; padding: 50px; box-shadow: var(--shadow); position: relative; }
.testi-card .quote { font-family: var(--font-display); font-size: 120px; line-height: .6; color: var(--gold); height: 50px; }
.testi-text { font-family: var(--font-display); font-size: 26px; line-height: 1.45; letter-spacing: -.01em; min-height: 150px; transition: opacity .4s; }
.testi-author { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.testi-author img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.testi-author strong { display: block; }
.testi-author span { font-size: 13px; color: var(--muted); }
.stars { color: var(--gold); letter-spacing: 2px; }
.testi-nav { display: flex; gap: 10px; margin-top: 30px; }

/* ---------- CTA ---------- */
.cta {
  position: relative; border-radius: 40px; overflow: hidden; padding: 100px 70px; color: #fff; isolation: isolate;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: center;
}
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8, 11, 19, .92) 30%, rgba(8, 11, 19, .35)); z-index: -1; }
.cta h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(36px, 5vw, 64px); line-height: 1.05; letter-spacing: -.03em; }
.cta h2 em { color: var(--gold-2); }
.cta-form { background: rgba(255, 255, 255, .1); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, .2); border-radius: 26px; padding: 30px; display: grid; gap: 12px; }
.cta-form input, .cta-form select {
  width: 100%; padding: 16px 20px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08); color: #fff; outline: none; transition: .3s;
}
.cta-form select option { color: #0d1321; }
.cta-form input::placeholder { color: rgba(255, 255, 255, .55); }
.cta-form input:focus { border-color: var(--gold); background: rgba(255, 255, 255, .14); }

/* ---------- Footer ---------- */
.footer { padding: 100px 0 40px; border-top: 1px solid var(--line); margin-top: 120px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 50px; }
.footer h5 { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.footer ul { list-style: none; display: grid; gap: 12px; }
.footer ul a { color: var(--ink-soft); transition: .3s; }
.footer ul a:hover { color: var(--gold); padding-left: 6px; }
.footer-about p { color: var(--ink-soft); margin: 20px 0 26px; max-width: 320px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: .3s; }
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--on-accent, #1a1205); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.newsletter { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 100px; padding: 6px; margin-top: 10px; }
.newsletter input { flex: 1; border: 0; outline: 0; background: transparent; padding: 0 18px; min-width: 0; }
.footer-big { font-family: var(--font-display); font-size: clamp(60px, 15vw, 220px); line-height: .9; letter-spacing: -.05em; text-align: center; margin: 80px 0 30px; color: transparent; -webkit-text-stroke: 1px var(--line); user-select: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 26px; bottom: 26px; z-index: 90; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -8px rgba(37, 211, 102, .7);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.1) rotate(-8deg); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ring 2s infinite; }
@keyframes ring { to { transform: scale(1.6); opacity: 0; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }

/* ---------- Page hero (inner) ---------- */
.page-hero { padding: 150px 0 50px; }
.page-hero h1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(42px, 6vw, 80px); letter-spacing: -.04em; line-height: 1; margin-top: 14px; }
.page-hero h1 em { color: var(--gold); }
.breadcrumb { display: flex; gap: 10px; font-size: 14px; color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- Listing page ---------- */
.listing-layout { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: start; }
.filters { position: sticky; top: 100px; background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.filters h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 22px 0 12px; }
.filters h4:first-child { margin-top: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 14px; padding: 4px; }
.seg button { padding: 10px; border-radius: 11px; font-weight: 600; font-size: 14px; transition: .3s; }
.seg button.active { background: var(--surface); box-shadow: var(--shadow-sm); }
.input {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface);
  outline: none; transition: border .3s; font-size: 14px;
}
.input:focus { border-color: var(--gold); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 8px 14px; border-radius: 100px; border: 1.5px solid var(--line); font-size: 13px; font-weight: 600; transition: .25s; }
.chip.active { background: var(--gold); border-color: var(--gold); color: var(--on-accent, #1a1205); }
.range { width: 100%; accent-color: var(--gold); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 5px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.toolbar .count { color: var(--ink-soft); }
.toolbar .count strong { color: var(--ink); font-size: 20px; }
.view-toggle { display: flex; background: var(--surface); border-radius: 12px; padding: 4px; border: 1px solid var(--line); }
.view-toggle button { width: 40px; height: 36px; border-radius: 9px; display: grid; place-items: center; }
.view-toggle button.active { background: var(--ink); color: var(--bg); }
.view-toggle svg { width: 18px; height: 18px; }
.grid-cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cards.list { grid-template-columns: 1fr; }
.grid-cards.list .card { flex-direction: row; }
.grid-cards.list .card-media { width: 380px; flex-shrink: 0; margin: 10px; aspect-ratio: auto; min-height: 240px; }
.empty { text-align: center; padding: 80px 20px; color: var(--muted); grid-column: 1 / -1; }

/* ---------- Detail page ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 12px; border-radius: 28px; overflow: hidden; }
.gallery > div { position: relative; overflow: hidden; cursor: zoom-in; background: #d9cfbd; }
.gallery > div:first-child { grid-row: span 2; }
.gallery > div:nth-child(4) { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery > div:hover img { transform: scale(1.06); }
.gallery-more { position: absolute; right: 18px; bottom: 18px; }
.detail-layout { display: grid; grid-template-columns: 1fr 380px; gap: 50px; margin-top: 50px; align-items: start; }
.detail-head { display: flex; justify-content: space-between; gap: 30px; align-items: start; flex-wrap: wrap; }
.detail-head h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 4vw, 52px); letter-spacing: -.03em; line-height: 1.05; margin: 10px 0; }
.detail-price { font-family: var(--font-display); font-size: 40px; color: var(--gold-deep); text-align: right; }
:root[data-theme="dark"] .detail-price { color: var(--gold); }
.detail-price small { display: block; font-family: var(--font); font-size: 13px; color: var(--muted); }
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 36px 0; }
.spec { background: var(--surface); border-radius: 18px; padding: 20px; border: 1px solid var(--line); }
.spec svg { width: 24px; height: 24px; color: var(--gold); margin-bottom: 12px; }
.spec span { font-size: 13px; color: var(--muted); display: block; }
.spec strong { font-size: 18px; }
.block { padding: 36px 0; border-top: 1px solid var(--line); }
.block h3 { font-size: 22px; margin-bottom: 18px; letter-spacing: -.01em; }
.block p { color: var(--ink-soft); }
.amenities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.amenities div { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.amenities svg { width: 20px; height: 20px; color: var(--green); }
.info-table { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.info-table div { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.info-table span { color: var(--muted); }
.map {
  height: 340px; border-radius: 22px; overflow: hidden; position: relative;
  background: #e9e4d8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M0 60h120M60 0v120M0 20h120M0 100h120M20 0v120M100 0v120' stroke='%23d6cfbf' stroke-width='1'/%3E%3Cpath d='M0 0l120 120M120 0L0 120' stroke='%23ddd6c8' stroke-width='6'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] .map { background-color: #1b2231; filter: invert(.88) hue-rotate(180deg); }
.map-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); }
.map-pin div { width: 56px; height: 56px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--gold); display: grid; place-items: center; box-shadow: var(--shadow); }
.map-pin svg { transform: rotate(45deg); width: 24px; color: var(--on-accent, #1a1205); }
.map-pin::after { content: ""; position: absolute; left: 50%; bottom: -20px; width: 80px; height: 80px; transform: translate(-50%, 50%); border-radius: 50%; background: color-mix(in srgb, var(--gold) 30%, transparent); animation: ring 2s infinite; z-index: -1; }
.side-card { position: sticky; top: 100px; background: var(--surface); border-radius: 26px; padding: 28px; box-shadow: var(--shadow); }
.agent-row { display: flex; gap: 14px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.agent-row img { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; }
.agent-row strong { display: block; font-size: 17px; }
.agent-row span { font-size: 13px; color: var(--muted); }
.side-card form { display: grid; gap: 10px; }
.side-card textarea { resize: vertical; min-height: 100px; }
.calc { margin-top: 20px; background: var(--bg); border-radius: 18px; padding: 20px; }
.calc h5 { font-size: 15px; margin-bottom: 12px; }
.calc-result { font-family: var(--font-display); font-size: 30px; color: var(--gold-deep); }
:root[data-theme="dark"] .calc-result { color: var(--gold); }
.calc label { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; margin-top: 10px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 11, 19, .94); display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.open { display: flex; animation: fadeIn .3s; }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox img { max-height: 85vh; border-radius: 18px; box-shadow: var(--shadow-lg); }
.lb-btn { position: absolute; width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; }
.lb-btn:hover { background: var(--gold); color: var(--on-accent, #1a1205); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev { left: 30px; } .lb-next { right: 30px; } .lb-close { top: 30px; right: 30px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 150%); background: var(--ink); color: var(--bg); padding: 14px 24px; border-radius: 100px; z-index: 300; font-weight: 600; transition: transform .5s var(--ease); box-shadow: var(--shadow-lg); }
.toast.show { transform: translate(-50%, 0); }

/* Demo ribbon */
.demo-ribbon { position: fixed; left: 20px; bottom: 20px; z-index: 95; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; font-size: 12px; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center; }
.demo-ribbon b { color: var(--gold-deep); }
.demo-ribbon a { padding: 6px 12px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid-cards, .agents { grid-template-columns: repeat(2, 1fr); }
  .hero-content, .why-grid, .testi-wrap, .cta, .detail-layout { grid-template-columns: 1fr; }
  .search-fields { grid-template-columns: 1fr 1fr; }
  .search-fields .btn { grid-column: span 2; }
  .field + .field::before { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .listing-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .side-card { position: static; }
  .counters { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 20px; right: 20px; flex-direction: column; background: var(--surface); padding: 14px; border-radius: 20px; box-shadow: var(--shadow-lg); }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--ink) !important; display: block; }
  .menu-toggle { display: grid; }
  .nav-actions .btn { display: none; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .bento-item:nth-child(1) { grid-column: span 2; }
  .bento-item:nth-child(4) { grid-column: span 2; }
  .section { padding: 80px 0; }
  .why { margin: 0 10px; padding: 80px 0; border-radius: 28px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 140px 140px; }
  .gallery > div:first-child { grid-column: span 2; grid-row: auto; }
  .gallery > div:nth-child(4) { grid-column: auto; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .amenities { grid-template-columns: 1fr 1fr; }
  .info-table { grid-template-columns: 1fr; }
  .grid-cards.list .card { flex-direction: column; }
  .grid-cards.list .card-media { width: auto; min-height: 220px; }
  .scroll-hint { display: none; }
  .cta { padding: 60px 26px; border-radius: 28px; }
}
@media (max-width: 600px) {
  .grid-cards, .grid-cards.cols-2, .agents { grid-template-columns: 1fr; }
  .search-fields { grid-template-columns: 1fr; }
  .search-fields .btn { grid-column: auto; }
  .hero-stats { gap: 24px; }
  .hero-stats div strong { font-size: 30px; }
  .footer-top { grid-template-columns: 1fr; }
  .testi-card { padding: 30px; }
  .testi-text { font-size: 21px; }
  .demo-ribbon { display: none; }
}
