/* ======================================================
   RUTASTOUR - RutasTour
   Design System CSS
   Inspired by Stitch design: Electric Blue + Sunset Orange
   ====================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

/* ── DESIGN TOKENS ──────────────────────────────────── */
:root {
  /* Colours */
  --primary: #003ec7;
  --primary-container: #0052ff;
  --on-primary: #ffffff;
  --secondary: #ab3600;
  --secondary-container: #fe5e1e;
  --on-secondary: #ffffff;
  --tertiary: #005471;
  --tertiary-container: #006e92;
  --on-tertiary: #ffffff;

  --background: #f7f9fb;
  --surface: #f7f9fb;
  --surface-bright: #f7f9fb;
  --surface-low: #f2f4f6;
  --surface-container: #eceef0;
  --surface-high: #e6e8ea;
  --surface-highest: #e0e3e5;
  --surface-lowest: #ffffff;
  --surface-dim: #d8dadc;

  --on-background: #191c1e;
  --on-surface: #191c1e;
  --on-surface-variant: #434656;
  --outline: #737688;
  --outline-variant: #c3c5d9;

  --error: #ba1a1a;
  --error-container: #ffdad6;
  --on-error: #ffffff;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 62, 199, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 62, 199, 0.10);
  --shadow-lg: 0 20px 50px rgba(0, 62, 199, 0.12);
  --shadow-card: 0 4px 16px rgba(0, 62, 199, 0.08);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 200ms;
}

/* ── RESET & BASE ────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--on-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
select,
textarea {
  font-family: inherit;
}

/* ── TYPOGRAPHY ──────────────────────────────────────── */
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.headline-lg {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.headline-md {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.005em;
}

.title-lg {
  font-size: 1.125rem;
  font-weight: 600;
}

.title-md {
  font-size: 1rem;
  font-weight: 600;
}

.body-lg {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
}

.body-md {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.6;
}

.label-lg {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.label-md {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.label-sm {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ── LAYOUT ──────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-sm {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

/* Grid helpers */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* Flex helpers */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gap-1 {
  gap: 0.5rem;
}

.gap-2 {
  gap: 1rem;
}

.gap-3 {
  gap: 1.5rem;
}

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  min-height: 48px;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 2px 8px rgba(0, 62, 199, 0.25);
}

.btn-primary:hover {
  background: var(--primary-container);
  box-shadow: 0 8px 24px rgba(0, 82, 255, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--on-secondary);
  box-shadow: 0 2px 8px rgba(171, 54, 0, 0.25);
}

.btn-secondary:hover {
  background: var(--secondary-container);
  box-shadow: 0 8px 24px rgba(254, 94, 30, 0.35);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  min-height: 36px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  min-height: 56px;
  border-radius: var(--radius-lg);
}

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* ── NAVIGATION ──────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(247, 249, 251, 0.8);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid rgba(195, 197, 217, 0.3);
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--secondary);
  -webkit-text-fill-color: var(--secondary);
}

/* ── LOGO IMAGE ─────────────────────────────────────── */
.logo-img-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 42px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  /* Slight brightness boost so it pops on the light navbar bg */
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
}

.logo-img-footer {
  /* On the dark footer background, make it slightly brighter */
  filter: brightness(1.15) drop-shadow(0 1px 4px rgba(0, 0, 0, 0.25));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--on-surface-variant);
  transition: all var(--duration) var(--ease);
}

.nav-link:hover {
  background: var(--surface-container);
  color: var(--on-surface);
}

.nav-link.active {
  background: var(--surface-high);
  color: var(--primary);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--duration) var(--ease);
}

.hamburger:hover {
  background: var(--surface-container);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--on-surface);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.5rem 1.5rem;
  background: rgba(247, 249, 251, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--outline-variant);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu .nav-link {
  width: 100%;
  padding: 0.75rem 1rem;
}

.mobile-menu .btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

/* Page offset for fixed navbar */
.page-top {
  padding-top: 68px;
}

/* ── HERO SECTION ────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 90vh;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 60%, #1a6aff 100%);
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 5rem 0;
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: white;
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
}

.hero-title {
  color: white;
  margin-bottom: 1.25rem;
}

.hero-title .accent {
  color: #ffd166;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.80);
  font-size: 1.125rem;
  max-width: 580px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.70);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}

.hero-image-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-image-wrapper {
  width: min(480px, 90%);
  aspect-ratio: 4/3;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
  position: relative;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.25rem;
  color: white;
}

/* ── CARDS ───────────────────────────────────────────── */
.card {
  background: var(--surface-lowest);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

.card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.card-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--surface-container);
  color: var(--on-surface-variant);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.card-tag.primary {
  background: rgba(0, 62, 199, 0.1);
  color: var(--primary);
}

