/* ============================================================
   RENOWN TRAVEL — Booking app stylesheet
   Public front-end re-skinned to match the renown-travel
   WordPress theme (assets/css/main.css). Admin + seatmap
   styles kept intact at the bottom.
   ============================================================ */

/* ------------------------------------------------------------
   1. Design tokens (from the WP theme)
   ------------------------------------------------------------ */
:root {
  --c-brand-red:   #c92335;

  --c-navy:        #0b1830;
  --c-navy-light:  #10284d;
  --c-navy-xlight: #eef1f6;

  --c-orange:      #c92335;   /* brand red — buttons, CTAs */
  --c-orange-dark: #a8182a;

  --c-gold:        #A89700;
  --c-gold-dark:   #7f7f00;

  --c-sky:         #f3efe7;
  --c-sky-mid:     #e1e3e8;

  --c-white:       #FFFFFF;
  --c-bg:          #FFFFFF;
  --c-text:        #162033;
  --c-text-muted:  #687184;
  --c-border:      #e1e3e8;

  --c-available:   #16A34A;
  --c-selling-fast:#D97706;
  --c-sold-out:    #DC2626;

  --c-heading-accent:#ef4353;

  --font-script:  'Caveat', cursive;
  --font-heading: 'Archivo Black', 'Arial Black', sans-serif;
  --font-body:    'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 1.5rem;
  --sp-lg: 2.5rem;
  --sp-xl: 4rem;
  --sp-2xl: 6rem;

  --container: 1200px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);

  --trans-fast: 0.15s ease;
  --trans-med: 0.25s ease;

  /* back-compat aliases for older rules in this file */
  --red:   var(--c-orange);
  --ink:   var(--c-text);
  --muted: var(--c-text-muted);
  --line:  var(--c-border);
  --bg:    var(--c-bg);
}

/* ------------------------------------------------------------
   2. Reset & base
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--c-orange); text-decoration: none; transition: color var(--trans-fast); }
a:hover { color: var(--c-orange-dark); }

ul, ol { list-style: none; }

button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ------------------------------------------------------------
   3. Typography
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--c-navy);
  text-transform: uppercase;
}
h1 em, h2 em, h3 em { color: var(--c-orange); font-style: normal; }

h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.4rem); letter-spacing: 0; }
h4 { font-size: 1.05rem; font-weight: 800; text-transform: none; font-family: var(--font-body); letter-spacing: normal; }
h5, h6 { font-size: 1rem; font-weight: 700; text-transform: none; font-family: var(--font-body); letter-spacing: normal; }

p { margin-bottom: var(--sp-sm); }
p:last-child { margin-bottom: 0; }

.text-lead { font-size: 1.15rem; line-height: 1.8; color: var(--c-text-muted); }
.muted { color: var(--c-text-muted); }
.small { font-size: 0.82rem; }
.r { text-align: right; }
.text-center { text-align: center; }

/* ------------------------------------------------------------
   4. Layout
   ------------------------------------------------------------ */
.container,
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

.section { padding: var(--sp-xl) 0; }
.section--alt { background: var(--c-sky); }
.section--navy { background: var(--c-navy); color: var(--c-white); }
.section--tight { padding: var(--sp-lg) 0; }

