/* ========== DESIGN TOKENS ========== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
  --primary-900: #0a1628;
  --primary-800: #0f2240;
  --primary-700: #162d50;
  --primary-600: #1e3a5f;
  --primary-500: #2563eb;
  --accent-500: #d4a853;
  --accent-400: #e5be73;
  --accent-300: #f0d49b;
  --neutral-50: #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-200: #e2e8f0;
  --neutral-300: #cbd5e1;
  --neutral-400: #94a3b8;
  --neutral-500: #64748b;
  --neutral-600: #475569;
  --neutral-700: #334155;
  --neutral-800: #1e293b;
  --neutral-900: #0f172a;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --white: #ffffff;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 64px rgba(0,0,0,0.16);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--neutral-800);
  background: var(--neutral-50);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; color: var(--primary-900); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
.text-accent { color: var(--accent-500); }
.text-muted { color: var(--neutral-500); }

/* ========== LAYOUT ========== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ========== HEADER ========== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}
.header.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--white); }
.logo span { color: var(--accent-500); }
.header.scrolled .logo { color: var(--primary-900); }

.nav { display: flex; gap: 32px; align-items: center; }
.nav a {
  color: rgba(255,255,255,0.85);
  font-weight: 500; font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}
.nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--accent-500);
  transition: var(--transition);
}
.nav a:hover { color: var(--white); }
.nav a:hover::after { width: 100%; }
.header.scrolled .nav a { color: var(--neutral-700); }
.header.scrolled .nav a:hover { color: var(--primary-900); }

/* Language Switcher */
.lang-switcher {
  display: flex; gap: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 8px; padding: 4px;
}
.lang-switcher button {
  padding: 4px 10px; border-radius: 6px;
  font-size: 0.8rem; font-weight: 600;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}
.lang-switcher button.active,
.lang-switcher button:hover {
  background: var(--accent-500);
  color: var(--white);
}
.header.scrolled .lang-switcher { background: var(--neutral-100); }
.header.scrolled .lang-switcher button { color: var(--neutral-500); }

/* Mobile Menu */
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.menu-toggle span { width: 24px; height: 2px; background: var(--white); transition: var(--transition); border-radius: 2px; }
.header.scrolled .menu-toggle span { background: var(--primary-900); }

/* ========== HERO ========== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.35;
  transition: transform 8s ease;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,0.6) 0%, rgba(10,22,40,0.8) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; max-width: 800px; padding: 0 24px;
}
.hero h1 { color: var(--white); margin-bottom: 16px; }
.hero p { color: rgba(255,255,255,0.8); font-size: 1.15rem; margin-bottom: 40px; }

/* AI Search Box */
.search-box {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 8px;
  max-width: 640px; margin: 0 auto;
}
.search-inner {
  display: flex; gap: 8px;
}
.search-box input {
  flex: 1; padding: 16px 20px;
  background: rgba(255,255,255,0.1);
  border: none; border-radius: var(--radius-md);
  color: var(--white); font-size: 1rem;
  outline: none;
}
.search-box input::placeholder { color: rgba(255,255,255,0.5); }
.search-box input:focus { background: rgba(255,255,255,0.18); }
.btn-search {
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--accent-500), var(--accent-400));
  color: var(--white); font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-search:hover { transform: scale(1.03); box-shadow: 0 4px 20px rgba(212,168,83,0.4); }

.search-tags { display: flex; gap: 8px; margin-top: 16px; justify-content: center; flex-wrap: wrap; }
.search-tags span {
  padding: 6px 14px; border-radius: 20px;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7);
  font-size: 0.85rem; cursor: pointer; transition: var(--transition);
}
.search-tags span:hover { background: rgba(255,255,255,0.2); color: var(--white); }

/* Hero Stats */
.hero-stats {
  display: flex; gap: 48px; justify-content: center;
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat { text-align: center; }
.hero-stat .number { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--accent-500); }
.hero-stat .label { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-md);
  font-weight: 600; font-size: 0.95rem;
  transition: var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary-800), var(--primary-600));
  color: var(--white);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-accent {
  background: linear-gradient(135deg, var(--accent-500), var(--accent-400));
  color: var(--white);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(212,168,83,0.4); }
