/* The same fictional returning stay, seen in a calendar or an inventory directory. */
.next-stay {
  --stay-ink: #20302d;
  --stay-muted: #4b615b;
  --stay-rule: #c9d6d0;
  --stay-paper: #fff;
  --stay-surface: #f4f7f4;
  --stay-tint: color-mix(in srgb, var(--stay-brand) 10%, var(--stay-paper));
  --stay-brand: var(--host-preview-brand, #0f5a56);
  padding-block: clamp(2.6rem, 6vw, 5rem);
  color: var(--stay-ink);
  background: var(--stay-surface);
  scroll-margin-top: 5.5rem;
}
.dark .next-stay {
  --stay-ink: #f1f6f2;
  --stay-muted: #bdcec4;
  --stay-rule: #465c51;
  --stay-paper: #192720;
  --stay-surface: #12201a;
  --stay-tint: color-mix(in srgb, var(--stay-brand) 22%, var(--stay-paper));
}
.next-stay h2 {
  margin: .4rem 0;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  line-height: 1.15;
  font-weight: 750;
}
.next-stay__intro, .next-stay__action p, .next-stay__pool p {
  margin: 0;
  line-height: 1.55;
  color: var(--stay-muted);
}
.next-stay__intro { max-width: 43rem; }
.next-stay__console {
  max-width: 61rem;
  margin-top: 1.3rem;
  overflow: hidden;
  overflow-wrap: anywhere;
  border: 1px solid var(--stay-rule);
  border-radius: 1.15rem;
  background: var(--stay-paper);
}
.next-stay__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.05rem, 3vw, 2rem);
  background: var(--stay-brand);
  color: white;
}
.next-stay__brand { flex: 1 1 12rem; min-width: 0; }
.next-stay__brand p { margin: 0; font-size: .8rem; }
.next-stay__brand h3 { margin: .2rem 0 0; font: 500 clamp(1.6rem, 3vw, 2.15rem)/1.2 Georgia, serif; }
.next-stay__switch {
  max-width: 100%;
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
  color: #fff;
}
.next-stay__switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.next-stay__switch label {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-inline-end: .15rem;
  padding: .3rem .75rem;
  border: 1px solid currentColor;
  border-radius: .6rem;
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.3;
  cursor: pointer;
}
.next-stay__switch input:checked + label { background: white; color: #23352f; }
.next-stay__switch input:focus-visible + label { outline: 2px solid currentColor; outline-offset: 2px; box-shadow: 0 0 0 4px white; }
.next-stay__body, .next-stay__context, .next-stay__walkthrough { padding: .85rem clamp(1rem, 3vw, 1.75rem); }
.next-stay__body { padding-bottom: 0; }
.next-stay__renter {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .65rem;
  margin-bottom: .65rem;
}
.next-stay__mark {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  font: italic 1.25rem Georgia, serif;
  color: white;
  background: var(--stay-brand);
}
.next-stay__identity {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .12rem .55rem;
}
.next-stay__identity small, .next-stay__selected small { color: var(--stay-muted); font-size: .8rem; }
.next-stay__renter p { margin: .2rem 0 0; font-size: .98rem; line-height: 1.4; }
.next-stay__selected {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .2rem .55rem;
  border-inline-start: .23rem solid var(--stay-brand);
  border-radius: .4rem;
  background: var(--stay-tint);
  padding: .6rem .75rem;
  font-size: .94rem;
}
.next-stay__selected small { display: block; }
.next-stay__status { font-size: .875rem; font-weight: 700; }
.next-stay__context { border-top: 1px solid var(--stay-rule); }
.next-stay__context h4 { margin: 0 0 .3rem; color: var(--stay-muted); font-size: .85rem; font-weight: 650; }
.next-stay__rows { list-style: none; margin: 0; padding: 0; }
.next-stay__rows li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .45rem;
  padding: .35rem 0;
  border-bottom: 1px solid var(--stay-rule);
  font-size: .86rem;
  line-height: 1.35;
}
.next-stay__rows li:last-child { border: none; }
.next-stay__rows li span { text-align: end; color: var(--stay-muted); }
.next-stay__pool { padding: .65rem 0 0; font-size: .85rem; }
.next-stay__pool summary { display: list-item; width: fit-content; min-height: 2.75rem; align-content: center; cursor: pointer; font-weight: 650; }
.next-stay__pool p { max-width: 42rem; }
.next-stay__setup { padding: .2rem clamp(1rem, 3vw, 1.75rem) 1.1rem; }
.next-stay__action { display: flex; align-items: center; gap: .65rem 1.3rem; justify-content: space-between; }
.next-stay__explanation { max-width: 35rem; font-size: .9rem; }
.next-stay__advance {
  flex: none;
  min-height: 2.75rem;
  padding: .55rem .85rem;
  border-radius: .65rem;
  color: white;
  background: var(--stay-brand);
  font-weight: 650;
  font-size: .875rem;
  cursor: pointer;
}
.next-stay :is(summary,button):focus-visible { outline: 2px solid var(--stay-ink); outline-offset: 2px; }
.next-stay [hidden], .next-stay__several,
.next-stay__console:has(#host-stay-several:checked) .next-stay__one,
.next-stay[data-stay-stage="available"] :is([data-stay-state="holding"],[data-stay-state="confirmed"]),
.next-stay[data-stay-stage="holding"] :is([data-stay-state="available"],[data-stay-state="confirmed"]),
.next-stay[data-stay-stage="confirmed"] :is([data-stay-state="available"],[data-stay-state="holding"]) { display: none; }
.next-stay__console:has(#host-stay-several:checked) .next-stay__several { display: block; }

@media (max-width: 767px) {
  .next-stay__console { margin-top: 1rem; }
  .next-stay__toolbar { align-items: start; gap: .5rem 1.5rem; padding-block: .75rem; }
  .next-stay__brand { flex-basis: 100%; }
  .next-stay__brand h3 { margin-top: 0; font-size: var(--font-size-2xl); }
  .next-stay__body, .next-stay__context, .next-stay__walkthrough { padding-block: .75rem; }
  .next-stay__body { padding-bottom: 0; }
  .next-stay__action { flex-direction: column; align-items: start; }
  .next-stay__setup { padding-bottom: .85rem; }
}
