/* Modern CSS for Moving With Meg Website */

:root {
    --primary-color: #000000;      /* Pure black */
    --secondary-color: #f5f5f0;    /* Eggshell white */
    --accent-color: #000000;       /* Black accent */
    --text-dark: #000000;          /* Pure black text */
    --text-light: #333333;         /* Dark gray text */
    --text-muted: #666666;         /* Medium gray text */
    --luxury-white: #ffffff;       /* Pure white */
    --luxury-eggshell: #f5f5f0;    /* Eggshell white */
    --luxury-off-white: #fafafa;   /* Off white */
    --luxury-light-gray: #e8e8e8;  /* Light gray */
    --luxury-medium-gray: #cccccc; /* Medium gray */
    --luxury-dark-gray: #333333;   /* Dark gray */
    --luxury-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    --premium-shadow: 0 40px 120px rgba(0, 0, 0, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(0, 0, 0, 0.1);
    --luxury-radius: 0px;          /* Clean, sharp luxury lines */
    --luxury-gradient: linear-gradient(135deg, #000000 0%, #333333 100%);
    --white-gradient: linear-gradient(135deg, #ffffff 0%, #f5f5f0 100%);
    --eggshell-gradient: linear-gradient(135deg, #f5f5f0 0%, #fafafa 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    line-height: 1.8;
    color: var(--text-dark);
    background: var(--luxury-eggshell);
    scroll-behavior: smooth;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Luxury typography hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.3;
}

.luxury-serif {
    font-family: 'Playfair Display', 'Times New Roman', serif;
}

.luxury-sans {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.025em;
}

/* Luxury Navigation Styles */
.navbar {
    position: relative;
    z-index: 9999 !important; /* Higher z-index to stay above widgets */
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid var(--luxury-light-gray);
    transition: all 0.3s ease;
    padding: 0.75rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure navbar is never hidden */
.navbar {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Navbar positioning - relative with high z-index */
.navbar {
    position: relative;
    z-index: 9999 !important; /* Highest z-index to stay above all widgets */
    background: rgba(255, 255, 255, 0.98) !important;
}

.navbar-brand {
    font-weight: 600;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: translateY(-1px);
}

.navbar-brand img {
    transition: all 0.4s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    height: 55px;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.9rem;
    padding: 0.75rem 1rem !important;
    margin: 0 0.25rem;
    letter-spacing: 0.5px;
    border-radius: var(--luxury-radius);
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.02));
    transition: all 0.3s ease;
    z-index: -1;
    border-radius: var(--luxury-radius);
}

.nav-link:hover::before {
    width: 80%;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--primary-color) !important;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.02));
}

/* Dropdown Styles */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 220px;
}

.dropdown-header {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    color: var(--text-muted) !important;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.2s ease;
    border-radius: 0;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.02));
    color: var(--primary-color);
    transform: translateX(5px);
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--luxury-light-gray);
}

/* Luxury Hero Section with Video Background */
.hero-section {
    padding-top: 8rem;
    padding-bottom: 6rem;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--luxury-eggshell) 0%, var(--luxury-off-white) 100%);
}

/* Hero Video Background */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -2;
    object-fit: cover;
}

/* Video Overlay for Better Text Readability */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(51, 51, 51, 0.7) 50%,
        rgba(0, 0, 0, 0.9) 100%
    );
    z-index: -1;
}

/* Fallback Background for Browsers that Don't Support Video */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--luxury-gradient);
    z-index: -3;
}

/* Luxury Black Accent Animation */
.hero-section::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    animation: luxuryFloat 8s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

/* Video Control Button */
.video-control-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.video-control-btn:hover {
    background: rgba(212, 175, 55, 0.8);
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 300;
    letter-spacing: 2px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    animation: luxuryFadeIn 1.5s ease;
    font-size: clamp(3rem, 8vw, 6rem);
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1.1;
}

.hero-section h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    letter-spacing: 3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: luxuryFadeIn 1.5s ease 0.3s both;
    opacity: 0.9;
    color: var(--luxury-light-gray);
    text-transform: uppercase;
    font-size: 1.1rem;
}

/* Modern Quick Search Widget */
.quick-search-widget {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2.5rem;
    border-radius: var(--modern-radius);
    box-shadow: var(--modern-shadow);
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
    position: relative;
    overflow: hidden;
}

