/* Sunstream hybrid local overrides */
#main-content {
    min-height: 50vh;
}

.fusion-mobile-navigation {
    z-index: 1200;
}

/* Keep BBB badge visible in hybrid mode */
#menu-item-302 > a {
    display: inline-block;
    width: 100px;
    height: 40px;
    background: url("../vendor/wp-content/uploads/2018/06/bbb-logo.png") no-repeat center center;
    background-size: contain;
}

/* Remove unused top-nav search UI */
.fusion-overlay-search,
.fusion-search-spacer {
    display: none !important;
}

/* Remove duplicate footer logo pseudo-element from Avada/tenant CSS */
.fusion-footer .fusion-row::before {
    content: none !important;
    display: none !important;
}

/* Remove quick search from header area */
.fusion-header-content-3-wrapper,
.fusion-header .search-container,
.fusion-header-banner .search-container {
    display: none !important;
}

/* Disable Avada sticky header behavior for this hybrid */
.fusion-header-sticky-height {
    display: none !important;
}

.fusion-sticky-header-wrapper,
.fusion-is-sticky-deprecate-deprecate .fusion-sticky-header-wrapper,
.fusion-is-sticky-deprecate-deprecate .fusion-header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    box-shadow: none !important;
}

/* Keep sticky positioning functional for results page filter bar */
#boxed-wrapper,
#wrapper,
.fusion-wrapper,
#main-content,
.rns-site-main,
.rns-container {
    overflow: visible !important;
}

.rns-results-container .search-bar-wrap {
    position: sticky !important;
    top: 0 !important;
    z-index: 2050 !important;
}

/* Move primary nav to logo row on desktop */
.fusion-header .fusion-row {
    position: relative;
}

.fusion-secondary-main-menu {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: calc(100% - 250px);
    border-top: 0 !important;
    background: transparent !important;
    z-index: 1100;
}

.fusion-secondary-main-menu .fusion-row {
    padding: 0 !important;
}

.fusion-secondary-main-menu .fusion-main-menu {
    float: right !important;
    left: 0 !important;
}

/* Preserve normal stacked header layout on tablet/mobile */
@media (max-width: 1023px) {
    .fusion-secondary-main-menu {
        position: static;
        top: auto;
        right: auto;
        transform: none;
        width: 100%;
    }
}
