/* ============================================================
   Shared trip-page styles for mslice.me adventures
   Used by: belgium-netherlands, three-state-bike-tour, gap-to-home
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #f0ede8; --bg-alt: #e8e4de; --bg-card: #ffffff; --dark: #1e2420;
  --green: #2d6a4f; --green-dark: #1e4a35; --green-icon-bg: #eef5f1;
  --orange: #c1622a; --orange-light: #d4845a;
  --text: #374140; --text-muted: #7a7a7a; --border: #e0dbd4;
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; }

/* NAV (top, fixed) */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; display: flex; justify-content: space-between; align-items: center; padding: 1rem 2.5rem; background: rgba(30,36,32,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.08); }
.nav-logo { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: #fff; text-decoration: none; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: 0.82rem; font-weight: 500; color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }

/* HERO */
.hero { min-height: 56vh; height: 56vh; margin-top: 62px; position: relative; overflow: hidden; display: flex; align-items: flex-end; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 50%; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.72) 100%); }
.hero-gradient { background: linear-gradient(150deg, #1e4a35 0%, #2d6a4f 52%, #c1622a 135%); }
.hero-gradient::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.hero-content { position: relative; z-index: 1; padding: 3rem 3rem 3.5rem; max-width: 900px; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--orange); color: #fff; font-size: 0.7rem; font-weight: 600; padding: 0.35rem 0.9rem; border-radius: 50px; margin-bottom: 1rem; }
.hero-badge.ghost { background: rgba(0,0,0,0.28); border: 1px solid rgba(255,255,255,0.25); }
.hero-flags { font-size: 1.1rem; margin-right: 0.3rem; }
.hero-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 900; color: #fff; line-height: 1.1; margin-bottom: 0.75rem; }
.hero-sub { font-size: 1rem; color: rgba(255,255,255,0.82); line-height: 1.6; max-width: 600px; }

/* STATS BAR */
.stats-bar { background: var(--green-dark); padding: 1.5rem 3rem; }
.stats-bar-inner { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.bar-stat { text-align: center; }
.bar-stat-icon { font-size: 1.1rem; opacity: 0.7; margin-bottom: 0.25rem; }
.bar-stat-num { font-family: 'Playfair Display', serif; font-size: 1.7rem; font-weight: 700; color: #fff; display: block; line-height: 1; }
.bar-stat-label { font-size: 0.66rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.3rem; }

/* BODY */
.body-content { max-width: 900px; margin: 0 auto; padding: 4rem 2rem; }
.narrative-title { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: var(--dark); margin-bottom: 1rem; }
.narrative-body { font-size: 0.97rem; line-height: 1.82; color: var(--text); margin-bottom: 1rem; }
.narrative-body a, .day-body a, .map-caption a { color: var(--green); }
.section-divider { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.progress-note { background: var(--bg-alt); border-left: 3px solid var(--orange); border-radius: 0 10px 10px 0; padding: 0.9rem 1.2rem; font-size: 0.85rem; color: var(--text); line-height: 1.6; margin-top: 1.5rem; }

/* ROUTE MAP */
.map-section { margin-bottom: 1rem; }
.map-section-title { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--dark); margin-bottom: 1rem; }
.map-embed { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); height: 420px; background: var(--bg-alt); }
.map-embed iframe { width: 100%; height: 100%; border: none; }
.map-caption { font-size: 0.74rem; color: var(--text-muted); font-style: italic; margin-top: 0.6rem; }

/* STICKY DAY NAV (contained pill toolbar) */
.day-nav { position: sticky; top: 70px; z-index: 150; display: flex; gap: 0.4rem; align-items: center; padding: 0.55rem 0.7rem; margin-bottom: 2rem; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: 50px; overflow-x: auto; box-shadow: 0 6px 20px rgba(0,0,0,0.06); scrollbar-width: none; }
.day-nav::-webkit-scrollbar { height: 0; display: none; }
.day-nav-label { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); padding: 0 0.4rem 0 0.5rem; flex-shrink: 0; }
.day-nav-chip { font-size: 0.74rem; font-weight: 500; padding: 0.35rem 0.85rem; border-radius: 50px; color: var(--text-muted); text-decoration: none; white-space: nowrap; flex-shrink: 0; transition: color 0.18s, background 0.18s; }
.day-nav-chip:hover { color: var(--green); background: var(--green-icon-bg); }
.day-nav-chip.active { background: var(--green); color: #fff; }

/* DAY SECTIONS */
.day-section-title { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; color: var(--dark); margin-bottom: 0.75rem; }
.day-section-sub { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.day-panel { margin-bottom: 3.5rem; scroll-margin-top: 130px; }
/* day-content: story first, gallery second (regardless of DOM order) */
.day-content { display: flex; flex-direction: column; }
.day-story { order: 1; min-width: 0; }
.day-photos-sidebar { order: 2; min-width: 0; margin-top: 1rem; }
.day-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.day-header-left { min-width: 0; }
.day-header-right { display: flex; align-items: flex-start; gap: 0.6rem; flex-shrink: 0; }
.day-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.day-badge { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.68rem; font-weight: 600; padding: 0.3rem 0.75rem; border-radius: 50px; color: #fff; }
.day-badge.bike { background: var(--orange); }
.day-badge.explore { background: var(--green); }
.day-badge.travel { background: #6b7280; }
.day-date { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }
.weather-chip { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 0.4rem 0.85rem; font-size: 0.74rem; color: var(--text-muted); }
.weather-chip-temp { font-family: 'Playfair Display', serif; font-size: 0.95rem; color: var(--dark); font-weight: 700; }
.day-title { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: var(--dark); margin-bottom: 0.25rem; }
.day-subtitle { font-size: 0.85rem; color: var(--text-muted); }
.day-body { font-size: 1rem; line-height: 1.85; color: var(--text); margin-bottom: 1.3rem; }
.day-body:first-of-type { font-size: 1.05rem; }
.day-body strong { color: var(--dark); }

/* SHARE BUTTON */
.share-btn { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; color: var(--text-muted); background: var(--bg-card); border: 1px solid var(--border); border-radius: 50px; padding: 0.38rem 0.9rem; cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s; white-space: nowrap; }
.share-btn:hover, .share-btn.copied { color: var(--green); border-color: var(--green); background: var(--green-icon-bg); }
.share-btn svg { width: 12px; height: 12px; flex-shrink: 0; }

/* FACT BOX */
.fact-box { background: var(--bg-alt); border-left: 3px solid var(--green); border-radius: 0 10px 10px 0; padding: 1rem 1.25rem; margin: 1.25rem 0; font-size: 0.85rem; color: var(--text); line-height: 1.65; }
.fact-box strong { color: var(--green-dark); }

/* HIGHLIGHTS LIST */
.highlights-label { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); margin: 1.5rem 0 0.6rem; }
.highlights-list { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.5rem; }
.highlights-list li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.85rem; color: var(--text); }
.highlights-list li::before { content: '›'; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 0.05rem; }

/* PHOTO GALLERY */
.gallery-label { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); margin: 2rem 0 1rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 1rem; }
.gallery figure { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; cursor: pointer; }
.gallery figure img { width: 100%; height: 210px; object-fit: cover; display: block; transition: transform 0.4s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { font-size: 0.78rem; color: var(--text-muted); font-style: italic; padding: 0.7rem 0.85rem; line-height: 1.5; }

/* INLINE PHOTOS (interleaved with the story, Erie Canal style) */
.day-section-heading { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--dark); margin: 2.25rem 0 0.6rem; }
.inline-photo-grid { display: grid; gap: 1rem; margin: 1.5rem 0; }
.inline-photo-grid.cols-1 { grid-template-columns: 1fr; }
.inline-photo-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.inline-photo-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.inline-photo { margin: 0; cursor: pointer; }
.inline-photo img { width: 100%; height: auto; display: block; border-radius: 12px; transition: opacity 0.2s ease; }
.inline-photo:hover img { opacity: 0.9; }
.inline-caption { font-size: 0.74rem; color: var(--text-muted); text-align: center; margin-top: 0.5rem; font-style: italic; line-height: 1.45; }

/* VIDEO EMBED */
.video-wrap { border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; margin: 0.75rem 0 1rem; background: #000; }
.video-wrap iframe { width: 100%; height: 100%; border: none; display: block; }
.video-label { font-size: 0.72rem; color: var(--text-muted); font-style: italic; margin-bottom: 0.5rem; }

/* LIGHTBOX */
.lightbox { display: none; position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,0.92); align-items: center; justify-content: center; padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 8px; }
.lightbox-close { position: absolute; top: 1.5rem; right: 1.5rem; font-size: 2rem; color: #fff; cursor: pointer; line-height: 1; background: rgba(255,255,255,0.1); width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-caption { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.72); font-size: 0.85rem; font-style: italic; text-align: center; max-width: 600px; }

/* INFO SECTIONS (gear, planning, journal) */
.info-section { scroll-margin-top: 130px; }
.info-section-title { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.info-section-sub { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.5rem; max-width: 640px; }
.coming-soon-box { background: var(--bg-card); border: 1.5px dashed var(--border); border-radius: 16px; padding: 1.75rem; }
.cs-tag { display: inline-block; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--orange); background: #fdf0e8; padding: 0.3rem 0.7rem; border-radius: 50px; margin-bottom: 1rem; }
.coming-soon-box ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.coming-soon-box li { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.92rem; color: var(--text); line-height: 1.5; }
.coming-soon-box li::before { content: '›'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.coming-soon-box strong { color: var(--dark); }

/* COMING-SOON PANEL (in-day placeholder) */
.coming-soon-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 3rem 2rem; background: var(--bg-card); border-radius: 16px; border: 1.5px dashed var(--border); }
.coming-soon-icon { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.4; }
.coming-soon-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* GEAR SPEC LIST */
.gear-list { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--bg-card); }
.gear-row { display: grid; grid-template-columns: 180px 1fr; gap: 1rem; padding: 1rem 1.25rem; border-top: 1px solid var(--border); }
.gear-row:first-child { border-top: none; }
.gear-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); padding-top: 0.1rem; }
.gear-detail { font-size: 0.92rem; color: var(--text); line-height: 1.6; }
.gear-detail strong { color: var(--dark); }

/* CTA */
.join-cta { background: var(--green-icon-bg); border: 1px solid var(--border); border-radius: 16px; padding: 2.5rem 2rem; text-align: center; }
.join-cta h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--dark); font-weight: 700; margin-bottom: 0.6rem; }
.join-cta p { font-size: 0.95rem; color: var(--text); line-height: 1.7; max-width: 560px; margin: 0 auto 1.5rem; }
.join-cta .cta-btn { display: inline-block; background: var(--orange); color: #fff; font-size: 0.85rem; font-weight: 600; padding: 0.8rem 2rem; border-radius: 50px; text-decoration: none; transition: background 0.2s, transform 0.15s; }
.join-cta .cta-btn:hover { background: #d97340; transform: translateY(-2px); }

/* FOOTER */
footer { background: #2c2f2e; color: rgba(255,255,255,0.5); text-align: center; padding: 2.5rem 2rem; font-size: 0.8rem; }
footer a { color: rgba(255,255,255,0.65); text-decoration: none; }
footer a:hover { color: #fff; }

/* RESPONSIVE */
@media (max-width: 768px) {
  nav { padding: 1rem 1.25rem; }
  .nav-links { display: none; }
  .hero-content { padding: 2rem 1.5rem 2.5rem; }
  .stats-bar { padding: 1.25rem 1.5rem; }
  .stats-bar-inner { grid-template-columns: repeat(3, 1fr); gap: 1.25rem 1rem; }
  .body-content { padding: 2.5rem 1.25rem; }
  .map-embed { height: 320px; }
  .day-nav { top: 62px; }
  .day-header { flex-direction: column; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .gallery figure img { height: 150px; }
  .inline-photo-grid.cols-2, .inline-photo-grid.cols-3 { grid-template-columns: 1fr; }
  .gear-row { grid-template-columns: 1fr; gap: 0.3rem; }
}
