/* =========================================================================
   PARTY ANIMAL · Faraya — Eid el Sayde
   Palette mirrors the north-star logo: graduated reds on warm cream.
   Vanilla CSS, mobile-first.
   ========================================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

/* ---------- Tokens (from the logo) ---------- */
:root {
  --red-1: #ff8a73;  /* light coral   */
  --red-2: #f25c4a;  /* red-orange    */
  --red-3: #e23a2e;  /* red           */
  --red-4: #b22020;  /* deep red      */
  --red-5: #7e1212;  /* maroon        */
  --red-6: #5c0c0c;  /* darkest       */

  --ink: #2b0f0f;
  --muted: #8a6a66;
  --paper: #fff6f2;
  --card: #ffffff;
  --line: #f2ddd6;
  --tint: #fdeae6;   /* light red wash */

  --grad-brand: linear-gradient(135deg, #ff8a73 0%, #e23a2e 55%, #7e1212 100%);
  --grad-sky: linear-gradient(160deg, #ff8a73 0%, #f25c4a 30%, #e23a2e 55%, #b22020 78%, #7e1212 100%);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-arabic: "Cairo", system-ui, sans-serif;

  --r: 16px;
  --r-lg: 26px;
  --pad: clamp(18px, 4vw, 44px);
  --wrap: 1160px;
  --shadow-sm: 0 8px 22px -14px rgba(126, 18, 18, 0.4);
  --shadow: 0 20px 50px -24px rgba(126, 18, 18, 0.5);
  --shadow-lg: 0 34px 80px -30px rgba(126, 18, 18, 0.55);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.03; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.arabic { font-family: var(--font-arabic); direction: rtl; font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 15px 28px;
  background: var(--grad-brand);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); filter: saturate(1.06); }
.btn:active { transform: translateY(0); }

/* ---------- Intro splash ---------- */
#splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background:
    radial-gradient(80% 60% at 50% 42%, #ffffff 0%, var(--paper) 55%, #ffe7df 100%);
  transition: opacity 0.6s ease, visibility 0.6s ease;
  cursor: pointer;
}
#splash.is-hiding { opacity: 0; visibility: hidden; }
.splash-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.splash-logo {
  width: min(48vw, 230px);
  height: auto;
  filter: drop-shadow(0 22px 44px rgba(126, 18, 18, 0.28));
  animation: splash-pop 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.splash-word {
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 6vw, 2.5rem);
  letter-spacing: 0.16em;
  color: var(--red-4);
  opacity: 0;
  animation: splash-fade 0.7s ease 0.5s both;
}
.splash-sub {
  margin-top: 8px;
  font-family: var(--font-arabic), var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  opacity: 0;
  animation: splash-fade 0.7s ease 0.75s both;
}

/* ---------- Section scaffolding ---------- */
#lineup, #stay, #checkout, #confirmation {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) var(--pad) 140px;
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(24px, 4vw, 44px); }
.eyebrow { display: inline-block; font-size: 1.15rem; color: var(--red-3); margin-bottom: 6px; }
.section-title { font-size: clamp(2rem, 6vw, 3.2rem); }
.section-sub { color: var(--muted); font-size: 1.05rem; margin-top: 12px; }

/* ---------- Top step-nav ---------- */
#topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 246, 242, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.brand-logo { width: 28px; height: 28px; }
.brand b { font-weight: 700; letter-spacing: 0.01em; }
.steps { display: flex; gap: 6px; }
.step {
  background: none;
  border: 0;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}
.step:hover { color: var(--ink); }
.step.is-current { color: #fff; background: var(--grad-brand); box-shadow: var(--shadow-sm); }
@media (max-width: 560px) {
  .brand b { display: none; }
  .topbar-inner { gap: 8px; }
  .steps { gap: 2px; }
  .step { padding: 8px 11px; font-size: 0.9rem; }
}

/* ---------- Hero ---------- */
#hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  padding: 80px var(--pad);
}
.hero-bg { position: absolute; inset: 0; background: var(--grad-sky); z-index: 0; }
.hero-sun {
  position: absolute;
  top: 12%;
  left: 50%;
  width: min(46vw, 360px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, #fff3ec 0%, #ffd9c9 42%, rgba(255, 138, 115, 0) 70%);
  border-radius: 50%;
  filter: blur(2px);
  animation: sun-breathe 7s ease-in-out infinite;
}
.hero-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5; z-index: 0; }
.hero-blob--1 { width: 46vw; height: 46vw; top: -8vw; right: -10vw; background: #ff8a73; animation: drift 16s ease-in-out infinite; }
.hero-blob--2 { width: 42vw; height: 42vw; bottom: -12vw; left: -8vw; background: #7e1212; animation: drift 20s ease-in-out infinite reverse; }
.hero-mtn {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 34vh;
  z-index: 1;
  background:
    radial-gradient(120% 100% at 20% 100%, rgba(43, 15, 15, 0.32), transparent 60%),
    radial-gradient(120% 100% at 80% 100%, rgba(43, 15, 15, 0.24), transparent 60%);
  clip-path: polygon(0 60%, 16% 34%, 33% 58%, 52% 22%, 70% 54%, 86% 30%, 100% 52%, 100% 100%, 0 100%);
}
.hero-inner { position: relative; z-index: 2; color: #fff; text-shadow: 0 2px 24px rgba(70, 8, 8, 0.34); }
.hero-arabic { font-size: clamp(1.5rem, 5.4vw, 2.3rem); margin-bottom: 8px; letter-spacing: 0.02em; }
.hero-word {
  font-size: clamp(3rem, 14vw, 7.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.86;
  margin: 4px 0 14px;
}
.hero-sub { font-family: var(--font-display); font-weight: 600; font-size: clamp(1rem, 3.4vw, 1.5rem); letter-spacing: 0.08em; text-transform: uppercase; }
.hero-tag { font-size: clamp(1.05rem, 3.4vw, 1.35rem); margin: 18px auto 26px; max-width: 32ch; opacity: 0.96; }
.hero-cta { font-size: 1.1rem; padding: 17px 34px; background: #fff; color: var(--red-3); }
.hero-cta:hover { color: var(--red-4); }
.hero-note { margin-top: 16px; font-size: 0.9rem; letter-spacing: 0.04em; opacity: 0.9; }

/* ---------- Lineup: night tabs ---------- */
.night-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px var(--pad) 14px;
  margin: 0 calc(var(--pad) * -1) 22px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.night-tab {
  position: relative;
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 16px;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.night-tab:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.night-tab-n { font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; }
.night-tab-d { font-size: 0.78rem; color: var(--muted); }
.night-tab.is-active { background: var(--grad-brand); border-color: transparent; color: #fff; box-shadow: var(--shadow); }
.night-tab.is-active .night-tab-d { color: rgba(255, 255, 255, 0.85); }
.night-dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--red-3); box-shadow: 0 0 0 3px rgba(226, 58, 46, 0.22); }
.night-tab.is-active .night-dot { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35); }

/* ---------- Lineup: party cards ---------- */
.party-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: clamp(16px, 2.4vw, 26px);
}
.ticket {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: rise 0.5s ease both;
}
.ticket:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ticket-media { position: relative; aspect-ratio: 4 / 3; }
.ticket-media img { width: 100%; height: 100%; object-fit: cover; }
.ticket-price {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.ticket-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ticket-when { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--red-3); }
.ticket-name { font-size: 1.35rem; }
.ticket-artists { font-size: 0.92rem; color: var(--ink); font-weight: 500; }
.ticket-desc { font-size: 0.9rem; color: var(--muted); margin-bottom: 4px; }
.ticket-add {
  margin-top: auto;
  border: 1.5px solid var(--red-3);
  background: #fff;
  color: var(--red-3);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 11px 16px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.ticket-add:hover { transform: translateY(-1px); background: #fff1ee; }
.ticket.is-added { border-color: transparent; box-shadow: 0 0 0 2px rgba(226, 58, 46, 0.4), var(--shadow); }
.ticket.is-added .ticket-add { background: var(--grad-brand); border-color: transparent; color: #fff; }

/* ---------- Stay: chalet cards ---------- */
.chalet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(16px, 2.4vw, 26px);
}
.chalet {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: rise 0.5s ease both;
}
.chalet:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.chalet-media { position: relative; aspect-ratio: 16 / 10; }
.chalet-media img { width: 100%; height: 100%; object-fit: cover; }
.chalet-price {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.chalet-price small { font-weight: 500; color: var(--muted); font-size: 0.72em; }
.chalet-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.chalet-name { font-size: 1.35rem; }
.chalet-loc { font-size: 0.9rem; color: var(--muted); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; }
.chips li { font-size: 0.78rem; font-weight: 600; color: var(--red-4); background: var(--tint); padding: 4px 10px; border-radius: 999px; }
.chalet-desc { font-size: 0.9rem; color: var(--muted); }
.chalet-actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; }
.stepper { display: inline-flex; align-items: center; gap: 4px; background: #f8ece7; border-radius: 999px; padding: 4px; }
.stepper button {
  width: 30px; height: 30px;
  border: 0; border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  box-shadow: var(--shadow-sm);
}
.stepper-val { font-size: 0.85rem; font-weight: 600; min-width: 62px; text-align: center; }
.chalet-select {
  border: 1.5px solid var(--red-3);
  background: #fff;
  color: var(--red-3);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.chalet-select:hover { transform: translateY(-1px); background: #fff1ee; }
.chalet.is-selected { border-color: transparent; box-shadow: 0 0 0 2px rgba(226, 58, 46, 0.4), var(--shadow); }
.chalet.is-selected .chalet-select { background: var(--grad-brand); border-color: transparent; color: #fff; }

/* ---------- Bundle bar ---------- */
#bundle-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px var(--pad);
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -18px 50px -30px rgba(126, 18, 18, 0.5);
  animation: slide-up 0.3s ease both;
}
.bundle-info { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.bundle-count { font-size: 0.82rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.bundle-total { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; }
.bundle-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.bundle-next { white-space: nowrap; }
.bundle-skip { background: none; border: 0; color: var(--muted); font-weight: 600; padding: 10px 12px; border-radius: 999px; }
.bundle-skip:hover { color: var(--ink); }
@media (max-width: 420px) {
  #bundle-bar { padding-left: 16px; padding-right: 16px; gap: 10px; }
  .bundle-next { padding: 13px 18px; font-size: 0.95rem; }
}

/* ---------- Checkout ---------- */
.checkout-grid { display: grid; gap: clamp(18px, 3vw, 30px); grid-template-columns: 1fr; align-items: start; }
.order-card, .pay-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow-sm);
}
.order-title { font-size: 1.25rem; margin-bottom: 14px; }
.order-night { margin-bottom: 16px; }
.order-night-h { font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--red-3); margin-bottom: 6px; }
.order-row { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.order-name { display: flex; flex-direction: column; }
.order-name em { font-style: normal; font-size: 0.8rem; color: var(--muted); margin-top: 1px; }
.order-amt { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.order-total {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px; padding-top: 14px; border-top: 2px solid var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
}
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field span { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.field input {
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fffdfb;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus { outline: 0; border-color: var(--red-3); box-shadow: 0 0 0 3px rgba(226, 58, 46, 0.16); }
.form-error { color: #c0182b; font-size: 0.9rem; font-weight: 600; margin: 4px 0 12px; }
.pay-btn { width: 100%; margin-top: 6px; padding: 16px; font-size: 1.1rem; }
.pay-note { text-align: center; font-size: 0.82rem; color: var(--muted); margin-top: 12px; }

/* ---------- Confirmation ---------- */
.confirm-wrap { max-width: 620px; margin: 0 auto; text-align: center; }
.confirm-burst { font-size: 3rem; color: var(--red-3); animation: pop 0.6s ease both; }
.confirm-title { font-size: clamp(2rem, 6vw, 3rem); margin: 6px 0 10px; }
.confirm-sub { color: var(--muted); font-size: 1.05rem; }
.confirm-ref {
  display: inline-flex; flex-direction: column; gap: 2px;
  margin: 22px auto;
  padding: 14px 30px;
  border: 2px dashed var(--red-3);
  border-radius: 16px;
  background: #fff4f0;
}
.confirm-ref span { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.confirm-ref strong { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.06em; color: var(--red-4); }
.confirm-order { text-align: left; margin: 8px 0 24px; }
.confirm-restart { margin-top: 4px; }

/* ---------- Desktop layout ---------- */
@media (min-width: 860px) {
  .checkout-grid { grid-template-columns: 1.15fr 0.85fr; }
  #bundle-bar { border-radius: 22px; bottom: 20px; left: 20px; right: 20px; }
  .bundle-total { font-size: 1.7rem; }
}

/* ---------- Motion keyframes ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes slide-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes pop { 0% { transform: scale(0.4); opacity: 0; } 70% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }
@keyframes sun-breathe { 0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.95; } 50% { transform: translateX(-50%) scale(1.06); opacity: 1; } }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(4%, 5%); } }
@keyframes splash-pop { 0% { opacity: 0; transform: scale(0.6) rotate(-12deg); } 100% { opacity: 1; transform: none; } }
@keyframes splash-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Rides (taxis) ---------- */
.rides-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 18px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.rides-status { display: flex; align-items: center; gap: 10px; font-size: 1.02rem; color: var(--ink); }
.rides-status strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--red-3); }
.live-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: #2ecc71; flex: 0 0 auto;
  box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.55);
  animation: pulse-dot 1.8s ease-out infinite;
}
.rides-pickup { display: inline-flex; align-items: center; gap: 8px; }
.rides-pickup span { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.rides-pickup select {
  font: inherit;
  padding: 9px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fffdfb;
  color: var(--ink);
}
.rides-pickup select:focus { outline: 0; border-color: var(--red-3); }

.driver-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: clamp(14px, 2vw, 20px); }
.driver {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: rise 0.5s ease both;
}
.driver:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.driver-avatar {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
}
.driver-info { flex: 1; min-width: 0; }
.driver-top { display: flex; align-items: center; gap: 8px; }
.driver-name { font-size: 1.12rem; }
.driver-rating { font-size: 0.82rem; font-weight: 700; color: var(--red-4); }
.driver-car { font-size: 0.88rem; color: var(--ink); margin-top: 2px; }
.driver-area { font-size: 0.84rem; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.pin { width: 7px; height: 7px; border-radius: 50%; background: var(--red-3); box-shadow: 0 0 0 3px rgba(226, 58, 46, 0.18); }
.driver-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: 0 0 auto; }
.driver-eta { font-size: 0.78rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.driver-fare { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.driver-book {
  margin-top: 4px;
  border: 0;
  border-radius: 999px;
  padding: 9px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.driver-book:hover { transform: translateY(-1px); filter: saturate(1.08); }

.ride-confirm {
  max-width: 460px;
  margin: 10px auto;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow);
}
.ride-confirm-badge {
  width: 56px; height: 56px; margin: 0 auto 12px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-brand);
  color: #fff; font-size: 1.6rem;
  animation: pop 0.5s ease both;
}
.ride-confirm-title { font-size: 1.5rem; }
.ride-confirm-sub { color: var(--muted); margin-top: 6px; }
.ride-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; text-align: left; }
.ride-facts div { background: var(--tint); border-radius: 12px; padding: 10px 14px; }
.ride-facts span { display: block; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.ride-facts strong { font-family: var(--font-display); font-size: 0.98rem; }
.ride-pay-note { font-size: 0.86rem; color: var(--muted); margin-bottom: 18px; }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.5); } 100% { box-shadow: 0 0 0 11px rgba(46, 204, 113, 0); } }

/* ---------- Sold-out / unavailable states ---------- */
.ticket-badge {
  position: absolute; top: 12px; right: 12px;
  background: rgba(43, 15, 15, 0.82); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 5px 10px; border-radius: 999px;
}
.ticket.is-soldout, .chalet.is-soldout { opacity: 0.72; }
.ticket.is-soldout .ticket-media img, .chalet.is-soldout .chalet-media img { filter: grayscale(0.5); }
.ticket-add[disabled], .chalet-select[disabled], .stepper button[disabled] {
  background: #f1e9e4; color: #b3a7a2; border-color: #e7dcd6;
  cursor: not-allowed; box-shadow: none;
}
.whish-btn { display: inline-block; text-decoration: none; margin: 4px auto 2px; }

/* ---------- Admin dashboard ---------- */
.admin-body { background: #f6eee9; }
.admin-login { max-width: 380px; margin: 12vh auto; text-align: center; background: #fff; border-radius: var(--r-lg); padding: 36px 30px; box-shadow: var(--shadow); }
.admin-login-logo { margin: 0 auto 10px; }
.admin-login h1 { font-size: 1.6rem; }
.admin-login h1 span { color: var(--red-3); }
.admin-login-sub { color: var(--muted); margin: 6px 0 16px; }
.admin-login input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 12px; font: inherit; }
.admin-login input:focus { outline: 0; border-color: var(--red-3); }
.admin-login .btn { width: 100%; }
.admin-err { color: #c0182b; font-size: 0.9rem; margin-top: 8px; }
.admin-msg { color: var(--muted); font-size: 0.9rem; margin-bottom: 10px; }

.admin-head { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; background: #fff; border-bottom: 1px solid var(--line); padding: 12px clamp(16px, 4vw, 32px); flex-wrap: wrap; }
.admin-brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); }
.admin-brand span { color: var(--red-3); font-weight: 700; }
.admin-tabs { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.admin-tab { background: none; border: 0; font-family: var(--font-display); font-weight: 600; color: var(--muted); padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.admin-tab.is-active { background: var(--grad-brand); color: #fff; }
.admin-logout { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; color: var(--muted); cursor: pointer; }

.admin-main { max-width: 960px; margin: 0 auto; padding: clamp(16px, 3vw, 28px); }
.admin-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(16px, 2.5vw, 24px); box-shadow: var(--shadow-sm); }
.admin-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.admin-panel-head h2 { font-size: 1.3rem; }
.admin-hint { color: var(--muted); font-size: 0.82rem; }
.admin-refresh { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--ink); cursor: pointer; }
.admin-empty { color: var(--muted); text-align: center; padding: 30px; }

.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table td strong { display: block; }
.admin-sub { display: block; color: var(--muted); font-size: 0.8rem; }
.admin-total { font-family: var(--font-display); font-weight: 700; }
.admin-fields { display: flex; gap: 12px; flex-wrap: wrap; }
.admin-inline { display: flex; flex-direction: column; gap: 2px; font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.admin-inline input { width: 92px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 8px; font: inherit; }
.admin-inline input[type="text"] { width: 190px; text-transform: none; letter-spacing: 0; }
.admin-inline input:focus, .admin-field input:focus { outline: 0; border-color: var(--red-3); }
tr.is-off { opacity: 0.6; }
tr.is-paid { background: #f0faf3; }

.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.85rem; font-weight: 600; }
.switch input { width: 18px; height: 18px; accent-color: #2ecc71; }

.admin-settings { max-width: 560px; }
.admin-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; padding: 4px; border-radius: 10px; }
.admin-field span { font-weight: 600; }
.admin-field input { padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; }
.admin-field small { color: var(--muted); font-size: 0.82rem; }

[data-row].saved, .admin-field.saved { animation: savedflash 0.9s ease; }
@keyframes savedflash { 0% { background: #d4f5e0; } 100% { background: transparent; } }

/* ---------- Customer auth (public site) ---------- */
.auth-slot { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.auth-hi { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.linkish { background: none; border: 0; padding: 0; color: var(--red-3); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.linkish:hover { color: var(--red-4); }

.auth-card {
  max-width: 420px; margin: 40px auto; padding: 36px 30px;
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 18px 50px rgba(126, 18, 18, 0.08); text-align: center;
}
.auth-logo { margin-bottom: 10px; }
.auth-title { font-size: 1.7rem; }
.auth-sub { color: var(--muted); margin: 8px 0 22px; }
.auth-card form { text-align: left; display: flex; flex-direction: column; gap: 14px; }
.auth-card .field { display: flex; flex-direction: column; gap: 5px; }
.auth-card .field span { font-weight: 600; font-size: 0.9rem; }
.auth-card .field input { padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; }
.auth-card .field input:focus { outline: 0; border-color: var(--red-3); }
.auth-card .btn { margin-top: 4px; }
.auth-switch { margin-top: 18px; color: var(--muted); font-size: 0.9rem; }

.pay-asyou { color: var(--muted); margin: 0 0 8px; }
.pay-asyou strong { color: var(--ink); }

/* ---------- My bookings ---------- */
.mb-list { display: flex; flex-direction: column; gap: 12px; margin: 20px 0 26px; }
.mb-row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
}
.mb-main { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.mb-main strong { font-family: var(--font-display); }
.mb-sub { color: var(--muted); font-size: 0.85rem; }
.mb-total { font-family: var(--font-display); font-weight: 700; }
.mb-pill {
  font-size: 0.78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px;
  background: #fdecea; color: var(--red-4); text-transform: uppercase; letter-spacing: 0.03em;
}
.mb-pill.is-paid { background: #e7f8ee; color: #1c9d54; }
.mb-empty { color: var(--muted); text-align: center; padding: 30px 0; }
.mb-more { display: inline-block; }

/* ---------- Lounges ---------- */
.ticket-choose { margin: 10px 0 6px; font-size: 0.82rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.ticket-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ticket-options .ticket-add, .ticket-options .ticket-lounge { margin-top: 0; width: 100%; }
.ticket-lounge {
  margin-top: 8px; width: 100%; padding: 11px; border-radius: 12px;
  border: 1.5px solid var(--red-3); background: #fff; color: var(--red-3);
  font: inherit; font-weight: 700; cursor: pointer;
}
.ticket-lounge:hover { background: #fdecea; }

.lounge-mapwrap { position: relative; max-width: 800px; margin: 0 auto; }
.lounge-map { width: 100%; border-radius: 16px; display: block; background: #1c1013; }
.lounge-dots { position: absolute; inset: 0; }
.lounge-dot {
  position: absolute; transform: translate(-50%, -50%);
  padding: 6px 12px; border-radius: 999px; border: 2px solid #fff;
  font: inherit; font-weight: 700; font-size: 0.85rem; color: #fff;
  cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); white-space: nowrap;
}
.lounge-dot.is-open { background: #22c55e; }
.lounge-dot.is-open:hover { transform: translate(-50%, -50%) scale(1.1); }
.lounge-dot.is-booked { background: #ef4444; cursor: not-allowed; text-decoration: line-through; opacity: 0.9; }

.lounge-detail {
  max-width: 460px; margin: 22px auto 0; background: #fff;
  border: 1px solid var(--line); border-radius: 18px; padding: 24px;
  box-shadow: 0 14px 40px rgba(126, 18, 18, 0.08);
}
.lounge-name { font-family: var(--font-display); font-size: 1.4rem; }
.lounge-meta { color: var(--muted); margin: 6px 0 16px; }
.lounge-detail .field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.lounge-detail .field span { font-weight: 600; font-size: 0.9rem; }
.lounge-detail select, .lounge-detail input {
  padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 11px; font: inherit;
}
.lounge-detail .btn { margin-top: 6px; width: 100%; }

/* ---------- Admin: lounges ---------- */
.admin-lounge-controls { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; margin-bottom: 16px; }
.admin-lounge-controls select, .admin-lounge-controls input { padding: 9px 11px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; }
.admin-lounge-controls input[data-mapimg] { min-width: 240px; }
.admin-map { position: relative; max-width: 640px; margin: 0 0 8px; cursor: crosshair; border-radius: 12px; overflow: hidden; }
.admin-map img { width: 100%; display: block; }
.admin-map-dots { position: absolute; inset: 0; pointer-events: none; }
.admin-dot { position: absolute; width: 20px; height: 20px; border-radius: 50%; transform: translate(-50%, -50%); border: 2px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.5); }
.admin-dot.is-open { background: #22c55e; }
.admin-dot.is-booked { background: #ef4444; }
.admin-dot.is-sel { outline: 3px solid #ffd400; outline-offset: 1px; }
.admin-del { padding: 7px 12px; border: 1.5px solid var(--line); background: #fff; color: var(--red-4); border-radius: 9px; font: inherit; font-weight: 600; cursor: pointer; }
.admin-del:hover { background: #fdecea; }
.admin-phones { margin-top: 6px; font-size: 0.85rem; }
.admin-phones summary { cursor: pointer; color: var(--red-4); font-weight: 600; }
.admin-phone-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.admin-phone-list code { background: #f7ede9; padding: 3px 7px; border-radius: 6px; }

/* ---------- Media uploads (admin) ---------- */
.admin-upload { display: flex; align-items: center; gap: 10px; }
.admin-thumb { width: 54px; height: 40px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.admin-upbtn { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--red-3); color: var(--red-3); background: #fff; border-radius: 10px; font-weight: 600; font-size: 0.85rem; cursor: pointer; white-space: nowrap; }
.admin-upbtn:hover { background: #fdecea; }
.upload-status { font-size: 0.8rem; color: var(--muted); }

/* ---------- Chalet video (public) ---------- */
.chalet-video-btn { margin-top: 10px; padding: 9px 16px; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; font: inherit; font-weight: 600; color: var(--red-4); cursor: pointer; }
.chalet-video-btn:hover { background: #fdecea; }
.chalet-video { margin-top: 12px; }
.video-frame { position: relative; width: 100%; padding-top: 56.25%; border-radius: 12px; overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-out { display: inline-block; margin-top: 8px; }

/* ---------- Party details (age / note / directions) ---------- */
.ticket-age { left: 12px; right: auto; background: var(--ink); color: #fff; }
.ticket-note { margin-top: 8px; font-size: 0.85rem; color: var(--red-4); font-weight: 600; }
.ticket-dir { display: inline-block; margin-top: 8px; font-size: 0.85rem; font-weight: 600; color: var(--red-3); text-decoration: none; }
.ticket-dir:hover { text-decoration: underline; }

/* ---------- Rides upgrade (seater + trip) ---------- */
.rides-seats { display: inline-flex; gap: 6px; }
.seat-tab { padding: 8px 14px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; font: inherit; font-weight: 600; font-size: 0.85rem; color: var(--muted); cursor: pointer; }
.seat-tab.is-active { border-color: var(--red-3); color: #fff; background: var(--red-3); }
.rides-trip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 16px 0; }
.rides-trip .field { display: flex; flex-direction: column; gap: 5px; }
.rides-trip .field span { font-weight: 600; font-size: 0.9rem; }
.rides-trip select, .rides-trip input { padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 11px; font: inherit; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
