/* ==========================================================================
   Centre Base Consult - Modern Frontend Layout System (2026 Edition)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Brand Palette */
    --cbc-primary: #1E3A8A;
    --cbc-primary-light: #2563EB;
    --cbc-primary-subtle: #EFF6FF;
    --cbc-accent: #F59E0B;
    --cbc-accent-hover: #D97706;
    
    /* Neutral & Surfaces */
    --cbc-dark: #0F172A;
    --cbc-dark-soft: #1E293B;
    --cbc-muted: #64748B;
    --cbc-bg-light: #F8FAFC;
    --cbc-border: #E2E8F0;
    --cbc-white: #FFFFFF;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.88);
    --glass-border: rgba(226, 232, 240, 0.8);
    --glass-dark-bg: rgba(15, 23, 42, 0.85);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.12);
    --shadow-hover: 0 20px 38px rgba(15, 23, 42, 0.16);
    --shadow-glow: 0 8px 24px rgba(37, 99, 235, 0.28);
    
    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 9999px;
    
    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Global Typography & Overrides
   ========================================================================== */
body#page {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--cbc-dark);
    background-color: var(--cbc-bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--cbc-dark);
}

a {
    transition: var(--transition-fast);
}

/* ==========================================================================
   Modern Topbar
   ========================================================================== */
.topbar {
    background: var(--cbc-dark);
    color: #94A3B8;
    font-size: 0.84rem;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar .topbar-text {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #E2E8F0;
}

.topbar .topbar-link {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.topbar .topbar-link li a {
    color: #CBD5E1;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.topbar .topbar-link li a:hover {
    color: var(--cbc-accent);
}

/* ==========================================================================
   Sticky Glassmorphic Navbar
   ========================================================================== */
header nav.navbar-soft {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: var(--glass-bg) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    padding: 14px 0;
    transition: var(--transition-smooth);
}

header nav.navbar-soft .navbar-brand img {
    max-height: 48px;
    transition: var(--transition-fast);
}

header nav.navbar-soft .navbar-nav .nav-item .nav-link {
    font-weight: 600;
    font-size: 0.96rem;
    color: var(--cbc-dark);
    padding: 10px 18px !important;
    border-radius: var(--radius-pill);
    transition: var(--transition-fast);
    position: relative;
}

header nav.navbar-soft .navbar-nav .nav-item .nav-link:hover,
header nav.navbar-soft .navbar-nav .nav-item .nav-link.active {
    color: var(--cbc-primary-light);
    background-color: var(--cbc-primary-subtle);
}

/* Dropdown Menu */
header nav.navbar-soft .dropdown-menu {
    border: 1px solid var(--cbc-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    background: var(--cbc-white);
    padding: 10px;
    margin-top: 8px;
}

header nav.navbar-soft .dropdown-menu .dropdown-item {
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--cbc-dark);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    transition: var(--transition-fast);
}

header nav.navbar-soft .dropdown-menu .dropdown-item:hover {
    background-color: var(--cbc-primary-subtle);
    color: var(--cbc-primary-light);
    transform: translateX(4px);
}

/* Top Search Bar Modernization */
.top-search.navigation-shadow {
    background: var(--cbc-white);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--cbc-border);
}

/* ==========================================================================
   Hero Banner & Carousel Enhancements
   ========================================================================== */
.slider-container {
    position: relative;
    background: var(--cbc-dark);
}

.carousel-item.banner-max-height {
    position: relative;
}

.banner__slide-overlay {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.78) 0%, rgba(30, 58, 138, 0.65) 100%) !important;
}

.modern-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    margin-bottom: 18px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.slider__content-title h2 {
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    margin-bottom: 16px;
}

.slider__content-title p {
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 720px;
    margin: 0 auto 28px auto;
    color: rgba(255, 255, 255, 0.92);
}

.btn-modern-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--cbc-primary-light);
    color: var(--cbc-white) !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-glow);
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
}

.btn-modern-hero:hover {
    background: #1D4ED8;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.45);
}

.carousel-control-nav-prev,
.carousel-control-nav-next {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--cbc-white);
    transition: var(--transition-fast);
}

.carousel-control-prev:hover .carousel-control-nav-prev,
.carousel-control-next:hover .carousel-control-nav-next {
    background: var(--cbc-primary-light);
    color: var(--cbc-white);
    transform: scale(1.08);
}

/* ==========================================================================
   Modern Stats & Highlights Strip
   ========================================================================== */
.modern-stats-strip {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.modern-stat-card {
    background: var(--cbc-white);
    border: 1px solid var(--cbc-border);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.modern-stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--cbc-primary-light);
}

.modern-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--cbc-primary-subtle);
    color: var(--cbc-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.modern-stat-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--cbc-dark);
}

.modern-stat-content p {
    font-size: 0.88rem;
    color: var(--cbc-muted);
    margin: 0;
}

/* ==========================================================================
   Exclusive Featured Properties - Modern Card
   ========================================================================== */
