/* Witzzart M2.0.0 — booking flow + experience cards, mobile-first redesign.
   Loaded after booking-ui.css on Book Now, Review & Pay, Ticket and Experiences. Presentation only. */

/* ───────── Back button (shared: Book Now, Review & Pay, Ticket / My bookings) ───────── */
.bk-back {
  display: inline-flex; align-items: center; gap: 10px;
  height: 42px; margin: 0 0 14px; padding: 4px 16px 4px 4px;
  background: #fff; border: 1px solid var(--bk-line, #e8e2db); border-radius: 999px;
  font-size: 14px; font-weight: 600; line-height: 1; letter-spacing: -.005em;
  color: var(--bk-ink, #1f1a17); text-decoration: none;
  box-shadow: 0 1px 2px rgba(31, 26, 23, .05), 0 4px 14px -8px rgba(31, 26, 23, .18);
  transition: box-shadow .18s, border-color .18s, transform .18s;
  -webkit-tap-highlight-color: transparent;
}
.bk-back > i {
  width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f4efea; color: var(--bk-ink, #1f1a17); font-size: 16px;
  transition: background .18s, color .18s, transform .18s;
}
.bk-back:hover { transform: none; border-color: #dccfc3; box-shadow: 0 2px 4px rgba(31,26,23,.06), 0 8px 20px -10px rgba(31,26,23,.28); color: var(--bk-ink, #1f1a17); }
.bk-back:hover > i, .bk-back:active > i { background: var(--bk-brand, #ff3131); color: #fff; transform: translateX(-2px); }
.bk-back:active { transform: scale(.98); }

/* ───────── Step indicator: connected circles, one clear current step ───────── */
.bk-progress {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0;
  padding: 14px 6px 12px; margin: 0 0 16px; list-style: none;
  background: #fff; border: 1px solid var(--bk-line, #e8e2db); border-radius: 18px;
  box-shadow: 0 1px 2px rgba(31,26,23,.04);
}
.bk-progress li {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 0 2px; background: transparent !important; border: 0 !important; box-shadow: none !important;
  text-align: center; color: var(--bk-muted, #8a817a); font-weight: 500;
}
.bk-progress li:not(:first-child)::before {
  content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 2px; border-radius: 2px;
  background: var(--bk-line, #e8e2db);
}
.bk-progress li.is-done::before, .bk-progress li.is-current::before { background: var(--bk-ok, #16a34a); }
.bk-progress li .n {
  position: relative; z-index: 1; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; background: #f1ece6; color: var(--bk-muted, #8a817a);
  box-shadow: 0 0 0 3px #fff;
}
.bk-progress li.is-done .n { background: var(--bk-ok, #16a34a); color: #fff; }
.bk-progress li.is-current .n { background: var(--bk-brand, #ff3131); color: #fff; box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(255, 49, 49, .22); }
.bk-progress li > span:last-child {
  white-space: normal; overflow: visible; text-overflow: clip;
  font-size: 11px; line-height: 1.2; letter-spacing: -.005em;
}
.bk-progress li.is-current > span:last-child { color: var(--bk-ink, #1f1a17); font-weight: 700; }
.bk-progress li.is-done > span:last-child { color: var(--bk-ink, #1f1a17); }
@media (max-width: 380px) { .bk-progress li > span:last-child { font-size: 10px; } }

/* ───────── Event summary card (Book Now) ───────── */
.bk-hero {
  display: flex; align-items: flex-start; gap: 14px; padding: 14px;
  border-radius: 20px; border: 1px solid var(--bk-line, #e8e2db); background: #fff;
  box-shadow: 0 1px 2px rgba(31,26,23,.04), 0 10px 30px -18px rgba(31,26,23,.22);
}
.bk-hero-img { width: 68px; height: 68px; flex: 0 0 68px; border-radius: 16px; object-fit: cover; box-shadow: 0 4px 12px -4px rgba(31,26,23,.3); }
.bk-hero-tx { flex: 1 1 auto; min-width: 0; }
.bk-hero-title {
  margin: 0 0 8px; font-size: 18px; line-height: 1.25; font-weight: 800; letter-spacing: -.02em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.bk-meta { display: flex; flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 5px; }
.bk-meta span {
  display: flex; align-items: flex-start; gap: 8px; padding: 0; background: none; border-radius: 0;
  font-size: 12.5px; line-height: 1.35; font-weight: 500; color: #6f655e; min-width: 0; overflow-wrap: anywhere;
}
.bk-meta span svg, .bk-meta span .witz-meta-svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 1px; color: var(--bk-brand, #ff3131); }

/* ───────── Step cards ───────── */
.bk-card { border-radius: 20px; }
.bk-card-hd { gap: 10px; flex-wrap: wrap; }
.bk-card-hd .n { border-radius: 10px; }
.bk-card-hd h2 { font-size: 17px; font-weight: 800; letter-spacing: -.015em; }

/* ───────── Seat selection (mobile) ───────── */
@media (max-width: 767.98px) {
  .bk #seatPane.witz-venue { padding: 14px !important; border-radius: 20px !important; }
  .bk #seatPane .witz-venue-eyebrow { display: none; }
  .bk #seatPane .witz-venue-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
  .bk #seatPane .witz-venue-heading h3 { font-size: 19px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
  .bk #seatPane .witz-venue-heading p { font-size: 13px; line-height: 1.45; margin-top: 4px; opacity: .85; }
  .bk #seatPane .witz-venue-live { font-size: 11px; padding: 5px 10px; }

  /* Map colours: one slim row of round swatches instead of four wide buttons */
  .bk #seatPane .witz-theme-switcher { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px !important; border-radius: 14px; }
  .bk #seatPane .witz-theme-label { font-size: 12.5px; white-space: nowrap; }
  .bk #seatPane .witz-theme-options { display: flex !important; grid-template-columns: none; gap: 8px; width: auto !important; flex-wrap: nowrap; }
  .bk #seatPane .witz-theme-btn { width: 34px; height: 34px; min-height: 0 !important; min-width: 0; padding: 0 !important; font-size: 0 !important; justify-content: center; border-radius: 50% !important; flex: 0 0 34px; }
  .bk #seatPane .witz-theme-btn .witz-theme-dot { width: 20px; height: 20px; margin: 0; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }

  /* Zones: swipeable chips, price + seats left on the second line */
  .bk #seatPane .bk-seattools { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 6px 0 0; }
  .bk #seatPane .bk-cats { display: flex; flex-wrap: nowrap !important; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x proximity; margin: 0 -2px; }
  .bk #seatPane .bk-cat { flex: 0 0 auto; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 14px !important; border-radius: 14px !important; }
  .bk #seatPane .bk-cat small { display: block; font-size: 11px; opacity: .8; }

  /* Zoom: one full-width segmented bar */
  .bk #seatPane .bk-zoom { display: flex; width: 100%; align-self: stretch; margin: 0; padding: 4px; gap: 4px; border-radius: 14px; }
  .bk #seatPane .bk-zoom button { flex: 1 1 0 !important; width: auto !important; min-width: 0 !important; height: 40px !important; border-radius: 10px !important; }

  /* Map: use the width, give it height, and keep it in its own rounded frame */
  .bk #seatPane .witz-venue-map-shell { padding: 4px !important; border-radius: 16px !important; margin-top: 8px; }
  .bk #seatPane .witz-stage-caption { padding: 8px 8px 2px; }
  .bk #seatPane .wsm-scroll { min-height: 42vh; max-height: 62vh !important; }

  /* Legend: a padded card; each key wraps as a whole so "VIP / Premium / Custom" + prices are never clipped */
  .bk #seatPane #seatLegend { margin-top: 12px; padding: 14px 16px !important; border-radius: 14px; background: rgba(127,127,127,.08); }
  .bk #seatPane .wsm-legend { display: flex !important; flex-wrap: wrap; gap: 10px 18px; font-size: 12.5px; line-height: 1.3; }
  .bk #seatPane .wsm-leg { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; max-width: 100%; white-space: nowrap; overflow: visible; text-overflow: clip; }
  .bk #seatPane .wsm-legend > :empty { display: none; }
  .bk #seatPane .wsm-leg-sep { flex: 0 0 100% !important; width: 100% !important; height: 0 !important; margin: 0 !important; border: 0 !important; padding: 0 !important; background: none !important; }

  /* Chosen seats: a tray that reads as a summary */
  .bk #seatPane .bk-picked { margin-top: 10px; padding: 14px 16px; border-radius: 14px; background: rgba(127,127,127,.1); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .bk #seatPane .bk-picked .lbl { font-weight: 700; font-size: 13px; margin-right: 2px; }
  .bk #seatPane .bk-picked .hint { font-size: 12.5px; opacity: .85; }

  /* Bottom bar: floating sheet with a clear primary action */
  .bk-bar {
    border: 0; border-radius: 22px 22px 0 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 -10px 34px -10px rgba(31,26,23,.28);
  }
  .bk-bar .info b { font-size: 22px; letter-spacing: -.02em; }
  .bk-bar .bk-cta { height: 50px; padding: 0 26px; border-radius: 999px; font-size: 15px; font-weight: 700; box-shadow: 0 8px 20px -8px rgba(255,49,49,.6); }
  .bk-bar .bk-cta:disabled { box-shadow: none; }
  .bk { padding-bottom: 110px; }
}

/* ───────── Review & Pay ───────── */
.bk.bk-flowhead { margin-bottom: 4px; }
@media (max-width: 767.98px) {
  main.container-xxl { padding-top: 16px !important; padding-bottom: 36px !important; }
  main.container-xxl > h1.heading-h1 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin: 4px 0 16px !important; }
  main.container-xxl .form-control, main.container-xxl .form-select { height: 50px; border-radius: 14px; }
  main.container-xxl label { font-size: 12px; letter-spacing: .04em; }
}

/* ───────── Ticket / booking confirmed ───────── */
.tk-success {
  flex-direction: column; text-align: center; gap: 14px; padding: 26px 20px 22px;
  border-radius: 22px; background: linear-gradient(180deg, #f3fbf6 0%, #fff 70%); border-color: #d8efe0;
}
.tk-success .ic {
  width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--bk-ok, #16a34a); color: #fff; font-size: 30px; box-shadow: 0 0 0 8px rgba(22,163,74,.14), 0 10px 24px -8px rgba(22,163,74,.6);
}
.tk-success h1 { font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -.03em; margin: 0 0 6px; }
.tk-success p { font-size: 14px; line-height: 1.6; color: #6f655e; max-width: 34ch; margin: 0 auto; }
.tk-success p b { color: var(--bk-ink, #1f1a17); font-weight: 700; overflow-wrap: anywhere; }
.tk-head { border-radius: 0; background: linear-gradient(135deg, #ff3131 0%, #e11d48 100%); }
.tk-head h2 { font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: -.025em; margin: 6px 0 0; }
.tk-head .bk-status { align-self: flex-start; }
.tk-info .bk-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: #9a9088; margin-bottom: 4px; }
.tk-info > div > div:not(.bk-label) { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.tk { border-radius: 22px; overflow: hidden; }

/* ───────── Experience cards: two per row on phones ───────── */
@media (max-width: 575.98px) {
  body #desktopEventsGrid, body #mobileEventsScroll {
    display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; align-items: stretch;
  }
  body #desktopEventsGrid > *, body #mobileEventsScroll > * { min-width: 0 !important; width: 100% !important; }
  body #desktopEventsGrid .airbnb-listing-card, body #mobileEventsScroll .airbnb-listing-card { border-radius: 16px !important; height: 100%; }
  body #desktopEventsGrid .airbnb-card-image-wrapper, body #mobileEventsScroll .airbnb-card-image-wrapper {
    aspect-ratio: 4 / 3 !important; border-radius: 16px 16px 0 0 !important;
  }
  body #desktopEventsGrid .airbnb-card-badge, body #mobileEventsScroll .airbnb-card-badge { top: 8px !important; left: 8px !important; padding: 4px 8px !important; font-size: 10px !important; }
  body #desktopEventsGrid .airbnb-card-content, body #mobileEventsScroll .airbnb-card-content { padding: 10px 10px 12px !important; gap: 0; }
  body #desktopEventsGrid .airbnb-title, body #mobileEventsScroll .airbnb-title {
    font-size: 14px !important; line-height: 1.3 !important; margin: 0 0 6px; min-height: 2.6em; -webkit-line-clamp: 2;
  }
  body #desktopEventsGrid .airbnb-subtitle, body #mobileEventsScroll .airbnb-subtitle {
    display: block !important; font-size: 11.5px !important; line-height: 1.4 !important; margin-bottom: 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  body #desktopEventsGrid .airbnb-subtitle i, body #mobileEventsScroll .airbnb-subtitle i { margin-right: 4px !important; font-size: 11px !important; }
  body #desktopEventsGrid .airbnb-price-wrapper, body #mobileEventsScroll .airbnb-price-wrapper { padding-top: 8px; margin-top: auto; gap: 4px; flex-wrap: nowrap; align-items: baseline; }
  body #desktopEventsGrid .airbnb-price, body #mobileEventsScroll .airbnb-price { font-size: 15px !important; }
  body #desktopEventsGrid .airbnb-price-label, body #mobileEventsScroll .airbnb-price-label { font-size: 10.5px !important; white-space: nowrap; }
  body #desktopEventsGrid .airbnb-action-btn, body #mobileEventsScroll .airbnb-action-btn {
    min-height: 38px !important; margin-top: 10px !important; padding: 8px 10px !important; font-size: 12.5px !important; border-radius: 10px !important;
  }
}
