/* ============================================
   EstateVue - Premium Creative Real Estate UI
   Glassmorphism | 3D Cards | Gradient Mesh | Particles
   ============================================ */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --primary-glow: rgba(99,102,241,0.35);
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --accent-glow: rgba(245,158,11,0.3);
  --emerald: #10b981;
  --rose: #f43f5e;
  --cyan: #06b6d4;
  --violet: #8b5cf6;
  --bg: #fafbff;
  --bg-secondary: #f1f4fb;
  --bg-card: #ffffff;
  --bg-glass: rgba(255,255,255,0.55);
  --bg-glass-strong: rgba(255,255,255,0.78);
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: rgba(148,163,184,0.18);
  --border-glow: rgba(99,102,241,0.2);
  --shadow: 0 2px 12px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.08);
  --shadow-xl: 0 30px 70px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 30px var(--primary-glow);
  --shadow-gold: 0 0 25px var(--accent-glow);
  --radius: 24px;
  --radius-sm: 16px;
  --radius-xs: 12px;
  --radius-full: 9999px;
  --nav-height: 66px;
  --bottom-nav-height: 80px;
  --gradient-mesh: 
    radial-gradient(ellipse at 15% 10%, rgba(99,102,241,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 85%, rgba(245,158,11,0.07) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 50%, rgba(6,182,212,0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 20%, rgba(139,92,246,0.06) 0%, transparent 40%);
  --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
}

[data-theme="dark"] {
  --primary: #818cf8;
  --primary-dark: #6366f1;
  --primary-glow: rgba(129,140,248,0.25);
  --accent: #fbbf24;
  --accent-glow: rgba(251,191,36,0.2);
  --bg: #06080f;
  --bg-secondary: #0d1117;
  --bg-card: rgba(13,17,23,0.85);
  --bg-glass: rgba(13,17,23,0.45);
  --bg-glass-strong: rgba(13,17,23,0.75);
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(148,163,184,0.08);
  --border-glow: rgba(129,140,248,0.15);
  --shadow: 0 2px 12px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.5);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.6);
  --shadow-xl: 0 30px 70px rgba(0,0,0,0.7);
  --gradient-mesh: 
    radial-gradient(ellipse at 15% 10%, rgba(99,102,241,0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 85%, rgba(245,158,11,0.08) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 50%, rgba(6,182,212,0.07) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 80%, rgba(139,92,246,0.08) 0%, transparent 40%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100dvh;
}

#app {
  min-height: 100dvh;
  background: var(--gradient-mesh);
  background-attachment: fixed;
  position: relative;
}
#app::before {
  content: '';
  position: fixed; inset: 0;
  background-image: var(--noise);
  background-repeat: repeat;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--primary), var(--accent)); border-radius: 10px; }

/* ========================================
   KEYFRAME ANIMATIONS  
   ======================================== */
