/* 📍 Location Box (Fix for address fitting) */
.elementor-2373 .location-section.option1 .location-text-content {
    height: auto !important;
    min-height: 220px;
    width: fit-content !important;
    max-width: 230px;
    min-width: 200px;
    padding: 15px !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left !important;
}

/* 👤 About Mauck Section (Refined Design) */
.about-mauck-container {
    display: flex;
    max-width: 1000px;
    width: 100%;
    margin: 50px auto;
    gap: 70px;
    padding: 40px 20px;
    align-items: center;
}

.about-mauck-image-column {
    flex: 0 0 45%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.about-mauck-image-wrapper {
    position: relative;
    background-color: #ffffff;
    border-radius: 4px 200px 4px 4px;
    box-shadow: -15px 15px 50px rgba(0, 0, 0, 0.04);
    width: 350px;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.about-mauck-profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.about-mauck-content-column {
    flex: 1;
}

.about-mauck-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

.about-mauck-sub-heading {
    color: #f2aa6f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

.about-mauck-nav-btn {
    background-color: #fadbc2;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
}

.about-mauck-nav-btn svg {
    width: 16px;
    height: 16px;
}

.about-mauck-main-heading {
    font-family: 'Playfair Display', serif !important;
    font-size: 38px !important;
    font-weight: 500 !important;
    color: #222222 !important;
    margin: 0 0 30px 0 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.3px !important;
}

.about-mauck-feature-list {
    list-style: none !important;
    margin: 0 0 35px 0 !important;
    padding: 0 !important;
}

.about-mauck-feature-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 18px;
    font-size: 13px;
    color: #666666;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.about-mauck-feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d6a643'%3E%3Cpath d='M20.285 2L9 13.567 3.714 8.556 0 12.272 9 21 24 5.715z' /%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.about-mauck-description {
    color: #666666;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 30px;
    font-family: 'Inter', sans-serif;
}

.about-mauck-link {
    display: inline-block;
    color: #222222;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #222222;
    padding-bottom: 2px;
}

/* 🛠️ Services Three Card Section */
.service-card-v2 {
    border: 1px solid transparent;
}

.service-card-v2:hover {
    background: #ffffff !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.06);
    transform: translateY(-5px);
}

.service-icon-v2 {
    transition: all 0.3s ease;
    background: #f2aa6f !important;
    /* Soft orange from design */
}

.service-card-v2:hover .service-icon-v2 {
    background: #ea8a3c !important;
    /* Darker orange on hover */
    transform: scale(1.1);
}

/* 📊 Stats Horizontal Section */
.stats-horiz-item {
    min-width: 180px;
    padding: 30px 10px;
}

.stats-horiz-number-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    white-space: nowrap;
}

.stats-horiz-number-bg::before {
    content: attr(data-value);
    font-size: 80px;
    font-weight: 900;
    color: rgba(18, 23, 37, 0.05); /* Faint dark color */
    line-height: 1;
    font-family: 'Inter', sans-serif;
}

.stats-horiz-label {
    position: relative;
    z-index: 2;
    max-width: 140px;
    margin: 0 auto;
}

/* 🏁 Footer Logo & Alignment */
.footer--top {
    padding-top: 60px !important; /* Reduced from 120px */
}

.footer-top {
    margin-top: 60px !important; /* Reduced from 120px */
}

.footer-area .widget_about {
    padding-top: 0 !important;
}

.footer-area .widget_about .thumb {
    margin-bottom: 25px !important;
    margin-top: 0 !important; /* Removed offset to pull it higher */
    text-align: left !important;
    display: block !important;
}

.footer-area .widget_about .thumb img {
    max-width: 120px !important; /* Reduced size as requested */
    height: auto !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    display: block !important;
}

.footer-area .widget_about .details p {
    font-size: 14px !important;
    line-height: 1.8 !important;
    margin-bottom: 15px !important;
    text-align: left !important;
}

.footer-area .widget_about .details .social-media {
    margin-top: 20px !important;
    text-align: left !important;
    justify-content: flex-start !important;
    display: flex !important;
}

.footer-area .widget_about .details .social-media li {
    margin-left: 0 !important;
    margin-right: 15px !important;
}

/* 🎬 Video Section Styling */
.video-popup__button {
    background-color: #fadbc2 !important;
    /* Soft orange/peach backgroud */
    color: #ffffff !important;
    width: 80px !important;
    height: 80px !important;
    line-height: 80px !important;
    font-size: 24px !important;
    border-radius: 50% !important;
    box-shadow: 0 10px 30px rgba(250, 219, 194, 0.5) !important;
}

.video-popup__button:hover {
    background-color: #f2aa6f !important;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.video-popup__thumb img {
    border-radius: 30px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1) !important;
}

@media (max-width: 900px) {
    .about-mauck-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .about-mauck-image-column,
    .about-mauck-content-column {
        flex: none;
        width: 100%;
    }

    .about-mauck-image-wrapper {
        width: 100%;
        max-width: 320px;
        height: 360px;
        margin: 0 auto;
    }

    .about-mauck-main-heading {
        font-size: 28px !important;
    }

    .about-mauck-feature-list li {
        text-align: left;
        display: table;
        margin-left: auto;
        margin-right: auto;
    }

    .stats-horiz-row {
        justify-content: center !important;
        gap: 10px;
    }

    .stats-horiz-divider {
        display: none !important;
    }

    .stats-horiz-item {
        width: 45%; /* Two items per row on small screens */
        justify-content: center;
        text-align: center;
        padding: 40px 5px;
        border-bottom: none;
    }

    .stats-horiz-number-bg::before {
        font-size: 60px;
    }
}

