.hma-location-finder {
  margin: 30px 0;
}

.hma-location-finder__header h2 {
  color: #00552b;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 22px;
}

.hma-location-finder__layout {
  display: grid;
  grid-template-columns: 430px 1fr;
  border: 1px solid #00552b;
}

.hma-location-finder__sidebar {
  background: #00552b;
}

.hma-location-finder__search {
  padding: 14px;
  position: relative;
}

.hma-location-finder__search::before {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  color: #00552b;
  font-size: 18px;
  font-weight: 700;
}

.hma-location-finder__input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 42px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: #003b20;
  font-size: 14px;
}

.hma-location-finder__input::placeholder {
  color: #777;
}

.hma-location-finder__filters {
  padding: 0 14px 14px;
}

.hma-location-finder__filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  color: #fff;
  font-weight: 700;
}

.hma-location-finder__filter-header button {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* Current-website style filter buttons */
.hma-location-finder__filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hma-location-finder__filter {
  min-height: 64px;
  background: #f2f2f2;
  color: #003b20;
  border: 0;
  border-radius: 0 0 14px 0;
  padding: 8px 14px;
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  font-weight: 400;
  overflow: visible;
}

.hma-location-finder__filter:hover {
  background: #ffffff;
}

.hma-location-finder__filter.active {
  background: #25e447;
}

.hma-location-finder__filter strong {
  color: #003b20;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 400;
}

.hma-location-finder__list {
  background: #fff;
  max-height: 650px;
  overflow-y: auto;
  text-align: left;
}

.hma-location-finder__card {
  padding: 14px 16px;
  border-bottom: 1px solid #dcdcdc;
  background: #fff;
  text-align: left;
}

.hma-location-finder__card:hover {
  background: #f7f7f7;
}

.hma-location-finder__card.is-active {
  border-left: 4px solid #00552b;
  background: #f2f7f4;
}

.hma-location-finder__card-main {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.hma-location-finder__card-main strong {
  display: block;
  color: #00552b;
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 5px;
}

.hma-location-finder__type {
  display: block;
  color: #333;
  font-size: 13px;
  margin-bottom: 8px;
}

.hma-location-finder__address,
.hma-location-finder__phone {
  display: block;
  color: #333;
  font-size: 14px;
  line-height: 1.35;
  margin-top: 5px;
}

.hma-location-finder__distance {
  display: block;
  margin-top: 5px;
  color: #00552b;
  font-size: 13px;
  font-weight: 700;
}

/* View location button in the sidebar cards. */
.hma-location-finder__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 14px;
  border: 2px solid #00552b;
  border-radius: 0 0 14px 0;
  background: #ffffff;
  color: #00552b;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  text-decoration: none;
}

.hma-location-finder__link:hover,
.hma-location-finder__link:focus-visible {
  border-color: #00552b;
  background: #00552b;
  color: #ffffff;
  text-decoration: none;
}

/* View location button inside the Google Maps popup. */
.hma-location-finder__popup a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 14px;
  border: 2px solid #00552b;
  border-radius: 0 0 14px 0;
  background: #ffffff;
  color: #00552b;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  text-decoration: none;
}

.hma-location-finder__popup a:hover,
.hma-location-finder__popup a:focus-visible {
  border-color: #00552b;
  background: #00552b;
  color: #ffffff;
  text-decoration: none;
}

.hma-location-finder__link:hover .hma-location-finder__link-arrow,
.hma-location-finder__link:focus-visible .hma-location-finder__link-arrow,
.hma-location-finder__popup a:hover .hma-location-finder__link-arrow,
.hma-location-finder__popup a:focus-visible .hma-location-finder__link-arrow {
  filter: brightness(0) invert(1);
}

.hma-location-finder__empty,
.hma-location-finder__map-message {
  padding: 20px;
}

.hma-location-finder__map {
  min-height: 720px;
  background: #ececec;
}

.hma-location-finder__popup {
  color: #003b20;
  line-height: 1.5;
}

.hma-location-finder__popup strong {
  color: #00552b;
}

.hma-location-finder__popup a {
  color: #00552b;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 992px) {
  .hma-location-finder__layout {
    grid-template-columns: 1fr;
  }

  .hma-location-finder__map {
    min-height: 420px;
  }
}

@media (max-width: 768px) {
  .hma-location-finder__sidebar {
    max-height: 55vh;
    overflow: hidden;
  }

  .hma-location-finder__list {
    max-height: 28vh;
    overflow-y: auto;
  }

  .hma-location-finder__map {
    min-height: 360px;
  }

  .hma-location-finder__filter {
    min-height: 56px;
    grid-template-columns: 48px 1fr;
  }
}
.hma-location-finder__search::before {
  content: "";
  width: 18px;
  height: 18px;
  display: block;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none'%3E%3Ccircle cx='11' cy='11' r='7' stroke='%2300552b' stroke-width='2'/%3E%3Cpath d='M16.5 16.5L21 21' stroke='%2300552b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.hma-location-finder__link-arrow {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-left: 4px;
  vertical-align: -1px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' stroke='%2300552b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.hma-location-finder__filter-icon {
  width: 54px;
  height: 54px;
  display: block;
  flex: 0 0 54px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.hma-icon-concrete {
  background-image: url('../images/concrete.png');
}

.hma-icon-aggregates {
  background-image: url('../images/aggreagate.png');
}

.hma-icon-services {
  background-image: url('../images/services.png');
}

.hma-icon-display {
  background-image: url('../images/imagecrete.png');
}

.hma-icon-default {
  background-image: url('../images/concrete.png');
}
