/* ---------------------------------------------------------------------------
   TravelHub public site.
   Brand matches the Flutter app: indigo, saffron, Outfit. Light only for now -
   a public marketing surface has less call for a dark mode than the dashboard
   an operator stares at all day.
   --------------------------------------------------------------------------- */

:root {
  --indigo:        #3A29C4;
  --indigo-dark:   #2A1D93;
  --saffron:       #FF8A00;
  --emerald:       #00A07A;
  --rose:          #FF4D6D;

  --page:          #FBFBF9;
  --surface:       #FFFFFF;
  --ink:           #16151D;
  --ink-soft:      #55535F;
  --ink-faint:     #8A8794;
  --line:          rgba(22, 21, 29, 0.10);

  --radius:        16px;
  --radius-sm:     10px;
  --shadow:        0 1px 2px rgba(22,21,29,.04), 0 10px 30px -18px rgba(22,21,29,.25);
  --font:          "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--indigo); }
a:hover { color: var(--indigo-dark); }

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
h2 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; }
h3 { font-size: 17px; font-weight: 600; }

.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.block { margin: 44px auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* --- masthead ------------------------------------------------------------ */

.masthead { background: var(--surface); border-bottom: 1px solid var(--line); }
.masthead__inner {
  display: flex; align-items: center; gap: 24px;
  min-height: 68px; flex-wrap: wrap; padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--indigo);
  color: #fff; display: grid; place-items: center; font-weight: 800;
}
.brand__name { font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }

.masthead__search { display: flex; gap: 8px; flex: 1 1 320px; }
.masthead__search input {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px; font: inherit;
  font-size: 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--page);
}
.masthead__search input:focus-visible {
  outline: 2px solid var(--indigo); outline-offset: 1px;
}
.masthead__search button {
  height: 44px; padding: 0 20px; font: inherit; font-weight: 600;
  border: 0; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--indigo); color: #fff;
}

/* --- hero ---------------------------------------------------------------- */

.hero {
  background: var(--indigo); color: #fff;
  padding: 56px 0 64px; border-radius: 0 0 28px 28px;
}
.hero__eyebrow {
  margin: 0 0 12px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; color: rgba(255,255,255,.72);
}
.hero h1 { color: #fff; }
.hero h1 span { color: var(--saffron); }
.hero__lede {
  margin: 18px 0 0; max-width: 56ch; font-size: 17px; color: rgba(255,255,255,.86);
}
.block .hero__lede { color: var(--ink-soft); }

/* --- cards --------------------------------------------------------------- */

.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.card__link { text-decoration: none; color: inherit; display: block; height: 100%; }
.card__link:hover .card__title { color: var(--indigo); }
.card__cover {
  aspect-ratio: 16 / 9; background: #EFEDFB;
  display: grid; place-items: center; overflow: hidden;
}
.card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__cover-fallback { color: var(--indigo); font-weight: 600; }
.card__body { padding: 16px; }
.card__title { margin: 0 0 4px; }
.card__meta { margin: 0; font-size: 14px; color: var(--ink-soft); }
.card__price { margin: 12px 0 0; display: flex; align-items: baseline; gap: 6px; }
.card__price strong { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.card__price span { font-size: 13px; color: var(--ink-faint); }

/* External referral rows are deliberately not identical to our own stock:
   a traveller should be able to tell at a glance that clicking leaves. */
.card--external { background: #FCFBF7; border-style: dashed; }
.card__source {
  margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--saffron);
}
.card__out { font-weight: 400; }

.facts {
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px;
  margin: 10px 0 0; padding: 0;
}
.facts li {
  font-size: 12.5px; color: var(--ink-soft);
  background: rgba(22,21,29,.05); border-radius: 999px; padding: 3px 10px;
}
.facts--large li { font-size: 14px; padding: 5px 12px; }

.pill {
  display: inline-block; margin: 10px 0 0; padding: 3px 10px;
  border-radius: 999px; font-size: 12.5px; font-weight: 600;
}
.pill--low  { background: #FFF2E0; color: #8A4B00; }
.pill--gone { background: #FFE9ED; color: #8A1430; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 16px 0 0; }
.chips a {
  display: inline-flex; align-items: baseline; gap: 7px;
  padding: 9px 16px; border-radius: 999px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  font-weight: 500;
}
.chips a:hover { border-color: var(--indigo); color: var(--indigo); }
.chips span { font-size: 12.5px; color: var(--ink-faint); }

/* --- tour page ----------------------------------------------------------- */

.breadcrumbs { padding: 18px 0 0; font-size: 14px; color: var(--ink-faint); }
.breadcrumbs a { text-decoration: none; }

.tour__head { margin: 18px 0 28px; }
.tour__lede { margin: 12px 0 0; font-size: 18px; color: var(--ink-soft); max-width: 62ch; }
.tour__grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.tour__main .block:first-child { margin-top: 0; }
.tour__aside { position: sticky; top: 20px; }

.booking {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px;
}
.booking__price { margin: 0; display: flex; flex-direction: column; }
.booking__price strong { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.booking__price span { font-size: 13px; color: var(--ink-faint); }
.booking__seats { margin: 10px 0 16px; font-size: 14px; color: var(--ink-soft); }
.booking__operator { margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); }

.btn {
  display: block; text-align: center; padding: 13px 18px; font-weight: 600;
  border-radius: var(--radius-sm); text-decoration: none;
  border: 1px solid var(--line); color: var(--ink); background: var(--surface);
}
.btn--primary { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.btn--primary:hover { background: var(--indigo-dark); color: #fff; }

.places { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.places li {
  display: inline-flex; gap: 6px; align-items: baseline;
  background: #EFEDFB; border-radius: 999px; padding: 6px 14px; font-size: 14px;
}
.places span { color: var(--ink-faint); font-size: 12.5px; }

.itinerary { margin: 0; padding: 0; list-style: none; }
.itinerary li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.itinerary li:last-child { border-bottom: 0; }
.itinerary p { margin: 4px 0 0; color: var(--ink-soft); font-size: 15px; }

.plain, .ticks, .crosses { margin: 0; padding: 0; list-style: none; }
.plain li, .ticks li, .crosses li { padding: 5px 0 5px 26px; position: relative; }
.ticks li::before   { content: "✓"; position: absolute; left: 0; color: var(--emerald); font-weight: 700; }
.crosses li::before { content: "–"; position: absolute; left: 0; color: var(--ink-faint); font-weight: 700; }

/* --- misc ---------------------------------------------------------------- */

.count { margin: 6px 0 20px; color: var(--ink-faint); font-size: 14.5px; }
.empty { padding: 40px 0; color: var(--ink-soft); }
.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 32px 0; font-size: 15px; }

.footer { margin-top: 64px; padding: 36px 0; background: var(--surface); border-top: 1px solid var(--line); }
.footer__brand { margin: 0; font-weight: 700; }
.footer__inner p { margin: 4px 0; color: var(--ink-soft); font-size: 14.5px; }
.footer__links { display: flex; gap: 18px; margin-top: 14px; font-size: 14.5px; }

@media (max-width: 860px) {
  .tour__grid { grid-template-columns: 1fr; }
  .tour__aside { position: static; }
  .hero { padding: 40px 0 46px; }
}
