/* ═══════════════════════════════════════════════════
   БЕСТ РІЕЛТОР — Light & Bright / Red Edition
   Palette: #FFFFFF · #DC2626 (Red) · #111827 (Dark)
   ═══════════════════════════════════════════════════ */

/* ─── Design Tokens ──────────────────────────────── */
:root {
  --bg:           #F4F6FB;
  --bg-2:         #FFFFFF;
  --navy:         #0F1A3D;
  --text:         #111827;
  --text-dim:     #6B7280;
  --accent:       #DC2626;
  --accent-light: #EF4444;
  --accent-2:     rgba(220, 38, 38, 0.07);
  --accent-3:     rgba(220, 38, 38, 0.18);
  --line:         rgba(17, 24, 39, 0.09);
  --line-accent:  rgba(220, 38, 38, 0.22);
  --shadow:       0 1px 3px rgba(17,24,39,0.04), 0 6px 20px rgba(17,24,39,0.07);
  --shadow-lg:    0 16px 56px rgba(17,24,39,0.13);
  --r-xl:         24px;
  --r-lg:         16px;
  --r-md:         12px;
  --r-sm:         8px;
  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --container:    1200px;
}

/* ─── Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  background-image: radial-gradient(rgba(220,38,38,0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4, p { margin: 0; }

/* ─── Container ──────────────────────────────────── */
.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

/* ─── Header ─────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }

.brand-logo { height: 48px; width: auto; display: block; }

.nav {
  display: none;
  gap: 28px;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}

.nav a { color: var(--text-dim); transition: color 0.2s ease; }
.nav a:hover { color: var(--accent); }

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(220,38,38,0.32);
  transition: transform 0.2s var(--ease-bounce), box-shadow 0.2s ease, background 0.2s ease;
  position: relative;
  overflow: hidden;
}

.header-cta::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  transition: left 0.5s ease;
}

.header-cta:hover::before { left: 150%; }
.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(220,38,38,0.44);
  background: var(--accent-light);
}
.header-cta:active { transform: scale(0.96); }

/* ─── Buttons ────────────────────────────────────── */
.btn {
  min-height: 50px;
  border-radius: 999px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease-bounce), box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transition: left 0.5s ease;
}
.btn:hover::before { left: 150%; }
.btn:active { transform: scale(0.96) !important; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(220,38,38,0.30);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(220,38,38,0.44);
  background: var(--accent-light);
}

.btn-secondary {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--accent-2);
}

/* ─── Splash Screen ──────────────────────────────── */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.splash::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(220,38,38,0.50), transparent);
  top: 0;
  animation: splashScan 3.2s linear infinite;
  pointer-events: none;
}

@keyframes splashScan {
  0%   { top: 0%; }
  100% { top: 100%; }
}

.splash-out {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

/* Floating dots */
.sp-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  animation: spFloat 4s ease-in-out infinite;
  opacity: 0;
}
.sp-dot:nth-child(1) { width: 5px;  height: 5px;  top: 12%; left: 8%;   animation-delay: 0.0s; }
.sp-dot:nth-child(2) { width: 4px;  height: 4px;  top: 78%; left: 13%;  animation-delay: 0.6s; }
.sp-dot:nth-child(3) { width: 6px;  height: 6px;  top: 20%; right: 10%; animation-delay: 1.0s; }
.sp-dot:nth-child(4) { width: 4px;  height: 4px;  top: 72%; right: 9%;  animation-delay: 1.5s; }
.sp-dot:nth-child(5) { width: 8px;  height: 8px;  top: 48%; left: 4%;   animation-delay: 0.4s; }
.sp-dot:nth-child(6) { width: 3px;  height: 3px;  top: 38%; right: 5%;  animation-delay: 1.2s; }
.sp-dot:nth-child(7) { width: 5px;  height: 5px;  top: 90%; left: 45%;  animation-delay: 0.9s; }
.sp-dot:nth-child(8) { width: 4px;  height: 4px;  top: 6%;  left: 55%;  animation-delay: 1.8s; }

