/* ============================================================
   Book a Table — v2 "Night in Piazza"
   Dark mood + pink riot. No cream. Mobile-first.
   ============================================================ */

:root {
  --bk-bg:        #1a1c20;
  --bk-bg-2:      #23262d;
  --bk-bg-3:      #2c2e35;
  --bk-line:      rgba(255,255,255,0.10);
  --bk-line-2:    rgba(255,255,255,0.20);
  --bk-ink:       #ffffff;
  --bk-ink-mute:  rgba(255,255,255,0.58);
  --bk-pink:      #faa8b5;
  --bk-pink-deep: #e3869b;
  --bk-pink-soft: #f5c1cd;
  --bk-bordeaux:  #580207;
  --bk-error:     #ff8a8a;
  --bk-success:   #9ff0bc;
}

body.page-id-25 main.wp-block-group,
body.page-id-25 .entry-content {
  margin-bottom: 0 !important;
}

/* ---------- Section shell -------------------------------------- */

.bk {
  background: var(--bk-bg);
  color: var(--bk-ink);
  padding: clamp(40px, 7vw, 96px) clamp(16px, 5vw, 80px)
           calc(env(safe-area-inset-bottom, 0px) + clamp(140px, 14vw, 64px));
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

/* soft pink blush in the top-right corner */
.bk::before {
  content: "";
  position: absolute;
  top: -10vw; right: -10vw;
  width: 60vw; height: 60vw;
  max-width: 720px; max-height: 720px;
  background: radial-gradient(closest-side, rgba(250,168,181,0.22), transparent 70%);
  pointer-events: none;
  filter: blur(20px);
}
.bk::after {
  content: "";
  position: absolute;
  bottom: -8vw; left: -8vw;
  width: 50vw; height: 50vw;
  max-width: 620px; max-height: 620px;
  background: radial-gradient(closest-side, rgba(227,134,155,0.18), transparent 70%);
  pointer-events: none;
  filter: blur(20px);
}

.bk-wrap {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

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

.bk-head {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  padding-bottom: clamp(24px, 4vw, 40px);
  margin-bottom: clamp(24px, 4vw, 40px);
  border-bottom: 1px solid var(--bk-line);
}

.bk-eyebrow {
  margin: 0;
  color: var(--bk-pink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.bk-title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(44px, 9vw, 112px);
  letter-spacing: -0.045em;
  line-height: 0.88;
  text-wrap: balance;
}
.bk-title .bk-blush { color: var(--bk-pink); }

.bk-lead {
  margin: 0;
  color: var(--bk-ink-mute);
  font-size: clamp(15px, 1.6vw, 18px);
  max-width: 46ch;
  line-height: 1.45;
}

/* ---------- Card (booking app) --------------------------------- */

.bk-card {
  grid-column: 1 / 2;
  min-width: 0;
  display: grid;
  gap: clamp(28px, 4vw, 48px);
}

/* ---------- Step common ---------------------------------------- */

.bk-step {
  display: grid;
  gap: 16px;
}
.bk-step[hidden] { display: none !important; }

.bk-step__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.bk-step__no {
  font-variant-numeric: tabular-nums;
  color: var(--bk-pink);
  font-weight: 900;
  font-size: clamp(14px, 1.6vw, 16px);
  letter-spacing: 0.1em;
  line-height: 1;
  padding: 4px 8px;
  border: 1px solid var(--bk-pink);
  border-radius: 999px;
}

.bk-step__title {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--bk-ink);
}

.bk-step__hint {
  margin: 0;
  color: var(--bk-ink-mute);
  font-size: 0.85rem;
  line-height: 1.45;
}

/* visually-hidden helpers (keep native control accessible to JS) */
.bk-sr-select {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---------- Chips (PAX + TIME) --------------------------------- */

.bk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bk-chip {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  min-height: 48px;
  min-width: 48px;
  padding: 10px 18px;
  border: 1px solid var(--bk-line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--bk-ink);
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.005em;
  line-height: 1;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.bk-chip:hover:not(:disabled) {
  border-color: var(--bk-pink);
  color: var(--bk-pink);
}

.bk-chip.is-selected,
.bk-chip[aria-pressed="true"] {
  background: var(--bk-pink);
  border-color: var(--bk-pink);
  color: #2a0a12;
}

.bk-chip:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.bk-service-options .bk-chip,
.bk-room-options .bk-chip {
  min-width: min(100%, 128px);
}

/* ---------- Calendar strip ------------------------------------- */

.bk-cal-nav {
  margin-left: auto;
  display: flex;
  gap: 6px;
  align-items: center;
}

.bk-cal-jump {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px 0 14px;
  border: 1px solid var(--bk-line-2);
  border-radius: 999px;
  background: var(--bk-surface);
  color: var(--bk-ink);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  user-select: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.bk-cal-jump:hover,
.bk-cal-jump:focus-within {
  border-color: var(--bk-pink);
  color: var(--bk-pink);
}
.bk-cal-jump svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.bk-cal-jump input[type="date"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font: inherit;
  border: 0;
  padding: 0;
  color: transparent;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}
.bk-cal-jump input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.bk-cal-jump input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
}

.bk-cal-status {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 6px;
  border: 1px dashed var(--bk-line-2);
  border-radius: 14px;
  background: rgba(250,168,181,0.06);
  font-size: 0.88rem;
  color: var(--bk-ink);
}
.bk-cal-status.is-visible { display: inline-flex; }
.bk-cal-status::before {
  content: "*";
  color: var(--bk-pink);
  font-size: 1rem;
  line-height: 1;
}
.bk-cal-status b { font-weight: 700; color: var(--bk-pink); }
.bk-cal-status button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--bk-ink-mute);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 140ms ease;
}
.bk-cal-status button:hover { color: var(--bk-pink); }

.bk-cal-arrow {
  appearance: none;
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bk-line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--bk-ink);
  font-size: 18px;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.bk-cal-arrow:hover {
  border-color: var(--bk-pink);
  color: var(--bk-pink);
}

.bk-cal {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78px;
  gap: 10px;
  padding: 4px 2px 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(250,168,181,0.4) transparent;
  -webkit-overflow-scrolling: touch;
}
.bk-cal::-webkit-scrollbar { height: 6px; }
.bk-cal::-webkit-scrollbar-thumb {
  background: rgba(250,168,181,0.4);
  border-radius: 999px;
}

.booking-day {
  appearance: none;
  cursor: pointer;
  scroll-snap-align: start;
  border: 1px solid var(--bk-line-2);
  border-radius: 18px;
  background: var(--bk-bg-2);
  color: var(--bk-ink);
  min-height: 96px;
  padding: 14px 6px 12px;
  display: grid;
  align-content: center;
  gap: 6px;
  text-align: center;
  font-family: inherit;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.booking-day span {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--bk-ink-mute);
}

.booking-day strong {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-transform: capitalize;
  white-space: nowrap;
}

.booking-day:hover:not(:disabled) {
  border-color: var(--bk-pink);
  transform: translateY(-2px);
}

.booking-day.is-selected {
  background: var(--bk-pink);
  border-color: var(--bk-pink);
  color: #2a0a12;
}
.booking-day.is-selected span { color: rgba(42,10,18,0.7); }

.booking-day.is-unavailable {
  cursor: default;
  opacity: 0.28;
  background: transparent;
}
.booking-day.is-unavailable:hover {
  border-color: var(--bk-line-2);
  transform: none;
}

/* ---------- Time slots ----------------------------------------- */

.bk-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 10px;
}

.booking-slot {
  appearance: none;
  cursor: pointer;
  min-height: 52px;
  padding: 10px 8px;
  border: 1px solid var(--bk-line-2);
  border-radius: 14px;
  background: var(--bk-bg-2);
  color: var(--bk-ink);
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.booking-slot:hover:not(:disabled) {
  border-color: var(--bk-pink);
  transform: translateY(-1px);
}

.booking-slot.is-selected {
  background: var(--bk-pink);
  border-color: var(--bk-pink);
  color: #2a0a12;
}

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

.bk-form { gap: 18px; }

.bk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}

.bk-input {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.bk-input > span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bk-ink-mute);
}
.bk-input > span em {
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.85em;
  color: var(--bk-ink-mute);
  opacity: 0.85;
}