.section-header { margin-bottom: var(--sp-lg); max-width: 640px; }
.section-header.text-center { margin-left: auto; margin-right: auto; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  color: var(--c-orange);
  font-family: var(--font-body);
  font-weight: 800; font-size: 0.75rem;
  letter-spacing: 0.17em; text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-eyebrow::before { content: ''; width: 34px; height: 2px; background: var(--c-orange); flex-shrink: 0; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { color: var(--c-text-muted); font-size: 1.02rem; margin: 0; }

/* ------------------------------------------------------------
   5. Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 1.875rem;
  font-family: var(--font-body);
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  background: var(--c-orange); color: var(--c-white);
  transition: all var(--trans-med);
  text-decoration: none; white-space: nowrap; cursor: pointer;
}
.btn:hover { background: var(--c-orange-dark); color: var(--c-white); transform: translateY(-2px); }

.btn-primary,   .btn--primary   { background: var(--c-orange); color: var(--c-white); }
.btn-primary:hover, .btn--primary:hover { background: var(--c-orange-dark); color: var(--c-white); }

.btn-outline,   .btn--ghost {
  background: transparent; color: var(--c-navy); border-color: var(--c-navy);
}
.btn-outline:hover, .btn--ghost:hover { background: var(--c-navy); color: var(--c-white); transform: translateY(-2px); }

.btn-secondary {
  background: transparent; color: var(--c-white); border-color: rgba(255,255,255,0.7);
}
.btn-secondary:hover { background: var(--c-white); color: var(--c-navy); border-color: var(--c-white); }

.btn-light { background: var(--c-white); color: var(--c-navy); }
.btn-light:hover { background: var(--c-sky); color: var(--c-navy); }

.btn--danger { background: #b32d2e; }
.btn--danger:hover { background: #8f2323; }
.btn--disabled, .btn:disabled { background: #9ca3af; border-color: #9ca3af; cursor: not-allowed; }
.btn--disabled:hover { background: #9ca3af; transform: none; }

.btn-sm, .btn--sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
.btn-lg, .btn--lg { padding: 1.05rem 2.2rem; font-size: 1.02rem; }

.back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin: 0 0 var(--sp-sm);
  font-family: var(--font-body); font-weight: 700; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--c-text-muted);
}
.back:hover { color: var(--c-orange); }

/* ------------------------------------------------------------
   6. Header
   ------------------------------------------------------------ */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; }

.header-strip { background: var(--c-navy); }
.header-strip-inner {
  min-height: 38px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.header-strip-right { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.strip-tagline {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; color: #dbe3ef; letter-spacing: 0.05em;
}
.strip-divider { color: var(--c-orange); font-size: 0.7rem; margin: 0 0.5em; }
.strip-link {
  display: inline-flex; align-items: center;
  color: #dbe3ef; font-family: var(--font-body);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em;
  padding: 0.1rem 0.2rem;
}
.strip-link:hover { color: var(--c-white); }

.header-main { background: var(--c-white); border-bottom: 3px solid var(--c-orange); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 1.5rem;
}
.site-logo { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.site-logo:hover { opacity: 0.85; }
.site-logo-img { display: block; height: 60px; width: auto; }
.site-logo-est {
  font-family: var(--font-body); font-size: 0.62rem; font-weight: 800;
  line-height: 1.3; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--c-navy); border-left: 2px solid var(--c-orange); padding-left: 0.7rem;
  white-space: nowrap;
}

.main-nav { flex: 1; display: flex; align-items: center; justify-content: center; }
.main-nav ul { display: flex; align-items: center; }
.main-nav a {
  display: block; padding: 0.5rem 0.85rem;
  font-family: var(--font-body); font-weight: 700; font-size: 0.82rem;
  color: var(--c-text); text-transform: uppercase; letter-spacing: 0.06em;
  position: relative;
}
.main-nav a::after {
  content: ''; position: absolute; bottom: -3px; left: 0.85rem; right: 0.85rem;
  height: 2px; background: var(--c-orange); border-radius: 2px;
  transform: scaleX(0); transition: transform var(--trans-fast);
}
.main-nav a:hover { color: var(--c-orange); }
.main-nav a:hover::after,
.main-nav a.is-active::after { transform: scaleX(1); }
.main-nav a.is-active { color: var(--c-orange); }

.header-cta { flex-shrink: 0; display: flex; align-items: center; gap: 0.6rem; }

.mobile-menu-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 9px;
  border-radius: var(--radius-sm); background: transparent;
  border: 1.5px solid var(--c-border);
}
.mobile-menu-toggle span { display: block; width: 100%; height: 2px; background: #3a3a3a; border-radius: 2px; transition: all var(--trans-med); }
.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; background: var(--c-navy); }
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: flex; align-items: center;
  padding: 0.9rem var(--sp-md);
  color: rgba(255,255,255,0.88);
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mobile-nav a:hover { color: var(--c-white); background: rgba(255,255,255,0.07); }
.mobile-cta-row { display: flex; gap: var(--sp-sm); padding: var(--sp-sm) var(--sp-md); }
.mobile-cta-row .btn { flex: 1; }

/* body offset for the fixed header (public pages only) */
body:not(.admin) { padding-top: 113px; }

@media (max-width: 920px) {
  .header-strip { display: none; }
  .main-nav, .header-cta { display: none; }
  .mobile-menu-toggle { display: flex; }
  body:not(.admin) { padding-top: 75px; }
  /* Logo + "Established 1962" text together need ~370px, which left
     zero margin even on a 400px-wide test and genuinely overflows
     narrower real phones, pushing the menu button off the right edge.
     Drop the text on mobile — same info is just hidden higher up here
     anyway (.header-strip, above), not lost. */
  .site-logo-est { display: none; }
}

/* ------------------------------------------------------------
   7. Hero
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 460px;
  display: flex; align-items: center;
  color: var(--c-white);
  overflow: hidden;
  background: var(--c-navy);
}
.hero-bg-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 56%; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,18,38,.96) 0%, rgba(7,18,38,.78) 43%, rgba(7,18,38,.22) 78%, rgba(7,18,38,.08) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 640px; padding: var(--sp-xl) 0; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  color: var(--c-white);
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: var(--sp-md);
}
.hero-eyebrow::before { content: ''; display: block; width: 34px; height: 2px; background: var(--c-orange); flex-shrink: 0; }
.hero h1 { color: var(--c-white); margin-bottom: 0; }
.hero h1 em { color: var(--c-orange); }
.hero-lead { max-width: 600px; margin: 24px 0 20px; color: #e0e7f1; font-size: 1.1rem; line-height: 1.65; }

.script-accent {
  display: block;
  font-family: var(--font-script); font-weight: 700;
  font-size: 2rem; line-height: 1;
  color: var(--c-orange); transform: rotate(-2deg);
}
.script-accent--pale { color: #ffd9dd; }

.departure-badge {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.5rem;
  margin-top: var(--sp-md);
  background: var(--c-orange); color: var(--c-white);
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-md); border: 2px solid var(--c-white);
  box-shadow: var(--shadow-md);
}

/* interior page hero */
.page-hero { background: var(--c-sky); border-bottom: 1px solid var(--c-border); padding: var(--sp-lg) 0; }
.page-hero h1 { color: var(--c-navy); margin-bottom: 0.5rem; }
.page-hero p { color: var(--c-text-muted); margin: 0; font-size: 1.05rem; }

/* breadcrumb */
.breadcrumb-bar { background: var(--c-bg); border-bottom: 1px solid var(--c-border); padding: 0.6rem 0; }
.breadcrumb { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: var(--c-text-muted); }
.breadcrumb a { color: var(--c-text-muted); }
.breadcrumb a:hover { color: var(--c-navy); }
.breadcrumb-sep { color: var(--c-border); }
.breadcrumb-current { color: var(--c-navy); font-weight: 600; }

/* ------------------------------------------------------------
   8. Trip cards
   ------------------------------------------------------------ */
.trips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}
.trips-empty {
  text-align: center; padding: var(--sp-xl) var(--sp-md);
  color: var(--c-text-muted);
  border: 1px dashed var(--c-border); border-radius: var(--radius-md);
}

.trip-card {
  display: flex; flex-direction: column;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-top: 3px solid transparent;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--trans-med);
  position: relative;
}
.trip-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(11,24,48,0.08);
  border-top-color: var(--c-orange);
}

.trip-card-image-wrap { display: block; }
.trip-card-image {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--c-navy-xlight);
}
.trip-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.trip-card:hover .trip-card-image img { transform: scale(1.06); }
.trip-card-no-image {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-gold); font-family: var(--font-heading); font-size: 2rem;
}

.trip-card-price-overlay {
  position: absolute; bottom: 0; right: 0;
  background: var(--c-orange); color: #fff;
  padding: 0.5rem 1rem;
  border-top-left-radius: var(--radius-md);
  line-height: 1.2; text-align: right; z-index: 2;
}
.price-overlay-from { display: block; font-size: 0.62rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.85; }
.price-overlay-amount { font-size: 1.15rem; font-weight: 800; }

.trip-card-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 0.28rem 0.8rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--c-sold-out); color: #fff;
}