.btn-outline {
  border: 2px solid var(--neutral-200); color: var(--neutral-700);
  background: transparent;
}
.btn-outline:hover { border-color: var(--primary-500); color: var(--primary-500); }

/* ========== LISTING CARDS ========== */
.listing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.listing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}
.listing-card-img {
  position: relative; height: 240px; overflow: hidden;
}
.listing-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.listing-card:hover .listing-card-img img { transform: scale(1.08); }

.listing-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 6px 14px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-sale { background: var(--primary-500); color: var(--white); }
.badge-rent { background: var(--success); color: var(--white); }

.listing-favorite {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); cursor: pointer;
}
.listing-favorite:hover { background: var(--error); color: var(--white); transform: scale(1.15); }
.listing-favorite svg { width: 18px; height: 18px; }

.listing-img-count {
  position: absolute; bottom: 12px; right: 12px;
  padding: 4px 10px; border-radius: 6px;
  background: rgba(0,0,0,0.6); color: var(--white);
  font-size: 0.8rem; display: flex; align-items: center; gap: 4px;
}

.listing-card-body { padding: 20px; }
.listing-price {
  font-family: var(--font-heading); font-size: 1.5rem;
  font-weight: 700; color: var(--primary-900);
}
.listing-price small { font-size: 0.85rem; color: var(--neutral-400); font-weight: 400; font-family: var(--font-body); }
.listing-title {
  font-size: 1.05rem; font-weight: 600; color: var(--neutral-800);
  margin: 8px 0 4px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.listing-location {
  font-size: 0.9rem; color: var(--neutral-500);
  display: flex; align-items: center; gap: 4px; margin-bottom: 16px;
}
.listing-features {
  display: flex; gap: 16px;
  padding-top: 16px; border-top: 1px solid var(--neutral-100);
}
.listing-feature {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.85rem; color: var(--neutral-600);
}
.listing-feature svg { width: 16px; height: 16px; color: var(--neutral-400); }

/* ========== SECTION HEADERS ========== */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header p { color: var(--neutral-500); font-size: 1.05rem; margin-top: 8px; max-width: 600px; margin-inline: auto; }
.section-label {
  display: inline-block; padding: 6px 16px;
  background: rgba(37,99,235,0.08); color: var(--primary-500);
  border-radius: 20px; font-size: 0.85rem; font-weight: 600;
  margin-bottom: 12px;
}

/* ========== CATEGORIES ========== */
.category-card {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; height: 200px; cursor: pointer;
}
.category-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.category-card:hover img { transform: scale(1.1); }
.category-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px;
}
.category-card h3 { color: var(--white); font-size: 1.15rem; }
.category-card span { color: rgba(255,255,255,0.7); font-size: 0.85rem; }

