:root {
  --bs-primary: #1a56db;
  --bs-primary-rgb: 26, 86, 219;
  --color-gold: #f59e0b;
  --color-seat-available: #22c55e;
  --color-seat-selected: #f59e0b;
  --color-seat-held: #f97316;
  --color-seat-booked: #6b7280;
  --color-seat-blocked: #374151;
  --color-seat-vip: #8b5cf6;
  --color-seat-wheelchair: #06b6d4;
}

/* ---- Global ---- */
body { font-family: 'Segoe UI', system-ui, sans-serif; }
.object-fit-cover { object-fit: cover; }

/* ---- Navbar ---- */
.navbar-brand { letter-spacing: -0.5px; }

/* ---- Event Card ---- */
.event-card { transition: transform 0.2s, box-shadow 0.2s; }
.event-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important; }

/* ---- Hero / Landing ---- */
.hero-section {
  background: linear-gradient(135deg, #1a56db 0%, #0e3a8a 100%);
  min-height: 420px;
  display: flex;
  align-items: center;
}
.hero-search .form-control { height: 52px; font-size: 1.05rem; border-radius: 0.5rem 0 0 0.5rem; }
.hero-search .btn { height: 52px; border-radius: 0 0.5rem 0.5rem 0; }

/* ---- Footer ---- */
/* Bootstrap's .text-muted is too dim on the dark footer — lighten links & text. */
.footer-links a { color: rgba(255, 255, 255, 0.75) !important; transition: color 0.15s; }
.footer-links a:hover { color: #fff !important; }
.footer-links .text-muted { color: rgba(255, 255, 255, 0.65) !important; }

/* ---- Featured full-width carousel ---- */
.featured-carousel { position: relative; }
.featured-carousel .fc-slide { display: block; position: relative; text-decoration: none; }
.featured-carousel .fc-img { width: 100%; height: clamp(300px, 44vw, 560px); object-fit: cover; display: block; }
.featured-carousel .fc-noimg { background: linear-gradient(135deg, #1a56db 0%, #0e3a8a 100%); }
.featured-carousel .fc-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding-bottom: 2.5rem;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.30) 45%, rgba(0,0,0,0) 78%);
}
.featured-carousel h2 { font-size: clamp(1.4rem, 3.6vw, 2.7rem); text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.featured-carousel .carousel-indicators { margin-bottom: .5rem; }
@media (max-width: 576px) { .featured-carousel .fc-overlay { padding-bottom: 1.25rem; } }

/* ---- Category Pills ---- */
.category-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  background: #fff;
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  text-decoration: none;
  color: #374151;
  transition: all 0.18s;
  font-weight: 600;
}
.category-pill:hover, .category-pill.active {
  border-color: var(--bs-primary);
  color: var(--bs-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26,86,219,0.15);
}
.category-pill i { font-size: 1.8rem; }

/* ---- Seat Map ---- */
#seat-map-container {
  position: relative;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
}
#seat-map-svg { width: 100%; height: auto; cursor: default; }

.seat { cursor: pointer; transition: opacity 0.15s, filter 0.1s; }
.seat:hover { opacity: 0.9; filter: brightness(1.25) drop-shadow(0 0 4px rgba(255,255,255,0.6)); }
.seat.available { }
.seat.selected { stroke: var(--color-seat-selected) !important; stroke-width: 3px; filter: brightness(1.2) drop-shadow(0 0 6px var(--color-seat-selected)); }
.seat.held { fill: var(--color-seat-held) !important; cursor: not-allowed; }
.seat.booked { fill: var(--color-seat-booked) !important; cursor: not-allowed; opacity: 0.6; }
.seat.blocked { fill: var(--color-seat-blocked) !important; cursor: not-allowed; opacity: 0.4; }
.seat.wheelchair { stroke: var(--color-seat-wheelchair); stroke-width: 2px; }
.seat.vip { stroke: var(--color-seat-vip); stroke-width: 2.5px; }

.seat-legend { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.legend-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; }
.legend-dot { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }

/* ---- Seat sidebar ---- */
.selected-seats-list { max-height: 280px; overflow-y: auto; }
.selected-seat-row { display: flex; justify-content: space-between; align-items: center; padding: 0.35rem 0; border-bottom: 1px solid #e5e7eb; font-size: 0.88rem; }

/* ---- Checkout ---- */
.order-summary-card { position: sticky; top: 80px; }

/* ---- Ticket ---- */
.ticket-card {
  border: 2px dashed #d1d5db;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
}
.ticket-card::before, .ticket-card::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 24px; height: 24px;
  background: #f3f4f6;
  border-radius: 50%;
  transform: translateY(-50%);
}
.ticket-card::before { left: -12px; }
.ticket-card::after { right: -12px; }