@keyframes fadeIn { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInLeft { from { opacity:0; transform:translateX(-30px); } to { opacity:1; transform:translateX(0); } }
@keyframes fadeInRight { from { opacity:0; transform:translateX(30px); } to { opacity:1; transform:translateX(0); } }
@keyframes slideUp { from { opacity:0; transform:translateY(50px); } to { opacity:1; transform:translateY(0); } }
@keyframes slideDown { from { opacity:0; transform:translateY(-25px); } to { opacity:1; transform:translateY(0); } }
@keyframes scaleIn { from { opacity:0; transform:scale(0.85); } to { opacity:1; transform:scale(1); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-10px); } }
@keyframes float2 { 0%,100% { transform:translateY(0) rotate(0deg); } 50% { transform:translateY(-14px) rotate(3deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes glow-pulse { 0%,100% { box-shadow: 0 0 20px var(--primary-glow); } 50% { box-shadow: 0 0 50px var(--primary-glow), 0 0 80px rgba(99,102,241,0.1); } }
@keyframes gradient-shift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes morph { 0%,100% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; } 34% { border-radius: 70% 30% 46% 54% / 30% 29% 71% 70%; } 67% { border-radius: 30% 70% 70% 30% / 58% 42% 58% 42%; } }
@keyframes counter-up { from { opacity:0; transform: translateY(14px); } to { opacity:1; transform: translateY(0); } }
@keyframes blob { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(30px,-50px) scale(1.1); } 66% { transform: translate(-20px,20px) scale(0.9); } }
@keyframes bounce-soft { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes rotate-slow { to { transform: rotate(360deg); } }
@keyframes text-shimmer { 0% { background-position: -100% 0; } 100% { background-position: 200% 0; } }
@keyframes pulse-ring { 0% { transform: scale(0.9); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes orbit { 0% { transform: rotate(0deg) translateX(60px) rotate(0deg); } 100% { transform: rotate(360deg) translateX(60px) rotate(-360deg); } }
@keyframes tilt-card { 0%,100% { transform: perspective(1000px) rotateY(0deg); } 50% { transform: perspective(1000px) rotateY(2deg); } }
@keyframes draw-line { from { stroke-dashoffset: 300; } to { stroke-dashoffset: 0; } }
@keyframes ripple { 0% { transform: scale(0); opacity: 0.6; } 100% { transform: scale(4); opacity: 0; } }
@keyframes typewriter { from { width: 0; } to { width: 100%; } }
@keyframes blink-caret { from, to { border-color: transparent; } 50% { border-color: var(--primary); } }
@keyframes levitate { 0% { transform: translateY(0) rotate(0deg); } 33% { transform: translateY(-5px) rotate(1deg); } 66% { transform: translateY(3px) rotate(-1deg); } 100% { transform: translateY(0) rotate(0deg); } }
@keyframes aurora { 0% { background-position: 0% 50%; } 25% { background-position: 50% 100%; } 50% { background-position: 100% 50%; } 75% { background-position: 50% 0%; } 100% { background-position: 0% 50%; } }

.animate-fade { animation: fadeIn 0.6s cubic-bezier(0.22,1,0.36,1) both; }
.animate-fade-left { animation: fadeInLeft 0.6s cubic-bezier(0.22,1,0.36,1) both; }
.animate-fade-right { animation: fadeInRight 0.6s cubic-bezier(0.22,1,0.36,1) both; }
.animate-slide-up { animation: slideUp 0.7s cubic-bezier(0.22,1,0.36,1) both; }
.animate-scale { animation: scaleIn 0.5s cubic-bezier(0.22,1,0.36,1) both; }
.animate-float { animation: float 5s ease-in-out infinite; }
.animate-levitate { animation: levitate 6s ease-in-out infinite; }

/* ========================================
   SKELETON LOADING  
   ======================================== */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, rgba(148,163,184,0.06) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

/* ========================================
   PARTICLE CANVAS  
   ======================================== */
.particle-canvas {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  opacity: 0.5;
}

/* ========================================
   TOP NAVIGATION - Floating Glass Bar 
   ======================================== */
.top-nav {
  position: fixed; top: 8px; left: 12px; right: 12px;
  height: var(--nav-height);
  z-index: 100; display: flex; align-items: center; padding: 0 22px;
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  background: var(--bg-glass-strong);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(255,255,255,0.05);
  transition: all 0.5s cubic-bezier(0.22,1,0.36,1);
}
.top-nav.scrolled {
  top: 4px;
  box-shadow: var(--shadow-lg);
}
[data-theme="dark"] .top-nav { background: rgba(6,8,15,0.7); }

.top-nav .logo {
  font-size: 22px; font-weight: 900; cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--emerald));
  background-size: 300% 300%;
  animation: gradient-shift 5s ease infinite;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
  position: relative;
}
.top-nav .logo::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.22,1,0.36,1);
}
.top-nav .logo:hover::after { width: 100%; }

/* ========================================
   BOTTOM NAVIGATION - Floating Dock  
   ======================================== */
