:root {
    /* Admin-matching Color Theme */
    --primary-h: 349;
    --primary-s: 83%;
    --primary-l: 37%; /* Crimson #B11226 */
    --primary: #B11226;
    
    --accent-h: 142;
    --accent-s: 70%;
    --accent-l: 45%; /* Emerald */
    --accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l));

    --gold: #D4AF37;
    --slate-50: #F8FAFC;
    --slate-100: #F1F5F9;
    --slate-200: #E2E8F0;
    --slate-300: #CBD5E1;
    --slate-400: #94A3B8;
    --slate-600: #475569;
    --slate-800: #1E293B;
    --slate-900: #0F172A;
    --slate-950: #020617;

    /* Depth & Gloss */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 30px -5px rgba(2, 6, 23, 0.08);
    --shadow-lg: 0 20px 50px -10px rgba(2, 6, 23, 0.12);
    
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Animation Tokens */
    --anim-duration: 0.6s;
    --anim-stagger: 0.1s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--slate-50);
    color: var(--slate-900);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .nav-logo {
    font-family: 'Inter', sans-serif; /* Using Inter with heavy weights for modern look */
    letter-spacing: -0.02em;
}

/* ========== Global Utilities ========== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========== Redesigned Header ========== */
.main-header {
    height: 90px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    z-index: 1000;
    transition: var(--transition);
}

.main-header.scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
}

.nav-logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
}

.logo-anja {
    color: #B11226;
}

.logo-neyulu {
    color: var(--accent);
}

.logo-in {
    color: var(--slate-400);
    font-weight: 400;
}

.tagline-sub {
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--slate-400);
    margin-top: 4px;
    white-space: nowrap;
}

/* Navigation Links */
.desktop-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--slate-900); /* Darker for better contrast */
    font-weight: 700;
    font-size: 0.85rem;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-smooth);
    opacity: 0.8;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2.5px;
    background: var(--accent); /* Emerald underline */
    transition: var(--transition);
    border-radius: 99px;
}

.desktop-nav a:hover {
    color: #B11226;
    opacity: 1;
    transform: translateY(-1px);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    width: 100%;
}

.desktop-nav a.active {
    color: #B11226;
    opacity: 1;
}

/* Specific Icon Styles */
.nav-icon-link {
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-icon-link i {
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

/* EMI Calculator - Gold Theme */
.nav-icon-link[title*="EMI"] {
    background: #FFFAF0;
    color: #B8860B;
}
.nav-icon-link[title*="EMI"]:hover {
    background: #FFD700;
    color: white;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* Search - Slate Theme */
.nav-icon-link[title*="Search"] {
    background: #F8FAFC;
    color: #64748B;
}
.nav-icon-link[title*="Search"]:hover {
    background: #64748B;
    color: white;
    box-shadow: 0 0 20px rgba(100, 116, 139, 0.3);
}

/* WhatsApp - Emerald Theme */
.nav-icon-link[title*="WhatsApp"] {
    background: #ECFDF5;
    color: #059669;
}
.nav-icon-link[title*="WhatsApp"]:hover {
    background: #10B981;
    color: white;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

/* Login - Indigo Theme */
.nav-icon-link[title*="Login"], .nav-icon-link[title*="Dashboard"] {
    background: #EEF2FF;
    color: #4F46E5;
}
.nav-icon-link[title*="Login"]:hover, .nav-icon-link[title*="Dashboard"]:hover {
    background: #4F46E5;
    color: white;
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.4);
}

.nav-icon-link:hover i {
    transform: scale(1.2);
}

/* Staggered Entry Animation for Header Elements */
@keyframes navItemFade {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-header .container > * {
    animation: navItemFade 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0;
}

.main-header .nav-logo { animation-delay: 0.1s; }
.main-header .desktop-nav { animation-delay: 0.2s; }
.main-header .lg\:hidden { animation-delay: 0.3s; }

/* Mobile Drawer Enhancements */
.mobile-menu-drawer {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
}

.mobile-menu-drawer.open {
    transform: translateX(0);
    visibility: visible;
}

.mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.drawer-link.active {
    background: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.05);
    color: var(--primary) !important;
}

.drawer-link i {
    transition: var(--transition);
}

.drawer-link:hover i {
    transform: scale(1.2);
}

/* ========== Hero Section ========== */
.hero-canvas {
    padding: 180px 0 100px;
    background: radial-gradient(circle at 80% 20%, hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.08), transparent 40%),
                radial-gradient(circle at 20% 80%, hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.05), transparent 40%);
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    padding: 0.5rem 1.25rem;
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 950;
    line-height: 1.05;
    color: var(--slate-950);
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--slate-500);
    max-width: 650px;
    margin: 0 auto 3rem;
    font-weight: 500;
}

/* ========== Lead Form Integrated ========== */
.hero-form-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    padding: 1.5rem;
    border-radius: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--slate-100);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.input-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.input-box label {
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-400);
    padding-left: 0.75rem;
}

.input-box select,
.input-box input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--slate-50);
    border: 1.5px solid transparent;
    border-radius: 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}

.input-box select:focus,
.input-box input:focus {
    background: white;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.1);
}

.btn-submit {
    height: 100%;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 1.25rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    background: var(--slate-900);
    transform: translateY(-2px);
}

