/* ==========================================================================
   Book your stay page (templates/room-booking.html)
   Same palette as the header/footer and other redesigned pages.
   ========================================================================== */

.booking-page {
  --bk-ink: #171b24;
  --bk-muted: #676459;
  --bk-line: #e9e4d8;
  --bk-tint: #f7f5f0;
  --bk-primary: #1f2a44;
  --bk-primary-hover: #151d31;
  --bk-primary-soft: rgba(31, 42, 68, 0.08);
  --bk-gold: #b8903f;
  --bk-shadow: 0 1px 2px rgba(23, 27, 36, 0.04), 0 18px 40px -20px rgba(23, 27, 36, 0.22);

  color: var(--bk-muted);
}

/* style.css removes the container's side padding site-wide; restore it here */
.booking-page .container {
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  padding-right: calc(var(--bs-gutter-x) * 0.5);
}

/* ---------- Header ---------- */

.booking-page .bk-head {
  padding: 2.75rem 0 2.25rem;
  background: radial-gradient(40rem 18rem at 0% -20%, rgba(31, 42, 68, 0.1), transparent 70%);
}

.bk-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  color: var(--bk-gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.bk-eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
}

.bk-head h1 {
  margin-bottom: 0.6rem;
  color: var(--bk-ink);
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.bk-head .lead {
  max-width: 36rem;
  margin: 0;
  color: var(--bk-muted);
  font-size: 1.05rem;
}

.bk-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  font-weight: 500;
}

.bk-steps li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.bk-steps span {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px var(--bk-line);
  color: var(--bk-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.bk-steps .is-current {
  color: var(--bk-ink);
}

.bk-steps .is-current span {
  background: var(--bk-primary);
  box-shadow: none;
  color: #fff;
}

/* ---------- Form ---------- */

.booking-page .bk-main {
  padding: 0 0 5rem;
}

.bk-card {
  padding: clamp(1.4rem, 3vw, 2.25rem);
  border: 1px solid var(--bk-line);
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: var(--bk-shadow);
}

.bk-section + .bk-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--bk-line);
}

.bk-section-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
  color: var(--bk-ink);
  font-size: 1.15rem;
}

.bk-section-title span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  background: var(--bk-primary-soft);
  color: var(--bk-primary);
  font-size: 0.9rem;
}

.booking-page .form-floating > .form-control,
.booking-page .form-floating > .form-select {
  border: 1px solid var(--bk-line);
  border-radius: 0.85rem;
  background-color: var(--bk-tint);
  color: var(--bk-ink);
  box-shadow: none;
}

.booking-page .form-floating > .form-control:focus,
.booking-page .form-floating > .form-select:focus {
  border-color: rgba(31, 42, 68, 0.6);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(31, 42, 68, 0.12);
}

.booking-page .form-floating > label {
  color: var(--bk-muted);
}

.booking-page .form-floating > textarea.form-control {
  height: 7rem;
  resize: vertical;
}

/* − / + steppers for rooms and adults */
.bk-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  height: 100%;
  min-height: calc(3.5rem + 2px);
  padding: 0.35rem 0.5rem 0.35rem 1rem;
  border: 1px solid var(--bk-line);
  border-radius: 0.85rem;
  background: var(--bk-tint);
}

.bk-stepper label {
  margin: 0;
  color: var(--bk-muted);
  font-size: 0.8rem;
  line-height: 1.2;
}

.bk-stepper-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.bk-stepper button {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: 1px solid var(--bk-line);
  border-radius: 50%;
  background: #fff;
  color: var(--bk-ink);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.bk-stepper button:hover:not(:disabled) {
  border-color: var(--bk-primary);
  color: var(--bk-primary);
}

.bk-stepper button:disabled {
  opacity: 0.4;
}

.bk-stepper input {
  width: 2.4rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bk-ink);
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
}

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

.bk-error {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  background: rgba(214, 57, 57, 0.08);
  color: #a52a2a;
  font-size: 0.95rem;
}

.bk-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--bk-primary);
  color: #fff;
  font-size: 1.02rem;
  font-weight: 600;
  box-shadow: 0 14px 30px -12px rgba(31, 42, 68, 0.85);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.bk-submit:hover {
  background: var(--bk-primary-hover);
  transform: translateY(-1px);
}

.bk-submit:disabled {
  opacity: 0.75;
  transform: none;
}

.bk-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  text-align: center;
}

.bk-note i {
  color: #1fa855;
}

/* ---------- Summary ---------- */

.bk-summary {
  position: sticky;
  top: 6.5rem;
  overflow: hidden;
  border: 1px solid var(--bk-line);
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: var(--bk-shadow);
}

.bk-summary-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--bk-tint), #f1ece1);
}

.bk-summary-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bk-summary-media .bk-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--bk-muted);
  font-size: 0.9rem;
}

.bk-summary-body {
  padding: 1.35rem 1.5rem 1.5rem;
}

.bk-summary-body h2 {
  margin-bottom: 0.2rem;
  color: var(--bk-ink);
  font-size: 1.2rem;
}

.bk-rate {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.bk-rate strong {
  color: var(--bk-ink);
}

.bk-lines {
  margin: 0;
  padding: 1rem 0;
  border-top: 1px solid var(--bk-line);
  border-bottom: 1px solid var(--bk-line);
  list-style: none;
  font-size: 0.92rem;
}

.bk-lines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.bk-lines li + li {
  margin-top: 0.55rem;
}

.bk-lines span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.bk-lines i {
  color: var(--bk-gold);
}

.bk-lines span:last-child {
  color: var(--bk-ink);
  font-weight: 600;
  text-align: right;
}

.bk-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  color: var(--bk-ink);
}

.bk-total strong {
  font-family: var(--bs-heading-font-family, "Playfair Display", Georgia, serif);
  font-size: 1.75rem;
}

.bk-calc {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  text-align: right;
}

.bk-help {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 1rem;
  border-radius: 1rem;
  background: var(--bk-tint);
  font-size: 0.88rem;
  list-style: none;
}

.bk-help a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--bk-ink);
  font-weight: 500;
  text-decoration: none;
}

.bk-help a:hover {
  color: var(--bk-primary);
}

.bk-help i {
  color: var(--bk-gold);
}

.booking-page a:focus-visible,
.booking-page button:focus-visible {
  outline: 2px solid var(--bk-primary);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .booking-page * {
    transition: none !important;
  }
}

@media (max-width: 991.98px) {
  .bk-summary {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .booking-page .bk-head {
    padding: 1.75rem 0 1.5rem;
  }

  /* three even columns, number above label, so "3 Confirmation" doesn't wrap onto its own line */
  .bk-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    font-size: 0.8rem;
  }

  .bk-steps li {
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
    line-height: 1.25;
  }
}

/* Bootstrap paints a white patch behind filled floating labels; our fields are tinted */
.booking-page .form-floating > label::after {
  background-color: transparent !important;
}