.quick-search-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

/* Luxury Cards */
.card {
    border: none;
    border-radius: var(--luxury-radius);
    background: var(--luxury-white);
    backdrop-filter: blur(20px);
    border: 1px solid var(--luxury-light-gray);
    transition: all 0.5s ease;
    box-shadow: var(--luxury-shadow);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    opacity: 0;
    transition: all 0.5s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--premium-shadow);
    border-color: var(--primary-color);
}

/* Luxury Buttons */
.btn-primary {
    background: var(--primary-color);
    border: none;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    padding: 18px 40px;
    border-radius: var(--luxury-radius);
    transition: all 0.5s ease;
    box-shadow: var(--luxury-shadow);
    position: relative;
    overflow: hidden;
    color: var(--luxury-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--luxury-dark-gray);
    transform: translateY(-4px);
    box-shadow: var(--premium-shadow);
    color: var(--luxury-white);
}

.btn-outline-primary {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    padding: 18px 40px;
    border-radius: var(--luxury-radius);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-color);
    transition: width 0.5s ease;
    z-index: -1;
}

.btn-outline-primary:hover::before {
    width: 100%;
}

.btn-outline-primary:hover {
    color: var(--luxury-white);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--luxury-shadow);
}

/* Modern Gallery Slider Placeholder */
.gallery-slider {
    background: var(--luxury-white);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: var(--luxury-radius);
    border: 2px dashed var(--luxury-medium-gray);
    text-align: center;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-slider:hover {
    border-color: var(--primary-color);
    background: var(--luxury-off-white);
}

.gallery-slider::before {
    content: "Property Gallery Slider Widget Will Load Here";
    font-size: 1.2rem;
    color: var(--text-light);
    font-style: italic;
    font-weight: 500;
}

.gallery-slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
    animation: shimmer 3s infinite;
}

/* Modern Valuation Form Placeholder */
.valuation-form {
    background: var(--luxury-white);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: var(--luxury-radius);
    border: 2px dashed var(--luxury-medium-gray);
    text-align: center;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.valuation-form:hover {
    border-color: var(--primary-color);
    background: var(--luxury-off-white);
}

.valuation-form::before {
    content: "Property Valuation Form Widget Will Load Here";
    font-size: 1.2rem;
    color: var(--text-light);
    font-style: italic;
    font-weight: 500;
}

.valuation-form::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
    animation: shimmer 3s infinite;
}

/* Reviews Section */
.card-body .fa-star {
    font-size: 1.2rem;
}

/* Luxury Footer */
footer {
    background: var(--primary-color) !important;
    position: relative;
    overflow: hidden;
    border-top: 2px solid var(--luxury-white);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

footer h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    letter-spacing: 0.025em;
}

.social-icons a {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.75rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icons a:hover {
    transform: translateY(-3px) scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

/* Enhanced Footer Styles */
.footer-section {
    position: relative;
    z-index: 2;
}

.footer-section h5,
.footer-section h6 {
    position: relative;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-section h5::after,
.footer-section h6::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 3rem;
    height: 2px;
    background: var(--accent-color);
    border-radius: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0;
    border-radius: 4px;
}

.footer-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
    text-decoration: none;
}

.social-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    text-decoration: none;
}

