@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Token names kept from earlier themes for compatibility — values
     repointed to the current light/teal brand palette. */
  --navy: #0f172a;
  --navy-dark: #0f172a;
  --gold: #0d9488;
  --gold-dark: #0f766e;
  --accent-gradient: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --card: #ffffff;
  --card-solid: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --danger: #dc2626;
  --success: #16a34a;
  --rating: #f59e0b;
  --radius: 14px;
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-card-hover: 0 4px 10px rgba(15, 23, 42, 0.08), 0 16px 36px rgba(15, 23, 42, 0.1);
}

/* Dark mode — an alternate to the light/teal default, not the old
   cyan/indigo "futuristic" theme. The navy header/footer/staff-sidebar
   stay the same dark navy in both modes (a persistent brand band). */
:root[data-theme="dark"] {
  --gold: #2dd4bf;
  --gold-dark: #14b8a6;
  --bg: #0b1120;
  --bg-elevated: #111827;
  --card: #131c2e;
  --card-solid: #131c2e;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.1);
  --danger: #f87171;
  --success: #34d399;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-card-hover: 0 4px 10px rgba(0, 0, 0, 0.35), 0 16px 36px rgba(0, 0, 0, 0.3);
}
:root[data-theme="dark"] .btn-secondary { background: rgba(255, 255, 255, 0.06); color: var(--text); border-color: var(--border); }

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --gold fails WCAG AA contrast (~3.85:1) for body-sized text on the page
   background — --gold-dark (~5.5:1 light, similarly high dark) is the same
   brand hue, just dark enough to read as real link text, not just a tint. */
