*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --bg: #FAF9F6;
    --surface: #FFFFFF;
    --border: #E8E5DF;
    --border-strong: #D4CFCA;
    --text-primary: #1C1917;
    --text-secondary: #78716C;
    --text-muted: #A8A29E;

    --c1-bg: #EDE9FE;   /* violet */
    --c1-accent: #7C3AED;
    --c1-text: #2E1065;
    --c1-pill: #DDD6FE;

    --c2-bg: #DCFCE7;   /* emerald */
    --c2-accent: #059669;
    --c2-text: #064E3B;
    --c2-pill: #A7F3D0;

    --c3-bg: #FEE2E2;   /* rose */
    --c3-accent: #DC2626;
    --c3-text: #7F1D1D;
    --c3-pill: #FECACA;

    --c4-bg: #FEF3C7;   /* amber */
    --c4-accent: #D97706;
    --c4-text: #78350F;
    --c4-pill: #FDE68A;

    --c5-bg: #E0F2FE;   /* sky */
    --c5-accent: #0284C7;
    --c5-text: #0C4A6E;
    --c5-pill: #BAE6FD;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
  }

  /* ── Section wrapper ── */
  .trips-section {
    padding: 4rem 0;
    background-color:#f1f5f7;
  }

  .trips-header {
    padding: 0 3rem 2.5rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
  }

  /* .trips-header-left {} */

  .trips-eyebrow {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
  }

  .trips-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.15;
  }

  .trips-title em {
    font-style: italic;
    color: var(--text-secondary);
  }

  .trips-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 0.6rem;
    font-weight: 300;
  }

  .drag-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 300;
    white-space: nowrap;
    padding-bottom: 4px;
  }
  .drag-hint svg { width: 16px; height: 16px; flex-shrink: 0; }

  /* ── Scroll track ── */
  .timeline-scroll {
    overflow-x: auto;
    overflow-y: visible;
    cursor: grab;
    user-select: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2.5rem 0 3rem;
  }
  .timeline-scroll::-webkit-scrollbar { display: none; }
  .timeline-scroll.is-grabbing { cursor: grabbing; }

  .timeline-track {
    display: flex;
    align-items: center;
    padding: 0 3rem;
    min-width: max-content;
  }

  /* ── Node ── */
  .tl-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
  }

  .card-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .card-slot.above { padding-bottom: 0; }
  .card-slot.below { padding-top: 0; }

  .stem {
    width: 2px;
    height: 28px;
    background: linear-gradient(to bottom, var(--stem-from), var(--stem-to));
    flex-shrink: 0;
  }

  /* ── Date pill ── */
  .date-pill {
    position: relative;
    z-index: 2;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
    border: 1.5px solid var(--pill-border);
    background: var(--pill-bg);
    color: var(--pill-text);
    box-shadow: 0 1px 0 rgba(0,0,0,0.04);
  }

  /* ── Connector ── */
  .tl-connector {
    width: 72px;
    flex-shrink: 0;
    height: 2px;
    display: flex;
    align-items: center;
    position: relative;
  }
  .tl-connector::before {
    content: '';
    position: absolute;
    inset: 0;
    border-top: 1.5px dashed var(--border-strong);
  }
  .tl-connector-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--border-strong);
    flex-shrink: 0;
    position: absolute;
  }
  .tl-connector-dot.left { left: -3px; }
  .tl-connector-dot.right { right: -3px; }

  /* ── Trip card ── */
  .trip-card {
    width: 230px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .trip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.09);
  }

  /* ── Carousel ── */
  .carousel {
    position: relative;
    overflow: hidden;
    height: 155px;
    background: #F0EDE8;
  }
  .carousel-slides {
    display: flex;
    height: 100%;
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
  }
  .carousel-slide {
    width: 230px;
    height: 155px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
  }

  /* Placeholder when no real image */
  .slide-ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
  }
  .slide-ph svg { width: 32px; height: 32px; opacity: 0.35; }
  .slide-ph span { font-size: 11px; font-weight: 400; }

  /* slide count badge */
  .slide-count-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    letter-spacing: 0.04em;
    pointer-events: none;
  }

  /* carousel arrow */
  .c-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 3;
  }
  .carousel:hover .c-arrow { opacity: 1; }
  .c-arrow.prev { left: 8px; }
  .c-arrow.next { right: 8px; }
  .c-arrow svg { width: 14px; height: 14px; }

  /* dots */
  .carousel-dots {
    display: flex;
    gap: 5px;
    justify-content: center;
    padding: 10px 0 0;
  }
  .c-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: var(--border-strong);
    padding: 0;
    transition: background 0.2s, transform 0.2s, width 0.25s;
    flex-shrink: 0;
  }
  .c-dot.active {
    width: 16px;
    border-radius: 3px;
  }

  /* card meta */
  .card-meta {
    padding: 11px 14px 5px;
  }
  .card-place {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
  }
  .card-location {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 3px;
    font-weight: 300;
  }

  .gallery-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 8px 14px 14px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    font-family: var(--font-body);
  }
  .gallery-btn:hover { opacity: 0.82; transform: scale(1.03); }
  .gallery-btn:active { transform: scale(0.97); }
  .gallery-btn svg { width: 11px; height: 11px; }

  /* ── Lightbox ── */
  .lb-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(15, 12, 10, 0.96);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .lb-overlay.open { opacity: 1; pointer-events: all; }

  .lb-header {
    position: absolute;
    top: 0; left: 0; right: 0;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .lb-trip-label {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 500;
  }
  .lb-trip-sub {
    color: rgba(255,255,255,0.45);
    font-size: 12px;
    font-weight: 300;
    margin-top: 2px;
  }
  .lb-close-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
    line-height: 1;
  }
  .lb-close-btn:hover { background: rgba(255,255,255,0.18); }

  .lb-stage {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    width: 90vw;
    max-width: 780px;
    position: relative;
  }

  .lb-img-frame {
    flex: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #1a1714;
    aspect-ratio: 1 / 1;
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  .lb-img-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg);
    transition: opacity 0.22s ease;
  }
  .lb-img-ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.2);
  }
  .lb-img-ph svg { width: 52px; height: 52px; }
  .lb-img-ph span { font-size: 13px; font-weight: 300; }

  .lb-nav-btn {
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.8);
    font-size: 22px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.15s;
    line-height: 1;
    padding: 0;
  }
  .lb-nav-btn:hover { background: rgba(255,255,255,0.15); transform: scale(1.06); }
  .lb-nav-btn:active { transform: scale(0.95); }

  .lb-footer {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 0 1.5rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
  }

  .lb-caption-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90vw;
    max-width: 780px;
    padding: 0 46px + 1.25rem;
  }
  .lb-photo-name {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 300;
  }
  .lb-counter {
    color: rgba(255,255,255,0.35);
    font-size: 12px;
  }

  .lb-thumbnails {
    display: flex;
    gap: 7px;
    max-width: 90vw;
    overflow-x: auto;
    padding: 4px 2px 6px;
    scrollbar-width: none;
  }
  .lb-thumbnails::-webkit-scrollbar { display: none; }

  .lb-thumb {
    width: 60px; height: 42px;
    border-radius: 7px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    background: #2a2723;
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.2s, transform 0.15s;
    position: relative;
  }
  .lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .lb-thumb-ph svg { width: 18px; height: 18px; opacity: 0.22; }
  .lb-thumb.active-thumb { border-color: rgba(255,255,255,0.7); transform: scale(1.06); }
  .lb-thumb:hover:not(.active-thumb) { border-color: rgba(255,255,255,0.3); }

  /* ── Responsive ── */
  @media (max-width: 600px) {
    .trips-header { flex-direction: column; align-items: flex-start; padding: 0 1.5rem 2rem; }
    .timeline-track { padding: 0 1.5rem; }
    .lb-stage { gap: 0.75rem; }
    .lb-nav-btn { width: 38px; height: 38px; font-size: 18px; }
  }