.page--locations #header {
  position: static;
}

#locations-map {
  width: 100%;
  height: 625px;
  top: 0;
  margin-bottom: 0s;
  z-index: 0;
}

#locations-map .gm-style .gm-style-iw-c {
  -webkit-box-shadow: 20px 11px 9px 3px rgba(0, 0, 0, 0.28);
  box-shadow: 20px 11px 9px 3px rgba(0, 0, 0, 0.28);
  border-radius: 0;
}

#locations-map .location.vcard {
  margin-top: 8px;
}

#locations-map .location.vcard a {
  color: #bf0256;
}

#locations-map .location.vcard a,
#locations-map .location.vcard div {
  font-family: "Fedra Sans Alt Demi 2", "FedraSansDemi", Verdana, Times, Courier,
    sans-serif;
  font-size: 12px;
  line-height: 18px;
  font-weight: normal;
}

.location.vcard .address,
.location.vcard .phone-fax {
  padding-bottom: 20px;
}

#locations-map .gm-style .gm-style-iw-c {
  padding: 0;
}

span.text-phone,
span.text-fax {
  width: 22px;
  display: inline-block;
}

.location.vcard .description {
  border-top: 1px solid #000;
  padding-top: 20px;
}

#locations-map .location.vcard .description h3 {
  font-size: 1em;
  line-height: 1.42857em;
  margin-top: 0;
  margin-bottom: 0;
  font-family: "Fedra Sans Alt Bold 2", "FedraSansBold", Verdana, Times, Courier,
    sans-serif;
  font-weight: 400;
}

#locations-map .gm-style-iw-d {
  width: 265px;
  overflow-x: hidden !important;
}

/*FORM*/
.ui-menu.ui-autocomplete .ui-menu-item-wrapper {
  padding: 0;
}

.location-address {
  font-size: 12px;
  line-height: 14px;
  box-sizing: border-box;
  padding: 0 20px 0 40px;
  color: #5a5a5a;
}

#location-blockform {
  width: 282px;
  position: absolute;
  top: 150px;
  left: 10px;
  z-index: 1;
  height: 50px;
  background-color: #ffffff;
}

.user-logged-in #location-blockform {
  top: 250px;
}

#location-blockform label {
  height: 1px;
  overflow: hidden;
  width: 1px;
  position: absolute;
  clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%); /* browsers in the future */
  white-space: nowrap;
}

#location-blockform .form-item-location {
  margin-top: 0;
  margin-bottom: 0;
  width: 100%;
  height: 50px;
  padding: 10px;
  box-sizing: border-box;
}

#edit-location {
  box-sizing: border-box;
  width: 100%;
  font: 12px/14px "Fedra Sans Alt Book 2", "FedraSansBook";
  height: 30px;
  border: 2px solid #bababa;
  padding: 5px;
}

.ui-autocomplete .ui-menu-item-wrapper .location-address:hover {
  color: #000000;
  font-weight: bold;
}

#autocomplete-loc {
  max-height: 500px;
  width: 350px;
  box-sizing: border-box;
  overflow: hidden auto;
  border: 0;
  padding: 0;
}

#locations #autocomplete-loc ul {
  padding: 0;
  max-width: 350px;
  margin: 0;
  border: 0;
  width: 350px;
}

#main-content #autocomplete-loc a {
  font-weight: normal;
}

#main-content #autocomplete-loc a .location-address:hover {
  font-weight: bold;
}

.page-front ul#ui-id-1::before {
  content: "";
  position: a;
  position: absolute;
  height: 25px;
  width: calc(100% + 1px);
  background-color: #ffffff;
  top: -19px;
  left: 0;
  clip-path: polygon(0% 0%, 2% 50%, 98% 50%, 100% 0%, 100% 100%, 0% 100%);
}

#location-blockform .form-actions {
  margin: 0;
  position: absolute;
  top: 11px;
  right: 10px;
  height: 30px;
  width: 30px;
  background-color: #bf0256;
  text-align: center;
}

#location-blockform .form-actions .form-submit {
  background-color: transparent;
  background-image: url(../images/ico_search_white.svg);
  border: 0;
  background-size: 15px;
  height: 30px;
  width: 30px;
  background-repeat: no-repeat;
  transform: rotate(90deg);
  background-position: 5px;
}

/*Filter*/