.trip-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.trip-card-cat-label {
  font-family: var(--font-body); font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em; color: var(--c-orange);
}
.trip-card-title {
  font-family: var(--font-heading); font-size: 1rem; font-weight: 900;
  text-transform: uppercase; color: var(--c-navy); line-height: 1.25; margin: 0;
}
.trip-card-title a { color: inherit; }
.trip-card-title a:hover { color: var(--c-orange); }
.trip-card-date {
  display: flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; color: var(--c-text-muted);
}
.trip-card-date svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--c-orange); }
.trip-card-excerpt {
  color: var(--c-text-muted); font-size: 0.875rem; line-height: 1.6; flex: 1; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.trip-card-cta {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  margin-top: 0.75rem; padding: 0.75rem 1rem;
  background: var(--c-orange); color: #fff;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 700;
  border-radius: var(--radius-pill); letter-spacing: 0.02em;
  transition: background 0.2s ease, transform 0.15s ease;
}
.trip-card-cta span { font-size: 1.1em; transition: transform 0.2s ease; }
.trip-card-cta:hover { background: var(--c-orange-dark); color: #fff; transform: translateY(-1px); }
.trip-card-cta:hover span { transform: translateX(3px); }
.trip-card-cta--soldout { background: #9ca3af; }
.trip-card-cta--soldout:hover { background: #9ca3af; transform: none; }
.trip-card--sold { opacity: 0.75; }

/* ------------------------------------------------------------
   9. Single trip / event
   ------------------------------------------------------------ */
.event-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--sp-xl);
  align-items: start;
}
.event__img, .event-hero-image {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 0 0 var(--sp-md);
  aspect-ratio: 21 / 9;
  object-fit: cover;
  background: var(--c-navy-xlight);
}
.event__meta {
  color: var(--c-text-muted);
  font-weight: 600;
  margin-bottom: var(--sp-md);
}
.event__desc { color: var(--c-text); }
.event__desc p { margin-bottom: var(--sp-sm); }

.pickups { padding-left: 1.2rem; list-style: disc; color: var(--c-text-muted); }
.pickups li { margin-bottom: 0.3rem; }

.booking-box {
  background: var(--c-white);
  border: 2px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: var(--sp-md);
  position: sticky; top: 128px;
}
.booking-box-price {
  font-family: var(--font-heading);
  font-size: 2rem; font-weight: 800; color: var(--c-navy);
  margin-bottom: 0.15rem;
}
.booking-box-price .per-person { font-size: 0.85rem; font-weight: 400; color: var(--c-text-muted); }
.booking-box .btn { width: 100%; margin-top: var(--sp-sm); }
.booking-box .muted { display: block; margin-top: 0.75rem; font-size: 0.82rem; }

.price { color: var(--c-orange); font-weight: 800; }

/* ------------------------------------------------------------
   10. Forms
   ------------------------------------------------------------ */
.form { margin-top: var(--sp-md); }
.form .field,
.form-group { margin: 0 0 var(--sp-sm); display: flex; flex-direction: column; gap: 0.4rem; }
.form label,
.form-group label {
  font-family: var(--font-body); font-weight: 600; font-size: 0.8rem;
  color: var(--c-navy); text-transform: uppercase; letter-spacing: 0.04em;
}
.form input, .form select, .form textarea,
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem; color: var(--c-text); background: var(--c-white);
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
}
.form input:focus, .form select:focus, .form textarea:focus,
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--c-orange);
  box-shadow: 0 0 0 3px rgba(201,35,53,0.15);
}
.form textarea { min-height: 120px; resize: vertical; }
.form .row, .form-row { display: flex; flex-wrap: wrap; gap: var(--sp-sm); }
.form .row .field, .form-row .form-group { flex: 1 1 200px; }
.form-actions { margin-top: var(--sp-md); display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hp { position: absolute; left: -9999px; }
.chk { display: flex; align-items: center; gap: 0.5rem; font-weight: 400 !important; text-transform: none !important; letter-spacing: normal !important; }

/* ------------------------------------------------------------
   11. Booking summary tables
   ------------------------------------------------------------ */
.booking { max-width: 760px; }
.lines { width: 100%; border-collapse: collapse; margin: var(--sp-md) 0; }
.lines td { padding: 0.7rem 0.4rem; border-bottom: 1px solid var(--c-border); }
.lines .total td { border-top: 2px solid var(--c-navy); border-bottom: none; font-size: 1.05rem; }
.booking__total { font-size: 1.15rem; margin: var(--sp-md) 0; }

.pay-card {
  background: var(--c-white);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: var(--sp-lg);
  margin-bottom: var(--sp-md);
}
.pay-card-heading { font-size: 1.1rem; margin-bottom: var(--sp-xs); }
.pay-hold-note { color: var(--c-orange); font-weight: 600; font-size: 0.88rem; margin-top: var(--sp-xs); }

.pay-methods { display: flex; flex-direction: column; gap: 0.6rem; margin-top: var(--sp-sm); }
.pay-methods .pay-method {
  display: flex; gap: 0.8rem; align-items: flex-start;
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--c-border); border-radius: var(--radius-sm);
  background: var(--c-white); cursor: pointer;
  /* this <label> wraps the whole row, not a single field — undo .form label's uppercase/navy styling */
  text-transform: none; letter-spacing: normal; font-weight: 400; color: var(--c-text);
  transition: border-color var(--trans-fast), background var(--trans-fast);
}
.pay-methods .pay-method:hover { border-color: var(--c-navy); }
.pay-methods .pay-method:has(input:checked) { border-color: var(--c-orange); background: rgba(201, 35, 53, 0.04); box-shadow: 0 0 0 1px var(--c-orange); }
.pay-methods .pay-method input[type="radio"] { margin-top: 0.2rem; accent-color: var(--c-orange); flex-shrink: 0; }
.pay-methods .pay-method strong { display: block; font-family: var(--font-body); font-size: 0.95rem; color: var(--c-navy); text-transform: none; }
.pay-methods .pay-method .muted.small { display: block; text-transform: none; letter-spacing: normal; margin-top: 0.15rem; }

.passenger {
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem; margin: 0.6rem 0;
  background: var(--c-white);
}
.passenger legend { font-family: var(--font-body); font-weight: 700; padding: 0 0.4rem; }

/* ------------------------------------------------------------
   12. Flash, pills, badges
   ------------------------------------------------------------ */