.bk-input input,
.bk-input textarea {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 14px 0 12px;
  border: 0;
  border-bottom: 1.5px solid var(--bk-line-2);
  border-radius: 0;
  background: transparent;
  color: var(--bk-ink);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.3;
  outline: none;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.bk-input input::placeholder,
.bk-input textarea::placeholder {
  color: rgba(255,255,255,0.28);
}

.bk-input input:focus,
.bk-input textarea:focus,
.bk-input input:hover,
.bk-input textarea:hover {
  border-bottom-color: var(--bk-pink);
}

.bk-input textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.45;
  padding-top: 12px;
}

.bk-input--wide { grid-column: 1 / -1; }

.bk-input--prefix { max-width: 140px; }
.bk-input--prefix input { font-variant-numeric: tabular-nums; }

/* ---------- Sticky CTA bar ------------------------------------- */

.bk-cta {
  position: sticky;
  bottom: 0;
  left: 0; right: 0;
  margin: 8px -16px -24px;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: rgba(26,28,32,0.92);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-top: 1px solid var(--bk-line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  z-index: 5;
}

.bk-cta__sum {
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.25;
  color: var(--bk-ink);
}

.bk-cta__sum.is-empty {
  color: var(--bk-ink-mute);
  font-weight: 500;
  font-style: italic;
}

.bk-cta__btn {
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--bk-pink);
  color: #1a0810;
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease, opacity 140ms ease;
}