.contact-item {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.service-item,
.area-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.service-item:hover,
.area-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.legal-links ul {
    gap: 1rem;
}

.legal-links .footer-link {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.legal-links .footer-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
}

.copyright-info p {
    line-height: 1.6;
}

/* Luxury Forms */
.form-control {
    border-radius: var(--luxury-radius);
    border: 1px solid var(--luxury-light-gray);
    padding: 1rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    transition: all 0.5s ease;
    background: var(--luxury-white);
    backdrop-filter: blur(20px);
    letter-spacing: 0.5px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
    background: var(--luxury-white);
    outline: none;
}

.form-select {
    border-radius: var(--luxury-radius);
    border: 1px solid var(--luxury-light-gray);
    padding: 1rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    transition: all 0.5s ease;
    background: var(--luxury-white);
    backdrop-filter: blur(20px);
    letter-spacing: 0.5px;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
    background: var(--luxury-white);
    outline: none;
}

.form-label {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Luxury Animations */
@keyframes luxuryFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes luxuryFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(1deg);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Modern Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
    }
    
    .display-4 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        text-align: center;
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: clamp(2rem, 6vw, 3rem);
        margin-bottom: 1.5rem;
    }
    
    .hero-section h2 {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }
    
    /* Video Background Mobile Optimization */
    .hero-video {
        /* Enable video on mobile with optimized settings */
        display: block !important;
        width: 100vw !important;
        height: 100vh !important;
        object-fit: cover;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        z-index: 1;
        min-width: 100vw !important;
        min-height: 100vh !important;
        max-width: none !important;
        max-height: none !important;
    }
    
    .hero-video-overlay {
        background: linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(54, 69, 79, 0.6) 50%,
            rgba(0, 0, 0, 0.8) 100%
        );
        z-index: 2;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
    }
    
    .hero-section {
        position: relative;
        overflow: hidden;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100vw;
        height: 100vh;
    }
    
    /* Ensure hero content is properly positioned over full-screen video */
    .hero-section .container {
        position: relative;
        z-index: 3;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    
    .hero-section .row {
        width: 100%;
    }
    
    .hero-section .col-lg-12 {
        text-align: center;
    }
    
    /* Enhanced text visibility on mobile */
    .hero-section h1,
    .hero-section h2,
    .hero-section h3,
    .hero-section h4,
    .hero-section h5,
    .hero-section h6,
    .hero-section p,
    .hero-section .lead,
    .hero-section .display-1,
    .hero-section .display-2,
    .hero-section .display-3,
    .hero-section .display-4,
    .hero-section .display-5,
    .hero-section .display-6 {
        color: white !important;
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
        font-weight: 600;
    }
    
    .video-control-btn {
        /* Show video controls on mobile */
        display: block !important;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 10;
        background: rgba(0, 0, 0, 0.7);
        border: 2px solid white;
        color: white;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        transition: all 0.3s ease;
    }
    
    .video-control-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.1);
    }
    
    .quick-search-widget {
        margin-top: 2rem;
        padding: 2rem 1.5rem;
    }
    
    .navbar-brand img {
        height: 40px;
    }

    .navbar-brand span {
        font-size: 0.9rem;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem;
        margin: 0.25rem 0;
    }

    .navbar-nav {
        padding: 1rem 0;
    }

    .dropdown-menu {
        border: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.02);
        margin-top: 0;
        border-radius: 8px;
    }

    .dropdown-item {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        margin: 0.25rem 0.5rem;
    }

    .dropdown-item:hover {
        background: rgba(0, 0, 0, 0.05);
        transform: none;
    }
    
    .display-4 {
        font-size: 2.25rem;
        margin-bottom: 2rem;
    }
    
    .card {
        margin-bottom: 1.5rem;
    }
    
    .btn-lg {
        padding: 12px 28px;
        font-size: 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .social-icons a {
        margin: 0.25rem;
        padding: 0.5rem;
    }

    /* Mobile Footer Enhancements */
    .footer-section h5,
    .footer-section h6 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .footer-section h5::after,
    .footer-section h6::after {
        width: 2rem;
        height: 1px;
    }

    .footer-link {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .service-item,
    .area-item {
        padding: 0.75rem 0;
        font-size: 0.9rem;
    }

    .legal-links ul {
        gap: 0.5rem;
    }

    .legal-links .footer-link {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }

    .copyright-info {
        text-align: center;
    }

    .copyright-info p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
        line-height: 1.2;
    }
    
    /* Mobile Video Optimization for Small Screens */
    .hero-video {
        display: block !important;
        width: 100vw !important;
        height: 100vh !important;
        object-fit: cover;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        z-index: 1;
        min-width: 100vw !important;
        min-height: 100vh !important;
        max-width: none !important;
        max-height: none !important;
    }
    
    .hero-video-overlay {
        background: linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(54, 69, 79, 0.5) 50%,
            rgba(0, 0, 0, 0.7) 100%
        );
        z-index: 2;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
    }
    
    .hero-section {
        position: relative;
        overflow: hidden;
        min-height: 100vh;
        width: 100vw;
        height: 100vh;
    }
    
    /* Ensure hero content is properly positioned over full-screen video */
    .hero-section .container {
        position: relative;
        z-index: 3;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    
    .hero-section .row {
        width: 100%;
    }
    
    .hero-section .col-lg-12 {
        text-align: center;
    }
    
    /* Enhanced text visibility on small mobile screens */
    .hero-section h1,
    .hero-section h2,
    .hero-section h3,
    .hero-section h4,
    .hero-section h5,
    .hero-section h6,
    .hero-section p,
    .hero-section .lead,
    .hero-section .display-1,
    .hero-section .display-2,
    .hero-section .display-3,
    .hero-section .display-4,
    .hero-section .display-5,
    .hero-section .display-6 {
        color: white !important;
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
        font-weight: 600;
    }
    
    .video-control-btn {
        display: block !important;
        position: absolute;
        top: 15px;
        right: 15px;
        z-index: 10;
        background: rgba(0, 0, 0, 0.8);
        border: 2px solid white;
        color: white;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        transition: all 0.3s ease;
    }
    
    .video-control-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.1);
    }
    
    .display-4 {
        font-size: 1.875rem;
    }
    
    .btn-lg {
        padding: 10px 24px;
        font-size: 0.95rem;
    }
    
    .quick-search-widget {
        padding: 1.5rem 1rem;
    }
    
    .form-control, .form-select {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    /* Mobile Navigation Enhancements */
    .navbar-toggler {
        border: none;
        padding: 0.5rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
    }

    .navbar-toggler:hover {
        background: rgba(0, 0, 0, 0.05);
    }

    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        border-radius: 12px;
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }

    .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0.5rem;
        box-shadow: none;
        border: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .nav-link {
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem;
    }
    
    body {
        /* No padding needed since navbar is not fixed */
    }
}

