/*
 * TikketX — Event Details Page  (full redesign)
 * BookMyShow × Ticket9 inspired
 * Brand gradient: #E64527 → #F97316
 */

/* ══════════════════════════════════════════════
   0.  TOKENS
══════════════════════════════════════════════ */
:root {
  --p1: #E64527;
  --p2: #F97316;
  --grad: linear-gradient(135deg, #E64527 0%, #F97316 100%);
  --grad-r: linear-gradient(135deg, #F97316 0%, #E64527 100%);
  --glow: rgba(249,115,22,.35);
  --page-bg: #f2f3f7;
  --card-bg: #ffffff;
  --card-dark: #1c1f2a;
  --card-dark2: #14161e;
  --text-main: #111827;
  --text-sub: #6b7280;
  --border: #e5e7eb;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.16);
  --spring: cubic-bezier(.34,1.56,.64,1);
  --ease: cubic-bezier(.25,.46,.45,.94);
}

/* ══════════════════════════════════════════════
   1.  PAGE SHELL
══════════════════════════════════════════════ */
section.mb-4.pt-4.mt-10 {
  padding-top: 0 !important;
  margin-top: 56px !important;      /* below fixed nav */
  background: var(--page-bg) !important;
  min-height: 100vh;
}
section.mb-4.pt-4.mt-10 > .container {
  max-width: 1260px;
  padding: 0 16px;
}
/* kill the inner .bg-white.py-3 container */
section.mb-4.pt-4.mt-10 .bg-white.py-3 {
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* ══════════════════════════════════════════════
   2.  HERO BANNER (image gallery strip)
══════════════════════════════════════════════ */
.col-xl-12.col-lg-12.mb-4 {
  padding: 0;
  margin-bottom: 0 !important;
}
/* un-sticky the gallery – it was sticky which causes layout issues */
.sticky-top.z-3.row.gutters-10 {
  position: relative !important;
  top: auto !important;
  z-index: auto !important;
}
.product-gallery {
  border-radius: 0 !important;
  overflow: hidden;
  position: relative;
}
.product-gallery::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 180px;
  background: linear-gradient(to top, rgba(18,20,30,.85) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}
.product-gallery .carousel-box img {
  height: 480px !important;
  width: 100% !important;
  object-fit: cover !important;
  display: block;
  transition: transform .6s var(--ease);
}
.product-gallery:hover .carousel-box img {
  transform: scale(1.025);
}
/* Flickity nav arrows on gallery */
.product-gallery .flickity-button {
  background: rgba(255,255,255,.18) !important;
  backdrop-filter: blur(6px);
  border-radius: 50% !important;
  color: #fff;
  width: 44px; height: 44px;
  transition: background .2s ease, transform .2s var(--spring);
}
.product-gallery .flickity-button:hover {
  background: var(--grad) !important;
  transform: scale(1.12);
}
.product-gallery .flickity-page-dots .dot { background: rgba(255,255,255,.5); }
.product-gallery .flickity-page-dots .dot.is-selected { background: var(--p2); }

/* ══════════════════════════════════════════════
   3.  MAIN TWO-COLUMN ROW
══════════════════════════════════════════════ */
/* The details partial starts with .text-left.remove_for_mobile > .row */
.text-left.remove_for_mobile > .row {
  margin: 0;
  align-items: flex-start;
}
.text-left.remove_for_mobile > .row > .col-md-8 {
  padding: 24px 20px 24px 0;
}
.text-left.remove_for_mobile > .row > .col-md-4 {
  padding: 0;
  position: sticky;
  top: 70px;
}
@media(max-width: 767px) {
  .text-left.remove_for_mobile > .row > .col-md-8 { padding: 16px 0; }
  .text-left.remove_for_mobile > .row > .col-md-4 { position: relative; top: 0; padding: 0; }
}

/* ══════════════════════════════════════════════
   4.  LEFT COLUMN — info cards
══════════════════════════════════════════════ */
.text-left.remove_for_mobile > .row > .col-md-8 .card {
  border: none !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
  background: var(--card-bg) !important;
  margin-bottom: 16px !important;
  padding: 24px 28px !important;
  animation: evFadeUp .55s ease both;
}
.text-left.remove_for_mobile > .row > .col-md-8 .card:nth-child(1) { animation-delay: .05s; }
.text-left.remove_for_mobile > .row > .col-md-8 .card:nth-child(2) { animation-delay: .12s; }
.text-left.remove_for_mobile > .row > .col-md-8 .card:nth-child(3) { animation-delay: .19s; }
@keyframes evFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hide the awkward floating Book Now in title card */
.text-left.remove_for_mobile .position-absolute.top-0.end-0.remove_for_mobile {
  display: none !important;
}

/* Event title */
.text-left.remove_for_mobile > .row > .col-md-8 h1.fs-5 {
  font-size: clamp(1.5rem, 3vw, 2.1rem) !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  color: var(--text-main) !important;
  margin-bottom: 12px !important;
  padding-right: 0 !important;
}

/* Rating row */
.text-left.remove_for_mobile .rating { color: var(--p2); }
.text-left.remove_for_mobile .text-muted.small { font-size: .82rem; }

/* Action pills: Event Inquiry / Wishlist / Compare */
a[onclick*="goToView"],
.wishlist-btn,
.compare-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--border) !important;
  border-radius: 30px !important;
  padding: 7px 16px !important;
  font-size: .8rem !important;
  font-weight: 600 !important;
  background: #fff !important;
  color: var(--text-main) !important;
  cursor: pointer;
  transition: border-color .22s, background .22s, transform .22s var(--spring), color .22s;
  text-decoration: none !important;
}
a[onclick*="goToView"]:hover { border-color: var(--p2) !important; color: var(--p1) !important; transform: translateY(-2px); }
.wishlist-btn:hover { border-color: #ef4444 !important; color: #dc2626 !important; background: #fff5f5 !important; transform: translateY(-2px); }
.compare-btn:hover  { border-color: var(--p2) !important; color: var(--p1) !important; background: rgba(249,115,22,.06) !important; transform: translateY(-2px); }
.wishlist-btn i,.compare-btn i { font-size: .9rem; }
.animate-underline-blue { color: var(--p1) !important; }

/* Brand / Sold-by card */
.text-left.remove_for_mobile > .row > .col-md-8 .card .text-muted.small.fw-semibold {
  font-size: .8rem !important;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #9ca3af !important;
}

/* Message Organizer */
.btn.btn-sm.btn-warning.rounded-pill {
  background: var(--grad) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600;
  padding: 7px 18px !important;
  transition: transform .22s var(--spring), box-shadow .22s;
}
.btn.btn-sm.btn-warning.rounded-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--glow);
}