/* ========== STATS SECTION ========== */
.stats-section {
  background: linear-gradient(135deg, var(--primary-900), var(--primary-700));
  padding: 60px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-item .stat-number {
  font-family: var(--font-heading); font-size: 2.5rem;
  font-weight: 700; color: var(--accent-500);
}
.stat-item .stat-label { color: rgba(255,255,255,0.7); font-size: 0.95rem; margin-top: 4px; }

/* ========== CTA ========== */
.cta-section {
  background: linear-gradient(135deg, var(--accent-500), var(--accent-400));
  border-radius: var(--radius-xl); padding: 60px; text-align: center;
  margin: 0 24px;
}
.cta-section h2 { color: var(--white); }
.cta-section p { color: rgba(255,255,255,0.85); margin: 12px 0 28px; }

/* ========== FOOTER ========== */
.footer {
  background: var(--primary-900); color: rgba(255,255,255,0.7);
  padding: 60px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: var(--white); font-size: 1.1rem; margin-bottom: 20px; }
.footer a { color: rgba(255,255,255,0.6); transition: var(--transition); display: block; margin-bottom: 10px; font-size: 0.9rem; }
.footer a:hover { color: var(--accent-500); }
.footer-brand p { font-size: 0.9rem; margin-top: 12px; line-height: 1.7; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; font-size: 0.85rem;
}

/* ========== LIGHTBOX GALLERY ========== */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lb-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.96);
  backdrop-filter: blur(4px);
}
.lb-content {
  position: absolute; inset: 60px 80px 100px;
  display: flex; align-items: center; justify-content: center;
  cursor: default;
}
.lb-content.zoomed { cursor: grab; }
.lb-content.panning { cursor: grabbing !important; }
.lb-img-wrap {
  position: relative; max-width: 100%; max-height: 100%;
  overflow: hidden; border-radius: 6px;
}
.lb-img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 6px;
  user-select: none; -webkit-user-drag: none;
  transform-origin: center center;
  will-change: transform, opacity;
}
.lb-loader {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.lb-spinner {
  width: 44px; height: 44px; border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--accent-500); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Controls */
.lb-controls button {
  position: fixed; z-index: 10000;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: white;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s ease; backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
}
.lb-controls button:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.15);
  transform: scale(1.08);
}
.lb-close { top: 16px; right: 16px; }
.lb-prev {
  top: 50%; left: 20px; transform: translateY(-50%);
  width: 52px; height: 52px;
}
.lb-next {
  top: 50%; right: 20px; transform: translateY(-50%);
  width: 52px; height: 52px;
}
.lb-prev:hover { transform: translateY(-50%) scale(1.1); }
.lb-next:hover { transform: translateY(-50%) scale(1.1); }
.lb-fullscreen { top: 16px; right: 76px; }
.lb-counter {
  position: fixed; top: 22px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6); font-size: 0.9rem;
  font-weight: 500; letter-spacing: 2px;
  z-index: 10000;
}

/* Zoom Controls Bar */
.lb-zoom-controls {
  position: fixed; bottom: 80px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 28px; padding: 6px 8px;
  z-index: 10000;
}
.lb-zoom-controls button {
  position: static !important; width: 36px; height: 36px;
  border-radius: 50%; background: rgba(255,255,255,0.08);
  color: white; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; border: none;
}
.lb-zoom-controls button:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1);
}
.lb-zoom-level {
  color: rgba(255,255,255,0.8); font-size: 0.8rem;
  font-weight: 600; min-width: 48px; text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Thumbnail Bar */
.lb-thumbs {
  position: fixed; bottom: 10px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 10000;
  max-width: 80vw; overflow-x: auto; padding: 10px 12px;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(12px);
  border-radius: 14px; border: 1px solid rgba(255,255,255,0.06);
  scrollbar-width: none;
}
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumb {
  flex-shrink: 0; width: 68px; height: 50px;
  border-radius: 8px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; transition: all 0.3s ease;
  opacity: 0.4; position: relative;
}
.lb-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0.3); transition: 0.3s;
  border-radius: 6px;
}
.lb-thumb.active { border-color: var(--accent-500); opacity: 1; transform: scale(1.05); }
.lb-thumb.active::after { background: transparent; }
.lb-thumb:hover { opacity: 0.8; }
.lb-thumb:hover::after { background: rgba(0,0,0,0.1); }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 768px) {
  .lb-content { inset: 50px 10px 110px; }
  .lb-prev { left: 8px; width: 40px; height: 40px; }
  .lb-next { right: 8px; width: 40px; height: 40px; }
  .lb-zoom-controls { bottom: 70px; padding: 4px 6px; }
  .lb-zoom-controls button { width: 32px; height: 32px; }
  .lb-thumb { width: 52px; height: 38px; }
}

/* ========== DETAIL PAGE ========== */
.detail-header { padding-top: 80px; }
.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  padding: 16px 0; font-size: 0.9rem; color: var(--neutral-500);
}
.breadcrumb a { color: var(--neutral-500); transition: var(--transition); }
.breadcrumb a:hover { color: var(--primary-500); }
.breadcrumb span { color: var(--neutral-300); }

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 250px 250px;
  gap: 6px; border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer;
}
.gallery-grid .gallery-main { grid-row: 1 / -1; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; }
.gallery-grid div:hover img { transform: scale(1.03); }
.gallery-grid div { overflow: hidden; position: relative; }
.gallery-more {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 600;
}

