/* =============================================================================
   CABINS — the search card in the banner

   The card itself is the home page's: .booking-area, .booking-shell,
   .booking-card, .field, .label, .value and .search all come from header.css
   and are not redeclared here. That is deliberate - the point of moving this
   control into the banner was that it should be the same control.

   THE ONE REAL DIFFERENCE. On the home page .value is a <span> holding the
   words "Select date". Here it is a real <input>, because this is the page
   people arrive on to search and a control that does nothing is worse than no
   control. An input brings a user-agent stylesheet with it - its own border,
   background, padding, font and colour - and every rule below exists to undo
   one of those so the field looks like the span it replaced.
   ========================================================================== */

/* The card overlaps the band's bottom edge by 46px (header.css), so the copy
   above it needs room or the traits row runs into the card. */
.pbn:has(.booking-area) .pbn-in{padding-bottom:clamp(58px,6vw,92px)}

.cb-search .field-copy{display:block}
.cb-search .label{
  /* A <label> is inline by default where the span it replaced was block. */
  display:block;
  cursor:pointer;
}
.cb-search input.value{
  display:block;
  width:100%;
  margin:0;padding:0;
  border:0;background:none;
  border-radius:0;
  font-family:var(--font-body);
  font-size:17px;line-height:1.2;
  font-variant-numeric:lining-nums;
  /* Not --placeholder. That token is tuned for text that is genuinely a
     prompt; what shows here when a date field is empty is the format pattern,
     which the visitor has to read to type into it. --ink measures 12.6:1 on
     the card's cream. */
  color:var(--ink);
  appearance:none;
}
.cb-search input.value:focus{outline:none}
/* The focus ring goes on the whole field rather than the bare input: the
   input has no border of its own to carry one, and a ring around 17px of
   text inside a 98px plate looks like a mistake. */
.cb-search .field:focus-within{
  background:#fffdf8;
  box-shadow:inset 0 0 0 2px var(--rust-deep);
}
/* Chrome gives date and number inputs their own controls. The date picker
   icon stays - it is the affordance - but the number spinners go, because
   two 9px arrows inside a 98px field are unhittable and the field is typed
   into anyway. */
.cb-search input[type="number"]{-moz-appearance:textfield}
.cb-search input[type="number"]::-webkit-outer-spin-button,
.cb-search input[type="number"]::-webkit-inner-spin-button{appearance:none;margin:0}
.cb-search input[type="date"]::-webkit-calendar-picker-indicator{cursor:pointer;opacity:.55}
.cb-search input[type="date"]:hover::-webkit-calendar-picker-indicator{opacity:.9}

/* The validation line. Lives under the card, inside the band, and takes no
   space while it is empty. */
.cb-search-note{
  margin:12px 0 0;
  font-family:var(--font-body);
  font-size:13px;line-height:1.5;
  color:#f0d6c6;
}
.cb-search-note:empty{margin:0}

@media (max-width:760px){
  /* header.css already drops the card to one column here. The fields lose
     their vertical rule with it, so they need a horizontal one instead or
     they read as one tall block. */
  .cb-search .field + .field{border-top:1px solid #d3ccbf}
}
