/* SEARCH */
.search-wrap {
    max-width: 1440px;
    color: #fff;
    transition: top ease 0.3s;
    position: relative;
    width: calc(100% - 2rem);
    background: rgba(0, 130, 201, 0.96);
    border-radius: 4px;
    z-index: -100;
    box-shadow: 0px 20px 30px rgba(0, 0, 0, 0.34);
    display: flex;
    flex-direction: column;
    font-size: 1.5rem;
    height: 0;
    top: -500px;
    box-sizing: border-box;
}

.afco-site .search-wrap {
    background: rgba(0, 130, 201, 0.96);
}

.pro-site .search-wrap {
    background: rgba(180, 146, 47, 0.96);
}

.dyna-site .search-wrap {
    background: rgba(215, 25, 32, 0.96);
}

.long-site .search-wrap {
    background: rgba(235, 28, 45, 0.96);
}

body.search-clicked .search-wrap {
    height: auto;
    top: 1rem;
    z-index: 1;
    padding: 1rem;
}

.search-wrap .search-top {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Larger than phablet (also point when grid becomes active) */
@media (min-width: 800px) {
    .search-wrap .search-top {
        flex-direction: row;
    }
}

.search-wrap .search-bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.search-wrap ::-webkit-input-placeholder {
    color: #fff;
}

.search-wrap ::-moz-placeholder {
    color: #fff;
}

.search-wrap ::-ms-input-placeholder {
    color: #fff;
}

.search-wrap ::-moz-placeholder {
    color: #fff;
}

.search-keyword, .search-or, .search-select {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-content: center;
    justify-content: center;
    gap: 1rem;
    height: 40px;
}

.search-keyword {
width: 100%;
}

.search-select {
}

.search-or {
    font-size: 1.5rem;
    padding: 0 1rem;
    flex-shrink: 1;
}

.search-wrap .button {
    border-radius: 4px;
    padding: 0rem 1rem;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
}

.search-wrap input, .search-wrap select {
    margin: 0;
    padding: .5rem 1rem;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 4px;
    min-width: 50px;
    max-width: 100%;
    outline: 0;
    border-color: transparent;
    transition: border ease 0.3s;
}

.search-wrap input:hover, .search-wrap select:hover, .search-wrap input:focus, .search-wrap select:focus {
    border-color: rgba(255, 255, 255, 0.4);
}

.search-select select {
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    -o-appearance: none;
    appearance: none;
    margin-bottom: 0;
    border-radius: 4px;
}

.search-select select option {
    color: initial;
}

.search-select select {

}

/* Market Filters */
.filters {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: auto;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    -webkit-overflow-scrolling: touch;
}


.filters::-webkit-scrollbar-track {
    background-color: transparent;
}

.filters::-webkit-scrollbar {
    background-color: transparent;
}

.filters::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.4);
}

.filters ul:before {
    content: "Filter By Market";
    padding-bottom: .5rem;
    padding-right: 1rem;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.2rem;
    white-space: nowrap;
}

/* Larger than phablet (also point when grid becomes active) */
@media (min-width: 800px) {
    .filters {
        flex-direction: row;
        align-items: center;
    }

    .filters ul:before {
        padding-bottom: 0;
    }
}

.filters:empty {
    display: none;
}

.filters label {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: space-evenly;
    width: 100%;
    gap: 1rem;
    list-style: none;
    position: relative;
    cursor: pointer;
    box-sizing: border-box;
    white-space: nowrap;
}

.filters input {
    position: absolute;
    visibility: hidden;
}

.filters h3 {
    display: block;
    font-size: 1.2rem;
    text-transform: capitalize;
    margin: 0;
}

.filters ul {
    margin: 0;
    display: flex;
    align-items: center;
    flex-grow: 1;
    flex-direction: row;
    gap: .5rem;
    padding-top: 1rem;
}

.filters ul li {
    display: flex;
    align-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    padding: .5rem 1rem;
    line-height: 1;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    transition: all ease 0.3s;
    box-sizing: border-box;
}

.filters ul li a {
    color: #fff;
    text-decoration: none;
}

.filters ul li label {
    font-weight: 400;
    margin: 0 auto;
}

.filters ul li:hover {
    background: rgba(0, 0, 0, 0.7);
}

.filters ul li.selected {
    color: #0082CA;
    background: #fff;
}

.afco-site .filters ul li.selected {
    color: #0082CA;
}

.pro-site .filters ul li.selected {
    color: #B4922F;
}

.dyna-site .filters ul li.selected {
    color: #D81920;
}

.long-site .filters ul li.selected {
    color: #EB1C2D;
}

.filters ul li.selected label:after {
    display: block;
    content: "\f057";
    font-family: 'Font Awesome 5 Free';
    font-weight: 800;
    font-size: 1.5rem;
}

/* Auto Complete Styles */
.autoComplete_wrapper {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.autoComplete_wrapper input {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.autoComplete_wrapper > ul {
    position: absolute;
    max-height: 226px;
    overflow-y: scroll;
    box-sizing: border-box;
    left: 0;
    right: 0;
    margin: 0;
    margin-top: .5rem;
    padding: 0;
    z-index: 1;
    list-style: none;
    border-radius: 0.25rem;
    background-color: #fff;
    color: #333;
    border: 1px solid #eee;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.1);
    outline: none;
    transition: opacity 0.15s ease-in-out;
    -moz-transition: opacity 0.15s ease-in-out;
    -webkit-transition: opacity 0.15s ease-in-out;
}

.autoComplete_wrapper > ul[hidden], .autoComplete_wrapper > ul:empty {
    display: block;
    opacity: 0;
    transform: scale(0);
}

.autoComplete_wrapper > ul > li {
    margin: 0.25rem;
    padding: .25rem;
    text-align: left;
    border-radius: 0.25rem;
    background-color: rgba(255, 255, 255, 1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
}

.autoComplete_wrapper > ul > li mark {
    background-color: transparent;
    color: #333;
    font-weight: 700;
}

.afco-site .autoComplete_wrapper > ul > li mark {
    color: rgba(0, 130, 201, 1);
}

.pro-site .autoComplete_wrapper > ul > li mark {
    color: rgba(180, 146, 47, 1);
}

.dyna-site .autoComplete_wrapper > ul > li mark {
    color: rgba(215, 25, 32, 1);
}

.long-site .autoComplete_wrapper > ul > li mark {
    color: rgba(235, 28, 45, 1);
}

.autoComplete_wrapper > ul > li:hover, .autoComplete_wrapper > ul > li[aria-selected="true"] {
    cursor: pointer;
    background-color: #eee;
}