.featured__property {
    background-color: var(--cbc-bg-light) !important;
    padding: 80px 0;
}

.modern-section-pill {
    display: inline-block;
    background: var(--cbc-primary-subtle);
    color: var(--cbc-primary-light);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 12px;
}

.modern-property-card {
    background: var(--cbc-white);
    border: 1px solid var(--cbc-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none !important;
    color: inherit !important;
}

.modern-property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.modern-property-header {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.modern-property-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.modern-property-card:hover .modern-property-header img {
    transform: scale(1.06);
}

.modern-badge-featured {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--cbc-accent);
    color: var(--cbc-white);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.modern-badge-status {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(6px);
    color: var(--cbc-white);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: capitalize;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    z-index: 2;
}

.modern-property-watermark {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(11, 19, 43, 0.60);
    backdrop-filter: blur(4px);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 2;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.modern-property-body {
    padding: 22px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modern-property-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--cbc-dark);
    margin-bottom: 8px;
    line-height: 1.35;
    transition: var(--transition-fast);
}

.modern-property-card:hover .modern-property-title {
    color: var(--cbc-primary-light);
}

.modern-property-address {
    font-size: 0.88rem;
    color: var(--cbc-muted);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modern-property-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(65px, 1fr));
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--cbc-border);
    margin-top: auto;
}

.modern-spec-item {
    text-align: center;
    background: var(--cbc-bg-light);
    border-radius: var(--radius-sm);
    padding: 8px 6px;
}

.modern-spec-item .spec-label {
    display: block;
    font-size: 0.72rem;
    color: var(--cbc-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 2px;
}

.modern-spec-item .spec-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--cbc-dark);
}

.modern-property-footer {
    padding: 14px 20px;
    background: #F8FAFC;
    border-top: 1px solid var(--cbc-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modern-agent-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modern-agent-info img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--cbc-white);
    box-shadow: var(--shadow-sm);
}

.modern-agent-info span {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--cbc-dark);
}

.modern-property-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--cbc-primary);
}

/* ==========================================================================
   Modern Advantage / Why Choose Us Section
   ========================================================================== */
.modern-feature-card {
    background: var(--cbc-white);
    border: 1px solid var(--cbc-border);
    border-left: 5px solid var(--cbc-primary-light);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.modern-feature-card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
    border-color: var(--cbc-primary);
}

.modern-feature-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cbc-dark);
    margin-bottom: 8px;
}

.modern-feature-card p {
    font-size: 0.94rem;
    color: var(--cbc-muted);
    margin: 0;
}

/* ==========================================================================
   Modern Footer
   ========================================================================== */
.modern-footer {
    background-color: #0B132B !important;
    color: #94A3B8;
    padding: 70px 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.modern-footer .logo-footer {
    max-height: 48px;
    margin-bottom: 20px;
}

.modern-footer .footer-title {
    color: var(--cbc-white);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 22px;
}

.modern-footer ul li a {
    color: #94A3B8;
    text-decoration: none;
    transition: var(--transition-fast);
    display: inline-block;
}

.modern-footer ul li a:hover {
    color: var(--cbc-accent);
    transform: translateX(4px);
}

.modern-footer .btn-social-o {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #E2E8F0;
    margin-right: 8px;
    transition: var(--transition-fast);
}

.modern-footer .btn-social-o:hover {
    background: var(--cbc-primary-light);
    border-color: var(--cbc-primary-light);
    color: var(--cbc-white);
    transform: translateY(-3px);
}

/* ==========================================================================
   Floating WhatsApp Micro-animation
   ========================================================================== */
.whatsapp-pulse-wrapper {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1050;
}

.whatsapp-pulse-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366;
    color: #FFFFFF;
    font-size: 32px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    text-decoration: none !important;
    transition: var(--transition-fast);
    position: relative;
}

.whatsapp-pulse-btn:hover {
    transform: scale(1.1);
    color: #FFFFFF;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-pulse-btn::after,
.whatsapp-pulse-effect::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: pulse-ring 2.2s infinite;
}

.whatsapp-pulse-effect {
    animation: pulse-ring 2.2s infinite;
}

/* =========================================================
   MODERN BLOG CARD & PAGE HERO COMPONENTS
   ========================================================= */
.modern-blog-card {
    background: var(--cbc-white);
    border: 1px solid var(--cbc-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none !important;
    color: inherit !important;
}

.modern-blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.modern-blog-header {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #e2e8f0;
}

.modern-blog-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.modern-blog-card:hover .modern-blog-header img {
    transform: scale(1.06);
}

.modern-blog-date-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(11, 30, 64, 0.88);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(4px);
    z-index: 2;
}

.modern-blog-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.modern-blog-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--cbc-dark);
    transition: color 0.3s ease;
}

.modern-blog-card:hover .modern-blog-title {
    color: var(--cbc-primary);
}

.modern-blog-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--cbc-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafbfc;
}
