:root {
      --gold: #C19A6B;
      --dark: #1A0F08;
      --light: #F8F5F0;
      --gray: #555;
      --yellow: #ffcc00;
    }

    /* -------------------------------------------------
   STICKY NAVBAR
   ------------------------------------------------- */
    .navbar {
      position: sticky;           /* Sticks to top */
      top: 0;                      /* Stick to very top */
      left: 0;
      right: 0;
      background: rgba(0, 0, 0, 0.85);  /* Dark semi-transparent bg */
      backdrop-filter: blur(10px);      /* Frosted glass effect */
      -webkit-backdrop-filter: blur(10px);
      z-index: 1000;               /* Above all content */
      padding: 1rem 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      transition: all 0.3s ease;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    /* Anchor offset for sticky navbar */
    section {
      scroll-margin-top: 100px; /* Must be >= max navbar height */
    }

    /* Or target specific sections */
    #routes,
    #register,
    #contact {
      scroll-margin-top: 100px;
    }

    /* Ensure body has no top margin pushing content under navbar */
    body {
      margin: 0;
      padding: 0;
    }

    #hero {
      margin-top: 80px;  /* match your navbar height */
    }

    /* Mobile: Stack vertically if needed */
    @media (max-width: 768px) {
      .navbar {
        flex-direction: column;
        padding: 1rem;
        text-align: center;
      }
      .nav-links {
        margin-top: 0.5rem;
      }
      .nav-links li {
        margin: 0.5rem 0;
      }
    }

    /* -------------------------------------------------
   NAV REGISTER BUTTON (appears after hero)
   ------------------------------------------------- */
    .nav-register-btn {
      display: none;                    /* Hidden by default */
      background: var(--yellow);
      color: #000;
      padding: 0.5rem 1.25rem;
      border-radius: 6px;
      font-weight: bold;
      font-size: 0.9rem;
      text-decoration: none;
      white-space: nowrap;
      transition: all 0.25s ease;
      box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    }

    .nav-register-btn:hover {
      background: #e6b800;
      transform: translateY(-1px);
      box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }

    /* Show when .show-register class is added */
    .navbar.show-register .nav-register-btn {
      display: inline-block;
    }

    /* Mobile: Stack below links */
    @media (max-width: 768px) {
      .nav-register-btn {
        margin-top: 0.75rem;
        width: 100%;
        text-align: center;
      }
      .navbar.show-register {
        flex-direction: column;
      }
    }

    body {
      font-family: 'Inter', sans-serif;
      background-color: #fff;
      color: #333;
    }

    h1, h2, h3, h4, .navbar-brand {
      font-family: 'Bebas Neue', cursive;
      letter-spacing: 1.5px;
      text-transform: uppercase;
    }

    .navbar {
      background-color: var(--dark);
    }

    /* Video Hero */
    .hero {
      position: relative;
      height: 80vh;
      min-height: 500px;
      overflow: hidden;
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
    }

    .hero video {
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 100%;
      object-fit: cover;
      z-index: -1;
    }

    .hero::after {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.4);
      z-index: 0;
    }

    .hero-content {
      position: relative;
      z-index: 1;
      max-width: 650px;
      padding: 20px;
    }

    .btn-cta {
      background-color: var(--yellow);
      box-shadow: 0 2px 6px rgba(0,0,0,0.2);
      color: black;
      font-weight: 600;
      padding: 12px 28px;
      font-size: 1rem;
      text-transform: uppercase;
      letter-spacing: 1px;
      border: none;
    }

    .btn-cta:hover {
      background: #e6b800;
      color: #000;
      transform: translateY(-1px);
      box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }

    #routes {
      padding: 100px 0;    
    }


    #centralMontana .video-col  {
        padding: 0 50px 50px 50px;
    }

    .badge-first {
      background-color: var(--gold);
      color: var(--dark);
      font-size: 0.8rem;
      padding: 6px 12px;
      border-radius: 20px;
      font-weight: bold;
    }

    .section-title {
      font-size: 2.5rem;
      margin-bottom: 1.5rem;
    }

    .timeline-list {
      list-style: none;
      padding-left: 0;
    }

    .timeline-list li {
      margin-bottom: 1rem;
      font-size: 1.1rem;
    }

    .vendor-logo {
      max-height: 120px;
      margin: 40px;
    }

    .faq-accordion .accordion-button {
      font-weight: 600;
    }

    .footer {
      background-color: var(--dark);
      color: white;
      padding: 40px 0;
    }

    .footer a, .footer a:hover, .footer a:visited {
        color: #fff;
    }

    @media (max-width: 768px) {
      .hero h1 { font-size: 2.5rem; }
      .hero { height: 60vh; }
    }

    /* Parallax Background Section */
    .parallax-bridge {
      background-image: url('../img/parallax-bg.jpg');
    }

    .parallax-sky {
      background-image: url('../img/lcgc-002.jpg');
    }

    .parallax-section {
      position: relative;
       /* Replace with your image */
      background-attachment: fixed;
      background-position: center;
      background-repeat: no-repeat;
      background-size: cover;
      min-height: 600px;
      padding: 120px 0;
      overflow: hidden;
    }

    .parallax-section::before {
      /* content: '';
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      /*background: linear-gradient(to bottom, rgba(26, 15, 8, 0.7), rgba(26, 15, 8, 0.5));*/
      z-index: 0;
    }

    .parallax-section > .container {
      position: relative;
      z-index: 1;
    }

    .parallax-section .column-content {
      padding: 100px;
    }

    /* Mobile Fix: Disable parallax on small screens */
    @media (max-width: 768px) {
      .parallax-section {
        background-attachment: scroll;
        min-height: 500px;
      }
    }

    /* ==== SCROLL REVEAL – BIG & REVERSIBLE ==== */
    .reveal {
      opacity: 0;
      transform: translateX(-80px) scale(0.9);
      transition: opacity 0.9s cubic-bezier(0.23, 1, 0.32, 1),
                  transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
    }
    .reveal.right { transform: translateX(80px) scale(0.9); }

    .reveal.active {
      opacity: 1;
      transform: translateX(0) scale(1);
    }

    /* Optional: stagger children */
    .reveal-stagger > * {
      transition-delay: calc(var(--i) * 0.12s);
    }

    /* Make it pop even more */
    .reveal {
      filter: blur(4px);
    }
    .reveal.active {
      filter: blur(0);
    }

    /* -------------------------------------------------
   Hero scroll indicator
   ------------------------------------------------- */
    .hero-scroll-indicator {
      position: absolute;
      left: 50%;
      bottom: 0rem;               /* distance from bottom of hero */
      transform: translateX(-50%);
      cursor: pointer;
      animation: blink 1.6s infinite;
      z-index: 10;
    }

    .hero-scroll-indicator .chevron-down {
      width: 6rem;                /* size of the arrow */
      height: 6rem;
      color: #fff;                /* change if your hero bg is dark */
      transition: color 0.2s ease;
    }

    .hero-scroll-indicator:hover .chevron-down {
      color: #ffcc00;             /* optional hover accent */
    }

    /* Blink animation */
    @keyframes blink {
      0%, 100% { opacity: 0.4; }
      50%      { opacity: 1; }
    }

    /* Mobile tweak */
    @media (max-width: 640px) {
      .hero-scroll-indicator { bottom: 1.5rem; }
      .hero-scroll-indicator .chevron-down { width: 3rem; height: 3rem; }
    }

    /* -------------------------------------------------
   ROUTES CARD HOVER ANIMATIONS
   ------------------------------------------------- */
    .rout-card:hover {
      cursor: pointer;
    }

    /* Base card enhancements */
    .routes-container .card {
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      position: relative;
      overflow: hidden;
      cursor: pointer;
    }

    /* Lift + Shadow on Hover */
    .routes-container .card:hover {
      transform: translateY(-12px);
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25) !important;
    }

    /* Gold glow for dark/light cards */
    .card.bg-dark:hover,
    .card.bg-light:hover {
      box-shadow: 0 20px 40px rgba(255, 204, 0, 0.2) !important;
    }

    /* Brown card (Lewis) – lighten on hover */
    .card[style*="background:#C19A6B"]:hover {
      filter: brightness(1.05);
      box-shadow: 0 20px 40px rgba(193, 154, 107, 0.3) !important;
    }

    /* Title pulse + scale */
    .card-title {
      transition: all 0.3s ease;
      display: inline-block;
    }
    .card:hover .card-title {
      transform: scale(1.08);
      text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }

    /* Gold text stays vibrant */
    .text-gold {
      background: linear-gradient(90deg, #ffcc00, #ffd700);
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      transition: transform 0.3s ease;
    }
    .card:hover .text-gold {
      transform: scale(1.1);
    }

    /* Button animation */
    .btn-cta {
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
      z-index: 1;
    }
    .btn-cta::before {
      content: '';
      position: absolute;
      top: 0; left: -100%;
      width: 100%; height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
      transition: left 0.6s ease;
      z-index: -1;
    }
    .btn-cta:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }
    .btn-cta:hover::before {
      left: 100%;
    }

    /* Dark card (Clark) – gold overlay fade */
    .card.bg-dark::after {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background: linear-gradient(135deg, rgba(255,204,0,0.1), transparent);
      opacity: 0;
      transition: opacity 0.4s ease;
      pointer-events: none;
    }
    .card.bg-dark:hover::after {
      opacity: 1;
    }

    /* Light card (Sacagawea) – gold border pulse */
    .card.bg-light:hover {
      border: 2px solid #ffcc00 !important;
      animation: borderPulse 1.5s infinite;
    }
    @keyframes borderPulse {
      0%, 100% { border-color: #ffcc00; }
      50% { border-color: #ffd700; box-shadow: 0 0 15px rgba(255,204,0,0.4); }
    }

    /* Mobile: Reduce motion */
    @media (max-width: 768px) {
      .card:hover {
        transform: translateY(-6px);
      }
      .card-title:hover { transform: scale(1.05); }
      .text-gold:hover { transform: scale(1.05); }
    }

    /* -------------------------------------------------
   SLIDE-IN ROUTE PANELS
   ------------------------------------------------- */
    .route-panels {
      position: relative;
      margin-top: 3rem;
    }

    .route-panel {
      position: fixed;
      top: 0;
      width: 60vw;
      max-width: 90vw;
      height: 100vh;
      background: #fff;
      box-shadow: 0 0 40px rgba(0,0,0,0.3);
      z-index: 1050;
      overflow-y: auto;
      transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      padding: 2rem;
      display: flex;
      flex-direction: column;
    }

    /* Slide directions */
    .panel-slide-right  { right: 0; transform: translateX(100%); }   /* from right */
    .panel-slide-left   { left: 0;  transform: translateX(-100%); }  /* from left */
    .panel-slide-bottom { left: 20%; transform: translateX(-20%) translateY(100%); } /* from bottom */

    /* Active = visible */
    .route-panel.active {
      transform: translateX(0) translateY(0) !important;
    }

    /* Header */
    .panel-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1.5rem;
      border-bottom: 1px solid #eee;
      padding-bottom: 1rem;
    }
    .panel-header h3 {
      margin: 0;
      color: #333;
    }

    /* Close button */
    .btn-close-panel {
      background: none;
      border: none;
      font-size: 2rem;
      color: #999;
      cursor: pointer;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .btn-close-panel:hover {
      color: #000;
    }

    /* Body */
    .panel-body p, .panel-body ul {
      color: #555;
      line-height: 1.7;
    }
    .panel-body ul {
      padding-left: 1.2rem;
    }

    /* Overlay (darkens background) */
    .panel-overlay {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.6);
      backdrop-filter: blur(4px);
      z-index: 1040;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.4s ease;
    }
    .panel-overlay.active {
      opacity: 1;
      pointer-events: all;
    }

    /* Mobile: Full width, from bottom */
    @media (max-width: 768px) {
      .route-panel {
        width: 100%;
        max-width: 100%;
        left: 0 !important;
        transform: translateY(100%);
      }
      .panel-slide-left, .panel-slide-right { transform: translateY(100%); }
    }

    .navbar-brand img {
      height: clamp(75px, 11vw, 120px) !important;
      width: auto;
    }

    /* 1. Fix the sliding route panels */
    .route-panel {
      width: 90% !important;        /* override the 60vw */
      max-width: 1200px !important; /* reasonable max */
      left: 50% !important;
      right: auto !important;
      transform: translateX(-50%) translateY(-100%) !important; /* center horizontally */
      box-sizing: border-box;       /* padding no longer adds extra width */
    }

    .route-panel.active {
      transform: translateX(-50%) translateY(0) !important;
    }

    /* Mobile: full width from bottom (already good) */
    @media (max-width: 768px) {
      .route-panel {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        transform: translateY(100%) !important;
      }
      .route-panel.active {
        transform: translateY(0) !important;
      }
    }

    /* 2. Fix RideWithGPS iframes – the modern responsive way */
    .route-panel iframe {
      width: 100% !important;
      height: 600px !important;   /* or whatever height you want */
      min-width: 0 !important;    /* overrides the 1px hack */
      border: none;
    }

    /* 3. Safety net – prevent any image from overflowing */
    img {
      max-width: 100%;
      height: auto;
      display: block;
    }

    /* 4. Optional but nice – container-fluid should never overflow */
    .container, .container-fluid {
      overflow-x: hidden;
    }

    /* Expedition Facts Tiles */
    /* 5 columns on xl screens */
    @media (min-width: 1200px) {
      .col-xl-2_4 { flex: 0 0 20%; max-width: 20%; }
    }

    /* Fixed 300px height + fade overlay */
    .fact-card {
      height: 300px;
      transition: transform 0.3s ease;
    }
    .fact-card:hover { transform: translateY(-4px); }

    .fact-overlay {
      position: absolute;
      inset: 0;
      background: rgba(0,0,0,0);
      transition: background 0.45s ease;
    }
    .fact-overlay p {
      opacity: 0;
      transform: translateY(15px);
      transition: all 0.45s ease;
      font-size: 1rem;
      line-height: 1.5;
    }

    /* Hover / tap */
    .fact-card:hover .fact-overlay,
    .fact-card:active .fact-overlay {
      background: rgba(15, 35, 20, 0.94);
    }
    .fact-card:hover p,
    .fact-card:active p {
      opacity: 1;
      transform: translateY(0);
    }