.bottom-nav {
  position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%);
  height: var(--bottom-nav-height);
  min-width: 320px; max-width: 420px; width: calc(100% - 40px);
  display: flex; align-items: center; justify-content: space-around;
  z-index: 100; padding: 0 8px;
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  background: var(--bg-glass-strong);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.05);
  transition: all 0.4s;
}
[data-theme="dark"] .bottom-nav { background: rgba(6,8,15,0.75); }

.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 700; color: var(--text-muted);
  cursor: pointer; padding: 10px 20px; border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
  position: relative; -webkit-tap-highlight-color: transparent;
  letter-spacing: 0.3px;
}
.nav-item.active {
  color: var(--primary);
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(99,102,241,0.04));
}
.nav-item.active::before {
  content: ''; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
  box-shadow: 0 0 8px var(--primary-glow);
}
.nav-item i { font-size: 22px; transition: all 0.3s; }
.nav-item:active { transform: scale(0.85); }
.nav-item:active i { transform: scale(1.2); }
.nav-item .nav-badge {
  position: absolute; top: 4px; right: 12px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 8px rgba(244,63,94,0.5);
}

/* ========================================
   MAIN CONTENT  
   ======================================== */
.main-content {
  padding-top: calc(var(--nav-height) + 22px);
  padding-bottom: calc(var(--bottom-nav-height) + 28px);
  min-height: 100dvh;
  position: relative;
  z-index: 1;
}

/* ========================================
   HERO SECTION - Immersive Experience
   ======================================== */
.hero-section {
  position: relative;
  padding: 30px 22px 24px;
  overflow: hidden;
}

/* Animated orbs */
.hero-bg-orb {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: 0.4; pointer-events: none;
  animation: blob 14s ease-in-out infinite;
}
.hero-bg-orb.orb1 { width: 250px; height: 250px; background: var(--primary); top: -60px; right: -50px; }
.hero-bg-orb.orb2 { width: 180px; height: 180px; background: var(--accent); bottom: -30px; left: -40px; animation-delay: -5s; }
.hero-bg-orb.orb3 { width: 120px; height: 120px; background: var(--cyan); top: 50px; left: 35%; animation-delay: -9s; }
.hero-bg-orb.orb4 { width: 80px; height: 80px; background: var(--violet); bottom: 20px; right: 30%; animation-delay: -3s; }

/* Decorative shapes */
.hero-deco {
  position: absolute; pointer-events: none; opacity: 0.08;
}
.hero-deco.circle-ring {
  width: 200px; height: 200px; border: 2px solid var(--primary);
  border-radius: 50%; top: 10px; right: -60px;
  animation: rotate-slow 30s linear infinite;
}
.hero-deco.grid-dots {
  width: 120px; height: 120px; bottom: 10px; left: 10px;
  background-image: radial-gradient(circle, var(--primary) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
}

.hero-greeting {
  font-size: 14px; color: var(--text-secondary); font-weight: 600;
  margin-bottom: 6px; position: relative;
  display: flex; align-items: center; gap: 8px;
}
.hero-greeting .wave { display: inline-block; animation: float 2s ease-in-out infinite; }

.hero-title {
  font-size: 32px; font-weight: 900; line-height: 1.1;
  letter-spacing: -1.5px; position: relative;
  margin-bottom: 10px;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--cyan));
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  position: relative;
}
.hero-title .highlight::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--cyan));
  border-radius: 3px;
  opacity: 0.4;
}
.hero-subtitle {
  font-size: 14px; color: var(--text-muted); position: relative;
  margin-bottom: 18px; line-height: 1.5;
}

/* ========================================
   STATS BANNER - Glass Morphism Counter
   ======================================== */
