/* Mobile layout */
#search-form ~ .badges-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#search-form ~ .badges-wrapper .badge {
    color: #fff;
    font-size: 0.875em;
    font-weight: 300;
    height: 36px;
    border-radius: 0;
    margin-right: 10px;
    margin-bottom: 10px;
    padding-left: 15px;
    padding-right: 15px;
    display: inline-flex;
    align-items: center;
    background-color: #434a4e;
    cursor: pointer;
}

#search-form input {
    display: inline-block;
    height: 40px;
    /* color: #495054; */  /* dark-grey-1 */
    color: #666;  /* dark-grey-2 */
    font-size: 1em;
    font-weight: 700;
    border: none;
}

#search-form input:focus,
#search-form input:focus::placeholder        
{
    color: #495054;  /* dark-grey-1 */
}

#search-form .form-group,
#search-form input {        
    background-color: #fcfcfc;   /* background-grey */
}

#search-form .form-control:focus {
    box-shadow: none;
}

#search-form {
    margin-top: 80px;
    margin-bottom: 28px;
}

#search-form + h4 {
    color: #fff;
    font-size: 1em;
    text-align: center;
    margin-bottom: 20px;
}

/* search <a href> link with icon when dropdown menu is opened */
#search-form i.fa-magnifying-glass {
    color: #999999;  /* dark-grey-3 */
    display: none;            
}

.search-wrapper {
    min-height: 1200px;
}

.desktopNav ~ .search-overlay {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: scroll;    
    background-color: #495054;  /* dark-grey-1 */
    z-index: 99999;
}
.desktopNav ~ .search-overlay .xclose-icon {
   
    display: inline;
    color: #999;
    font-size: 2em;
    position: absolute;
    top: 30px;
    right: 15px;
    cursor: pointer;
    z-index: 999999;
}

/* desktop layout */
@media (min-width: 992px) {
    #search-form {
        margin-top: 250px;        
        margin-bottom: 55px;
    }

    #search-form + h4 {
        text-align: left;
        font-size: 1.25em;
    }

    #search-form ~ .badges-wrapper .badge {
        font-size: 1em;
        height: 40px;
        margin-right: 15px;
        margin-bottom: 15px;
    }
    #search-form ~ .badges-wrapper .badge:hover {
        background-color: #52595d;
    }
    

    #search-form input {
        width: calc(100% - 65px);
        height: 80px;
        font-size: 1.75em;
        padding-left: 25px;        
    }

    #search-form i.fa-magnifying-glass {
        font-size: 2em;
        display: inline-block;
    }

    #search-form ~ .badges-wrapper {
        display: block;
    }
    
    .desktopNav ~ .search-overlay .xclose-icon {
        top: 42px;
        font-size: 3em;
    }
}