/* ==========================================================================
   Booking page (single screen)
   ========================================================================== */

.page-booking .mobile-bar,
.page-booking .fab { display: none; }
@media (max-width: 767px) {
  body.page-booking { padding-bottom: 0; }
}

.page-hero--compact { padding-bottom: 30px; }
.page-hero--compact .page-hero__title { font-size: clamp(32px, 4.6vw, 52px); margin-bottom: 8px; }

.booking { background: var(--bg-2); padding-block: 30px 70px; }
.booking__layout { max-width: 860px; }

.booking-form { display: grid; gap: 18px; }

.bk-block {
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  min-width: 0;
}
.bk-block.is-flagged { animation: flagged 0.9s var(--ease); }
@keyframes flagged {
  0%, 100% { box-shadow: var(--shadow-soft); }
  30% { box-shadow: 0 0 0 4px rgba(240, 165, 0, 0.45); }
}

.bk-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: clamp(19px, 2.2vw, 22px);
  font-weight: 800;
}
.bk-title span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-grad);
  color: #15120c;
  font-family: var(--font-en);
  font-size: 15px;
}

/* ---------- Category tabs ---------- */
.bk-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -4px 16px;
  padding: 4px;
  scrollbar-width: none;
}
.bk-tabs::-webkit-scrollbar { display: none; }
.bk-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.bk-tab:hover { border-color: var(--gold); }
.bk-tab.is-active { background: var(--dark); border-color: var(--dark); color: #fff; }
.bk-tab span {
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gold);
  color: #15120c;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}

/* ---------- Services ---------- */
.bk-services { display: grid; gap: 10px; }
.bk-service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  text-align: start;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.bk-service:hover { border-color: var(--gold); }
.bk-service__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bk-service__text strong { font-size: 16.5px; font-weight: 700; line-height: 1.35; }
.bk-service__text small { font-size: 13px; color: var(--muted); }
.bk-service__meta { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--text-soft); }
.bk-service__check {
  position: relative;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  transition: background 0.2s, border-color 0.2s;
}
.bk-service.is-selected {
  border-color: var(--gold);
  background: rgba(240, 165, 0, 0.06);
  box-shadow: 0 0 0 3px rgba(240, 165, 0, 0.14);
}
.bk-service.is-selected .bk-service__check {
  border-color: var(--gold);
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='%2315120c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.bk-service--skeleton {
  height: 78px;
  border: 0;
  background: linear-gradient(100deg, var(--bg-2) 30%, #fff 50%, var(--bg-2) 70%) 0 0 / 200% 100%;
  animation: bkSkeleton 1.4s linear infinite;
}
@keyframes bkSkeleton { to { background-position: -200% 0; } }

/* ---------- Days ---------- */
.bk-days {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -4px;
  padding: 4px 4px 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.bk-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  width: 74px;
  padding: 12px 6px;
  border-radius: 16px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  scroll-snap-align: start;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.bk-day small { font-size: 13px; font-weight: 600; color: var(--text-soft); }
.bk-day strong { font-family: var(--font-en); font-size: 22px; font-weight: 800; line-height: 1.2; }
.bk-day em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.bk-day:hover:not(:disabled) { border-color: var(--gold); }
.bk-day.is-selected { background: var(--dark); border-color: var(--dark); color: #fff; }
.bk-day.is-selected small,
.bk-day.is-selected em { color: rgba(255, 255, 255, 0.75); }
.bk-day:disabled { opacity: 0.4; cursor: not-allowed; background: var(--bg-2); }

/* ---------- Times ---------- */
.bk-times__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.bk-time {
  padding: 12px 6px;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.bk-time:hover { border-color: var(--gold); }
.bk-time.is-selected { background: var(--gold-grad); border-color: transparent; color: #15120c; }
.bk-empty { padding: 18px; border-radius: 14px; background: var(--bg-2); color: var(--muted); text-align: center; font-size: 15px; }
.bk-note {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(240, 165, 0, 0.1);
  font-size: 14px;
  color: var(--text-soft);
}

/* ---------- Details ---------- */
.bk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.bk-calmark { text-align: center; font-size: 14.5px; color: var(--muted); }
.bk-calmark a { color: var(--gold); font-weight: 700; }
.bk-calmark a:hover { text-decoration: underline; }

/* ---------- Sticky summary bar ---------- */
.bk-bar {
  position: sticky;
  bottom: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 14px 14px 18px;
  padding-inline-start: 22px;
  border-radius: 20px;
  background: rgba(27, 26, 23, 0.94);
  color: #fff;
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.bk-bar__info { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.bk-bar__info strong { font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-bar__info small { font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.bk-bar .btn { flex-shrink: 0; opacity: 0.55; transition: opacity 0.3s, transform 0.35s var(--ease), box-shadow 0.35s; }
.bk-bar.is-ready .btn { opacity: 1; }

/* ---------- Done ---------- */
.bk-done {
  padding: 50px clamp(22px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.bk-done .order-done__icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--gold-grad);
  color: #15120c;
  font-size: 34px;
  box-shadow: var(--shadow-gold);
}
.bk-done h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; margin-bottom: 10px; }
.bk-done p { color: var(--text-soft); max-width: 480px; margin: 0 auto; }
.bk-done .order-done__ref { margin-top: 14px; font-weight: 600; color: var(--text); }
.bk-done .order-done__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

@media (max-width: 767px) {
  .booking { padding-top: 20px; }
  .bk-grid { grid-template-columns: 1fr; }
  .bk-bar {
    bottom: calc(10px + env(safe-area-inset-bottom));
    margin-inline: -8px;
    padding: 12px;
    padding-inline-start: 16px;
  }
  .bk-bar .btn { --pad-x: 18px; --pad-y: 14px; font-size: 15px; }
  .bk-bar .btn svg { display: none; }
  .bk-done .order-done__actions .btn { width: 100%; }
}