.stats-banner {
  display: flex; gap: 6px; margin: 0 22px 18px; padding: 18px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.stats-banner::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(245,158,11,0.04), rgba(6,182,212,0.03));
  pointer-events: none;
}
.stats-banner::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  animation: text-shimmer 4s ease infinite;
  pointer-events: none;
}
.stat-banner-item { flex: 1; text-align: center; position: relative; z-index: 1; }
.stat-banner-item + .stat-banner-item { border-left: 1px solid var(--border); }
.stat-banner-value {
  font-size: 26px; font-weight: 900;
  animation: counter-up 0.8s cubic-bezier(0.22,1,0.36,1) both;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}
.stat-banner-label {
  font-size: 10px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px; margin-top: 3px;
}

/* ========================================
   SEARCH BAR - Premium Floating Search
   ======================================== */
.search-container { padding: 0 22px 14px; position: relative; z-index: 50; }
.search-bar {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full); padding: 14px 22px;
  transition: all 0.5s cubic-bezier(0.22,1,0.36,1);
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.search-bar::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  pointer-events: none;
}
.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow), var(--shadow-md);
  transform: scale(1.015);
}
.search-bar input {
  flex: 1; border: none; background: transparent; outline: none;
  font-size: 15px; color: var(--text); font-family: 'Inter', sans-serif; font-weight: 500;
}
.search-bar input::placeholder { color: var(--text-muted); font-weight: 400; }
.search-bar i { color: var(--text-muted); font-size: 16px; transition: all 0.3s; }
.search-bar:focus-within i.fa-magnifying-glass { color: var(--primary); transform: scale(1.1); }

.filter-btn {
  width: 40px; height: 40px; border-radius: 14px; border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px; transition: all 0.3s; flex-shrink: 0;
  box-shadow: 0 4px 12px var(--primary-glow);
}
.filter-btn:active { transform: scale(0.88) rotate(15deg); }

/* ========================================
   FILTER CHIPS - Creative Tags
   ======================================== */
.filter-chips {
  display: flex; gap: 8px; padding: 8px 22px;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.filter-chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; padding: 10px 20px; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 700; cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  color: var(--text-secondary);
  transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  position: relative; overflow: hidden;
}
.chip::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0; transition: opacity 0.3s;
}
.chip:active { transform: scale(0.92); }
.chip.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; border-color: transparent;
  box-shadow: 0 4px 18px var(--primary-glow);
  transform: scale(1.02);
}
.chip i { margin-right: 5px; position: relative; z-index: 1; }
.chip span { position: relative; z-index: 1; }

/* ========================================
   PROPERTY CARDS - 3D Hover with Glass
   ======================================== */
.property-grid {
  display: grid; grid-template-columns: 1fr; gap: 22px; padding: 14px 22px;
}
@media (min-width: 640px) { .property-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .property-grid { grid-template-columns: repeat(3, 1fr); } }

.property-card {
  background: var(--bg-glass-strong);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.5s cubic-bezier(0.22,1,0.36,1);
  cursor: pointer;
  border: 1px solid var(--border);
  animation: fadeIn 0.6s cubic-bezier(0.22,1,0.36,1) both;
  position: relative;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  transform-style: preserve-3d;
}
.property-card::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(99,102,241,0.08), transparent, rgba(245,158,11,0.05));
  opacity: 0; transition: opacity 0.5s; z-index: 0; pointer-events: none;
}
.property-card::after {
  content: ''; position: absolute; inset: -1px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0; transition: opacity 0.5s; z-index: -1;
  filter: blur(20px);
}
.property-card:hover::before { opacity: 1; }
.property-card:hover::after { opacity: 0.12; }
.property-card:hover {
  transform: perspective(1000px) translateY(-10px) scale(1.015);
  box-shadow: var(--shadow-xl), 0 0 50px rgba(99,102,241,0.06);
  border-color: var(--border-glow);
}
.property-card:active { transform: scale(0.97); }

.card-image-container {
  position: relative; overflow: hidden; aspect-ratio: 16/10;
  background: var(--bg-secondary);
}
.card-image-container img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.property-card:hover .card-image-container img { transform: scale(1.1); }

.card-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.05) 40%, transparent 100%);
  pointer-events: none;
}