/* Modern utility classes */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--modern-radius);
}

.modern-shadow {
    box-shadow: var(--modern-shadow);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Luxury Section Spacing */
section {
    position: relative;
    padding: 6rem 0;
    margin-top: 0; /* Reset any margin */
}

section:nth-child(even) {
    background: var(--luxury-off-white);
    position: relative;
}

section:nth-child(even)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--primary-color);
    opacity: 0.1;
}

/* Modern section headers */
.display-4 {
    font-weight: 800;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 3rem;
}

/* Modern lead text */
.lead {
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-light);
}

/* Loading Animation for Widgets */
.widget-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Contact Section Enhancement */
#contact {
    background: var(--secondary-color);
}

/* Market Section Enhancement */
#markets {
    background: linear-gradient(45deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Alert Styling */
.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Image Styling */
img {
    max-width: 100%;
    height: auto;
}

/* Enhanced Card Hover Effects */
.card-hover-effect {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-hover-effect:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Modern Black accent elements for real estate luxury feel */
.btn-gold {
    background: var(--primary-color);
    border: none;
    color: var(--luxury-white);
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-gold:hover::before {
    left: 100%;
}

.btn-gold:hover {
    background: var(--luxury-dark-gray);
    color: var(--luxury-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Modern real estate accent borders */
.accent-border {
    border-left: 4px solid var(--primary-color);
    position: relative;
    padding-left: 2rem;
}

.accent-border::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    width: 4px;
    height: 0;
    background: var(--primary-color);
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.accent-border:hover::before {
    height: 100%;
}

.luxury-text {
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.luxury-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.luxury-text:hover::after {
    width: 100%;
}

/* Professional navigation hover with black accent */
.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Footer links with white hover */
footer a:hover {
    color: var(--luxury-white) !important;
}

/* Social icons with white hover */
.social-icons a:hover {
    color: var(--luxury-white) !important;
}

/* iHomeFinder Integration Styles */
.ihf-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-style: italic;
    font-family: 'Inter', sans-serif;
}

/* Style iHomeFinder widgets to match luxury theme */
#ihf-main-container {
    font-family: 'Inter', sans-serif !important;
}

.ihf-grid-result-container {
    border-radius: var(--luxury-radius) !important;
    box-shadow: var(--luxury-shadow) !important;
    border: 1px solid var(--luxury-platinum) !important;
}

.ihf-search-form {
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: var(--luxury-radius) !important;
    border: 1px solid var(--luxury-platinum) !important;
    box-shadow: var(--luxury-shadow) !important;
}

.ihf-btn-primary {
    background: var(--primary-color) !important;
    border: none !important;
    color: var(--luxury-white) !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-radius: var(--luxury-radius) !important;
    transition: all 0.3s ease !important;
}

.ihf-btn-primary:hover {
    background: var(--luxury-dark-gray) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--luxury-shadow) !important;
}

/* Style iHomeFinder input fields */
.ihf-search-form input,
.ihf-search-form select {
    border-radius: var(--luxury-radius) !important;
    border: 1px solid var(--luxury-light-gray) !important;
    padding: 0.75rem 1rem !important;
    font-family: 'Inter', sans-serif !important;
    transition: all 0.3s ease !important;
}

.ihf-search-form input:focus,
.ihf-search-form select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1) !important;
    outline: none !important;
}

/* Property cards styling */
.ihf-grid-result {
    border-radius: var(--luxury-radius) !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    border: 1px solid var(--luxury-light-gray) !important;
}

.ihf-grid-result:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--premium-shadow) !important;
    border-color: var(--primary-color) !important;
}

