﻿/* search bar */
.search-bar-wrapper {
    display: none;
    position: relative;
    top: 81px;
}
.search-bar {
    height: auto;
    padding: 15px;
    border: solid 1px #00f6bb;
    border-top: none;
    background-color: #353535;
    position: relative;
    top: -81px;
    border-radius: 8px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    display: inline-block;
    width: 100%; 

}
.search-bar__form {
    border-bottom: solid #ccc 2px;
}
.search-bar__input[type='text'], .search-bar__input[type='text']:focus {
    color: white;
    padding: 3px;
    width: 94%;
    background-color: inherit;
    border: none;
    outline: none;
    margin-bottom: -1px;
}

/* search content */
.search-content {
    display: none;
    position: fixed;
    background: rgba(34, 34, 34, 0.9);
    width: 100%;
    height: 100%;
    padding: 50px 20px 0;
    left: 0;
    top: 81px;
    z-index: -1;
}
.search-content__accordian-tabs {
    display: none;
}
.search-modal {
    width: auto;
    max-width: 1140px;
    margin: 50px auto;
    display: flex;
    flex-flow: row;
    align-items: stretch;
    justify-content: space-between;
    max-height: 303px;
}
.index-banner__reviews--search {
    overflow: hidden; 
    border-radius: 8px; 
    width: 32%;
    float: right;
    height: auto;
}
.index-banner__reviews-inner {
    overflow-y: auto;
    height: 100%;
}

/* Mobile */
@media screen and (max-width: 991px) { 
    .search-bar-wrapper {
        top: 0;
    }
    .search-bar {
        top: 0;
    }
    .index-banner__reviews-inner {
        display: block;
    }
    .search-bar__input[type='text'] {
        width: 80%;
    }
    .search-bar__buttons {
        width: 14%;
    }
    .search-content {
        display: none;
        position: fixed;
        background: rgba(34, 34, 34, 0.9);
        width: 100%;
        height: 100%;
        padding-top: 50px;
        left: 0;
        top: 81px;
        z-index: -1;
    }
    .search-content__accordian-tabs {
        background-color: #FFFFFF;
        border-radius: 8px;
        width: 90%;
        margin: 0 auto;
        overflow: hidden;
        position: relative;
        display: flex;
        flex-flow: row nowrap;
        justify-content: space-around;
        font-weight: bold;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-bottom: solid 1px #ddd;
    }
    .search-content__accordian-tab-col {
        border-left: solid 1px #ddd;
        padding: 8px 0;
        width: 34%;
        text-align: center;
        cursor: pointer;
    }

    .search-content__accordian-tab-col.active {
        background-color: #00c394;
        color: #fff;
    }

    .search-content__accordian-tab-col:first-of-type {
        border-left: none;
    }
    .search-modal {
        margin: 0 auto;
        width: 90%;
        max-height: 315px;
    }
    .index-banner__reviews.index-banner__reviews--search {
        width: 100%;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        display: none;
    }

    .index-banner__reviews.index-banner__reviews--search:first-of-type {
        display: block;
    }
}

