/* GENERAL */
html {
  overflow-y: scroll;  
}
header, main, #no-results, footer {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}
main {
  min-height: 360px;
}
#top-column {
  width: 100%;
}
#bottom-column {
  width: 100%;
}

.clear:after {
  content: '';
  display: table;
  clear: both;
}

/* INPUT */
header {
  position: relative;
  margin-bottom: 60px;
  background-color: #fafafa;
  border-bottom: 1px solid #ebebeb;
  background: #aaa;
  border-radius: 6px;
  border: 1px solid #ccc;
  text-align: center;
  padding: 30px 15px;
}
header img {
  margin: 0px auto;
  text-align: center;
  width: 120px;
  height: auto;
}
#search{
  display: block;
  float: left;
  width: 100%;
}
#search input {
  font-size: 28px;
  font-weight: 100;
  width: 98%;
  float:left;
  padding: 10px 0 6px;
  padding-left: 10px;
  margin-bottom: 20px;
  border: none;
  background-color: #fff;
  border-radius: 2px;
  box-shadow: 0 2px 2px 0 rgba(0,0,0,0.16), 0 0 0 1px rgba(0,0,0,0.08);
  transition: box-shadow 200ms cubic-bezier(0.4, 0.0, 0.2, 1);
}
#search input, #search input:focus {
  transition: border-color .3s ease-in;
  outline: 0;
}
#search input:focus {
  border-color: #37aaea;
}
#search input::-webkit-input-placeholder, #search input:-moz-placeholder, #search input:-moz-placeholder, #search input:-ms-input-placeholder {
  font-weight: 100;
  color: #999;
}
#search-icon {
  position: relative;
}
#search-icon:before {
  position: absolute;
  right: 60px;
  top: 10px;
  width: 20px;
  height: 20px;
  content: '';
  cursor: default;
  background: url(../images/algolia/search_icon.png) no-repeat;
}
#search-icon.empty:before {
  cursor: pointer;
  background-image: url(images/algolia/delete_icon.png);
}

input[type="checkbox"], input[type="radio"]{
    margin-top:0px;
}

.ais-star-rating--item .badge{
  display:none;
}

/* HITS */
#hits {
  margin: 4px 0;
  padding: 10px 0;
  border-top: 2px solid #eee;
}
.hit {
  font-size: 0;
  padding: 20px;
  border-bottom: 1px solid #eee;
  border-radius: 6px;
  background: #fff;
  margin-bottom: 15px;
  box-shadow: 0px 0px 50px rgba(0,0,0,0.05);
  border: 1px solid rgba(255,255,255,0.05);
  transition: .2s all ease-in-out;
}
.hit-name{
  font-size: 16px;
  line-height: 18px;
}
.hit-verified{
    font-size: 12px;
    color: #ccc;
}
.hit-date{
    font-size: 12px;
    color: #aaa;
    float: right;
}
.hit-content {
  font-size: 13px;
  font-weight: 300;
  display: inline-block;
  width: 98%;
  margin-left: 2%;
  vertical-align: top;
}
.hit-content h2 {
  color: #000;
}
.hit-content .hit-location {
  font-size: 13px;
  line-height: 15px;
  float: left;
  /*color: #bbb;*/
  color: #008029;
  display: block;
  width: 100%;
  clear:both;
}
.hit-content .hit-location, .hit-content .hit-name {
  font-weight: normal;
  margin-top: 0;
}
.hit-content em {
  font-style: normal;
  background: #fbdde0;
}
.hit-content .hit-description {
  color: #000;
  margin-top: 15px;
  font-size: 16px;
  line-height: 20px;
}
.hit-details{
  color: rgba(0,0,0,.8);
}
.hit-price{
  display: block;
  width: 100%;
  text-align: right;
  font-weight: bold;
  font-size: 26px;
  color: #000;
}
.hit-price-brl{
  font-size: 14px;
  color: rgba(0,0,0,.8);
}
.hit-button{
  display: block;
  float: right;
  padding: 10px 20px;
  font-weight: bold;
  font-size: 20px;
  background: #4aba58!important;
  color: #fff!important;
  border-radius: 6px;
}
/* PAGINATION */
#pagination {
  margin-top: 60px;
}
#pagination ul {
  font-size: 0;
  list-style-type: none;
  text-align: center;
}
#pagination li {
  font-size: 14px;
  display: inline;
}
#pagination a {
  padding: 8px 12px;
  text-decoration: none;
  color: #000;
  border: 1px solid #eee;
}
#pagination a:hover {
  background: #f5f5f5;
}
#pagination li:first-child a {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}
#pagination li:last-child a {
  border-right: 1px solid #eee;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}
