* {
  box-sizing: border-box;
}

#clm-map {
  width: 100%;
  height: 400px;
  z-index: 1;
}

.custom-div ::placeholder {
  text-transform: uppercase;
}

.custom-div {
  width: 100%;
  max-width: 100%;
  font-size: 18px;
}

.logo-container {
  width: 250px;
}

.logo-container img {
  width: 250px;
}

.search-form {
  width: 100%;
  max-width: 100%;
  margin: auto;
  padding-inline: 15px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.form-div {
  width: 75%;
  max-width: 100%;
  margin-left: auto;
}

.search-form #location-form button[type="submit"] {
  font-size: 0;
  position: relative;
  background-color: transparent;
  border: 0;
  border-radius: 50px;
  width: 65px;
  padding-block: 6px;
  cursor: pointer;
  padding-inline: 0 !important;
}

.search-form #location-form button[type="submit"]::after {
  content: "";
  display: block;
  width: 2px;
  height: 34px;
  background-color: #7b7b7b;
  transform: rotate(90deg) translate(-3px, -31px);
  left: 0;
  top: 5px;
  position: absolute;
}

.search-form #location-form button[type="submit"]::before {
  content: "";
  display: block;
  margin-left: 35px;
  width: 14px;
  height: 14px;
  border-top: 2px solid #7b7b7b;
  border-left: 2px solid #7b7b7b;
  transform: rotate(135deg);
}

#location-form {
  background: #f9f9f9;
  padding: 20px;
}

form#location-form label {
  display: block;
  color: #000000;
  padding-left: 11px;
}

form#location-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #00948a 50%),
    linear-gradient(135deg, #00948a 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(1em + 2px),
    calc(100% - 15px) calc(1em + 2px), calc(100% - 2.5em) 0.5em;
  background-size: 5px 5px, 5px 5px, 1px 1.5em;
  background-repeat: no-repeat;
}

form#location-form input {
  width: 200px;
  border-radius: 0;
  padding: 11px;
  outline: 0;
  border: 0;
  height: 44px;
  line-height: 1;
  background: transparent;
  color: #7b7b7b;
  margin: 0;
  font-size: 16px;
}

form#location-form input::placeholder {
  color: #7b7b7b;
}

.heading_bar {
  text-align: center;
  background-color: #1b315e;
  padding: 6px;
}

.heading_bar h2 {
  color: #fff;
  margin: 0 !important;
  padding: 0 !important;
}

.filter-div {
  position: relative;
}

.filter-main {
  position: absolute;
  right: 0;
  top: -35px;
  z-index: 2;
}

.filter-box {
  display: inline-block;
  border: 2px solid #e65c56;
  border-radius: 25px 0 0 25px;
  padding: 8px;
  color: #1b315e;
  padding-left: 18px;
  padding-right: 30px;
  font-size: 18px;
  cursor: pointer;
  background-color: #fff;
}

.filter-box #filter-form:has(.open-side) {
  padding-block: 12px;
}

.filter-box .txt {
  text-transform: uppercase;
  font-size: 18px;
}

