/* BPM Lodging Search 1.1: one row, labels tight above the controls. Selectors are doubled
   (.bpm-ls.bpm-ls) and margins forced so block-theme form styles can't push things out of line. */
.bpm-ls.bpm-ls {
  --bpm-ink: #371f1d; --bpm-ground: #fff1e9; --bpm-red: #a63234; --bpm-blue: #96c7ca; --bpm-line: rgba(55,31,29,.25);
  --bpm-h: 48px;
  box-sizing: border-box; max-width: 1100px; margin: 0 auto; padding: 16px 18px;
  background: var(--bpm-ground); color: var(--bpm-ink); border: 1px solid var(--bpm-line); border-radius: 24px;
  font: inherit; line-height: 1.2;
}
.bpm-ls.bpm-ls * { box-sizing: border-box; }

.bpm-ls.bpm-ls .bpm-ls__row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  column-gap: 12px; row-gap: 12px; align-items: end; margin: 0; padding: 0;
}

.bpm-ls.bpm-ls .bpm-ls__field { display: flex; flex-direction: column; gap: 0; margin: 0 !important; padding: 0; min-width: 0; }

.bpm-ls.bpm-ls .bpm-ls__field label {
  display: block; margin: 0 0 0 2px !important; padding: 0 !important;
  font-size: .8rem; font-weight: 600; line-height: 1.25; color: var(--bpm-ink);
}

.bpm-ls.bpm-ls input[type=date],
.bpm-ls.bpm-ls input[type=text],
.bpm-ls.bpm-ls select {
  display: block; width: 100% !important; height: var(--bpm-h) !important; min-height: 0 !important;
  margin: 0 !important; padding: 0 12px !important;
  border: 1px solid var(--bpm-line) !important; border-radius: 12px !important;
  background-color: #fff !important; color: var(--bpm-ink) !important;
  font: inherit; font-size: 1rem !important; line-height: calc(var(--bpm-h) - 2px) !important;
  box-shadow: none !important; vertical-align: top;
}
.bpm-ls.bpm-ls input[type=date]::-webkit-date-and-time-value { text-align: left; }
.bpm-ls.bpm-ls select {
  -webkit-appearance: none; appearance: none; padding-right: 34px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23371f1d' stroke-width='1.6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 12px center !important;
}

.bpm-ls.bpm-ls .bpm-ls__submit {
  display: block; height: var(--bpm-h); margin: 0 !important; padding: 0 30px !important;
  border: 0 !important; border-radius: 50px !important; background: var(--bpm-red) !important; color: var(--bpm-ground) !important;
  font: inherit; font-size: .95rem !important; font-weight: 600; line-height: 1 !important;
  text-transform: uppercase; letter-spacing: .8px; white-space: nowrap; cursor: pointer; box-shadow: none !important;
}
.bpm-ls.bpm-ls .bpm-ls__submit:hover { background: #8c2a2c !important; }
.bpm-ls.bpm-ls :focus-visible { outline: 3px solid var(--bpm-blue) !important; outline-offset: 2px; }

.bpm-ls.bpm-ls .bpm-ls__error { margin: 10px 0 0 !important; font-size: .9rem; font-weight: 600; color: var(--bpm-red); }
.bpm-ls.bpm-ls .bpm-ls__error[hidden] { display: none !important; }

.bpm-ls.bpm-ls--locked .bpm-ls__row { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }

/* Tablet: two per row, button full width. */
@media (max-width: 820px) {
  .bpm-ls.bpm-ls .bpm-ls__row,
  .bpm-ls.bpm-ls--locked .bpm-ls__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bpm-ls.bpm-ls .bpm-ls__field--btn { grid-column: 1 / -1; }
  .bpm-ls.bpm-ls .bpm-ls__submit { width: 100%; }
}