.flash { padding: 0.8rem 1rem; border-radius: var(--radius-sm); margin: var(--sp-sm) 0; font-size: 0.92rem; }
.flash--success { background: #e6f4ea; color: #1e7e34; }
.flash--error   { background: #fdecec; color: #b32d2e; }
.flash--info    { background: #e7f1fb; color: #1c5d99; }

.pill { display: inline-block; padding: 0.15rem 0.7rem; border-radius: var(--radius-pill); font-size: 0.72rem; font-weight: 700; background: #eee; color: #555; text-transform: uppercase; letter-spacing: 0.04em; }
.pill--paid, .pill--published { background: #e6f4ea; color: #1e7e34; }
.pill--pending, .pill--draft { background: #fdecc8; color: #8a6d1b; }
.pill--cancelled, .pill--expired, .pill--refunded { background: #eee; color: #777; }
.pill--sold { background: #fdecec; color: #b32d2e; }

.badge-soldout {
  display: inline-block; align-self: flex-start;
  padding: 0.15rem 0.7rem; border-radius: var(--radius-pill);
  background: var(--c-sold-out); color: #fff; font-weight: 700; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.04em;
}

code { background: #f2f2f2; padding: 1px 5px; border-radius: 3px; font-size: 0.85em; }

/* ------------------------------------------------------------
   13. Footer
   ------------------------------------------------------------ */
.site-footer { background: #071226; color: #9eacc1; padding-top: var(--sp-xl); }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-2xl);
  padding-bottom: var(--sp-xl);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .site-logo-img { height: 60px; margin-bottom: var(--sp-sm); filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin: var(--sp-sm) 0 0; max-width: 330px; }
.footer-brand p a { color: inherit; text-decoration: underline; }
.footer-col h4 {
  color: var(--c-white); font-family: var(--font-heading); font-weight: 900;
  font-size: 1rem; letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 1.1rem;
}
.footer-nav { display: flex; flex-direction: column; }
.footer-nav a, .footer-nav .footer-address {
  display: block; color: #9eacc1; font-size: 0.82rem; margin-bottom: 0.75rem;
}
.footer-nav a:hover { color: var(--c-white); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-md) 0; font-size: 0.8rem; color: rgba(255,255,255,0.45);
  flex-wrap: wrap; gap: var(--sp-sm);
}
.footer-bottom a { color: rgba(255,255,255,0.45); }
.footer-bottom a:hover { color: rgba(255,255,255,0.75); }
.footer-bottom-links { display: flex; gap: var(--sp-md); }

/* ------------------------------------------------------------
   14. Responsive
   ------------------------------------------------------------ */
@media (max-width: 960px) {
  .event-layout { grid-template-columns: 1fr; }
  .booking-box { position: static; }
}
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--sp-lg); }
}
@media (max-width: 768px) {
  :root { --sp-xl: 3rem; --sp-2xl: 4rem; }
  .footer-top { grid-template-columns: 1fr; gap: var(--sp-md); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }
  .form .row .field, .form-row .form-group { flex-basis: 100%; }
}
@media (max-width: 480px) {
  .container, .wrap { padding: 0 1rem; }
  .trips-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   14b. MARKETING PAGES + FULL HOMEPAGE  (ported from the RT theme)
   ============================================================ */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.grid-3 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-md);
}
.section-eyebrow--pale { color: #cbd7e9; }
.section-eyebrow--pale::before { background: var(--c-white); }
.page-hero-content { max-width: 680px; }
.field-error { display: block; color: var(--c-sold-out); font-size: 0.8rem; margin-top: 0.25rem; }
.form input.error, .form-group input.error, .form-group select.error, .form-group textarea.error {
  border-color: var(--c-sold-out);
}

/* ── Hero trip finder (overlaps the hero) ── */
.trips-hero { min-height: 520px; }
.trip-finder-wrap { position: relative; z-index: 3; margin-top: -64px; margin-bottom: var(--sp-xl); }
.trip-finder {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 1px;
  background: var(--c-border); border-top: 4px solid var(--c-orange);
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-lg);
}
.trip-finder-field { background: var(--c-white); padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 0.35rem; }
.trip-finder-field label {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-text-muted);
}
.trip-finder-field select {
  border: none; background: transparent; font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 700; color: var(--c-navy); padding: 0; cursor: pointer;
}
.trip-finder-field select:focus { outline: 2px solid var(--c-orange); outline-offset: 2px; }
.trip-finder-submit { border-radius: 0 !important; padding: 0 var(--sp-lg); font-size: 0.85rem; }
@media (max-width: 760px) {
  .trip-finder { grid-template-columns: 1fr 1fr; }
  .trip-finder-submit { grid-column: 1 / -1; padding: 1rem; }
  .trip-finder-wrap { margin-top: -40px; }
}

/* ── Category tiles ── */
.category-tiles-section { background: var(--c-sky); }
.category-tiles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-md); }
.category-tile {
  position: relative; display: block; width: 100%; min-height: 240px;
  overflow: hidden; border: none; border-radius: var(--radius-lg); padding: 0;
  cursor: pointer; text-align: left; font-family: inherit;
}
.category-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--trans-med); }
.category-tile:hover img { transform: scale(1.06); }
.category-tile-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,24,48,.25) 0%, rgba(11,24,48,.9) 100%); }
.category-tile--red .category-tile-shade { background: linear-gradient(180deg, rgba(201,35,53,.2) 0%, rgba(11,24,48,.92) 100%); }
.category-tile-body {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  justify-content: flex-end; height: 100%; min-height: 240px; padding: var(--sp-md); color: var(--c-white);
}
.category-tile-count {
  font-family: var(--font-body); font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-heading-accent); margin-bottom: 0.35rem;
}
.category-tile-number {
  position: absolute; z-index: 1; top: var(--sp-sm); left: var(--sp-sm);
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--c-orange); color: var(--c-white); font-family: var(--font-body);
  font-size: 0.85rem; font-weight: 800; border: 3px solid var(--c-white); box-shadow: var(--shadow-md);
}
.category-tile--navy .category-tile-number { background: var(--c-navy); }
.category-tile-title { font: 900 1.3rem/1.15 var(--font-heading); text-transform: uppercase; color: var(--c-white); margin-bottom: 0.4rem; }
.category-tile-desc { font-size: 0.85rem; color: rgba(255,255,255,.8); line-height: 1.5; margin-bottom: 0.85rem; }
.category-tile-cta {
  display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-white);
}
.category-tile:hover .category-tile-cta { color: var(--c-heading-accent); }
@media (max-width: 900px) { .category-tiles-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .category-tiles-grid { grid-template-columns: 1fr; } }

/* ── Icon-led trust strip ── */
.trust-icons-section { background: var(--c-navy); padding: var(--sp-lg) 0; }
.trust-icons-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-md); }
.trust-icon-item { display: flex; align-items: center; gap: 0.9rem; }
.trust-icon-item svg {
  flex-shrink: 0; width: 24px; height: 24px; padding: 10px; box-sizing: content-box;
  background: var(--c-orange); border-radius: 50%; color: var(--c-white);
}
.trust-icon-item strong { display: block; font: 900 1.3rem var(--font-heading); text-transform: uppercase; color: var(--c-white); line-height: 1.1; }
.trust-icon-item span { display: block; font-size: 0.78rem; color: #b9c5d7; font-weight: 600; }
@media (max-width: 900px) { .trust-icons-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-lg) var(--sp-md); } }
@media (max-width: 480px) { .trust-icons-grid { grid-template-columns: 1fr; } }

/* ── Sticky filter bar + month groups ── */
.trips-filter-bar {
  background: var(--c-white); border-bottom: 1px solid var(--c-border);
  position: sticky; top: 113px; z-index: 100; box-shadow: var(--shadow-sm);
}
.trips-filter-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; padding: 0.75rem 0; }
.filter-label {
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; color: var(--c-text-muted);
  text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap; flex-shrink: 0;
}
.filter-btn {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.45rem 1rem;
  background: var(--c-bg); border: 1.5px solid var(--c-border); border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; color: var(--c-text-muted);
  cursor: pointer; transition: all var(--trans-fast); white-space: nowrap;
}
.filter-btn:hover { border-color: var(--c-navy); color: var(--c-navy); background: var(--c-navy-xlight); }
.filter-btn.active { background: var(--c-navy); border-color: var(--c-navy); color: var(--c-white); }
.filter-divider { width: 1px; height: 20px; background: var(--c-border); flex-shrink: 0; margin: 0 0.25rem; }

@media (max-width: 920px) {
  /* Confirmed on a real device: sticky misbehaves here on mobile even with
     the correct offset (likely the browser's address bar collapsing/
     expanding on scroll, which is a known source of sticky quirks). Drop
     it entirely on mobile rather than chase that further — desktop keeps
     the sticky behaviour from the base rule above, untouched.
     NB this block must stay AFTER the base .trips-filter-bar rule above —
     same specificity, so source order decides, and an earlier copy of this
     same override silently lost that fight for most of today.
     Pills just wrap onto their own lines here (the base rule's default
     flex-wrap: wrap) — a one-row horizontal-scroll version was tried and
     reverted, since hiding the scrollbar left no visual hint that there
     was more to swipe to, which looked broken rather than clever. */
  .trips-filter-bar { position: static; }
}

