/**
 * Property Quick Search
 */

.quick-search-from {
    position:relative;
}

.search-overlay {
    position: fixed;
    top:0;
    left:0;
    right:0;
    bottom:0;
    z-index: 999;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-content {
    width:90%;
    max-width: 600px;
    position:relative;
}

.search-content #closeSearch {
    position:absolute;
    top:-50px;
    right:0;
    font-size: 1.5em;
    padding:2px 8px;
    width: 40px;
    border: 0;
    background-color: transparent;
}

.search-content #closeSearch:hover,
.search-content #closeSearch:focus{
    color:#fff;
    border-color: #fff;
}

.propertyList.open {
    max-height: 320px;
    overflow: auto;
}

.propertyList li {
    text-align: left;
    position: relative;
    background-color: #fafcfd;
    font-size: 0.875em;
    line-height: 1em;
    padding: 0.35em 0.75em;
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    cursor: pointer;
    -webkit-transition: background-color 0.3s;
    transition: background-color 0.3s;
    opacity: 1;
    margin: 0;
    transition-duration: 0ms;
}

.propertyList li:hover {
    background-color: var(--theme--primary-color);
}

.propertyList li:hover span {
    color: var(--wp--preset--color--text);
    font-weight: 600;
}

.propertyList li.closed {
    max-height: 0;
    height: 0;
    overflow: hidden;
    padding: 0;
    opacity: 0;
}

.propertyList {
    position:absolute;
    top:0;
    right:0;
    min-width:250px;
    list-style: none;
    margin-top: 52px;
    margin-left: 0;
    box-shadow: 0px 5px 8px 0px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-height: 0;
    -webkit-transition: 0.3s ease-in-out;
    transition: 0.3s ease-in-out;
    padding-left: 0;
    background-color: #f4f4f4;
    z-index: 99999;
    border-radius: var(--theme--border-radius)
}

#headerSize.compact .propertyList {

}

.search-listings-icon {
    position:relative;
    display:block;
}

.search-listings-icon::before {
    content:'\f002';
    font-family: "Font Awesome 5 Pro";
    position:absolute;
    left:20px;
    top:50%;
    transform:translateY(-50%);
    z-index:1;
    color: var(--theme--text-color);
}

.chosen-property {
    width:200px;
    padding-left:45px;
}

.chosen-property::placeholder {
    color: var(--theme--primary-color);
}

#headerSize.compact .chosen-property {
    /* padding:1em; */
    width:7.5em;
}

.search-overlay span {
    color: #000;
    width: 100%;
    height: 100%;
    padding: 7px 10px;
    text-decoration: none;
    font-weight: normal;
    transition-duration: 0ms;
}

.quickSearchListing span {
    width:100%;
}

.quick-menu form {
    display:block;
    height: 50px;
    box-shadow: 0px 3px 5px 0px rgba(0, 0, 0, 0.2);
}

.menu-icons {
    display:flex;
    align-items:center;
}

#headerSearch {
    color:var(--theme--primary-color);
    padding:1em 1.5em;
    border-radius:var(--theme--border-radius);
    margin:0;
}


.search-overlay input.chosen-property {
    -webkit-text-fill-color: var(--wp--preset--color--white);
}

/* Width */
.propertyList::-webkit-scrollbar {
    width: calc(var(--theme--border-radius) * 2);
}

/* Track */
.propertyList::-webkit-scrollbar-track {
    background: #eeeeee;
    border-radius: var(--theme--border-radius);
}

/* Handle */
.propertyList::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 10px;
    border:1px solid #eeeeee;
    border-width: calc(var(--theme--border-radius) * 0.5);
}


#headerSize.compact #homhero-search-wrapper-mobile .search-content {
    display: none;
}

#headerSize.compact #homhero-search-wrapper-mobile.active .search-content{
    display: inline-block;
}

#headerSize.compact #homhero-search-wrapper-mobile.active i{
    display: none;
}

#headerSize.compact.mobile #homhero-search-wrapper-mobile.active i{
    display: inline-block;
}

#headerSize:not(.compact) #homhero-search-wrapper-mobile{
    display: none;
}

#homhero-search-wrapper-mobile {
    line-height: 1em;
    border-radius: var(--theme--button-radius);
    text-decoration: none;
    position: relative;
    white-space: nowrap;
}

.site-header.transparent:not(.sticky) #headerSize.compact #homhero-search-wrapper-mobile > .headerButton {
    background:transparent;
}

#homhero-search-wrapper-mobile > .headerButton {
    display:flex;
    line-height:1rem;
    width: 50px;
    justify-content:center;
}

#homhero-search-wrapper-mobile.active > .headerButton {
    display:none;
}

@media screen and (max-width:782px){
    #homhero-search-wrapper-mobile > .headerButton {
        width:40px;
        height:40px;
        padding:0.75rem;
    } 
    
    #homhero-search-wrapper-mobile{
        padding: 0.5em;
        margin-right: 0;
    }
}

#headerSize.compact #homhero-search-wrapper{
    display:none;
}

.site-header.transparent:not(.sticky) #homhero-search-wrapper-mobile {
    background-color:transparent;
}

.site-header.transparent:not(.sticky) #homhero-search-wrapper-mobile i{
    color:#fff;
}


/*Mobile Quick Search Bar*/

#mobile-quick-search-bar-holder{
    position: fixed;
    left: 50%;
    transform: translate(-50%, 0);
    bottom:-50px;
    width: 100%;
    max-width: 600px;
    height:0;
    background-color:white;
    border-radius:var(--theme--border-radius) var(--theme--border-radius) 0 0;
    border:1px solid #000;
    transition: height 0.7s ease-in-out;
    z-index: 1001;
    padding: var(--theme--gutters);
}

#mobile-quick-search-bar-holder.active {
    transition: height 0.7s ease-in-out;
    height: 60vh;
    bottom: 0;

}

#mobile-quick-search-bar-holder .chosen-property{
    width:100%;
}

#mobile-quick-search-bar-holder .search-listings-icon::before{
    left:10px;
}

#mobile-quick-search-bar-holder .propertyList.open {
    max-height: 100vH;
    overflow: auto;
}

#mobile-quick-search-bar-holder .propertyList {
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: unset;
    background: white;
}

#mobile-quick-search-bar-holder .propertyList li{
    background: white;
}

div#mobile-quick-search-bar-holder.active .search-content {
    width: 100%;
}

div#headerSize.quick-search-menu.compact.mobile  div#homhero-search-wrapper-mobile {
    display: none;
}