@media (max-width: 576px) {
    .about-mauck-main-heading {
        font-size: 24px !important;
    }

    .video-popup__button {
        width: 60px !important;
        height: 60px !important;
        line-height: 60px !important;
        font-size: 18px !important;
    }

    .about-mauck-image-wrapper {
        height: 300px;
    }
}

/* ==========================================================================
   Mobile Menu & Global Footer Sync Overrides
   ========================================================================== */

/* Match Mobile Menu (Offcanvas) background to Dark Header color */
.common-offcanvas {
    background-color: #1C2D37 !important;
}

/* Sidebar Header Alignment (Logo & Close button on same line) */
.common-offcanvas .flx-between {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 25px 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

/* Constrain Mobile Logo */
.common-offcanvas .mobile-menu__logo {
    max-width: 150px !important;
    display: block !important;
}

.common-offcanvas .mobile-menu__logo img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Close Button Styling & Position */
.common-offcanvas .close-button {
    width: 32px !important;
    height: 32px !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    outline: none !important;
}

/* Ensure mobile menu items and icons are visible */
.common-offcanvas .nav-menu .menu-item a,
.common-offcanvas .address-list__text,
.common-offcanvas .address-list__icon i,
.common-offcanvas .close-button i,
.common-offcanvas .social-list__link i {
    color: #ffffff !important;
}

.common-offcanvas .mobile-menu__logo .site-title {
    color: #ffffff !important;
}

/* Nav Menu Mobile Spacing */
.common-offcanvas .nav-menu--mobile li {
    padding: 10px 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Border color for search input in dark offcanvas */
.common-offcanvas .common-input--light {
    border-color: rgba(255, 255, 255, 0.1) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}

.common-offcanvas .common-input--light::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Ensure Footer consistency if any overlaps occur */
.footer-area.bg-gray {
    background-color: #f8f8f8 !important;
    /* Standard clean gray for consistency */
}

/* ==========================================================================
   Header Logo & Fit Adjustments
   ========================================================================== */

/* Increase Header Height/Padding for larger logos */
.header-4 {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    min-height: 110px;
    display: flex;
    align-items: center;
}

/* Constrain Logo dimensions to prevent overlap */
.site-logo img,
.logo img {
    max-height: 80px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block;
}

/* Ensure vertical centering for all header elements */
.header-4 .header-inner {
    width: 100%;
    align-items: center !important;
}

/* Adjust mobile logo as well */
@media (max-width: 991px) {
    .header-4 {
        min-height: 90px;
    }

    .site-logo img,
    .logo img {
        max-height: 60px !important;
    }
}

/* ==========================================================================
   Homepage 7 Mobile Responsiveness Fixes
   ========================================================================== */

@media (max-width: 991px) {

    /* 1. Team Members Overlap Fix */
    .team-card_wrapp,
    .team-item__content {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        padding: 15px !important;
    }

    .team-card_title,
    .team-item__name {
        font-size: 18px !important;
        margin-bottom: 5px !important;
    }

    /* 2. Real Estate Service Cards - Definitive Icon Visibility & Fix */
    .service-icon-v2 {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        margin: 0 auto 20px auto !important;
        width: 70px !important;
        height: 70px !important;
        background: #ea8a3c !important;
        /* Force background color */
        border-radius: 50% !important;
        overflow: visible !important;
    }

    .service-icon-v2 i,
    .service-icon-v2 svg,
    .service-icon-v2 img {
        display: block !important;
        font-size: 28px !important;
        /* Force icon size */
        width: auto !important;
        height: auto !important;
        color: #ffffff !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .service-card-v2 {
        padding: 30px 20px !important;
        margin-bottom: 20px !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* 3. Why Work with Les Mauck - Side-by-Side Checklist Fix (ALL VARIATIONS) */

    /* Force horizontal layout for ALL checklist variants on mobile */
    .check-list__item,
    .about-mauck-list-item,
    .about-mauck-feature-list li,
    .elementor-icon-list-item,
    .elementor-icon-box-wrapper {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
        text-align: left !important;
        gap: 12px !important;
        margin-bottom: 12px !important;
        padding-left: 0 !important;
        width: 100% !important;
    }

    /* Ensure icons/images don't shrink or wrap */
    .check-list__item .icon,
    .check-list__item img,
    .about-mauck-list-item i,
    .about-mauck-list-item img,
    .about-mauck-feature-list li::before,
    .elementor-icon-list-icon,
    .elementor-icon-box-icon,
    .elementor-icon {
        flex-shrink: 0 !important;
        margin: 5px 0 0 0 !important;
        position: static !important;
        transform: none !important;
        width: auto !important;
        min-width: 16px !important;
        display: block !important;
    }

    /* Force content alignment for icon boxes on mobile */
    .elementor-icon-box-content {
        text-align: left !important;
        display: block !important;
        width: 100% !important;
    }

    /* General Container Adjustments */
    .services-three-area,
    .about-mauck-section,
    .about-contents {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
}