.coworking-page { background: var(--cream); }
.coworking-page .main-nav .is-current { color: var(--gold); }

.booking-page {
  padding: clamp(46px, 6vw, 88px) clamp(22px, 5vw, 78px) clamp(58px, 7vw, 104px);
  background: linear-gradient(135deg, var(--cream) 0%, #f7f2e9 68%, #eee3d1 100%);
}
.booking-page > h1 {
  max-width: 1100px; margin: 0 0 clamp(42px, 5vw, 68px);
  font: 400 clamp(3.5rem, 7.3vw, 7.8rem)/.92 Georgia, "Times New Roman", serif;
  letter-spacing: -.05em;
}
.step-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.step-heading span { color: var(--gold); font: 400 2rem/1 Georgia, "Times New Roman", serif; }
.step-heading h2 { margin: 0; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.room-selection-step > .booking-step-heading { margin-bottom: 18px; }
.room-step { display: grid; grid-template-columns: minmax(330px, .62fr) minmax(520px, 1.38fr); gap: 26px; align-items: stretch; }
.room-choice { min-height: 405px; display: flex; flex-direction: column; }
.room-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 10px; flex: 1; }
.room-option {
  width: 100%; min-height: 0; height: 100%; padding: 12px 16px 16px; position: relative; display: grid;
  grid-template-columns: 42px minmax(0, 1fr); grid-template-rows: 24px minmax(0, 1fr); align-items: center; column-gap: 14px;
  border: 1px solid rgba(31, 29, 26, .18); border-left: 3px solid transparent; color: var(--black); background: rgba(255, 253, 248, .66);
  text-align: left; cursor: pointer; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.room-option::after {
  content: ""; min-height: 22px; grid-column: 1 / -1; grid-row: 1; justify-self: end; display: inline-flex; align-items: center;
}
.room-option:hover, .room-option:focus-visible { border-color: var(--gold); outline: none; transform: translateX(3px); }
.room-option.is-active {
  border-color: var(--gold); border-left-width: 5px;
  background: linear-gradient(90deg, rgba(225, 197, 137, .32), var(--white) 54%);
  box-shadow: 0 0 0 1px rgba(184, 138, 60, .22), 7px 7px 0 rgba(184, 138, 60, .18); transform: translateX(5px);
}
.room-option.is-active::after {
  content: "Selected"; padding: 6px 9px;
  color: var(--black); background: var(--gold-light); font-size: .52rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.room-option > .room-symbol { grid-column: 1; grid-row: 2; }
.room-option > span:last-child { min-width: 0; grid-column: 2; grid-row: 2; }
.room-option strong { display: block; font: 400 clamp(1.08rem, 1.45vw, 1.42rem)/1.12 Georgia, "Times New Roman", serif; }
.room-option small { display: block; margin-top: 9px; color: var(--graphite); font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; }
.room-option strong, .room-option small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.room-option strong { font-size: clamp(1.08rem, 1.3vw, 1.22rem); }
.room-option small { font-size: .61rem; line-height: 1.3; margin-top: 7px; }
.room-option.is-paused::after { content: "Paused"; padding: 6px 9px; color: var(--wood); background: #eadac0; font-size: .52rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.room-status { padding: 12px 16px; margin: 0 0 18px; border-left: 3px solid var(--gold); background: var(--cream-deep); font-size: .85rem; line-height: 1.5; }
.room-status[hidden], .room-status button[hidden] { display: none; }
.room-status button { margin-left: 8px; padding: 8px 12px; border: 1px solid var(--gold); color: var(--black); background: var(--cream); cursor: pointer; }
.reserve-button:disabled { opacity: .5; cursor: not-allowed; }
.room-symbol { width: 38px; height: 38px; position: relative; display: block; color: var(--gold); }
.room-symbol::before, .room-symbol::after { content: ""; position: absolute; inset: 5px; border: 2px solid currentColor; }
.room-symbol-large::before { border-radius: 18px 18px 4px 4px; }
.room-symbol-large::after { inset: 14px 4px 4px; border-top: 0; }
.room-symbol-round::before { border-radius: 50%; }
.room-symbol-round::after { inset: 0 17px; border-width: 0 1px; transform: rotate(45deg); }
.room-symbol-private::before { border-radius: 18px 18px 3px 3px; }
.room-symbol-private::after { inset: 14px 15px 7px; border-radius: 50%; }
.room-symbol-podcast::before { inset: 4px 9px 11px; border-radius: 14px; }
.room-symbol-podcast::after { inset: 11px 15px 3px; border-width: 0 2px 2px; border-radius: 0 0 10px 10px; }
.room-symbol-workshop::before { inset: 3px 9px 9px 3px; }
.room-symbol-workshop::after { inset: 9px 3px 3px 9px; }
.room-photo { height: 405px; min-height: 405px; max-height: 405px; margin: 0; position: relative; overflow: hidden; border: 1px solid rgba(31, 29, 26, .18); background: var(--cream-deep); }
.room-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.room-photo::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(31, 29, 26, .55)); pointer-events: none; }
.room-photo figcaption {
  position: absolute; z-index: 1; right: 20px; bottom: 18px; padding: 10px 13px; color: var(--white); background: rgba(31, 29, 26, .82);
  font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.room-photo figcaption { max-width: calc(100% - 40px); overflow-wrap: anywhere; }

.booking-flow { margin-top: 36px; display: grid; grid-template-columns: minmax(650px, 1.45fr) minmax(300px, .65fr); gap: clamp(24px, 2.5vw, 32px); align-items: stretch; }
.availability-step, .reservation-details-step { min-width: 0; display: flex; flex-direction: column; }
.availability-step > .step-heading, .reservation-details-step > .step-heading { min-height: 48px; margin-bottom: 18px; align-items: baseline; }
.booking-step-heading { padding: 0 10px 10px; border-bottom: 3px solid var(--gold); }
.booking-step-heading .selected-date { margin-left: auto; text-align: right; }
.availability-layout { flex: 1; display: grid; grid-template-columns: minmax(380px, 1fr) minmax(260px, .62fr); gap: 18px; align-items: stretch; }
.calendar-column, .time-step, .details-step { min-width: 0; }
.calendar-column { position: relative; }
.calendar-shell { height: 100%; border: 1px solid rgba(31, 29, 26, .2); background: var(--white); }
.calendar-controls { padding: 13px 15px; display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; border-bottom: 1px solid rgba(31, 29, 26, .16); }
.calendar-controls p { margin: 0; text-align: center; font: 400 1.22rem/1 Georgia, "Times New Roman", serif; }
.calendar-controls button { width: 36px; height: 36px; border: 0; color: var(--black); background: transparent; cursor: pointer; }
.calendar-controls button:hover, .calendar-controls button:focus-visible { color: var(--white); background: var(--black); outline: none; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: 50px; }
.calendar-weekday { padding: 10px 3px 7px; color: var(--graphite); font-size: .55rem; font-weight: 800; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.calendar-blank, .calendar-day { border: 0; background: transparent; }
.calendar-day { width: 38px; height: 38px; position: relative; place-self: center; color: var(--black); font: inherit; cursor: pointer; }
.calendar-day:hover, .calendar-day:focus-visible { color: var(--gold); outline: 1px solid var(--gold); outline-offset: -5px; }
.calendar-day.is-selected { color: var(--white); background: var(--gold); border-radius: 0; outline: 0; }
.calendar-day.has-reservation::after { content: ""; width: 5px; height: 5px; position: absolute; right: 8px; bottom: 7px; border-radius: 50%; background: var(--wood); }
.calendar-day.is-selected::after { background: var(--white); }
.calendar-day:disabled { color: #b8afa3; cursor: not-allowed; outline: none; }
.calendar-legend { position: absolute; top: calc(100% + 15px); left: 0; display: flex; flex-wrap: wrap; gap: 12px 20px; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 8px; color: var(--graphite); font-size: .68rem; }
.calendar-legend i { width: 9px; height: 9px; display: block; border-radius: 50%; }
.available-key { background: #4e775a; }
.reserved-key { background: var(--wood); }
.selected-key { background: var(--gold); }

.time-step { padding-top: 0; display: flex; flex-direction: column; }
.selected-date { margin: 0; color: var(--gold); font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.time-step h3 { margin: 0 0 14px; font: 400 1.7rem/1.1 Georgia, "Times New Roman", serif; }
.time-slots { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, minmax(44px, 1fr)); gap: 8px; }
.time-slot { min-height: 44px; padding: 7px; display: grid; place-items: center; border: 1px solid #7a9a7f; color: #365c40; background: rgba(255, 253, 248, .35); font-size: .68rem; text-align: center; }
.time-slot.is-reserved { color: #a79e92; border-color: #d1c8bc; background: #ece7df; text-decoration: line-through; }

.details-layout { flex: 1; display: grid; grid-template-columns: 1fr; align-items: stretch; }
.details-step { min-height: 100%; padding: 24px; border: 1px solid rgba(31, 29, 26, .18); background: rgba(255, 253, 248, .42); }
.time-fields { display: grid; grid-template-columns: 1fr; gap: 0; }
.field { margin-bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .63rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.field input, .field select { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #c8beb0; border-radius: 0; color: var(--black); background: var(--white); font: inherit; }
.field input:focus, .field select:focus { border-color: var(--gold); outline: 2px solid rgba(184, 138, 60, .25); }

.reserve-button { width: 100%; min-height: 52px; margin-top: 22px; border: 1px solid var(--black); color: var(--white); background: var(--black); font: 800 .67rem/1 Arial, Helvetica, sans-serif; letter-spacing: .11em; text-transform: uppercase; cursor: pointer; }
.reserve-button:hover, .reserve-button:focus-visible { color: var(--black); background: transparent; outline: none; }
.form-message { display: none; margin: 15px 0 0; padding: 11px 12px; border-left: 3px solid var(--gold); background: var(--cream-deep); font-size: .72rem; line-height: 1.45; }
.form-message.is-visible { display: block; }
.form-message.is-error { border-left-color: #9a3f35; }

@media (max-width: 1180px) {
  .booking-flow { grid-template-columns: 1fr; }
  .availability-step { margin-bottom: 34px; }
  .availability-layout { grid-template-columns: minmax(420px, 1fr) minmax(280px, .58fr); }
}
@media (max-width: 900px) {
  .room-step { grid-template-columns: 1fr; }
  .room-photo { height: 405px; }
  .availability-layout { grid-template-columns: 1fr; }
  .availability-step { margin-bottom: 0; }
  .calendar-legend { position: static; margin-top: 15px; }
  .calendar-shell { height: auto; }
  .time-step { padding-top: 0; }
  .time-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
}
@media (max-width: 620px) {
  .booking-page { padding-inline: 18px; }
  .booking-page > h1 { font-size: clamp(3.2rem, 17vw, 5.2rem); }
  .room-choice { min-height: 0; }
  .room-list { grid-template-columns: 1fr; grid-template-rows: none; }
  .room-option { min-height: 112px; grid-template-columns: 38px minmax(0, 1fr); }
  .room-option.is-active::after { padding: 5px 7px; font-size: .48rem; }
  .room-photo { height: 320px; min-height: 320px; max-height: 320px; }
  .details-layout, .time-fields { grid-template-columns: 1fr; }
  .time-slots { grid-template-columns: 1fr; }
  .calendar { grid-auto-rows: 42px; }
  .calendar-day { width: 34px; height: 34px; }
  .booking-step-heading { flex-wrap: wrap; }
  .booking-step-heading .selected-date { width: 100%; margin-left: 52px; text-align: left; }
}

/* The confirmation replaces the details card after a successful request. */
.details-step[hidden] { display: none; }
.booking-payment-hint { margin: 18px 0 0; color: var(--graphite); font-size: .8rem; line-height: 1.55; }
.booking-confirmation { border-top: 3px solid var(--gold); }
.payment-status { margin: 0 0 14px; color: var(--wood); font-size: .65rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.booking-confirmation h3 { margin: 0 0 14px; font: 400 clamp(2rem, 3vw, 2.6rem)/1.05 Georgia, "Times New Roman", serif; letter-spacing: -.03em; }
.booking-confirmation h3:focus { outline: none; }
.payment-condition { margin: 0 0 22px; font-size: .88rem; line-height: 1.6; }
.instapay-payment { padding: 22px 14px; border: 1px solid #d8ccbb; background: var(--white); text-align: center; }
.instapay-mark { width: 176px; height: 42px; position: relative; overflow: hidden; margin: 0 auto 18px; background: #fff; }
.instapay-mark img { width: 256px; height: 256px; max-width: none; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.payment-send, .payment-to { display: block; margin: 0; color: var(--graphite); font-size: .78rem; }
.payment-total { margin: 6px 0; font: 400 clamp(2.5rem, 4vw, 3.2rem)/1.1 Georgia, "Times New Roman", serif; }
.payment-calculation { margin: 0 0 24px; font-size: .78rem; color: var(--graphite); }
.payment-number { display: block; margin: 8px 0 12px; font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: .04em; }
.copy-payment-number { padding: 9px 16px; border: 1px solid var(--black); color: var(--black); background: transparent; font: 700 .7rem/1.3 Arial, sans-serif; cursor: pointer; }
.copy-payment-number:hover, .copy-payment-number:focus-visible { background: var(--cream-deep); outline: 2px solid var(--gold); outline-offset: 3px; }
.copy-payment-status { display: block; margin-top: 8px; color: var(--graphite); font-size: .72rem; }
.copy-payment-status:empty { display: none; }
.payment-booking-summary { margin-top: 22px; font-size: .8rem; line-height: 1.55; overflow-wrap: anywhere; }
.payment-booking-summary p { margin: 6px 0 0; }
