html.mtlgc nav#home-search.primary-search {
  padding: 12px;
}

html.mtlgc .primary-search__container,
html.mtlgc .primary-search__form {
  width: 100%;
  max-width: 760px;
}

html.mtlgc .primary-search__form {
  position: relative;
  margin: 0 auto;
}

html.mtlgc div#home-search-box.primary-search__bar {
  display: flex;
  align-items: center;
  max-width: none;
  height: 52px;
  padding: 4px;
  box-sizing: border-box;
  cursor: default;
  border-radius: 24px;
  box-shadow: none;
}

html.mtlgc div#home-search-box.primary-search__bar:hover,
html.mtlgc div#home-search-box.primary-search__bar:focus-within {
  z-index: auto;
  box-shadow: none;
  transform: none;
  transition: none;
}

html.mtlgc .primary-search__field {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  height: 44px;
  min-width: 0;
}

html.mtlgc div#home-search-type-search input.primary-search__input {
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  margin: 0;
  padding: 0 50px 0 20px;
  color: #172335;
  font-size: 16px;
  font-weight: 400;
  line-height: 44px;
  text-align: left;
  appearance: none;
}

html.mtlgc div#home-search-type-search input.primary-search__input::placeholder {
  color: #4a4a4a;
  font-weight: 400;
  opacity: 1;
}

html.mtlgc div#home-search-type-search input.primary-search__input::-webkit-search-cancel-button {
  display: none;
}

html.mtlgc .primary-search__input-clear {
  position: absolute;
  top: 50%;
  right: 5px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #172335;
  background: transparent;
  font: 700 24px/1 var(--font-sans);
  cursor: pointer;
  transform: translateY(-50%);
}

html.mtlgc .primary-search__input-clear:hover {
  background: #eef2f5;
}

html.mtlgc .primary-search__input-clear[hidden] {
  display: none;
}

html.mtlgc .primary-search__sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html.mtlgc button#home-search-refine.primary-search__filter-trigger,
html.mtlgc button#home-search-submit.primary-search__submit {
  float: none;
  border: 0;
  font-family: var(--font-sans);
  cursor: pointer;
}

html.mtlgc button#home-search-refine.primary-search__filter-trigger {
  position: relative;
  display: flex;
  visibility: visible;
  pointer-events: auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: auto;
  min-width: 72px;
  height: 44px;
  margin: 0 2px;
  padding: 0 8px;
  color: #172335;
  background: transparent;
  border-left: 1px solid #d7dce2;
  font-size: 14px;
  font-weight: 400;
}

html.mtlgc button#home-search-submit.primary-search__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex: 0 0 auto;
  width: auto;
  min-width: 130px;
  height: 44px;
  padding: 0 17px;
  color: #111;
  background: var(--rep-main-color);
  border-radius: 22px;
}

html.mtlgc button#home-search-submit.primary-search__submit .search-button {
  color: #000;
  font-weight: 700;
}

html.mtlgc button#home-search-submit.primary-search__submit .icon-desktop-search-icon {
  width: 21px;
  height: 21px;
}

html.mtlgc .primary-search__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 31px;
  margin: 8px 20px 0;
  color: #172335;
  font-size: 13px;
}

html.mtlgc .primary-search__chips--empty {
  visibility: hidden;
  pointer-events: none;
}

html.mtlgc .primary-search__chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  border: 1px solid #bbbbbb;
  border-radius: 24px;
  color: #172335;
  background: #fff;
  font: inherit;
  font-weight: 400;
}

html.mtlgc button.primary-search__chip {
  cursor: pointer;
}

html.mtlgc .primary-search__chip--active span {
  margin-left: 3px;
  font-size: 17px;
  line-height: 1;
}

html.mtlgc div#home-search-type-search div#home-search-type-search-options.primary-search__suggestions {
  display: block;
  top: 46px;
  left: 0;
  z-index: 1200;
  width: 100%;
  max-height: min(360px, 55vh);
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
  overscroll-behavior: contain;
  border: 1px solid #d7dce2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(23, 35, 53, .12);
  transform: none;
  transition: none;
  animation: none;
}

html.mtlgc div#home-search-type-search div#home-search-type-search-options.primary-search__suggestions[hidden] {
  display: none;
}

html.mtlgc div#home-search-type-search div#home-search-type-search-options.primary-search__suggestions .row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  min-height: 52px;
  padding: 9px 14px;
  box-sizing: border-box;
  border-bottom: 1px solid #eceff2;
  background: #fff;
  cursor: pointer;
  touch-action: manipulation;
  transform: none;
  transition: background-color 120ms ease-out;
  animation: none;
}

