* { box-sizing: border-box; }
body { margin: 0; font-family: 'Work Sans', sans-serif; color: #3a2a1a; background: #FBF3E7; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }

/* Hero */
.hero { position: relative; height: 100vh; min-height: 560px; width: 100%; overflow: hidden; background: #0d1f26; }
.hero-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(180deg, rgba(10,25,30,0.15) 0%, rgba(10,25,30,0.55) 78%, rgba(10,25,30,0.85) 100%), url('images/hero-boat.jpg');
  background-size: cover; background-position: center;
  animation: heroZoom 9s ease-out forwards;
}
.hero-content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.hero-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: #F3D9AE; margin: 0 0 22px; }
.hero-title { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(38px, 6.4vw, 84px); line-height: 1.08; color: #fff; margin: 0; max-width: 1000px; }
.hero-title .accent { color: #F3B15C; }
.hero-title .italic { font-style: italic; }
.hero-divider { width: 64px; height: 2px; background: #F3B15C; margin: 28px 0 22px; }
.hero-sub { font-size: 16px; color: rgba(255,255,255,0.82); margin: 0; max-width: 480px; line-height: 1.6; }
.hero-scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); }
.hero-scroll-cue .bob { animation: bob 1.8s ease-in-out infinite; }
.hero-fade { opacity: 0; animation: heroFadeIn 1.2s ease forwards; }
.hero-word { display: inline-block; opacity: 0; animation: wordUp 1s cubic-bezier(.2,.8,.2,1) forwards; }

@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes heroFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes wordUp { from { opacity: 0; transform: translateY(38px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* Intro */
.intro { max-width: 1400px; margin: 0 auto; padding: 64px 40px 16px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #C2571F; margin: 0 0 14px; }
.intro h1 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 56px; line-height: 1.05; margin: 0 0 16px; max-width: 820px; }
.intro-lede { font-size: 17px; line-height: 1.6; color: #6b5642; max-width: 640px; }
.section-title { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 38px; margin: 0 0 28px; }

/* Route grid */
.route-grid { display: grid; grid-template-columns: 440px 1fr; gap: 36px; align-items: start; max-width: 1400px; margin: 0 auto; padding: 24px 40px 100px; }
.route-sticky { position: sticky; top: 28px; display: flex; flex-direction: column; gap: 16px; height: calc(100vh - 56px); }

.progress-card { background: #fff; border-radius: 14px; padding: 16px 18px; box-shadow: 0 1px 3px rgba(60,40,20,0.08); }
.progress-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.day-label { font-family: 'Instrument Serif', serif; font-size: 22px; }
.progress-head .right { display: flex; align-items: center; gap: 10px; }
.weekday { font-size: 13px; color: #8a7862; font-weight: 500; }
.arrow-group { display: flex; gap: 4px; }
.arrow-btn { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(60,40,20,0.15); background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.arrow-btn:disabled { opacity: 0.35; cursor: default; }
.segments { display: flex; gap: 5px; }
.segment { cursor: pointer; height: 6px; flex: 1; border-radius: 3px; background: rgba(58,42,26,0.12); transition: background .2s; }
.segment.active { background: #C2571F; }

.map-backdrop { display: none; position: fixed; inset: 0; background: rgba(20,15,10,0.6); z-index: 1998; }
.map-backdrop.visible { display: block; }

.map-wrapper { position: relative; flex: 1; min-height: 320px; z-index: 1; }
.map-wrapper.fullscreen { position: fixed; top: 5%; left: 5%; right: 5%; bottom: 5%; z-index: 2000; }
.route-map { width: 100%; height: 100%; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 24px rgba(20,15,10,0.25); z-index: 0; isolation: isolate; }
.fullscreen-btn { position: absolute; top: 14px; right: 14px; z-index: 20; width: 34px; height: 34px; border-radius: 8px; border: none; background: rgba(255,255,255,0.92); box-shadow: 0 1px 4px rgba(20,15,10,0.25); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.fullscreen-btn .icon-exit { display: none; }
.map-wrapper.fullscreen .fullscreen-btn .icon-enter { display: none; }
.map-wrapper.fullscreen .fullscreen-btn .icon-exit { display: block; }

.legend { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 2px 4px; font-size: 12px; color: #7a6a56; }
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #C2571F; display: inline-block; }
.legend-dot.day { width: 10px; height: 10px; border: 2px solid #2E7093; }

/* Map markers (Leaflet) */
.photo-marker { border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(60,40,20,0.35); background-size: cover; background-position: center; position: relative; transition: transform .25s ease, box-shadow .25s ease; }
.photo-marker.night { width: 38px; height: 38px; }
.photo-marker.day { width: 24px; height: 24px; border-width: 2px; opacity: 0.92; }
.photo-marker.marker-active { transform: scale(1.22); box-shadow: 0 0 0 4px rgba(196,105,45,0.35), 0 4px 12px rgba(60,40,20,0.4); z-index: 999 !important; }
.day-badge { position: absolute; top: -5px; left: -5px; background: #C2571F; color: #fff; font-family: 'Work Sans', sans-serif; font-size: 10px; font-weight: 600; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1.5px solid #fff; }
.stop-badge { position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%); background: #2E7093; color: #fff; font-family: 'Work Sans', sans-serif; font-size: 8px; font-weight: 600; padding: 1px 5px; border-radius: 6px; white-space: nowrap; border: 1.5px solid #fff; }
.popup-title { font-family: 'Work Sans', sans-serif; font-weight: 600; font-size: 14px; margin: 0 0 2px; color: #3a2a1a; }
.popup-sub { font-family: 'Work Sans', sans-serif; font-size: 12px; color: #7a6a56; margin: 0 0 6px; }
.leaflet-popup-content-wrapper { border-radius: 10px; }

/* Day list */
.days-list { display: flex; flex-direction: column; }
.day-card { padding: 32px 0; border-bottom: 1px solid rgba(60,40,20,0.1); display: grid; grid-template-columns: 64px 1fr; gap: 20px; }
.day-num { cursor: pointer; font-family: 'Instrument Serif', serif; font-size: 40px; line-height: 1; color: rgba(58,42,26,0.25); transition: color .2s; }
.day-num.active { color: #C2571F; }
.day-body { display: flex; flex-direction: column; gap: 10px; }
.day-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.day-weekday { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #8a7862; }
.day-tag { font-size: 11px; font-weight: 600; background: #F3E2C8; color: #9a5a1f; padding: 3px 10px; border-radius: 100px; }
.day-title { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 26px; margin: 0; line-height: 1.25; }
.day-story { font-size: 15px; line-height: 1.65; color: #5a4a38; margin: 0; max-width: 620px; }
.day-stops { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.stop-chip { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 10px; padding: 8px 12px 8px 8px; text-decoration: none; color: inherit; box-shadow: 0 1px 3px rgba(60,40,20,0.08); }
.stop-chip-img { width: 40px; height: 40px; border-radius: 8px; background-size: cover; background-position: center; flex: none; }
.stop-chip div > .stop-chip-name { display: block; font-size: 12.5px; font-weight: 600; }
.stop-chip div > .stop-chip-tag { display: block; font-size: 11px; color: #8a7862; }

/* Crew */
.crew-section { max-width: 1400px; margin: 40px auto 0; padding: 0 40px 110px; }
.crew-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.crew-tab { cursor: pointer; padding: 8px 18px; border-radius: 100px; font-size: 14px; font-weight: 600; background: #fff; color: #5a4a38; border: none; transition: all .2s; font-family: 'Work Sans', sans-serif; }
.crew-tab.active { background: #C2571F; color: #fff; }
.crew-track { position: relative; display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 14px; scrollbar-width: none; }
.crew-track::-webkit-scrollbar { display: none; }
.crew-card { flex: 1 1 0; min-width: 300px; scroll-snap-align: center; scroll-snap-stop: always; background: #fff; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 24px; box-shadow: 0 1px 3px rgba(60,40,20,0.08); }
.crew-photo { width: 100%; height: auto; aspect-ratio: 1/1; border-radius: 18px; object-fit: cover; display: block; }
.crew-name-row { display: flex; align-items: center; gap: 8px; }
.crew-name { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 28px; margin: 0; }
.crew-check { width: 20px; height: 20px; border-radius: 50%; background: #2E7093; display: flex; align-items: center; justify-content: center; flex: none; }
.crew-role { font-size: 14px; font-weight: 600; color: #C2571F; text-transform: uppercase; letter-spacing: 0.06em; margin: 6px 0 18px; }
.crew-label { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8a7862; margin: 0 0 8px; }
.crew-bio { font-size: 15px; line-height: 1.65; color: #5a4a38; margin: 0 0 24px; }
.crew-skills { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-pill { font-size: 13px; font-weight: 600; color: #5a4a38; background: #F3E2C8; padding: 6px 14px; border-radius: 100px; }

/* Boat */
.boat-section { max-width: 1400px; margin: 40px auto 0; padding: 0 40px; }
.boat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 28px; }
.boat-grid img { width: 100%; height: 280px; object-fit: cover; border-radius: 18px; display: block; }
.boat-spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.spec-card { background: #fff; border-radius: 18px; padding: 26px 28px; box-shadow: 0 1px 3px rgba(60,40,20,0.08); }
.spec-rows { display: flex; flex-direction: column; gap: 11px; }
.spec-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.spec-row .k { color: #8a7862; }
.spec-row .v { font-weight: 600; }
.spec-row .v.right { text-align: right; }

/* Packing */
.packing-section { max-width: 1400px; margin: 0 auto; padding: 0 40px 110px; }
.bring-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
.bring-card { background: #fff; border-radius: 18px; padding: 32px; box-shadow: 0 1px 3px rgba(60,40,20,0.08); }
.bring-intro { font-size: 15px; line-height: 1.65; color: #5a4a38; margin: 0 0 22px; }
.bring-list { display: flex; flex-direction: column; gap: 10px; }
.bring-item { display: flex; align-items: baseline; gap: 10px; font-size: 15px; color: #5a4a38; }
.bring-dot { width: 6px; height: 6px; border-radius: 50%; background: #2E7093; flex: none; position: relative; top: -2px; }
.side-stack { display: flex; flex-direction: column; gap: 28px; }
.side-card { background: #fff; border-radius: 18px; padding: 28px 32px; box-shadow: 0 1px 3px rgba(60,40,20,0.08); }
.side-card p { font-size: 15px; line-height: 1.65; color: #5a4a38; }
.contact-card { background: #F3E2C8; border-radius: 18px; padding: 22px 32px; }
.contact-card p { font-size: 15px; color: #5a4a38; }

/* Responsive */
@media (max-width: 880px) {
  .route-grid { grid-template-columns: 1fr !important; padding: 0 20px 60px !important; }
  .route-sticky { position: static !important; height: auto !important; }
  .route-map.route-map-compact { height: 320px !important; }
  .bring-grid { grid-template-columns: 1fr !important; }
  .crew-card { flex-basis: calc(100vw - 80px) !important; }
  .boat-grid { grid-template-columns: 1fr !important; }
  .boat-grid img { height: 220px !important; }
  .boat-spec-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 640px) {
  .hero-bg { background-position: 38% center !important; }
}