@keyframes spFloat {
  0%, 100% { opacity: 0;   transform: translateY(0); }
  20%, 80%  { opacity: 0.55; }
  50%       { opacity: 0.8;  transform: translateY(-18px); }
}

/* Rings */
.sp-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(220, 38, 38, 0.22);
  animation: spRing 3.2s ease-out infinite;
}
.sp-ring-1 { width: 220px; height: 220px; animation-delay: 0s;    }
.sp-ring-2 { width: 380px; height: 380px; animation-delay: 0.5s;  }
.sp-ring-3 { width: 540px; height: 540px; animation-delay: 1.0s;  }

@keyframes spRing {
  0%   { transform: scale(0.75); opacity: 0.7; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* Center content */
.sp-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.sp-mono {
  font-family: Georgia, serif;
  font-size: clamp(80px, 14vw, 120px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -4px;
  line-height: 1;
  animation: spMonoIn 0.8s var(--ease-bounce) 0.2s both;
}
.sp-mono em {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}

@keyframes spMonoIn {
  from { opacity: 0; transform: scale(0.6) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Red underline for monogram */
.sp-mono-line {
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 6px auto 20px;
  width: 0;
  animation: spLineGrow 0.5s ease 0.9s both;
}

@keyframes spLineGrow {
  to { width: 80px; }
}

.sp-name {
  font-family: Georgia, serif;
  font-size: clamp(18px, 3.5vw, 26px);
  font-weight: 700;
  letter-spacing: 7px;
  color: #fff;
  text-transform: uppercase;
  animation: spSlideUp 0.6s ease 1.0s both;
}

.sp-agency {
  margin-top: 8px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 5px;
  color: rgba(255,255,255,0.40);
  text-transform: uppercase;
  animation: spSlideUp 0.6s ease 1.2s both;
}

@keyframes spSlideUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Progress bar */
.sp-progress {
  width: clamp(160px, 22vw, 220px);
  height: 2px;
  background: rgba(255,255,255,0.10);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 40px;
  animation: spSlideUp 0.5s ease 1.4s both;
}

.sp-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(220,38,38,0.6), var(--accent));
  border-radius: 2px;
  animation: spFill 2.6s linear 1.5s both;
}

@keyframes spFill {
  from { width: 0%; }
  to   { width: 100%; }
}

.sp-hint {
  margin-top: 20px;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  animation: spSlideUp 0.5s ease 2.2s both, spHintPulse 2s ease 2.7s infinite;
}

@keyframes spHintPulse {
  0%, 100% { opacity: 0.25; }
  50%       { opacity: 0.55; }
}

/* ─── Main ───────────────────────────────────────── */
main { padding-bottom: 0; }

/* ─── Hero — full-bleed ──────────────────────────── */
.hero { padding: 0; }

.hero .container {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border: none;
  background: #fff;
  box-shadow: none;
}

.hero-grid { display: grid; }

.hero-content {
  padding: 52px 28px 44px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  /* Grid pattern backdrop */
  background-color: #fff;
  background-image:
    linear-gradient(rgba(220,38,38,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220,38,38,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* Red vertical accent stripe */
.hero-content::before {
  content: '';
  position: absolute;
  left: 0;
  top: 44px;
  bottom: 44px;
  width: 4px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}

/* Scanning red line */
.hero-content::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, rgba(220,38,38,0.30) 50%, transparent 100%);
  animation: heroScan 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
  top: 0;
}

@keyframes heroScan {
  0%   { top: 0%;   opacity: 0; }
  5%   { opacity: 1; }
  90%  { opacity: 0.7; }
  100% { top: 100%; opacity: 0; }
}

/* Eyebrow badge */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: var(--accent-2);
  border: 1px solid var(--line-accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  width: fit-content;
  position: relative;
  z-index: 4;
}

.eyebrow::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.65); }
}

/* Hero heading */
.hero h1 {
  margin-top: 20px;
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.052em;
  color: var(--text);
  max-width: 13ch;
  position: relative;
  z-index: 4;
}

.hero-copy {
  margin-top: 18px;
  max-width: 52ch;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.78;
  position: relative;
  z-index: 4;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 4;
}

/* Stats in hero */
.hero-stats {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  position: relative;
  z-index: 4;
}

.stat {
  padding: 16px 14px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.85);
  border: 1.5px solid var(--line);
  backdrop-filter: blur(4px);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s var(--ease-out);
  cursor: default;
}

