
/* AOK mobile compatibility fixes - 2026-05-02 */
@media (max-width: 1024px) {
    body .site-header-large-1025 {
        display: none !important;
    }

    body .site-header-small-1024 {
        display: block !important;
        background: #0a2342 !important;
    }

    body .site-header-small-1024 .container-fluid {
        max-width: 100% !important;
        overflow: visible !important;
    }

    body .site-header-small-1024 .dallas-text,
    body .site-header-small-1024 .dallas-text * {
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
        text-shadow: none !important;
    }

    body .site-header-small-1024 .aok-mobile-menu-cta,
    body .site-header-small-1024 .aok-mobile-menu-cta:visited,
    body .site-header-small-1024 .aok-mobile-menu-cta:hover,
    body .site-header-small-1024 .aok-mobile-menu-cta:focus {
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
        text-decoration: none !important;
    }

    body .site-header-small-1024 #mega-menu-wrap-mobile-menu-1,
    body .site-header-small-1024 #mega-menu-wrap-mobile-menu-1 * {
        box-sizing: border-box !important;
    }

    body .site-header-small-1024 #mega-menu-wrap-mobile-menu-1 .mega-menu-toggle + #mega-menu-mobile-menu-1,
    body .site-header-small-1024 #mega-menu-wrap-mobile-menu-1 .mega-menu-toggle.mega-menu-open + #mega-menu-mobile-menu-1 {
        top: var(--aok-mobile-menu-top, 181px) !important;
        right: 16px !important;
        left: 16px !important;
        width: calc(100vw - 32px) !important;
        max-width: none !important;
        max-height: calc(100dvh - var(--aok-mobile-menu-top, 181px) - 18px) !important;
        z-index: 10000000000 !important;
    }

    body .site-header-small-1024 #mega-menu-wrap-mobile-menu-1 #mega-menu-mobile-menu-1 a.mega-menu-link,
    body .site-header-small-1024 #mega-menu-wrap-mobile-menu-1 #mega-menu-mobile-menu-1 a.mega-menu-link:visited {
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
    }

    body .site-header-small-1024 #mega-menu-wrap-mobile-menu-1 #mega-menu-mobile-menu-1 a.mega-menu-link:hover,
    body .site-header-small-1024 #mega-menu-wrap-mobile-menu-1 #mega-menu-mobile-menu-1 li.mega-toggle-on > a.mega-menu-link {
        color: #e8b921 !important;
        -webkit-text-fill-color: #e8b921 !important;
    }
}

@media (min-width: 1025px) {
    body .site-header-large-1025 {
        display: block !important;
    }

    body .site-header-small-1024 {
        display: none !important;
    }

    body #mega-menu-wrap-menu-1 #mega-menu-menu-1 > li.mega-menu-item > a.mega-menu-link,
    body #mega-menu-wrap-menu-1 #mega-menu-menu-1 > li.mega-menu-item > a.mega-menu-link:visited {
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
        text-decoration: none !important;
    }

    body #mega-menu-wrap-menu-1 #mega-menu-menu-1 > li.mega-menu-item:hover > a.mega-menu-link,
    body #mega-menu-wrap-menu-1 #mega-menu-menu-1 > li.mega-menu-item.mega-toggle-on > a.mega-menu-link,
    body #mega-menu-wrap-menu-1 #mega-menu-menu-1 > li.mega-current-menu-item > a.mega-menu-link {
        color: #e8b921 !important;
        -webkit-text-fill-color: #e8b921 !important;
    }
}

@media (max-width: 979px) {
    body .aok-location-html-page .stats-bar {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        direction: ltr !important;
        grid-template-columns: none !important;
        gap: 10px !important;
        width: 100% !important;
        height: auto !important;
        min-height: 112px !important;
        max-height: 126px !important;
        padding: 14px 16px 16px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        scroll-padding-left: 16px !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-x: contain !important;
        background: #0f1b3c !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        scrollbar-width: none !important;
    }

    body .aok-location-html-page .stats-bar::-webkit-scrollbar {
        display: none !important;
    }

    body .aok-location-html-page .stats-bar .stat-item,
    body .aok-location-html-page .stats-bar .stat-item:first-child,
    body .aok-location-html-page .stats-bar .stat-item:last-child {
        flex: 0 0 clamp(142px, 43vw, 172px) !important;
        min-width: clamp(142px, 43vw, 172px) !important;
        width: clamp(142px, 43vw, 172px) !important;
        height: auto !important;
        min-height: 82px !important;
        max-height: 96px !important;
        padding: 14px 12px !important;
        border: 1px solid rgba(255, 255, 255, 0.11) !important;
        border-radius: 10px !important;
        background: rgba(255, 255, 255, 0.045) !important;
        scroll-snap-align: start !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    }

    body .aok-location-html-page .stats-bar .stat-label {
        margin-bottom: 6px !important;
        font-size: 9.5px !important;
        letter-spacing: 0.13em !important;
        line-height: 1.25 !important;
    }

    body .aok-location-html-page .stats-bar .stat-value,
    body .aok-location-html-page .stats-bar .stat-item:first-child .stat-value,
    body .aok-location-html-page .stats-bar .stat-item:last-child .stat-value {
        max-width: 100% !important;
        font-size: 18px !important;
        line-height: 1.15 !important;
        white-space: normal !important;
    }

    body .aok-location-html-page .aok-breadcrumb {
        padding-top: 12px !important;
    }
}