.card-badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  color: white;
  padding: 6px 14px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 800; letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.15);
}
.card-badge.featured {
  background: linear-gradient(135deg, var(--accent), #d97706);
  border-color: transparent;
  box-shadow: 0 4px 18px var(--accent-glow);
}

.card-wishlist {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.3s; color: white;
  -webkit-tap-highlight-color: transparent;
}
.card-wishlist:active { transform: scale(0.75); }
.card-wishlist.active {
  background: var(--rose); border-color: transparent;
  box-shadow: 0 4px 20px rgba(244,63,94,0.5);
  animation: bounce-soft 0.5s;
}
.card-wishlist i { font-size: 17px; }

.card-price-overlay {
  position: absolute; bottom: 14px; left: 14px;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(16px);
  padding: 7px 16px; border-radius: var(--radius-full);
  color: white; font-size: 19px; font-weight: 900;
  border: 1px solid rgba(255,255,255,0.1);
  letter-spacing: -0.5px;
}

.card-content { padding: 18px 20px 20px; position: relative; z-index: 1; }
.card-title {
  font-size: 17px; font-weight: 800; color: var(--text);
  margin-bottom: 7px; line-height: 1.3; letter-spacing: -0.3px;
  display: -webkit-box; -webkit-line-clamp: 1;
  -webkit-box-orient: vertical; overflow: hidden;
}
.card-location {
  font-size: 13px; color: var(--text-secondary);
  margin-bottom: 14px; display: flex; align-items: center; gap: 6px;
  font-weight: 500;
}
.card-location i { color: var(--primary); font-size: 12px; }

.card-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.card-meta-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--text-secondary); font-weight: 700;
  padding: 6px 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.property-card:hover .card-meta-item { border-color: var(--border-glow); }
.card-meta-item i { color: var(--primary); font-size: 11px; }

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header {
  padding: 22px 22px 10px; display: flex; align-items: center; justify-content: space-between;
}
.section-title {
  font-size: 22px; font-weight: 900; color: var(--text);
  display: flex; align-items: center; gap: 10px;
  letter-spacing: -0.5px;
}
.section-icon {
  width: 36px; height: 36px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; font-size: 15px;
  box-shadow: var(--shadow);
}
.see-all {
  font-size: 13px; font-weight: 700; color: var(--primary);
  cursor: pointer; display: flex; align-items: center; gap: 5px;
  transition: all 0.3s; padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
}
.see-all:hover { gap: 10px; border-color: var(--border-glow); background: rgba(99,102,241,0.04); }

/* ========================================
   HORIZONTAL SCROLL
   ======================================== */
.horizontal-scroll {
  display: flex; gap: 16px; padding: 12px 22px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  scroll-padding: 22px;
}
.horizontal-scroll::-webkit-scrollbar { display: none; }
.horizontal-scroll .property-card {
  flex-shrink: 0; width: 300px; scroll-snap-align: start;
}

/* ========================================
   DETAIL PAGE - Cinematic Experience
   ======================================== */
.detail-page {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg); z-index: 200; overflow-y: auto;
  animation: slideUp 0.5s cubic-bezier(0.22,1,0.36,1);
  -webkit-overflow-scrolling: touch;
}
.detail-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px;
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  background: var(--bg-glass-strong);
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .detail-header { background: rgba(6,8,15,0.75); }
.detail-header button {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-glass); backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.3s; color: var(--text);
  -webkit-tap-highlight-color: transparent;
}
.detail-header button:active { transform: scale(0.85) rotate(10deg); }
.detail-header button:hover { border-color: var(--primary); box-shadow: var(--shadow-glow); }

/* ========================================
   IMAGE GALLERY
   ======================================== */