/* Description tabs */
.bg-white.mb-4.border.p-3.p-sm-4 {
  border: none !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
  padding: 24px 28px !important;
}
.nav.aiz-nav-tabs {
  border-bottom: 2px solid #f0f0f5;
  gap: 4px;
}
.nav.aiz-nav-tabs a {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-sub);
  padding: 10px 16px;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.nav.aiz-nav-tabs a.active,
.nav.aiz-nav-tabs a.show {
  color: var(--p1) !important;
  border-bottom-color: var(--p1);
}
.aiz-editor-data {
  font-size: .92rem;
  line-height: 1.8;
  color: #374151;
}

/* ══════════════════════════════════════════════
   5.  RIGHT COLUMN — Booking Widget
══════════════════════════════════════════════ */
.text-left.remove_for_mobile > .row > .col-md-4 > .card {
  border: none !important;
  border-radius: var(--radius) !important;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0,0,0,.14) !important;
  animation: evFadeUp .55s .1s ease both;
}

/* Booking card header stripe */
.text-left.remove_for_mobile > .row > .col-md-4 > .card::before {
  content: "🎟  BOOK TICKETS";
  display: block;
  background: var(--grad);
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  padding: 10px 22px;
  margin-bottom: 1rem;
}

/* Price label row */
.text-left.remove_for_mobile > .row > .col-md-4 .col-sm-2 .text-secondary {
  font-size: .75rem !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #9ca3af !important;
  white-space: nowrap;
}