a { color: var(--gold-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 1000;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0;
}

h1, h2, h3 {
  color: var(--text);
  font-family: 'Poppins', 'Inter', sans-serif;
  letter-spacing: -0.01em;
}

/* Header */
.site-header {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 20px;
}
.logo {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.logo span { color: var(--gold); }
.header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.header-menu {
  display: flex;
  align-items: center;
  gap: 12px 20px;
  justify-content: space-between;
  flex-wrap: wrap;
  min-width: 0;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
}
.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.main-nav a {
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--gold); text-decoration: none; }

/* Toast notifications */
.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 340px;
}
.toast {
  background: var(--card-solid);
  color: var(--text);
  border: 1px solid var(--border);
  border-left: 4px solid var(--muted);
  border-radius: 10px;
  padding: 12px 36px 12px 14px;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  position: relative;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast-visible { opacity: 1; transform: translateX(0); }
.toast-error { border-left-color: var(--danger); }
.toast-success { border-left-color: var(--success); }
.toast-close {
  position: absolute;
  top: 6px;
  right: 6px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 4px;
}
.toast-close:hover { color: var(--text); }
@media (max-width: 480px) {
  .toast-container { left: 16px; right: 16px; max-width: none; }
}

/* Currency selector */
.currency-select {
  /* Without this, browsers in dark mode force their own native dark
     widget colors onto the select/option, clashing with our custom
     colors below and making the text invisible until a hover/focus
     state briefly overrides it. */
  color-scheme: light;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
  cursor: pointer;
}
.currency-select option { color: #10142a; background: #ffffff; }

/* Theme toggle */
.theme-toggle {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
  line-height: 1;
}
.staff-menu .theme-toggle { align-self: flex-start; margin-top: -6px; border-color: rgba(255, 255, 255, 0.3); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.staff-sidebar .nav-toggle { border-color: rgba(255, 255, 255, 0.3); }
.staff-sidebar .nav-toggle span { background: #fff; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #0d9488 150%);
  color: #fff;
  padding: 64px 0 96px;
  text-align: center;
  overflow: hidden;
}
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(13, 148, 136, 0.65) 150%);
}
.hero .container { position: relative; z-index: 1; }

.hero h1 {
  color: #fff;
  font-size: 2.6rem;
  margin-bottom: 8px;
  font-family: 'Poppins', sans-serif;
}
.hero p { color: rgba(255, 255, 255, 0.85); margin-bottom: 30px; }

.search-form {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  max-width: 800px;
  margin: 0 auto -56px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
  position: relative;
  z-index: 2;
}
.search-form .field { flex: 1; min-width: 160px; text-align: left; }
.search-form-compact {
  max-width: none;
  margin: 20px 0;
  flex-wrap: wrap;
}
.search-form-compact input:not([type="radio"]), .search-form-compact select { flex: 1; min-width: 140px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.field[hidden] { display: none; }
.phone-input-group { display: flex; gap: 8px; }
.phone-country-select { flex: 0 0 auto; max-width: 45%; }
.phone-number-input { flex: 1 1 auto; min-width: 0; }
@media (max-width: 480px) {
  .phone-input-group { flex-direction: column; }
  .phone-country-select { max-width: none; }
}

.trip-type-field { flex-basis: 100%; }
.trip-type-options { display: flex; gap: 20px; }
.radio-label { display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: 0.95rem; color: var(--text); }
.radio-label input { width: auto; padding: 0; }
.search-form-compact .trip-type-field { flex-basis: 100%; order: -1; }

/* Airport combobox */
.airport-combobox { position: relative; }
.airport-combobox input[type="text"] { width: 100%; }
.search-form-compact .airport-combobox { flex: 1; min-width: 140px; }
.airport-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 4px 0 0;
  padding: 4px 0;
  max-height: 220px;
  overflow-y: auto;
  list-style: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.airport-suggestions { background: var(--card-solid); }
.airport-suggestions li { padding: 8px 12px; cursor: pointer; font-size: 0.9rem; color: var(--text); }
.airport-suggestions li:hover,
.airport-suggestions li.active { background: var(--bg); }

input, select, textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--bg-elevated);
  color: var(--text);
}
input::placeholder, textarea::placeholder { color: #94a3b8; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}
select option { background: var(--card-solid); color: var(--text); }
input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; }
:root[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.8); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: #fff; box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3); }
.btn-primary:hover { background: var(--gold-dark); box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4); }
.btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-armed { background: #f59e0b !important; color: #1a0505 !important; }
.btn-small { padding: 6px 12px; font-size: 0.85rem; }
.btn-full { width: 100%; }

/* KYC stepper */
.kyc-progress {
  display: flex; list-style: none; padding: 0; margin: 20px 0; gap: 4px;
}
.kyc-progress-step {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center; position: relative;
}
.kyc-progress-step:not(:last-child)::after {
  content: ''; position: absolute; top: 15px; left: 55%; right: -45%;
  height: 2px; background: var(--border);
}
.kyc-progress-step.is-done:not(:last-child)::after { background: var(--gold); }
.kyc-progress-num {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--bg); border: 2px solid var(--border); color: var(--muted); font-weight: 700; font-size: 0.9rem;
  position: relative; z-index: 1;
}
.kyc-progress-step.is-active .kyc-progress-num { border-color: var(--gold); color: var(--gold); background: var(--card); }
.kyc-progress-step.is-done .kyc-progress-num { border-color: var(--gold); background: var(--gold); color: #fff; }
.kyc-progress-label { font-size: 0.78rem; color: var(--muted); }
.kyc-progress-step.is-active .kyc-progress-label { color: var(--text); font-weight: 600; }
.kyc-step { border: none; padding: 0; margin: 0 0 8px; }
.kyc-step legend { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1.1rem; padding: 0; margin-bottom: 12px; color: var(--text); }
.kyc-step[hidden] { display: none; }

/* Shared card treatment */
.flight-card, .job-card, .destination-card, .tour-card, .stat-card,
.form-card, .summary-box, .confirmation-box, .ticket, .data-table,
.highlight-list li, .flight-status-card {
  box-shadow: var(--shadow-card);
}

/* Sections */
.section { padding: 40px 0; }
.narrow { max-width: 640px; }
.center-text { text-align: center; }

.legal-page h2 { font-size: 1.15rem; margin: 34px 0 10px; }
.legal-page h3 { font-size: 1rem; margin: 24px 0 8px; }
.legal-page p, .legal-page ul { font-size: 0.95rem; }
.legal-page > p.muted { margin-top: -8px; margin-bottom: 28px; }

.live-badge {
  display: inline-block;
  background: rgba(52, 211, 153, 0.12);
  color: var(--success);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin: 10px 0;
  border: 1px solid rgba(52, 211, 153, 0.25);
}

/* Results toolbar (sort/filter) */
.results-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.results-toolbar .field { min-width: 160px; margin: 0; }
.results-toolbar label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 4px; }
.results-toolbar select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
}
.results-toolbar .radio-label { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.results-toolbar [data-results-count] { margin-left: auto; font-size: 0.85rem; }

/* Search button loading state */
.btn-loading { opacity: 0.75; cursor: progress; }

.card-rating { color: var(--rating); font-weight: 700; font-size: 0.9rem; margin: 2px 0 6px; }
.card-rating .muted { font-weight: 500; }

/* Tasks */
.task-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-top: 16px;
  box-shadow: var(--shadow-card);
}
.task-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.task-card-header h3 { margin: 0 0 6px; }
.task-card .status-badge { margin-right: 6px; }
.task-video-wrap { margin-top: 14px; max-width: 560px; }
.task-video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.task-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.task-video-done { outline: 3px solid var(--success); outline-offset: 2px; }