#pagination li.ais-pagination--item__active a {
  color: white;
  border-color: #37aaea;
  background: #37aaea;
}
#pagination li.ais-pagination--item__active a:hover {
  cursor: default;
}
#pagination li.ais-pagination--item__disabled a {
  cursor: not-allowed;
}
#pagination li.ais-pagination--item__disabled a:hover {
  background: none;
}

/* SORT BY */
#sort-by-wrapper {
  font-weight: 300;
  position: relative;
  float: right;
  color: #999;
}

#sort-by select {
  font-size: 16px;
  padding-right: 14px;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

#sort-by:after {
  content: "";
  display: inline-block;
  position: absolute;

  top: 8px;
  right: 0;

  width: 0;
  height: 0;

  margin-left: 2px;
  vertical-align: middle;

  color: #000;
  border-top: 4px dashed;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;

  pointer-events: none;
}

/* STATS */
#stats {
  display: block;
  width: 100%;
}

#stats .ais-stats--time {
  font-size: 0.8em;
  color: #999;
}

/* FACETS */
.facet {
  display: block;
  float: left;
  width: 40%;
  margin-right: 10%;
  margin-bottom: 24px;
}
.facet h5 {
  margin: 0 0 6px;
  padding: 0 0 6px;
  text-transform: uppercase;
  border-bottom: 2px solid #eee;
}
.facet ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}
.facet li {
  margin-bottom: 3px;
}
.ais-refinement-list--label,
.ais-menu--link {
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
  color: #000;
  cursor: pointer;
  display: block;
  font-weight: normal;
}
.ais-refinement-list--item{
  overflow-x: hidden;
  word-wrap: break-word;
}
.ais-refinement-list .ais-refinement-list--header h5{
  font-weight: bold;
  font-size: 16px;
}
.ais-refinement-list--label:hover, .ais-refinement-list--item__active .ais-refinement-list--label,
.ais-menu--link:hover, .ais-menu--item__active .ais-menu--link {
  color: #37aaea;
}
.ais-refinement-list--item__active .ais-refinement-list--label:hover,
.ais-menu--item__active .ais-menu--link:hover {
  text-decoration: line-through;
  color: #37aaea;
}
.ais-refinement-list--count,
.ais-menu--count {
  display: block;
  position: relative;
  top: 3px;
  float: right;
  color: #999;
}

#type.facet .ais-refinement-list--checkbox {
  display: none;
}

/* NO RESULTS */
.no-results #pagination, .no-results #sort-by, .no-results #stats, .no-results #facets {
  display: none;
}
#no-results-message {
  text-align: center;
}
#no-results-message p {
  font-size: 28px;
  font-weight: 100;
}
#no-results-message ul {
  list-style-type: none;
}
#no-results-message li {
  font-size: 12px;
  position: relative;
  display: inline-block;
  margin: 4px 2px;
  padding: 4px 28px 4px 8px;
  color: #999;
  border: 1px solid #ddd;
  border-radius: 12px;
}
#no-results-message li span.value {
  font-weight: bold;
  color: #000;
}
#no-results-message li a.remove img {
  position: absolute;
  top: 3px;
  right: 5px;
  float: right;
  width: 17px;
  height: 17px;
  opacity: .5;
}
#no-results-message li a.remove:hover img {
  opacity: 1;
}
a.clear-all {
  font-size: 12px;
  line-height: 1;
  display: inline-block;
  margin: 10px;
  padding: 8px 12px;
  text-decoration: none;
  color: black;
  border: 2px solid #ddd;
  border-radius: 4px;
}
a.clear-all:hover {
  transition: border-color .3s ease-in;
  border-color: #999;
}

/* SLIDER */
.ais-range-slider--target {
  margin: 40px 30px 40px 0;
  font-size: 13px;
}

.ais-range-slider--connect {
  background: #37aaea;
}

.ais-range-slider--handle {
  border-color: #37aaea;
}

/* FOOTER */
footer {
  font-size: 14px;
  margin-top: 200px;
  margin-bottom: 24px;
  text-align: center;
}
footer a {
  text-decoration: none;
  color: #37aaea;
}
footer a:hover {
  text-decoration: underline;
  color: #37aaea;
}
