#searchAgenciesForm {
  display: flex;
  width: 100%;
  align-items: center;
  margin: 0 0 130px 0;
  justify-content: space-between;
  padding: 0;
}

.search-agencies-container {
  margin-bottom: 120px;
}
.searchAgenciesBtnContainer {
  display: flex;
  padding: 0 !important;
}
.searchAgenciesBtnsContainer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 10px;

  @media screen and (max-width: 576px) {
    justify-content: center;
  }
}

#searchAgenciesInput {
  width: 100%;
  border-radius: 40px;
  height: 50px;
  margin: 0;
  padding: 8px 20px;
}

.search-agencies-btn-label {
  text-align: center;
  font-size: 18px;
  justify-content: center;
  font-style: normal;
  font-weight: 600;
  display: flex;
  align-items: center;
  @media screen and (max-width: 576px) {
    width: 100%;
  }
}

.agencies-list {
  height: 80vh;
  overflow-y: scroll;
  padding: 0 10px;
  transition: transform 1s;
}

.agencies-list-item:hover {
  border-radius: 10px;
  box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transform: scale(1.01);
}
.leaflet-popup-content > .agencies-list-item:hover {
  box-shadow: none !important;
  transform: none !important;
}
.agencies-list::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 7px;
  height: 3px;
}
.agencies-list::-webkit-scrollbar-track {
  height: 5px !important;
  background-color: #ffffff;
}
.agencies-list::-webkit-scrollbar-thumb {
  border-radius: 4px !important;
  height: 3px;
  background: #b2b0b0 !important;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5) !important;
}
.agencies-list > .scrollbar {
  max-width: 300px;
  overflow: auto;
  -webkit-overflow-scrolling: auto;
}
.agencies-list > .scrollbar-child {
  width: 500px;
}

.search-agencies-submit-btn {
  height: 50px;
}

.agencies-list-item {
  border-radius: 10px;

  background: #ffffff;
  padding: 10px 35px;
  margin: 20px 0;
  display: grid;
}

.agencies-list-item > span {
  width: fit-content;
  display: block;
  text-align: end;
  margin-top: 10px;
  padding: 0;
}
.agencies-list-item .base_link_button a:not(.iconLeft)::after {
  content: "";
}
.agencies-list-item .base_link_button a:not(.iconLeft) {
  padding: 0.6rem !important;
}
.agencies-list-item > span,
.agencies-list-item > p {
  font-size: 18px;
  font-style: normal;
  line-height: 22px;
}

.agencies-list-item > span.agencies-list-title {
  margin-bottom: 0.62rem;
  text-align: left;
  font-size: 24px;
  font-style: normal;
  line-height: 30px; /* 125% */
  letter-spacing: 0.24px;
  color: var(--color14);
  letter-spacing: 0.24px;
  font-family: "NeuePlak-SemiBold", sans-serif;
  font-weight: 600;
}

.agencies-list-cta {
  justify-self: center;
}
.agencies-list-cta > a {
  padding: 0 1.25rem !important;
}
#agencies-list-cta > .agencies-list-cta-link::after {
  margin-left: 0;
}
.agencies-map-container {
  display: flex;
  padding: 0 0 20px 0 !important;
  flex-direction: column;
  padding-bottom: 0 !important;
}

.mapContactContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 1.5rem;
  gap: 1rem;
  @media screen and (max-width: 992px) {
    display: none;
  }
}
.mapContactContainerMobile {
  display: none;
  @media screen and (max-width: 992px) {
    display: flex;
  }
  @media screen and (max-width: 530px) {
    flex-direction: column;
    margin: 1rem 0;
  }
}

.mapContactContainerMobile .agencies-list-cta {
  @media screen and (max-width: 530px) {
    padding: 0;
  }
}

.mapContactContainer p {
  font-size: 18px;
  font-style: normal;
  line-height: 22px;
}

#map {
  flex-grow: 1;
  z-index: 0;
  min-height: 500px;
  max-height: 650px;
}

.agencies-is-active {
  border-radius: 10px;
  box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.04);
}

.search-agencies-btn {
  display: flex !important;
  padding: 8px 30px !important;
  font-size: 14px !important;

  width: fit-content;
  color: var(--ctaFontColor) !important;
  text-transform: uppercase !important;
  background-color: var(--color14) !important;
  border: 1px solid var(--color14) !important;
  border-radius: 40px !important;
  font-family: "NeuePlak-Bold", sans-serif !important;
  align-items: center;
  justify-content: space-between;
}
.search-agencies-btn:hover {
  color: var(--ctaFontColorHover) !important;
  background-color: var(--ctaBgColorHover) !important;
}

.search-agencies-btn > svg {
  margin: 2px 10px 0 5px;
}

.search-agencies-btn:hover * {
  fill: var(--color1) !important;
}

@media screen and (max-width: 992px) {
  #searchAgenciesForm {
    margin-bottom: 30px;
  }

  .search-agenciesForm-input-container {
    margin-bottom: 30px;
  }
  .searchAgenciesBtnContainer {
    justify-content: center;
  }

  .agencies-list-main-container {
    flex-direction: column-reverse;
  }

  .search-agencies-btn {
    font-size: 11px !important;
  }
}
#searchAgenciesResetBtn {
  visibility: hidden;
}
