/* ==========================================================================
   Dream Property - Premium Real Estate Template Styles
   ========================================================================== */

/* --- Variables & Core Setup --- */
:root {
    --color-primary: #0D3B66;      /* Royal Blue */
    --color-secondary: #F4B400;    /* Gold */
    --color-accent: #00A8E8;       /* Light Blue Accent */
    --color-bg: #F8FAFC;           /* Soft White Background */
    --color-text: #1F2937;         /* Dark Gray Text */
    --color-text-muted: #6B7280;   /* Muted Gray Text */
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --border-radius: 16px;
    --border-radius-lg: 24px;
    
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 25px rgba(13, 59, 102, 0.08);
    --shadow-lg: 0 15px 35px rgba(13, 59, 102, 0.12);
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-heading);
    color: var(--color-primary);
}

/* --- Utilities & Custom Classes --- */
.text-primary { color: var(--color-primary) !important; }
.bg-primary { background-color: var(--color-primary) !important; }
.text-secondary { color: var(--color-secondary) !important; }
.bg-secondary { background-color: var(--color-secondary) !important; }
.bg-light-gradient { background: linear-gradient(180deg, #FFFFFF 0%, var(--color-bg) 100%); }

.btn-primary-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1A5288 100%);
    border: none;
    transition: var(--transition);
}
.btn-primary-gradient:hover {
    background: linear-gradient(135deg, #1A5288 0%, var(--color-primary) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.transition-all { transition: var(--transition); }
.tracking-wide { letter-spacing: 1.5px; }

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--color-secondary);
    border-radius: 2px;
}

.hover-white:hover { color: #fff !important; }
.text-hover-primary:hover { color: var(--color-primary) !important; }
.z-index-1 { z-index: 1; }

.shadow-hover:hover {
    box-shadow: var(--shadow-lg) !important;
    transform: translateY(-5px);
}

/* Glassmorphism Effect */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}
.loader {
    border: 4px solid rgba(13, 59, 102, 0.1);
    border-top: 4px solid var(--color-secondary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- 1. Header & Navigation --- */
.header {
    background: transparent;
    padding: 15px 0;
}
.header.scrolled {
    background: rgba(13, 59, 102, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 8px 15px;
    position: relative;
    transition: var(--transition);
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #fff;
}
.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: var(--transition);
}
.navbar-dark .navbar-nav .nav-link.active::after,
.navbar-dark .navbar-nav .nav-link:hover::after {
    width: 20px;
}

.nav-link-custom { transition: var(--transition); }
.nav-link-custom:hover { color: var(--color-secondary) !important; }

/* --- 2. Hero Section --- */
.hero {
    min-height: 100vh;
    background-image: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 100px;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(13, 59, 102, 0.9) 0%, rgba(13, 59, 102, 0.6) 50%, rgba(13, 59, 102, 0.2) 100%);
}

.heading-underline {
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 20px;
    z-index: -1;
}

/* Search Tabs inside Hero */
.search-tabs .nav-link {
    color: var(--color-text);
    font-weight: 500;
    border: 1px solid transparent;
}
.search-tabs .nav-link.active {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.form-control:focus, .form-select:focus {
    box-shadow: none;
    border-color: var(--color-accent);
}

/* Floating Cards Animation */
.hero-image-wrapper { perspective: 1000px; }
.floating-card {
    position: absolute;
    animation: float 6s ease-in-out infinite;
}
.card-1 { top: 10%; right: -30px; animation-delay: 0s; }
.card-2 { bottom: 20%; left: -40px; animation-delay: 2s; }
.card-3 { bottom: 5%; right: 10%; animation-delay: 4s; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* --- 3. Categories --- */
.category-card { transition: var(--transition); }
.category-card:hover .icon-wrapper {
    background-color: var(--color-primary) !important;
    color: white !important;
    transform: scale(1.1);
}
.icon-wrapper { width: 80px; height: 80px; }

/* --- 4. Properties --- */
.property-card { transition: var(--transition); }
.property-img { overflow: hidden; }
.property-img img { transition: transform 0.6s ease; }
.property-card:hover .property-img img { transform: scale(1.05); }

.fav-btn { transition: var(--transition); }
.fav-btn:hover { background-color: #ffeff0 !important; }

/* --- 5. About / Choose Us --- */
.custom-list li { transition: var(--transition); }
.custom-list li:hover { transform: translateX(5px); }
.experience-badge { animation: pulse 2s infinite; }
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* --- 7. Process Timeline --- */
#processTabs .nav-link { color: var(--color-text-muted); }
#processTabs .nav-link.active {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary) !important;
}

.timeline-row::before {
    content: '';
    position: absolute;
    top: 40px; /* middle of icons */
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e9ecef;
    z-index: 0;
}
@media (max-width: 767px) {
    .timeline-row::before { display: none; }
}
.timeline-step { position: relative; z-index: 1; }
.timeline-step:hover .step-icon {
    background-color: var(--color-secondary) !important;
    color: white !important;
    transform: scale(1.1) rotate(10deg);
}

/* --- 10. Testimonials --- */
.testimonialSwiper { padding-bottom: 50px; }
.swiper-pagination-bullet { background: var(--color-primary); }
.swiper-pagination-bullet-active { background: var(--color-secondary); }

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.back-to-top.active {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    transform: translateY(-5px);
}

/* --- Mobile Responsive Fixes --- */
@media (max-width: 991px) {
    .header { background: rgba(13, 59, 102, 0.95); padding: 10px 0; }
    .hero { padding-top: 80px; text-align: center; }
    .hero h1 { font-size: 2.5rem; }
    .floating-card { display: none; } /* Hide complex animations on mobile for perf */
}