/* Review Widget Styling */
.review-widget-container {
    background: var(--luxury-white);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--luxury-shadow);
    border: 1px solid var(--luxury-light-gray);
    transition: all 0.3s ease;
}

.review-widget-container:hover {
    box-shadow: var(--premium-shadow);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.lc_reviews_widget {
    border-radius: 8px !important;
    overflow: hidden;
} 

/* Viral SEO Styles - Trending & Engaging */
.viral-alert {
    animation: pulse 2s infinite;
    border: 3px solid #ff6b35;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.viral-alert:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
}

.viral-faq .accordion-button {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.viral-faq .accordion-button:hover {
    background: linear-gradient(135deg, #f7931e, #ff6b35);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.viral-faq .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #dc3545, #ff6b35);
    color: white;
}

.viral-faq .accordion-body {
    background: rgba(255, 255, 255, 0.95);
    border-left: 4px solid #ff6b35;
    font-weight: 500;
}

/* Viral Investment Opportunities Section - Force White Text and Icons */
.viral-investment,
.viral-investment *,
.viral-investment h2,
.viral-investment h3,
.viral-investment h4,
.viral-investment p,
.viral-investment i,
.viral-investment .fa,
.viral-investment .fas,
.viral-investment .emoji,
.viral-investment .icon,
.viral-investment [class*="icon"],
.viral-investment [class*="fa"] {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7) !important;
    opacity: 1 !important;
    filter: brightness(2) !important;
    background: none !important;
    background-color: transparent !important;
}

.viral-investment .emoji, .viral-investment .icon, .viral-investment [class*="icon"], .viral-investment [class*="fa"] {
    font-size: 2.2em !important;
    vertical-align: middle;
    color: #fff !important;
    filter: brightness(2) !important;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7) !important;
}

.viral-stat {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    margin: 10px 0;
    transition: all 0.3s ease;
}

.viral-stat:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.viral-stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.viral-stat p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
}

.viral-cta {
    background: linear-gradient(135deg, #ff6b35, #dc3545);
    border: none;
    color: white;
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.viral-cta:hover {
    background: linear-gradient(135deg, #dc3545, #ff6b35);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    color: white;
}

.viral-badge {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}

.viral-highlight {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(247, 147, 30, 0.1));
    border-left: 4px solid #ff6b35;
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 10px 10px 0;
}

.viral-highlight strong {
    color: #ff6b35;
    font-weight: 700;
}

/* Viral Animation Keyframes */
@keyframes viralPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
    }
}

@keyframes viralShake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.viral-urgent {
    animation: viralShake 0.5s ease-in-out;
    background: linear-gradient(135deg, #dc3545, #ff6b35);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    text-align: center;
    margin: 10px 0;
}

/* Viral Mobile Optimizations */
@media (max-width: 768px) {
    .viral-stat h3 {
        font-size: 2rem;
    }
    
    .viral-cta {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .viral-faq .accordion-button {
        font-size: 0.9rem;
        padding: 15px;
    }
    
    .viral-alert {
        margin: 10px 0;
    }
    
    /* Mobile Video Controls */
    .video-control-btn {
        display: block !important;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 10;
        background: rgba(0, 0, 0, 0.7);
        border: 2px solid white;
        color: white;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        transition: all 0.3s ease;
        cursor: pointer;
    }
    
    .video-control-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.1);
    }
    
    /* Ensure videos are visible on mobile */
    .hero-video {
        display: block !important;
        width: 100vw !important;
        height: 100vh !important;
        object-fit: cover;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        z-index: 1;
        min-width: 100vw !important;
        min-height: 100vh !important;
        max-width: none !important;
        max-height: none !important;
    }
    
    .hero-video-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 2;
    }
    
    .hero-section {
        position: relative;
        overflow: hidden;
        min-height: 100vh;
        width: 100vw;
        height: 100vh;
    }
} 