/* Price value */
.text-left.remove_for_mobile > .row > .col-md-4 strong.fs-16.fw-700.text-primary,
.text-left.remove_for_mobile > .row > .col-md-4 .text-primary {
  font-size: 1.55rem !important;
  font-weight: 900 !important;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════════════════════════════════════
   6.  SHOW TIME SELECTION block
══════════════════════════════════════════════ */
.text-left.remove_for_mobile > .row > .col-md-4 .border.bg-white.p-4.mb-4 {
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#screen-select-div h2 {
  font-size: .72rem !important;
  font-weight: 900 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  color: #9ca3af !important;
  margin-bottom: 14px !important;
  padding-top: 4px;
}

/* ────────────────────────────────────────────
   DATE CELLS  (Flickity carousel)
──────────────────────────────────────────── */
.carousel.carousel-nav {
  display: flex;
  gap: 8px;
  padding: 4px 2px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.carousel.carousel-nav::-webkit-scrollbar { display: none; }

/* Force Flickity to lay out as row */
.carousel.carousel-nav .flickity-viewport {
  width: 100% !important;
  height: auto !important;
  overflow: visible !important;
}
.carousel.carousel-nav .flickity-slider {
  display: flex;
  gap: 8px;
  position: relative !important;
  transform: none !important;
}

.carousel-cell.event_date_select {
  width: 62px !important;
  min-width: 62px !important;
  height: auto !important;
  border: 2px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  background: #fff !important;
  text-align: center !important;
  padding: 10px 6px !important;
  cursor: pointer !important;
  transition: border-color .22s, background .22s, transform .22s var(--spring), box-shadow .22s !important;
  user-select: none;
  margin-right: 0 !important;
  flex-shrink: 0;
  position: relative !important;
  left: auto !important;
}
.carousel-cell.event_date_select:hover {
  border-color: var(--p2) !important;
  background: rgba(249,115,22,.06) !important;
  transform: translateY(-3px) !important;
}
/* Selected state — override inline style set by JS */
.carousel-cell.event_date_select.selected,
.carousel-cell.event_date_select[style*="rgb(223, 14, 98)"],
.carousel-cell.event_date_select[style*="#df0e62"] {
  background: var(--grad) !important;
  border-color: transparent !important;
  color: #fff !important;
  transform: translateY(-4px) scale(1.06) !important;
  box-shadow: 0 6px 18px var(--glow) !important;
}
.date-numeric {
  font-size: 1.4rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  color: inherit;
  display: block;
}
.date-day {
  font-size: .62rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
  margin-top: 4px !important;
  line-height: 1.2 !important;
  color: inherit;
  display: block;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ────────────────────────────────────────────
   TIME SLOT PILLS
──────────────────────────────────────────── */
.time-ul { list-style: none; padding: 0; margin: 0; }
.time-li  { margin-bottom: 14px; }
.screens {
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #9ca3af;
  margin-bottom: 8px;
}
.time-btn {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.screen-time.selected_event_time,
button.screen-time {
  background: #f9fafb !important;
  border: 2px solid var(--border) !important;
  border-radius: 30px !important;
  padding: 7px 16px !important;
  font-size: .82rem !important;
  font-weight: 700 !important;
  color: var(--text-main) !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: background .2s, border-color .2s, transform .2s var(--spring), box-shadow .2s !important;
  line-height: 1 !important;
}
.screen-time.selected_event_time:hover,
button.screen-time:hover {
  border-color: var(--p2) !important;
  background: rgba(249,115,22,.07) !important;
  transform: translateY(-2px) !important;
}
.screen-time.selected_event_time.active,
button.screen-time.active {
  background: var(--grad) !important;
  border-color: transparent !important;
  color: #fff !important;
  transform: translateY(-3px) scale(1.04) !important;
  box-shadow: 0 5px 18px var(--glow) !important;
}
/* OLD active style override */
.time-btn .active {
  background: var(--grad) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 5px 18px var(--glow);
}

/* ══════════════════════════════════════════════
   7.  QUANTITY STEPPER
══════════════════════════════════════════════ */
.row.no-gutters.mb-3 .col-sm-10 .product-quantity {
  align-items: center;
}
.aiz-plus-minus {
  border: 2px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  overflow: hidden;
  display: inline-flex;
}
.aiz-plus-minus .btn-light {
  background: #f9fafb !important;
  border: none !important;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0 !important;
  transition: background .2s ease, color .2s;
}
.aiz-plus-minus .btn-light:hover {
  background: rgba(249,115,22,.12) !important;
  color: var(--p1) !important;
}
.aiz-plus-minus input[type="number"] {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  font-weight: 800;
  font-size: 1rem;
  text-align: center;
  width: 46px;
  -moz-appearance: textfield;
}
.aiz-plus-minus input[type="number"]::-webkit-inner-spin-button,
.aiz-plus-minus input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }
.avialable-amount { font-size: .78rem; color: var(--text-sub); margin-left: 10px; }

/* ══════════════════════════════════════════════
   8.  TOTAL PRICE BLOCK
══════════════════════════════════════════════ */
#chosen_price_div {
  background: rgba(249,115,22,.07) !important;
  border: 1.5px solid rgba(249,115,22,.2) !important;
  border-radius: var(--radius-sm) !important;
  padding: 12px 16px !important;
  margin-top: 12px !important;
  display: flex;
  align-items: center;
}
#chosen_price_div .col-sm-2 { flex: 0 0 auto; }
#chosen_price {
  font-size: 1.6rem !important;
  font-weight: 900 !important;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* ══════════════════════════════════════════════
   9.  ADD TO CART + BOOK NOW buttons
══════════════════════════════════════════════ */
/* Container */
.text-left.remove_for_mobile > .row > .col-md-4 .mt-3 {
  display: flex;
  gap: 10px;
  padding: 4px 0 8px;
}
/* Add to Cart */
.btn.btn-warning.mr-2.add-to-cart,
.btn.btn-warning.add-to-cart {
  flex: 1;
  background: #fff !important;
  border: 2px solid var(--p2) !important;
  color: var(--p1) !important;
  border-radius: 10px !important;
  padding: 13px 16px !important;
  font-weight: 700 !important;
  font-size: .9rem !important;
  transition: background .24s, transform .22s var(--spring), box-shadow .22s;
  text-align: center;
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0 !important;
}
.btn.btn-warning.mr-2.add-to-cart:hover,
.btn.btn-warning.add-to-cart:hover {
  background: rgba(249,115,22,.08) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(249,115,22,.2);
}
/* Book Now */
.btn.btn-primary.buy-now,
.btn.btn-primary.add-to-cart.buy-now {
  flex: 1;
  background: var(--grad) !important;
  background-size: 200% 200%;
  border: none !important;
  color: #fff !important;
  border-radius: 10px !important;
  padding: 13px 16px !important;
  font-weight: 700 !important;
  font-size: .9rem !important;
  transition: transform .24s var(--spring), box-shadow .24s;
  min-width: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn.btn-primary.buy-now:hover,
.btn.btn-primary.add-to-cart.buy-now:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 28px var(--glow);
}
/* Sold Out */
.btn.btn-secondary.out-of-stock {
  flex: 1;
  border-radius: 10px !important;
  padding: 13px 16px !important;
}

/* ══════════════════════════════════════════════
   10.  TITLE CARD — floating btn-book-now (top right)
══════════════════════════════════════════════ */
.btn-book-now {
  background: var(--grad);
  border: none;
  color: #fff;
  border-radius: 30px;
  padding: 9px 24px;
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  transition: transform .22s var(--spring), box-shadow .22s;
}
.btn-book-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px var(--glow);
  color: #fff;
}
.btn-sold-out {
  background: #e5e7eb; color: #9ca3af;
  border: none; border-radius: 30px;
  padding: 9px 24px; font-weight: 700; font-size: .88rem; cursor: not-allowed;
}

/* ══════════════════════════════════════════════
   11.  STICKY BOTTOM BAR
══════════════════════════════════════════════ */
.ed-sticky-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1040;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -4px 24px rgba(0,0,0,.1);
  padding: 12px 0;
  transform: translateY(100%);
  transition: transform .38s var(--ease);
}
.ed-sticky-bar.visible { transform: translateY(0); }
.ed-sticky-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ed-sticky-name {
  font-size: .95rem; font-weight: 700; color: #111;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 360px;
}
.ed-sticky-price {
  font-size: 1.2rem; font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  white-space: nowrap;
}
.ed-sticky-bar .btn-book-now { padding: 11px 32px; font-size: .95rem; flex-shrink: 0; border-radius: 10px; }
@media(max-width:575px) {
  .ed-sticky-name { display: none; }
  .ed-sticky-bar .btn-book-now { width: 100%; text-align: center; }
}

