/* Riverhouse booking panel: the date row, the stay estimate and the hold form as one aligned panel.
   Loaded after riverhouse.css and riverhouse-checkout.1.css on pages that render booking. This file is immutable
   once released: change it by adding riverhouse-booking.2.css, so pages from either release keep matching styles. */
.stay > h2, .stay > p, .stay > form, .stay > #stay-result { max-width: 64rem; }
.stay > p { margin-bottom: 1rem; }

/* The date row (the only form with data-minimum-nights; the hold, request, photo ID and sign-out forms never
   carry it): fields on one line, aligned on their input boxes, then the two buttons. */
.stay > form[data-minimum-nights] {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  background: white;
  border: 1px solid var(--line);
  border-radius: .9rem;
}
.stay > form[data-minimum-nights]::after { content: ""; order: 1; flex-basis: 100%; height: 0; }
.stay > form[data-minimum-nights] > label { flex: 1 1 10rem; min-width: 0; }
.stay > form[data-minimum-nights] > label:has([name="guests"]) { flex: 0 1 7rem; }
.stay > form[data-minimum-nights] > label.pet-choice { flex: 0 0 auto; min-height: 48px; font-weight: 400; }
.stay > form[data-minimum-nights] > button { order: 2; flex: 0 0 auto; }
.stay > form[data-minimum-nights] > p { order: 3; flex: 1 1 10rem; align-self: center; margin: 0; font-size: .95rem; }

/* Shared field and button sizing inside the panel. */
.stay label { gap: .3rem; font-size: 1rem; font-weight: 600; }
.stay input:not([type="checkbox"]), .stay select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: .55rem .7rem;
  color: var(--ink);
  background: white;
  border: 1px solid #a39782;
  border-radius: .45rem;
  font: 400 1rem/1.3 Hanken, Arial, sans-serif;
}
.stay textarea {
  display: block;
  width: 100%;
  min-height: 6rem;
  margin-top: .3rem;
  padding: .55rem .7rem;
  color: var(--ink);
  background: white;
  border: 1px solid #a39782;
  border-radius: .45rem;
  font: 400 1rem/1.4 Hanken, Arial, sans-serif;
}
.stay label:has(> textarea) { display: block; }
.stay label > span { font-weight: 400; }
.stay textarea:focus-visible { outline: 3px solid #ba6913; outline-offset: 4px; }
.stay input[type="checkbox"] { width: 1.15rem; height: 1.15rem; margin: 0; flex: 0 0 auto; }
.stay button { min-height: 48px; padding: .6rem 1.3rem; border-radius: .45rem; font-weight: 600; cursor: pointer; }
.stay button.browse-dates { background: white; }
.stay select:focus-visible { outline: 3px solid #ba6913; outline-offset: 4px; }

/* The estimate and the hold form: two cards, side by side on a wide screen and stacked on a phone. */
.stay #stay-result { display: grid; gap: 1.25rem; align-items: start; margin-top: 1.25rem; }
.stay #stay-result:focus { outline: none; }
.stay .estimate, .stay .hold {
  margin: 0;
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  background: white;
  border: 1px solid var(--line);
  border-radius: .9rem;
}
.stay > .hold { max-width: 36rem; margin-top: 1.25rem; }
.stay .estimate h3, .stay .hold h3 { margin: 0 0 .75rem; font: 500 1.5rem/1.2 Spectral, Georgia, serif; }
.stay .estimate p, .stay .estimate li { margin: .45rem 0; }
.stay .estimate details { margin: 0; }
.stay .estimate ul { margin: .3rem 0 .5rem; padding: 0 0 0 1.2rem; font-size: .95rem; }
.stay .estimate .total { margin-top: .8rem; padding-top: .7rem; font-size: 1.15rem; }
.stay .estimate .total strong:last-child { white-space: nowrap; }

.stay form.hold { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; align-content: start; }
.stay form.hold h3, .stay form.hold > p { margin: 0; }
.stay form.hold > p { color: #4a5c5a; }
.stay form.hold > h3 + p { margin-top: -.5rem; }
.stay form.hold > button { width: 100%; }
.stay form.hold .cf-turnstile { min-height: 140px; }
.stay form.hold label.consent { display: flex; align-items: flex-start; gap: .6rem; font-weight: 400; min-height: 0; }
.stay form.hold label.consent input { margin-top: .2rem; }
.stay .hold.verify-email { max-width: none; margin-top: 0; padding-top: clamp(1.1rem, 2.5vw, 1.6rem); border: 1px solid var(--line); }

.stay .feedback { margin: 1.25rem 0 0; max-width: 40rem; padding: .8rem 1rem; background: white; border: 1px solid var(--line); border-left: 4px solid #ba6913; border-radius: .45rem; }

@media (min-width: 860px) {
  .stay #stay-result:has(> .hold) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .stay #stay-result:not(:has(> .hold)) > .estimate { max-width: 36rem; }
}
@media (max-width: 400px) {
  .stay .estimate, .stay .hold, .stay > form[data-minimum-nights] { padding-inline: .8rem; }
  .stay form.hold .cf-turnstile { max-width: 100%; }
  .stay > form[data-minimum-nights] > label:has([type="date"]) { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .stay > form[data-minimum-nights] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .85rem; }
  .stay > form[data-minimum-nights]::after { display: none; }
  .stay > form[data-minimum-nights] > button, .stay > form[data-minimum-nights] > p, .stay > form[data-minimum-nights] > label:has([name="promo"]) { grid-column: 1 / -1; }
  .stay > form[data-minimum-nights] > button { width: 100%; }
  .stay input[type="date"] { padding-inline: .5rem; font-size: 1rem; }
}