/* Hero Section Typography - Ensure White Text */
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4,
.hero-section h5,
.hero-section h6,
.hero-section p,
.hero-section .lead,
.hero-section .display-1,
.hero-section .display-2,
.hero-section .display-3,
.hero-section .display-4,
.hero-section .display-5,
.hero-section .display-6 {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Video Background - Universal Settings */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    display: block;
}

/* Video Overlay - Enhanced for Better Text Readability */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(54, 69, 79, 0.5) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 2;
}

/* Hero Section Container - Ensure Content is Above Video */
.hero-section .container {
    position: relative;
    z-index: 3;
}

/* Hero Section - Full Height */
.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
} 

/* Dynamic Hero Background for Listing Pages */
.hero-section {
    position: relative;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Ensure text is readable over any background */
.hero-section h1,
.hero-section h2,
.hero-section p,
.hero-section .breadcrumb,
.hero-section .breadcrumb-item,
.hero-section .breadcrumb-item a {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    color: white !important;
}

/* ULTIMATE FULL-SCREEN VIDEO FIXES - MAXIMUM AGGRESSION */
* {
    box-sizing: border-box !important;
}

html, body {
    width: 100vw !important;
    height: 100vh !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

.hero-video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 1 !important;
    display: block !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-sizing: border-box !important;
    transform: none !important;
    transform-origin: center !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    pointer-events: none !important;
}

.hero-video-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 2 !important;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(54, 69, 79, 0.5) 50%,
        rgba(0, 0, 0, 0.8) 100%
    ) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-sizing: border-box !important;
    transform: none !important;
    pointer-events: none !important;
}

.hero-section {
    position: relative !important;
    width: 100% !important;
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    transform: none !important;
    z-index: 3 !important;
}

.hero-section .container {
    position: relative !important;
    z-index: 4 !important;
    width: 100% !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    pointer-events: auto !important;
}