/* ---- Admin / Organizer Sidebar ---- */
.admin-sidebar { min-height: calc(100vh - 60px); border-right: 1px solid #e5e7eb; }
.admin-sidebar .nav-link { color: #374151; padding: 0.6rem 1rem; border-radius: 0.5rem; }
.admin-sidebar .nav-link:hover { background: #f3f4f6; }
.admin-sidebar .nav-link.active { background: var(--bs-primary); color: #fff !important; }
.admin-sidebar .nav-link i { width: 20px; }

/* ---- Layout Editor ---- */
#editor-canvas { background: #1e293b; border-radius: 0.5rem; }
.editor-section-item { border-left: 4px solid; padding: 0.5rem 0.75rem; border-radius: 0.25rem; cursor: pointer; }
.editor-section-item:hover { background: #f8fafc; }
.editor-section-item.active { background: #eff6ff; }

/* ---- Media Upload ---- */
.media-drop-zone {
  border: 2px dashed #d1d5db;
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.media-drop-zone.drag-over { border-color: var(--bs-primary); background: #eff6ff; }
.media-preview-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.media-preview-item { position: relative; width: 120px; height: 90px; border-radius: 0.5rem; overflow: hidden; border: 2px solid #e5e7eb; }
.media-preview-item img, .media-preview-item video { width: 100%; height: 100%; object-fit: cover; }
.media-preview-item .remove-btn { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,0.6); color: #fff; border: none; border-radius: 50%; width: 22px; height: 22px; font-size: 0.7rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.media-preview-item .cover-radio { position: absolute; bottom: 4px; left: 4px; }

/* ---- Stats Cards ---- */
.stat-card { border: none; border-radius: 0.75rem; }
.stat-card .stat-icon { width: 52px; height: 52px; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }

/* ---- Utilities ---- */
.cursor-pointer { cursor: pointer; }
.min-h-screen { min-height: 100vh; }

/* ── Booking-journey stepper ─────────────────────────────────────────────── */
.journey-stepper { display:flex; align-items:center; gap:.4rem; flex-wrap:nowrap; margin:0 0 1.25rem; }
.journey-stepper .js-step { display:flex; align-items:center; gap:.5rem; white-space:nowrap; }
/* Navigable steps */
.journey-stepper a.js-link { text-decoration:none; cursor:pointer; border-radius:6px; padding:2px 6px; transition:background .15s; }
.journey-stepper a.js-link:hover { background:rgba(13,110,253,.12); }
.journey-stepper a.js-link:hover .js-label { text-decoration:underline; }
.journey-stepper .js-badge {
  display:inline-flex; align-items:center; justify-content:center;
  width:30px; height:30px; border-radius:50%; flex:0 0 auto;
  font-weight:700; font-size:.85rem; background:#dee2e6; color:#495057;
}
.journey-stepper .js-step.current .js-badge { background:#0d6efd; color:#fff; }
.journey-stepper .js-step.done    .js-badge { background:#198754; color:#fff; }
.journey-stepper .js-label { font-size:.9rem; color:#495057; }
.journey-stepper .js-step.current .js-label { color:#0d6efd; font-weight:600; }
.journey-stepper .js-step.upcoming .js-label { color:#adb5bd; }
.journey-stepper .js-connector { flex:1 1 auto; height:2px; min-width:14px; background:#dee2e6; }
/* Stack vertically on mobile */
@media (max-width:576px) {
  .journey-stepper { flex-direction:column; align-items:flex-start; gap:.25rem; }
  .journey-stepper .js-connector { width:2px; height:14px; flex:0 0 auto; margin-left:14px; }
}
/* On dark backgrounds (e.g. seat map) */
.journey-stepper.on-dark .js-label { color:#cbd5e1; }
.journey-stepper.on-dark .js-step.upcoming .js-label { color:#64748b; }
.journey-stepper.on-dark .js-connector { background:#334155; }
.journey-stepper.on-dark .js-badge { background:#334155; color:#cbd5e1; }
.journey-stepper.on-dark .js-step.current .js-badge { background:#0d6efd; color:#fff; }
.journey-stepper.on-dark .js-step.done    .js-badge { background:#198754; color:#fff; }

/* ── Vertical accordion funnel (pseudo single-page) ──────────────────────── */
.funnel { width: 100%; margin: 0 auto 1rem; display: flex; flex-direction: column; gap: .5rem; }
.funnel-item { border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; background: #fff; }
.funnel-item.current { border-color: #0d6efd; box-shadow: 0 2px 10px rgba(13,110,253,.12); }
.funnel-link { text-decoration: none; color: inherit; display: block; transition: background .15s, border-color .15s; }
.funnel-link:hover { background: #f1f6ff; border-color: #9ec5fe; }
.funnel-item.disabled { opacity: .5; }
.funnel-head { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; font-weight: 600; }
.funnel-head.open { background: #eef4ff; color: #0d6efd; }
.funnel-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto;
  font-size: .9rem; font-weight: 700; background: #adb5bd; color: #fff;
}
.funnel-item.current .funnel-badge { background: #0d6efd; }
.funnel-item.done .funnel-badge { background: #198754; }
.funnel-label { font-size: 1rem; }
.funnel-item.upcoming .funnel-label { color: #adb5bd; }
.funnel-caret { color: #94a3b8; }
.funnel-body { padding: 1rem; }
/* Dark variant (seat map) — the body hosts a dark map so keep the frame subtle */
.funnel.on-dark .funnel-item { background: #0f172a; border-color: #334155; }
.funnel.on-dark .funnel-item.current { border-color: #0d6efd; }
.funnel.on-dark .funnel-head { color: #e2e8f0; }
.funnel.on-dark .funnel-head.open { background: #1e293b; color: #cbd5e1; }
.funnel.on-dark .funnel-link:hover { background: #1e293b; }
@media (max-width: 576px) {
  .funnel-body { padding: .6rem; }
  .funnel-head { padding: .7rem .8rem; }
}
