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

#locations-map {
  width: 100%;
  height: 625px;
  top: 90px;
  margin-bottom: 98px;
}

#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 {
  width: 265px;
  padding: 20px;
  box-sizing: border-box;
}

#locations-map .location.vcard .fax span,
#locations-map .location.vcard .phone span {
  margin-right: 8px;
}
#locations-map .location.vcard .fax a,
#locations-map .location.vcard .fax,
#locations-map .location.vcard .phone a,
#locations-map .location.vcard .phone {
  font-family: var(--title-font) !important;
}
#locations-map .location.vcard a,
#locations-map .location.vcard div {
  font-family: var(--text-font);
  font-size: var(--font-body-medium);
  line-height: var(--line-height-medium);
  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 var(--grey-extra-light);
  padding-top: 20px;
}

#locations-map .location.vcard .description h3 {
  font-size: var(--font-body-large);
  line-height: var(--line-height-large);
  margin-top: 0;
  margin-bottom: 0;
  font-family: var(--title-font);
}

#locations-map .location.vcard .description strong {
  font-weight: 500;
}

#locations-map .location.vcard .description h4 {
  font-size: var(--font-body-medium);
  line-height: var(--line-height-medium);
  font-family: var(--text-font);
}

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

#locations-map .gm-style-iw-d + button {
  top: 0 !important;
  right: 0 !important;
}

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

.location-address {
  font-size: var(--font-body-small);
  line-height: var(--line-height-small);
  box-sizing: border-box;
  padding: 0 20px 0 40px;
  color: var(--dark-grey);
  font-family: var(--text-font);
}

.location-address .name-address {
  color: #a7081e;
  margin-bottom: 0.25rem;
  font-family: var(--title-font);
}

#location-blockform, #location-block-form {
  width: 363px;
  position: absolute;
  top: 150px;
  left: 10px;
  z-index: 1;
  height: 40px;
  background-color: #ffffff;
  padding: 0 95px 0 37px;
  box-sizing: border-box;
  max-width: 80%;
}

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

#location-blockform label,
#location-block-form 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::before,
#location-block-form::before {
  content: "";
  background-image: url("../images/new_search.png");
  position: absolute;
  width: 1rem;
  height: 1rem;
  left: 10px;
  top: 13px;
  background-size: contain;
}

#location-blockform .form-item-location,
#location-block-form .form-item-location {
  margin-top: 0;
  margin-bottom: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  box-sizing: border-box;
  position: relative;
}

#edit-location {
  position: absolute;
  box-sizing: border-box;
  width: 100%;
  border: 0;
  padding: 5px;
  font-family: var(--text-font);
  font-size: var(--font-body-small);
  line-height: var(--line-height-small);
  padding: 7px 0 10px 0;
  height: 100%;
  top: 0;
  left: 0;
}

.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:hover,
#location-block-form .form-actions:hover {
  text-decoration: none;
  border-color: rgb(0 0 0 / 30%);
}

#location-blockform .form-actions,
#location-block-form .form-actions {
  margin: 0;
  position: absolute;
  top: 5px;
  right: 5px;
  height: 30px;
  width: max-content;
  background-color: #ffffff;
  text-align: center;
  border: 1px solid black;
  font-weight: 500;
}

#location-blockform .form-actions .form-submit:hover,
#location-block-form .form-actions .form-submit:hover {
  text-decoration: none;
  border-color: rgb(0 0 0 / 30%);
}

#location-blockform .form-actions .form-submit,
#location-block-form .form-actions .form-submit {
  background-color: transparent;
  background-image: none;
  border: 0;
  height: 100%;
  width: 100%;
  font-weight: 600;
  transform: none;
  color: #000000;
  font-size: var(--font-body-medium);
  line-height: var(--line-height-medium);
  box-sizing: border-box;
  padding-bottom: 5px;
}

::placeholder {
  color: var(--grey);
  opacity: 1;
}

::-ms-input-placeholder {
  color: var(--grey);
}

/*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 input{
  width: auto;
}

#locations-map-filter label.locations-filter-label{
  padding-left: 5px;
}

#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: var(--text-font);
  font-size: var(--font-body-small);
}

.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: 2px;
  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: var(--title-font);
  font-size: var(--font-body-small);
  line-height: 27px;
  color: #000;
  margin-top: 10px;
}

#locations-map .location.vcard .name-address {
  color: #a7081e;
  position: relative;
  margin-bottom: 0.5rem;
  font-size: var(--font-body-large);
  line-height: var(--line-height-large);
  font-family: var(--title-font);
}

.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: var(--dark-grey);
}

.page--locations .ui-widget-content.ui-autocomplete {
  left: 20px;
  width: 362px !important;
  left: 10px !important;
  border: 0;
  max-height: 500px;
  overflow: auto;
  background-color: #ffffff;
  max-width: 80%;
}

.page--locations .ui-menu-item {
  border-bottom: 1px solid var(--grey-light);
  padding-bottom: 20px;
  margin-left: 0 10px;
  padding-top: 20px;
}

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

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

@media all and (max-width: 600px) {
  .mobile-hidden {
    display: none;
  }

  #locations-map .location.vcard {
    padding: 20px 10px 20px 20px;
    max-width: 100%;
  }
}
@media all and (min-width: 1921px) {
  #locations-map .location.vcard,
  #locations-map .gm-style-iw-d {
    width: 400px;
  }
  span.text-phone,
  span.text-fax {
    width: 35px;
  }

  .locations-filter-label-text {
    top: -5px;
    position: relative;
  }

  .page--locations .ui-widget-content.ui-autocomplete {
    width: 460px !important;
  }

  #location-blockform,
  #location-block-form {
    width: 460px;
    height: 60px;
    padding: 0 110px 0 37px;
  }

  #location-blockform .form-actions,
  #location-block-form .form-actions {
    top: 10px;
    height: 40px;
    width: 100px;
  }

  #location-blockform::before,
  #location-block-form::before {
    top: 23px;
  }

  #locations-map-filter-title {
    line-height: var(--line-height-large);
  }

  .pretty.p-default.p-thick .state label.locations-filter-label:after,
  .pretty.p-default.p-thick .state label.locations-filter-label:before {
    top: 8px;
  }

  #locations-map {
    width: 100%;
    height: 63vh;
    top: 90px;
    margin-bottom: 98px;
  }
}
@media all and (min-width: 3441px) {
  #locations-map .location.vcard,
  #locations-map .gm-style-iw-d {
    width: 600px;
  }

  .user-logged-in #location-blockform,
  .user-logged-in #location-block-form {
    top: 18vh;
  }

  .page--locations .ui-widget-content.ui-autocomplete {
    width: 830px !important;
  }

  #location-blockform,
  #location-block-form {
    width: 830px;
    height: 120px;
    padding: 0 200px 0 50px;
  }

  #location-blockform::before,
  #location-block-form::before {
    top: 46px;
    width: 2rem;
    height: 2rem;
  }

  #location-blockform .form-actions,
  #location-block-form .form-actions {
    top: 15px;
    width: 178px;
    height: 88px;
  }

  .locations-filter-label-text {
    top: -15px;
    position: relative;
  }

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

  .pretty.p-default.p-thick .state label.locations-filter-label:after,
  .pretty.p-default.p-thick .state label.locations-filter-label:before {
    width: 36px;
    height: 36px;
    top: 8px;
  }

  #locations-map-filter label.locations-filter-label{
    padding-left: 15px;
  }

  #locations-map {
    height: 50vh;
    top: 190px;
  }
  span.text-phone,
  span.text-fax {
    width: 75px;
  }
}