.hero-section .row {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.hero-section .col-lg-12,
.hero-section .col-lg-8,
.hero-section .col-md-12,
.hero-section .col-sm-12,
.hero-section .col-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    position: relative !important;
    z-index: 6 !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Ensure all hero content is above video */
.hero-section h1,
.hero-section h2,
.hero-section p,
.hero-section .btn,
.hero-section .quick-search-widget {
    position: relative !important;
    z-index: 10 !important;
    pointer-events: auto !important;
}

/* Perfect centering for hero content */
.hero-section .container {
    position: relative !important;
    z-index: 4 !important;
    width: 100% !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    pointer-events: auto !important;
}

.hero-section .row {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.hero-section .col-lg-12,
.hero-section .col-lg-8,
.hero-section .col-md-12,
.hero-section .col-sm-12,
.hero-section .col-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    position: relative !important;
    z-index: 6 !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Enhanced button centering */
.hero-section .d-flex {
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
}

.hero-section .btn {
    margin: 0.25rem !important;
    white-space: nowrap !important;
}

/* Quick search widget centering */
.hero-section .quick-search-widget {
    width: 100% !important;
    max-width: 600px !important;
    margin: 0 auto 2rem auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.hero-section #quick-search-content {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* ULTRA AGGRESSIVE WHITE TEXT FORCE */
.hero-section h2,
.hero-section .display-4,
.hero-section .luxury-sans,
.hero-section h2.display-4,
.hero-section h2.luxury-sans,
.hero-section h2.hero-subtitle,
.hero-section .display-4.luxury-sans,
.hero-section .hero-subtitle,
.hero-section h2[style*="white"],
.hero-section h2[style*="color"] {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8) !important;
    -webkit-text-fill-color: white !important;
    -webkit-text-stroke: 0 !important;
    font-weight: 400 !important;
    opacity: 1 !important;
    filter: brightness(2) !important;
    background: none !important;
    background-color: transparent !important;
}

/* SPECIFIC TARGETING FOR HERO SUBTITLE */
.hero-subtitle,
h2.hero-subtitle,
.display-4.hero-subtitle,
.luxury-sans.hero-subtitle,
.hero-section .hero-subtitle,
.hero-section h2.hero-subtitle,
.hero-section .display-4.hero-subtitle,
.hero-section .luxury-sans.hero-subtitle {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8) !important;
    -webkit-text-fill-color: white !important;
    -webkit-text-stroke: 0 !important;
    font-weight: 400 !important;
    opacity: 1 !important;
    filter: brightness(2) !important;
    background: none !important;
    background-color: transparent !important;
}

/* Override any potential dark text inheritance */
.hero-section h2 *,
.hero-section .display-4 *,
.hero-section .luxury-sans * {
    color: white !important;
    -webkit-text-fill-color: white !important;
}

/* Hero Content Animations */
.animate-fade-in {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.animate-fade-in:nth-child(1) { animation-delay: 0.2s; }
.animate-fade-in:nth-child(2) { animation-delay: 0.4s; }
.animate-fade-in:nth-child(3) { animation-delay: 0.6s; }

.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 1s ease-out 0.8s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* DEPRECATED: Old complex search widget styling - keeping for reference */
/* Quick Search Widget Full Width Container */
.quick-search-container {
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
    margin: 3rem 0;
    position: relative;
    z-index: 10;
}

.quick-search-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quick-search-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #ffd700, var(--accent-color));
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
}

/* Enhanced Quick Search Widget Styling */
.quick-search-wrapper * {
    width: 100% !important;
    max-width: 100% !important;
}

/* Ensure dropdowns appear outside the frame */
.quick-search-wrapper .dropdown-menu,
.quick-search-wrapper [class*="dropdown"],
.quick-search-wrapper [class*="select"],
.quick-search-wrapper [class*="menu"] {
    z-index: 9999 !important;
    position: absolute !important;
    overflow: visible !important;
    max-height: none !important;
    width: auto !important;
    min-width: 200px !important;
    background: white !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .quick-search-container {
        padding: 0 10px;
    }
    
    .quick-search-wrapper {
        padding: 1.5rem;
        margin: 0 10px;
    }
}

/* NEW: Simple Search Widget Container */
.simple-search-container {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.simple-search-container * {
    width: 100% !important;
    max-width: 100% !important;
}

/* Ensure dropdowns appear outside the frame */
.simple-search-container .dropdown-menu,
.simple-search-container [class*="dropdown"],
.simple-search-container [class*="select"],
.simple-search-container [class*="menu"] {
    z-index: 9999 !important;
    position: absolute !important;
    overflow: visible !important;
    max-height: none !important;
    width: auto !important;
    min-width: 200px !important;
    background: white !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .simple-search-container {
        padding: 0 10px;
        margin: 1.5rem auto;
    }
} 

/* Footer - Force All Text and Icons to White */
footer, footer *, footer h1, footer h2, footer h3, footer h4, footer h5, footer h6, footer p, footer a, footer i, footer .fa, footer .fas, footer .fab, footer .far, footer .icon, footer [class*="icon"], footer [class*="fa"] {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5) !important;
    opacity: 1 !important;
    background: none !important;
    background-color: transparent !important;
}

footer .icon, footer [class*="icon"], footer [class*="fa"] {
    color: #fff !important;
    filter: brightness(2) !important;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5) !important;
} 

footer .text-primary,
footer .text-light {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

footer h1, footer h2, footer h3, footer h4, footer h5, footer h6 {
    color: #fff !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
}

footer .copyright-info p {
    color: #fff !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
} 

/* Ensure widgets don't overlap navigation */
.ihf-container,
[id*="ihf"],
[id*="widget"],
[class*="widget"],
[class*="sticky"],
[class*="fixed"] {
    z-index: 1000 !important; /* Lower than navbar */
}

/* Specific widget overrides */
.ihf-container {
    z-index: 1000 !important;
}

/* Lead Connector widgets */
[data-widget-id] {
    z-index: 1000 !important;
}

/* Reputation Hub widgets */
[src*="reputationhub"] {
    z-index: 1000 !important;
}

/* Review Widget Styling - Minimal interference */
.review-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem 0;
}

.review-widget-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 0 auto;
}

/* Allow widget to display naturally - no restrictions */
.lc_reviews_widget {
    width: 100% !important;
    border: none !important;
}

/* Mobile adjustments - minimal */
@media (max-width: 768px) {
    .review-widget-container {
        padding: 1rem;
        margin: 0 5px;
    }
}