/* Aviatrip Bus Mobile Results V8.8.4 R2
 * Restores native Infobus scrolling and prevents the compact result filter
 * from sticking underneath the Aviatrip mobile header.
 */
@media (max-width: 720px) {
    /* Keep the widget's own overflow/scroll model untouched. */
    .avbus-widget-stage {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scroll-margin-top: calc(var(--avbus-mobile-header-offset, 78px) + 12px);
    }

    .avbus-widget-root {
        scroll-margin-top: calc(var(--avbus-mobile-header-offset, 78px) + 12px);
    }

    /* Only the compact filter identified by the companion JS is normalized.
       No result list or routes container is resized or given overflow rules. */
    .avbus-widget-root .avbus-v884-filter-flow {
        position: relative !important;
        inset: auto !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        z-index: 12 !important;
        width: auto !important;
        max-width: 100% !important;
        max-height: none !important;
        margin: 8px 0 14px !important;
        transform: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        border-radius: 14px !important;
        box-shadow: 0 8px 22px rgba(8, 35, 72, .09) !important;
        scroll-margin-top: calc(var(--avbus-mobile-header-offset, 78px) + 14px);
    }
}