/* ══════════════════════════════════════════════
   12.  SECTION BELOW (reviews / related / queries)
══════════════════════════════════════════════ */
section.mb-4:not(.pt-4) {
  background: var(--page-bg) !important;
}
section.mb-4:not(.pt-4) .container {
  max-width: 1260px;
}
.reviews-area .card {
  border: none !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: var(--shadow) !important;
  margin-bottom: 12px !important;
  border-left: 3px solid var(--p2) !important;
  transition: transform .24s var(--spring);
}
.reviews-area .card:hover { transform: translateX(4px); }

.related-products .card,
.top-selling .card {
  border: none !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .28s var(--spring), box-shadow .28s ease;
}
.related-products .card:hover,
.top-selling .card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* ══════════════════════════════════════════════
   13.  CHOICE OPTIONS (aiz-megabox)
══════════════════════════════════════════════ */
.aiz-megabox-elem {
  border-radius: 30px !important;
  padding: 6px 16px !important;
  font-size: .82rem !important;
  font-weight: 600;
  transition: background .2s, border-color .2s, transform .2s var(--spring);
}
.aiz-megabox input:checked + .aiz-megabox-elem {
  background: var(--grad) !important;
  border-color: transparent !important;
  color: #fff !important;
  transform: scale(1.04);
}

