/* Power search — filter chips, live count, location typeahead */
body.search-power-mode .btn-next {
  display: none !important;
}
body.search-power-mode .search-power-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 0;
  margin: 0 0 12px;
  padding: 0;
}

body.search-power-mode .search-power-chips:empty {
  display: none;
  margin: 0;
}

body.search-power-mode .search-power-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 5px 10px 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 13px;
  line-height: 1.3;
  backdrop-filter: blur(6px);
}

body.search-power-mode .search-power-chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.search-power-mode .search-power-chip-remove {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 14px;
  line-height: 16px;
  cursor: pointer;
}

body.search-power-mode .search-power-chip-remove:hover {
  background: rgba(255, 255, 255, 0.35);
}

body.search-power-mode .search-power-chip--muted {
  opacity: 0.85;
  font-style: italic;
}

body.search-power-mode .search_option_button .btn-thm {
  min-width: 120px;
}

body.search-power-mode .search_option_button .btn-thm.is-count-loading {
  opacity: 0.82;
  pointer-events: none;
}

body.search-power-mode .search_option_button .search-count-badge {
  display: inline-block;
  margin-left: 4px;
  font-weight: 600;
}

@media (max-width: 767px) {
  body.search-power-mode .search-power-chips {
    margin-bottom: 10px;
  }

  body.search-power-mode .search-power-chip {
    font-size: 12px;
    padding: 4px 8px 4px 10px;
  }
}

body.search-power-mode .search-location-wrap {
  position: relative;
}

body.search-power-mode #input_search_address {
  cursor: text;
  background: #fff;
}

body.search-power-mode .hero-location-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 130;
  max-height: 320px;
  overflow: auto;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
}

body.search-power-mode .hero-location-suggest__heading {
  padding: 10px 14px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
}

body.search-power-mode .hero-location-suggest__list {
  list-style: none;
  margin: 0;
  padding: 4px 0 8px;
}

body.search-power-mode .hero-location-suggest__item {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

body.search-power-mode .hero-location-suggest__item:hover,
body.search-power-mode .hero-location-suggest__item:focus {
  background: #f3f4f6;
}

body.search-power-mode .hero-location-suggest__title {
  display: block;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
}

body.search-power-mode .hero-location-suggest__subtitle {
  display: block;
  margin-top: 2px;
  color: #6b7280;
  font-size: 12px;
}

body.search-power-mode #modalAddress .ul_address_query .hero-location-suggest__item {
  width: 100%;
}

/* More filters modal — modern layout (scoped to #advSearchModal only) */
body.theme-makler #advSearchModal .modal-content {
  border: none;
  border-radius: 20px;
  box-shadow: 0 28px 64px rgba(26, 35, 50, 0.2);
  overflow: hidden;
  background: #fff;
}

body.theme-makler #advSearchModal .modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(26, 35, 50, 0.08);
  background: linear-gradient(180deg, #fffaf6 0%, #ffffff 100%);
  align-items: center;
}

body.theme-makler #advSearchModal .modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a2332;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

body.theme-makler #advSearchModal .modal-header .close {
  margin: 0;
  padding: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #6b7280;
  opacity: 1;
  text-shadow: none;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

body.theme-makler #advSearchModal .modal-header .close span {
  pointer-events: none;
  line-height: 1;
  font-size: 26px;
}

body.theme-makler #advSearchModal .modal-header .close:hover {
  background: rgba(230, 119, 30, 0.1);
  color: #1a2332;
  transform: scale(1.04);
}

body.theme-makler #advSearchModal .modal-body {
  padding: 0;
  max-height: min(78vh, 800px);
  overflow-y: auto;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

body.theme-makler #advSearchModal .adv-search-empty-hint {
  margin: 16px 24px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 14px;
}

body.theme-makler #advSearchModal .adv-search-property-types {
  margin: 0;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(26, 35, 50, 0.08);
  background: #fff;
}

body.theme-makler #advSearchModal .adv-search-property-types__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #1a2332;
}

body.theme-makler #advSearchModal .adv-search-property-types__hint {
  margin: 0 0 14px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.45;
}

body.theme-makler #advSearchModal .adv-search-property-types.has-selection .adv-search-property-types__hint {
  display: none;
}

body.theme-makler #advSearchModal .filter-property-types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