.bk-cta__btn .bk-arr {
  display: inline-flex;
  width: 22px; height: 22px;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: transform 160ms ease;
}

.bk-cta__btn:hover:not(:disabled) {
  background: #ffd0d9;
}
.bk-cta__btn:hover:not(:disabled) .bk-arr { transform: translateX(3px); }

.bk-cta__btn:disabled {
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.45);
  cursor: not-allowed;
}

.bk-msg {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--bk-ink-mute);
  min-height: 0;
}
.bk-msg:empty { display: none; }
.bk-msg.is-error   { color: var(--bk-error); }
.bk-msg.is-success { color: var(--bk-success); }
.bk-msg.is-success a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* hide booking-message inside form (we render it in CTA) — kept as fallback */
.bk-form .booking-message { display: none; }

/* loading/empty states (booking.js renders these inside slots/calendar) */
.booking-empty,
.booking-loading {
  min-height: 48px;
  display: flex;
  align-items: center;
  color: var(--bk-ink-mute);
  font-style: italic;
  font-size: 0.95rem;
  padding: 0 4px;
}
.bk-cal .booking-empty,
.bk-cal .booking-loading {
  grid-row: 1 / -1;
  min-width: 240px;
}

/* ---------- Aside ---------------------------------------------- */

.bk-tips {
  grid-column: 2 / 3;
  position: sticky;
  top: 24px;
  padding: 24px;
  border: 1px solid var(--bk-line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(250,168,181,0.06), rgba(250,168,181,0));
}

.bk-tips__kicker {
  margin: 0 0 14px;
  color: var(--bk-pink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.bk-tips ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.bk-tips li {
  position: relative;
  padding-left: 18px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.78);
}
.bk-tips li::before {
  content: "✷";
  position: absolute;
  left: 0; top: 0;
  color: var(--bk-pink);
  font-size: 0.85rem;
  line-height: 1.6;
}
.bk-tips b { color: var(--bk-ink); font-weight: 700; }
.bk-tips a {
  color: var(--bk-pink);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid currentColor;
}

/* ---------- Responsive ----------------------------------------- */

@media (max-width: 980px) {
  .bk-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .bk-tips {
    grid-column: 1 / -1;
    position: static;
  }
}

@media (max-width: 640px) {
  .bk {
    padding-left: 16px;
    padding-right: 16px;
  }
  .bk-title {
    font-size: clamp(40px, 13vw, 64px);
  }
  .bk-step__head { gap: 10px 12px; }
  .bk-cal-nav {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
  .bk-cal-jump {
    flex: 1;
    min-width: 0;
    justify-content: center;
    min-height: 44px;
  }
  .bk-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .bk-input--prefix {
    grid-column: 1 / 2;
    max-width: 140px;
  }
  .bk-input--phone {
    grid-column: 1 / -1;
  }
  .bk-slots {
    grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  }
  .bk-cal {
    grid-auto-columns: 70px;
    /* bleed into the section padding for an edge-to-edge scroller */
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .booking-day { min-height: 84px; border-radius: 14px; }
  .bk-cta__btn { padding: 12px 18px; }
}

@media (max-width: 380px) {
  .bk-cta {
    grid-template-columns: 1fr;
  }
  .bk-cta__btn { justify-content: center; }
}
