/* Booking flow (search, checkout, confirmation) — layered on top of the rooms.css bundle.
   Site design language: white pages, underlined fields (border-bottom only),
   NimbusRom body / ArimaKoshi headings, gold (#8c6e47) accents. */

body:not(:has(section.hero)) main#primary.booking-main {
  padding-top: 215px;
  padding-bottom: 90px;
  background: #ffffff;
}

.booking-header {
  margin-bottom: 34px;
}

.booking-header .archive-title {
  margin-bottom: 8px;
}

.booking-back-link {
  margin: 0;
}

.booking-back-link a {
  color: var(--gold, #8c6e47);
  text-decoration: none;
  letter-spacing: .04em;
}

.booking-back-link a:hover {
  text-decoration: underline;
}

/* --- Search bar --- */
.booking-search-form {
  margin-bottom: 44px;
}

.booking-search-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: flex-end;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.booking-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1 1 170px;
  min-width: 150px;
}

.booking-qty-field {
  flex: 0 1 150px;
}

.booking-field label {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .04em;
  color: #75685d;
}

.booking-date-input,
.booking-qty input,
.booking-guest-form input,
.booking-guest-form select {
  width: 100%;
  min-height: 46px;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: #000000;
  font: inherit;
  font-size: 15px;
  letter-spacing: .04em;
}

.booking-date-input {
  cursor: pointer;
}