@media (min-width: 992px) {
  body.theme-makler #advSearchModal .filter-property-types {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

body.theme-makler #advSearchModal .filter-property-type {
  position: relative;
  margin: 0;
  cursor: pointer;
  display: block;
}

body.theme-makler #advSearchModal .filter-property-type input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

body.theme-makler #advSearchModal .filter-property-type__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 56px;
  padding: 8px 6px;
  border: 1px solid rgba(26, 35, 50, 0.12);
  border-radius: 10px;
  background: #fff;
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

body.theme-makler #advSearchModal .filter-property-type__icon {
  color: #6b7280;
  font-size: 1.05rem;
  line-height: 1;
  transition: color 0.18s ease;
}

body.theme-makler #advSearchModal .filter-property-type__label {
  font-size: 11px;
  font-weight: 600;
  color: #1a2332;
  line-height: 1.2;
}

body.theme-makler #advSearchModal .filter-property-type:hover .filter-property-type__content {
  border-color: rgba(230, 119, 30, 0.45);
  background: #fffaf6;
}

body.theme-makler #advSearchModal .filter-property-type.is-selected .filter-property-type__content,
body.theme-makler #advSearchModal .filter-property-type:has(input:checked) .filter-property-type__content {
  border-color: #e6771e;
  background: #fff4eb;
  transform: translateY(-1px);
}

body.theme-makler #advSearchModal .filter-property-type.is-selected .filter-property-type__icon,
body.theme-makler #advSearchModal .filter-property-type:has(input:checked) .filter-property-type__icon {
  color: #e6771e;
}

body.theme-makler #advSearchModal .filter-property-type input:focus-visible + .filter-property-type__content {
  outline: 2px solid #e6771e;
  outline-offset: 2px;
}

body.theme-makler #advSearchModal #adv_search_conteiner {
  animation: mkAdvFiltersIn 0.22s ease both;
}

@keyframes mkAdvFiltersIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.theme-makler #advSearchModal #adv_search_conteiner.is-waiting-type {
  display: none;
}

body.theme-makler #advSearchModal .modal-body:has(#adv_search_conteiner.is-waiting-type) {
  max-height: none;
}

body.theme-makler #advSearchModal .adv-search-property-types:not(.has-selection) {
  border-bottom: 0;
  min-height: 0;
  padding-bottom: 20px;
}

@media (max-width: 767px) {
  body.theme-makler #advSearchModal .filter-property-types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 419px) {
  body.theme-makler #advSearchModal .filter-property-types {
    grid-template-columns: 1fr 1fr;
  }
}

body.theme-makler #advSearchModal .adv-search-filter-list {
  list-style: none;
  margin: 0;
  padding: 8px 24px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  align-items: flex-start;
}

body.theme-makler #advSearchModal .adv-search-filter-list > li {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}

body.theme-makler #advSearchModal .adv-search-filter-list > li._checkbox-multiple,
body.theme-makler #advSearchModal .adv-search-filter-list > li.hr {
  flex: 0 0 100%;
  width: 100%;
}

body.theme-makler #advSearchModal .adv-search-filter-list > li.hr {
  height: 0;
  margin: 4px 0;
  padding: 0;
  border: 0;
  border-top: 1px solid rgba(26, 35, 50, 0.08);
}

body.theme-makler #advSearchModal .adv-search-filter-list > li._input_renge {
  flex: 1 1 calc(33.333% - 20px);
  min-width: 160px;
  max-width: 100%;
  padding: 0 0 2px;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

body.theme-makler #advSearchModal .adv-search-filter-list > li._input_renge h5 {
  border-bottom: none;
  margin: 0 0 6px;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #4b5563;
}

/* Compact from — to range pair */
body.theme-makler #advSearchModal .range-area {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 3px;
  border: 1px solid rgba(26, 35, 50, 0.12);
  border-radius: 10px;
  background: #f8f9fb;
}

body.theme-makler #advSearchModal .range-area .input-div {
  position: relative;
  width: auto !important;
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  float: none !important;
}

body.theme-makler #advSearchModal .range-area .input-div._first::after {
  content: "";
  display: block;
  width: 10px;
  height: 1px;
  margin: 0 4px;
  background: #9ca3af;
  flex: 0 0 auto;
}