.card-tag.secondary {
  background: rgba(171, 54, 0, 0.1);
  color: var(--secondary);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-text {
  font-size: 0.875rem;
  color: var(--on-surface-variant);
  line-height: 1.6;
}

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--outline-variant);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-price {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--primary);
}

.card-price span {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--on-surface-variant);
}

/* Destination card with overlay */
.dest-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
}

.dest-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.dest-card:hover img {
  transform: scale(1.05);
}

.dest-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.15) 50%, transparent 100%);
  transition: background 0.3s var(--ease);
}

.dest-card:hover .dest-card-overlay {
  background: linear-gradient(to top, rgba(0, 62, 199, 0.80) 0%, rgba(0, 62, 199, 0.20) 50%, transparent 100%);
}

.dest-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
}

.dest-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
}

.dest-card-sub {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.80);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dest-card-price {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffd166;
}

/* ── SECTION HEADERS ─────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: rgba(0, 62, 199, 0.08);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--on-surface-variant);
}

/* ── FORMS ───────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--on-surface-variant);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--surface-container);
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: var(--on-surface);
  outline: none;
  border-bottom: 2px solid transparent;
  transition: all var(--duration) var(--ease);
}

.form-control:focus {
  background: var(--surface-high);
  border-bottom-color: var(--primary);
}

.form-control::placeholder {
  color: var(--outline);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--outline);
  margin-top: 0.375rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ── BADGES / CHIPS ──────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.badge-primary {
  background: rgba(0, 62, 199, 0.12);
  color: var(--primary);
}

.badge-success {
  background: rgba(0, 120, 80, 0.12);
  color: #007850;
}

.badge-warning {
  background: rgba(200, 130, 0, 0.12);
  color: #b87000;
}

.badge-error {
  background: rgba(186, 26, 26, 0.12);
  color: var(--error);
}

.badge-neutral {
  background: var(--surface-container);
  color: var(--on-surface-variant);
}

.badge-dot::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ── DATA TABLE ──────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  background: var(--surface-container);
  border-bottom: 2px solid var(--outline-variant);
}

.data-table td {
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--surface-high);
}

.data-table tr:hover td {
  background: var(--surface-low);
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* ── ADMIN SIDEBAR ───────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 0px);
}

.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--on-surface);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 500;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 1.5rem 1.5rem 1rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-section {
  padding: 1rem 0.75rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 1rem;
  margin: 0.125rem 0.75rem;
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all var(--duration) var(--ease);
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.sidebar-link.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 62, 199, 0.35);
}

.sidebar-link .material-icons {
  font-size: 1.25rem;
}

.sidebar-bottom {
  margin-top: auto;
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-content {
  margin-left: 260px;
  flex: 1;
  min-height: 100vh;
  background: var(--surface-low);
}

.admin-header {
  background: var(--surface-lowest);
  border-bottom: 1px solid var(--outline-variant);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-body {
  padding: 2rem;
}

.stat-card {
  background: var(--surface-lowest);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid transparent;
  transition: transform var(--duration) var(--ease);
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-card.primary {
  border-color: var(--primary);
}

.stat-card.secondary {
  border-color: var(--secondary);
}

.stat-card.tertiary {
  border-color: var(--tertiary);
}

.stat-card.success {
  border-color: #007850;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--on-surface);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--on-surface-variant);
  font-weight: 500;
  margin-top: 0.25rem;
}

.stat-delta {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.stat-delta.up {
  color: #007850;
}

.stat-delta.down {
  color: var(--error);
}

.panel {
  background: var(--surface-lowest);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.panel-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--outline-variant);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── STEPS / PROGRESS ────────────────────────────────── */
.steps {
  display: flex;
  align-items: center;
  gap: 0;
}

.step-item {
  display: flex;
  align-items: center;
  flex: 1;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all var(--duration) var(--ease);
}

.step-circle.done {
  background: var(--primary);
  color: white;
}

.step-circle.active {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.step-circle.pending {
  background: var(--surface-container);
  color: var(--on-surface-variant);
}

.step-label {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-top: 0.5rem;
  white-space: nowrap;
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--outline-variant);
  margin: 0 0.5rem;
}

.step-line.done {
  background: var(--primary);
}

