/**
 * Elysian Estates - Core Luxury Styling
 * Navy Blue & Champagne Gold Palette | Bootstrap 5 Enhancements
 */

:root {
    --bg-dark: #0A192F;
    --bg-darker: #060F1E;
    --surface-dark: #112240;
    --surface-light: #1A3055;
    --gold: #C5A880;
    --gold-light: #E5D5B8;
    --gold-dark: #9E7D4E;
    --text-main: #E2E8F0;
    --text-muted: #94A3B8;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-serif, .brand-title {
    font-family: var(--font-heading);
    letter-spacing: -0.015em;
}

.text-gold { color: var(--gold) !important; }
.bg-gold { background-color: var(--gold) !important; }
.bg-body-dark { background-color: var(--bg-dark) !important; }
.bg-surface-dark { background-color: var(--surface-dark) !important; }

/* Buttons */
.btn-gold {
    background-color: var(--gold);
    color: var(--bg-darker);
    font-weight: 600;
    border: 1px solid var(--gold);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-gold:hover {
    background-color: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--bg-darker);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(197, 168, 128, 0.3);
}

.btn-outline-gold {
    background-color: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    font-weight: 500;
    transition: all 0.3s ease;
}
.btn-outline-gold:hover {
    background-color: var(--gold);
    color: var(--bg-darker);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: #25D366;
    color: #ffffff;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.btn-whatsapp:hover {
    background-color: #1EBE5B;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp-icon {
    background-color: rgba(37, 211, 102, 0.15);
    color: #25D366;
    border: 1px solid rgba(37, 211, 102, 0.4);
    border-radius: 8px;
    transition: all 0.25s ease;
}
.btn-whatsapp-icon:hover {
    background-color: #25D366;
    color: #ffffff;
}

/* Navbar */
.luxury-navbar {
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(197, 168, 128, 0.2);
    padding: 1rem 0;
    transition: all 0.3s ease;
}
.brand-crest {
    color: var(--gold);
    font-size: 1.75rem;
}
.brand-title {
    color: #FFFFFF;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}
.brand-subtitle {
    color: var(--gold);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    font-weight: 600;
}
.nav-link {
    color: #CBD5E1 !important;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}
.nav-link:hover, .nav-link.active {
    color: var(--gold) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 85vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 15, 30, 0.75) 0%, rgba(10, 25, 47, 0.92) 100%);
}
.hero-search-card {
    background-color: rgba(17, 34, 64, 0.88);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(197, 168, 128, 0.3);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}
.search-nav-pills .nav-link {
    color: #94A3B8 !important;
    border-radius: 8px;
    padding: 8px 24px;
    font-weight: 600;
}
.search-nav-pills .nav-link.active {
    background-color: var(--gold) !important;
    color: var(--bg-darker) !important;
}

/* Property Cards */
.property-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border: 1px solid rgba(197, 168, 128, 0.15);
}
.property-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.5) !important;
    border-color: rgba(197, 168, 128, 0.45);
}
.property-thumb {
    height: 260px;
}
.property-img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.property-card:hover .property-img {
    transform: scale(1.05);
}
.badge-sale {
    background-color: var(--gold);
    color: var(--bg-darker);
}
.badge-rent {
    background-color: #38BDF8;
    color: #0F172A;
}
.badge-featured {
    background-color: #EAB308;
    color: #0F172A;
}
.bg-gradient-dark {
    background: linear-gradient(180deg, transparent 0%, rgba(6, 15, 30, 0.95) 100%);
}
.title-hover:hover {
    color: var(--gold) !important;
}

/* Floating WhatsApp button */
.floating-whatsapp {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.floating-whatsapp:hover {
    transform: scale(1.1);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.6);
}
.wa-tooltip {
    position: absolute;
    right: 70px;
    background: #060F1E;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    border: 1px solid rgba(197, 168, 128, 0.3);
}
.floating-whatsapp:hover .wa-tooltip {
    opacity: 1;
}

/* Category & Location Cards */
.category-card, .location-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(197, 168, 128, 0.2);
}
.category-card:hover, .location-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
}

/* Lightbox Modal & Details */
.gallery-thumbnail {
    cursor: pointer;
    border-radius: 8px;
    transition: opacity 0.2s;
    height: 100px;
    object-fit: cover;
}
.gallery-thumbnail:hover {
    opacity: 0.8;
}

/* Footer */
.luxury-footer {
    background-color: var(--bg-darker);
}
.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--surface-dark);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.social-btn:hover {
    background-color: var(--gold);
    color: var(--bg-darker);
    border-color: var(--gold);
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
    margin-bottom: 8px;
}
.footer-links a:hover {
    color: var(--gold);
}

/* Luxury Pagination */
.luxury-pagination .page-link {
    background-color: var(--surface-dark);
    border-color: rgba(197, 168, 128, 0.2);
    color: var(--text-main);
    padding: 8px 16px;
    margin: 0 3px;
    border-radius: 6px;
}
.luxury-pagination .page-item.active .page-link {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--bg-darker);
    font-weight: 600;
}
.luxury-pagination .page-link:hover {
    background-color: var(--gold-dark);
    color: #ffffff;
}