body.theme-makler #advSearchModal .range-area .input-div input,
body.theme-makler #advSearchModal .adv-search-filter-list > li._input_renge .range-area .input-div input,
body.theme-makler #advSearchModal .adv-search-area-rooms .range-area .input-div input {
  width: 68px !important;
  min-width: 68px !important;
  max-width: 76px !important;
  flex: 0 0 68px;
  height: 30px !important;
  padding: 0 8px !important;
  border: 0 !important;
  border-radius: 7px !important;
  font-size: 12.5px !important;
  font-weight: 500;
  color: #1a2332;
  background: #fff !important;
  box-shadow: none !important;
  text-align: center;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}

body.theme-makler #advSearchModal .range-area .input-div input:focus,
body.theme-makler #advSearchModal .adv-search-filter-list > li._input_renge .range-area .input-div input:focus,
body.theme-makler #advSearchModal .adv-search-area-rooms .range-area .input-div input:focus {
  border: 0 !important;
  background: #fff !important;
  box-shadow: 0 0 0 2px rgba(230, 119, 30, 0.28) !important;
  outline: none;
}

body.theme-makler #advSearchModal .range-area .range-unit {
  display: none;
}

body.theme-makler #advSearchModal .shortcode_widget_checkbox h5 {
  margin: 4px 0 10px;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #1a2332;
}

body.theme-makler #advSearchModal li._checkbox-multiple {
  padding-top: 0 !important;
}

body.theme-makler #advSearchModal li._checkbox-multiple .ui_kit_checkbox.mb20 {
  margin-bottom: 0 !important;
}

body.theme-makler #advSearchModal .btn-group-multi {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.theme-makler #advSearchModal .btn-costum2 {
  background: #ffffff;
  border: 1px solid rgba(26, 35, 50, 0.14);
  border-radius: 8px;
  color: #374151;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  padding: 6px 11px;
  margin: 0;
  box-shadow: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

body.theme-makler #advSearchModal .btn-costum2:hover {
  border-color: rgba(230, 119, 30, 0.55);
  color: #1a2332;
  background: #fffaf6;
}

body.theme-makler #advSearchModal .btn-costum2.active,
body.theme-makler #advSearchModal .btn-costum2:active,
body.theme-makler #advSearchModal .btn-costum2:focus {
  background: #fff4eb;
  border-color: #e6771e;
  color: #9a3412;
  box-shadow: none;
}

body.theme-makler #advSearchModal .btn-costum2 input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body.theme-makler #advSearchModal .modal-footer.adv-search-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid rgba(26, 35, 50, 0.08);
  background: #fff;
  position: sticky;
  bottom: 0;
  z-index: 5;
}

body.theme-makler #advSearchModal .adv-search-clear {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  margin: 0;
  border: 1px solid rgba(26, 35, 50, 0.14);
  border-radius: 12px;
  background: #fff;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

body.theme-makler #advSearchModal .adv-search-clear i {
  font-size: 14px;
  line-height: 1;
}

body.theme-makler #advSearchModal .adv-search-clear:hover {
  color: #1a2332;
  border-color: rgba(26, 35, 50, 0.28);
  background: #f8f9fb;
  text-decoration: none;
}

body.theme-makler #advSearchModal .adv-search-modal-footer__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

body.theme-makler #advSearchModal .adv-search-dismiss {
  display: none !important;
}

body.theme-makler #advSearchModal .adv-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 168px;
  height: 46px;
  padding: 0 24px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(230, 119, 30, 0.28);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

body.theme-makler #advSearchModal .adv-search-submit i {
  font-size: 14px;
  line-height: 1;
}

body.theme-makler #advSearchModal .adv-search-submit:hover,
body.theme-makler #advSearchModal .adv-search-submit:focus {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(230, 119, 30, 0.34);
}

body.theme-makler #advSearchModal .adv-search-submit:active {
  transform: translateY(0);
}

