/* ==========================================================================
   OMNAMHAPROPERTIES — stylesheet
   ========================================================================== */

:root {
  --primary: #1db2ff;
  --primary-600: #0a8ad4;
  --primary-700: #0874b3;
  --primary-50: #e7f6fd;
  --primary-100: #d3eefc;
  --navy: #12355b;
  --ink: #1a1a1a;
  --heading: #252235;
  --text: #686868;
  --muted: #8d8d8d;
  --line: #ececec;
  --surface: #f6fafd;
  --orange: #e8590c;
  --green: #15803d;
  --wa: #25d366;
  --wa-dark: #128c7e;
  --ph: linear-gradient(135deg, #eef5fa 0%, #e1ecf4 100%);
  --shadow-card: 0 0 7px -2px rgba(0, 0, 0, .19);
  --shadow-lift: 0 22px 44px -22px rgba(13, 45, 80, .38);
  --radius: 14px;
  --container: 1240px;
  --gutter: 24px;
  --header-h: 88px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.625;
  color: var(--text);
  background: #fff;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 700; line-height: 1.2; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--primary-600); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--primary); color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { --container: 1320px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 10px 18px; border-radius: 10px; background: var(--ink); color: #fff; transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: none; }

.ic { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic--fill { fill: currentColor; stroke: none; }

/* Empty image placeholder (add an <img> inside to show a photo) */
.ph { position: absolute; inset: 0; background: var(--c, var(--ph)); overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-img { position: absolute; inset: 0; transition: opacity .7s var(--ease), transform 1.4s var(--ease); }
.js .ph-img:not(.is-loaded) { opacity: 0; animation: ph-show 0s 3s forwards; }
.ph-img.is-failed { visibility: hidden; }
@keyframes ph-show { to { opacity: 1; } }

/* Listing without photos yet */
.ph--empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: #fff; text-align: center;
  background:
    radial-gradient(90% 70% at 85% 0%, rgba(29, 178, 255, .5), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 14px),
    linear-gradient(160deg, #0c84cd 0%, #0b3a63 100%);
}
.ph--empty .logo-mark { width: 26%; max-width: 84px; min-width: 34px; color: #fff; opacity: .92; }
.ph--empty span { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px; border-radius: 40px;
  font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn .ic { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn--primary { background: var(--primary-600); color: #fff; box-shadow: 0 12px 24px -12px rgba(10, 138, 212, .7); }
.btn--primary:hover { background: var(--primary-700); }
.btn--outline { border: 1.5px solid var(--primary-600); color: var(--primary-700); }
.btn--outline:hover { background: var(--primary-600); color: #fff; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--ink); color: #fff; }
.btn--ghost-white { border: 1.5px solid rgba(255, 255, 255, .7); color: #fff; }
.btn--ghost-white:hover { background: #fff; color: var(--primary-700); }
.btn--wa { background: var(--wa-dark); color: #fff; }
.btn--wa:hover { background: #0e6f64; }
.btn--soft { background: var(--primary-50); color: var(--primary-700); height: 44px; padding: 0 18px; }
.btn--soft:hover { background: var(--primary-100); }
.btn--soft.is-active { background: var(--primary-600); color: #fff; }
.btn--soft.is-active .ic { fill: currentColor; }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .45; transform: none; box-shadow: none; }

.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; transition: background-color .25s, color .25s, transform .25s; }
.icon-btn .ic { width: 20px; height: 20px; }

/* ---------- Tags ---------- */
.tag { display: inline-flex; align-items: center; height: 25px; padding: 0 11px; border-radius: 20px; font-size: 12.5px; font-weight: 600; line-height: 1; white-space: nowrap; }
.tag--status { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.tag--outline { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.tag--featured { background: var(--primary-600); color: #fff; }
.tag--hot { background: var(--orange); color: #fff; }
.tag--premium { background: var(--navy); color: #fff; }
.tag--new { background: var(--green); color: #fff; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 8px 28px -16px rgba(16, 40, 70, .35); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); flex: none; }
.logo-mark { width: 40px; height: 40px; color: var(--primary-600); }
.logo-text { font-family: 'Cinzel', Georgia, serif; font-size: 21px; line-height: 1; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.logo-thin { font-weight: 400; }
.logo-text b { font-weight: 700; }
.logo--light { color: #fff; }
.logo--light .logo-mark { color: #fff; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a { display: block; padding: 8px 22px; border-radius: 30px; color: var(--ink); font-size: 16px; line-height: 26px; transition: color .25s, background-color .25s; }
.main-nav a:hover { color: var(--primary-700); }
.main-nav a.is-active { background: var(--primary-50); color: var(--primary-700); font-weight: 500; }
.nav-mobile-contact { display: none; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phones { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--ink); }
.header-phones .ic { width: 20px; height: 20px; color: var(--primary); }
.header-phones a { white-space: nowrap; transition: color .2s; }
.header-phones a:hover { color: var(--primary-700); }
.header-divider { width: 1px; height: 26px; background: #e2e2e2; }
.saved-btn { position: relative; background: var(--primary); color: #fff; }
.saved-btn:hover { background: var(--primary-700); transform: scale(1.05); }
.saved-count {
  position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; border: 2px solid #fff; background: var(--orange); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 15px; text-align: center;
}
.saved-count[hidden] { display: none; }
.header-call, .nav-toggle { display: none; }
.header-call { background: var(--primary-50); color: var(--primary-700); }
.nav-toggle { color: var(--ink); background: #f3f5f7; }
.nav-toggle .ic-close { display: none; }
.nav-toggle[aria-expanded="true"] .ic-open { display: none; }
.nav-toggle[aria-expanded="true"] .ic-close { display: block; }

/* ==========================================================================
   Page shell & reveal-on-scroll
   ========================================================================== */
.page-wrap { position: relative; }
.page {
  position: relative; z-index: 2; background: #fff;
  border-radius: 0 0 48px 48px;
  box-shadow: 0 50px 80px -40px rgba(4, 40, 72, .55);
  overflow: clip;
}

.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Section heads ---------- */
.section-head h2 { font-size: 30px; line-height: 1.15; letter-spacing: -.01em; }
.section-head p { font-size: 15px; margin-top: 8px; }
.section-head--center { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head--center p { font-size: 16px; color: #666; margin-top: 14px; }
.display-title { font-size: clamp(34px, 4.4vw, 56px); color: var(--heading); letter-spacing: -.02em; line-height: 1.1; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--primary-700); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 30px; height: 2px; border-radius: 2px; background: var(--primary); }

/* ==========================================================================
   Agent strip
   ========================================================================== */
.agent-strip { padding: 34px 0 60px; }
.agent-strip__title { font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 18px; }
.agent-strip__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 32px; }
.agent-card { display: flex; align-items: center; gap: 22px; }
.agent-info { min-width: 0; }
.agent-avatar {
  width: 120px; height: 120px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, #f1faff 0%, #c9eafc 100%);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .7);
}
.agent-avatar .logo-mark { width: 64px; height: 64px; }
.agent-label { display: block; font-size: 14px; font-weight: 500; line-height: 1.4; }
.agent-name { display: flex; align-items: center; gap: 8px; font-size: 26px; margin: 2px 0 6px; }
.agent-name .verified { width: 22px; height: 22px; color: var(--primary); }
.agent-more { display: inline-flex; align-items: center; gap: 6px; color: var(--primary-700); font-size: 14px; font-weight: 700; }
.agent-more .ic { width: 14px; height: 14px; transition: transform .25s; }
.agent-more:hover .ic { transform: translateX(4px); }

.agent-contacts { display: grid; grid-template-columns: repeat(2, max-content); justify-content: space-between; gap: 22px clamp(24px, 4vw, 60px); }
.agent-contacts .lbl { display: block; font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--muted); }
.agent-contacts a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 15px; transition: color .2s; overflow-wrap: anywhere; }
.agent-contacts a:hover { color: var(--primary-700); }
.agent-contacts .ic { width: 18px; height: 18px; color: var(--primary); }

/* ==========================================================================
   Carousels
   ========================================================================== */
.carousel { position: relative; }
.carousel-track {
  --per: 4; --gap: 24px;
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
  gap: var(--gap);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
  padding-block: 10px 30px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }
.carousel-track:focus-visible { outline-offset: -2px; }
.carousel--bleed .carousel-track {
  --pad: max(var(--gutter), (100% - 1320px) / 2);
  padding-inline: var(--pad);
  scroll-padding-inline: var(--pad);
}
.carousel.no-overflow .carousel-arrow, .carousel.no-overflow .carousel-nav { display: none; }

.carousel-arrow {
  position: absolute; top: var(--arrow-top, 40%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .35);
  transform: translateY(-50%);
  transition: background-color .25s, transform .25s var(--ease);
}
.carousel-arrow .ic { width: 15px; height: 15px; }
.carousel-arrow:hover { background: var(--primary-600); }
.carousel-arrow.prev { left: 16px; }
.carousel-arrow.next { right: 16px; }
.carousel-nav { display: flex; justify-content: center; gap: 12px; margin-top: 10px; }
.carousel-nav .carousel-arrow { position: static; transform: none; }
.carousel-nav .carousel-arrow:hover { transform: scale(1.06); }

/* ==========================================================================
   Property card (grid)
   ========================================================================== */
.latest { padding: 30px 0 70px; }
.latest .section-head { margin-bottom: 22px; }

.prop-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.prop-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.prop-card__thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.prop-card__thumb::after, .list-card__thumb::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 18, 28, .38) 0%, rgba(8, 18, 28, 0) 32%, rgba(8, 18, 28, 0) 56%, rgba(8, 18, 28, .55) 100%);
}
.prop-card:hover .ph-img, .list-card:hover .ph-img { transform: scale(1.06); }
.scrub-bars { position: absolute; left: 12px; right: 12px; bottom: 6px; z-index: 2; display: flex; gap: 4px; opacity: 0; transition: opacity .3s; pointer-events: none; }
.scrub-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .45); transition: background-color .2s; }
.scrub-bars i.is-on { background: #fff; }
[data-scrub]:hover .scrub-bars { opacity: 1; }
@media (hover: none) { .scrub-bars { display: none; } }
.thumb-hit { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.thumb-hit:focus-visible { outline-offset: -4px; }
.prop-card__tags { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.prop-card__bottom { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.prop-card__bottom .prop-actions { pointer-events: auto; }

.media-count {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px;
  border-radius: 20px; background: rgba(26, 26, 26, .55); color: #fff;
  font-size: 13px; font-weight: 500; pointer-events: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.media-count .ic { width: 15px; height: 15px; }
.media-count .ic--fill { width: 11px; height: 11px; }
.media-count__sep { width: 1px; height: 12px; margin: 0 1px; background: rgba(255, 255, 255, .45); }

.prop-actions { display: flex; gap: 8px; }
.act {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(26, 26, 26, .55); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color .25s, color .25s, transform .25s var(--ease);
}
.act .ic { width: 16px; height: 16px; }
.act:hover { background: var(--primary-600); transform: scale(1.08); }
.act--fav.is-active { background: #fff; color: #e11d48; }
.act--fav.is-active .ic { fill: currentColor; }
.act--cmp.is-active { background: var(--primary-600); color: #fff; }
.act--soft { background: var(--primary-50); color: var(--primary-700); -webkit-backdrop-filter: none; backdrop-filter: none; width: 38px; height: 38px; }
.act--soft:hover { background: var(--primary-600); color: #fff; }
.act--soft.act--fav.is-active { background: #fde4ea; color: #e11d48; }

.prop-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px 20px 20px; }
.prop-title { font-size: 17px; line-height: 1.38; }
.prop-title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.prop-title a:hover { color: var(--primary-700); }
.prop-addr { display: flex; gap: 6px; font-size: 14px; font-weight: 500; line-height: 1.45; }
.prop-addr .ic { width: 15px; height: 15px; margin-top: 2px; color: var(--primary); }
.prop-type { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary-700); }
.prop-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
.price-num { font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.price-slash { font-size: 13px; }
.price-unit { font-size: 15px; }
.price-per { font-size: 13px; color: var(--muted); margin-left: 2px; }
.price-note { font-size: 13px; color: var(--muted); margin-left: 4px; }
.price-num--ask { font-size: 18px; color: var(--primary-700); letter-spacing: 0; }
.prop-card .prop-price { padding-top: 4px; }
.prop-card .prop-meta { margin-top: auto; padding-top: 6px; }
.prop-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.prop-meta li { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-size: 14px; }
.prop-meta .ic { width: 16px; height: 16px; color: var(--primary); }
.prop-added { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.prop-added .ic { width: 14px; height: 14px; }
.prop-card .prop-added { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }

/* ==========================================================================
   Featured slider
   ========================================================================== */
.featured { position: relative; padding: 96px 0 100px; background: var(--primary-50); overflow: hidden; }
.featured::before {
  content: ''; position: absolute; top: -180px; right: -160px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 178, 255, .16), transparent 70%); pointer-events: none;
}
.featured__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.featured__stage { position: relative; }
.featured__main {
  position: relative; aspect-ratio: 1.42 / 1; border-radius: 22px; overflow: hidden;
  background: #fff; box-shadow: 0 30px 60px -36px rgba(13, 60, 100, .45);
  transition: opacity .3s var(--ease), transform .45s var(--ease);
}
.featured__main .ph-img.is-loaded { animation: kenburns 14s ease-out both; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.featured__main .media-count { position: absolute; left: 20px; bottom: 34px; z-index: 2; }
.featured__main .prop-actions { position: absolute; right: 20px; bottom: 34px; z-index: 2; }
.featured__nav { position: absolute; left: 50%; bottom: -22px; z-index: 4; display: flex; align-items: center; gap: 10px; transform: translateX(-50%); }
.featured__nav .carousel-arrow { position: static; transform: none; }
.featured__nav .carousel-arrow:hover { transform: scale(1.06); }
.featured__dots { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px; border-radius: 30px; background: #fff; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .25); }
.featured__dots button { width: 8px; height: 8px; border-radius: 50%; background: #b7e3fb; transition: all .3s var(--ease); }
.featured__dots button:hover { background: var(--primary); }
.featured__dots button[aria-current="true"] { width: 14px; height: 14px; background: transparent; box-shadow: inset 0 0 0 3px var(--primary); }
.featured__blob { position: absolute; right: -34px; bottom: 26px; z-index: 3; width: 70px; height: 70px; border-radius: 50%; background: rgba(29, 178, 255, .3); pointer-events: none; animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translate(-8px, -14px); } }

.featured__thumbs { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; margin-top: 50px; }
.featured__thumbs-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.thumb-btn { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 10px 24px -16px rgba(13, 60, 100, .5); transition: transform .3s var(--ease); }
.thumb-btn:hover { transform: translateY(-4px); }
.thumb-cap { position: absolute; left: 10px; bottom: 10px; right: 10px; z-index: 1; padding: 4px 9px; border-radius: 8px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.4; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.featured__count { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 112px; padding: 14px 18px; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 10px 24px -16px rgba(13, 60, 100, .5); }
.featured__count .ic { width: 22px; height: 22px; color: var(--primary); }
.featured__count b { font-size: 26px; line-height: 1.1; }
.featured__count small { font-size: 13px; color: var(--text); }

.featured__content { position: relative; z-index: 2; transition: opacity .3s var(--ease), transform .45s var(--ease); }
.featured.is-switching .featured__content { opacity: 0; transform: translateY(14px); }
.featured.is-switching .featured__main { opacity: .5; transform: scale(.985); }
.featured__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.featured__content .prop-type { margin-bottom: 10px; }
.featured__title { font-size: clamp(28px, 2.7vw, 38px); line-height: 1.24; letter-spacing: -.015em; margin-bottom: 14px; }
.featured__title a { transition: color .2s; }
.featured__title a:hover { color: var(--primary-700); }
.featured__content .prop-addr { font-size: 14.5px; }
.featured__meta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 30px -92px; }
.meta-box { display: flex; align-items: center; gap: 14px; height: 84px; padding: 0 26px; border-radius: 14px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 500; box-shadow: 0 14px 30px -20px rgba(13, 60, 100, .45); }
.meta-box .ic { width: 24px; height: 24px; color: var(--primary); }
.featured__price .price-num { font-size: clamp(32px, 3vw, 42px); color: var(--primary-700); }
.featured__price .price-unit { font-size: 18px; }
.featured__excerpt { margin-top: 16px; font-size: 15.5px; max-width: 540px; }
.featured__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ==========================================================================
   About
   ========================================================================== */
.about { padding: 110px 0 90px; }
.about__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 72px; align-items: center; }
.about__media { position: relative; isolation: isolate; }
.about__media::before {
  content: ''; position: absolute; top: -26px; left: -26px; z-index: -1; width: 150px; height: 150px;
  background-image: radial-gradient(var(--primary) 1.6px, transparent 1.7px); background-size: 15px 15px; opacity: .45;
}
.about__img { position: relative; aspect-ratio: 5 / 5.6; border-radius: 26px; }
.about__badge { position: absolute; right: -26px; bottom: 44px; display: flex; align-items: center; gap: 14px; padding: 16px 22px 16px 16px; border-radius: 18px; background: #fff; box-shadow: 0 26px 50px -22px rgba(13, 45, 80, .4); animation: float 8s ease-in-out infinite; }
.about__badge-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary-700); }
.about__badge-icon .ic { width: 24px; height: 24px; }
.about__badge b { display: block; color: var(--ink); font-size: 16px; line-height: 1.3; }
.about__badge small { font-size: 13px; }
.about__text h2 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.18; letter-spacing: -.015em; }
.about__lead { margin-top: 18px; font-size: 16.5px; line-height: 1.75; }
.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 32px 0 36px; }
.why { display: flex; gap: 14px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid #e6f1f9; transition: background-color .3s, box-shadow .3s, transform .3s var(--ease); }
.why:hover { background: #fff; box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.why__icon { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--primary-600); box-shadow: 0 6px 16px -8px rgba(13, 60, 100, .35); }
.why__icon .ic { width: 21px; height: 21px; }
.why h3 { font-size: 16px; margin-bottom: 4px; }
.why p { font-size: 14px; line-height: 1.55; }
.about__btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   Google reviews
   ========================================================================== */
.reviews { padding: 80px 0 40px; }
.reviews-widget { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: center; }
.reviews-summary { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.g-word { font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.g-word span:nth-child(1), .g-word span:nth-child(4) { color: #4285f4; }
.g-word span:nth-child(2), .g-word span:nth-child(6) { color: #ea4335; }
.g-word span:nth-child(3) { color: #f9ab00; }
.g-word span:nth-child(5) { color: #34a853; }
.rating-word { margin-top: 6px; color: var(--ink); font-size: 20px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.stars { display: flex; gap: 2px; color: #f9ab00; }
.stars .ic { width: 22px; height: 22px; }
.stars .is-off { opacity: .25; }
.rating-line { font-size: 14px; color: var(--ink); }
.btn-review { margin-top: 8px; padding: 9px 18px; border-radius: 8px; border: 1px solid #dadce0; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; transition: box-shadow .25s, border-color .25s; }
.btn-review:hover { border-color: #c4c7cc; box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .35); }

.carousel--inset .carousel-track { --per: 3; --gap: 18px; }
.carousel--inset { padding-inline: 28px; }
.carousel--inset .carousel-arrow { --arrow-top: 50%; width: 38px; height: 38px; margin-top: -10px; }
.carousel--inset .carousel-arrow.prev { left: -6px; }
.carousel--inset .carousel-arrow.next { right: -6px; }

.review-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 14px; background: #f6f7f9; transition: background-color .3s, box-shadow .3s; }
.review-card:hover { background: #fff; box-shadow: var(--shadow-lift); }
.review-head { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--primary-100); color: var(--primary-700); }
.avatar .ic { width: 22px; height: 22px; }
.review-head b { display: block; color: var(--ink); font-size: 15px; line-height: 1.3; }
.review-head small { font-size: 13px; color: var(--muted); }
.review-g { margin-left: auto; font-weight: 700; font-size: 18px; color: #4285f4; }
.review-card .stars .ic { width: 17px; height: 17px; }
.review-text { color: #333; font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.review-card.is-expanded .review-text { -webkit-line-clamp: unset; display: block; }
.read-more { align-self: flex-start; color: var(--primary-700); font-size: 14px; font-weight: 600; }
.read-more:hover { text-decoration: underline; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials { padding: 60px 0 100px; }
.carousel--below .carousel-track { --per: 3; --gap: 26px; }
.t-card { display: flex; flex-direction: column; gap: 18px; padding: 35px 34px 32px; border-radius: 12px; border: 1px solid #edf0f3; background: #fff; transition: box-shadow .35s, border-color .35s, transform .35s var(--ease); }
.t-card:hover { border-color: transparent; box-shadow: var(--shadow-lift); transform: translateY(-4px); }
.t-card__top { display: flex; align-items: center; justify-content: space-between; }
.t-quote { width: 38px; height: 38px; color: var(--primary); }
.t-card .stars .ic { width: 16px; height: 16px; }
.t-text { color: var(--heading); font-size: 16px; line-height: 1.75; }
.t-author { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 18px; border-top: 1px solid #f0f0f0; }
.t-author b { display: block; color: var(--ink); font-size: 16px; line-height: 1.3; }
.t-author small { font-size: 13px; color: rgba(0, 0, 0, .55); }

/* ==========================================================================
   Listing
   ========================================================================== */
.listing { padding: 70px 0 90px; background: linear-gradient(180deg, #fff 0%, var(--surface) 100%); }
.listing-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.listing-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.seg { display: inline-flex; padding: 4px; border-radius: 30px; background: var(--primary-50); }
.seg button { height: 38px; padding: 0 18px; border-radius: 30px; color: var(--ink); font-size: 14.5px; font-weight: 500; transition: background-color .25s, color .25s, box-shadow .25s; }
.seg button:hover { color: var(--primary-700); }
.seg button[aria-pressed="true"] { background: var(--primary-600); color: #fff; box-shadow: 0 8px 18px -10px rgba(10, 138, 212, .8); }
.search-field { position: relative; display: block; }
.search-field .ic { position: absolute; left: 16px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field input, .select-field select { height: 46px; border-radius: 30px; border: 1px solid #e3e7ec; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.search-field input { width: 240px; padding: 0 18px 0 42px; }
.select-field select {
  appearance: none; -webkit-appearance: none; padding: 0 40px 0 18px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center / 14px;
}
.search-field input:focus, .select-field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(29, 178, 255, .16); }

.list { display: flex; flex-direction: column; gap: 28px; }
.list-card {
  display: grid; grid-template-columns: 400px minmax(0, 1fr);
  border-radius: 12px; background: #fff; overflow: hidden; box-shadow: var(--shadow-card);
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
  animation: fade-up .5s var(--ease) both; animation-delay: var(--i, 0s);
}
.list-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } }
.list-card__thumb { position: relative; min-height: 260px; }
.list-card__thumb { overflow: hidden; }
.list-card__thumb .prop-card__bottom { left: 16px; right: 16px; bottom: 16px; }
.list-card__bottom .link-arrow { margin-top: 0; padding-top: 0; }
.list-card__thumb .prop-card__tags { top: 16px; left: 16px; }
.list-card__body { display: flex; flex-direction: column; gap: 14px; padding: 25px 28px; }
.list-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.list-card__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.floor-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.list-card .prop-title { font-size: 19px; margin-bottom: 6px; }
.list-card__price { flex: none; text-align: right; }
.list-card__price .prop-price { justify-content: flex-end; }
.list-card__price .price-num { font-size: 22px; }
.list-card__price .prop-type { margin-top: 4px; }
.list-card__excerpt { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list-card__bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }

.empty-state { padding: 64px 24px; border: 1.5px dashed #d5e3ee; border-radius: 18px; background: #fff; text-align: center; }
.empty-state .ic { width: 40px; height: 40px; margin: 0 auto 14px; color: var(--primary); }
.empty-state h3 { font-size: 20px; margin-bottom: 6px; }
.empty-state .btn { margin-top: 18px; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 44px; }
.pagination:empty { display: none; }
.pagination button { min-width: 46px; height: 46px; padding: 0 16px; border-radius: 30px; border: 1px solid #e3e7ec; background: #fff; color: var(--ink); font-weight: 600; font-size: 15px; transition: all .25s; }
.pagination button:hover:not([aria-current]) { border-color: var(--primary); color: var(--primary-700); }
.pagination button[aria-current="page"] { border-color: var(--primary-600); background: var(--primary-600); color: #fff; }

/* ==========================================================================
   Blogs
   ========================================================================== */
.blogs { padding: 90px 0 120px; }
.blogs-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.blog-card { display: flex; flex-direction: column; border-radius: var(--radius); background: #fff; overflow: hidden; box-shadow: var(--shadow-card); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.blog-card__thumb { position: relative; aspect-ratio: 16 / 10; }
.blog-card__thumb .tag { position: absolute; top: 14px; left: 14px; z-index: 1; }
.blog-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 24px 26px; }
.blog-card h3 { font-size: 19px; line-height: 1.38; }
.blog-card p { font-size: 15px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; color: var(--primary-700); font-size: 14px; font-weight: 700; }
.link-arrow .ic { width: 16px; height: 16px; transition: transform .25s; }
.link-arrow:hover .ic { transform: translateX(4px); }

/* ==========================================================================
   Footer — parallax overlap reveal
   The page (z-index 2, rounded bottom edge + shadow) overlaps the footer
   (z-index 1). As the footer scrolls into view, its layers slide out from
   underneath the page at different speeds and a shade lifts off it.
   Driven by CSS scroll-driven animations: they run on the compositor and are
   locked to the scroll position, so there is no frame lag or jitter.
   ========================================================================== */
.site-footer {
  position: relative; z-index: 1;
  margin-top: -48px; padding-top: 48px;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(29, 178, 255, .55), transparent 60%),
    linear-gradient(180deg, #0c84cd 0%, #0870ae 100%);
  color: rgba(255, 255, 255, .9);
  overflow: hidden;
  view-timeline: --footer block;
}
.footer-inner { position: relative; z-index: 1; padding-bottom: clamp(70px, 10vw, 170px); }
.footer-mark, .footer-deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.footer-watermark {
  position: absolute; left: 0; right: 0; bottom: -.14em; text-align: center;
  font-family: 'Cinzel', Georgia, serif; font-weight: 700; font-size: clamp(26px, 7.1vw, 136px); line-height: 1; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .25);
  user-select: none;
}
.orb { position: absolute; border-radius: 50%; }
.orb--1 { top: 8%; right: -120px; width: 380px; height: 380px; background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 70%); }
.orb--2 { top: 42%; left: -140px; width: 300px; height: 300px; border: 1px solid rgba(255, 255, 255, .14); }
.footer-shade { position: absolute; inset: 0; z-index: 5; opacity: 0; pointer-events: none; background: linear-gradient(180deg, rgba(3, 26, 46, .8) 0%, rgba(3, 26, 46, .35) 100%); }

/* Each layer starts tucked up under the page and settles as the footer finishes
   entering the viewport. Offsets are capped by the viewport height so tall
   (mobile) footers move at the same comfortable speed as short ones. */
@keyframes footer-rise-content { from { translate: 0 max(-50%, -45vh); } }
@keyframes footer-rise-deco    { from { translate: 0 max(-25%, -22vh); } }
@keyframes footer-rise-mark    { from { translate: 0 max(-85%, -75vh); } }
@keyframes footer-shade-lift   { from { opacity: 1; } to { opacity: 0; } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .footer-inner, .footer-deco, .footer-mark, .footer-shade {
      animation-duration: auto;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: --footer;
      animation-range: entry 0% entry 100%;
    }
    .footer-inner { animation-name: footer-rise-content; will-change: translate; }
    .footer-deco { animation-name: footer-rise-deco; will-change: translate; }
    .footer-mark { animation-name: footer-rise-mark; will-change: translate; }
    .footer-shade { animation-name: footer-shade-lift; will-change: opacity; }
  }
}

.footer-cta { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: center; padding: 96px 0 76px; }
.footer-cta h2 { color: #fff; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.15; letter-spacing: -.015em; }
.footer-lead { margin-top: 18px; max-width: 560px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: rgba(255, 255, 255, .88); }
.footer-label { display: block; margin-top: 34px; font-size: 17px; color: rgba(255, 255, 255, .8); }
.footer-phones { margin-top: 4px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; color: #fff; }
.footer-phones a { white-space: nowrap; transition: opacity .2s; }
.footer-phones a:hover { opacity: .8; }
.footer-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.callback { padding: 34px; border-radius: 22px; background: #fff; color: var(--text); box-shadow: 0 40px 70px -34px rgba(0, 20, 40, .6); }
.callback h3 { font-size: 23px; }
.callback__sub { margin: 4px 0 20px; font-size: 14.5px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #e3e7ec; border-radius: 12px; background: #f8fafc; color: var(--ink); transition: border-color .2s, background-color .2s, box-shadow .2s; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 36px; background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 13px; }
.field textarea { height: auto; min-height: 84px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); background-color: #fff; box-shadow: 0 0 0 4px rgba(29, 178, 255, .16); }
.field input:user-invalid { border-color: #dc2626; box-shadow: 0 0 0 4px rgba(220, 38, 38, .1); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-note { margin-top: 10px; font-size: 12.5px; text-align: center; color: var(--muted); }

.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 44px; padding: 56px 0 44px; border-top: 1px solid rgba(255, 255, 255, .2); }
.footer-brand h3 { margin: 22px 0 10px; color: #fff; font-size: 18px; line-height: 1.4; }
.footer-brand p { font-size: 15px; color: rgba(255, 255, 255, .85); }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .4); color: #fff; transition: all .25s; }
.socials a .ic { width: 18px; height: 18px; }
.socials a:hover { background: #fff; color: var(--primary-700); transform: translateY(-3px); }
.footer-col h4 { margin-bottom: 16px; color: #fff; font-size: 17px; }
.footer-col__gap { margin-top: 28px; }
.footer-col ul a { display: inline-flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 15px; color: rgba(255, 255, 255, .88); transition: color .2s, transform .25s var(--ease); }
.footer-col ul a:hover { color: #fff; transform: translateX(4px); }
.help-list .ic { width: 16px; height: 16px; opacity: .85; }
.footer-search { display: flex; align-items: center; padding: 5px; border-radius: 40px; background: #fff; }
.footer-search input { flex: 1; min-width: 0; height: 40px; padding: 0 14px; border: 0; background: transparent; color: var(--ink); }
.footer-search input:focus { outline: none; }
.footer-search:focus-within { box-shadow: 0 0 0 4px rgba(255, 255, 255, .3); }
.footer-search button { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; transition: background-color .25s; }
.footer-search button:hover { background: var(--primary-700); }
.footer-search button .ic { width: 18px; height: 18px; }

.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .2); font-size: 14px; color: rgba(255, 255, 255, .88); }
.footer-top-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #fff; }
.footer-top-link .ic { width: 16px; height: 16px; transition: transform .25s; }
.footer-top-link:hover .ic { transform: translateY(-3px); }

/* ==========================================================================
   Overlays: compare tray, modals, toast, floating buttons
   ========================================================================== */
.compare-tray {
  position: fixed; left: 50%; bottom: 20px; z-index: 90;
  display: flex; align-items: center; gap: 12px; max-width: min(860px, calc(100% - 32px));
  padding: 10px 10px 10px 18px; border-radius: 18px; background: var(--ink); color: #fff;
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .5);
  transform: translate(-50%, calc(100% + 40px)); visibility: hidden;
  transition: transform .45s var(--ease), visibility 0s .45s;
}
.compare-tray.is-open { transform: translate(-50%, 0); visibility: visible; transition: transform .45s var(--ease); }
.compare-tray__label { display: inline-flex; align-items: center; gap: 8px; flex: none; font-size: 14px; font-weight: 600; }
.compare-tray__label .ic { width: 18px; height: 18px; color: var(--primary); }
.compare-chips { display: flex; gap: 8px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.compare-chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 4px; flex: none; max-width: 190px; height: 34px; padding: 0 4px 0 12px; border-radius: 20px; background: rgba(255, 255, 255, .12); font-size: 13px; }
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip button { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.chip button:hover { background: rgba(255, 255, 255, .2); }
.chip .ic { width: 14px; height: 14px; }
.compare-tray .btn--primary { box-shadow: none; flex: none; }
.icon-btn--ghost { color: #fff; width: 40px; height: 40px; }
.icon-btn--ghost:hover { background: rgba(255, 255, 255, .12); }

html:has(dialog[open]) { overflow: hidden; }
.modal { width: 100%; max-width: min(960px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 22px; background: #fff; color: var(--text); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55); overflow: auto; overscroll-behavior: contain; }
.modal[open] { animation: modal-in .4s var(--ease); }
.modal::backdrop { background: rgba(6, 18, 32, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 5; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .3); transition: transform .25s; }
.modal-close:hover { transform: rotate(90deg); }
.modal-close .ic { width: 20px; height: 20px; }

.modal--qv { max-width: min(1100px, calc(100% - 32px)); }
.qv-gallery { position: relative; display: grid; gap: 6px; height: clamp(260px, 44vw, 480px); grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.qv-gallery--1, .qv-gallery--empty { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.qv-gallery--2 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr; }
.qv-gallery--3 { grid-template-columns: 2fr 1fr; }
.qv-tile { position: relative; overflow: hidden; cursor: zoom-in; background: #eef3f7; }
.qv-tile:first-child { grid-row: 1 / -1; }
.qv-tile::after { content: ''; position: absolute; inset: 0; background: rgba(8, 18, 28, 0); transition: background-color .3s; }
.qv-tile:hover::after { background: rgba(8, 18, 28, .12); }
.qv-tile:hover .ph-img { transform: scale(1.05); }
.qv-tile:focus-visible { outline: 3px solid #fff; outline-offset: -6px; border-radius: 0; }
.qv-gallery__actions { position: absolute; right: 18px; bottom: 18px; z-index: 3; display: flex; gap: 10px; }
.qv-chip { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 12px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); transition: transform .25s var(--ease); }
.qv-chip:hover { transform: translateY(-2px); }
.qv-chip .ic { width: 16px; height: 16px; }
.qv-chip--dark { background: rgba(14, 22, 32, .8); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.qv-chip--dark .ic { width: 12px; height: 12px; }

.qv-body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px; padding: 36px 38px 40px; }
.qv-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.qv-tags .tag--status { box-shadow: none; border: 1px solid var(--line); }
.qv-main .prop-type { margin-bottom: 8px; }
.qv-title { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.25; letter-spacing: -.015em; margin-bottom: 12px; }
.qv-meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 6px; }
.qv-meta .meta-box { height: 62px; padding: 0 20px; border: 1px solid #e8eef3; background: var(--surface); box-shadow: none; }
.qv-subhead { margin: 26px 0 10px; font-size: 17px; }
.qv-desc { font-size: 15.5px; line-height: 1.75; }
.qv-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.qv-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.qv-features .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--green); }
.qv-price-card { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: 18px; border: 1px solid #e6eef5; background: linear-gradient(180deg, #fff 0%, var(--surface) 100%); box-shadow: 0 24px 48px -32px rgba(13, 45, 80, .45); }
.qv-price-label { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.qv-price { margin-bottom: 8px; }
.qv-price .price-num { font-size: 32px; color: var(--primary-700); }
.qv-price .price-num--ask { font-size: 24px; }
.qv-secondary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 2px; }
.qv-secondary .btn { padding: 0 12px; }

/* Full-screen gallery */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0a0e14; color: #fff; overflow: hidden; }
.lightbox::backdrop { background: rgba(9, 13, 19, .7); }
.lightbox[open] { animation: lb-in .35s var(--ease); }
@keyframes lb-in { from { opacity: 0; } }
.lb { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
.lb__bar { display: flex; align-items: center; gap: 16px; padding: 14px 18px 10px 24px; }
.lb__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .92); }
.lb__count { font-size: 14px; color: rgba(255, 255, 255, .65); font-variant-numeric: tabular-nums; }
.lb__close { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; transition: background-color .25s, transform .25s; }
.lb__close:hover { background: rgba(255, 255, 255, .2); transform: rotate(90deg); }
.lb__close .ic { width: 20px; height: 20px; }
.lb__stage { position: relative; overflow: hidden; touch-action: pan-y; }
.lb__media {
  position: absolute; inset: 0; margin: auto; width: auto; height: auto;
  max-width: calc(100% - 170px); max-height: calc(100% - 16px); object-fit: contain;
  border-radius: 8px; opacity: 0; transform: scale(1.02);
  transition: opacity .45s var(--ease), transform .7s var(--ease);
}
.lb__media.is-in { opacity: 1; transform: none; }
video.lb__media { height: calc(100% - 16px); background: #000; }
.lb__nav { position: absolute; top: 50%; z-index: 2; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; transform: translateY(-50%); transition: background-color .25s, transform .25s var(--ease); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lb__nav:hover { background: rgba(255, 255, 255, .22); }
.lb__nav .ic { width: 16px; height: 16px; }
.lb__nav--prev { left: 22px; }
.lb__nav--next { right: 22px; }
.lb__nav--prev:hover { transform: translate(-3px, -50%); }
.lb__nav--next:hover { transform: translate(3px, -50%); }
.lb__thumbs { display: flex; gap: 8px; padding: 12px 24px 20px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.lb__thumbs::-webkit-scrollbar { display: none; }
.lb__thumbs > :first-child { margin-left: auto; }
.lb__thumbs > :last-child { margin-right: auto; }
.lb__thumb { position: relative; flex: none; width: 88px; height: 62px; border-radius: 10px; overflow: hidden; background: var(--c, #222); opacity: .45; transition: opacity .25s, box-shadow .25s; }
.lb__thumb:hover { opacity: .8; }
.lb__thumb[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px #fff; }
.lb__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb__play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .35); color: #fff; }
.lb__play .ic { width: 18px; height: 18px; }

.compare-wrap { padding: 36px 34px 30px; }
.compare-wrap h2 { font-size: 26px; margin-bottom: 20px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.compare-table { width: 100%; min-width: 620px; border-collapse: collapse; table-layout: fixed; font-size: 14.5px; }
.compare-table thead td { width: 130px; }
.compare-table th, .compare-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table tr:last-child > * { border-bottom: 0; }
.compare-table tbody th { width: 130px; background: var(--surface); color: var(--ink); font-weight: 600; white-space: nowrap; }
.compare-table thead th { color: var(--ink); font-weight: 700; line-height: 1.4; }
.compare-table thead th a:hover { color: var(--primary-700); }
.ct-thumb { position: relative; aspect-ratio: 16 / 10; margin-bottom: 10px; border-radius: 10px; overflow: hidden; }
.compare-table td { color: var(--ink); }

.toast {
  position: fixed; left: 50%; top: calc(var(--header-h) + 14px); z-index: 300;
  max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 12px;
  background: var(--ink); color: #fff; font-size: 14px; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .5);
  opacity: 0; transform: translate(-50%, -12px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

.fab-stack { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: flex; flex-direction: column; align-items: center; gap: 12px; transition: bottom .45s var(--ease); }
.has-tray .fab-stack { bottom: 96px; }
.fab { display: grid; place-items: center; box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .45); transition: transform .3s var(--ease), opacity .3s, background-color .25s; }
.fab .ic { width: 22px; height: 22px; }
.fab--wa { width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; }
.fab--wa .ic { width: 28px; height: 28px; }
.fab--wa { opacity: 0; transform: scale(.7); pointer-events: none; }
.fab--wa.is-show { opacity: 1; transform: none; pointer-events: auto; }
.fab--wa.is-show:hover { transform: scale(1.08); }
.fab--top { width: 44px; height: 44px; border-radius: 10px; background: var(--primary-600); color: #fff; opacity: 0; transform: translateY(12px); pointer-events: none; }
.fab--top.is-show { opacity: 1; transform: none; pointer-events: auto; }
.fab--top:hover { background: var(--primary-700); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1279px) {
  .header-phones a + a { display: none; }
  .main-nav a { padding: 8px 16px; }
  .carousel-track { --per: 3; }
  .featured__meta { margin-left: -70px; }
  .footer-main { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-main .footer-col:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 44px; align-items: start; }
  .footer-main .footer-col:last-child h4:first-child { grid-column: 1; grid-row: 1; }
  .footer-main .footer-col:last-child .footer-search { grid-column: 1; grid-row: 2; }
  .footer-main .footer-col:last-child .footer-col__gap { grid-column: 2; grid-row: 1; margin-top: 0; }
  .footer-main .footer-col:last-child .help-list { grid-column: 2; grid-row: 2; }
}

@media (max-width: 1199px) {
  .header-phones { display: none; }
  .header-call { display: grid; }
}

@media (max-width: 1099px) {
  .featured__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .featured__meta { margin-left: 0; }
  .about__grid { gap: 56px; }
  .reviews-widget { grid-template-columns: minmax(0, 1fr); }
  .carousel--inset .carousel-track { --per: 2; }
  .list-card { grid-template-columns: 320px minmax(0, 1fr); }
  .footer-cta { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .callback { max-width: 620px; }
}

@media (max-width: 991px) {
  :root { --header-h: 72px; }
  .header-inner { gap: 12px; }
  .logo-mark { width: 34px; height: 34px; }
  .logo-text { font-size: 18px; }
  .header-phones, .header-divider { display: none; }
  .header-actions { margin-left: auto; gap: 10px; }
  .header-call, .nav-toggle { display: grid; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 12px var(--gutter) 22px; background: #fff;
    box-shadow: 0 24px 40px -24px rgba(16, 40, 70, .4);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s var(--ease); }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 12px 16px; border-radius: 12px; font-size: 17px; }
  .nav-mobile-contact { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; padding: 16px 16px 0; border-top: 1px solid var(--line); }
  .nav-mobile-contact a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
  .nav-mobile-contact .ic { width: 18px; height: 18px; color: var(--primary); }

  .agent-strip__grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .about__media { max-width: 560px; }
  .about__img { aspect-ratio: 16 / 11; }
  .about__badge { right: 16px; bottom: -22px; }
  .carousel-track { --per: 2; }
  .carousel--below .carousel-track { --per: 2; }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-grid > :nth-child(3) { display: none; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  :root { --gutter: 18px; }
  .page { border-radius: 0 0 30px 30px; }
  .site-footer { margin-top: -30px; padding-top: 30px; }
  .agent-strip { padding: 24px 0 46px; }
  .featured { padding: 64px 0 70px; }
  .about { padding: 80px 0 60px; }
  .listing { padding: 56px 0 70px; }
  .blogs { padding: 70px 0 100px; }
  .listing-head { flex-direction: column; align-items: stretch; }
  .listing-tools { flex-direction: column; align-items: stretch; }
  .seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .seg button { padding: 0 6px; }
  .search-field input { width: 100%; }
  .select-field select { width: 100%; }
  .list-card { grid-template-columns: minmax(0, 1fr); }
  .list-card__thumb { min-height: 0; aspect-ratio: 16 / 10; }
  .list-card__body { padding: 20px; }
  .list-card__top { flex-direction: column; gap: 10px; }
  .list-card__price { text-align: left; }
  .list-card__price .prop-price { justify-content: flex-start; }
  .carousel-track { --per: 1.25; --gap: 16px; }
  .carousel--inset .carousel-track, .carousel--below .carousel-track { --per: 1.1; }
  .carousel--inset { padding-inline: 0; }
  .carousel--inset .carousel-arrow { display: none; }
  .carousel-arrow { width: 38px; height: 38px; }
  .carousel-arrow.prev { left: 8px; }
  .carousel-arrow.next { right: 8px; }
  .featured__thumbs { grid-template-columns: minmax(0, 1fr); }
  .featured__count, .featured__blob { display: none; }
  .meta-box { height: 66px; padding: 0 18px; }
  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .blog-grid { grid-template-columns: minmax(0, 1fr); }
  .blog-grid > :nth-child(3) { display: flex; }
  .footer-cta { padding: 70px 0 56px; }
  .callback { padding: 24px; }
  .footer-main { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .footer-main .footer-col:last-child { display: block; }
  .footer-main .footer-col:last-child .footer-col__gap { margin-top: 28px; }
  .qv-gallery { height: auto; aspect-ratio: 4 / 3; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .qv-tile:not(:first-child) { display: none; }
  .qv-gallery__actions { left: 12px; right: 12px; bottom: 12px; flex-wrap: wrap; justify-content: flex-end; }
  .qv-chip { height: 38px; padding: 0 12px; font-size: 13px; }
  .qv-body { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px 20px 26px; }
  .qv-price-card { position: static; }
  .qv-meta .meta-box { height: 54px; padding: 0 14px; }
  .lb__media { max-width: 100%; border-radius: 0; }
  .lb__nav { display: none; }
  .lb__bar { padding: 10px 10px 8px 16px; }
  .lb__thumbs { padding: 10px 14px 16px; }
  .lb__thumb { width: 64px; height: 46px; border-radius: 8px; }
  .compare-wrap { padding: 28px 18px 22px; }
  .compare-tray { left: 16px; right: 16px; max-width: none; transform: translateY(calc(100% + 40px)); flex-wrap: wrap; }
  .compare-tray.is-open { transform: none; }
  .compare-chips { order: 3; flex-basis: 100%; }
  .compare-tray .btn--primary { margin-left: auto; }
  .has-tray .fab-stack { bottom: 150px; }
}

@media (max-width: 479px) {
  :root { --gutter: 16px; }
  .logo-mark { width: 30px; height: 30px; }
  .logo { gap: 6px; }
  .logo-text { font-size: clamp(12px, 3.9vw, 16px); letter-spacing: .01em; }
  .header-actions { gap: 8px; }
  .header-actions .icon-btn { width: 38px; height: 38px; }
  .agent-card { flex-direction: column; align-items: flex-start; gap: 14px; }
  .agent-avatar { width: 88px; height: 88px; }
  .agent-avatar .logo-mark { width: 48px; height: 48px; }
  .agent-name { font-size: 20px; }
  .agent-contacts { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .featured__thumbs-list { gap: 10px; }
  .thumb-cap { display: none; }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .footer-cta__btns .btn { flex: 1; }
  .qv-features { grid-template-columns: minmax(0, 1fr); }
  .fab-stack { right: 14px; bottom: 14px; }
}

@media (max-width: 419px) {
  .header-call { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .carousel-track { scroll-behavior: auto; }
}
