/* px_stay stay-search — sage band; the white bar is pulled up over the hero above it, promises run below. */

.px-stay-search.style-1 {
  position: relative;
  z-index: 2;
  display: flow-root;
  padding-top: 0;
  padding-bottom: var(--px-sp-6);
  background-color: var(--color-primary);
  color: var(--color-dark);
}

.px-stay-search.style-1 .px-stay-search__bar {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  margin-top: calc(-1 * var(--px-sp-11));
  border-radius: var(--px-radius);
  background-color: var(--color-white);
  box-shadow: var(--px-shadow-drop);
}

.px-stay-search.style-1 .px-stay-search__field {
  display: flex;
  align-items: center;
  gap: var(--px-sp-3);
  min-width: 0;
  padding: var(--px-sp-6);
  background-color: var(--color-white);
}

.px-stay-search.style-1 .px-stay-search__field + .px-stay-search__field {
  border-inline-start: 1px solid var(--px-border-light);
}

.px-stay-search.style-1 .px-stay-search__field:focus-within {
  outline: 2px solid var(--color-dark);
  outline-offset: -2px;
}

.px-stay-search.style-1 .px-stay-search__field > i {
  flex: none;
  font-size: var(--px-icon-lg);
  color: var(--px-accent-ink);
}

.px-stay-search.style-1 .px-stay-search__control {
  flex: 1;
  min-width: 0;
}

.px-stay-search.style-1 .px-stay-search__label {
  display: block;
  margin-bottom: var(--px-sp-1);
  font-family: var(--px-font-display);
  font-size: var(--px-fs-sm);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: var(--px-label-tracking);
  text-transform: uppercase;
  color: var(--px-muted);
}

/* Submit fills the bar height as a grid item */
.px-stay-search.style-1 .px-stay-search__btn {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--px-sp-2);
  white-space: nowrap;
}

.px-stay-search.style-1 .px-stay-search__promises {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--px-sp-2) var(--px-sp-7);
  margin: var(--px-sp-6) 0 0;
  padding: 0;
  font-family: var(--px-font-display);
  font-size: var(--px-fs-ui);
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-dark);
}

/* Hanging check icon: a wrapped line starts under the text */
.px-stay-search.style-1 .px-stay-search__promises li {
  position: relative;
  padding-inline-start: calc(var(--px-icon-md) + var(--px-sp-2));
}

.px-stay-search.style-1 .px-stay-search__promises i {
  position: absolute;
  top: 0.15em;
  left: 0;
  font-size: var(--px-icon-md);
}

/* Below xl: two columns of fields, hairline grid, submit on its own row */
@media (max-width: 1199.98px) {
  .px-stay-search.style-1 .px-stay-search__bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--bs-border-width);
    background-color: var(--px-border-light);
  }

  .px-stay-search.style-1 .px-stay-search__field + .px-stay-search__field {
    border-inline-start: 0;
  }

  .px-stay-search.style-1 .px-stay-search__btn {
    grid-column: 1 / -1;
  }

  .px-stay-search.style-1 .px-stay-search__promises {
    justify-content: flex-start;
  }
}

@media (max-width: 575.98px) {
  .px-stay-search.style-1 .px-stay-search__field {
    padding: var(--px-sp-3) var(--px-sp-4);
  }

  .px-stay-search.style-1 .px-stay-search__field > i {
    display: none;
  }

  .px-stay-search.style-1 .px-stay-search__promises {
    display: grid;
    grid-template-columns: 1fr 1fr;
    font-size: var(--px-fs-md);
  }
}