/* Desktop — wider More Filters so filters fit without scrolling */
@media (min-width: 768px) {
  body.theme-makler #advSearchModal .modal-dialog,
  body.theme-makler #advSearchModal .modal-dialog.modal-lg {
    width: min(1040px, calc(100vw - 48px)) !important;
    max-width: min(1040px, calc(100vw - 48px)) !important;
  }

  body.theme-makler #advSearchModal .modal-header {
    padding: 22px 32px 18px !important;
  }

  body.theme-makler #advSearchModal .modal-body {
    padding-bottom: 8px !important;
    max-height: min(80vh, 840px) !important;
  }

  body.theme-makler #advSearchModal .adv-search-property-types {
    padding: 22px 32px 18px !important;
  }

  body.theme-makler #advSearchModal .adv-search-empty-hint {
    margin: 20px 32px 12px !important;
    padding: 14px 16px !important;
  }

  body.theme-makler #advSearchModal .adv-search-filter-list {
    padding: 12px 32px 28px !important;
    gap: 18px 24px !important;
  }

  body.theme-makler #advSearchModal .adv-search-filter-list > li.hr {
    margin: 8px 0 !important;
  }

  body.theme-makler #advSearchModal .adv-search-filter-list > li._input_renge {
    flex: 1 1 calc(33.333% - 24px) !important;
    min-width: 170px !important;
    padding: 0 0 4px !important;
  }

  body.theme-makler #advSearchModal .adv-search-filter-list > li._input_renge h5 {
    margin: 0 0 6px !important;
  }

  body.theme-makler #advSearchModal .range-area .input-div input {
    width: 72px !important;
    min-width: 72px !important;
    max-width: 80px !important;
    flex-basis: 72px;
    height: 30px !important;
  }

  body.theme-makler #advSearchModal .shortcode_widget_checkbox h5 {
    margin: 8px 0 10px !important;
  }

  body.theme-makler #advSearchModal .btn-group-multi {
    gap: 8px !important;
  }

  body.theme-makler #advSearchModal .btn-costum2 {
    padding: 6px 12px !important;
  }

  body.theme-makler #advSearchModal .modal-footer.adv-search-modal-footer {
    padding: 18px 32px !important;
    gap: 16px !important;
    min-height: 76px !important;
  }

  body.theme-makler #advSearchModal .adv-search-modal-footer__actions {
    gap: 12px !important;
  }

  body.theme-makler #advSearchModal .adv-search-submit {
    height: 48px !important;
    min-width: 200px !important;
    padding: 0 28px !important;
  }
}

@media (max-width: 767px) {
  body.theme-makler #advSearchModal .modal-body {
    max-height: calc(100vh - 180px);
  }

  body.theme-makler #advSearchModal .adv-search-filter-list {
    padding: 8px 16px 20px;
    gap: 14px;
  }

  body.theme-makler #advSearchModal .adv-search-filter-list > li._input_renge {
    flex: 1 1 100%;
  }

  body.theme-makler #advSearchModal .modal-footer.adv-search-modal-footer {
    flex-wrap: nowrap;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  }

  body.theme-makler #advSearchModal .adv-search-modal-footer__actions {
    width: auto;
    flex: 1 1 auto;
  }

  body.theme-makler #advSearchModal .adv-search-submit {
    width: 100%;
    min-width: 0;
  }
}

/* Search results grid — 4 cols full-width, 3 cols with Adequate Price sidebar */
#property_list.row.property_list--grid {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: -8px !important;
  margin-right: -8px !important;
  justify-content: center !important;
}

@media (min-width: 992px) {
  #property_list.row > .col-lg-3 {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  #property_list.row > .col-lg-4 {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

#property_list.row > .col-lg-3,
#property_list.row > .col-lg-4 {
  margin-bottom: 28px !important;
}

#property_list .feat_property.home3 {
  margin-bottom: 0 !important;
  height: 100%;
  display: flex !important;
  flex-direction: column !important;
}

#property_list .feat_property.home3 .thumb {
  width: auto !important;
  margin: 10px !important;
  aspect-ratio: 4 / 3;
}

#property_list .feat_property.home3 .details .tc_content {
  padding: 4px 12px 8px !important;
}

#property_list .feat_property.home3 .details .tc_content h3 {
  margin: 0 0 4px !important;
  min-height: 0 !important;
  max-height: 2.8em;
  font-weight: 400 !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
}

#property_list .feat_property.home3 .details .tc_content p {
  margin-bottom: 6px !important;
  font-size: 13px !important;
}

#property_list .feat_property.home3 .details .fp_footer {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 8px 10px 12px !important;
  margin-top: auto !important;
}

