/* Keep the calendar and the cost of the selected stay within the same reading area. */
#stay.bp-on { padding-block:1rem 2rem; }
#stay.bp-on > h2 { margin-block:0 .25rem; }
#stay.bp-on > h2 + p { margin-block:0 .65rem; }
#stay.bp-on .bp { margin-top:.65rem; }
.bp .bp-cal, .bp .bp-card { padding:1rem; }
.bp .bp-cal .bp-nav { inset:1rem 1rem auto; }
.bp .bp-card { display:flow-root; }
.bp .bp-card .bp-photo { float:inline-start; width:3.5rem; height:2.5rem; margin:0 .75rem .5rem 0; }
.bp .bp-card .bp-rating { display:flex; align-items:center; gap:.3rem; min-height:2.5rem; margin:0 0 .5rem; }
.bp .bp-card .bp-form { clear:both; gap:.5rem; }
.bp .bp-form .bp-guests { padding-block:.15rem; }
.bp .bp-form .bp-round { top:.15rem; }
.bp .bp-form .bp-capacity { margin:0; font-size:.875rem; }
.bp .bp-form .bp-summary { gap:.4rem; padding-top:.5rem; }
.bp .bp-summary .bp-rows { gap:.2rem; }
.bp .bp-summary .bp-total { padding-top:.4rem; }
.bp .bp-cal .bp-hint, .bp .bp-cal .bp-legend { margin-top:.5rem; }
@media (min-width:48rem) {
  #stay.bp-on > h2 { display:inline-block; margin-inline-end:1.25rem; }
  #stay.bp-on > h2 + p { display:inline-block; }
}
/* One calendar month and the guest summary fit beside each other on a tablet. */
@container (min-width:42rem) and (max-width:54rem) {
  .bp .bp-grid { grid-template-columns:minmax(0,1fr) 19rem; }
}
@media (min-width:48rem) and (max-width:64rem) {
  body.compact .stay .bp, body.editorial .stay .bp {
    width:calc(100vw - 4rem);
    margin-inline:calc((100% - (100vw - 4rem)) / 2);
  }
}
@media (min-width:48rem) and (max-height:46rem) {
  .bp .bp-card .bp-form { gap:.3rem; }
}
/* Leave room for the price above the focused hold heading in each property design. */
.stay.bp-on > #stay-result.bp-result h3 {
  scroll-margin-top:calc(var(--site-header-h, 0px) + 8rem);
}
@media (min-width:48rem) and (max-height:30rem) {
  .stay.bp-on > #stay-result.bp-result form.hold { gap:.25rem; }
  .stay.bp-on > #stay-result.bp-result form.hold > :is(p, label) { line-height:1.35; }
}

/* On short laptops, show the price alongside the stay controls before the guest opens the hold form. */
@media (min-width:54rem) and (max-height:40rem) {
  @container (min-width:54rem) {
    .stay:not(:has(#stay-result:not([hidden]) form.hold)) {
      & .bp-grid { grid-template-columns:minmax(0,1fr) minmax(29rem,46%); }
      & .bp-card .bp-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.45rem .85rem; align-items:start; }
      & .bp-guests input { width:2rem; margin-inline-end:2.75rem; }
      & .bp-more { right:.5rem; }
      & .bp-fewer { right:5.25rem; }
      & .bp-form > * { grid-column:1; }
      & .bp-form > .bp-summary { grid-column:2; grid-row:1 / span 2; border-top:0; padding-top:0; }
      & .bp-form > .bp-primary { grid-column:2; grid-row:3; }
      & .bp-form > .bp-note { grid-column:2; grid-row:4; }
    }
  }
}