/* ══════════════════════════════════════════════
   14.  EVENT ENDED state
══════════════════════════════════════════════ */
p.text-danger { margin: 0 !important; }
p.text-danger strong,
p.text-danger stron {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 700;
  padding: 10px 18px;
  background: #fff5f5;
  border: 1.5px solid #fca5a5;
  border-radius: var(--radius-sm);
  color: #dc2626;
}

/* ══════════════════════════════════════════════
   15.  ORGANISER INFO card (sidebar)
══════════════════════════════════════════════ */
.border.mb-4 {
  border-radius: var(--radius) !important;
  border-color: var(--border) !important;
  box-shadow: var(--shadow) !important;
  transition: box-shadow .3s ease, transform .3s var(--spring);
}
.border.mb-4:hover {
  box-shadow: var(--shadow-lg) !important;
  transform: translateY(-3px);
}
.border.mb-4 .avatar {
  border-radius: 50% !important;
  border: 2.5px solid var(--p2) !important;
}

/* ══════════════════════════════════════════════
   16.  MODAL overrides
══════════════════════════════════════════════ */
.modal-content {
  border-radius: var(--radius) !important;
  border: none; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
}
.modal-header {
  background: var(--grad);
  border-bottom: none;
}
.modal-header .modal-title { color: #fff; font-weight: 700; }
.modal-header .close { color: #fff; opacity: .85; }
.modal-footer .btn-primary {
  background: var(--grad) !important; border: none !important;
  border-radius: var(--radius-sm) !important;
}
.modal-footer .btn-outline-primary {
  border-color: var(--p2) !important; color: var(--p1) !important;
  border-radius: var(--radius-sm) !important;
}
.modal-footer .btn-outline-primary:hover {
  background: rgba(249,115,22,.08) !important;
}

/* ══════════════════════════════════════════════
   17.  RESPONSIVE
══════════════════════════════════════════════ */
@media(max-width: 767px) {
  .product-gallery .carousel-box img { height: 280px !important; }
  .product-gallery::after { height: 100px; }
  .text-left.remove_for_mobile > .row > .col-md-4 > .card::before { font-size: .7rem; padding: 8px 16px; }
  #chosen_price { font-size: 1.3rem !important; }
  .text-left.remove_for_mobile > .row > .col-md-4 .mt-3 { flex-direction: column; }
  .btn.btn-warning.mr-2.add-to-cart,
  .btn.btn-primary.buy-now { width: 100%; }
}