/* ========== Service Cards Grid ========== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.service-card-lux {
    background: white;
    padding: 2.5rem;
    border-radius: 2.5rem;
    border: 1px solid var(--slate-100);
    transition: var(--transition);
    text-decoration: none;
    display: block;
    height: 100%;
}

.service-card-lux:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    background: var(--slate-50);
    color: var(--primary);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.service-card-lux:hover .icon-wrapper {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--slate-900);
    margin-bottom: 0.75rem;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--slate-500);
    font-weight: 500;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Photo Upload System */
#photoContainer .glass-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#photoContainer .glass-card:hover {
    transform: scale(1.02);
    border-color: var(--primary);
}

.animate-in {
    animation-fill-mode: forwards;
}

.zoom-in-50 {
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

/* Staggered Sections */
section {
    animation: slideUp 0.6s ease-out forwards;
    opacity: 0;
}

section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }
section:nth-child(5) { animation-delay: 0.5s; }
section:nth-child(6) { animation-delay: 0.6s; }

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

/* Premium Checkboxes */
input[type="checkbox"] {
    cursor: pointer;
}

/* Touch targets for mobile */
@media (max-width: 768px) {
    .premium-input {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 1rem;
    }
    
    .glass-card {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }
    
    .btn-premium {
        width: 100%;
        padding: 1.2rem;
    }
}

/* ========== Property Listing Components ========== */

/* Hero Mini */
.hero-canvas-mini {
    padding: 140px 0 60px;
    background: radial-gradient(circle at 80% 20%, hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.05), transparent 40%),
                radial-gradient(circle at 20% 80%, hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.03), transparent 40%);
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero-canvas-mini {
        padding: 120px 0 40px;
    }
}

/* Glass Search Bar */
.search-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 0.75rem 1.25rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-smooth);
    width: 100%;
    position: relative;
    z-index: 20;
}

.search-glass:focus-within {
    border-color: var(--primary);
    box-shadow: 0 20px 60px -15px rgba(var(--primary-h), var(--primary-s), var(--primary-l), 0.15);
}

@media (max-width: 640px) {
    .search-glass {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem;
    }
    
    .search-glass input {
        min-width: 100%;
        order: 2;
        padding: 0.5rem 0;
    }
    
    .search-glass i.fa-search {
        order: 1;
    }
    
    .search-glass .h-6.w-px {
        display: none !important;
    }

    .search-glass #openFilterBtn {
        order: 3;
        margin-left: auto;
    }
}

/* Luxury Property Card */
.property-card-lux {
    background: white;
    border-radius: 2rem;
    border: 1px solid var(--slate-100);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
    position: relative;
}

.property-card-lux:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--slate-200);
}

.property-image-container {
    height: 260px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 640px) {
    .property-image-container {
        height: 220px;
    }
}

.property-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-card-lux:hover .property-image-container img {
    transform: scale(1.08);
}

/* Badges */
.badge-verified {
    padding: 0.5rem 1rem;
    background: #10B981;
    color: white;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Property Stat Pills */
.property-stat-pill {
    padding: 0.75rem;
    background: var(--slate-50);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 11px;
    font-weight: 700;
    color: var(--slate-600);
    transition: var(--transition);
}

.property-card-lux:hover .property-stat-pill {
    background: white;
    box-shadow: var(--shadow-sm);
}

/* Price & CTA */
.property-price-lux {
    font-size: 1.5rem;
    font-weight: 950;
    color: var(--slate-900);
    letter-spacing: -0.02em;
}

.call-btn-premium {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
    box-shadow: 0 8px 20px -5px hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.4);
}

.call-btn-premium:hover {
    background: var(--slate-900);
    transform: scale(1.05) rotate(8deg);
}

/* Miscellaneous */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(at 10% 10%, hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.03) 0px, transparent 50%),
        radial-gradient(at 90% 90%, hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.03) 0px, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Responsive Grid Gap */
@media (max-width: 768px) {
    #propertiesGrid {
        gap: 1.5rem !important;
    }
}

/* Filter Drawer Polish */
#filterDrawer {
    transition: opacity 0.4s ease;
}

#drawerContent {
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#filterDrawer.active #drawerContent {
    transform: translateX(0);
}

@media (max-width: 640px) {
    #drawerContent {
        max-width: 100% !important;
    }
    
    #drawerContent .p-8 {
        padding: 1.5rem !important;
    }
}

/* Selection Chip States */
.selection-chip {
    padding: 0.65rem 1.15rem;
    background: var(--slate-50);
    border: 1.5px solid transparent;
    border-radius: 1rem;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-600);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.selection-chip:hover {
    background: var(--slate-100);
    color: var(--primary);
}

.selection-chip:has(input:checked) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 8px 20px -5px hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.3);
}

/* New Premium UI Elements */
.glass-cta {
    transform: perspective(1000px) rotateX(0deg);
}

.glass-cta:hover {
    transform: perspective(1000px) rotateX(5deg) translateY(-5px);
    border-color: var(--accent);
    background: white;
}

@media (max-width: 640px) {
    .glass-cta {
        width: 100%;
        justify-content: center;
    }
}

/* Card Refinements for Denser Grid */
@media (min-width: 1024px) {
    .property-card-lux .p-6 {
        padding: 1.25rem !important;
    }
    
    .property-card-lux h3 {
        font-size: 0.875rem !important;
    }
    
    .property-card-lux .text-lg {
        font-size: 1rem !important;
    }

    .property-card-lux .property-image-container {
        height: 180px;
    }
}

@media (min-width: 1440px) {
    .property-card-lux .p-6 {
        padding: 1rem !important;
    }
    
    .property-card-lux .property-image-container {
        height: 150px;
    }
}