/* Booking flow */
.book { padding: 32px 0 0; }
@media (min-width: 900px) { .book { padding: 56px 0 0; } }
.book .lede { max-width: 60ch; margin-bottom: 22px; }
.back { margin-bottom: 14px; display: inline-block; }
.search { display: grid; gap: 4px 14px; align-items: end; }
.search .field { margin-bottom: 12px; }
@media (min-width: 760px) { .search { grid-template-columns: 1fr 1fr 140px auto; } .search .btn { margin-bottom: 12px; } }

#results { margin-top: 28px; display: grid; gap: 20px; scroll-margin-top: 84px; }
@media (min-width: 820px) { .room.no-photo { grid-template-columns: 1fr; } }
.room.no-photo .room-photo { display: none; }
.room {
  display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--ink-2);
}
@media (min-width: 820px) { .room { grid-template-columns: 340px 1fr; } }
.room-photo { background: var(--ink-3); aspect-ratio: 4 / 3; position: relative; }
@media (min-width: 820px) { .room-photo { aspect-ratio: auto; min-height: 100%; } }
.room-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.room-body { padding: 20px; }
.room-body h2 { margin-bottom: 4px; }
.room-facts { color: var(--muted); font-size: .92rem; margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.room-desc { color: #d9d2c2; font-size: .95rem; max-width: 62ch; }
.offers { display: grid; gap: 10px; margin-top: 14px; }
.offer {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center; padding: 12px 14px;
  border: 1px solid #3a3a47; border-radius: 8px;
}
.offer-name { font-weight: 600; }
.offer-meals { color: var(--muted); font-size: .86rem; grid-column: 1; }
.offer-price { text-align: right; font-variant-numeric: tabular-nums; }
.offer-price strong { display: block; font-size: 1.15rem; color: var(--gold-2); }
.offer-price span { color: var(--muted); font-size: .84rem; }
.offer .btn { grid-column: 1 / -1; }
@media (min-width: 560px) { .offer { grid-template-columns: 1fr auto auto; } .offer .btn { grid-column: auto; grid-row: 1 / span 2; grid-column-start: 3; } }
.soldout { color: var(--muted); font-size: .92rem; margin-top: 12px; }
.left { color: var(--gold-2); font-size: .88rem; }

.details-grid, .booking-grid { display: grid; gap: 22px; align-items: start; }
@media (min-width: 900px) { .details-grid, .booking-grid { grid-template-columns: 1fr 340px; } .summary { position: sticky; top: 84px; } }
.summary h2 { font-size: 1.25rem; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.sum-row span:first-child { color: var(--muted); }
.sum-row.total { border-bottom: 0; font-size: 1.1rem; padding-top: 12px; }
.sum-row.total span:last-child { color: var(--gold-2); font-weight: 700; }

.status-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.countdown { font-variant-numeric: tabular-nums; color: var(--gold-2); font-weight: 600; }
.pay-methods { display: grid; gap: 14px; margin-top: 8px; }
.pay-method { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--ink-2); }
.pay-method h3 { margin-bottom: 6px; font-family: var(--text); font-weight: 600; font-size: 1.05rem; }
.pay-method p { color: var(--muted); font-size: .92rem; margin-bottom: 12px; }
.pay-inline { display: flex; gap: 10px; flex-wrap: wrap; }
.pay-inline input { flex: 1 1 200px; }
.waiting { display: flex; gap: 12px; align-items: center; border: 1px solid rgba(200, 168, 75, .4); border-radius: var(--radius); padding: 16px; background: rgba(200, 168, 75, .06); }
.waiting .spinner { width: 22px; height: 22px; flex: none; color: var(--gold-2); }
.result { text-align: center; }
.result .mark { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; border: 2px solid currentColor; }
.result .mark.ok { color: var(--ok); }
.result .mark.bad { color: var(--bad); }

/* room photo opens the details pop-up */
.room-zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.room-zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.room-zoom:hover img { transform: scale(1.03); }
.room-zoom:focus-visible { outline: 2px solid var(--gold-2); outline-offset: -2px; }
.room-more { margin: 2px 0 8px; font-size: .9rem; }
.halls-link { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1px dashed var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 18px 0 0; }
.halls-link p { margin: 0; color: var(--muted); }

.free-perks { margin: 0 0 12px; padding: 10px 14px; border: 1px solid rgba(200, 168, 75, .45); border-radius: 8px; background: rgba(200, 168, 75, .08); color: var(--ivory, #f2ede1); font-size: .95rem; }
.free-perks::before { content: "\2713  "; color: var(--gold-2, #e5c46b); font-weight: 700; }
/* status of a room type for the chosen dates (no room numbers on the public site) */
.room-status { display: inline-flex; align-items: center; gap: 6px; margin: 4px 12px 10px 0; padding: 3px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.room-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.room-status.st-ok { color: #7ee2a8; background: rgba(46, 160, 67, .14); }
.room-status.st-few { color: var(--gold-2); background: rgba(200, 168, 75, .14); }
.room-status.st-full { color: #ff9b9b; background: rgba(220, 38, 38, .14); }
.room.picked { outline: 2px solid var(--gold); outline-offset: 4px; }