.stat:hover {
  border-color: var(--line-accent);
  background: var(--accent-2);
  transform: translateY(-2px);
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.stat-label {
  margin-top: 5px;
  color: var(--text-dim);
  font-size: 0.78rem;
  line-height: 1.45;
}

/* Hero visual */
.hero-visual {
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #fff 0%, rgba(255,255,255,0) 28%);
  pointer-events: none;
  z-index: 1;
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(220,38,38,0.10) 0%, transparent 48%);
  pointer-events: none;
  z-index: 1;
}

.hero-visual img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ─── Stats Strip ─────────────────────────────────── */
.stats-strip {
  background: var(--navy);
  padding: 0;
  position: relative;
  overflow: hidden;
}

/* Subtle animated grid on the navy strip */
.stats-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(220,38,38,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220,38,38,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.stats-strip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  position: relative;
  z-index: 1;
}

.sstat {
  padding: 36px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.25s ease;
  cursor: default;
}
.sstat:hover { background: rgba(220,38,38,0.12); }
.sstat:nth-child(2n)   { border-right: none; }
.sstat:nth-child(n+3)  { border-bottom: none; }

.sstat-value {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #fff;
  line-height: 1;
  transition: color 0.3s ease;
}

.sstat:hover .sstat-value { color: var(--accent-light); }

.sstat-label {
  margin-top: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.50);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ─── Section head ───────────────────────────────── */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 52px 0 24px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.046em;
  line-height: 1;
  color: var(--text);
  position: relative;
  padding-bottom: 14px;
}

.section-head h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.45s var(--ease-out);
}

.section-head:hover h2::after { width: 80px; }

.section-head p {
  max-width: 56ch;
  color: var(--text-dim);
  line-height: 1.72;
  font-size: 0.94rem;
}

/* ─── Catalog ─────────────────────────────────────── */
.catalog {
  background: var(--bg);
  padding-bottom: 56px;
}

.catalog-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.filter-btn {
  min-height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--bg-2);
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all 0.22s var(--ease-out);
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-2);
}

.filter-btn.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(220,38,38,0.32);
}

.catalog-sort {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  flex-wrap: wrap;
}

.catalog-sort-label {
  font-weight: 600;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.catalog-sort-select {
  min-height: 40px;
  padding: 0 36px 0 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  background-color: var(--bg-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23DC2626' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.catalog-sort-select:focus { outline: none; border-color: var(--accent); }

/* ─── Property grid ──────────────────────────────── */
.property-grid { display: grid; gap: 20px; }

/* ─── Property card ──────────────────────────────── */
.property-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--bg-2);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.32s var(--ease-out), box-shadow 0.32s var(--ease-out), border-color 0.32s ease;
  will-change: transform;
}

.property-card:hover {
  transform: translateY(-6px) scale(1.005);
  box-shadow: 0 24px 64px rgba(17,24,39,0.13), 0 0 0 1.5px var(--accent);
  border-color: var(--accent);
}

.property-open { display: block; color: inherit; text-decoration: none; }

.property-media {
  position: relative;
  height: 230px;
  overflow: hidden;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}

.property-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.50s var(--ease-out);
}

.property-card:hover .property-media img { transform: scale(1.07); }

