:root {
    --primary-dark: #0a192f;   /* Deep Navy */
    --primary-blue: #112240;   /* Slate Blue */
    --accent-gold: #d4af37;    /* Metallic Gold */
    --accent-gold-light: #f3e5ab; /* Light Gold */
    --gray-light: #f8f9fa;     /* Light Gray */
    --gray-medium: #e9ecef;    /* Medium Gray */
    --success: #10b981;
    --danger: #ef4444;
    --safe-bottom: env(safe-area-inset-bottom);
}

body { 
    background: linear-gradient(135deg, var(--gray-light) 0%, #fffdf5 100%); 
    font-family: 'Poppins', sans-serif; 
    color: #334155; 
    padding-bottom: 70px; /* Space for mobile bottom nav */
}
@media (min-width: 992px) { body { padding-bottom: 0; } }

/* Fix Header Overlap & Add Premium Gap */
body { padding-top: 110px; }
@media (max-width: 991px) { body { padding-bottom: 70px; padding-top: 90px; } }

/* Premium Navbar: Dark Blue to Gold Gradient */
.navbar { 
    background: linear-gradient(90deg, var(--primary-dark) 40%, var(--primary-blue) 60%, var(--accent-gold) 140%);
    box-shadow: 0 4px 20px rgba(10, 25, 47, 0.3);
    padding: 1rem;
}
.navbar .logo-text { color: #fff; font-weight: 800; font-size: 1.5rem; text-decoration: none; }
.navbar .logo-icon { color: var(--accent-gold); margin-right: 5px; }
.navbar .logo-text span { color: var(--accent-gold); }
.navbar .nav-link { color: rgba(255,255,255,0.85) !important; font-weight: 500; transition: color 0.2s; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--accent-gold) !important; }

/* Header Logo & Text Alignment */
.navbar-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.navbar-logo { height: 40px; width: auto; object-fit: contain; }
.navbar .logo-text { color: #fff; font-weight: 800; font-size: 1.4rem; letter-spacing: 0.5px; line-height: 1; }
.navbar .logo-text span { color: var(--accent-gold); }
@media (max-width: 991px) { .navbar-logo { height: 35px; } .navbar .logo-text { font-size: 1.2rem; } }

/* Premium Cards: White to Light Gold mix */
.card { 
    border: none; 
    border-radius: 16px; 
    background: linear-gradient(135deg, #ffffff 0%, #fdfbf7 100%); 
    box-shadow: 0 10px 30px rgba(10, 25, 47, 0.08); 
    transition: transform 0.3s, box-shadow 0.3s; 
}
.card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2); 
}
.card-img-top { height: 220px; object-fit: cover; border-radius: 16px 16px 0 0; }

/* Typography & Badges */
.price-tag { color: var(--primary-dark); font-weight: 800; font-size: 1.3rem; }
.badge-direct { background: var(--success); color: white; }
.badge-mediate { background: var(--accent-gold); color: var(--primary-dark); }
.badge-featured { 
    background: linear-gradient(45deg, var(--accent-gold), var(--accent-gold-light)); 
    color: var(--primary-dark); 
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
}

/* HERO SECTION (Navy + Blue + Gray + Gold Gradient Mix) */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 35%, var(--gray-medium) 75%, var(--accent-gold-light) 100%);
    border-radius: 20px;
    padding: 3rem;
    color: #ffffff; /* White text for contrast against the navy/blue side */
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(10, 25, 47, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.2);
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.4) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-section h1 { 
    font-weight: 800; 
    font-size: 2.5rem; 
    color: #ffffff; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Subtle shadow to ensure readability over gradient */
}
.hero-section h1 span { color: var(--accent-gold); /* Bright gold for the span */ }
.hero-section .lead { color: rgba(255, 255, 255, 0.9) !important; /* Slightly transparent white */ }
.hero-section .btn-outline-light { color: #ffffff; border-color: rgba(255,255,255,0.6); font-weight: 600; }
.hero-section .btn-outline-light:hover { background: #ffffff; color: var(--primary-dark); border-color: #ffffff; }

/* App-like Cards for Grid (ANIMATED GOLD & GRAY MIX) */
.feature-card {
    background: linear-gradient(270deg, var(--gray-light), #ffffff, var(--accent-gold-light), #ffffff, var(--gray-light));
    background-size: 400% 400%;
    animation: goldGrayShift 8s ease infinite;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(10, 25, 47, 0.1);
}

@keyframes goldGrayShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hero Carousel */
.hero-carousel { height: 400px; border-radius: 20px; overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.2); margin-bottom: 2rem; }
.hero-carousel .carousel-item img { height: 400px; object-fit: cover; width: 100%; }
.hero-caption { 
    position: absolute; bottom: 0; left: 0; right: 0; padding: 40px; 
    background: linear-gradient(to top, rgba(10, 25, 47, 0.9), transparent); 
    color: white; 
}
.hero-caption h2 { font-weight: 800; }

/* Buttons */
.btn-primary { background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue)); border: none; font-weight: 600; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 15px rgba(10, 25, 47, 0.3); }
.btn-gold { 
    background: linear-gradient(135deg, var(--accent-gold), #b8941f); 
    color: var(--primary-dark) !important; font-weight: 700; border: none; 
}
.btn-gold:hover { box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4); transform: translateY(-2px); }