.gallery-container {
  position: relative; width: 100%; aspect-ratio: 16/10;
  overflow: hidden; background: var(--bg-secondary);
}
.gallery-track {
  display: flex; height: 100%;
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.gallery-track img {
  flex-shrink: 0; width: 100%; height: 100%; object-fit: cover;
}
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 35%);
  pointer-events: none;
}
.gallery-dots {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px; z-index: 2;
}
.gallery-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.35); transition: all 0.4s;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
}
.gallery-dot.active {
  background: white; width: 28px; border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.gallery-counter {
  position: absolute; bottom: 18px; right: 18px;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(16px);
  color: white; padding: 7px 14px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 700; z-index: 2;
  border: 1px solid rgba(255,255,255,0.08);
}

/* ========================================
   DETAIL CONTENT
   ======================================== */
.detail-content { padding: 26px 22px 120px; }
.detail-price-row {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px;
}
.detail-price {
  font-size: 34px; font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: -1.5px;
}
.detail-status {
  padding: 7px 16px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
  border: 1px solid transparent;
}
.detail-status.active { background: rgba(16,185,129,0.1); color: var(--emerald); border-color: rgba(16,185,129,0.2); }
.detail-status.sold { background: rgba(244,63,94,0.1); color: var(--rose); border-color: rgba(244,63,94,0.2); }

.detail-title {
  font-size: 24px; font-weight: 900; color: var(--text);
  margin-bottom: 10px; line-height: 1.2; letter-spacing: -0.7px;
}
.detail-location {
  font-size: 15px; color: var(--text-secondary); font-weight: 500;
  display: flex; align-items: center; gap: 7px; margin-bottom: 22px;
}

/* Stats Grid - Creative Cards */
.detail-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
  gap: 10px; margin-bottom: 28px;
}
.stat-item {
  text-align: center; padding: 18px 8px;
  background: var(--bg-glass); backdrop-filter: blur(12px);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
  position: relative; overflow: hidden;
}
.stat-item::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.06), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.stat-item:hover { 
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}
.stat-item:hover::before { opacity: 1; }
.stat-item i { font-size: 24px; color: var(--primary); margin-bottom: 10px; display: block; position: relative; z-index: 1; }
.stat-item .stat-value { font-size: 20px; font-weight: 900; color: var(--text); position: relative; z-index: 1; }
.stat-item .stat-label { font-size: 10px; color: var(--text-muted); margin-top: 4px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px; position: relative; z-index: 1; }

.detail-section { margin-bottom: 28px; animation: fadeIn 0.6s ease-out both; }
.detail-section h3 {
  font-size: 18px; font-weight: 800; color: var(--text);
  margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
  letter-spacing: -0.3px;
}
.detail-section h3 i {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  box-shadow: 0 4px 12px var(--primary-glow);
}
.detail-section p {
  font-size: 15px; color: var(--text-secondary); line-height: 1.85;
}

/* Amenities */
.amenities-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.amenity-tag {
  padding: 9px 18px;
  background: var(--bg-glass); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: var(--radius-full);
  font-size: 13px; color: var(--text-secondary); font-weight: 700;
  transition: all 0.3s;
}
.amenity-tag:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.amenity-tag i { margin-right: 6px; }

/* ========================================
   MAP
   ======================================== */
.map-container {
  width: 100%; height: 240px; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.map-container iframe { width: 100%; height: 100%; border: none; }

/* ========================================
   CONTACT BAR
   ======================================== */
.contact-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  padding: 16px 22px; padding-bottom: calc(16px + env(safe-area-inset-bottom, 10px));
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  background: var(--bg-glass-strong);
  border-top: 1px solid var(--border);
  display: flex; gap: 12px; z-index: 210;
}
[data-theme="dark"] .contact-bar { background: rgba(6,8,15,0.8); }

.btn-contact {
  flex: 1; padding: 16px 24px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 800; cursor: pointer;
  border: none; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
  -webkit-tap-highlight-color: transparent;
  letter-spacing: -0.2px;
}
.btn-contact:active { transform: scale(0.95); }
.btn-contact.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 6px 24px var(--primary-glow);
}
.btn-contact.primary:hover { box-shadow: 0 10px 36px var(--primary-glow); transform: translateY(-2px); }
.btn-contact.secondary {
  background: var(--bg-glass); backdrop-filter: blur(10px);
  color: var(--text); border: 1.5px solid var(--border);
}