/* ── SEAT MAP ────────────────────────────────────────── */
.seat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.seat {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.seat.available {
  background: var(--surface-container);
  color: var(--on-surface-variant);
}

.seat.available:hover {
  background: rgba(0, 62, 199, 0.15);
  color: var(--primary);
  transform: scale(1.05);
}

.seat.selected {
  background: var(--primary);
  color: white;
}

.seat.taken {
  background: var(--surface-highest);
  color: var(--outline);
  cursor: not-allowed;
}

.seat.aisle {
  background: transparent;
  cursor: default;
}

/* ── UPLOAD ZONE ─────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--outline-variant);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  transition: all var(--duration) var(--ease);
  cursor: pointer;
}

.upload-zone:hover {
  border-color: var(--primary);
  background: rgba(0, 62, 199, 0.03);
}

.upload-icon {
  font-size: 3rem;
  color: var(--outline);
  margin-bottom: 1rem;
}

/* ── FOOTER ──────────────────────────────────────────── */
.footer {
  background: var(--on-surface);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  font-size: 1.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 0.75rem;
  max-width: 280px;
}

.footer-col h4 {
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--duration) var(--ease);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  transition: all var(--duration) var(--ease);
}

.social-link:hover {
  background: var(--primary);
  color: white;
}

/* ── SEARCH BAR ──────────────────────────────────────── */
.search-bar {
  background: var(--surface-lowest);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem 0.75rem 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  max-width: 740px;
}

.search-field {
  flex: 1;
  padding: 0.5rem 1rem;
  border-right: 1px solid var(--outline-variant);
  min-width: 160px;
}

.search-field:last-of-type {
  border-right: none;
}

.search-field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  margin-bottom: 0.2rem;
}

.search-field input,
.search-field select {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  font-size: 0.9375rem;
  color: var(--on-surface);
  font-family: var(--font-body);
}

/* ── TOAST / NOTIFICATION ────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  background: var(--on-surface);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s var(--ease);
  max-width: 380px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── UTILITY CLASSES ─────────────────────────────────── */
.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--secondary);
}

.text-tertiary {
  color: var(--tertiary);
}

.text-muted {
  color: var(--on-surface-variant);
}

.text-white {
  color: white;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.bg-primary {
  background: var(--primary);
}

.bg-surface {
  background: var(--surface);
}

.bg-surface-low {
  background: var(--surface-low);
}

.bg-container {
  background: var(--surface-container);
}

.bg-white {
  background: white;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.p-1 {
  padding: 0.5rem;
}

.p-2 {
  padding: 1rem;
}

.p-3 {
  padding: 1.5rem;
}

.gap-sm {
  gap: 0.5rem;
}

.gap-md {
  gap: 1rem;
}

.gap-lg {
  gap: 1.5rem;
}

.rounded {
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-xl {
  border-radius: var(--radius-xl);
}

.shadow-sm {
  box-shadow: var(--shadow-sm);
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.w-full {
  width: 100%;
}

.overflow-hidden {
  overflow: hidden;
}

.relative {
  position: relative;
}

.d-none {
  display: none;
}

/* ── ANIMATIONS ──────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s var(--ease) both;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-image-col {
    display: none;
  }
}

@media (max-width: 768px) {

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .nav-links,
  .nav-actions .btn {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .admin-layout {
    display: block;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s var(--ease);
    width: 100%;
    max-width: 300px;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .admin-content {
    margin-left: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .search-bar {
    flex-direction: column;
    gap: 0.5rem;
  }

  .search-field {
    border-right: none;
    border-bottom: 1px solid var(--outline-variant);
    padding: 0.5rem 0;
  }

  .search-field:last-of-type {
    border-bottom: none;
  }

  .steps {
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .btn-lg {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── CUSTOM SCROLLBAR ────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--surface-container);
}

::-webkit-scrollbar-thumb {
  background: var(--outline-variant);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--outline);
}

/* ── SELECTION ───────────────────────────────────────── */
::selection {
  background: rgba(0, 62, 199, 0.2);
  color: var(--primary);
}

/* ── JOURNEY TRACKER (signature component) ───────────── */
.journey-track {
  position: relative;
  padding-left: 2rem;
}

.journey-track::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(0, 84, 113, 0.2);
}

.journey-item {
  position: relative;
  margin-bottom: 2rem;
}

.journey-item::before {
  content: '';
  position: absolute;
  left: -1.75rem;
  top: 0.25rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid white;
  box-shadow: 0 0 0 3px rgba(0, 62, 199, 0.2);
}