/*
 * Leaflet Search Control 1.4.6
 * Copyright 2013, Stefano Cudini - http://labs.easyblog.it/stefano-cudini/
 * Licensed under the MIT license.
 *
 * Demo:
 * http://labs.easyblog.it/maps/leaflet-search
 *
 * Repositories:
 * https://github.com/stefanocudini/leaflet-search
 * https://bitbucket.org/zakis_/leaflet-search
 *
 */

.leaflet-container .leaflet-control-search {
  position: relative;
  float: left;
  background: #fff;
  color: #1978cf;
  -moz-border-radius: .4rem;
  -webkit-border-radius: .4rem;
  border-radius: .4rem;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 1000;
  box-shadow: 0 .1rem .7rem rgba(0, 0, 0, 0.65);
  margin-left: 1rem;
  margin-top: 1rem;
}

.leaflet-control-search.search-exp {
  /*expanded*/
  box-shadow: 0 .1rem .7rem #999;
  background: #fff;
}

.leaflet-control-search .search-input {
  display: block;
  float: left;
  background: #fff;
  border: .1rem solid #666;
  border-radius: .2rem;
  height: 1.8rem;
  padding: 0 1.8rem 0 .2rem;
  margin: .3rem .5rem 0 0;
}

.leaflet-control-search .search-description {
  background-color: rgb(0, 0, 0);
  height: 2.9rem;
  line-height: 2.6rem;
  float: left;
  text-align: center;
  color: white;
  opacity: 0.7;
  width: 11rem;
  text-decoration: none;
  border: medium none;
  border-top-right-radius: .4rem;
  border-bottom-right-radius: .4rem;
}

.leaflet-control-search .search-description:hover {
  opacity: 0.8;
}

.leaflet-control-search.search-load .search-input {
  background: url('../img/loader.gif') no-repeat center right #fff;
}

.leaflet-control-search.search-load .search-cancel {
  visibility: hidden;
}

.leaflet-control-search .search-cancel {
  display: block;
  width: 2.2rem;
  height: 1.8rem;
  position: absolute;
  right: 2.2rem;
  margin: .3rem 0;
  background: url('../img/search-icon.png') no-repeat 0 -4.6rem;
  text-decoration: none;
  filter: alpha(opacity=80);
  opacity: 0.8;
}

.leaflet-control-search .search-cancel:hover {
  filter: alpha(opacity=100);
  opacity: 1;
}

.leaflet-control-search .search-cancel span {
  display: none;
  /* comment for cancel button imageless */
  font-size: 1.8rem;
  line-height: 2rem;
  color: #ccc;
  font-weight: bold;
}

.leaflet-control-search .search-cancel:hover span {
  color: #aaa;
}

.leaflet-control-search .search-button {
  display: block;
  float: left;
  width: 2.8rem;
  height: 2.8rem;
  background: url('../img/search-icon.png') no-repeat .3rem .3rem;
  border-radius: .4rem;
}

.leaflet-control-search .search-button:hover {
  background: url('../img/search-icon.png') no-repeat .2rem -2.2rem;
}


.leaflet-control-search .search-button,
.leaflet-control-search .search-button:hover {
  background-size: 2.2rem;
}

.leaflet-control-search .search-tooltip {
  position: absolute;
  top: 100%;
  left: 0;
  float: left;
  min-width: 35rem;
  max-height: 10.6rem;
  /*(.search-tip height * 5)*/
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
  -webkit-border-radius: .5rem;
  -webkit-border-top-left-radius: 0;
  -moz-border-radius: .5rem;
  -moz-border-radius-topleft: 0;
  border-radius: .5rem;
  border-top-left-radius: 0;
  background-color: rgba(0, 0, 0, 0.25);
  z-index: 1010;
  overflow-y: auto;
  overflow-x: hidden;
}

.leaflet-control-search .search-tip {
  font-size: .85em;
  margin: .2rem;
  padding: .2rem;
  display: block;
  color: black;
  background: #ddd;
  border-radius: .25em;
  text-decoration: none;
  white-space: nowrap;
  font-size: .85em;
  vertical-align: center;
}

.leaflet-control-search .search-tip-select,
.leaflet-control-search .search-tip:hover,
.leaflet-control-search .search-button:hover {
  background-color: #fff;
}

.leaflet-control-search .search-alert {
  cursor: pointer;
  clear: both;
  font-size: .75em;
  margin-bottom: .5rem;
  padding: 0 .25em;
  color: #e00;
  font-weight: bold;
  border-radius: .25em;
}

.leaflet-bar a, .leaflet-bar a:hover {
  width: 2.6rem;
  height: 2.6rem;
  font-size: 2rem;
}
