/* Booking flow — builds on the tokens in styles.css */
[hidden] { display: none !important; }
.bk-body {
  background:
    radial-gradient(60% 40% at 85% 0%, rgba(125, 21, 38, .28), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(212, 166, 79, .08), transparent 70%),
    var(--bg);
  min-height: 100svh;
  display: flex; flex-direction: column;
}

.bk-top {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-inline: clamp(16px, 4vw, 48px);
  background: rgba(14, 10, 11, .78); backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.bk-secure { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.bk-secure .ic { width: 16px; height: 16px; color: var(--gold-1); }
@media (max-width: 640px) { .bk-secure { display: none; } .bk-home span { display: none; } .nav__word span { font-size: 1.02rem; } }

.bk { flex: 1; width: var(--container); margin: 0 auto; padding: 28px 0 80px; }

.bk-mockbar {
  margin-bottom: 24px; padding: 12px 18px; border-radius: 14px;
  border: 1px dashed rgba(243, 216, 146, .5); background: rgba(212, 166, 79, .08);
  font-size: .84rem; color: var(--ivory-2);
}
.bk-mockbar strong { color: var(--gold-1); letter-spacing: .08em; text-transform: uppercase; font-size: .74rem; margin-right: 6px; }

/* Stepper */
.bk-steps { list-style: none; padding: 0; margin: 0 0 36px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: s; }
.bk-steps li { position: relative; display: flex; align-items: center; gap: 12px; padding-top: 14px; color: var(--muted); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.bk-steps li::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--line); }
.bk-steps li::after { content: ''; position: absolute; top: 0; left: 0; height: 2px; width: 0; border-radius: 2px; background: var(--gold-grad); transition: width .6s var(--ease); }
.bk-steps li span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); font-size: .78rem; letter-spacing: 0; transition: background-color .4s, color .4s, border-color .4s; flex: none; }
.bk-steps li em { font-style: normal; }
.bk-steps li.is-done::after, .bk-steps li.is-current::after { width: 100%; }
.bk-steps li.is-current { color: var(--ivory); }
.bk-steps li.is-current span { border-color: var(--gold-1); color: var(--gold-1); }
.bk-steps li.is-done span { background: var(--gold-2); border-color: var(--gold-2); color: #1c1206; }
@media (max-width: 560px) { .bk-steps li em { display: none; } .bk-steps li:not(.is-current) em { display: none; } .bk-steps li.is-current em { display: inline; } }

/* Layout */
.bk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 980px) { .bk-grid { grid-template-columns: 1fr; } }
.bk-panel:focus { outline: none; }
.bk-step { animation: stepIn .6s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } }
.bk-h { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.02; margin: 0 0 14px; }
.bk-h em { font-style: italic; font-weight: 400; }
.bk-step > .muted { margin: 0 0 28px; }

.bk-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.bk-actions > :only-child { margin-left: auto; }
.bk-actions--wrap { justify-content: flex-start; }
@media (max-width: 560px) { .bk-actions .btn--lg { flex: 1 1 100%; order: -1; } .bk-actions .btn--ghost { flex: 1; } }

/* Step 1 */
.bk-dates { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: end; margin-top: 28px; }
.bk-nights { padding-bottom: 14px; }
.bk-nights span { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .76rem; color: var(--gold-1); white-space: nowrap; }
@media (max-width: 560px) { .bk-dates { grid-template-columns: 1fr 1fr; } .bk-nights { grid-column: 1 / -1; order: 3; padding: 0; } }
.bk-counters { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(27, 18, 20, .6); }
.counter { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; }
.counter + .counter { border-top: 1px solid var(--line); }
.counter strong { display: block; font-weight: 500; }
.counter small { color: var(--muted); font-size: .78rem; }
.counter__ctl { display: flex; align-items: center; gap: 6px; }
.counter__ctl button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--gold-1); transition: background-color .3s, border-color .3s, opacity .3s; }
.counter__ctl button:hover:not(:disabled) { background: rgba(243, 216, 146, .08); border-color: var(--gold-1); }
.counter__ctl button:disabled { opacity: .3; cursor: not-allowed; }
.counter__ctl .ic { width: 16px; height: 16px; }
.counter output { font-variant-numeric: lining-nums; min-width: 32px; text-align: center; font-family: var(--font-display); font-size: 1.6rem; }