.card .btn-view-details {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
    color: white; font-size: 0.85rem; font-weight: 600; padding: 8px 0; border-radius: 8px;
    transition: all 0.3s; margin-top: 10px;
}
.card .btn-view-details:hover { background: var(--accent-gold); color: var(--primary-dark); }

/* Mobile Bottom Nav */
.mobile-nav { display: none; }
@media (max-width: 991px) {
    .mobile-nav {
        display: flex; position: fixed; bottom: 0; left: 0; width: 100%; 
        background: rgba(10, 25, 47, 0.95); backdrop-filter: blur(10px);
        padding: 10px 0 calc(10px + var(--safe-bottom));
        z-index: 1000; justify-content: space-around; box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    }
    .mobile-nav a { text-align: center; color: #94a3b8; font-size: 10px; text-decoration: none; }
    .mobile-nav a i { font-size: 18px; display: block; margin-bottom: 2px; }
    .mobile-nav a.active { color: var(--accent-gold); }
}

/* Sticky Mobile App Style CTA (Glassmorphism) */
.sticky-cta {
    position: fixed; bottom: 0; left: 0; width: 100%; padding: 15px; 
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); 
    border-top: 1px solid var(--gray-medium); z-index: 999;
    padding-bottom: calc(15px + var(--safe-bottom));
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}
@media (max-width: 991px) {
    .sticky-cta { bottom: 60px !important; padding-bottom: 10px !important; box-shadow: 0 -4px 15px rgba(0,0,0,0.1); }
}

/* Analytics & Stat Cards (Premium Gradient Mix) */
.stat-card { 
    border: none; 
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, var(--gray-light) 100%); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    border-left: 5px solid var(--accent-gold);
    transition: transform 0.3s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15); }
.stat-card.bg-dark-blue { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%); border-left: none; color: white; }
.stat-card.bg-dark-blue h3, .stat-card.bg-dark-blue h4 { color: var(--accent-gold) !important; }

/* Premium Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: #8892b0; padding: 60px 0 20px; margin-top: 80px;
    border-top: 4px solid var(--accent-gold);
}
.footer h5 { color: var(--accent-gold); font-weight: 700; margin-bottom: 20px; font-size: 1.1rem; }
.footer p, .footer a { color: #8892b0; text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer a:hover { color: #ffffff; }
.footer .footer-contact { margin-bottom: 12px; display: flex; align-items: center; }
.footer .footer-contact i { color: var(--accent-gold); margin-right: 12px; width: 20px; text-align: center; }
.footer-logo { height: 50px; margin-bottom: 15px; filter: none !important; }
.footer hr { border-color: #233554; opacity: 0.5; }
.footer-credit a { color: var(--accent-gold); font-weight: 600; text-decoration: none; transition: color 0.2s; }
.footer-credit a:hover { color: #fff; text-decoration: underline; } 

/* Floating WhatsApp */
.fab-whatsapp {
    position: fixed; bottom: 80px; right: 20px; z-index: 1000;
    background-color: #25D366; color: white; width: 60px; height: 60px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 32px; box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    border: 2px solid rgba(255,255,255,0.3); transition: transform 0.3s ease;
}
.fab-whatsapp:hover { color: white; transform: scale(1.1) rotate(5deg); }
@media (min-width: 992px) { .fab-whatsapp { bottom: 30px; } }

/* My Listings Enhanced View */
.listing-card {
    border: none; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 1rem; background: #fff;
}
.listing-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); 
    border-bottom: 1px solid #eee; font-weight: 700; color: #0a192f;
}

/* Sold Watermark Fix */
.card-img-wrapper { position: relative; overflow: hidden; }
.sold-watermark {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-25deg);
    background: rgba(220, 53, 69, 0.9); color: white; font-size: 1.8rem; font-weight: 800;
    padding: 10px 40px; z-index: 2; pointer-events: none; text-transform: uppercase;
    letter-spacing: 2px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); border-radius: 5px; white-space: nowrap;
}