/* ============================================================
   Adventures Page Styles
   Map, timeline, D3 tooltips, year pills, stats, CTA
   ============================================================ */

    /* =========================================
       Adventures Page — Map & Timeline
       ========================================= */

    .adventures-intro {
      text-align: center;
      max-width: 680px;
      margin: 0 auto 2.5rem;
    }

    .adventures-intro p {
      font-family: var(--font-serif);
      font-size: 1.1rem;
      line-height: 1.8;
      color: var(--ink);
      opacity: 0.85;
    }

    /* --- Map Container --- */
    .map-wrapper {
      position: relative;
      width: 100%;
      max-width: 1100px;
      margin: 0 auto 1.5rem;
      background: var(--cream);
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    }

    .map-wrapper svg {
      display: block;
      width: 100%;
      height: auto;
    }

    /* --- Map Controls --- */
    .map-controls {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 2rem;
      flex-wrap: wrap;
    }

    .map-controls .view-toggle {
      display: flex;
      background: var(--white);
      border-radius: 8px;
      overflow: hidden;
      border: 1px solid var(--border);
      margin-right: 1rem;
    }

    .map-controls .view-toggle button {
      padding: 0.5rem 1rem;
      font-size: 0.78rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      background: transparent;
      border: none;
      cursor: pointer;
      color: var(--ink);
      opacity: 0.5;
      transition: all 0.2s;
    }

    .map-controls .view-toggle button.active {
      background: var(--coral);
      color: white;
      opacity: 1;
    }

    .year-pills {
      display: flex;
      gap: 0.35rem;
      flex-wrap: wrap;
      justify-content: center;
    }

    .year-pill {
      padding: 0.45rem 1.1rem;
      font-family: var(--font-sans);
      font-size: 0.88rem;
      font-weight: 500;
      letter-spacing: 0;
      border-radius: 20px;
      cursor: pointer;
      border: 2px solid transparent;
      transition: all 0.2s;
      color: white;
    }

    .year-pill:hover {
      transform: translateY(-1px);
      box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }

    .year-pill.active {
      border-color: var(--ink);
      box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }

    .year-pill-all {
      background: var(--ink);
      color: white;
    }

    /* --- Map Legend --- */
    .map-legend {
      display: flex;
      justify-content: center;
      gap: 1.5rem;
      margin-top: 2rem;
      margin-bottom: 0;
      flex-wrap: wrap;
    }

    .legend-item {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      font-weight: 500;
      color: var(--ink);
      opacity: 0.7;
    }

    .legend-swatch {
      width: 14px;
      height: 14px;
      border-radius: 3px;
    }

    .legend-line {
      width: 20px;
      height: 3px;
      border-radius: 2px;
      opacity: 0.6;
    }

    /* --- Tooltip --- */
    .map-tooltip {
      position: absolute;
      pointer-events: none;
      background: white;
      border-radius: 10px;
      padding: 0.75rem 1rem;
      box-shadow: 0 4px 20px rgba(0,0,0,0.15);
      font-size: 0.82rem;
      line-height: 1.5;
      z-index: 10;
      max-width: 260px;
      opacity: 0;
      transition: opacity 0.15s;
    }

    .map-tooltip.visible {
      opacity: 1;
    }

    .map-tooltip h4 {
      margin: 0 0 0.25rem;
      font-size: 0.9rem;
      color: var(--ink);
    }

    .map-tooltip .tt-year {
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      font-weight: 600;
      margin-bottom: 0.35rem;
    }

    .map-tooltip .tt-blogs {
      margin-top: 0.35rem;
      padding-top: 0.35rem;
      border-top: 1px solid var(--border);
    }

    .map-tooltip .tt-blogs a {
      display: block;
      color: var(--coral);
      font-weight: 500;
      font-size: 0.78rem;
      text-decoration: none;
    }

    .map-tooltip .tt-blogs a:hover {
      text-decoration: underline;
    }

    /* --- Stats Banner --- */
    .adventure-stats-wrap {
      background: var(--cream);
      padding: 3rem 0;
      margin-bottom: 3rem;
    }

    .adventure-stats {
      display: flex;
      justify-content: center;
      gap: 3rem;
      max-width: 1100px;
      margin: 0 auto;
      padding: 0 1.5rem;
      flex-wrap: wrap;
    }

    .adventure-stat {
      text-align: center;
    }

    .adventure-stat .stat-number {
      font-size: 2.5rem;
      font-weight: 700;
      color: var(--coral);
      line-height: 1;
      display: block;
    }

    .adventure-stat .stat-label {
      font-size: 0.72rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      font-weight: 500;
      color: var(--ink);
      opacity: 0.6;
      margin-top: 0.35rem;
      display: block;
    }

    /* --- Year Timeline --- */
    .timeline-section {
      max-width: 800px;
      margin: 0 auto;
    }

    .timeline-section h2 {
      text-align: center;
      margin-bottom: 2.5rem;
    }

    .timeline-year {
      position: relative;
      padding: 0 0 2.5rem 3rem;
      margin-left: 1rem;
    }

    .timeline-year::before {
      content: '';
      position: absolute;
      left: -2px;
      top: 0;
      bottom: -1px;
      width: 3px;
      background: var(--border);
    }

    .timeline-year:first-child::before {
      top: 28px;
    }

    .timeline-year:last-child {
      padding-bottom: 0;
    }

    .timeline-year:last-child::before {
      bottom: auto;
      height: 28px;
    }

    .timeline-year-dot {
      position: absolute;
      left: -10px;
      top: 20px;
      width: 17px;
      height: 17px;
      border-radius: 50%;
      border: 3px solid white;
      box-shadow: 0 0 0 2px var(--border);
    }

    .timeline-year-header {
      display: flex;
      align-items: baseline;
      gap: 0.75rem;
      margin-bottom: 0.75rem;
      flex-wrap: wrap;
    }

    .timeline-year-num {
      font-family: var(--font-sans);
      font-size: clamp(1.5rem, 3.5vw, 2.25rem);
      font-weight: 500;
      line-height: 1.2;
      color: var(--ink);
    }

    .timeline-year-emdash {
      font-family: var(--font-sans);
      font-size: clamp(1.5rem, 3.5vw, 2.25rem);
      font-weight: 300;
      color: var(--coral);
    }

    .timeline-year-title {
      font-family: var(--font-display);
      font-size: 3rem;
      font-weight: normal;
      line-height: 1;
      color: var(--ink);
    }

    .timeline-year-body {
      font-family: var(--font-serif);
      font-size: 0.95rem;
      line-height: 1.75;
      color: var(--ink);
      opacity: 0.8;
    }

    .timeline-year-body .tl-states,
    .timeline-year-body .tl-countries {
      margin-top: 0.5rem;
    }

    .timeline-tag {
      display: inline-block;
      padding: 0.15rem 0.5rem;
      border-radius: 4px;
      font-family: var(--font-sans);
      font-size: 0.7rem;
      font-weight: 600;
      letter-spacing: 0.04em;
      margin: 0.15rem 0.1rem;
      color: white;
    }

    .timeline-blog-links {
      margin-top: 0.75rem;
    }

    .timeline-blog-links a {
      display: inline-block;
      color: var(--coral);
      font-family: var(--font-sans);
      font-size: 0.82rem;
      font-weight: 500;
      text-decoration: none;
      margin-right: 1rem;
    }

    .timeline-blog-links a:hover {
      text-decoration: underline;
    }

    /* --- CTA Section --- */
    .adventures-cta-wrap {
      background: #fff url('/images/home/airstream-tile.jpg') center/cover no-repeat;
      margin-top: 3rem;
      padding: 3rem 0 2rem;
    }

    .adventures-cta {
      text-align: center;
      max-width: 1100px;
      margin: 0 auto;
      padding: 0 1.5rem;
    }

    .adventures-cta h2 {
      margin-bottom: 1rem;
    }

    .adventures-cta p {
      font-family: var(--font-serif);
      font-size: 1.05rem;
      color: var(--ink);
      opacity: 0.8;
      max-width: 520px;
      margin: 0 auto 1.5rem;
    }

    /* --- Responsive --- */
    @media (max-width: 768px) {
      .map-controls {
        flex-direction: column;
        gap: 0.75rem;
      }

      .map-controls .view-toggle {
        margin-right: 0;
      }

      .adventure-stats {
        gap: 1.5rem;
      }

      .adventure-stat .stat-number {
        font-size: 2rem;
      }

      .timeline-year {
        padding-left: 2rem;
      }

      .timeline-year-num {
        font-size: 1.5rem;
      }
    }

    @media (max-width: 480px) {
      .adventure-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
        justify-items: center;
      }
    }

    /* --- D3 Styling --- */
    .state-path, .country-path, .province-path {
      transition: opacity 0.2s;
    }

    .state-path:hover, .country-path:hover, .province-path:hover {
      opacity: 1 !important;
      stroke-width: 1.5px;
      cursor: pointer;
    }

    .route-line {
      fill: none;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .stop-dot {
      cursor: pointer;
    }

    .stop-dot:hover {
      r: 5;
    }

    .location-marker {
      cursor: pointer;
    }