/* Reviews & star ratings */
.avg-rating { font-size: 1.15rem; font-weight: 700; color: var(--rating); display: inline-flex; align-items: center; gap: 6px; }
.review-stars { color: var(--rating); letter-spacing: 2px; font-size: 1.05rem; }
.review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.review-card .review-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.review-card .review-name { font-weight: 700; }
.review-card .review-date { font-size: 0.8rem; color: var(--muted); }
.star-rating-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-rating-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-rating-input label {
  font-size: 1.8rem;
  color: var(--border);
  cursor: pointer;
  transition: color 0.15s ease;
}
.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label { color: var(--rating); }
.star-rating-input input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Flight cards */
.flight-list { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.flight-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.flight-card:hover { border-color: var(--gold); box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.flight-route { font-size: 1.1rem; margin-bottom: 6px; font-family: 'Poppins', sans-serif; }
.flight-route .airline { margin-left: 10px; color: var(--muted); font-size: 0.85rem; font-family: 'Inter', sans-serif; }
.flight-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 0.88rem; }
.flight-side { text-align: right; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.price {
  font-size: 1.3rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  color: var(--gold);
}

/* Job cards */
.job-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 20px; }
.job-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.job-card:hover { border-color: var(--gold); box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.job-meta { color: var(--muted); font-size: 0.88rem; margin: 4px 0 10px; }
.back-link { display: inline-block; margin-bottom: 14px; }

/* Destination cards */
.destination-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-top: 20px; }
.destination-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  display: block;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.destination-card:hover { text-decoration: none; border-color: var(--gold); box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.dest-media {
  position: relative;
  height: 140px;
  background: linear-gradient(135deg, var(--gold), var(--navy-dark));
}
.dest-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dest-media-label {
  position: absolute;
  bottom: 8px;
  left: 10px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
}
.dest-body { padding: 14px 18px; }
.dest-hero-photo {
  position: relative;
  border-radius: var(--radius);
  margin-top: 16px;
  min-height: 220px;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.dest-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dest-hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.65));
}
.dest-hero-text { position: relative; z-index: 1; padding: 28px 30px; color: #fff; }
.dest-hero-text h1 { color: #fff; margin: 0 0 6px; }
.dest-hero-text p { color: #eaf2f8; margin: 0; }
.highlight-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.highlight-list li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
}
.highlight-list li::before { content: "\2713  "; color: var(--gold-dark); font-weight: 700; }

/* Tours listing layout with filter sidebar */
.tours-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; margin-top: 20px; align-items: start; }
.filter-sidebar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 90px;
}
.filter-sidebar h3 { margin: 0 0 14px; font-size: 1.05rem; }
.filter-group { margin-bottom: 20px; }
.filter-group > label:first-child { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 8px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 400; margin-bottom: 8px; color: var(--text); cursor: pointer; }
.checkbox-label input { width: auto; }
.price-range-inputs { display: flex; align-items: center; gap: 8px; }
.price-range-inputs input { width: 0; flex: 1; padding: 8px; }
.tours-results .results-toolbar { margin-top: 0; }
@media (max-width: 860px) {
  .tours-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
}

/* Tour cards */
.tour-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 20px; }
.tour-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tour-media { position: relative; height: 130px; background: linear-gradient(135deg, var(--gold-dark), var(--gold)); }
.tour-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tour-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.tour-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.tour-banner { border-radius: var(--radius); overflow: hidden; margin-top: 16px; }
.tour-banner img { width: 100%; height: 320px; object-fit: cover; display: block; }
.includes-list { margin: 16px 0 0; padding-left: 20px; }
.includes-list li { margin-bottom: 6px; }
.section-cta { margin-top: 16px; }

