/* =====================================================
   EVENT / SESSION / SEAT FLOW
===================================================== */

.ticket-page {
  width: min(calc(100% - 48px), 1280px);
  margin: 26px auto 0;
}

.detail-back {
  height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  background: var(--surface);
  font-size: 9px;
  font-weight: 700;
}

.detail-back svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.ticket-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  font-size: 10px;
}

.ticket-breadcrumb a {
  color: var(--accent);
}

.ticket-breadcrumb span {
  color: var(--muted);
}

.ticket-breadcrumb strong {
  color: var(--text);
}

.ticket-panel {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
}

.event-side {
  min-width: 0;
}

.event-poster {
  position: relative;
  min-height: 370px;
  padding: 22px;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 78% 20%, rgba(255,176,0,.32), transparent 28%),
    radial-gradient(circle at 13% 86%, rgba(239,60,32,.42), transparent 32%),
    linear-gradient(155deg,#1b1a18,#0d0d0d 58%,#29130d);
  color: white;
}

.event-poster-badge {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  font-family: Arial, sans-serif;
  font-size: 7px;
  letter-spacing: .12em;
}

.event-poster-copy {
  position: absolute;
  right: 22px;
  left: 22px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.event-poster-copy small {
  margin-bottom: 8px;
  font-family: Arial, sans-serif;
  font-size: 7px;
  letter-spacing: .17em;
  opacity: .55;
}

.event-poster-copy strong {
  font-family: Arial, sans-serif;
  font-size: 44px;
  line-height: .9;
  letter-spacing: -.05em;
}

.event-poster-copy span {
  margin-top: 14px;
  font-family: Arial, sans-serif;
  font-size: 8px;
  letter-spacing: .12em;
  opacity: .65;
}

.event-side-copy {
  padding: 20px 4px 0;
}

.event-side-copy h1 {
  margin: 0 0 14px;
  font-size: 24px;
}

.event-side-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-side-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
}

.event-side-meta svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.event-main {
  min-width: 0;
}

.purchase-steps {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr auto;
  align-items: start;
  gap: 0;
  margin-bottom: 28px;
}

.step {
  min-width: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.step span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  transition: .3s ease;
}

.step strong {
  font-size: 8px;
  white-space: nowrap;
}

.step.active {
  color: var(--accent);
}

.step.active span {
  background: var(--accent);
  color: #fff;
}

.step.done span {
  background: var(--text);
  color: var(--bg);
}

.step-line {
  height: 2px;
  margin-top: 18px;
  background: var(--line);
}

.event-notes {
  margin-bottom: 30px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--soft);
}

.event-notes p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 2;
}

.event-notes p + p {
  margin-top: 5px;
}

.event-notes i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--accent);
}

.flow-stage {
  display: none;
}

.flow-stage.active-stage {
  display: block;
  animation: stageIn .5s cubic-bezier(.22,.61,.36,1);
}

@keyframes stageIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.flow-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.flow-heading > div > span {
  color: var(--accent);
  font-size: 8px;
  font-weight: 700;
}

.flow-heading h2 {
  margin: 4px 0 0;
  font-size: 27px;
}

.flow-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
}

.sessions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.session-card {
  padding: 18px;
  text-align: right;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition:
    transform .25s ease,
    border-color .25s ease,
    box-shadow .25s ease;
}

.session-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 18px 35px rgba(0,0,0,.07);
}

.session-card-date,
.session-card-location,
.session-card-time {
  display: flex;
  align-items: center;
  gap: 7px;
}

.session-card-date {
  flex-wrap: wrap;
}

.session-card-date strong {
  font-size: 10px;
}

.session-card-date span,
.session-card-location span,
.session-card-time span {
  color: var(--muted);
  font-size: 8px;
}

.session-card svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.session-card-location {
  margin-top: 13px;
}

.session-card-time {
  margin-top: 9px;
}