.filter-box .filter-btn {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-box img {
  width: 28px;
  filter: brightness(0) saturate(100%) invert(15%) sepia(18%) saturate(5054%) hue-rotate(200deg) brightness(91%) contrast(91%);
}

.filter-box .filters-menu {
  width: 0;
  display: none;
  margin-top: 10px;
  height: 267px;
  overflow-y: scroll;
}

/* ===== Scrollbar CSS ===== */
/* Firefox */
.filter-box .filters-menu {
  scrollbar-width: auto;
  scrollbar-color: #e65c56 #ffffff;
}

/* Chrome, Edge, and Safari */
.filter-box .filters-menu::-webkit-scrollbar {
  width: 16px;
}

.filter-box .filters-menu::-webkit-scrollbar-track {
  background: #ffffff;
}

.filter-box .filters-menu::-webkit-scrollbar-thumb {
  background-color: #e65c56;
  border-radius: 10px;
  border: 3px solid #ffffff;
}

.filter-box .filters-menu>span {
  display: inline-block;
  margin-bottom: 20px;
}

.clear-txt {
  text-align: center;
  text-decoration: underline;
  margin-top: 20px;
  text-transform: uppercase;
  display: none;
}

.filter-box .filters-menu.open-side {
  display: block;
}

.filter-box .filters-menu label {
  margin-bottom: 8px;
  position: relative;
  display: flex;
}

.filter-box .filters-menu label span:last-child {
  padding-left: 30px;
}

.filter-box button[type="submit"] {
  font-size: 0;
  position: relative;
  background-color: transparent;
  border: 0;
  border-radius: 50px;
  width: 65px;
  padding-block: 6px;
  cursor: pointer;
  margin-left: 45px;
}

.filter-box button[type="submit"]::after {
  content: "";
  display: block;
  width: 3px;
  height: 34px;
  background-color: #e65c56;
  transform: rotate(90deg) translate(-3px, -31px);
  left: 0;
  top: 0;
  position: absolute;
}

.filter-box button[type="submit"]::before {
  content: "";
  display: block;
  margin-left: 9px;
  width: 14px;
  height: 14px;
  border-top: 3px solid #e65c56;
  border-left: 3px solid #e65c56;
  transform: rotate(135deg);
  margin-top: 1px;
}

.form-input-btn {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.form-btn-display {
  display: none;
}

.map-category {
  text-align: center;
  margin: 15px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.map-category label {
  display: inline-flex;
  align-items: center;
}

.map-category input[type="checkbox"] {
  border-radius: 50%;
}

/* Hide the default checkbox */
.styled-checkbox {
  appearance: none;
}

.filters-menu .custom-checkbox {
  position: absolute;
  left: 0;
  top: 5px;
}

/* Style the custom checkbox */
.custom-checkbox {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #00948a;
  border-radius: 50%;
  /* Makes it circular */
  position: relative;
  cursor: pointer;
  margin-right: 6px;
  vertical-align: middle;
}

.custom-checkbox.abortion-clinic {
  border-color: #e65c56;
}

.custom-checkbox.clm-client-prc {
  border-color: #00948a;
}

.custom-checkbox.non-clm-client-prc {
  border-color: #1b315e;
}

/* Add a "check" mark inside the custom checkbox when checked */
.styled-checkbox:checked+.custom-checkbox {
  background-color: #fff;
}

.styled-checkbox:checked+.custom-checkbox::after {
  content: "";
  width: 10px;
  height: 10px;
  background-color: #00948a;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.check.clm-client-prc {
  border: 1px solid #00948a;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 7px;
  position: relative;
}

.check.clm-client-prc::after {
  content: "";
  background: #00948a;
  width: 12px;
  height: 12px;
  margin-top: 3px;
  display: inline-block;
  position: absolute;
  margin-left: 3px;
  border-radius: 50%;
}

.check.abortion-clinic {
  border: 1px solid #e65c56;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 7px;
  position: relative;
}

.check.abortion-clinic::after {
  content: "";
  background: #e65c56;
  width: 12px;
  height: 12px;
  margin-top: 3px;
  display: inline-block;
  position: absolute;
  margin-left: 3px;
  border-radius: 50%;
}

.check.non-clm-client-prc {
  border: 1px solid #1b315e;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 7px;
  position: relative;
}

.check.non-clm-client-prc::after {
  content: "";
  background: #1b315e;
  width: 12px;
  height: 12px;
  margin-top: 3px;
  display: inline-block;
  position: absolute;
  margin-left: 3px;
  border-radius: 50%;
}

.styled-checkbox:checked+.custom-checkbox.abortion-clinic::after {
  background-color: #e65c56;
}

.styled-checkbox:checked+.custom-checkbox.clm-client-prc::after {
  background-color: #00948a;
}

.styled-checkbox:checked+.custom-checkbox.non-clm-client-prc::after {
  background-color: #1b315e;
}

.result-txt {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-bottom: 10px;
}

@media (max-width: 991px) {
  .result-txt {
    gap: 5px;
  }
}

.custom-info-window b {
      font-weight: 500;
}

.custom-info-window h5,
.custom-info-window .h5 {
  font-size: 16px;
  color: #000;
  margin-bottom: 7px;
}

.custom-info-window .info_top {
  display: flex;
  gap: 20px;
}

.icons {
  display: inline-block;
  background-color: #00948a;
  padding: 5px;
  border-radius: 50%;
  flex: 0 0 24px;
  margin-right: 8px;
}

.icons.clm-client-prc {
  background-color: #00948a;
}

.icons.non-clm-client-prc {
  background-color: #1b315e;
}

.icons.abortion-clinic {
  background-color: #e65c56;
}

.icons img {
  width: 14px;
  filter: brightness(0) saturate(100%) invert(98%) sepia(2%) saturate(0%) hue-rotate(214deg) brightness(102%) contrast(102%);
}

.custom-info-window {
  font-size: 14px;
  color: #000;
}

.custom-info-window .first {
  display: block;
  padding-bottom: 10px;
  margin-bottom: 8px;
  font-weight: bold;
}

.custom-info-window .first strong {
  font-weight: 700;
  color: #000;
  margin-bottom: 7px;
  display: inline-block;
}

.custom-info-window .first .first_div {
  width: 50%;
  font-size: 16px;
}

.custom-info-window .first .second_div {
  width: 50%;
  font-size: 14px;
}

.custom-info-window .second {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.gm-style .gm-style-iw-c {
  padding: 15px !important;
  z-index: 0 !important;
}

.gm-style .gm-style-iw-d::-webkit-scrollbar {
  display: none !important;
}

.gm-style-iw-chr {
  position: absolute;
  right: 0;
  top: 0;
}

.main_icon_div {
  word-break: break-word;
  flex: 0 0 47%;
  max-width: 47%;
  margin-bottom: 30px;
  display: flex;
  align-items: start;
  font-size: 14px;
}

.gm-ui-hover-effect {
  outline: none;
}

#searchcenter {
  display: flex;
  position: relative;
  max-width: 130px;
  margin-bottom: 10px;
  transition: width 0.4s ease-in-out;
}

#searchcenter input {
  max-width: 130px;
  border-radius: 50px;
  outline: 0;
  border: 0;
  font-size: 16px;
  padding: 12px 45px 12px 12px;
  height: 38px;
  line-height: 1;
  transition: width 0.4s ease-in-out;
}

#result-location span::after {
  content: " /";
}

#result-location span:last-child::after {
  content: unset;
}