/* Tour detail two-column layout */
.tour-detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; margin-top: 8px; align-items: start; }
.tour-booking-sidebar { position: sticky; top: 90px; }
.tour-booking-card { margin-top: 0; }
.tour-booking-price { font-family: 'Poppins', sans-serif; font-size: 1.7rem; font-weight: 700; color: var(--gold); margin: 0; }
.tour-booking-price .muted { font-size: 0.9rem; font-weight: 500; }
@media (max-width: 860px) {
  .tour-detail-layout { grid-template-columns: 1fr; }
  .tour-booking-sidebar { position: static; }
}

/* Forms / cards */
.form-card, .summary-box, .confirmation-box, .ticket {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 16px;
}
.form-card { display: flex; flex-direction: column; gap: 14px; }
.summary-box p { margin: 4px 0; }
.error-msg {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #b91c1c;
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 12px;
}
:root[data-theme="dark"] .error-msg { color: #fca5a5; }
.info-msg {
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.25);
  color: #0d9488;
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 12px;
}
:root[data-theme="dark"] .info-msg { color: #5eead4; }
.confirmation-box { text-align: center; }
.confirmation-box h1 { margin-top: 0; }
.ticket { text-align: left; margin-top: 20px; }
.ref { font-size: 1.1rem; }
.empty-state { color: var(--muted); margin-top: 20px; }

/* Why choose us */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 28px; }
.feature-item { text-align: center; }
.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 148, 136, 0.1);
  color: var(--gold);
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 700;
}
.feature-item h3 { font-size: 1.05rem; margin: 0 0 6px; }
.feature-item p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 28px; }
.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.testimonial-quote { margin: 10px 0 18px; color: var(--text); }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author strong { display: block; font-size: 0.9rem; }
.testimonial-author p { margin: 0; font-size: 0.8rem; }
.avatar-initials {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Careers */
.careers-hero {
  background: linear-gradient(135deg, #0f172a 0%, #0d9488 150%);
  color: #fff;
  padding: 56px 0;
}
.careers-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.careers-hero h1 { color: #fff; margin: 0 0 8px; }
.careers-hero p { color: rgba(255, 255, 255, 0.85); margin: 0; }
.careers-hero-photo { border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 45px rgba(15, 23, 42, 0.3); }
.careers-hero-photo img { width: 100%; height: 280px; object-fit: cover; display: block; }
@media (max-width: 720px) {
  .careers-hero-inner { grid-template-columns: 1fr; text-align: center; }
}
.careers-cta {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 32px;
  margin: 20px 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.careers-cta h2 { margin: 0 0 4px; font-size: 1.2rem; }
.careers-cta p { margin: 0; color: var(--muted); }

/* Newsletter */
.newsletter-band { background: var(--navy-dark); margin-top: 40px; padding: 40px 0; }
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.newsletter-inner h2 { color: #fff; margin: 0 0 4px; }
.newsletter-inner p { color: #94a3b8; margin: 0; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input { min-width: 240px; }

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: #94a3b8;
  padding: 48px 0 0;
  margin-top: 40px;
}
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { color: #fff; }
.footer-links { font-size: 0.85rem; margin-top: 6px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { color: #fff; font-family: 'Poppins', sans-serif; margin: 0 0 4px; font-size: 0.95rem; }
.footer-col a { font-size: 0.9rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.6; margin: 8px 0 0; }
.footer-social { display: flex; gap: 10px; margin-top: 6px; }
.footer-social a {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: #cbd5e1;
}
.footer-social a svg { width: 16px; height: 16px; }
.footer-social a:hover { background: var(--gold); color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 20px;
  text-align: center;
  font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }
.footer-legal-links { margin-top: 6px !important; }
.footer-legal-links a { color: rgba(255, 255, 255, 0.75); }
.footer-legal-links a:hover { color: #fff; }
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Staff portal layout */
.staff-body { background: var(--bg); }
.staff-layout { display: flex; min-height: 100vh; }
.staff-sidebar {
  width: 240px;
  background: var(--navy-dark);
  color: #fff;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;
}
.staff-sidebar .logo { display: block; color: #fff; }
.staff-sidebar .logo span { color: var(--gold); }
.staff-sidebar-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.staff-menu { display: flex; flex-direction: column; gap: 20px; flex: 1; min-height: 0; }
.staff-role { font-size: 0.85rem; color: #cbd5e1; }
.staff-hours { font-size: 0.85rem; color: #cbd5e1; border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 14px; margin-top: -8px; }
.staff-nav { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.staff-nav a { color: #cbd5e1; padding: 8px 10px; border-radius: 6px; }
.staff-nav a:hover { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }
.staff-content { flex: 1; padding: 32px 40px; overflow-x: auto; }

/* Stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-top: 20px; }
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  color: var(--gold);
}
.stat-label { color: var(--muted); font-size: 0.85rem; }

/* Data tables */
.table-wrap { overflow-x: auto; position: relative; }
/* A right-edge fade that only shows while there's more table to scroll to —
   without it, a table cut off by the viewport edge looks like it simply
   ends there, so a user has no reason to suspect there are more columns. */
.table-wrap::after {
  content: '';
  position: absolute;
  top: 16px;
  right: 0;
  bottom: 0;
  width: 28px;
  pointer-events: none;
  background: linear-gradient(to right, transparent, var(--card));
  opacity: 0;
  transition: opacity 0.15s ease;
}
.table-wrap.is-scrollable::after { opacity: 1; }
.table-wrap.is-scrolled-end::after { opacity: 0; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 16px;
}
.data-table th, .data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.9rem;
}

/* Stacked-card layout for the highest-traffic tables (Staff Accounts,
   Bookings) below ~480px — a shrunk multi-column table is unreadable at
   phone width, so rows become individual cards with inline field labels
   instead. Opt-in via .stack-table so lower-traffic tables are unaffected. */
@media (max-width: 480px) {
  .stack-table.data-table, .stack-table.data-table tbody, .stack-table.data-table tr, .stack-table.data-table td { display: block; width: 100%; }
  .stack-table.data-table thead { display: none; }
  .stack-table.data-table tr { border-bottom: 8px solid var(--bg); }
  .stack-table.data-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    text-align: right;
  }
  .stack-table.data-table td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--muted);
    text-align: left;
  }
  .stack-table.data-table td.actions { justify-content: flex-end; }
  .stack-table.data-table td.actions::before { display: none; }
}

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 18px 0; }
.pagination-status { color: var(--muted); font-size: 0.85rem; }

/* Visually hides an element while keeping it in the accessibility tree —
   used for labels that are redundant for sighted users (an input with an
   obvious placeholder) but still required for screen readers. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.search-box { display: flex; gap: 8px; margin: 14px 0; max-width: 420px; flex-wrap: wrap; }
.search-box input[type="search"] { flex: 1; min-width: 160px; }

.list-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 14px 0; }
.list-toolbar .search-box { margin: 0; }

/* Feature toggle */
.toggle-form { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.toggle-status { font-weight: 600; margin: 0 0 4px; }
.status-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; text-transform: capitalize; border: 1px solid transparent; }
.status-on, .status-landed, .status-active { background: rgba(22, 163, 74, 0.12); color: var(--success); border-color: rgba(22, 163, 74, 0.28); }
.status-off, .status-cancelled, .status-incident { background: rgba(220, 38, 38, 0.1); color: var(--danger); border-color: rgba(220, 38, 38, 0.25); }
.status-scheduled, .status-diverted, .status-unknown { background: var(--bg); color: var(--muted); border-color: var(--border); }

/* Flight status lookup */
.flight-status-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-top: 20px; }
.flight-status-card + .flight-status-card { margin-top: 14px; }
.flight-status-route { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 14px; }
.flight-status-point { flex: 1; min-width: 200px; }
.flight-status-point h4 { margin: 0 0 6px; color: var(--text); }
.flight-status-point p { margin: 2px 0; font-size: 0.9rem; color: var(--muted); }

/* Inline hours-worked editor */
.hours-form { display: flex; gap: 6px; align-items: center; }
.inline-toggle { display: flex; gap: 8px; align-items: center; }
.inline-toggle + .inline-toggle { margin-top: 6px; }
.hours-form input[type="number"] { width: 70px; padding: 6px 8px; }
.data-table th { background: var(--bg); color: var(--text); font-family: 'Poppins', sans-serif; }
.data-table .actions { display: flex; gap: 8px; }
.muted { color: var(--muted); font-size: 0.85rem; }

/* ---------- Animations ---------- */

/* Hero heading entrance */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero h1 { animation: fadeInUp 0.7s ease both; }
.hero p { animation: fadeInUp 0.7s ease 0.1s both; }
.hero .search-form { animation: fadeInUp 0.7s ease 0.2s both; }

/* Nav link underline sweep */
.main-nav a { position: relative; padding-bottom: 2px; }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-gradient);
  transition: right 0.25s ease;
}
.main-nav a:hover::after { right: 0; }

/* Button press feedback */
.btn:active { transform: translateY(0) scale(0.97); }

/* Airport suggestions dropdown entrance */
.airport-suggestions:not([hidden]) { animation: dropdownIn 0.16s ease both; }
@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Live status pulse */
@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.35); }
  50% { box-shadow: 0 0 0 5px rgba(52, 211, 153, 0); }
}
.status-active { animation: statusPulse 2s ease-in-out infinite; }

/* Scroll-reveal for cards and stat tiles */
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.flight-card, .job-card, .destination-card, .tour-card, .stat-card {
  opacity: 0;
}
.flight-card.reveal-visible, .job-card.reveal-visible,
.destination-card.reveal-visible, .tour-card.reveal-visible,
.stat-card.reveal-visible {
  animation: cardReveal 0.6s ease both;
}
.flight-list > *:nth-child(1), .job-list > *:nth-child(1), .destination-grid > *:nth-child(1), .tour-grid > *:nth-child(1), .stat-grid > *:nth-child(1) { animation-delay: 0.02s; }
.flight-list > *:nth-child(2), .job-list > *:nth-child(2), .destination-grid > *:nth-child(2), .tour-grid > *:nth-child(2), .stat-grid > *:nth-child(2) { animation-delay: 0.08s; }
.flight-list > *:nth-child(3), .job-list > *:nth-child(3), .destination-grid > *:nth-child(3), .tour-grid > *:nth-child(3), .stat-grid > *:nth-child(3) { animation-delay: 0.14s; }
.flight-list > *:nth-child(4), .job-list > *:nth-child(4), .destination-grid > *:nth-child(4), .tour-grid > *:nth-child(4), .stat-grid > *:nth-child(4) { animation-delay: 0.2s; }
.flight-list > *:nth-child(5), .job-list > *:nth-child(5), .destination-grid > *:nth-child(5), .tour-grid > *:nth-child(5), .stat-grid > *:nth-child(5) { animation-delay: 0.26s; }
.flight-list > *:nth-child(6), .job-list > *:nth-child(6), .destination-grid > *:nth-child(6), .tour-grid > *:nth-child(6), .stat-grid > *:nth-child(6) { animation-delay: 0.32s; }
.flight-list > *:nth-child(n+7), .job-list > *:nth-child(n+7), .destination-grid > *:nth-child(n+7), .tour-grid > *:nth-child(n+7), .stat-grid > *:nth-child(n+7) { animation-delay: 0.36s; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .flight-card, .job-card, .destination-card, .tour-card, .stat-card { opacity: 1; }
}

@media (max-width: 720px) {
  .staff-layout { flex-direction: column; }
  .staff-sidebar { width: 100%; gap: 12px; }
  .staff-content { padding: 24px; }

  .nav-toggle { display: flex; }
  .header-menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 14px;
  }
  .header-inner.nav-open .header-menu { display: flex; }
  .main-nav { flex-direction: column; align-items: flex-start; width: 100%; gap: 10px; justify-content: flex-start; }
  .header-controls { flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; }
  .staff-menu { display: none; }
  .staff-sidebar.nav-open .staff-menu { display: flex; }
}

/* HR/Ops AI assistant */
.ai-chat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ai-chat-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 50vh;
  min-height: 120px;
  overflow-y: auto;
  padding-right: 4px;
}
.ai-msg {
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 80%;
  white-space: pre-wrap;
  line-height: 1.5;
}
.ai-msg-user {
  align-self: flex-end;
  background: var(--gold);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.ai-msg-assistant {
  align-self: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.ai-msg-system {
  align-self: center;
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.25);
  color: var(--gold-dark);
  font-size: 0.85rem;
  max-width: 100%;
  text-align: center;
}
:root[data-theme="dark"] .ai-msg-system { color: #5eead4; }
.ai-pending-card {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.ai-pending-card p { margin: 0 0 10px; }
.ai-pending-actions { display: flex; gap: 8px; }
.ai-chat-form { display: flex; gap: 10px; align-items: flex-end; }
.ai-chat-form textarea {
  flex: 1;
  resize: vertical;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.ai-reset-form { margin-top: 12px; }
