/* Estate X - Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --neon-blue: #00d4ff;
    --neon-purple: #a855f7;
    --neon-pink: #ec4899;
    --neon-green: #10b981;
    --dark-900: #0F0F23;
    --dark-800: #141432;
    --dark-700: #1a1a40;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 20px;
}

* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

/* Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
}
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.25rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.08), 0 0 40px rgba(168, 85, 247, 0.05);
}
.glass-btn {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    color: white;
}
.glass-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}
.glass-nav {
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3), 0 0 60px rgba(168, 85, 247, 0.15);
    transform: translateY(-1px);
}
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}
.btn-primary:hover::after { transform: translateX(100%); }

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    transition: all 0.3s ease;
}
.btn-outline:hover {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

/* Navigation Links */
.nav-link {
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
}
.nav-link:hover, .nav-link.active {
    color: white;
    background: rgba(255,255,255,0.05);
}
.nav-link.active { color: var(--neon-blue); }

/* Form Inputs */
.glass-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: white;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    width: 100%;
    outline: none;
}
.glass-input:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
}
.glass-input::placeholder { color: rgba(255,255,255,0.3); }

select.glass-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Labels */
.glass-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero */
.hero-gradient {
    background: radial-gradient(ellipse at 50% 0%, rgba(0,212,255,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(168,85,247,0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 20% 80%, rgba(236,72,153,0.08) 0%, transparent 50%);
}
.hero-text-gradient {
    background: linear-gradient(135deg, #fff 0%, #00d4ff 50%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Neon glow */
.neon-glow-blue { text-shadow: 0 0 10px rgba(0,212,255,0.5), 0 0 40px rgba(0,212,255,0.2); }
.neon-glow-purple { text-shadow: 0 0 10px rgba(168,85,247,0.5), 0 0 40px rgba(168,85,247,0.2); }
.neon-border { border: 1px solid rgba(0,212,255,0.2); box-shadow: inset 0 0 20px rgba(0,212,255,0.05); }

/* Property Card */
.property-card { position: relative; overflow: hidden; }
.property-card .card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.property-card:hover .card-image { transform: scale(1.05); }
.property-card .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15,15,35,0.9) 100%);
    pointer-events: none;
}
.property-type-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(0, 212, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--neon-blue);
}
.property-status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Stats */
.stat-card {
    text-align: center;
    padding: 2rem;
}
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

/* Tabs */
.tab-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}
.tab-btn:hover { color: rgba(255,255,255,0.8); }
.tab-btn.active {
    background: rgba(0, 212, 255, 0.1);
    color: var(--neon-blue);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

/* 3D Viewer */
.viewer-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 1.25rem;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a1a, #141432);
    border: 1px solid rgba(255,255,255,0.05);
}
.viewer-controls {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}
.viewer-control-btn {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    background: rgba(15,15,35,0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s;
    font-size: 0.875rem;
}
.viewer-control-btn:hover {
    background: rgba(0,212,255,0.2);
    border-color: rgba(0,212,255,0.3);
}

/* Search */
.search-box {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1.25rem;
    padding: 1.25rem;
    backdrop-filter: blur(20px);
}
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(20,20,50,0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1rem;
    margin-top: 0.5rem;
    overflow: hidden;
    z-index: 50;
    display: none;
}
.search-suggestions.active { display: block; }
.search-suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.search-suggestion-item:hover { background: rgba(255,255,255,0.05); }

/* Wishlist heart */
.wishlist-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(15,15,35,0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255,255,255,0.6);
    transition: all 0.3s;
    font-size: 1rem;
}
.wishlist-btn:hover, .wishlist-btn.active { color: #ec4899; border-color: rgba(236,72,153,0.3); }

/* Comparison */
.compare-card {
    border: 2px solid transparent;
    transition: all 0.3s;
}
.compare-card.selected {
    border-color: var(--neon-blue);
    box-shadow: 0 0 30px rgba(0,212,255,0.15);
}

/* Floating Particles */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: float 20s infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive */
@media (max-width: 768px) {
    .viewer-container { height: 300px; }
    .stat-number { font-size: 2rem; }
}

/* Animations */
.fade-up { opacity: 0; transform: translateY(30px); }
.fade-up.animated { opacity: 1; transform: translateY(0); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.scale-in { opacity: 0; transform: scale(0.95); }
.scale-in.animated { opacity: 1; transform: scale(1); transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