.trips-count { font-family: var(--font-body); font-size: 0.85rem; color: var(--c-text-muted); padding: var(--sp-sm) 0 var(--sp-xs); }
.trips-count strong { color: var(--c-navy); }
.trip-month-group { margin-bottom: var(--sp-xl); }
.trip-month-heading {
  display: flex; align-items: center; gap: var(--sp-sm); margin-bottom: var(--sp-md);
  padding-bottom: 0.75rem; border-bottom: 2px solid var(--c-border);
}
.trip-month-heading h2 { font-size: 1.4rem; color: var(--c-navy); }
.trip-month-count {
  background: var(--c-navy-xlight); color: var(--c-navy); font-family: var(--font-body);
  font-size: 0.8rem; font-weight: 700; padding: 0.2rem 0.65rem; border-radius: var(--radius-pill);
}
.trips-no-results { text-align: center; padding: var(--sp-xl) var(--sp-md); color: var(--c-text-muted); }

/* ── Numbered services grid (About page) ── */
.services-grid { border-top: 1px solid var(--c-sky-mid); }
.services-grid article {
  display: grid; grid-template-columns: 60px 260px 1fr; gap: var(--sp-md);
  align-items: center; padding: var(--sp-md) 0.5rem; border-bottom: 1px solid var(--c-sky-mid);
}
.services-grid-number {
  display: flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: 50%; background: var(--c-orange); color: var(--c-white);
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 800;
  border: 3px solid var(--c-white); box-shadow: var(--shadow-md); flex-shrink: 0;
}
.services-grid-number--navy { background: var(--c-navy); }
.services-grid h3 { margin: 0; color: var(--c-navy); font-size: 1.35rem; }
.services-grid p { margin: 0; color: var(--c-text-muted); font-size: 0.9rem; max-width: 610px; }
@media (max-width: 900px) {
  .services-grid article { grid-template-columns: 45px 1fr; }
  .services-grid p { grid-column: 2; }
}

/* ── Confidence / benefits ── */
.confidence { padding: var(--sp-2xl) 0; background: var(--c-navy); color: var(--c-white); }
.confidence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2xl); align-items: center; }
.confidence h2 { color: var(--c-white); }
.confidence-copy { max-width: 530px; margin: var(--sp-md) 0 var(--sp-lg); color: #b8c5d8; font-size: 1rem; line-height: 1.8; }
.benefits { display: grid; grid-template-columns: 1fr 1fr; border-left: 1px solid rgba(255,255,255,.15); border-top: 1px solid rgba(255,255,255,.15); }
.benefits article { min-height: 190px; padding: var(--sp-md); border-right: 1px solid rgba(255,255,255,.15); border-bottom: 1px solid rgba(255,255,255,.15); }
.benefits article > span { color: var(--c-heading-accent); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; }
.benefits h3 { margin: var(--sp-md) 0 0.5rem; color: var(--c-white); font-size: 1.3rem; }
.benefits p { margin: 0; color: #aebbd0; font-size: 0.85rem; line-height: 1.65; }
@media (max-width: 900px) { .confidence-grid { grid-template-columns: 1fr; gap: var(--sp-xl); } }
@media (max-width: 620px) { .confidence { padding: var(--sp-xl) 0; } .benefits { grid-template-columns: 1fr; } }

/* ── Testimonials ── */
.testimonials-section { background: linear-gradient(180deg, var(--c-sky) 0%, var(--c-white) 100%); padding: var(--sp-xl) 0; }
.testimonial-card { background: var(--c-white); border-radius: var(--radius-md); padding: var(--sp-md); border: 1px solid var(--c-border); display: flex; flex-direction: column; }
.testimonial-stars { display: flex; gap: 3px; margin-bottom: 0.75rem; }
.testimonial-stars span { color: #FFC107; font-size: 1.1rem; }
.testimonial-text { color: var(--c-text); font-size: 0.95rem; line-height: 1.7; font-style: italic; flex: 1; margin-bottom: var(--sp-sm); }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 42px; height: 42px; background: var(--c-navy-xlight); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; color: var(--c-navy); flex-shrink: 0;
}
.testimonial-name { font-family: var(--font-body); font-weight: 700; font-size: 0.9rem; color: var(--c-navy); }
.testimonial-type { font-size: 0.8rem; color: var(--c-text-muted); }

/* ── CTA banner ── */
.cta-banner { background: var(--c-orange); padding: 5rem 0; }
.cta-banner-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-xl); }
.cta-banner h2 { color: var(--c-white); margin-bottom: 0; }
.cta-banner h2 em { color: var(--c-white); }
.cta-banner-actions { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.text-link {
  display: inline-flex; align-items: center; gap: 0.6rem; color: var(--c-white);
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 3px;
}
.text-link:hover { color: var(--c-white); border-color: rgba(255,255,255,.9); }
@media (max-width: 900px) { .cta-banner-inner { flex-direction: column; align-items: flex-start; } }

/* ── Prose (page body copy) ── */
.prose { max-width: 800px; }
.prose h2 { margin-top: var(--sp-lg); margin-bottom: var(--sp-sm); }
.prose h3 { margin-top: var(--sp-md); margin-bottom: 0.5rem; }
.prose p { color: var(--c-text-muted); }
.prose ul, .prose ol { list-style: disc; padding-left: 1.5rem; color: var(--c-text-muted); }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--c-navy); text-decoration: underline; }

/* ── FAQ accordion ── */
.faq-list { border-top: 1px solid var(--c-border); }
.faq-item { border-bottom: 1px solid var(--c-border); }
.faq-item h2 { margin: 0; }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-md);
  width: 100%; padding: 1.25rem 0; background: none; border: none; text-align: left; cursor: pointer;
  font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; color: var(--c-navy);
}
.faq-question:hover { color: var(--c-orange); }
.faq-icon { flex-shrink: 0; transition: transform var(--trans-fast); color: var(--c-orange); }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer-inner { padding-bottom: 1.25rem; color: var(--c-text-muted); line-height: 1.7; }
.faq-answer-inner p { margin: 0 0 0.75rem; }
.faq-answer-inner p:last-child { margin-bottom: 0; }
.faq-answer-inner ul { list-style: disc; padding-left: 1.4rem; margin: 0 0 0.75rem; }
.faq-answer-inner li { margin-bottom: 0.3rem; }
.faq-answer-inner a { color: var(--c-navy); text-decoration: underline; }

/* ── Contact / Coach-hire layout ── */
.contact-layout { display: grid; grid-template-columns: 380px 1fr; gap: var(--sp-xl); align-items: start; }
.contact-details { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: var(--sp-lg); position: sticky; top: 128px; }
.contact-details-heading { font-size: 1.25rem; margin-bottom: var(--sp-md); padding-bottom: var(--sp-sm); border-bottom: 2px solid var(--c-border); }
.contact-detail-group { display: flex; gap: 0.875rem; margin-bottom: var(--sp-md); align-items: flex-start; }
.contact-detail-icon {
  width: 40px; height: 40px; background: var(--c-orange); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--c-white); flex-shrink: 0;
}
.contact-detail-label {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--c-text-muted); margin-bottom: 0.25rem;
}
.contact-detail-value { display: block; color: var(--c-navy); font-weight: 600; font-size: 0.95rem; text-decoration: none; line-height: 1.5; transition: color var(--trans-fast); }
a.contact-detail-value:hover { color: var(--c-orange); }
.contact-quick-links { margin-top: var(--sp-md); padding-top: var(--sp-md); border-top: 1px solid var(--c-border); }
.contact-quick-label { font-family: var(--font-body); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-text-muted); margin-bottom: 0.75rem; }
.contact-quick-link {
  display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0;
  color: var(--c-navy); font-family: var(--font-body); font-size: 0.875rem; font-weight: 600;
  text-decoration: none; border-bottom: 1px solid var(--c-border); transition: color var(--trans-fast);
}
.contact-quick-link:last-child { border-bottom: none; }
.contact-quick-link:hover { color: var(--c-orange); }
.contact-form-heading { font-size: 1.5rem; margin-bottom: 0.5rem; }
.contact-form-intro { color: var(--c-text-muted); margin-bottom: var(--sp-md); }
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-details { position: static; }
}

