/* ANM grouped amenities — scope limited to existing Half Map WP Rentals search. */
#advanced_search_map_list .extended_search_check_wrapper.anm-filters-ready {
  padding: 12px 0 6px;
  box-sizing: border-box;
}

#advanced_search_map_list .anm-filter-groups {
  box-sizing: border-box;
  width: 100%;
  clear: both;
  padding: 2px 4px 8px;
  font-size: 15px;
}

#advanced_search_map_list .anm-filter-groups-title {
  color: #153a43;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.35;
  margin: 0 36px 5px 0;
}

#advanced_search_map_list .anm-filter-groups-intro {
  color: #64717b;
  font-size: 13px;
  margin: 0 36px 16px 0;
  line-height: 1.5;
}

#advanced_search_map_list .anm-filter-section {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  border: 1px solid #dfe7e9;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

#advanced_search_map_list .anm-filter-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  list-style: none;
  font-weight: 600;
  line-height: 1.4;
  color: #153a43;
  cursor: pointer;
  user-select: none;
}

#advanced_search_map_list .anm-filter-section-heading::-webkit-details-marker {
  display: none;
}

#advanced_search_map_list .anm-filter-section-heading::after {
  content: '+';
  margin-left: 4px;
  font-size: 21px;
  font-weight: 400;
  color: #006c70;
}

#advanced_search_map_list .anm-filter-section[open] > .anm-filter-section-heading::after {
  content: '−';
}

#advanced_search_map_list .anm-filter-section-heading:focus-visible {
  outline: 2px solid #007b7f;
  outline-offset: -3px;
  border-radius: 12px;
}

#advanced_search_map_list .anm-filter-section-title {
  flex: 1;
  min-width: 0;
}

#advanced_search_map_list .anm-filter-selected-count {
  color: #006c70;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

#advanced_search_map_list .anm-filter-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 5px;
  padding: 2px 14px 14px;
}

#advanced_search_map_list .anm-filter-section-grid > .extended_search_checker {
  float: none !important;
  display: flex !important;
  align-items: flex-start;
  gap: 7px;
  width: 100% !important;
  min-width: 0;
  height: auto !important;
  margin: 5px 0 !important;
  line-height: 1.45;
}

/* WP Rentals overrides native checkboxes with a very pale 1px border.
   Make only the checkboxes inside our Half Map groups larger and higher-contrast. */
#advanced_search_map_list .anm-filter-section-grid > .extended_search_checker input[type='checkbox'] {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  position: relative;
  display: inline-block !important;
  flex: 0 0 20px;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px;
  min-height: 20px;
  margin: 1px 1px 0 0 !important;
  padding: 0 !important;
  border: 2px solid #607982 !important;
  border-radius: 5px !important;
  background: #fff !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  vertical-align: middle;
  cursor: pointer;
}

#advanced_search_map_list .anm-filter-section-grid > .extended_search_checker input[type='checkbox']:hover {
  border-color: #007b80 !important;
}

#advanced_search_map_list .anm-filter-section-grid > .extended_search_checker input[type='checkbox']:checked {
  background: #007b80 !important;
  border-color: #007b80 !important;
}

/* Override WP Rentals' small purple font-icon checkmark only inside groups. */
#advanced_search_map_list .anm-filter-section-grid > .extended_search_checker input[type='checkbox']:checked::before {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  top: 1px !important;
  left: 5px !important;
  width: 6px !important;
  height: 10px !important;
  border: solid #fff !important;
  border-width: 0 2px 2px 0 !important;
  background: transparent !important;
  transform: rotate(45deg);
  text-align: initial !important;
  font-size: 0 !important;
  box-sizing: content-box !important;
}

#advanced_search_map_list .anm-filter-section-grid > .extended_search_checker input[type='checkbox']:focus-visible {
  outline: 3px solid #79c6ca !important;
  outline-offset: 3px !important;
}

#advanced_search_map_list .anm-filter-section-grid > .extended_search_checker label {
  display: block;
  width: auto !important;
  min-width: 0;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  #advanced_search_map_list .anm-filter-groups {
    padding: 2px 0 6px;
  }
  #advanced_search_map_list .anm-filter-section-grid {
    grid-template-columns: 1fr;
    padding: 2px 12px 12px;
  }
  #advanced_search_map_list .anm-filter-section-heading {
    padding: 13px 12px;
  }
  #advanced_search_map_list .anm-filter-groups-title {
    font-size: 17px;
  }
}