/* Step 2 */
.bk-rooms { display: grid; gap: 16px; }
.bk-room {
  position: relative; display: grid; grid-template-columns: 120px 1fr auto; gap: 22px; align-items: center;
  padding: 18px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); text-align: left; width: 100%;
  transition: border-color .35s, box-shadow .45s var(--ease), transform .45s var(--ease);
}
.bk-room:hover:not([aria-disabled="true"]) { border-color: var(--line-strong); transform: translateY(-2px); }
.bk-room[aria-checked="true"] { border-color: var(--gold-1); box-shadow: 0 0 0 1px var(--gold-1), 0 30px 60px -30px rgba(212, 166, 79, .45); }
.bk-room[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.bk-room__art { height: 110px; border-radius: 14px; display: grid; place-items: center; border: 1px solid var(--line); background: radial-gradient(80% 90% at 50% 100%, rgba(212, 166, 79, .22), transparent 70%); }
.bk-room__art svg { width: 54px; height: 54px; color: var(--gold-1); }
.bk-room h3 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; margin: 0 0 4px; line-height: 1.1; }
.bk-room__meta { font-size: .8rem; color: var(--muted); margin: 0 0 10px; }
.bk-room ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.bk-room li { font-size: .72rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ivory-2); }
.bk-room__price { text-align: right; display: grid; gap: 2px; justify-items: end; }
.bk-room__price strong { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--gold-1); line-height: 1; font-variant-numeric: lining-nums; }
.bk-room__price small { font-size: .74rem; color: var(--muted); }
.bk-room__price .total { font-size: .8rem; color: var(--ivory-2); margin-top: 6px; }
.bk-badge { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--line-strong); color: var(--gold-1); }
.bk-badge--warn { border-color: rgba(240, 138, 155, .5); color: #f3a3b0; }
.bk-radio { position: absolute; top: 16px; right: 16px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; }
.bk-room[aria-checked="true"] .bk-radio { background: var(--gold-2); border-color: var(--gold-2); color: #1c1206; }
.bk-radio .ic { width: 14px; height: 14px; opacity: 0; }
.bk-room[aria-checked="true"] .bk-radio .ic { opacity: 1; }
.bk-room__price { padding-right: 30px; }
@media (max-width: 680px) {
  .bk-room { grid-template-columns: 72px 1fr; gap: 14px; }
  .bk-room__art { height: 72px; }
  .bk-room__art svg { width: 36px; height: 36px; }
  .bk-room__price { grid-column: 1 / -1; text-align: left; justify-items: start; padding: 12px 0 0; border-top: 1px solid var(--line); grid-template-columns: auto auto; align-items: baseline; gap: 4px 10px; }
  .bk-room__price .total { grid-column: 1 / -1; margin: 0; }
}
.bk-skeleton { height: 146px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.bk-error { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 0; padding: 12px 16px; border-radius: 12px; background: rgba(163, 33, 58, .18); border: 1px solid rgba(240, 138, 155, .35); color: #f6c2cb; font-size: .88rem; }
.bk-error[hidden] { display: none; }

/* Step 3 */
.bk-form { display: grid; gap: 18px; margin-top: 28px; }
.bk-phone { display: flex; align-items: stretch; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(14, 10, 11, .6); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.bk-phone span { display: grid; place-items: center; padding: 0 12px 0 16px; color: var(--muted); border-right: 1px solid var(--line); }
.bk-phone input { border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
.bk-phone:focus-within { border-color: var(--gold-1); box-shadow: 0 0 0 4px rgba(243, 216, 146, .12); }
.field.is-invalid .bk-phone { border-color: #e2677b; }

/* Step 4 */
.bk-review { display: grid; gap: 12px; margin-top: 28px; }
.bk-review__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(27, 18, 20, .6); }
.bk-review__row h3 { margin: 0 0 4px; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-1); font-weight: 500; }
.bk-review__row p { margin: 0; color: var(--ivory-2); font-size: .94rem; }
.bk-edit { min-height: 44px; padding: 0 6px; font-size: .78rem; color: var(--gold-1); text-decoration: underline; text-underline-offset: 4px; flex: none; }
.bk-check { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; font-size: .86rem; color: var(--ivory-2); cursor: pointer; }
.bk-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold-2); flex: none; }
.bk-paynote { margin: 14px 0 0; font-size: .76rem; color: var(--muted); text-align: right; }
@media (max-width: 560px) { .bk-paynote { text-align: center; } }
.btn.is-busy { pointer-events: none; opacity: .8; }
.btn.is-busy::after { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }

/* Summary */
.bk-summary { position: sticky; top: calc(var(--nav-h) + 24px); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: rgba(27, 18, 20, .75); backdrop-filter: blur(14px); }
.bk-summary__art { height: 150px; position: relative; }
.bk-summary__art img { width: 100%; height: 100%; object-fit: cover; }
.bk-summary__art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(27, 18, 20, .95)); }
.bk-summary__body { padding: 0 24px 24px; margin-top: -28px; position: relative; }
.bk-summary h2 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; margin: 0 0 14px; }
.bk-summary dl { margin: 0; display: grid; gap: 10px; }
.bk-summary dl div { display: flex; justify-content: space-between; gap: 12px; font-size: .86rem; }
.bk-summary dt { color: var(--muted); }
.bk-summary dd { margin: 0; text-align: right; color: var(--ivory); }
.bk-total { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: .84rem; }
.bk-total div { display: flex; justify-content: space-between; color: var(--ivory-2); }
.bk-total .grand { margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--line-strong); color: var(--ivory); font-size: 1rem; align-items: baseline; }
.bk-total .grand strong { font-family: var(--font-display); font-size: 2rem; color: var(--gold-1); font-weight: 600; font-variant-numeric: lining-nums; }
.bk-hold { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(212, 166, 79, .1); color: var(--gold-1); font-size: .8rem; }
.bk-hold .ic { width: 16px; height: 16px; }
@media (max-width: 980px) {
  .bk-summary { position: static; }
  .bk-summary__art { display: none; }
  .bk-summary__body { margin: 0; padding: 18px 20px; }
  .bk-summary h2 { font-size: 1.3rem; margin-bottom: 10px; }
}