/* Detail Layout */
.detail-body { display: grid; grid-template-columns: 1fr 380px; gap: 32px; padding: 32px 0; }
.detail-main {}
.detail-sidebar {}

/* Info Card */
.info-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm); margin-bottom: 24px;
}
.info-card h3 { margin-bottom: 16px; font-size: 1.2rem; }

/* Detail Price */
.detail-price-tag {
  font-family: var(--font-heading); font-size: 2rem;
  font-weight: 700; color: var(--primary-900);
}

/* Specs Grid */
.specs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.spec-item {
  text-align: center; padding: 16px;
  background: var(--neutral-50); border-radius: var(--radius-md);
}
.spec-item .spec-icon { font-size: 1.5rem; margin-bottom: 6px; }
.spec-item .spec-value { font-weight: 700; font-size: 1.1rem; color: var(--primary-900); }
.spec-item .spec-label { font-size: 0.8rem; color: var(--neutral-500); margin-top: 2px; }

/* Agent Card */
.agent-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-md);
  position: sticky; top: 100px;
}
.agent-info { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.agent-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 1.2rem;
}
.agent-name { font-weight: 600; color: var(--primary-900); }
.agent-title { font-size: 0.85rem; color: var(--neutral-500); }
.agent-card .btn { width: 100%; justify-content: center; margin-bottom: 10px; }

/* Feature Tags */
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-tag {
  padding: 8px 16px; border-radius: 8px;
  background: var(--neutral-50); border: 1px solid var(--neutral-200);
  font-size: 0.85rem; color: var(--neutral-700);
  display: flex; align-items: center; gap: 6px;
}

/* ========== CALLBACK MODAL (Beni Arayın) ========== */
.callback-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-500), var(--accent-400));
  color: var(--white); font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(212,168,83,0.4);
  transition: var(--transition); cursor: pointer;
  animation: fabPulse 2s infinite;
}
.callback-fab:hover { transform: scale(1.1); box-shadow: 0 6px 32px rgba(212,168,83,0.5); }
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(212,168,83,0.4); }
  50% { box-shadow: 0 4px 32px rgba(212,168,83,0.6); }
}
.callback-fab-label {
  position: absolute; right: 72px; white-space: nowrap;
  background: var(--white); color: var(--primary-900);
  padding: 8px 16px; border-radius: 8px; font-size: 0.85rem; font-weight: 600;
  box-shadow: var(--shadow-md); pointer-events: none;
  opacity: 0; transform: translateX(8px);
  transition: var(--transition);
}
.callback-fab:hover .callback-fab-label { opacity: 1; transform: translateX(0); }

.callback-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: 0.3s;
}
.callback-overlay.active { opacity: 1; visibility: visible; }
.callback-modal {
  background: var(--white); border-radius: var(--radius-xl);
  padding: 36px; max-width: 440px; width: 90%;
  box-shadow: var(--shadow-xl); position: relative;
  transform: translateY(20px); transition: 0.3s;
}
.callback-overlay.active .callback-modal { transform: translateY(0); }
.callback-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--neutral-400); transition: var(--transition);
}
.callback-modal-close:hover { background: var(--neutral-100); color: var(--neutral-700); }
.callback-modal h3 { font-size: 1.3rem; margin-bottom: 4px; }
.callback-modal .modal-subtitle { color: var(--neutral-500); font-size: 0.9rem; margin-bottom: 24px; }
.callback-modal .form-group { margin-bottom: 16px; }
.callback-modal .form-group label {
  display: block; font-weight: 600; font-size: 0.8rem;
  color: var(--neutral-700); margin-bottom: 6px; text-transform: uppercase;
}
.callback-modal input, .callback-modal select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--neutral-200);
  border-radius: var(--radius-sm); font-size: 0.9rem; color: var(--neutral-800);
  background: var(--neutral-50); outline: none; transition: var(--transition);
}
.callback-modal input:focus, .callback-modal select:focus {
  border-color: var(--primary-500); box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.callback-modal .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.callback-modal .btn-submit {
  width: 100%; padding: 13px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-500), var(--accent-400));
  color: var(--white); font-weight: 600; font-size: 1rem;
  transition: var(--transition); margin-top: 8px;
}
.callback-modal .btn-submit:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(212,168,83,0.4); }
.callback-success {
  text-align: center; padding: 20px 0;
}
.callback-success .success-icon { font-size: 3rem; margin-bottom: 12px; }
.callback-success h4 { color: var(--success); margin-bottom: 8px; }
.callback-success p { color: var(--neutral-500); font-size: 0.9rem; }

