: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; } }

/* 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; }

/* 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 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); }

/* 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: 12px; text-decoration: none; }
    .mobile-nav a i { font-size: 20px; 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);
}

/* --- Logo Configuration --- */
.navbar-logo { height: 45px; width: auto; }
@media (max-width: 991px) { .navbar-logo { height: 38px; } }

/* --- Floating WhatsApp Button --- */
.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; } }


/* 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; } }

/* View Details Button on Cards */
.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); }

/* Footer Credit Link */
.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; } 

/* --- Premium Footer --- */
.footer {
    background: linear-gradient(135deg, #0a192f 0%, #112240 100%);
    color: #8892b0; padding: 60px 0 20px; margin-top: 80px;
    border-top: 4px solid var(--accent-gold);
}
.footer h5 { color: #d4af37; 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: #d4af37; margin-right: 12px; width: 20px; text-align: center; }
.footer .footer-logo { height: 50px; margin-bottom: 15px; }
.footer hr { border-color: #233554; opacity: 0.5; } 

/* Fix Header Overlap */
body { padding-top: 80px; }
@media (max-width: 991px) { body { padding-bottom: 70px; padding-top: 70px; } }

/* Fix Footer Logo Color */
.footer-logo { filter: none !important; }

/* 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;
}

/* Analytics & Stat Cards */
.stat-card { border-left: 5px solid var(--accent-gold); border-radius: 12px; }