/* BusesIndia core design system — extracted critical CSS (cacheable)
   Saffron/orange theme adapted from busesindia design system */

    :root {
      --color-primary-light: #FFF3E6;
      --color-primary-rgb: 255, 153, 51;
      --color-blue-dark: #072C68;
      --color-blue-light: #E7F0FF;
      --color-bg: #F8FAFC;
      --color-surface: #FFFFFF;
      --color-surface-2: #F1F5F9;
      --color-border: #E2E8F0;
      --color-border-light: #F1F5F9;
      --color-text: #0F172A;
      --color-text-secondary: #475569;
      --color-text-muted: #94A3B8;
      --font-heading: 'Poppins', -apple-system, sans-serif;
      --font-body: 'Inter', -apple-system, sans-serif;
      --text-xs: .75rem;
      --text-sm: .875rem;
      --text-base: 1rem;
      --text-lg: 1.125rem;
      --text-xl: 1.25rem;
      --text-2xl: 1.5rem;
      --text-3xl: 1.875rem;
      --text-4xl: 2.25rem;
      --space-2: .5rem;
      --space-3: .75rem;
      --space-4: 1rem;
      --space-5: 1.25rem;
      --space-6: 1.5rem;
      --space-8: 2rem;
      --space-10: 2.5rem;
      --radius-sm: 6px;
      --radius-md: 10px;
      --radius-lg: 16px;
      --radius-pill: 999px;
      --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
      --shadow-md: 0 4px 16px rgba(0, 0, 0, .08);
      --shadow-lg: 0 10px 40px rgba(0, 0, 0, .10);
      --shadow-xl: 0 20px 60px rgba(0, 0, 0, .12);
      --shadow-green: 0 4px 20px rgba(255, 153, 51, .25);
      --transition-fast: 150ms cubic-bezier(.4, 0, .2, 1);
      --transition-base: 250ms cubic-bezier(.4, 0, .2, 1);
      --z-dropdown: 100;
      --z-sticky: 200;
      --z-overlay: 300;
      --z-modal: 400;
      --z-toast: 500;
      /* Hero Section */

      --hero-title: #FFFFFF;
      --hero-subtitle: rgba(255, 255, 255, 0.85);
      --hero-brand-bg: linear-gradient(135deg, var(--color-primary), var(--color-blue));
    }

    [data-theme="dark"] {
      --color-bg: #0D1117;
      --color-surface: #161B22;
      --color-surface-2: #21262D;
      --color-border: #30363D;
      --color-border-light: #21262D;
      --color-text: #E6EDF3;
      --color-text-secondary: #8B949E;
      --color-text-muted: #484F58;
      --shadow-sm: 0 1px 3px rgba(0, 0, 0, .3);
      --shadow-md: 0 4px 16px rgba(0, 0, 0, .4);
      --shadow-lg: 0 10px 40px rgba(0, 0, 0, .5);
      --color-primary-light: rgba(255, 153, 51, 0.15);
      --hero-bg: linear-gradient(135deg, #E57A00 0%, #0D1117 100%);
      --hero-title: var(--color-text);
      --hero-brand-bg: linear-gradient(135deg, rgba(255, 153, 51, 0.2), rgba(10, 61, 145, 0.2));
      color-scheme: dark
    }

    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      -webkit-tap-highlight-color: transparent
    }

    /* Theme-safe defaults for form fields: any input a component forgets to
       style inherits the theme instead of the browser's white chrome in dark
       mode. Low specificity — component classes and inline styles still win. */
    input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="range"]),
    select,
    textarea {
      background-color: var(--color-surface);
      color: var(--color-text);
      border-color: var(--color-border);
    }
    select option {
      background: var(--color-surface);
      color: var(--color-text);
    }

    html {
      font-size: 16px;
      -webkit-text-size-adjust: 100%;
    }

    @media (min-width:993px) {
      html {
        scroll-behavior: smooth
      }
    }

    body {
      font-family: var(--font-body);
      color: var(--color-text);
      background: var(--color-bg);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
      font-family: var(--font-heading);
      font-weight: 700;
      line-height: 1.25;
      color: var(--color-text)
    }

    h1 {
      font-size: var(--text-4xl);
      font-weight: 800
    }

    h2 {
      font-size: var(--text-3xl);
      font-weight: 700
    }

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

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

    button {
      cursor: pointer;
      font-family: inherit;
      border: none;
      touch-action: manipulation
    }

    .container {
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 var(--space-6)
    }

    /* ─── Navbar ─────────────────────────────────────────────── */
    .navbar {
      position: sticky;
      top: 0;
      z-index: var(--z-sticky);
      background: #111827;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      box-shadow: var(--shadow-md);
      transition: all var(--transition-base)
    }

    .navbar__inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 60px;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 var(--space-4)
    }

    .navbar__logo {
      font-family: var(--font-heading);
      display: inline-flex;
      align-items: center;
      font-size: 1.25rem
    }

    .navbar__actions {
      display: flex;
      align-items: center;
      gap: var(--space-3)
    }

    .navbar__mobile {
      position: fixed;
      inset: 0 0 0 auto;
      transform: translateX(100%);
      z-index: var(--z-overlay);
      display: flex;
      visibility: hidden;
      transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s
    }

    .navbar__mobile--open {
      transform: translateX(0) !important;
      visibility: visible !important
    }

    .navbar__overlay {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.5);
      backdrop-filter: blur(4px);
      z-index: calc(var(--z-overlay) + 5);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease
    }

    .navbar__overlay--open {
      opacity: 1 !important;
      pointer-events: auto !important
    }

    /* ─── Hero (busesindia gradient style) ────────────────────── */
    .hero {
      background: var(--hero-bg);
      position: relative;
      overflow: hidden;
      padding: 3.5rem 0 5.5rem;
      color: #fff;
      border-bottom: none;
    }

    .hero__wave {
      display: none;
    }

    .hero__content {
      position: relative;
      z-index: 3;
      text-align: center;
      color: #fff;
      width: 100%
    }

    .hero__title {
      font-size: clamp(1.8rem, 5vw, 3rem);
      font-weight: 900;
      letter-spacing: -1px;
      line-height: 1.15;
      margin-bottom: 0.75rem;
      color: #fff;
    }

    .hero__title span {
      color: var(--color-primary);
    }

    .hero__subtitle {
      font-size: clamp(0.9rem, 2vw, 1.1rem);
      color: rgba(255, 255, 255, 0.85);
      max-width: 800px;
      margin: 0 auto 2rem;
      line-height: 1.6
    }

    .hero__label {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(255, 255, 255, 0.15);
      border: 1px solid rgba(255, 255, 255, 0.3);
      backdrop-filter: blur(10px);
      padding: 6px 16px;
      border-radius: 999px;
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.5px;
      color: #fff;
      margin-bottom: 1.25rem
    }

    .section-label {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 16px;
      background: linear-gradient(135deg, rgba(255, 153, 51, 0.1), rgba(229, 122, 0, 0.1));
      border-radius: 999px;
      font-size: 0.75rem;
      font-weight: 800;
      color: var(--color-primary);
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 1.25rem;
      border: 1px solid rgba(255, 153, 51, 0.2);
    }

    [data-theme="dark"] .section-label {
      background: rgba(255, 153, 51, 0.15);
      border-color: rgba(255, 153, 51, 0.3);
      color: #ffb366;
    }

    @media(min-width:640px) {
      .navbar__inner { padding: 0 var(--space-5); height: 70px }
      .hero { padding: 3rem 0 4rem }
      .hero__label { padding: var(--space-1) var(--space-4); font-size: var(--text-sm); margin-bottom: var(--space-5) }
      .hero__subtitle { margin-bottom: var(--space-6) }
    }

    @media(min-width:768px) {
      .navbar__inner {
        padding: 0 var(--space-6);
        height: 70px
      }

      .container {
        padding: 0 var(--space-6)
      }

      .hero {
        padding: 4rem 0 5rem
      }

      .hero__title {
        font-size: 3.5rem;
        margin-bottom: var(--space-4)
      }

      .hero__subtitle {
        font-size: var(--text-lg);
        margin-bottom: var(--space-6)
      }

      h1 { font-size: var(--text-4xl) }
      h2 { font-size: var(--text-3xl) }
    }

    @media(max-width:480px) {
      .navbar__inner {
        padding: 0 var(--space-3)
      }

      .navbar__logo {
        font-size: 1rem
      }

      h1 {
        font-size: clamp(1.5rem, 4vw, 2rem)
      }
    }

    /* Prevent Google Ads from causing horizontal overflow */
    ins.adsbygoogle,
    .google-auto-placed {
      max-width: 100% !important;
      overflow-x: clip !important;
      box-sizing: border-box !important;
    }

    ins.adsbygoogle iframe,
    .google-auto-placed iframe {
      max-width: 100% !important;
    }

