.location {
  width: 785px;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  background-color: #fff;
  padding: 20px;
  position: relative;
  border-radius: 3px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
	box-sizing: border-box;
}
.location *{
	box-sizing: inherit;
}
.location__field {
  position: relative;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
}
/*второй селектор для приоритета*/
.location__input,
#location-input {
  display: block;
  width: 100%;
	height: auto;
  border: 1px solid #e4e4e4;
  background: none;
  padding: 10px 18px;
  border-radius: 3px;
  font-size: 16px;
  -webkit-transition: all 0.15s ease;
  transition: all 0.15s ease;
}
.location__input:focus {
  outline: none;
}
.location__input.active ,
#location-input.active {
  border-radius: 3px 3px 0 0;
}
.location__details {
  display: none;
  padding: 0 0 20px;
  border-bottom: 1px solid #e4e4e4;
}
.location__details a {
  display: block;
  color: #06A7EA;
  line-height: 1;
  font-size: 16px;
  text-decoration: none;
  padding: 10px 15px;
  border: 1px solid #e4e4e4;
  border-top: none;
}
.location__details a:last-child {
  border-radius: 0 0 3px 3px;
}
.location__main {
  -webkit-box-flex: 0;
      -ms-flex: 0 1 auto;
          flex: 0 1 auto;
  overflow: auto;
  margin: 35px 0 15px;
}
.location__list {
  color: #333;
  -webkit-columns: 4;
          columns: 4;
  -webkit-column-gap: 20px;
          column-gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.location__list > li {
  display: inline-block;
  width: 100%;
  overflow: hidden;
}
.location__list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-bottom: 1.4em;
}
.location__list ul > li {
  margin: 0 0 0.75em;
}
.location__list a {
  color: inherit;
  text-decoration: none;
}
.location__letter {
  display: block;
  font-weight: bold;
  font-size: 20px;
  text-transform: uppercase;
  margin: 0 0 0.4em;
}
.location__footer {
  border-top: 1px solid #e4e4e4;
  padding-top: 18px;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
}
.location__filter {
  display: inline-block;
  cursor: pointer;
  line-height: 1;
  padding: 9px 17px;
  background-color: #e4e4e4;
  border-radius: 20px;
  vertical-align: middle;
  margin: 10px 7px 0 0;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.location__filter.active{
	background-color: #d7d7d7;
}
.location__mobile-filter, .location__footer .chzn-container {
  display: none;
}
.location__row .hide {
	display:none !important;
}
@media(min-width: 992px) {
	.location__input{
		-webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
	}
	.location__input:hover,
	#location-input:hover{
		border-color: #06A7EA;
	}
  .location__details a {
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }
  .location__details a:hover {
    background-color: rgba(6, 167, 234, 0.2);
		text-decoration: none;
  }
  .location__list a {
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }
  .location__list a:hover {
    color: #06A7EA;
  }
  .location__filter {
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }
  .location__filter:hover {
    background-color: #d7d7d7;
  }
}
@media(max-width: 992px) {
  .location {
    width: 480px;
  }
  .location__details {
    padding: 0;
    border: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1;
  }
  .location__details a {
    background-color: #fff;
  }
  .location__main {
    margin: 15px 0;
  }
  .location__list {
    -webkit-columns: 3;
            columns: 3;
    -webkit-column-gap: 15px;
            column-gap: 15px;
  }
  .location__list ul > li {
    margin: 0;
  }
  .location__list a {
    display: block;
    line-height: 1.5;
  }
	.location__footer{
		text-align: center;
	}
	.location__filter {
    display: none;
  }
  .location__mobile-filter, .location__footer .chzn-container {
    display: block;
    width: 100%;
    font-size: 16px;
    padding: 5px 10px;
  }
}
@media(max-width: 479px) {
  .location__list {
    -webkit-columns: 2;
            columns: 2;
  }
}