.session-card-time strong {
  margin-right: auto;
  font-size: 12px;
}

.session-buy {
  display: block;
  margin-top: 16px;
  padding: 11px 15px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  text-align: center;
  font-size: 9px;
  font-weight: 700;
}

.change-session {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 8px;
  cursor: pointer;
}

.selected-session-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--soft);
}

.selected-session-box span {
  color: var(--muted);
  font-size: 8px;
}

.selected-session-box strong {
  font-size: 9px;
}

.seat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
}

.seat-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 8px;
}

.legend {
  width: 10px;
  height: 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.legend.available { background: var(--surface); }
.legend.selected { background: #d89b24; border-color: #d89b24; }
.legend.reserved { background: #d89b24; border-color: #d89b24; }
.legend.sold { background: #aa2e25; border-color: #aa2e25; }

.seat-layout-shell {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--soft);
}

.stage-front {
  width: min(78%, 600px);
  margin: 0 auto 34px;
  padding: 11px 20px;
  text-align: center;
  border-radius: 8px 8px 25px 25px;
  background: var(--text);
  color: var(--bg);
}

.stage-front span {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 6px;
  letter-spacing: .25em;
  opacity: .65;
}

.stage-front strong {
  font-size: 9px;
}

.seat-map {
  width: min(100%, 760px);
  margin: 0 auto;
}

.seat-zone-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.seat-zone-head strong {
  font-size: 9px;
}

.seat-zone-head span {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 7px;
  letter-spacing: .1em;
}

.seat-grid {
  display: grid;
  grid-template-columns: repeat(var(--seat-cols), minmax(18px, 26px));
  justify-content: center;
  gap: 7px;
}

.seat {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 6px 6px 9px 9px;
  background: var(--surface);
  cursor: pointer;
  transition: .16s ease;
}

.seat:hover:not(:disabled) {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.seat.selected {
  background: #d89b24;
  border-color: #d89b24;
  color: #fff;
}

.seat.sold {
  background: var(--line);
  cursor: not-allowed;
  opacity: .35;
}

.aisle {
  margin: 18px 0;
  color: var(--muted);
  text-align: center;
  font-size: 7px;
}

.seat-checkout {
  position: sticky;
  bottom: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(0,0,0,.07);
}

.seat-checkout > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.seat-checkout span {
  color: var(--muted);
  font-size: 8px;
}

.seat-checkout strong {
  font-size: 9px;
}

.seat-checkout button {
  min-width: 120px;
  height: 41px;
  border: 0;
  border-radius: 11px;
  background: var(--text);
  color: var(--bg);
  font: inherit;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.seat-checkout button:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.reveal-item,
.site-footer {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .65s ease,
    transform .65s cubic-bezier(.22,.61,.36,1);
}

.reveal-item.is-visible,
.site-footer.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1000px) {
  .ticket-panel {
    grid-template-columns: 240px minmax(0,1fr);
  }

  .purchase-steps {
    overflow-x: auto;
    padding-bottom: 8px;
  }
}

@media (max-width: 820px) {
  .ticket-panel {
    grid-template-columns: 1fr;
  }

  .event-side {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 18px;
  }

  .event-poster {
    min-height: 250px;
  }

  .event-poster-copy strong {
    font-size: 30px;
  }

  .event-side-copy {
    align-self: center;
  }
}

@media (max-width: 620px) {
  .ticket-page {
    width: calc(100% - 28px);
  }

  .ticket-panel {
    padding: 20px;
    border-radius: 22px;
  }

  .event-side {
    grid-template-columns: 1fr;
  }

  .event-poster {
    min-height: 320px;
  }

  .purchase-steps {
    grid-template-columns: repeat(9, max-content);
    justify-content: start;
  }

  .step {
    min-width: 72px;
  }

  .step-line {
    width: 34px;
  }

  .sessions-grid {
    grid-template-columns: 1fr;
  }

  .flow-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .seat-layout-shell {
    overflow-x: auto;
    padding: 20px 8px;
  }

  .seat-map {
    min-width: 540px;
  }

  .detail-back {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item,
  .site-footer {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* =====================================================
   VIP MAP — ARENA STYLE
===================================================== */
.vip-zone {
  margin-bottom: 8px;
}

.vip-map-wrap {
  width: 100%;
  overflow-x: auto;
  padding: 8px 4px 16px;
}

.vip-seat-map {
  min-width: 770px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  direction: ltr;
}

.vip-row {
  display: grid;
  grid-template-columns: 1fr 1.85fr 1fr 22px;
  align-items: center;
  gap: 16px;
}

.vip-seat-block {
  display: grid;
  gap: 3px;
  justify-content: center;
}

.vip-seat-block-left,
.vip-seat-block-right {
  grid-template-columns: repeat(12, 13px);
}

.vip-seat-block-middle {
  grid-template-columns: repeat(22, 13px);
}

.seat.vip-seat {
  width: 13px;
  height: 13px;
  aspect-ratio: auto;
  padding: 0;
  border: 0;
  border-radius: 2px;
  display: grid;
  place-items: center;
  background: #46a23b;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 6px;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
}

.seat.vip-seat:hover:not(:disabled) {
  transform: scale(1.18);
  border: 0;
  outline: 1px solid rgba(0,0,0,.12);
}

.seat.vip-seat.sold {
  background: #a92d23;
  color: #fff;
  opacity: 1;
}

.seat.vip-seat.selected {
  background: #d99a22;
  color: #fff;
  outline: 2px solid rgba(217,154,34,.22);
  transform: scale(1.12);
}

.vip-row-label {
  color: #2f62aa;
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.vip-zone .seat-zone-head {
  padding-inline: 2px 22px;
  margin-bottom: 8px;
}

.vip-zone + .aisle {
  margin-top: 14px;
}

/* Stage shape closer to the reference */
.stage-front {
  width: min(56%, 420px);
  min-height: 34px;
  margin-bottom: 26px;
  padding: 8px 20px 9px;
  border-radius: 0 0 26px 26px;
  background: #59698f;
  color: #fff;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.15);
}

@media (max-width: 620px) {
  .vip-map-wrap {
    margin-inline: -2px;
  }

  .vip-seat-map {
    min-width: 770px;
  }
}


/* =====================================================
   FREEFORM SEAT DESIGNER
===================================================== */
.seat-designer-shell {
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
}

.seat-designer-head {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.seat-designer-head span {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 2px;
}

.seat-designer-head h3 {
  margin: 4px 0 4px;
  font-size: 14px;
}

.seat-designer-head p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.designer-toggle,
.designer-toolbar button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.designer-toggle.is-active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.designer-toolbar {
  padding: 12px 18px;
  display: flex;
  align-items: end;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 96%, var(--text) 4%);
}

.designer-toolbar[hidden] {
  display: none !important;
}

.designer-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--muted);
  font-size: 8px;
}

.designer-toolbar select,
.designer-toolbar input {
  height: 38px;
  min-width: 82px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 9px;
  outline: none;
}

.designer-help {
  padding: 9px 18px 11px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
}

.designer-help[hidden] {
  display: none !important;
}

.custom-seat-canvas-wrap {
  width: 100%;
  overflow: auto;
  padding: 10px 0 16px;
}

.custom-seat-canvas {
  position: relative;
  width: 1140px;
  min-width: 1140px;
  height: 1000px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    color-mix(in srgb, var(--surface) 98%, var(--text) 2%);
  background-size: 20px 20px;
  overflow: hidden;
}

.custom-seat-canvas.designer-active {
  outline: 2px dashed color-mix(in srgb, var(--text) 28%, transparent);
  outline-offset: 4px;
}

.custom-seat {
  position: absolute;
  width: 23px;
  height: 23px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 5px 5px 3px 3px;
  background: #43a047;
  color: #fff;
  font-size: 7px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
  touch-action: none;
  transition: transform .12s ease, box-shadow .12s ease;
}

.custom-seat:hover {
  transform: scale(1.1);
}

.custom-seat.is-sold {
  background: #aa2e25;
  cursor: not-allowed;
}

.custom-seat.is-disabled {
  background: #8e8e8e;
  opacity: .45;
  cursor: not-allowed;
}

.custom-seat.runtime-selected {
  background: #d99a22;
  box-shadow: 0 0 0 3px rgba(217,154,34,.22);
}

.custom-seat.design-selected,
.custom-stage-object.design-selected,
.custom-text-object.design-selected {
  outline: 2px solid #2f62aa;
  outline-offset: 2px;
}

.custom-stage-object {
  position: absolute;
  min-width: 120px;
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 6px 18px;
  border-radius: 0 0 24px 24px;
  background: #59698f;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.custom-text-object {
  position: absolute;
  padding: 4px 8px;
  border: 1px dashed var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  font-size: 8px;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

@media (max-width: 760px) {
  .seat-designer-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .designer-toolbar {
    align-items: stretch;
  }

  .designer-toolbar label {
    min-width: 46%;
  }

  .designer-toolbar button {
    flex: 1 1 120px;
  }
}


/* Buyer view: seat map is display-only except seat selection */
.buyer-seat-canvas .custom-stage-object,
.buyer-seat-canvas .buyer-map-text {
  cursor: default !important;
}

.buyer-seat-canvas .custom-seat {
  cursor: pointer;
}

.buyer-seat-canvas .custom-seat.is-sold,
.buyer-seat-canvas .custom-seat.is-disabled {
  cursor: not-allowed;
}


/* =====================================================
   BUYER SEAT MAP V2 — NO SCROLL / CLEAN BACKGROUND / RESERVED
===================================================== */
.custom-seat-canvas-wrap {
  overflow: hidden !important;
  width: 100%;
  padding: 10px 0 16px;
}

.custom-seat-canvas {
  width: 1140px;
  min-width: 1140px;
  height: 1000px;
  margin-inline: auto;
  background: color-mix(in srgb, var(--surface) 98%, var(--text) 2%) !important;
  background-image: none !important;
}

.custom-seat.is-reserved {
  background: #d89b24;
  color: #fff;
  cursor: not-allowed !important;
}

.custom-seat.is-sold {
  background: #aa2e25;
}

.custom-seat.runtime-selected {
  background: #d89b24;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(216,155,36,.18);
}


/* =====================================================
   MULTI-SEAT PURCHASE / TIMER
===================================================== */
.purchase-timer-box {
  margin: 12px 0;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.purchase-timer-box[hidden] {
  display: none !important;
}

.purchase-timer-box span {
  color: var(--muted);
  font-size: 9px;
}

.purchase-timer-box strong {
  font-family: Arial, sans-serif;
  font-size: 15px;
  direction: ltr;
}

.seat-purchase-summary {
  min-width: 120px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.seat-purchase-summary span {
  color: var(--muted);
  font-size: 8px;
}

.seat-purchase-summary strong {
  font-size: 11px;
}

.custom-seat {
  position: absolute;
}

.custom-seat:hover:not(:disabled)::after {
  content: attr(data-price-label);
}

.custom-seat.runtime-selected {
  background: #d89b24 !important;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(216,155,36,.18);
}
.admin-detail-media{display:block;max-width:100%;border-radius:inherit}

/* =====================================================
   EVENT ENTRY / SEAT PICKER STRUCTURE FIX
   Keeps the event-detail page stable after admin hall integration.
===================================================== */
.ticket-panel {
  align-items: start;
}

.event-side,
.event-main,
.flow-stage,
.seat-layout-shell,
.custom-seat-canvas-wrap {
  min-width: 0;
  box-sizing: border-box;
}

/* The hall designer already owns the stage object, so the buyer map is one
   clean canvas and does not get a second decorative stage above it. */
.seat-layout-shell {
  width: 100%;
  overflow: hidden;
  padding: 18px;
}

.custom-seat-canvas-wrap {
  position: relative;
  width: 100%;
  overflow: hidden !important;
  padding: 0;
}

.buyer-seat-canvas {
  flex: 0 0 auto;
  transform-origin: top center;
}

.purchase-timer-box,
.seat-checkout {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 820px) {
  .ticket-panel {
    gap: 24px;
  }
  .event-main {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .seat-layout-shell {
    padding: 10px;
    overflow: hidden;
  }

  .seat-checkout {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .seat-checkout button {
    grid-column: 1 / -1;
    width: 100%;
  }
}


/* =====================================================
   CONCERT DETAIL — STABLE LAYOUT REPAIR
   Keeps event info, session flow and admin-defined seat map aligned.
===================================================== */
.ticket-page{
  width:min(calc(100% - 32px),1600px);
  margin:24px auto 0;
}
.ticket-panel{
  display:grid;
  grid-template-columns:minmax(230px,280px) minmax(0,1fr);
  align-items:start;
  gap:30px;
  width:100%;
  box-sizing:border-box;
}
.event-side,.event-main,.flow-stage{min-width:0;width:100%;}
.purchase-steps{width:100%;min-width:0;}
.sessions-grid{width:100%;}
.seat-layout-shell{
  width:100%;
  max-width:100%;
  overflow:hidden;
  padding:18px;
  box-sizing:border-box;
}
.custom-seat-canvas-wrap{
  position:relative;
  width:100%;
  max-width:100%;
  overflow:hidden!important;
  padding:0!important;
  direction:ltr;
}
.buyer-seat-canvas{
  width:1140px!important;
  min-width:1140px!important;
  height:1000px!important;
  margin:0!important;
  transform-origin:top left!important;
  direction:ltr;
}
.custom-seat,.custom-stage-object,.buyer-map-text{box-sizing:border-box;}
.purchase-timer-box,.seat-checkout{width:100%;max-width:100%;box-sizing:border-box;}
.seat-checkout{z-index:4;}
@media(max-width:900px){
  .ticket-panel{grid-template-columns:1fr;gap:24px;padding:24px;}
  .event-side{display:grid;grid-template-columns:minmax(170px,220px) minmax(0,1fr);gap:20px;align-items:start;}
  .event-poster{min-height:280px;}
}
@media(max-width:620px){
  .ticket-page{width:calc(100% - 24px);}
  .ticket-panel{padding:16px;border-radius:20px;}
  .event-side{grid-template-columns:1fr;}
  .event-poster{min-height:300px;}
  .purchase-steps{overflow-x:auto;grid-template-columns:repeat(9,max-content);padding-bottom:8px;}
  .sessions-grid{grid-template-columns:1fr;}
  .seat-layout-shell{padding:8px;}
  .seat-checkout{position:static;display:grid;grid-template-columns:1fr 1fr;gap:10px;}
  .seat-checkout button{grid-column:1/-1;width:100%;}
}

/* =====================================================
   DETAIL EVENT CARD — FIXED SIZE
   Prevents the homepage .event-poster rules from resizing this card.
===================================================== */
.ticket-page .ticket-panel .event-side {
  width: 300px !important;
  max-width: 300px !important;
  min-width: 300px !important;
  justify-self: start;
}
.ticket-page .ticket-panel .event-side .event-poster {
  width: 300px !important;
  height: 370px !important;
  min-height: 370px !important;
  max-height: 370px !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  flex: none !important;
}
.ticket-page .ticket-panel .event-side .event-side-copy {
  width: 300px !important;
  max-width: 300px !important;
  box-sizing: border-box;
}
.ticket-page .ticket-panel .event-side .admin-detail-media {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  display: block;
}
@media (max-width: 900px) and (min-width: 621px) {
  .ticket-page .ticket-panel .event-side {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: 220px minmax(0,1fr) !important;
  }
  .ticket-page .ticket-panel .event-side .event-poster {
    width: 220px !important;
    height: 272px !important;
    min-height: 272px !important;
    max-height: 272px !important;
  }
  .ticket-page .ticket-panel .event-side .event-side-copy {
    width: auto !important;
    max-width: none !important;
  }
}
@media (max-width: 620px) {
  .ticket-page .ticket-panel .event-side {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .ticket-page .ticket-panel .event-side .event-poster {
    width: min(100%, 300px) !important;
    height: 370px !important;
    min-height: 370px !important;
    max-height: 370px !important;
    margin-inline: auto !important;
  }
  .ticket-page .ticket-panel .event-side .event-side-copy {
    width: 100% !important;
    max-width: none !important;
  }
}

/* =====================================================
   FINAL DETAIL POSTER LOCK
   Admin image settings can crop/position the image only.
   They cannot resize the event card.
===================================================== */
.ticket-page .ticket-panel > .event-side {
  width: 300px !important;
  min-width: 300px !important;
  max-width: 300px !important;
}
.ticket-page .ticket-panel > .event-side > .event-poster {
  display: block !important;
  width: 300px !important;
  min-width: 300px !important;
  max-width: 300px !important;
  height: 370px !important;
  min-height: 370px !important;
  max-height: 370px !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
.ticket-page .ticket-panel > .event-side > .event-poster > .admin-detail-media {
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  border-radius: inherit !important;
}
.ticket-page .ticket-panel > .event-side > .event-side-copy {
  width: 300px !important;
  min-width: 300px !important;
  max-width: 300px !important;
}

@media (max-width: 900px) and (min-width: 621px) {
  .ticket-page .ticket-panel > .event-side {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    grid-template-columns: 220px minmax(0,1fr) !important;
  }
  .ticket-page .ticket-panel > .event-side > .event-poster {
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
    height: 272px !important;
    min-height: 272px !important;
    max-height: 272px !important;
  }
  .ticket-page .ticket-panel > .event-side > .event-side-copy {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}

@media (max-width: 620px) {
  .ticket-page .ticket-panel > .event-side {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
  .ticket-page .ticket-panel > .event-side > .event-poster {
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;
    height: 370px !important;
    min-height: 370px !important;
    max-height: 370px !important;
    margin-inline: auto !important;
  }
  .ticket-page .ticket-panel > .event-side > .event-side-copy {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}

/* Center the fixed event card in its own column with equal left/right spacing. */
@media (min-width: 901px) {
  .ticket-page .ticket-panel > .event-side {
    transform: none !important;
    justify-self: center !important;
    margin-inline: auto !important;
  }
}


/* Ticket sale opening countdown */
.ticket-sale-gate{margin:0 0 18px;padding:24px;border:1px solid var(--line);border-radius:20px;background:var(--soft);text-align:center}
.ticket-sale-kicker{display:inline-flex;margin-bottom:8px;color:var(--accent);font-family:Arial,sans-serif;font-size:8px;font-weight:800;letter-spacing:.18em}
.ticket-sale-gate h3{margin:0 0 8px;font-size:20px;color:var(--text)}
.ticket-sale-gate p{margin:0;color:var(--muted);font-size:10px;line-height:2}.ticket-sale-gate p strong{color:var(--text)}
.ticket-sale-countdown{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-width:520px;margin:20px auto 0;direction:rtl}
.ticket-sale-countdown>div{padding:14px 8px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.ticket-sale-countdown strong{display:block;font-family:Arial,sans-serif;font-size:24px;color:var(--text);font-variant-numeric:tabular-nums}
.ticket-sale-countdown span{display:block;margin-top:3px;color:var(--muted);font-size:8px}
@media(max-width:620px){.ticket-sale-gate{padding:18px 12px}.ticket-sale-countdown{gap:6px}.ticket-sale-countdown>div{padding:11px 4px}.ticket-sale-countdown strong{font-size:18px}.ticket-sale-gate h3{font-size:17px}}

/* =====================================================
   IN-PAGE SESSION SWITCHER — PROFESSIONAL DROPDOWN
===================================================== */
.session-switcher {
  position: relative;
  z-index: 40;
  flex: 0 0 auto;
}

.change-session {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.change-session svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}

.session-switcher.is-open .change-session {
  border-color: var(--text);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 8%, transparent);
}

.session-switcher.is-open .change-session svg {
  transform: rotate(180deg);
}

.session-dropdown[hidden] { display: none !important; }

.session-dropdown {
  position: absolute;
  top: calc(100% + 9px);
  inset-inline-end: 0;
  width: min(390px, calc(100vw - 40px));
  max-height: 330px;
  overflow: auto;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 18px 55px rgba(0,0,0,.14);
  direction: rtl;
}

.session-dropdown-option {
  width: 100%;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) 28px;
  align-items: center;
  gap: 10px;
  padding: 11px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: right;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.session-dropdown-option + .session-dropdown-option { margin-top: 4px; }

.session-dropdown-option:hover,
.session-dropdown-option:focus-visible {
  background: var(--soft);
  border-color: var(--line);
  outline: none;
}

.session-dropdown-option:active { transform: scale(.99); }

.session-dropdown-option.is-selected {
  background: var(--soft);
  border-color: var(--text);
}

.session-dropdown-index {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--soft);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  direction: ltr;
}

.session-dropdown-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.session-dropdown-copy small {
  color: var(--muted);
  font-size: 8px;
}

.session-dropdown-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  line-height: 1.7;
}

.session-dropdown-check {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--soft);
  color: transparent;
  font-size: 11px;
  font-weight: 900;
}

.session-dropdown-option.is-selected .session-dropdown-check {
  background: var(--text);
  color: var(--bg);
}

.session-dropdown-empty {
  padding: 18px 14px;
  color: var(--muted);
  text-align: center;
  font-size: 9px;
}

.session-card.is-current-session {
  border-color: var(--text);
}

@media (max-width: 620px) {
  .seat-flow-heading {
    align-items: stretch;
  }
  .session-switcher,
  .change-session {
    width: 100%;
  }
  .session-dropdown {
    position: static;
    width: 100%;
    margin-top: 8px;
    max-height: 300px;
    box-sizing: border-box;
  }
}


/* Automatic SOLD OUT state per session */
.session-card.is-sold-out,
.session-card:disabled.is-sold-out {
  position: relative;
  opacity: .68;
  cursor: not-allowed !important;
  filter: saturate(.55);
}
.session-card.is-sold-out .session-buy {
  font-weight: 900;
  letter-spacing: .08em;
}
.session-dropdown-option.is-sold-out {
  opacity: .55;
  cursor: not-allowed;
}
.session-dropdown-option.is-sold-out .session-dropdown-copy small {
  font-weight: 900;
  letter-spacing: .08em;
}


/* =====================================================
   BUYER SEAT MAP CONTROLS — ZOOM IN / OUT / REFRESH
===================================================== */
.seat-map-controls{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  margin:0 0 12px;
  direction:ltr;
}
.seat-map-control-btn{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:7px 11px;
  border:1px solid color-mix(in srgb,var(--text) 14%,transparent);
  border-radius:10px;
  background:var(--surface);
  color:var(--text);
  font:inherit;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
  transition:transform .16s ease,border-color .16s ease,background .16s ease,opacity .16s ease;
}
.seat-map-control-btn:hover:not(:disabled){
  transform:translateY(-1px);
  border-color:color-mix(in srgb,var(--text) 28%,transparent);
}
.seat-map-control-btn:active:not(:disabled){transform:translateY(0)}
.seat-map-control-btn:disabled{opacity:.38;cursor:not-allowed}
.seat-map-control-icon{
  width:20px;
  height:20px;
  display:inline-grid;
  place-items:center;
  border-radius:6px;
  font-size:19px;
  line-height:1;
  font-weight:500;
}
.seat-map-control-btn.is-reset .seat-map-control-icon{font-size:18px}
.seat-map-control-btn.is-loading .refresh-icon{animation:navatik-seat-refresh .7s linear infinite}
.seat-map-zoom-value{
  min-width:52px;
  text-align:center;
  padding:7px 9px;
  border-radius:10px;
  background:color-mix(in srgb,var(--text) 6%,transparent);
  color:var(--text);
  font-size:11px;
  font-weight:900;
  direction:ltr;
}
.custom-seat-canvas-wrap.is-user-zoomed{
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:thin;
}
.custom-seat-canvas-wrap.is-user-zoomed::-webkit-scrollbar{height:7px}
.custom-seat-canvas-wrap.is-user-zoomed::-webkit-scrollbar-thumb{
  background:color-mix(in srgb,var(--text) 24%,transparent);
  border-radius:999px;
}
@keyframes navatik-seat-refresh{to{transform:rotate(360deg)}}
@media(max-width:620px){
  .seat-map-controls{gap:6px;margin-bottom:9px;overflow-x:auto;padding-bottom:2px}
  .seat-map-control-btn{min-height:36px;padding:6px 9px;white-space:nowrap}
  .seat-map-control-btn span:last-child{display:none}
  .seat-map-control-icon{width:22px;height:22px;font-size:20px}
  .seat-map-zoom-value{min-width:48px;padding:6px 7px}
}


/* Seat map click-drag panning */
.custom-seat-canvas-wrap{position:relative;overflow:hidden!important;cursor:grab;touch-action:none;user-select:none;overscroll-behavior:contain;}
.custom-seat-canvas-wrap.is-panning{cursor:grabbing!important;}
.custom-seat-canvas-wrap.is-panning .buyer-seat-canvas{transition:none!important;}
.buyer-seat-canvas{will-change:transform;}
.buyer-seat-canvas .custom-seat{cursor:pointer;touch-action:manipulation;}
@media(max-width:620px){.custom-seat-canvas-wrap{min-height:380px;}}


/* =====================================================
   NAVATIK FULL HALL VIEW + ROW NUMBERS
   Default view shows the entire 18-row map at once.
===================================================== */
#seatStage .seat-layout-shell{
  width:100%;
  max-width:none;
  padding:20px 24px 22px;
}
#seatStage .custom-seat-canvas-wrap{
  width:100%;
  max-width:none;
  overflow:hidden!important;
  cursor:default;
  min-height:0;
}
#seatStage .custom-seat-canvas-wrap.is-user-zoomed{
  cursor:grab;
}
#seatStage .custom-seat-canvas-wrap.is-user-zoomed.is-panning{
  cursor:grabbing!important;
}
.buyer-row-number{
  position:absolute;
  z-index:8;
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  padding:0;
  border:0;
  background:transparent;
  color:var(--text);
  font-family:Arial,sans-serif;
  font-size:10px;
  font-weight:800;
  line-height:1;
  white-space:nowrap;
  pointer-events:none;
  box-shadow:none;
  direction:ltr;
}
@media(min-width:1400px){
  .ticket-page{width:min(calc(100% - 48px),1660px);}
  .ticket-panel{grid-template-columns:260px minmax(0,1fr);gap:28px;}
}
@media(max-width:900px){
  .ticket-page{width:calc(100% - 20px);}
  #seatStage .seat-layout-shell{padding:12px 8px 16px;}
  .buyer-row-number{width:22px;height:22px;font-size:9px;padding:0;}
}