/* ========================================
   MODAL - Creative Bottom Sheet
   ======================================== */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 300;
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn 0.25s ease-out;
  backdrop-filter: blur(8px);
}
.modal-content {
  background: var(--bg); width: 100%; max-width: 500px;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 26px 22px; padding-bottom: calc(26px + env(safe-area-inset-bottom, 16px));
  animation: slideUp 0.45s cubic-bezier(0.22,1,0.36,1);
  max-height: 85vh; overflow-y: auto;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
}
.modal-handle {
  width: 44px; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px; margin: 0 auto 22px;
}
.modal-title {
  font-size: 22px; font-weight: 900; margin-bottom: 22px;
  color: var(--text); letter-spacing: -0.5px;
}

.contact-item {
  display: flex; align-items: center; gap: 16px;
  padding: 18px; background: var(--bg-glass); backdrop-filter: blur(10px);
  border-radius: var(--radius-sm); margin-bottom: 10px;
  cursor: pointer; transition: all 0.3s;
  border: 1px solid var(--border);
  text-decoration: none; color: var(--text);
}
.contact-item:hover { border-color: var(--primary); transform: translateX(6px); box-shadow: var(--shadow-glow); }
.contact-item:active { transform: scale(0.97); }
.contact-icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.contact-icon.phone { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #16a34a; }
.contact-icon.whatsapp { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #25d366; }
.contact-icon.email { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #2563eb; }
.contact-info { flex: 1; }
.contact-info .label { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.contact-info .value { font-size: 16px; font-weight: 800; color: var(--text); }

/* ========================================
   MAP VIEW
   ======================================== */
.map-view-container {
  position: fixed; top: calc(var(--nav-height) + 18px); left: 0; right: 0;
  bottom: calc(var(--bottom-nav-height) + 22px); z-index: 50;
  border-radius: 0;
}
.map-view-container iframe { width: 100%; height: 100%; border: none; }

/* ========================================
   EMPTY STATE - Creative
   ======================================== */
.empty-state { text-align: center; padding: 70px 30px; }
.empty-state-icon {
  width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(245,158,11,0.08));
  animation: morph 10s ease-in-out infinite, float 5s ease-in-out infinite;
  position: relative;
}
.empty-state-icon::before {
  content: ''; position: absolute; inset: -8px;
  border: 2px dashed var(--border);
  border-radius: 50%;
  animation: rotate-slow 20s linear infinite;
}
.empty-state-icon i { font-size: 40px; color: var(--primary); }
.empty-state h3 { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 10px; letter-spacing: -0.3px; }
.empty-state p { font-size: 14px; line-height: 1.7; color: var(--text-muted); max-width: 300px; margin: 0 auto; }

/* ========================================
   FILTER PANEL
   ======================================== */
.filter-panel {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg); z-index: 250; overflow-y: auto;
  animation: slideUp 0.5s cubic-bezier(0.22,1,0.36,1);
  padding: 26px 22px;
}
.filter-panel h2 { font-size: 24px; font-weight: 900; margin-bottom: 28px; letter-spacing: -0.7px; }
.filter-group { margin-bottom: 24px; }
.filter-group label {
  font-size: 11px; font-weight: 800; color: var(--text-secondary);
  margin-bottom: 10px; display: block; text-transform: uppercase; letter-spacing: 1px;
}
.filter-group input, .filter-group select {
  width: 100%; padding: 15px 20px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bg-glass);
  backdrop-filter: blur(10px);
  font-size: 15px; color: var(--text); outline: none; font-family: 'Inter', sans-serif;
  transition: all 0.3s; font-weight: 500;
}
.filter-group input:focus, .filter-group select:focus {
  border-color: var(--primary); box-shadow: var(--shadow-glow);
}
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.btn {
  padding: 16px 24px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 800; cursor: pointer;
  border: none; transition: all 0.3s; width: 100%;
  font-family: 'Inter', sans-serif;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: -0.2px;
}
.btn:active { transform: scale(0.96); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; box-shadow: 0 6px 20px var(--primary-glow);
}
.btn-primary:hover { box-shadow: 0 8px 30px var(--primary-glow); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }

/* ========================================
   TOAST
   ======================================== */
.toast {
  position: fixed; top: 90px; left: 50%; transform: translateX(-50%);
  padding: 14px 30px; border-radius: var(--radius-full);
  font-size: 14px; font-weight: 700; z-index: 500;
  animation: slideDown 0.4s cubic-bezier(0.22,1,0.36,1);
  backdrop-filter: blur(20px);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 10px 40px var(--primary-glow);
  letter-spacing: -0.2px;
}

/* ========================================
   THEME TOGGLE
   ======================================== */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 14px;
  background: var(--bg-glass); backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text); font-size: 17px;
  transition: all 0.4s;
}
.theme-toggle:hover { border-color: var(--primary); box-shadow: var(--shadow-glow); }
.theme-toggle:active { transform: scale(0.85) rotate(30deg); }