.property-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(220,38,38,0.42);
  animation: badgePop 0.4s var(--ease-bounce) both;
}

@keyframes badgePop {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.property-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--text-dim);
  font-size: 0.74rem;
  font-weight: 600;
  z-index: 2;
  border: 1px solid rgba(17,24,39,0.07);
}

.property-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,24,39,0.18) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.property-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.property-title {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.42;
  color: var(--text);
  white-space: pre-line;
}

.property-meta { margin-top: 7px; color: var(--text-dim); font-size: 0.84rem; line-height: 1.5; }

.property-features { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 5px; }

.property-feature {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-2);
  border: 1px solid var(--line-accent);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 600;
}

.property-footer { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

.property-price { font-size: 1.12rem; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; }

.property-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.property-link {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s var(--ease-out);
}

.property-link::after {
  content: '→';
  display: inline-block;
  transition: transform 0.2s var(--ease-out);
}

.property-card:hover .property-link::after { transform: translateX(5px); }

.small-action { min-height: 36px; padding: 0 14px; font-size: 0.86rem; }

/* Favorite button */
.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(17,24,39,0.08);
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  transition: transform 0.2s var(--ease-bounce), background 0.2s ease, border-color 0.2s ease;
  z-index: 3;
}

.fav-btn:hover { transform: scale(1.22); }
.fav-btn.active { background: rgba(220,38,38,0.10); border-color: var(--line-accent); }

/* ─── Realtor ─────────────────────────────────────── */
.realtor {
  background: var(--bg-2);
  padding: 72px 0;
}

.realtor-card {
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow);
  padding: 36px 28px;
  display: grid;
  gap: 32px;
  align-items: center;
}

.realtor-card h2,
.contact-card h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.044em;
  line-height: 1.05;
  color: var(--text);
}

.contact-copy {
  margin-top: 12px;
  max-width: 60ch;
  color: var(--text-dim);
  line-height: 1.75;
  font-size: 0.96rem;
}

.contact-copy-top { margin-top: 14px; }

.realtor-photo {
  border-radius: var(--r-xl);
  max-width: 400px;
  width: 100%;
  object-fit: cover;
  border: 1.5px solid var(--line);
  display: block;
  box-shadow: 16px 16px 0 0 rgba(220,38,38,0.08), var(--shadow-lg);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}

.realtor-photo:hover {
  transform: translateY(-4px) rotate(0.5deg);
  box-shadow: 20px 20px 0 0 rgba(220,38,38,0.12), 0 32px 80px rgba(17,24,39,0.16);
}

/* ─── Contact — light section ────────────────────── */
.contact {
  background: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--accent);
}

/* Subtle dot pattern */
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(220,38,38,0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Decorative soft red glow — top-right corner */
.contact::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220,38,38,0.08) 0%, transparent 68%);
  pointer-events: none;
}

