#gs-map {
  display: flex;
  flex-wrap: wrap;
  word-break: break-word;
}

#gs-map h2 {
  font-size: 22px;
  margin-bottom: 0;
}

#gs-map strong {
  color: #39393a;
}

#map {
  height: 500px;
  min-height: 100%;
}

#gs-map-controls {
  width: 350px;
  padding: 30px 25px;
  box-shadow: 0px 4px 40px rgba(0, 0, 0, 0.1);
  border-radius: 10px 0px 0px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.map-wrap {
  flex-grow: 1;
  overflow: hidden;
  position: relative;
}

#gs-map-controls button {
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
  color: #565656;
}

#gs-map-input-field {
  background: #eaeaea;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 14px;
  font-weight: 400;
}

#gs-map-controls h5 {
  margin-bottom: 10px;
}

#gs-map-loader {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  position: absolute;
  left: 0;
  background-image: url(/wp-content/plugins/gs-map/assets/preview-img.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#gs-map-loader::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  left: 0;
  z-index: -1;
}

#gs-map-loader img {
  width: 50px;
}

#gs-map-loader.gs-map-hide-loader {
  display: none;
}

.gs-autocomplete-option {
  padding: 10px 20px;
  background: #fff;
  margin-top: 20px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

#gs-map-error {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2f2f2;
  display: none;
}

#gs-map-error.gs-map-show-error {
  display: flex;
}

#gs-map-services {
  margin-top: 25px;
}

#gs-map-services ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

#gs-map-services ul li {
  padding-top: 15px;
  display: flex;
  align-items: center;
  width: 50%;
  font-size: 14px;
  text-wrap: nowrap;
}

#gs-map-services ul li button {
  font-size: 14px;
  text-wrap: nowrap;
  text-decoration: none;
  display: flex;
  font-weight: 400;
}

#gs-map-services ul li button.gs-service-filter-active {
  color: var(--e-global-color-accent);
}

#gs-map-services ul li img {
  width: 15px;
  margin-right: 10px;
}

.gs-map-input-container {
  position: relative;
}

.gs-map-autocomplete-options {
  max-height: 150px;
  min-height: 0;
  overflow-y: auto;
  position: absolute;
  z-index: 1;
  width: 100%;
}

.gs-map-autocomplete-options > div {
  background: #eaeaea;
  padding: 0 10px 20px;
  border: 1px solid #ccc;
  border-radius: 0 0 4px 4px;
}

#gs-map-customer-groups {
  display: block;
  padding-top: 25px;
}

#gs-map-customer-groups strong {
  padding-bottom: 10px;
  display: block;
}

#gs-map-customer-groups ul {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  padding-left: 0;
  gap: 11px;
}

#gs-map-customer-groups ul li {
  list-style: none;
  font-size: 14px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
}

.customer-group-circle {
  width: 12px;
  height: 12px;
  background: #f2f2f2;
  display: block;
  border-radius: 100px;
}

#customer-group-circle-yksityiset {
  background: #ff1a1a;
}

#customer-group-circle-taloyhtiot {
  background: #ff7318;
}

#customer-group-circle-suurkohteet {
  background: #098415;
}

#gs-map-controls #gs-map-show-all,
#gs-map-controls #gs-map-hide-all {
  margin-top: 15px;
  display: inline-block;
  text-decoration: underline;
  font-size: 14px;
  font-weight: 400;
  border-radius: 0;
}

#gs-map-controls #gs-map-show-all {
  padding-right: 10px;
  position: relative;
}

#gs-map-controls #gs-map-show-all::after {
  width: 1px;
  height: 50%;
  top: 25%;
  content: "";
  position: absolute;
  background: #000;
  right: 0;
}

#gs-map-controls #gs-map-hide-all {
  padding-left: 5px;
}

#gs-map-controls button.gs-customer-group-filter-btn {
  text-decoration: none;
  font-size: inherit;
  display: inherit;
  align-items: inherit;
  gap: inherit;
  font-weight: inherit;
}

#gs-map-controls
  button.gs-customer-group-filter-btn.gs-customer-group-filter-btn-active {
  color: var(--e-global-color-accent);
}

@media all and (max-width: 768px) {
  #gs-map {
    flex-direction: column;
  }

  #gs-map-controls {
    width: 100%;
  }

  #gs-map-services ul li {
    text-wrap: wrap;
  }
}

@media all and (max-width: 500px) {
  #gs-map-services ul li {
    width: 100%;
  }
}

/* Text listing */

.gs-map-text-listing {
  background-color: var(--e-global-color-c7dfe26);
  padding: 20px 20px 20px 20px;
  border-radius: 8px 8px 8px 8px;
  box-shadow: 0px 0px 24px 0px rgba(0, 0, 0, 0.1);
  width: 31%;
}

.gs-map-text-listing strong {
  font-weight: 500;
  color: var(--e-global-color-secondary);
}

.gs-map-text-listing .gs-map-text-listing-name {
  color: var(--e-global-color-secondary);
}

#gs-map-text-listings {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 40px 0;
}