/* Done */
.bk-done { text-align: left; }
.bk-seal { width: 84px; height: 84px; margin-bottom: 24px; }
.bk-seal svg { width: 100%; height: 100%; fill: none; stroke: var(--gold-1); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.bk-seal circle { stroke-dasharray: 227; stroke-dashoffset: 227; animation: draw 1s var(--ease) forwards; }
.bk-seal path { stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw .6s var(--ease) .7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.bk-ticket { margin-top: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: linear-gradient(160deg, rgba(212, 166, 79, .12), rgba(27, 18, 20, .8) 50%); overflow: hidden; }
.bk-ticket__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; border-bottom: 1px dashed var(--line-strong); flex-wrap: wrap; }
.bk-ticket__head small { display: block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.bk-ticket__head strong { font-family: var(--font-body); font-size: 1.4rem; font-weight: 600; color: var(--gold-1); letter-spacing: .06em; font-variant-numeric: lining-nums tabular-nums; }
.bk-ticket__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 22px 24px; }
@media (max-width: 560px) { .bk-ticket__grid { grid-template-columns: 1fr 1fr; } }
.bk-ticket__grid small { display: block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.bk-ticket__grid span { color: var(--ivory); font-size: .94rem; }
.bk-status { padding: 6px 12px; border-radius: 999px; background: rgba(37, 211, 102, .14); color: #7ee2a5; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }

.bk-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px clamp(16px, 4vw, 48px); border-top: 1px solid var(--line); font-size: .76rem; color: var(--muted); }

/* ── Mock checkout (test mode stand-in for Razorpay Checkout) ── */
.mc { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; background: rgba(6, 4, 5, .72); backdrop-filter: blur(6px); animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; } }
.mc__card { position: relative; width: min(420px, 100%); max-height: calc(100svh - 32px); overflow: auto; border-radius: 22px; background: #fbf8f3; color: #1f1a17; box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .8); animation: pop .45s var(--ease); font-family: var(--font-body); }
.mc__ribbon { background: repeating-linear-gradient(45deg, #f2c94c, #f2c94c 10px, #f6d77a 10px, #f6d77a 20px); color: #3a2a00; text-align: center; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 6px; }
.mc__head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; background: #1b1214; color: var(--ivory); }
.mc__head img { width: 46px; }
.mc__head div { flex: 1; line-height: 1.3; }
.mc__head strong { display: block; font-family: var(--font-display); font-size: 1.2rem; }
.mc__head small { color: var(--muted); font-size: .76rem; }
.mc__amount { text-align: right; }
.mc__amount strong { font-family: var(--font-body); font-size: 1.15rem; color: var(--gold-1); }
.mc__close { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ivory-2); }
.mc__close:hover { background: rgba(255, 255, 255, .08); }
.mc__body { padding: 18px 20px 6px; }
.mc__body h3 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #7a6d63; margin: 0 0 10px; font-weight: 600; }
.mc__methods { display: grid; gap: 8px; }
.mc__method { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid #e6ddd2; background: #fff; text-align: left; transition: border-color .2s, box-shadow .2s; min-height: 56px; color: #1f1a17; }
.mc__method:hover { border-color: #c9a36a; }
.mc__method[aria-checked="true"] { border-color: #a8742a; box-shadow: 0 0 0 1px #a8742a; }
.mc__method i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #f4ece1; font-style: normal; font-size: .72rem; font-weight: 700; color: #7d1526; }
.mc__method span { flex: 1; font-weight: 500; font-size: .9rem; }
.mc__method small { display: block; font-weight: 400; color: #7a6d63; font-size: .74rem; }
.mc__note { margin: 14px 0 0; font-size: .76rem; color: #7a6d63; }
.mc__foot { padding: 16px 20px 20px; display: grid; gap: 10px; }
.mc__pay { min-height: 52px; border-radius: 14px; background: #1b1214; color: #f4ebdd; font-weight: 600; letter-spacing: .04em; display: flex; align-items: center; justify-content: center; gap: 10px; }
.mc__pay:hover { background: #2a1c1e; }
.mc__fail { min-height: 44px; font-size: .8rem; color: #7d1526; text-decoration: underline; text-underline-offset: 3px; }
.mc__busy { display: grid; place-items: center; gap: 14px; padding: 48px 20px; text-align: center; color: #3b322c; }
.mc__busy::before { content: ''; width: 42px; height: 42px; border-radius: 50%; border: 3px solid #e6ddd2; border-top-color: #a8742a; animation: spin .8s linear infinite; }
.mc__secure { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 0 0 16px; font-size: .7rem; color: #8a7d72; }
.mc__secure .ic { width: 14px; height: 14px; }

/* Print: just the receipt */
@media print {
  body { background: #fff !important; color: #000 !important; }
  .bk-top, .bk-steps, .bk-summary, .bk-actions, .bk-foot, .bk-mockbar, .grain, .cursor, .skip { display: none !important; }
  .bk-grid { display: block; }
  .bk-ticket { border-color: #999; background: none; }
  .gold-text, .bk-ticket__head strong { color: #7d1526 !important; -webkit-text-fill-color: #7d1526; }
  .bk-ticket__grid span, .bk-h, .muted { color: #000 !important; }
}