@media (max-width: 359px) {
    body .site-header-small-1024 #mega-menu-wrap-mobile-menu-1 .mega-menu-toggle + #mega-menu-mobile-menu-1,
    body .site-header-small-1024 #mega-menu-wrap-mobile-menu-1 .mega-menu-toggle.mega-menu-open + #mega-menu-mobile-menu-1 {
        --aok-mobile-menu-top: 168px;
    }

    body .aok-location-html-page .stats-bar .stat-item,
    body .aok-location-html-page .stats-bar .stat-item:first-child,
    body .aok-location-html-page .stats-bar .stat-item:last-child {
        flex-basis: 150px !important;
        min-width: 150px !important;
        width: 150px !important;
    }
}


/* AOK desktop nav scaled-width fix - 2026-05-05 */
@media (min-width: 1025px) and (max-width: 1399px) {
    html body #mega-menu-wrap-menu-1 #mega-menu-menu-1 > li.mega-menu-item > a.mega-menu-link,
    html body #mega-menu-wrap-menu-1 #mega-menu-menu-1 > li.mega-menu-item > a.mega-menu-link:visited {
        white-space: nowrap !important;
        padding-left: 9px !important;
        padding-right: 9px !important;
    }

    html body .site-header-large-1025 .site-header-col-brand {
        flex: 0 0 auto !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    html body .site-header-large-1025 .site-header-col-brand img {
        flex: 0 0 auto !important;
        max-width: 100px !important;
    }

    html body .site-header-large-1025 .aok-cta-glow {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

@media (min-width: 1025px) and (max-width: 1279px) {
    html body .site-header-large-1025 .site-header-col-cta {
        display: none !important;
    }

    html body .site-header-large-1025 .site-header-col-nav-details {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}



/* AOK hero text background removal - 2026-05-05 */
body.home .slider-hero-list-item-heading-wrapper,
body.home .slider-hero-list-item-heading-wrapper.text-center.text-white {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.home .slider-hero-list-item-heading-wrapper::before,
body.home .slider-hero-list-item-heading-wrapper::after {
    display: none !important;
    background: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.aok-location-html-page .hero-content,
body.tax-listing_category .aok-location-page .hero-content,
body.tax-listing_category .aok-location-page .hero-copy,
body.tax-listing_category .aok-location-page .hero-card {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.aok-location-html-page .hero-content::before,
.aok-location-html-page .hero-content::after,
body.tax-listing_category .aok-location-page .hero-content::before,
body.tax-listing_category .aok-location-page .hero-content::after,
body.tax-listing_category .aok-location-page .hero-copy::before,
body.tax-listing_category .aok-location-page .hero-copy::after,
body.tax-listing_category .aok-location-page .hero-card::before,
body.tax-listing_category .aok-location-page .hero-card::after {
    display: none !important;
    background: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.aok-location-html-page .hero-badge,
body.tax-listing_category .aok-location-page .hero-badge {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}



/* AOK location hero background removal specificity - 2026-05-05 */
html body .aok-location-html-page .hero-content,
html body.tax-listing_category .aok-location-page .hero-content,
html body.tax-listing_category .aok-location-page .hero-copy,
html body.tax-listing_category .aok-location-page .hero-card {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

html body .aok-location-html-page .hero-content::before,
html body .aok-location-html-page .hero-content::after,
html body.tax-listing_category .aok-location-page .hero-content::before,
html body.tax-listing_category .aok-location-page .hero-content::after,
html body.tax-listing_category .aok-location-page .hero-copy::before,
html body.tax-listing_category .aok-location-page .hero-copy::after,
html body.tax-listing_category .aok-location-page .hero-card::before,
html body.tax-listing_category .aok-location-page .hero-card::after {
    display: none !important;
    background: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

html body .aok-location-html-page .hero-badge,
html body.tax-listing_category .aok-location-page .hero-badge {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}



/* AOK location nav-to-hero gap removal - 2026-05-05 */
body.tax-listing_category .site-content.mt-lg-5,
body.tax-listing_category .site-content {
    padding-top: 0 !important;
}

body.page-template-page-location-html .aok-location-html-page .aok-content-column {
    display: flex !important;
    flex-direction: column !important;
}

body.page-template-page-location-html .aok-location-html-page .aok-content-column > .hero {
    order: 1 !important;
}

body.page-template-page-location-html .aok-location-html-page .aok-content-column > .stats-bar {
    order: 2 !important;
}

body.page-template-page-location-html .aok-location-html-page .aok-content-column > .aok-breadcrumb,
body.page-template-page-location-html .aok-location-html-page .aok-content-column > .aok-byline,
body.page-template-page-location-html .aok-location-html-page .aok-content-column > .aok-freshness {
    order: 3 !important;
}

body.page-template-page-location-html .aok-location-html-page .aok-content-column > .page-wrapper,
body.page-template-page-location-html .aok-location-html-page .aok-content-column > .content-section {
    order: 4 !important;
}

body.page-template-page-location-html .aok-location-html-page .aok-content-column > .aok-breadcrumb + p,
body.page-template-page-location-html .aok-location-html-page .aok-content-column > p:has(+ .hero) {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

