/* Date and guest search: a full-width band in the header's language, directly under the hero (owner, 26 Sep 2026:
   glued to the hero again after a stand-alone version). The calendar's far corners keep --stay-radius. */
.stay-search { position: relative; z-index: 20; background: var(--footer); color: var(--ivory); --field-pad: clamp(22px, 2.6vw, 40px); --stay-radius: 4px; }
.stay-search-form { position: relative; }
.stay-search-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.12fr); min-height: 92px; }
.stay-field { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 10px; min-width: 0; margin: 0; padding: 16px var(--field-pad); border: 0; border-right: 1px solid #f8f4ec24; border-radius: 0; background: transparent; color: inherit; font: inherit; text-align: left; }
button.stay-field { cursor: pointer; transition: background-color .2s ease; }
button.stay-field:hover, button.stay-field.is-active { background: rgb(0 0 0 / 22%); }
.stay-field:focus-visible { outline: 2px solid var(--ivory); outline-offset: -4px; }
/* Each label has a small gold icon in front of it (1.25em: about the label's cap height with the glyph's margin). */
.stay-field-label { display: flex; align-items: center; gap: .5em; min-width: 0; font-size: 13px; line-height: 1.3; color: #f8f4ecb8; }
.stay-field-value { display: block; max-width: 100%; min-height: 32px; overflow: hidden; font-size: 17px; font-weight: 700; line-height: 32px; color: #fffaf2; white-space: nowrap; text-overflow: ellipsis; }
.stay-field-value.is-empty { color: #f8f4ecde; font-weight: 400; }
.stay-field-icon { flex: none; width: 1.25em; height: 1.25em; color: var(--button-gold); }
.stay-stepper { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 32px; }
.stay-stepper output { flex: 1 0 auto; font-size: 17px; font-weight: 700; line-height: 1.3; color: #fffaf2; text-align: center; white-space: nowrap; }
.stay-stepper button { display: grid; flex: none; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid #f8f4ec59; border-radius: 50%; background: transparent; color: #fffaf2; transition: background-color .2s, border-color .2s, color .2s; }
.stay-stepper button:hover:not(:disabled) { background: var(--button-gold); border-color: var(--button-gold); color: #000; }
.stay-stepper button:disabled { opacity: .35; }
.stay-stepper .icon { width: 16px; height: 16px; stroke-width: 1.6; }
.stay-search .stay-search-submit { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 100%; margin: 0; padding: 18px var(--field-pad); border: 0; border-radius: 0; font-size: 16px; line-height: 1.3; text-align: left; white-space: normal; }
.stay-search .stay-search-submit .icon { width: 34px; flex: none; transition: transform .25s var(--ease); }
.stay-search .stay-search-submit:hover { transform: none; }
.stay-search .stay-search-submit:hover .icon { transform: translateX(5px); }
.stay-search .stay-search-submit:focus-visible { outline: 2px solid #2a2017; outline-offset: -6px; }
.stay-search-form.is-missing-dates .stay-field-date .stay-field-value.is-empty { color: var(--button-gold-hover); }
.is-stay-calendar-open .back-to-top { opacity: 0; visibility: hidden; pointer-events: none; }
/* The rooms page shows the band as the lower row of its dark masthead. */
.stay-search-page { border-top: 1px solid #f8f4ec24; }

/* Range calendar: hangs flush from the band (above it when only the space above can hold it). */
.stay-calendar { position: absolute; top: 100%; left: 0; z-index: 45; width: min(724px, 100%); padding: 20px 24px 18px; background: var(--paper); color: var(--ink); border-radius: 0 0 var(--stay-radius) var(--stay-radius); box-shadow: 0 26px 60px rgb(24 17 12 / 30%), 0 3px 10px rgb(24 17 12 / 14%); }
.stay-calendar.is-above { top: auto; bottom: 100%; border-radius: var(--stay-radius) var(--stay-radius) 0 0; box-shadow: 0 -18px 50px rgb(24 17 12 / 26%), 0 -2px 8px rgb(24 17 12 / 12%); }
.stay-calendar[hidden] { display: none; }
.stay-calendar-head { display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px; align-items: center; gap: 12px; margin-bottom: 8px; }
.stay-calendar-hint { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink); text-align: center; }
.stay-calendar-nav { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 50%; background: var(--canvas); color: var(--ink); transition: background-color .2s; }
.stay-calendar-nav:hover:not(:disabled) { background: var(--button-gold); color: #000; }
.stay-calendar-nav .icon { width: 18px; height: 18px; }
.stay-calendar-nav[data-stay-month='-1'] .icon { transform: rotate(90deg); }
.stay-calendar-nav[data-stay-month='1'] .icon { transform: rotate(-90deg); }
.stay-calendar-months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.stay-month-title { margin: 4px 0 12px; font-family: var(--serif); font-size: 19px; line-height: 1.3; text-align: center; color: var(--ink); }
.stay-weekdays, .stay-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.stay-weekdays { margin-bottom: 6px; font-size: 11px; color: var(--muted); text-align: center; }
.stay-weekdays span { padding-block: 4px; }
.stay-days { row-gap: 3px; }
.stay-day, .stay-day-blank { height: 42px; }
.stay-day { position: relative; display: grid; place-items: center; width: 100%; min-width: 0; padding: 0; border: 1px solid transparent; border-radius: 3px; background: transparent; color: var(--ink); font-size: 14px; font-weight: 700; transition: background-color .15s; }
.stay-day:hover:not(:disabled) { background: color-mix(in srgb, var(--button-gold) 19%, transparent); }
.stay-day.is-today { border-color: #c9b893; }
.stay-day.is-range { border-radius: 0; background: color-mix(in srgb, var(--button-gold) 19%, transparent); }
.stay-day.is-start, .stay-day.is-end, .stay-day.is-start:hover, .stay-day.is-end:hover { border-color: transparent; background: var(--button-gold); color: #000; }
.stay-day.is-start:not(.is-end) { border-radius: 3px 0 0 3px; }
.stay-day.is-end:not(.is-start) { border-radius: 0 3px 3px 0; }
.stay-day:disabled { color: #bdb5a9; font-weight: 400; opacity: 1; cursor: default; }
.stay-day:focus-visible { outline: 2px solid #956c24; outline-offset: -2px; }
.stay-calendar-foot { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.stay-calendar-summary { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); }
.stay-calendar-clear { padding: 10px 4px; background: none; color: var(--ink); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.stay-calendar .stay-calendar-done { min-height: 44px; padding: 10px 22px; font-size: 14px; }

@media (min-width: 1800px) {
  .stay-search-bar { min-height: 108px; }
  .stay-field-label { font-size: 15px; }
  .stay-field-value, .stay-stepper output { font-size: 19px; }
  .stay-search .stay-search-submit { font-size: 18px; }
}
@media (max-width: 1100px) {
  .stay-field-value, .stay-stepper output { font-size: 16px; }
  .stay-stepper { gap: 8px; }
}
/* The one-row band at its narrowest (and on touch tablets, whose stepper buttons are 40px, mobile.css): less padding
   in the cells, so the guest stepper stays inside its cell and the whole dates fit. On touch screens the date values
   sit in a 40px line like the stepper, so the three labels and their icons line up. */
@media (min-width: 901px) and (max-width: 1100px), (pointer: coarse) and (min-width: 901px) and (max-width: 1250px) {
  .stay-search { --field-pad: 18px; }
  .stay-stepper { gap: 6px; }
}
@media (pointer: coarse) and (min-width: 901px) {
  .stay-field-date .stay-field-value { min-height: 40px; line-height: 40px; }
}
@media (max-width: 900px) {
  .stay-search-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 0; }
  .stay-field { min-height: 78px; border-bottom: 1px solid #f8f4ec24; }
  .stay-field:nth-child(2) { border-right: 0; }
  .stay-field-guests { border-bottom: 0; }
  .stay-search .stay-search-submit { min-height: 78px; }
  .stay-calendar { width: min(420px, 100%); }
  .stay-calendar-months { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .stay-search { --field-pad: 20px; }
  .stay-field { min-height: 72px; padding-block: 13px; gap: 6px; }
  .stay-field-label { font-size: 12px; }
  .stay-field-value { min-height: 28px; font-size: 14px; line-height: 28px; }
  .stay-field-guests { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; border-right: 0; border-bottom: 1px solid #f8f4ec24; }
  .stay-field-guests .stay-stepper { flex: none; width: 196px; }
  .stay-stepper output { font-size: 15px; }
  .stay-search .stay-search-submit { grid-column: 1 / -1; min-height: 60px; font-size: 15px; }
  .stay-calendar { width: 100%; padding: 16px 12px 14px; border-radius: 0 0 var(--stay-radius) var(--stay-radius); }
  .stay-day, .stay-day-blank { height: 40px; }
  .stay-calendar-foot { flex-wrap: wrap; gap: 8px 12px; }
  .stay-calendar-summary { flex-basis: 100%; }
  .stay-calendar .stay-calendar-done { margin-left: auto; }
}
@media (max-width: 360px) {
  .stay-search { --field-pad: 16px; }
  .stay-field-value { font-size: 13px; }
  .stay-field-guests .stay-stepper { width: 176px; }
  .stay-day, .stay-day-blank { height: 36px; }
  .stay-search .stay-search-submit { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  button.stay-field, .stay-day, .stay-stepper button, .stay-search .stay-search-submit .icon { transition: none; }
}

/* Capacity note: the party needs more than one room of this type (rooms.php cards, room form, booking modal). */
.capacity-note { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 10px 14px; border-left: 3px solid var(--button-gold, #cba45e); border-radius: 0 3px 3px 0; background: rgb(203 164 94 / 16%); color: #4d4238; font-size: 14px; font-weight: 400; line-height: 1.5; text-align: left; }
.capacity-note[hidden] { display: none; }
.capacity-note .icon { width: 18px; height: 18px; margin-top: 2px; color: #8a6a2e; }