/* ========================================
   SPINNER
   ======================================== */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-right-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 40px auto;
}

/* ========================================
   SHARE OPTIONS
   ======================================== */
.share-options {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px;
}
.share-option {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 18px 8px;
  background: var(--bg-glass); backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.35s;
  border: 1px solid var(--border);
  font-size: 12px; font-weight: 700; color: var(--text-secondary);
}
.share-option i { font-size: 26px; }
.share-option:hover { border-color: var(--primary); transform: translateY(-5px); box-shadow: var(--shadow-glow); }
.share-option:active { transform: scale(0.9); }

/* ========================================
   SORT DROPDOWN
   ======================================== */
.sort-select {
  font-size: 12px; padding: 8px 14px; border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-glass); backdrop-filter: blur(10px);
  color: var(--text); outline: none;
  font-family: 'Inter', sans-serif; font-weight: 700; cursor: pointer;
  transition: all 0.3s;
}
.sort-select:focus { border-color: var(--primary); box-shadow: var(--shadow-glow); }

/* ========================================
   CREATIVE EXTRAS
   ======================================== */

/* Featured carousel scroll indicator */
.scroll-indicator {
  display: flex; justify-content: center; gap: 4px; padding: 8px 0;
}
.scroll-indicator-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border);
  transition: all 0.3s;
}
.scroll-indicator-dot.active {
  width: 20px; border-radius: 3px;
  background: var(--primary);
}

/* Glowing border effect */
.glow-border {
  position: relative;
}
.glow-border::after {
  content: ''; position: absolute; inset: -2px;
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--cyan), var(--primary));
  background-size: 300% 300%;
  animation: aurora 6s ease infinite;
  border-radius: inherit;
  z-index: -1;
  opacity: 0.3;
  filter: blur(8px);
}

/* Micro-interaction: card hover glow line */
.property-card .card-glow-line {
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
  z-index: 2;
  border-radius: 0 0 var(--radius) var(--radius);
}
.property-card:hover .card-glow-line { transform: scaleX(1); }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (min-width: 768px) {
  .main-content { max-width: 1200px; margin: 0 auto; }
  .detail-page { max-width: 620px; left: 50%; transform: translateX(-50%); box-shadow: var(--shadow-xl); border-radius: 0 0 var(--radius) var(--radius); }
  .modal-content { border-radius: var(--radius); margin-bottom: 20px; }
  .top-nav { left: 50%; right: auto; transform: translateX(-50%); max-width: 1200px; width: calc(100% - 24px); }
  .hero-title { font-size: 40px; }
}
@media (min-width: 1024px) {
  .property-grid { gap: 24px; }
  .horizontal-scroll .property-card { width: 340px; }
}
