/* Travoduck – the few styles Tailwind classes don't cover.
   Tailwind itself comes from the CDN (https://cdn.tailwindcss.com) + js/tailwind-config.js */

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  display: flex; flex-direction: column; min-height: 100vh;
  background: #F5F5F8; color: #16142E;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
/* main grows so the footer always sits at the bottom of the screen */
body > main { width: 100%; flex: 1 1 0%; }

/* ---------- Layout helpers ---------- */
.container-x { margin-left: auto; margin-right: auto; max-width: 80rem; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px)  { .container-x { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .container-x { padding-left: 2rem; padding-right: 2rem; } }
.section-title { font-size: 1.25rem; line-height: 1.75rem; font-weight: 800; letter-spacing: -0.025em; }
@media (min-width: 768px) { .section-title { font-size: 1.5rem; line-height: 2rem; } }
.img-fallback { background-image: linear-gradient(to bottom right, #2A2748, #B02E10); }

/* scrollbar-less carousels */
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ---------- Header component: promo strip only on the home page (body.page-home) ---------- */
.page-home .top-strip { display: block; }

/* ---------- Home: search box ---------- */
.field:focus-within { background: #FFF6F2; }
input[type="date"]::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

/* operator marquee */
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee { animation: marquee 30s linear infinite; }
.marquee:hover { animation-play-state: paused; }

/* ---------- Bus list: seat map ---------- */
.seat:focus-visible { outline: 3px solid #FFC2AD; outline-offset: 1px; }
.seat-grid { --seat-w: 32px; --seat-h: 30px; gap: 4px; }
.seat-grid .seat { font-size: 9px; }
@media (min-width: 640px) {
  .seat-grid { --seat-w: 40px; --seat-h: 34px; gap: 6px; }
  .seat-grid .seat { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Legal pages (terms.html, privacy.html) ---------- */
.legal section + section { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid #F0F0F4; }
.legal h2 { font-size: 1.2rem; line-height: 1.6rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: .75rem; }
.legal section > p, .legal section > ul { font-size: .95rem; line-height: 1.7; color: #5B5878; }
.legal section > p + p, .legal section > p + ul, .legal section > ul + p, .legal section > div + p, .legal section > p + div { margin-top: .75rem; }
.legal section > ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: .4rem; }
.legal b { color: #16142E; font-weight: 700; }
.legal a { color: #D63A14; font-weight: 600; }
.legal a:hover { text-decoration: underline; }
/* [placeholder] text the owner still has to fill in */
mark.ph { background: #FFF3C4; color: #7A5A00; padding: 0 .25rem; border-radius: .25rem; font-weight: 600; }


/* ---------- Extra Tailwind utilities used by the newer pages ----------
   (help, contact, terms, privacy, cookies). Kept here so these pages look right
   even with an older compiled Tailwind CSS on the live site. */
.top-24 {
  top: 6rem
}

.-mt-12 {
  margin-top: -3rem
}

.mb-8 {
  margin-bottom: 2rem
}

.inline-block {
  display: inline-block
}

.h-12 {
  height: 3rem
}

.min-w-\[560px\] {
  min-width: 560px
}

.max-w-3xl {
  max-width: 48rem
}

.scroll-mt-24 {
  scroll-margin-top: 6rem
}

.gap-0\.5 {
  gap: 0.125rem
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem
}

.pb-10 {
  padding-bottom: 2.5rem
}

.pb-8 {
  padding-bottom: 2rem
}

.text-violet-600 {
  --tw-text-opacity: 1;
  color: rgb(124 58 237 / var(--tw-text-opacity, 1))
}

.hover\:-translate-y-0\.5:hover {
  --tw-translate-y: -0.125rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))
}

.hover\:shadow-card:hover {
  --tw-shadow: 0 24px 60px -24px rgba(22,20,46,.35);
  --tw-shadow-colored: 0 24px 60px -24px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)
}

@media (min-width: 640px) {
  .sm\:row-span-2 {
    grid-row: span 2 / span 2
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .md\:p-7 {
    padding: 1.75rem
  }

  .md\:p-8 {
    padding: 2rem
  }

  .md\:py-10 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem
  }

  .md\:pt-10 {
    padding-top: 2.5rem
  }

  .md\:text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-\[260px_minmax\(0\2c 1fr\)\] {
    grid-template-columns: 260px minmax(0,1fr)
  }

  .lg\:grid-cols-\[minmax\(0\2c 1fr\)_400px\] {
    grid-template-columns: minmax(0,1fr) 400px
  }
}

.\[\&_a\]\:font-semibold a {
  font-weight: 600
}

.\[\&_a\]\:text-brand-600 a {
  --tw-text-opacity: 1;
  color: rgb(214 58 20 / var(--tw-text-opacity, 1))
}