/* ============================================================
   15. SEATMAP (public booking + admin editor) — unchanged
   ============================================================ */
.seatmap { background: #fff; border: 1px solid var(--c-border); border-radius: 8px; padding: 14px; overflow: auto; }
.seatmap-grid { display: grid; gap: 5px; justify-content: start; }
.seat { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; font-size: 12px; border-radius: 5px; border: 1px solid #ccc; background: #eee; user-select: none; }
.seat--free { background: #e8f5e9; border-color: #66bb6a; cursor: pointer; }
.seat--free:hover { background: #c8e6c9; }
.seat--held, .seat--booked { background: #eee; border-color: #ccc; color: #999; }
.seat--blank, .seat--aisle { background: transparent; border-color: transparent; }
.seat--driver, .seat--door { background: #f4f4f4; }
.seat.is-selected { background: var(--c-orange); border-color: var(--c-orange); color: #fff; font-weight: 700; }
.seatmap.at-limit { outline: 2px solid #b32d2e; }

.sm-grid { margin: 14px 0; }
.sm-cell { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid #ccc; border-radius: 5px; font-size: 12px; cursor: pointer; background: #fff; }
.sm-cell--seat { background: #e8f5e9; border-color: #66bb6a; }
.sm-cell--aisle { background: #f7f7f7; border-style: dashed; }
.sm-cell--blank { background: #fafafa; color: #ccc; }
.sm-cell--driver, .sm-cell--door { background: #eef; }
.sm-cell--dupe { background: #fdecea; border-color: #d93025; color: #a50e0e; font-weight: 700; }
.sm-status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 10px 0 2px; font-size: 13px; }
.sm-status-count { color: #555; }
.sm-status-warn { color: #a50e0e; background: #fdecea; border: 1px solid #f5c6c2; border-radius: 6px; padding: 5px 10px; }

/* ============================================================
   16. ADMIN — app shell + design system  (all scoped to body.admin)
   ============================================================ */
body.admin {
  --adm-bg:        #f4f5f7;
  --adm-surface:   #ffffff;
  --adm-surface-2: #fafbfc;
  --adm-ink:       #1b2333;
  --adm-muted:     #667085;
  --adm-line:      #e4e7ec;
  --adm-line-soft: #eef0f3;
  --adm-brand:     #c92335;
  --adm-brand-dk:  #a8182a;
  --adm-navy:      #0b1830;
  --adm-r:   12px;
  --adm-r-sm: 8px;
  --adm-sh:    0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.10);
  --adm-sh-lg: 0 10px 32px rgba(16,24,40,.12);
  --adm-sidebar-w: 244px;

  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--adm-ink);
  background: var(--adm-bg);
  padding-top: 0;
}

/* Tame the poster headings inside admin */
body.admin h1, body.admin h2, body.admin h3, body.admin h4, body.admin h5, body.admin h6 {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--adm-ink);
  font-weight: 700;
  line-height: 1.3;
}
body.admin h1 { font-size: 1.5rem; }
body.admin h2 { font-size: 1.05rem; margin: 0 0 12px; }
body.admin h3 { font-size: 0.95rem; margin: 0 0 10px; }
body.admin .muted { color: var(--adm-muted); }
body.admin hr { border: none; border-top: 1px solid var(--adm-line-soft); margin: 16px 0; }
body.admin code { background: var(--adm-surface-2); border: 1px solid var(--adm-line); padding: 1px 6px; border-radius: 5px; font-size: 12px; }

/* ---- Shell ---- */
.adm-shell { min-height: 100vh; }

.adm-sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--adm-sidebar-w); z-index: 60;
  background: var(--adm-navy); color: #aab6c8;
  display: flex; flex-direction: column;
  transition: transform 0.22s ease;
}
.adm-sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 20px 14px; color: #fff;
}
.adm-sidebar-brand .adm-brand-text {
  font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 16px; letter-spacing: -0.01em; color: #fff;
}
.adm-topbar-brand {
  display: flex; align-items: center; gap: 8px; color: var(--adm-navy);
  font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 15px;
}
.adm-poweredby {
  display: block; padding: 2px 20px 14px; font-size: 10.5px; font-weight: 600;
  color: #5f6c85; text-decoration: none; letter-spacing: 0.02em;
}
.adm-poweredby:hover { color: #aab6c8; text-decoration: underline; }
.adm-poweredby--auth { text-align: center; margin-top: 18px; color: var(--adm-muted); }
.adm-poweredby--auth:hover { color: var(--adm-navy); }
.adm-nav { flex: 1; overflow-y: auto; padding: 6px 12px 16px; }
.adm-nav-label {
  padding: 16px 12px 6px; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase; color: #5f6c85;
}
.adm-nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; margin-bottom: 2px; border-radius: 8px;
  color: #aab6c8; font-weight: 600; font-size: 13.5px; text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.adm-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.adm-nav a.is-active { background: var(--adm-brand); color: #fff; }
.adm-nav a.is-active svg { opacity: 1; }
.adm-nav a svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.8; }
.adm-nav-count {
  margin-left: auto; background: rgba(255,255,255,.16); color: #fff;
  font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; line-height: 1.5;
}
.adm-nav a.is-active .adm-nav-count { background: rgba(255,255,255,.25); }
.adm-sidebar-foot {
  padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: 10px;
}
.adm-sidebar-foot .adm-avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--adm-brand);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; flex-shrink: 0;
}
.adm-sidebar-foot .adm-who { flex: 1; min-width: 0; font-size: 12.5px; color: #cdd5e1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-sidebar-foot form { margin: 0; }
.adm-sidebar-foot button {
  background: rgba(255,255,255,.08); border: none; color: #cdd5e1;
  width: 30px; height: 30px; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.adm-sidebar-foot button:hover { background: rgba(255,255,255,.16); color: #fff; }
.adm-sidebar-foot button svg { width: 16px; height: 16px; }

.adm-main { margin-left: var(--adm-sidebar-w); min-width: 0; }
.adm-content { max-width: 1180px; margin: 0 auto; padding: 26px 34px 72px; }

.adm-topbar { display: none; }
.adm-scrim { display: none; }

/* ---- Page header ---- */
.adm-page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 22px;
}
.adm-page-head h1 { margin: 0; }
.adm-page-head .sub { margin: 5px 0 0; color: var(--adm-muted); font-size: 13.5px; }
.adm-page-head .adm-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.adm-back {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--adm-muted); font-size: 13px; font-weight: 600; margin-bottom: 12px;
}
.adm-back:hover { color: var(--adm-ink); }
.adm-back svg { width: 15px; height: 15px; }

/* ---- Cards ---- */
.adm-card { background: var(--adm-surface); border: 1px solid var(--adm-line); border-radius: var(--adm-r); box-shadow: var(--adm-sh); }
.adm-card + .adm-card, .adm-stack > * + * { margin-top: 18px; }
.adm-card-head {
  padding: 15px 18px; border-bottom: 1px solid var(--adm-line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.adm-card-head h2, .adm-card-head h3 { margin: 0; }
.adm-card-body { padding: 18px; }
.adm-card-body--flush { padding: 0; }
.adm-card-body--flush .adm-table th:first-child,
.adm-card-body--flush .adm-table td:first-child { padding-left: 18px; }
.adm-card-body--flush .adm-table th:last-child,
.adm-card-body--flush .adm-table td:last-child { padding-right: 18px; }

/* ---- Stats ---- */
.adm-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 14px; margin-bottom: 24px;
}
.adm-stat {
  background: var(--adm-surface); border: 1px solid var(--adm-line);
  border-radius: var(--adm-r); padding: 15px 18px; box-shadow: var(--adm-sh);
}
.adm-stat-label { font-size: 11.5px; font-weight: 600; color: var(--adm-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.adm-stat-value { font-size: 1.65rem; font-weight: 800; letter-spacing: -0.02em; margin-top: 3px; }
.adm-stat-value a { color: inherit; text-decoration: none; }
.adm-stat-value a:hover { color: var(--adm-brand); }
.adm-stat--accent { border-top: 2px solid var(--adm-brand); }
.adm-stat--accent .adm-stat-value { color: var(--adm-brand); }

/* ---- Tables ---- */
.adm-table-wrap { overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.adm-table th {
  text-align: left; padding: 10px 14px; white-space: nowrap;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--adm-muted); background: var(--adm-surface-2);
  border-bottom: 1px solid var(--adm-line);
}
.adm-table td { padding: 12px 14px; border-bottom: 1px solid var(--adm-line-soft); vertical-align: middle; }
.adm-table tbody tr:last-child td { border-bottom: none; }
.adm-table tbody tr:hover { background: var(--adm-surface-2); }
.adm-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.adm-table .t-sub { display: block; color: var(--adm-muted); font-size: 12px; margin-top: 2px; }
.adm-table .t-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.adm-table form { margin: 0; display: inline; }
/* inline-edit inputs inside a table fill their cell */
body.admin .adm-table td > input[type="text"],
body.admin .adm-table td > input:not([type]),
body.admin .adm-table td > input[type="search"] {
  width: 100%; padding: 6px 9px; font-size: 13px;
  border: 1px solid var(--adm-line); border-radius: 6px; background: #fff;
}
body.admin .adm-table td > input[type="number"] {
  padding: 6px 8px; font-size: 13px; border: 1px solid var(--adm-line); border-radius: 6px;
}
body.admin .adm-table td > input:focus { outline: none; border-color: var(--adm-brand); box-shadow: 0 0 0 3px rgba(201,35,53,.12); }

/* ---- Buttons (override shared .btn inside admin) ---- */
body.admin .btn, .adm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--adm-r-sm);
  font-family: var(--font-body); font-weight: 600; font-size: 13px; line-height: 1.2;
  border: 1px solid var(--adm-line); background: var(--adm-surface); color: var(--adm-ink);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
}
body.admin .btn:hover, .adm-btn:hover { background: var(--adm-surface-2); border-color: #d3d8de; color: var(--adm-ink); transform: none; }
body.admin .btn svg, .adm-btn svg { width: 15px; height: 15px; }
body.admin .btn--primary, .adm-btn--primary { background: var(--adm-brand); border-color: var(--adm-brand); color: #fff; }
body.admin .btn--primary:hover, .adm-btn--primary:hover { background: var(--adm-brand-dk); border-color: var(--adm-brand-dk); color: #fff; }
body.admin .btn--ghost, .adm-btn--ghost { background: transparent; }
body.admin .btn--danger, .adm-btn--danger { background: var(--adm-surface); border-color: #f3c2bd; color: #b42318; }
body.admin .btn--danger:hover, .adm-btn--danger:hover { background: #fef3f2; border-color: #f3c2bd; color: #b42318; }
body.admin .btn--sm, .adm-btn--sm { padding: 6px 10px; font-size: 12px; border-radius: 7px; }
body.admin .btn--lg, .adm-btn--lg { padding: 10px 18px; font-size: 14px; }
body.admin .btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---- Forms (override shared inside admin) ---- */
body.admin .form { margin: 0; }
body.admin .form .field, body.admin .adm-field { display: flex; flex-direction: column; gap: 5px; margin: 0 0 14px; }
body.admin .form label, body.admin .adm-field > label {
  font-size: 12.5px; font-weight: 600; color: var(--adm-ink);
  text-transform: none; letter-spacing: normal;
}
body.admin .form input, body.admin .form select, body.admin .form textarea,
body.admin .adm-field input, body.admin .adm-field select, body.admin .adm-field textarea {
  width: 100%; padding: 8px 11px; font-size: 13.5px;
  border: 1px solid var(--adm-line); border-radius: var(--adm-r-sm);
  background: #fff; color: var(--adm-ink);
  transition: border-color 0.12s, box-shadow 0.12s;
}
body.admin .form input:focus, body.admin .form select:focus, body.admin .form textarea:focus {
  outline: none; border-color: var(--adm-brand); box-shadow: 0 0 0 3px rgba(201,35,53,.12);
}
body.admin .form textarea { min-height: 90px; resize: vertical; }
body.admin .form .row { display: flex; gap: 14px; flex-wrap: wrap; }
body.admin .form .row .field { flex: 1 1 190px; }
body.admin .form .chk { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
body.admin .form .chk input { width: auto; }
body.admin .form-actions {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--adm-line-soft);
}
body.admin .form-hint { font-size: 12px; color: var(--adm-muted); }

/* ---- Filter bar ---- */
body.admin .filters, .adm-filters {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 0 0 18px;
  background: var(--adm-surface); border: 1px solid var(--adm-line);
  border-radius: var(--adm-r); padding: 12px 14px; box-shadow: var(--adm-sh);
}
body.admin .filters select, body.admin .filters input, .adm-filters select, .adm-filters input {
  padding: 7px 10px; border: 1px solid var(--adm-line); border-radius: var(--adm-r-sm);
  font-size: 13px; background: #fff;
}

/* ---- Badges (override .pill inside admin) ---- */
body.admin .pill, .adm-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; text-transform: capitalize; letter-spacing: 0;
  background: #eef0f3; color: #475467;
}
body.admin .pill::before, .adm-badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.75;
}
body.admin .pill--paid, body.admin .pill--published, body.admin .pill--converted, .adm-badge--ok { background: #ecfdf3; color: #067647; }
body.admin .pill--pending, body.admin .pill--draft, body.admin .pill--new, .adm-badge--warn { background: #fffaeb; color: #b54708; }
body.admin .pill--cancelled, body.admin .pill--expired, body.admin .pill--refunded, body.admin .pill--done, .adm-badge--muted { background: #f2f4f7; color: #475467; }
body.admin .pill--sold, .adm-badge--bad { background: #fef3f2; color: #b42318; }

/* ---- Two-column detail ---- */
body.admin .cols, .adm-cols { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 20px; align-items: start; }
body.admin .cols > section { min-width: 0; }
body.admin .cols aside, .adm-cols aside {
  background: var(--adm-surface); border: 1px solid var(--adm-line);
  border-radius: var(--adm-r); padding: 18px; box-shadow: var(--adm-sh);
}

/* key/value list */
.adm-dl { display: grid; grid-template-columns: 128px 1fr; gap: 9px 14px; font-size: 13.5px; margin: 0; }
.adm-dl dt { color: var(--adm-muted); font-weight: 600; }
.adm-dl dd { margin: 0; word-break: break-word; }

/* stacked action forms in a sidebar */
body.admin .stack { display: flex; flex-direction: column; gap: 8px; margin: 0 0 10px; }
.adm-actions-group { display: flex; flex-direction: column; gap: 8px; }
.adm-actions-group > form { margin: 0; }
.adm-actions-group .btn, .adm-actions-group .adm-btn { width: 100%; }

/* audit timeline */
.adm-timeline { list-style: none; margin: 0; padding: 0; }
.adm-timeline-item {
  position: relative; padding: 0 0 16px 22px;
  border-left: 2px solid var(--adm-line);
}
.adm-timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.adm-timeline-dot {
  position: absolute; left: -6px; top: 3px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--adm-muted); border: 2px solid var(--adm-surface);
}
.adm-tl--payment > .adm-timeline-dot, .adm-tl--refund > .adm-timeline-dot { background: #067647; }
.adm-tl--email > .adm-timeline-dot { background: #175cd3; }
.adm-tl--webhook > .adm-timeline-dot { background: #7a5af8; }
.adm-tl--booking > .adm-timeline-dot { background: var(--adm-brand); }
.adm-timeline-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.adm-timeline-action { font-weight: 700; font-size: 12px; text-transform: capitalize; letter-spacing: .01em; }
.adm-timeline-amount { font-weight: 700; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.adm-timeline-head time { margin-left: auto; font-size: 12px; color: var(--adm-muted); }
.adm-timeline-summary { margin: 3px 0 4px; font-size: 13px; }
.adm-timeline-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11.5px; color: var(--adm-muted); }
.adm-timeline-meta code { font-size: 10.5px; }
.adm-actor-chip {
  display: inline-block; padding: 1px 7px; border-radius: 999px;
  background: var(--adm-surface-2); border: 1px solid var(--adm-line);
  font-weight: 600; color: var(--adm-ink);
}
.adm-refs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adm-refs code { font-size: 10.5px; }

/* empty state */
.adm-empty { text-align: center; padding: 44px 20px; color: var(--adm-muted); }
.adm-empty svg { width: 34px; height: 34px; margin: 0 auto 10px; opacity: 0.35; display: block; }
.adm-empty p { margin: 0 0 14px; }

/* flash (override inside admin) */
body.admin .flash {
  border-radius: 10px; padding: 11px 14px; font-size: 13.5px; font-weight: 500;
  margin: 0 0 16px; border: 1px solid transparent;
}
body.admin .flash--success { background: #ecfdf3; color: #067647; border-color: #a6f0c6; }
body.admin .flash--error   { background: #fef3f2; color: #b42318; border-color: #fda29b; }
body.admin .flash--info    { background: #eff8ff; color: #175cd3; border-color: #b2ddff; }

/* seat-map editor grid keeps its own look; just space it */
body.admin .sm-grid { gap: 4px; }

/* pickup-point rows on the event form */
body.admin .ep-row { align-items: center; margin-bottom: 10px; }
body.admin .ep-row select { flex: 1 1 220px; width: auto; }
body.admin .ep-row input[type="time"] { flex: 0 0 130px; width: auto; }
body.admin .ep-row .btn { flex: 0 0 auto; }

/* event seating tool — who's in which seat, swap/move them */
body.admin .adm-seating-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 16px; font-size: 13px; color: var(--adm-muted); align-items: center; }
body.admin .adm-seating-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 5px; vertical-align: -2px; border: 1px solid #ccc; }
body.admin .adm-seating-swatch--free { background: #e8f5e9; border-color: #66bb6a; }
body.admin .adm-seating-swatch--booked { background: #dbe4f5; border-color: #7c93c9; }
body.admin .adm-seating-swatch--held { background: #fff3cd; border-color: #e0b400; }
body.admin .adm-seating-swatch--selected { background: var(--c-orange); border-color: var(--c-orange); }
body.admin #adm-seating .seat--booked { background: #dbe4f5; border-color: #7c93c9; color: #1c2b4a; cursor: pointer; }
body.admin #adm-seating .seat--booked:hover { background: #c3d2ee; }
body.admin #adm-seating .seat--held { background: #fff3cd; border-color: #e0b400; color: #7a5b00; }
body.admin .adm-seating-action { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--adm-line-soft); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
body.admin .adm-seating-action .form-hint { margin: 0; flex: 1 1 260px; }

/* ---- Auth (login) ---- */
body.admin.admin--auth {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: radial-gradient(120% 120% at 100% 0%, #14294d 0%, var(--adm-navy) 55%);
}
.adm-auth-card {
  width: 100%; max-width: 360px; background: var(--adm-surface);
  border-radius: 16px; box-shadow: var(--adm-sh-lg); padding: 32px 28px;
}
.adm-auth-card .adm-auth-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 22px; }
.adm-auth-card .adm-auth-brand img { height: 44px; }
.adm-auth-card .adm-auth-brand span { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--adm-muted); }
.adm-auth-card .btn { width: 100%; margin-top: 4px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .adm-sidebar { transform: translateX(-100%); box-shadow: var(--adm-sh-lg); }
  body.adm-nav-open .adm-sidebar { transform: translateX(0); }
  .adm-main { margin-left: 0; }
  .adm-topbar {
    display: flex; align-items: center; gap: 12px;
    position: sticky; top: 0; z-index: 40;
    background: var(--adm-surface); border-bottom: 1px solid var(--adm-line);
    padding: 10px 16px;
  }
  .adm-topbar img { height: 28px; }
  .adm-topbar button {
    background: none; border: 1px solid var(--adm-line); border-radius: 8px;
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer;
  }
  .adm-topbar button svg { width: 20px; height: 20px; }
  body.adm-nav-open .adm-scrim {
    display: block; position: fixed; inset: 0; z-index: 50; background: rgba(11,24,48,.45);
  }
  .adm-content { padding: 20px 18px 60px; }
  body.admin .cols, .adm-cols { grid-template-columns: 1fr; }
}