html.mtlgc div#home-search-type-search div#home-search-type-search-options.primary-search__suggestions .row:last-child {
  border-bottom: 0;
}

html.mtlgc div#home-search-type-search div#home-search-type-search-options.primary-search__suggestions .row:hover,
html.mtlgc div#home-search-type-search div#home-search-type-search-options.primary-search__suggestions .row.selected {
  background: #f0f3f6;
  box-shadow: none;
  transform: none;
}

html.mtlgc div#home-search-type-search div#home-search-type-search-options.primary-search__suggestions .row .search-row-name {
  display: block;
  width: 100%;
  min-width: 0;
  color: #172335;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.25;
  text-align: left;
  overflow-wrap: anywhere;
  transition: none;
}

html.mtlgc div#home-search-type-search div#home-search-type-search-options.primary-search__suggestions .row .search-row-category {
  display: block;
  width: 100%;
  margin: 0;
  color: #66717e;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  text-align: left;
  overflow-wrap: anywhere;
  transition: none;
}

html.mtlgc .primary-search__suggestions mark {
  color: inherit;
  background: transparent;
  font-weight: 700;
}

html.mtlgc div#home-search-type-search div#home-search-type-search-options.primary-search__suggestions .primary-search__keyword-option {
  position: sticky;
  bottom: 0;
  z-index: 2;
  min-height: 48px;
  border-top: 1px solid #cbd2da;
  color: #172335;
  background: #f6f8fa;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

html.mtlgc .primary-search__panel.refine-options {
  position: absolute;
  top: 60px;
  right: 0;
  left: auto;
  z-index: 1250;
  visibility: visible;
  pointer-events: auto;
  width: min(620px, calc(100vw - 24px)) !important;
  padding: 22px;
  box-sizing: border-box;
  border: 1px solid #cecece;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(20, 32, 48, .22);
  color: #172335;
}

html.mtlgc .primary-search__panel[hidden] {
  display: none !important;
}

html.mtlgc .primary-search__panel-header,
html.mtlgc .primary-search__panel-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

html.mtlgc .primary-search__panel-header h2 {
  margin: 0;
  color: #172335;
  font-size: 22px;
}

html.mtlgc .primary-search__drag-handle {
  display: none;
}

html.mtlgc .primary-search__icon-button {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #172335;
  background: #eef2f5;
  font-size: 25px;
  cursor: pointer;
}

html.mtlgc .primary-search__fieldset {
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}

html.mtlgc .primary-search__fieldset legend {
  margin-bottom: 10px;
  color: #172335;
  font-size: 15px;
  font-weight: 800;
}

html.mtlgc .primary-search__segmented {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 3px;
  border: 0;
  border-radius: 999px;
  background: #efefef;
  overflow: hidden;
}

html.mtlgc .primary-search__segmented label {
  position: relative;
  z-index: 2;
  margin: 0;
  cursor: pointer;
}

html.mtlgc .primary-search__segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

html.mtlgc .primary-search__segmented span {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 5px 10px;
  box-sizing: border-box;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  transition: color 180ms ease-out;
}

html.mtlgc .primary-search__segmented input:checked + label span {
  color: #fff;
  background: transparent;
}

html.mtlgc .primary-search__segmented span.primary-search__segmented-selector {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  z-index: 1;
  display: block;
  width: calc((100% - 6px) / 3);
  min-height: 0;
  padding: 0;
  border-radius: 999px;
  background: #000;
  pointer-events: none;
  transform: translateX(0);
  transition: transform 220ms ease-out;
}

html.mtlgc .primary-search__segmented input[value="sale"]:checked ~ .primary-search__segmented-selector {
  transform: translateX(100%);
}

html.mtlgc .primary-search__segmented input[value="rent"]:checked ~ .primary-search__segmented-selector {
  transform: translateX(200%);
}

html.mtlgc .primary-search__segmented input:focus-visible + label span,
html.mtlgc .primary-search__type-option input:focus-visible + span,
html.mtlgc button:focus-visible,
html.mtlgc .primary-search__input:focus-visible {
  outline: 3px solid #2775b6;
  outline-offset: 2px;
}

html.mtlgc .primary-search__type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 4px;
}

html.mtlgc label.primary-search__type-option {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 4px 2px;
  box-sizing: border-box;
  border: 0;
  cursor: pointer;
}

html.mtlgc label.primary-search__type-option input {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin: 0 9px 0 0;
  accent-color: #000;
}

html.mtlgc label.primary-search__type-option span {
  line-height: 1.25;
  text-align: left;
}

