/* ─── Seat Map Layout ─── */

.cee-seatmap-container {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  max-width: 1200px;
  margin: 0 auto;
}

.cee-seatmap-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .cee-seatmap-layout {
    flex-direction: column;
  }
}

/* ─── SVG Map ─── */

.cee-seatmap-svg-wrap {
  flex: 1;
  min-width: 0;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: #F9FAFB;
  overflow: auto;
  max-height: 70vh;
  position: relative;
}

.cee-seatmap-svg {
  width: 100%;
  height: auto;
  min-height: 300px;
  display: block;
}

.cee-seat-clickable {
  transition: transform 0.1s ease, filter 0.1s ease;
}

.cee-seat-clickable:hover {
  filter: brightness(1.15);
  transform-origin: center;
}

/* ─── Sidebar ─── */

.cee-seatmap-sidebar {
  width: 280px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .cee-seatmap-sidebar {
    width: 100%;
  }
}

/* ─── Mode Toggle ─── */

.cee-seatmap-mode {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  background: #F3F4F6;
  border-radius: 8px;
  padding: 3px;
}

.cee-seatmap-mode-btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
  color: #6B7280;
  transition: all 0.15s ease;
}

.cee-seatmap-mode-btn.active {
  background: #FFFFFF;
  color: #1F2937;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ─── Manual Mode ─── */

.cee-seatmap-info p {
  font-size: 13px;
  color: #6B7280;
  margin: 0 0 12px;
}

.cee-seatmap-selected-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cee-seatmap-selected-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 6px;
  font-size: 13px;
  color: #1E40AF;
}

.cee-seatmap-remove-seat {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #93C5FD;
  padding: 0 4px;
  line-height: 1;
}

.cee-seatmap-remove-seat:hover {
  color: #EF4444;
}

/* ─── Auto Mode ─── */

.cee-seatmap-auto {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cee-seatmap-label {
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cee-seatmap-tier-select {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  background: #FFF;
}

.cee-seatmap-qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cee-seatmap-qty-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  background: #FFF;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
}

.cee-seatmap-qty-btn:hover:not(:disabled) {
  background: #F3F4F6;
}

.cee-seatmap-qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cee-seatmap-qty-val {
  font-size: 18px;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.cee-seatmap-find-btn {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  background: #3B82F6;
  color: #FFF;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 4px;
}

.cee-seatmap-find-btn:hover {
  background: #2563EB;
}

.cee-seatmap-find-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ─── Suggested Seats ─── */

.cee-seatmap-suggested {
  margin-top: 12px;
  padding: 12px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 8px;
}

.cee-seatmap-suggested p {
  font-size: 13px;
  color: #166534;
  font-weight: 500;
  margin: 0 0 8px;
}

.cee-seatmap-suggested-item {
  font-size: 12px;
  color: #15803D;
  padding: 2px 0;
}

.cee-seatmap-accept-btn {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  font-size: 14px;
  font-weight: 500;
  background: #16A34A;
  color: #FFF;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.cee-seatmap-accept-btn:hover {
  background: #15803D;
}

/* ─── Timer ─── */

.cee-seatmap-timer {
  padding: 10px 12px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 6px;
  font-size: 13px;
  color: #92400E;
  text-align: center;
  margin-top: 12px;
}

.cee-seatmap-timer.cee-timer-warning {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #991B1B;
  animation: cee-pulse 1s infinite;
}

@keyframes cee-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.cee-timer-icon {
  margin-right: 4px;
}

/* ─── Cart / Continue ─── */

.cee-seatmap-cart {
  margin-top: 16px;
  padding: 16px;
  background: #FFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
}

.cee-seatmap-cart-count {
  font-size: 14px;
  color: #374151;
  font-weight: 500;
}

.cee-seatmap-cart-total {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin: 4px 0 12px;
}

.cee-seatmap-continue {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  background: #2563EB;
  color: #FFF;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.cee-seatmap-continue:hover {
  background: #1D4ED8;
}

.cee-seatmap-continue:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ─── Legend ─── */

.cee-seatmap-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding: 12px;
  background: #F9FAFB;
  border-radius: 8px;
}

.cee-seatmap-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6B7280;
}

.cee-seatmap-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0,0,0,0.1);
}

/* ─── Notices ─── */

.cee-seatmap-notice,
.cee-seatmap-error {
  padding: 24px;
  text-align: center;
  color: #6B7280;
  font-size: 15px;
}

.cee-seatmap-error {
  color: #DC2626;
}
