* {
  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: #000;
  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 #000;
  border-left: 2px solid #000;
  transform: rotate(135deg);
}

#location-form {
  background: #ffffff;
  box-shadow: 10px 16px 35px #363e931c;
  color: #000000;
  border-radius: 20px;
  width: fit-content;
  padding: 6px 10px;
}

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: #000;
  margin: 0;
  font-size: 16px;
}

form#location-form input::placeholder {
  color: #000;
}

.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: #707070;
  font-size: 16px;
  text-decoration: none;
}

.map_website_url:hover,
.map_phone_num:hover {
  color: #707070;
  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;
  }
}
/* ---------- Base card ---------- */
.custom-info-window .info_box {
  max-width: 340px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* optional: subtle top accent */
.custom-info-window .top_info {
  padding: 30px 35px 35px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0));
}

/* ---------- Header row (title + distance) ---------- */
.custom-info-window .title-distance.first {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.custom-info-window .title-distance .h5 {
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
  color: #111827;
}

.custom-info-window .distance {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
}

/* ---------- Body lines ---------- */
.custom-info-window .second span {
  display: inline-block;
  font-size: 13px;
  line-height: 1.45;
  color: #334155;
  margin: 4px 0;
}

.custom-info-window .second b {
  color: #0f172a;
  font-weight: 700;
}

/* Links */
.custom-info-window a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}
.custom-info-window a:hover {
  text-decoration: underline;
}

/* Long URLs should wrap nicely */
.custom-info-window .second a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ---------- If this is a Google Maps InfoWindow ---------- */
/* Reduce Google default padding + make close button nicer */
.gm-style .gm-style-iw {
  padding: 0 !important;
  border-radius: 14px !important;
}
.gm-style .gm-style-iw-d {
  overflow: hidden !important;
}
.gm-ui-hover-effect {
  top: 6px !important;
  right: 6px !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  background: rgba(15, 23, 42, 0.06) !important;
}
.gm-ui-hover-effect:hover {
  background: rgba(15, 23, 42, 0.1) !important;
}
.gm-ui-hover-effect:active {
  background: rgba(15, 23, 42, 0.15) !important;
}

.custom-div {
  margin-top: 14px;
}

button.gm-ui-hover-effect > span {
  background-color: light-dark(#000, #fff);
  margin: 0 auto !important;
}

.search-form {
  position: absolute;
  z-index: 9;
  left: 13px;
  top: 70px;
  padding: 0;
  display: block;
  width: fit-content;
}

.form-div {
  flex: 1;
}

.search-bar input {
  padding: 5px;
  margin-right: 10px;
  width: 150px;
}

.search-bar button {
  padding: 5px 10px;
}

.result-txt {
  margin-bottom: 20px;
  font-size: 16px;
  color: #333;
}

.center_name-map {
  position: relative;
}

.search-results-container * {
  direction: ltr;
}

.search-results-container::-webkit-scrollbar {
  width: 8px;
  background-color: #f9f9f9;
}

.search-results-container::-webkit-scrollbar-thumb {
  background-color: #919191;
  border-radius: 0;
}

.search-results-container::-webkit-scrollbar-track {
  background-color: #f9f9f9;
}

.search-results {
  max-width: 700px;
  margin: auto;
  margin-top: 4rem;
}

.search-results .result-show {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.search-results .result-show .title-details {
  max-width: 275px;
  width: 275px;
}

.search-results .result-show .logo_img img {
  width: 130px;
  height: 130px;
  object-fit: contain;
}

.search-results .result-show .web_direc {
  display: flex;
  gap: 30px;
}

.search-results .result-show .web_direc a {
  color: #2a5661;
  font-weight: 600;
  text-align: center;
  width: fit-content;
}

.search-results .result-show .web_direc a img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin: auto;
}

.total_results {
  background: #6693bd;
  padding: 20px 60px;
  margin-top: 10px;
}

form#location-form input::placeholder,
form#location-form input {
  color: #000;
}

.map_pagination {
  display: flex;
  list-style: none;
  padding: 0 !important;
  justify-content: center;
}

.map_pagination li {
  margin: 0 5px;
}

.map_pagination li a {
  text-decoration: none;
  color: #555;
  border-radius: 4px;
  transition: all 0.3s;
  font-size: 30px;
  font-weight: 400;
}

.map_pagination li a:hover {
  background-color: #f0f0f0;
}

.map_pagination li.active a {
  color: #d67e2c;
  font-weight: bold;
  pointer-events: none;
}

@media (max-width: 991px) {
  .search-results {
    margin-top: 2rem;
  }

  .search-results .result-show {
    flex-direction: column;
    justify-content: start;
    text-align: start;
    gap: 20px;
    align-items: start;
    padding-bottom: 27px;
    border-bottom: 1px solid #000;
    margin: 26px;
  }

  .search-results .result-show:last-of-type {
    border-bottom: 0;
    margin-bottom: 0;
  }

  .search-results .result-show .title-details {
    width: 100%;
    max-width: 100%;
  }

  .total_results {
    padding: 20px 26px;
  }

  .map_pagination {
    background: #f0f0f0;
    padding: 12px !important;
  }
}

/* ---------- End of Google Maps InfoWindow styles ---------- */