.contact-card {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.contact-card h2 { color: var(--text); }
.contact-card .contact-copy { color: var(--text-dim); }

.contact-grid { margin-top: 28px; display: grid; gap: 12px; }

.contact-item {
  background: var(--bg);
  border: 1px solid rgba(220,38,38,0.12);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  padding: 18px 20px;
  transition: background 0.22s ease, box-shadow 0.22s ease, transform 0.22s var(--ease-out);
}

.contact-item:hover {
  background: #fff;
  box-shadow: 0 4px 20px rgba(220,38,38,0.10);
  transform: translateY(-2px);
}

.contact-label {
  display: block;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.contact-value { font-weight: 700; font-size: 1.0rem; line-height: 1.5; color: var(--text); }

/* ─── Footer — dark navy ─────────────────────────── */
.site-footer {
  background: var(--navy);
  padding: 32px 0 20px;
  color: rgba(255,255,255,0.50);
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.footer-copy { display: grid; gap: 5px; justify-items: center; }

/* Visitor stats table */
.site-stats {
  width: 152px;
  table-layout: fixed;
  border-collapse: collapse;
  border: 1px solid rgba(220,38,38,0.35);
  background: rgba(220,38,38,0.08);
  color: rgba(255,255,255,0.80);
  font-family: "Courier New", Consolas, monospace;
  font-size: 11px;
  line-height: 1;
  flex: 0 0 auto;
}

.site-stats th {
  padding: 4px 6px;
  border: 1px solid rgba(220,38,38,0.28);
  background: rgba(220,38,38,0.18);
  color: rgba(255,255,255,0.62);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.site-stats td {
  padding: 3px 6px;
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.50);
  font-weight: 600;
  white-space: nowrap;
}

.site-stats td:first-child { width: 88px; text-align: left; }
.site-stats td:last-child  { width: 60px; text-align: right; color: rgba(255,255,255,0.85); }

/* ─── Modal / Gallery ────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(15,26,61,0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 200;
}

.modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

.modal-dialog {
  width: min(100%, 1080px);
  max-height: min(92vh, 920px);
  overflow: hidden;
  border-radius: 20px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  box-shadow: 0 40px 100px rgba(15,26,61,0.55);
  display: grid;
  grid-template-rows: auto 1fr auto;
  transform: scale(0.95) translateY(12px);
  transition: transform 0.32s var(--ease-out);
}

.modal.is-open .modal-dialog { transform: scale(1) translateY(0); }

.modal-header {
  padding: 18px 18px 14px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.modal-title { font-size: 1.05rem; font-weight: 700; white-space: pre-line; color: var(--text); }
.modal-subtitle { margin-top: 5px; color: var(--text-dim); font-size: 0.88rem; }

.modal-close,
.gallery-nav { border: 0; cursor: pointer; border-radius: 999px; }

.modal-close {
  min-width: 38px; height: 38px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  color: var(--text-dim);
  font-size: 1.3rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal-close:hover { background: var(--accent-2); color: var(--accent); }

.gallery-stage {
  position: relative;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.gallery-image {
  width: 100%;
  height: min(68vh, 680px);
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border: 1.5px solid var(--line);
  color: var(--text);
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.gallery-nav:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }

.gallery-thumbs {
  padding: 12px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.thumb {
  border: 0; padding: 0;
  flex: 0 0 72px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.35;
  outline: 2.5px solid transparent;
  background: transparent;
  transition: opacity 0.2s ease, outline-color 0.2s ease, transform 0.2s var(--ease-out);
}

.thumb.is-active { opacity: 1; outline-color: var(--accent); }
.thumb:hover:not(.is-active) { opacity: 0.75; transform: scale(1.04); }
.thumb img { height: 100%; object-fit: cover; }

/* ─── Property page ──────────────────────────────── */
.property-page { padding: 24px 0 64px; }
.property-hero { padding: 8px 0 32px; }

.property-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap 0.2s var(--ease-out);
}

.property-back:hover { gap: 14px; }

.property-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.95fr);
  gap: 24px;
  align-items: start;
}

.property-content-card,
.property-sidebar-card,
.property-empty {
  background: var(--bg-2);
  border: 1.5px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
}

.property-content-card,
.property-sidebar-card { padding: 20px; }

.property-empty { margin: 40px auto; max-width: 720px; padding: 36px; text-align: center; }

.property-main-image-wrap { position: relative; }

.property-main-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.property-main-image:hover { opacity: 0.88; }

.property-badge-detail { position: absolute; left: 14px; top: 14px; }

.property-gallery-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.property-gallery-link {
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  transition: opacity 0.2s ease, transform 0.2s var(--ease-out);
}

.property-gallery-link:hover { opacity: 0.82; transform: scale(0.97); }

.property-gallery-link img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  display: block;
}

.property-sidebar-card h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.044em;
  white-space: pre-line;
  color: var(--text);
}