/* ========== HOW IT WORKS ========== */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
.steps-grid::before {
  content: ''; position: absolute; top: 48px; left: 15%; right: 15%; height: 2px;
  background: linear-gradient(90deg, var(--neutral-200), var(--accent-400), var(--neutral-200));
  z-index: 0;
}
.step-card {
  text-align: center; position: relative; z-index: 1;
  background: var(--white); border-radius: var(--radius-lg); padding: 36px 24px;
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step-num {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary-800), var(--primary-600));
  color: var(--white); font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step-card:hover .step-num { background: linear-gradient(135deg, var(--accent-500), var(--accent-400)); }
.step-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step-card p { color: var(--neutral-500); font-size: 0.9rem; line-height: 1.6; }

/* ========== POPULAR CITIES ========== */
.cities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.city-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  height: 280px; cursor: pointer;
}
.cities-grid .city-card:first-child { grid-column: 1 / 3; }
.city-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.city-card:hover img { transform: scale(1.08); }
.city-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.2) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
  transition: var(--transition);
}
.city-card:hover .city-overlay { background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.15) 50%); }
.city-overlay h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 4px; }
.city-overlay .city-count {
  color: var(--accent-400); font-weight: 600; font-size: 0.9rem;
  display: flex; align-items: center; gap: 6px;
}
.city-overlay .city-arrow {
  position: absolute; top: 20px; right: 20px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); opacity: 0; transform: translateX(-8px);
  transition: var(--transition);
}
.city-card:hover .city-arrow { opacity: 1; transform: translateX(0); }

/* ========== SHOWCASE PROJECT ========== */
.showcase {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  display: grid; grid-template-columns: 1.2fr 1fr; min-height: 420px;
}
.showcase-img { position: relative; overflow: hidden; }
.showcase-img img { width: 100%; height: 100%; object-fit: cover; }
.showcase-badge {
  position: absolute; top: 20px; left: 20px;
  padding: 8px 18px; border-radius: 8px; font-size: 0.8rem; font-weight: 700;
  background: var(--accent-500); color: var(--white); text-transform: uppercase;
  letter-spacing: 1px;
}
.showcase-body {
  background: linear-gradient(160deg, var(--primary-900), var(--primary-700));
  padding: 48px 40px; display: flex; flex-direction: column; justify-content: center;
}
.showcase-body .sc-label {
  color: var(--accent-400); font-size: 0.85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px;
}
.showcase-body h2 { color: var(--white); font-size: 1.8rem; margin-bottom: 12px; }
.showcase-body .sc-location {
  color: rgba(255,255,255,0.6); font-size: 0.95rem;
  display: flex; align-items: center; gap: 6px; margin-bottom: 24px;
}
.showcase-specs {
  display: flex; gap: 20px; margin-bottom: 28px;
  padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.12);
}
.showcase-spec { text-align: center; }
.showcase-spec .sc-val { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: var(--accent-500); }
.showcase-spec .sc-lbl { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 2px; }
.showcase-price {
  font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--white);
  margin-bottom: 20px;
}
.showcase-price small { font-size: 0.85rem; color: rgba(255,255,255,0.5); font-weight: 400; font-family: var(--font-body); }
.showcase-actions { display: flex; gap: 12px; }

/* ========== NEIGHBORHOODS ========== */
.hood-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hood-chip {
  padding: 10px 22px; border-radius: 30px;
  border: 1.5px solid var(--neutral-200); background: var(--white);
  font-size: 0.9rem; font-weight: 500; color: var(--neutral-700);
  transition: var(--transition); cursor: pointer;
  display: flex; align-items: center; gap: 6px;
}
.hood-chip:hover { border-color: var(--primary-500); color: var(--primary-500); background: rgba(37,99,235,0.04); transform: translateY(-2px); }
.hood-chip .chip-count { font-size: 0.75rem; color: var(--neutral-400); font-weight: 400; }

