/* Booking page layout */
.booking-header {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
  padding: 40px 60px;
  border-bottom: 1px solid var(--border);
}

.booking-info {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.booking-info h1,
.booking-info #bTitle {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.35rem, 5vw, 2.2rem);
  color: var(--white);
  margin-bottom: 8px;
}

.booking-info #bMeta {
  color: var(--accent);
  font-weight: 600;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  letter-spacing: 0.05em;
}

.booking-info #bDetails {
  color: var(--muted);
  margin-top: 8px;
  font-size: clamp(0.85rem, 2vw, 1rem);
}

.seat-selection-container {
  padding: 60px 24px;
  background: radial-gradient(circle at top center, rgba(30, 30, 30, 1) 0%, var(--black) 60%);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.seat-legend {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  text-align: center;
}

.booking-footer {
  position: sticky;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 24px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  z-index: 100;
}

.booking-total {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.15rem, 4vw, 1.5rem);
  color: var(--white);
  font-weight: 800;
}

.booking-footer .checkout-btn {
  padding: 16px 40px;
  font-size: 1.1rem;
}

.booking-footer .checkout-btn:disabled {
  opacity: 0.5;
}

.screen-indicator {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
}

.screen-curve {
  height: 48px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 20px;
  border-top: 4px solid rgba(220, 38, 38, 0.8);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  box-shadow: 0 -15px 40px -10px rgba(220, 38, 38, 0.5);
}

.screen-text {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--white);
}

.seat-map {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.seat-map-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.seat-row {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  margin: 0 auto;
}

.seat-row.standard {
  gap: 24px;
}

.seat-group {
  display: flex;
  gap: 12px;
}

.seat-group.standard {
  gap: 8px;
}

.row-label {
  width: 24px;
  text-align: center;
  font-weight: 600;
  color: var(--white);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.seat {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: transform 0.2s, background-color 0.2s;
  flex-shrink: 0;
}

.seat:not(.taken):not(.legend-seat):hover {
  transform: scale(1.08);
}

.seat.premium {
  width: 44px;
  height: 48px;
  font-size: 0.85rem;
}

.seat.premium .seat-number {
  margin-top: -6px;
}

.seat.standard {
  width: 34px;
  height: 38px;
  font-size: 0.75rem;
}

.seat.standard .seat-number {
  margin-top: -4px;
}

.seat-back {
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 65%;
  border: 2px solid var(--seat-color, #555);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  box-sizing: border-box;
  transition: all 0.2s;
}

.seat-base {
  position: absolute;
  bottom: 12%;
  left: 0;
  width: 100%;
  height: 35%;
  border: 2px solid var(--seat-color, #555);
  border-radius: 4px 4px 8px 8px;
  box-sizing: border-box;
  transition: all 0.2s;
}

.seat-number {
  position: relative;
  z-index: 10;
  color: var(--seat-color, #555);
  transition: color 0.2s;
}

.seat.gold {
  --seat-color: #f5a623;
}

.seat.gold.selected .seat-back,
.seat.gold.selected .seat-base {
  background-color: rgba(245, 166, 35, 0.4);
}

.seat.blue {
  --seat-color: #3b82f6;
}

.seat.blue.selected .seat-back,
.seat.blue.selected .seat-base {
  background-color: rgba(59, 130, 246, 0.4);
}

.seat.taken {
  --seat-color: #222;
  cursor: not-allowed;
  opacity: 0.8;
}

.seat.taken .seat-back,
.seat.taken .seat-base {
  background-color: #222;
  border-color: #333;
}

.seat.taken .seat-number {
  display: none;
}

.seat.taken::after {
  content: '✕';
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #777;
  font-size: 1.1rem;
  font-weight: 900;
  z-index: 20;
}

.seat.standard.taken::after {
  font-size: 0.9rem;
}

.checkout-btn:not([disabled]):hover {
  background: #d43a00;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(232, 73, 15, 0.4);
}

@media (max-width: 900px) {
  .booking-header {
    padding: 32px 24px;
  }

  .seat-selection-container {
    padding: 40px 16px;
  }

  .screen-indicator {
    margin-bottom: 48px;
  }

  .booking-footer {
    padding: 20px 24px;
  }
}

@media (max-width: 768px) {
  .seat-row {
    gap: 20px;
  }

  .seat-row.standard {
    gap: 14px;
  }

  .seat-group {
    gap: 8px;
  }

  .seat-group.standard {
    gap: 6px;
  }

  .seat.premium {
    width: 38px;
    height: 42px;
    font-size: 0.75rem;
  }

  .seat.standard {
    width: 30px;
    height: 34px;
    font-size: 0.7rem;
  }

  .booking-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .booking-footer .checkout-btn {
    width: 100%;
    padding: 14px 24px;
  }
}

@media (max-width: 480px) {
  .booking-header {
    padding: 24px 16px;
  }

  .seat-row {
    gap: 12px;
  }

  .seat-row.standard {
    gap: 10px;
  }

  .seat.premium {
    width: 32px;
    height: 36px;
    font-size: 0.65rem;
  }

  .seat.standard {
    width: 26px;
    height: 30px;
    font-size: 0.6rem;
  }

  .row-label {
    width: 18px;
    font-size: 0.8rem;
  }

  .screen-text {
    font-size: 1rem;
  }

  .seat-legend {
    margin-top: 32px;
    gap: 16px;
  }
}