.property-detail-line { margin-top: 14px; color: var(--text-dim); line-height: 1.65; font-size: 0.94rem; }

.property-detail-price {
  margin-top: 16px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.property-description { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }

.property-description h2,
.property-contact-box h3 { margin-bottom: 10px; font-size: 1.1rem; font-weight: 700; color: var(--text); }

.property-description p,
.property-contact-box p { color: var(--text-dim); line-height: 1.78; }

.property-contact-box {
  margin-top: 24px;
  padding: 20px;
  border-radius: var(--r-md);
  background: var(--accent-2);
  border: 1px solid var(--line-accent);
}

.property-features-block { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }

.property-features-block h3 { margin: 0 0 14px; font-size: 1.06rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }

.property-features-list { display: grid; gap: 10px; }

.property-feature-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--bg);
  border: 1.5px solid var(--line);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s var(--ease-out);
}

.property-feature-row:hover {
  border-color: var(--line-accent);
  background: var(--accent-2);
  transform: translateX(3px);
}

.property-feature-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--accent-2);
  border: 1px solid var(--line-accent);
  font-size: 17px;
  flex-shrink: 0;
}

.property-feature-icon svg { width: 20px; height: 20px; }
.property-feature-text { min-width: 0; }

.property-feature-label {
  font-size: 0.70rem;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.property-feature-value { font-weight: 700; line-height: 1.45; word-break: break-word; color: var(--text); font-size: 0.94rem; }

.property-feature-map-link {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-3);
  text-underline-offset: 3px;
}

.property-stats-wrap { margin-top: -24px; margin-bottom: 32px; display: flex; justify-content: center; }

/* ─── Scroll Reveal Animations ───────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.60s var(--ease-out), transform 0.60s var(--ease-out);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.07s; }
.reveal-delay-2 { transition-delay: 0.14s; }
.reveal-delay-3 { transition-delay: 0.21s; }
.reveal-delay-4 { transition-delay: 0.28s; }

/* ─── Responsive ─────────────────────────────────── */
@media (min-width: 600px) {
  .container { width: min(calc(100% - 48px), var(--container)); }
  .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .stats-strip-grid { grid-template-columns: repeat(4, 1fr); }
  .sstat { border-bottom: none; }
  .sstat:nth-child(2n) { border-right: 1px solid rgba(255,255,255,0.07); }
  .sstat:nth-child(4n) { border-right: none; }
}

@media (min-width: 768px) {
  .nav { display: flex; }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    min-height: 640px;
  }

  .hero-content {
    padding: 80px 72px 72px;
    justify-content: center;
  }

  .hero-content::before { top: 72px; bottom: 72px; }

  .hero-visual { min-height: 100%; }

  .realtor-card {
    grid-template-columns: 1.2fr 0.8fr;
    padding: 52px 44px;
  }

  .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .modal-header { padding: 20px 22px 14px; }
  .gallery-thumbs { padding: 14px 16px 16px; }
}

@media (min-width: 1024px) {
  .property-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-copy { font-size: 1.06rem; }
}

@media (max-width: 980px) { .property-layout { grid-template-columns: 1fr; } }

@media (max-width: 600px) {
  .brand-logo { height: 42px; }
  .header-cta { padding: 0 14px; min-height: 38px; font-size: 0.83rem; }
  .sstat { padding: 28px 16px; }
  .sp-ring-3 { display: none; }
}

@media (max-width: 480px) {
  .header-inner { min-height: 66px; gap: 10px; }
  .brand-logo { height: 38px; }
  .header-cta { padding: 0 12px; min-height: 36px; font-size: 0.82rem; }
  .property-feature-row { grid-template-columns: 36px 1fr; }
  .property-feature-icon { width: 36px; height: 36px; border-radius: 9px; }
}

/* ─── Footer layout overrides ────────────────────── */
.site-footer .footer-inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  text-align: center;
}

.site-footer .site-stats { align-self: center !important; }