html.mtlgc .primary-search__price-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

html.mtlgc .primary-search__price-value {
  flex: 0 0 auto;
  margin: 0;
  color: #000;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  text-align: right;
}

html.mtlgc input.primary-search__price-slider {
  width: 100%;
  height: 44px;
  margin: 5px 0 0;
  padding: 0;
  border: 0;
  accent-color: #000;
  cursor: pointer;
}

html.mtlgc input.primary-search__price-slider:disabled {
  cursor: not-allowed;
  opacity: .45;
}

html.mtlgc .primary-search__price-help {
  margin: 0;
  color: #66717e;
  font-size: 12px;
  line-height: 1.4;
}

html.mtlgc .primary-search__panel-actions {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #cecece;
}

html.mtlgc .primary-search__panel-actions button {
  min-height: 44px;
  padding: 8px 15px;
  border-radius: 22px;
  font-family: var(--font-sans);
  font-weight: 700;
  cursor: pointer;
}

html.mtlgc .search-heading-support,
html.mtlgc .search-zero-state__message,
html.mtlgc .search-recommendations__disclaimer {
  color: #4f5b68;
  font-size: 16px;
  line-height: 1.5;
}

html.mtlgc .search-zero-state__message {
  width: auto;
  margin: 0;
}

html.mtlgc .search-zero-state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 30px;
}

html.mtlgc .search-zero-state__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  box-sizing: border-box;
  border: 1px solid #293542;
  border-radius: 24px;
  color: #172335;
  background: #fff;
  font-weight: 700;
  text-decoration: none;
}

html.mtlgc .search-zero-state__modify {
  background: var(--rep-main-color) !important;
  border-color: var(--rep-main-color) !important;
}

html.mtlgc .search-recommendations {
  display: block;
  margin-top: 0;
  padding-top: 24px;
  border-top: 1px solid #dfe3e8;
}

html.mtlgc .search-recommendations h2 {
  margin: 0 0 8px;
  color: var(--text-color);
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.5px;
}

html.mtlgc .search-recommendations__disclaimer {
  width: auto;
  margin: 0 0 18px;
}

html.mtlgc .search-listings--recommendations {
  margin-top: 0;
}

html.mtlgc .primary-search__clear,
html.mtlgc .primary-search__cancel {
  border: 1px solid #cecece;
  color: #172335;
  background: #fff;
}

html.mtlgc .primary-search__apply {
  margin-left: auto;
  border: 0;
  color: #111;
  background: var(--rep-main-color);
}

@media (max-width: 600px) {
  html.mtlgc nav#home-search.primary-search.search-box-homepage {
    min-height: 400px;
    height: auto;
  }

  html.mtlgc div#home-search-box.primary-search__bar {
    display: grid;
    grid-template-columns: minmax(0, .45fr) minmax(0, 1.55fr);
    height: auto;
    padding: 4px;
    border-radius: 24px;
  }

  html.mtlgc .primary-search__field {
    grid-column: 1 / -1;
  }

  html.mtlgc button#home-search-refine.primary-search__filter-trigger {
    grid-column: 1;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    margin: 6px 8px 0 0;
    padding: 0 8px;
    border: 0;
    border-left: 0;
    border-radius: 22px;
    background: rgba(255, 255, 255, .94);
  }

  html.mtlgc button#home-search-submit.primary-search__submit {
    grid-column: 2;
    width: 100%;
    min-height: 44px;
    margin-top: 4px;
  }

  html.mtlgc .primary-search__panel.refine-options {
    top: 108px;
  }

  html.mtlgc div#home-search-type-search .primary-search__suggestions {
    top: 46px;
    left: 0;
    width: 100%;
    max-height: min(360px, 45dvh);
  }
}

