/*Updated June 2018 to match Esri 4.x JS API Search Widget Look/Feel from Calcite Template*/

.twitter-typeahead {
    font-weight: bold;
}

.esri-widget {
    box-sizing: border-box;
    font-family: "Avenir Next W00","Helvetica Neue",Helvetica,Arial,sans-serif;
}

.esri-search {
    width: 240px;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.calcite-maps .esri-search, .calcite-maps .esri-search .esri-search__input {
    line-height: 1.5;
    font-weight: 400;
}

.calcite-navbar-search.calcite-search-expander .esri-search {
    -webkit-transition: width .5s ease-out;
    -moz-transition: width .5s ease-out;
    -o-transition: width .5s ease-out;
    -ms-transition: width .5s ease-out;
    transition: width .5s ease-out;
    width: 32px;
}

.calcite-navbar-search.calcite-search-expander .esri-search {
    z-index: 1;
    -webkit-box-shadow: none;
    box-shadow: none;
    font-size: 13px;
}

.calcite-search-expander .esri-widget-button {
/*    color: #f8f8f8;*/
    color:white;
}

.calcite-search-expander .esri-widget.esri-search {
    background-color: transparent!important;
    border: 1px solid rgba(255,255,255,0);
}

.esri-search .esri-search__container {
    position: relative;
    align-items: stretch;
    flex: 1 0 100%;
}

.calcite-navbar-search.calcite-search-expander .esri-search, .calcite-navbar-search.calcite-search-expander .esri-search {
        width: 240px;
    }

@media screen and (max-width: 908px) {
    .calcite-navbar-search.calcite-search-expander .esri-search:focus, .calcite-navbar-search.calcite-search-expander .esri-search:hover {
        width: 150px;
    }
    .calcite-navbar-search.calcite-search-expander .esri-search, .calcite-navbar-search.calcite-search-expander .esri-search {
        width: 150px;
    }
    .esri-search {
        width: 150px;
    }
}

.calcite-search-expander .esri-widget.esri-search{
    border:1px solid rgba(255,255,255,.7)
}

.esri-search__input-container input::placeholder {
    visibility: visible;
}

@media screen and (max-width: 768px) {
    .cosageocoder {
        position: unset;
        margin-top: 9px;
    }
}

@media screen and (min-width: 768px) {
    .calcite-navbar-search {
        margin-top: 0;
    }
}

.calcite-navbar-search {
    display:inline-block;
    margin-right: 30px;
}

#input-form-box {
    background-color: transparent!important;
}

.calcite-search-expander .esri-widget.esri-search:hover{
    border:1px solid rgba(255,255,255,.7)
}

/*no hover*/
.calcite-search-expander .esri-widget.esri-search{
    border:1px solid rgba(255,255,255,.7)
}

#searchClear:hover, #searchButton:hover {
    background-color: rgba(255,255,255,.15);
    color: #fff;
    cursor: pointer;
}

#searchClear:hover {
    border-left:1px solid rgba(255,255,255,.7);
    border-right:1px solid rgba(255,255,255,.7);
}

#searchButton:hover {
    border-left:1px solid rgba(255,255,255,.7);
}

.calcite-search-expander .esri-menu li{
    background-color:#fff;
    color:#4c4c4c
}

.calcite-search-expander .esri-menu li:focus, .calcite-search-expander .esri-menu li:hover{
    background-color:#f4f4f4;
    color:#323232
}

.esri-widget .esri-menu, .esri-search__suggestions-menu .esri-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    padding: 0;
    margin: 5px 0 0 0;
    font-size: 14px;
    line-height: 16px;
    background-clip: padding-box;
    overflow: hidden;
    width: 100%;
    visibility: hidden;
    max-height: 0;
}

.esri-search .esri-search__suggestions-menu, .esri-search .esri-search--sources .esri-search__sources-menu {
    overflow: auto;
    visibility: visible;
    max-height: 300px;
    animation: esri-fade-in 250ms ease-out;
}

.esri-search .esri-search__warning-menu {
    z-index: 1;
    font-size: 14px;
    opacity: 0;
}

.esri-search .esri-search--warning .esri-search__warning-menu {
    transition: opacity 125ms ease-in-out;
    visibility: visible;
    opacity: 1;
    max-height: inherit;
}

.esri-search .esri-search__warning-menu {
    color:black;
    z-index: 1;
    font-size: 14px;
    transition: opacity 125ms ease-in-out;
    visibility: visible;
    opacity: 1;
    max-height: inherit;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    padding: 0;
    margin: 5px 0 0 0;
    line-height: 16px;
    background-clip: padding-box;
    overflow: hidden;
    width: 100%;
}

.esri-search .esri-search__warning-body {
    padding: 0.8em 1em;
}

.esri-search .esri-search__warning-header {
    font-weight: bold;
    margin-bottom: 5px;
}

.esri-search__input-container input::placeholder {
    font-weight:600!important;
}

#input-form-box {
    font-weight: bold;
    color: #2f4c54;
}

.calcite-navbar-search.calcite-search-expander .esri-search:focus, .calcite-navbar-search.calcite-search-expander .esri-search:hover {
    width: 240px;
}

.calcite-navbar-search.calcite-search-expander .esri-search, .calcite-navbar-search.calcite-search-expander .esri-search {
    width: 240px;
}

.calcite-navbar-search.calcite-search-expander .esri-search .esri-search__warning-menu {
    visibility:collapse
}

.calcite-navbar-search.calcite-search-expander .esri-search:focus .esri-search__warning-menu,.calcite-navbar-search.calcite-search-expander .esri-search:focus .esri-search__container .esri-search__warning-menu ,.calcite-navbar-search.calcite-search-expander .esri-search:hover .esri-search__warning-menu,.calcite-navbar-search.calcite-search-expander .esri-search:hover .esri-search__container .esri-search__warning-menu {
    visibility:visible
}

@media screen and (max-width: 950px) {
    .calcite-navbar-search.calcite-search-expander .esri-search:focus, .calcite-navbar-search.calcite-search-expander .esri-search:hover {
        width: 200px;
    }
    .calcite-navbar-search.calcite-search-expander .esri-search, .calcite-navbar-search.calcite-search-expander .esri-search {
        width: 200px;
    }
    .esri-search {
        width: 200px;
    }

}

@media screen and (max-width: 768px) {
    #cosageocoder {
        margin-right:0;
    }
}


.calcite-navbar-search.calcite-search-expander .esri-search .esri-search__container .esri-search__form {
    visibility: visible;
}