/* ---- Active filter chips: clear-all + light surfaces ---- */
body.search-power-mode .search-power-clear-all {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

body.search-power-mode .search-power-clear-all:hover,
body.search-power-mode .search-power-clear-all:focus {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

body.search-power-mode:not(.has-search-hero) .search-power-chip {
  border-color: #d1d5db;
  background: #f3f4f6;
  color: #111827;
}

body.search-power-mode:not(.has-search-hero) .search-power-chip-remove {
  background: #e5e7eb;
  color: #111827;
}

body.search-power-mode:not(.has-search-hero) .search-power-clear-all {
  border-color: #d1d5db;
  color: #374151;
}

body.search-power-mode:not(.has-search-hero) .search-power-clear-all:hover {
  background: #eef0f3;
}

body.search-power-mode #mk-more-filters-count {
  font-weight: 700;
}

body.search-power-mode #btn-adv-search.has-active-filters {
  box-shadow: inset 0 0 0 1px rgba(230, 119, 30, 0.45);
}

/* Rooms / Bedrooms quick selects (map to existing f[N][s]/[e]) */
body.theme-makler #advSearchModal .mk-range-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}

body.theme-makler #advSearchModal .mk-range-pill {
  min-width: 34px;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid rgba(26, 35, 50, 0.14);
  border-radius: 8px;
  background: #fff;
  color: #1a2332;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

body.theme-makler #advSearchModal .mk-range-pill:hover {
  border-color: rgba(230, 119, 30, 0.55);
  background: #fffaf6;
}

body.theme-makler #advSearchModal .mk-range-pill.is-active,
body.theme-makler #advSearchModal .mk-range-pill[aria-pressed="true"] {
  border-color: #e6771e;
  background: #fff4eb;
  color: #9a3412;
}

body.theme-makler #advSearchModal .mk-range-pill:focus-visible {
  outline: 2px solid #e6771e;
  outline-offset: 2px;
}

body.theme-makler #advSearchModal li._input_renge .mk-range-pills {
  margin-top: 2px;
}

/* Area + Rooms on one desktop row */
body.theme-makler #advSearchModal .adv-search-area-rooms {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 10px 24px;
  align-items: start;
}

body.theme-makler #advSearchModal .adv-search-area-rooms__col {
  min-width: 0;
}

body.theme-makler #advSearchModal .adv-search-area-rooms__col > h5 {
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
}

body.theme-makler #advSearchModal .adv-search-area-rooms__col--rooms .mk-range-pills {
  margin-bottom: 6px;
}

@media (max-width: 767px) {
  body.theme-makler #advSearchModal .adv-search-area-rooms {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* More Filters group headings */
body.theme-makler #advSearchModal .adv-search-group {
  padding: 20px 24px 4px;
}

body.theme-makler #advSearchModal .adv-search-group__title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #1a2332;
}

body.theme-makler #advSearchModal .adv-filter-group-head {
  flex: 0 0 100%;
  width: 100%;
  list-style: none;
  margin: 12px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid rgba(26, 35, 50, 0.08);
}

body.theme-makler #advSearchModal .adv-filter-group-head:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

body.theme-makler #advSearchModal .adv-filter-group-head .adv-search-group__title {
  margin: 0 0 4px;
}

/* Sticky mobile More Filters footer */
@media (max-width: 767px) {
  body.theme-makler #advSearchModal .modal-dialog {
    margin: 0;
    max-width: 100%;
    height: 100%;
  }

  body.theme-makler #advSearchModal .modal-content {
    height: 100%;
    border-radius: 0;
  }

  body.theme-makler #advSearchModal .modal-body {
    flex: 1 1 auto;
    max-height: none !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.theme-makler #advSearchModal .modal-footer.adv-search-modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 5;
    flex-wrap: nowrap;
    min-height: 68px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -10px 28px rgba(26, 35, 50, 0.1);
  }

  body.theme-makler #advSearchModal .adv-search-clear {
    min-height: 46px;
    padding: 0 12px;
  }

  body.theme-makler #advSearchModal .adv-search-submit {
    min-height: 46px;
  }

  body.theme-makler #advSearchModal .adv-search-group {
    padding: 16px 16px 4px;
  }
}

/* Empty results */
.mk-search-empty {
  padding: 28px 16px;
  text-align: center;
}

.mk-search-empty__message {
  margin: 0 0 16px;
  color: #374151;
  font-size: 15px;
  line-height: 1.45;
}

.mk-search-empty__clear {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
}