#locations-map-filter {
  position: absolute;
  z-index: 1;
  right: 10px;
  box-shadow: -1px 1px 10px #aaa;
  background-color: #ffffff;
  top: 150px;
  transition: all 600ms ease-in-out;
  max-height: 700px;
  overflow: hidden;
}

#locations-map-filter-containner {
  padding: 0 20px 20px 20px;
}

.user-logged-in #locations-map-filter {
  top: 250px;
}

#locations-map-filter.filter-hidden {
  max-height: 0;
}

#filter-options-button {
  background-image: url("../images/locations_filter.jpg");
  height: 32px;
  width: 32px;
  background-size: cover;
  position: absolute;
  z-index: 2;
  box-shadow: -1px 1px 10px #aaa;
  top: 155px;
  right: 15px;
  cursor: pointer;
}

.user-logged-in #filter-options-button {
  top: 255px;
}

.pretty.p-default input:checked ~ .state label.locations-filter-label:after,
.pretty.p-default input:hover ~ .state label.locations-filter-label:after {
  background-image: url("../images/checked.jpg");
  background-size: cover;
  transform: scale(1) !important;
  background-size: cover;
  background-repeat: no-repeat;
}

.pretty.p-default .state label.locations-filter-label {
  font-family: "Fedra Sans Alt Demi 2", "FedraSansDemi", Verdana, Times, Courier,
    sans-serif;
  font-size: 12px;
}

.pretty.p-default.p-thick .state label.locations-filter-label:after,
.pretty.p-default.p-thick .state label.locations-filter-label:before {
  border-width: 2px;
  top: 1px;
  width: 18px;
  height: 18px;
}

.locations-filter-label-text {
  margin-left: 5px;
}

#locations-map-filter .form-item {
  margin-top: 0;
  margin-bottom: 0;
}

#locations-map-filter-title {
  padding: 0 20px 0 20px;
  font-family: "Fedra Sans Alt Bold 2", "FedraSansBold", Verdana, Times, Courier,
    sans-serif;
  font-size: 12px;
  line-height: 27px;
  color: #000;
  margin-top: 10px;
}

.name-address {
  color: #bf0256;
  position: relative;
  margin-bottom: 5px;
}

.name-address::before {
  content: "";
  background-image: url(../images/givaudan.png);
  position: absolute;
  width: 20px;
  height: 20px;
  left: -30px;
  background-size: cover;
}

.location.vcard .name-address::before {
  display: none;
}

.location.vcard {
  color: #5a5a5a;
}

.page--locations .ui-widget-content.ui-autocomplete {
  left: 20px;
  width: 282px !important;
  left: 10px !important;
  border: 0;
  /*top: 200px;*/
  max-height: 500px;
  overflow: auto;
  padding-bottom: 20px;
}

.page--locations .ui-menu-item {
  border-bottom: 1px solid #000000;
  padding-bottom: 20px;
  margin-left: 10px;
}

.page--locations .ui-menu-item:hover {
  background-color: #eee;
}

.page--locations .ui-menu-item + .ui-menu-item {
  padding-top: 20px;
}

.page--locations .ui-menu-item:last-child {
  border-bottom: 0;
}

.page--locations .leaflet-container a.leaflet-popup-close-button {
  text-indent: 50px;
  top: 10px;
  right: 10px;
  width: 21px;
  height: 21px;
  overflow: hidden;
}

.page--locations .leaflet-popup-close-button::before {
  content: "";
  background-image: url(../images/icons-sf9ac41aea9.png);
  background-position: 0 -208px;
  background-repeat: no-repeat;
  overflow: hidden;
  display: block;
  height: 25px;
  width: 25px;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 100;
}

.page--locations .leaflet-popup-content-wrapper {
  border-radius: 0;
  width: 265px;
  padding: 20px;
  box-sizing: border-box;
}

.page--locations .leaflet-popup-content {
  margin: 0;
}

@media all and (max-width: 768px) {
  .page--locations #main-content {
    position: relative;
  }

  #location-blockform,
  .user-logged-in #location-blockform {
    top: 10%;
    left: 0;
    right: 0;
    margin: auto;
  }

  .user-logged-in #locations-map-filter,
  #locations-map-filter,
  .user-logged-in #filter-options-button,
  #filter-options-button
  {
    top: 20%;
  }
}