/* ============================================================
   iOS focus-zoom fix: Safari auto-zooms (and stays zoomed) when
   a focused input/select/textarea has font-size < 16px, causing
   horizontal scrolling. Force 16px on touch-width screens.
   ============================================================ */
@media (max-width: 992px) {
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea,
  .ts-control,
  .ts-control input,
  .ts-dropdown,
  .ts-dropdown .option {
    font-size: 16px !important;
  }
}

/* ============================================================
   Breadcrumbs
   ============================================================ */
.breadcrumbs {
  padding: 12px 0;
  margin-bottom: 24px;
  background: transparent;
}
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
}
.breadcrumbs__item {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}
.breadcrumbs__link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 700;
  transition: opacity 0.2s ease;
}
.breadcrumbs__link:hover {
  opacity: 0.8;
  text-decoration: underline;
}
.breadcrumbs__link--current {
  color: var(--color-text-secondary);
  font-weight: 500;
  pointer-events: none;
}
.breadcrumbs__separator {
  margin-left: 8px;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

/* Hero Breadcrumbs (Dark background contrast) */
.breadcrumbs--hero .breadcrumbs__list {
  justify-content: center;
}
.breadcrumbs--hero .breadcrumbs__item {
  color: rgba(255, 255, 255, 0.85);
}
.breadcrumbs--hero .breadcrumbs__link {
  color: #ffffff;
  font-weight: 600;
}
.breadcrumbs--hero .breadcrumbs__link:hover {
  opacity: 0.9;
  text-decoration: underline;
}
.breadcrumbs--hero .breadcrumbs__link--current {
  color: rgba(255, 255, 255, 0.7);
}
.breadcrumbs--hero .breadcrumbs__separator {
  color: rgba(255, 255, 255, 0.4);
}