/* ========== SCROLL ANIMATIONS ========== */
.reveal { opacity: 0; transform: translateY(30px); transition: var(--transition-slow); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ========== RESPONSIVE ========== */

/* --- TABLET (1024px) --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  /* Detail page: sidebar narrows */
  .detail-body { grid-template-columns: 1fr 320px; gap: 24px; }

  /* Gallery grid: reduce heights */
  .gallery-grid { grid-template-rows: 220px 220px; }

  /* Specs grid: keep 3 on tablet */
  .specs-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}

/* --- MOBILE (768px) --- */
@media (max-width: 768px) {

  /* === GLOBAL === */
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }

  /* === HEADER / NAV === */
  .header { padding: 12px 0; }
  .header.scrolled { padding: 8px 0; }
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); padding: 20px 16px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 16px 16px;
    z-index: 999;
  }
  .nav.open a { color: var(--neutral-700); padding: 12px 0; border-bottom: 1px solid var(--neutral-100); }
  .nav.open a:last-child { border-bottom: none; }
  .lang-switcher { display: none; }
  .logo { font-size: 1.3rem; }

  /* === HERO === */
  .hero { min-height: 85vh; }
  .hero-content { padding: 0 16px; }
  .hero h1 { font-size: 1.7rem; margin-bottom: 12px; }
  .hero p { font-size: 0.95rem; margin-bottom: 28px; }
  .hero-stats { flex-direction: row; gap: 20px; flex-wrap: wrap; justify-content: center; }
  .hero-stat .number { font-size: 1.5rem; }
  .hero-stat .label { font-size: 0.75rem; }
  .search-inner { flex-direction: column; }
  .search-box input { padding: 14px 16px; font-size: 0.9rem; }
  .btn-search { padding: 14px 20px; }
  .search-tags { gap: 6px; }
  .search-tags span { font-size: 0.75rem; padding: 5px 10px; }

  /* === GRIDS === */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* === LISTING CARDS === */
  .listing-card-img { height: 200px; }
  .listing-card-body { padding: 16px; }
  .listing-price { font-size: 1.25rem; }
  .listing-title { font-size: 0.95rem; }
  .listing-features { gap: 12px; flex-wrap: wrap; }

  /* === CATEGORY CARDS === */
  .category-card { height: 160px; }

  /* === BREADCRUMB === */
  .breadcrumb {
    overflow-x: auto; white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding: 12px 0;
    font-size: 0.8rem;
  }
  .breadcrumb::-webkit-scrollbar { display: none; }

  /* === DETAIL PAGE — GALLERY === */
  .detail-header { padding-top: 64px; }
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 240px;
    gap: 4px;
  }
  .gallery-grid .gallery-main { grid-row: auto; }
  /* Hide small gallery images on mobile, show only main + more overlay */
  .gallery-grid > div:nth-child(n+3) { display: none; }
  .gallery-grid > div:nth-child(2) { height: 120px; }
  .gallery-grid > div:nth-child(2) .gallery-more { display: flex; }

  /* === DETAIL PAGE — BODY === */
  .detail-body {
    grid-template-columns: 1fr !important;
    gap: 20px; padding: 20px 0;
  }

  /* === DETAIL PAGE — SIDEBAR === */
  .agent-card {
    position: static !important;
    top: auto !important;
  }

  /* === DETAIL PAGE — PRICE & TITLE === */
  .detail-price-tag { font-size: 1.5rem; }
  .info-card { padding: 20px; margin-bottom: 16px; }
  .info-card h1 { font-size: 1.25rem !important; }
  .info-card h3 { font-size: 1.05rem; }

  /* === SPECS GRID === */
  .specs-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .spec-item { padding: 12px 8px; }
  .spec-item .spec-icon { font-size: 1.2rem; }
  .spec-item .spec-value { font-size: 0.95rem; }
  .spec-item .spec-label { font-size: 0.72rem; }

  /* === FEATURE TAGS === */
  .feature-tags { gap: 6px; }
  .feature-tag { padding: 6px 12px; font-size: 0.78rem; }

  /* === AGENT CARD (SIDEBAR) === */
  .agent-card { padding: 20px; border-radius: 12px; }
  .agent-avatar { width: 48px; height: 48px; font-size: 1rem; }
  .agent-card .btn { padding: 12px; font-size: 0.9rem; }

  /* === STATS === */
  .stats-section { padding: 40px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-item .stat-number { font-size: 1.8rem; }
  .stat-item .stat-label { font-size: 0.8rem; }

  /* === CTA === */
  .cta-section { padding: 36px 20px; margin: 0 8px; border-radius: 16px; }
  .cta-section h2 { font-size: 1.2rem; }
  .cta-section p { font-size: 0.9rem; }

  /* === FOOTER === */
  .footer { padding: 40px 0 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer h4 { margin-bottom: 12px; font-size: 1rem; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; font-size: 0.8rem; }

  /* === LIGHTBOX === */
  .lb-content { inset: 50px 8px 110px; }
  .lb-prev { left: 6px; width: 38px; height: 38px; }
  .lb-next { right: 6px; width: 38px; height: 38px; }
  .lb-zoom-controls { bottom: 68px; padding: 4px 6px; gap: 2px; }
  .lb-zoom-controls button { width: 30px; height: 30px; }
  .lb-zoom-level { font-size: 0.7rem; min-width: 40px; }
  .lb-thumb { width: 48px; height: 36px; }
  .lb-thumbs { gap: 4px; padding: 8px; border-radius: 10px; }
  .lb-counter { font-size: 0.8rem; }
  .lb-close { top: 10px; right: 10px; width: 40px; height: 40px; }
  .lb-fullscreen { top: 10px; right: 60px; width: 40px; height: 40px; }

  /* === CALLBACK FAB === */
  .callback-fab { width: 52px; height: 52px; bottom: 20px; right: 16px; font-size: 1.2rem; }
  .callback-fab-label { display: none; }
  .callback-modal { padding: 28px 20px; max-width: 95%; }
  .callback-modal h3 { font-size: 1.1rem; }
  .callback-modal .form-row { grid-template-columns: 1fr; }

  /* === SIMILAR LISTINGS (detail page bottom) === */
  .section .grid.grid-3 { grid-template-columns: 1fr; }

  /* === STEPS === */
  .steps-grid { grid-template-columns: 1fr; gap: 20px; }
  .steps-grid::before { display: none; }
  .step-card { padding: 28px 20px; }

  /* === CITIES === */
  .cities-grid { grid-template-columns: 1fr; }
  .cities-grid .city-card:first-child { grid-column: auto; }
  .city-card { height: 200px; }

  /* === SHOWCASE === */
  .showcase { grid-template-columns: 1fr; min-height: auto; }
  .showcase-img { height: 240px; }
  .showcase-body { padding: 32px 24px; }
  .showcase-body h2 { font-size: 1.3rem; }
  .showcase-price { font-size: 1.5rem; }
  .showcase-specs { flex-wrap: wrap; gap: 16px; }
  .showcase-actions { flex-direction: column; }
  .showcase-actions .btn { justify-content: center; }

  /* === NEIGHBORHOODS === */
  .hood-chip { padding: 8px 16px; font-size: 0.82rem; }
}

/* --- SMALL MOBILE (480px) --- */
@media (max-width: 480px) {
  .container { padding: 0 12px; }
  h1 { font-size: 1.4rem; }
  .hero { min-height: 80vh; }
  .hero h1 { font-size: 1.45rem; }
  .gallery-grid { grid-template-rows: 200px; }
  .gallery-grid > div:nth-child(n+2) { display: none; }
  .detail-price-tag { font-size: 1.3rem; }
  .specs-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .spec-item { padding: 10px 6px; }
  .listing-card-img { height: 180px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero-stats { gap: 12px; }
  .btn { padding: 10px 20px; font-size: 0.9rem; }
  .flex-between { flex-wrap: wrap; gap: 8px; }
  .city-card { height: 170px; }
  .showcase-body { padding: 24px 16px; }
}