.booking-date-input:focus,
.booking-qty input:focus,
.booking-guest-form input:focus,
.booking-guest-form select:focus {
  outline: none;
  border-bottom-color: var(--gold, #8c6e47);
  box-shadow: none;
}

.booking-qty {
  display: flex;
  align-items: stretch;
}

.booking-qty input {
  text-align: center;
  border-left: none;
  border-right: none;
  -moz-appearance: textfield;
}

.booking-qty input::-webkit-outer-spin-button,
.booking-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.booking-qty button {
  width: 40px;
  min-height: 46px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: #000000;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transition: color .18s ease;
}

.booking-qty button:hover {
  background: transparent;
  color: var(--gold, #8c6e47);
}

.booking-submit {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: var(--gold, #8c6e47);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: none;
  cursor: pointer;
  transition: opacity .3s ease, transform .3s ease, color .18s ease;
}

.booking-submit:hover {
  background: transparent;
  border-color: currentColor;
  opacity: .7;
  transform: translateY(1px);
}

.booking-submit.is-loading,
.booking-reserve-btn.is-loading {
  opacity: .65;
  cursor: wait;
  pointer-events: none;
}

/* --- Alerts --- */
.booking-alert {
  margin: 0 0 18px;
  padding: 12px 0 12px 18px;
  font-size: 14px;
  line-height: 1.55;
}

.booking-alert-error {
  border: 0;
  border-left: 2px solid #8a3b2f;
  background: transparent;
  color: #8a3b2f;
}

.booking-alert-notice {
  border: 0;
  border-left: 2px solid var(--gold, #8c6e47);
  background: transparent;
  color: #4b382e;
}

.booking-alert-link {
  display: inline-block;
  margin-left: 10px;
  color: var(--gold, #8c6e47);
  font-weight: 700;
  text-decoration: underline;
}

/* --- Results --- */
.booking-results-meta {
  margin: 0 0 22px;
  color: #75685d;
  font-size: 14px;
  letter-spacing: .04em;
}

.booking-results-hint {
  margin-top: 6px;
}

.booking-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 34px;
  margin-bottom: 24px;
}

.booking-room-card {
  display: flex;
  flex-direction: column;
  border: 0;
  border-bottom: 1px solid #e8ded2;
  background: #ffffff;
  transition: transform .25s ease;
}

.booking-room-card:hover {
  border-color: #d9cbb9;
  box-shadow: none;
  transform: translateY(-3px);
}

.booking-room-card .image-container {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.booking-room-card .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.booking-room-card:hover .image-container img {
  transform: scale(1.04);
}

.booking-room-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding: 22px 0;
}

.booking-room-body h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  color: #000000;
}

.booking-rate-plan {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold, #8c6e47);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: none;
}

.booking-rate-plan-summary {
  display: inline-block;
  margin: 0 0 6px;
}

.booking-room-desc {
  margin: 0;
  color: #75685d;
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.booking-room-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: #75685d;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: none;
}

.booking-room-price {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f0e8dd;
}

.booking-room-price strong {
  color: #000000;
  font-family: "ArimaKoshi", Georgia, serif;
  font-size: 27px;
  font-weight: 400;
  letter-spacing: .02em;
}

.booking-room-price span {
  color: #75685d;
  font-size: 13px;
}

.booking-room-body .booking-reserve-btn {
  width: fit-content;
  margin-top: 4px;
}

.booking-reserve-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--gold, #8c6e47) !important;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .3s ease, transform .3s ease, color .18s ease;
}

.booking-reserve-btn:hover {
  background: transparent;
  border-color: currentColor;
  opacity: .7;
  transform: translateY(1px);
}

.booking-reserve-btn-ghost {
  background: transparent;
  color: #000000 !important;
}

.booking-reserve-btn-ghost:hover {
  background: transparent;
  color: var(--gold, #8c6e47) !important;
}

.booking-fineprint {
  margin: 8px 0 0;
  color: #9a8c7e;
  font-size: 12.5px;
  line-height: 1.6;
}

/* --- Checkout --- */
.booking-checkout-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.booking-summary-card {
  border: 0;
  background: #ffffff;
  padding-bottom: 22px;
}

.booking-summary-card .image-container {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.booking-summary-card .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.booking-summary-card h2 {
  margin: 18px 0 6px;
  font-size: 24px;
  color: #000000;
}

.booking-summary-rows {
  margin: 12px 0 0;
}

.booking-summary-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #e8ded2;
}

.booking-summary-rows dt {
  color: #75685d;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: none;
}

.booking-summary-rows dd {
  margin: 0;
  color: #000000;
  font-size: 14.5px;
  text-align: right;
}

.booking-summary-rows .booking-summary-total {
  border-bottom: none;
  border-top: 1px solid #000000;
  margin-top: 4px;
}

.booking-summary-rows .booking-summary-total dt {
  color: #000000;
}

.booking-summary-rows .booking-summary-total dd {
  font-family: "ArimaKoshi", Georgia, serif;
  font-size: 23px;
  font-weight: 400;
}

.booking-summary-card .booking-fineprint {
  margin: 6px 0 0;
}

.booking-guest-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0;
  border: 0;
  background: transparent;
}

.booking-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.booking-form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.booking-form-field label {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: none;
  color: #75685d;
}

.booking-payment-note {
  margin: 0;
  padding: 4px 0 4px 16px;
  border: 0;
  border-left: 2px solid var(--gold, #8c6e47);
  background: transparent;
  color: #4b382e;
  font-size: 13.5px;
  line-height: 1.6;
}

.booking-confirm-btn {
  align-self: flex-start;
  padding: 12px 2px;
  font-size: 16px;
}

/* --- Cloudbeds embedded payment --- */
.booking-payment-grid {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.booking-cloudbeds-panel,
.booking-cloudbeds-full {
  min-width: 0;
}

.booking-cloudbeds-full {
  max-width: 1180px;
  margin: 0 auto;
}

.booking-cloudbeds-intro {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 0 0 16px;
  border: 0;
  border-bottom: 1px solid #e8ded2;
  background: transparent;
}

.booking-cloudbeds-intro h2 {
  flex: 1 1 220px;
  margin: 0;
  color: #000000;
  font-size: 24px;
  line-height: 1.15;
}

.booking-cloudbeds-intro p {
  flex: 2 1 340px;
  margin: 0;
  color: #4b382e;
  font-size: 13.5px;
  line-height: 1.55;
}

.booking-cloudbeds-fallback {
  flex: 0 0 auto;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  color: var(--gold, #8c6e47);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: none;
  text-decoration: none;
  transition: opacity .3s ease;
}

.booking-cloudbeds-fallback:hover {
  text-decoration: none;
  opacity: .7;
}

.booking-cloudbeds-embed {
  min-height: 760px;
  border: 0;
  background: #ffffff;
}

.booking-cloudbeds-embed cb-immersive-experience {
  display: block;
  min-height: 760px;
}

.cb-bookingengine-root {
  --booking-engine-zIndices-sticky: 1100;
  --booking-engine-zIndices-modal: 1400;
  --booking-engine-zIndices-popover: 1500;
  --booking-engine-zIndices-tooltip: 1800;
}

/* --- Confirmation --- */
.booking-confirmation-header {
  text-align: center;
}

.booking-confirmation-mark {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border: 1px solid var(--gold, #8c6e47);
  border-radius: 50%;
  color: var(--gold, #8c6e47);
  font-size: 30px;
}

.booking-confirmation-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 30px 0;
  border: 0;
  background: #ffffff;
}

.booking-confirmation-card .booking-summary-rows {
  margin: 0 0 18px;
}

.booking-confirmation-number {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .06em;
}

.booking-confirmation-actions {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}

.booking-confirmation-card .booking-confirmation-number {
  color: var(--gold, #8c6e47);
}

/* --- Datepicker sizing on booking page --- */
.booking-main ~ #ui-datepicker-div,
#ui-datepicker-div {
  z-index: 300 !important;
}

@media (max-width: 900px) {
  body:not(:has(section.hero)) main#primary.booking-main {
    padding-top: 185px;
  }

  .booking-checkout-grid,
  .booking-payment-grid {
    grid-template-columns: 1fr;
  }

  .booking-cloudbeds-embed,
  .booking-cloudbeds-embed cb-immersive-experience {
    min-height: 720px;
  }

  .booking-form-row {
    grid-template-columns: 1fr;
  }

  .booking-search-fields {
    padding: 0;
  }

  .booking-submit {
    width: 100%;
  }
}