@media (max-width: 600px) {
  html.mtlgc nav#home-search.primary-search {
    padding: 10px;
  }

  html.mtlgc .primary-search__chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 7px 4px 0;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  html.mtlgc .primary-search__chip {
    flex: 0 0 auto;
  }

  html.mtlgc .primary-search__panel.refine-options {
    position: fixed;
    inset: auto 0 0;
    width: 100% !important;
    height: auto;
    max-height: min(80dvh, 680px);
    padding: 0 16px;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    border: 1px solid #cecece;
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -10px 32px rgba(20, 32, 48, .2);
    transform: translateY(var(--primary-search-sheet-offset, 0));
    transition: transform 180ms ease-out;
    -webkit-overflow-scrolling: touch;
  }

  html.mtlgc .primary-search__panel.primary-search__panel--dragging {
    transition: none;
    user-select: none;
  }

  html.mtlgc .primary-search__panel.primary-search__panel--dismissing {
    pointer-events: none;
  }

  html.primary-search-panel-open,
  html.primary-search-panel-open body {
    overflow: hidden;
  }

  html.mtlgc .primary-search__panel-header {
    position: sticky;
    top: 0;
    z-index: 3;
    margin: 0 -16px;
    padding: 22px 16px 11px;
    border-bottom: 1px solid #cecece;
    background: #fff;
  }

  html.mtlgc .primary-search__drag-handle {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 4;
    display: block;
    width: 84px;
    height: 24px;
    cursor: grab;
    touch-action: none;
    transform: translateX(-50%);
  }

  html.mtlgc .primary-search__drag-handle::before {
    position: absolute;
    top: 7px;
    left: 50%;
    width: 42px;
    height: 4px;
    border-radius: 3px;
    background: #c4cbd3;
    content: '';
    transform: translateX(-50%);
  }

  html.mtlgc .primary-search__panel--dragging .primary-search__drag-handle {
    cursor: grabbing;
  }

  html.mtlgc .primary-search__panel-header h2 {
    font-size: 20px;
    line-height: 1.2;
  }

  html.mtlgc .primary-search__icon-button {
    width: 40px;
    height: 40px;
    font-size: 23px;
  }

  html.mtlgc .primary-search__fieldset {
    margin-top: 14px;
  }

  html.mtlgc .primary-search__fieldset legend {
    margin-bottom: 8px;
    font-size: 14px;
  }

  html.mtlgc .primary-search__segmented {
    grid-template-columns: repeat(3, 1fr);
  }

  html.mtlgc .primary-search__segmented span {
    min-height: 38px;
    padding: 4px 6px;
    font-size: 13px;
  }

  html.mtlgc .primary-search__type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 2px;
  }

  html.mtlgc label.primary-search__type-option {
    min-height: 38px;
    padding: 3px 2px;
    border: 0;
  }

  html.mtlgc label.primary-search__type-option input {
    position: static;
    width: 18px;
    height: 18px;
    margin: 0 8px 0 0;
    opacity: 1;
    pointer-events: auto;
  }

  html.mtlgc label.primary-search__type-option span {
    display: block;
    width: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 13px;
    line-height: 1.2;
    text-align: left;
  }

  html.mtlgc label.primary-search__type-option input:checked + span {
    color: #172335;
    background: transparent;
  }

  html.mtlgc .primary-search__price-value {
    margin: 0;
    font-size: 13px;
  }

  html.mtlgc input.primary-search__price-slider {
    height: 40px;
    margin-top: 2px;
  }

  html.mtlgc .primary-search__panel-actions {
    position: sticky;
    bottom: 0;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
    gap: 8px;
    margin: 18px -16px 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
  }

  html.mtlgc .primary-search__panel-actions button {
    width: 100%;
    min-height: 44px;
    padding: 7px 10px;
    font-size: 14px;
  }

  html.mtlgc .primary-search__apply {
    margin-left: 0;
  }

  html.mtlgc .primary-search__cancel {
    display: none;
  }

  html.mtlgc div#home-search-type-search .primary-search__suggestions {
    max-height: min(310px, 40dvh);
  }

  html.mtlgc div#home-search-type-search div#home-search-type-search-options.primary-search__suggestions {
    left: 0;
    width: 100%;
    border-radius: 9px;
    transform: none;
  }

  html.mtlgc div#home-search-type-search div#home-search-type-search-options.primary-search__suggestions .row {
    min-height: 58px;
    padding: 10px 14px;
  }

  html.mtlgc div#home-search-type-search div#home-search-type-search-options.primary-search__suggestions .row .search-row-name {
    font-size: 16px;
  }

  html.mtlgc div#home-search-type-search div#home-search-type-search-options.primary-search__suggestions .row .search-row-category {
    font-size: 13px;
  }

  html.mtlgc .search-zero-state__actions a {
    width: 100%;
  }

  html.mtlgc .search-zero-state,
  html.mtlgc .search-recommendations {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    box-sizing: border-box;
  }

  html.mtlgc .search-zero-state h1,
  html.mtlgc .search-zero-state__message,
  html.mtlgc .search-recommendations h2,
  html.mtlgc .search-recommendations__disclaimer {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  html.mtlgc .search-zero-state__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  html.mtlgc .search-recommendations h2 {
    font-size: 22px;
  }
}

@media (max-width: 600px) and (prefers-reduced-motion: reduce) {
  html.mtlgc .primary-search__panel.refine-options {
    transition: none;
  }
}