#searchcenter button {
  background: unset;
  position: absolute;
  padding: 0;
  top: 0;
  bottom: 0;
  right: 15px;
}

.title-distance {
  display: flex;
  align-items: start;
  gap: 10px;
  margin-bottom: 6px;
  justify-content: space-between;
}

.map_phone_num {
  margin-top: 2px;
}

.map_website_url,
.map_phone_num {
  color: #7B7B7B;
  font-size: 16px;
  text-decoration: none;
}

.map_website_url:hover,
.map_phone_num:hover {
  color: #7B7B7B;
  text-decoration: underline;
}

.map_address_txt {
  font-size: 16px;
  margin-top: 2px;
}

.title-distance .distance {
  background: #dedede;
  border-radius: 15px;
  padding: 4px 10px;
  font-size: 14px;
  display: inline-block;
  min-width: 60px;
}

@media (max-width: 991px) {
  .search-form {
    flex-direction: column;
    align-items: center;
  }

  #location-form {
    justify-content: center;
    margin-block: 20px;
  }

  .search-form #location-form button[type="submit"]::before {
    margin-top: -3px;
  }

  .search-form #location-form button[type="submit"] {
    padding-block: 15px;
    height: 38px;
  }

  .custom-info-window .first {
    flex-direction: column;
    gap: 20px;
  }

  .custom-info-window .first .first_div,
  .custom-info-window .first .second_div {
    width: 100%;
  }

  .custom-info-window .second {
    flex-direction: column;
    gap: 0px;
  }

  .main_icon_div {
    margin-bottom: 20px;
    flex: 0 0 100%;
    max-width: 100%;
  }

  .form-div {
    width: 100%;
    max-width: 100%;
  }

  #searchcenter {
    margin: auto;
  }
}

.main_icon_div:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  #location-form {
    flex-direction: column;
    align-items: center;
  }
}

@media (min-width: 992px) {
  .gm-style .gm-style-iw-c {
    border-radius: 0 !important;
    border: 1px solid !important;
    padding: 10px !important;
  }

  .search-form #location-form button[type="submit"] {
    height: 38px;
  }
}