/* itinerary-page.css — Shared image-first styles for itinerary detail pages
   I Love Canada by Viajes Scibasku
   Art direction propagated from /explora (in production). Vanilla, no build.
   ================================================================ */

/* ── 0. TOKENS (explora names + legacy ficha aliases so existing HTML keeps working) ── */
:root{
  --gold:#d4af37;--gold-soft:rgba(212,175,55,.14);--gold-glow:rgba(212,175,55,.25);
  --navy-dark:#0a1628;--navy-mid:#0d2847;--navy-light:#132d50;
  --navy:#0a1628;                 /* legacy alias */
  --ivory:#f4efe6;
  --ink:rgba(244,239,230,.9);--ink-70:rgba(244,239,230,.7);--ink-55:rgba(244,239,230,.55);--ink-45:rgba(244,239,230,.58);
  --accent-cyan:#1fb4d1;--accent-hi:#4fc9e0;
  --ice:#1fb4d1;                  /* legacy alias */
  --forest:#2d8a4e;
  --accent:var(--ice);            /* fallback until season-toggle sets it */
  --accent-soft:rgba(31,180,209,.12);--accent-glow:rgba(31,180,209,.25);
  --hairline:rgba(244,239,230,.08);
  --text:#e8edf3;--text-dim:#8a9bb5;--white:#fff; /* legacy aliases used by timeline/tables */
  --radius:14px;--radius-sm:8px;
}
/* Season toggle only swaps the accent hue; hero art is a real <img> now (season-independent) */
html[data-season="winter"]{--accent:var(--ice);--accent-soft:rgba(31,180,209,.1);--accent-glow:rgba(31,180,209,.25)}
html[data-season="summer"]{--accent:var(--forest);--accent-soft:rgba(45,138,78,.1);--accent-glow:rgba(45,138,78,.25)}

/* ── 1. RESET & BASE ── */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:'Montserrat',sans-serif;font-weight:300;background:var(--navy-dark);color:var(--ink);line-height:1.7;-webkit-font-smoothing:antialiased}
::selection{background:var(--gold);color:var(--navy-dark)}
a{color:var(--gold);text-decoration:none}
a:hover{color:var(--white)}
img{max-width:100%;display:block}

/* jonview/imagebank/map raster images: keep them contained */
img[src*="jonview"],img[src*="imagebank"],img[src*="map"]{max-width:600px;width:100%;height:auto;margin:1rem auto;display:block;border-radius:12px;border:2px solid rgba(212,175,55,.3)}
.route-map,.map-container{max-width:600px;margin:0 auto}
.map-section img{width:100%;border-radius:var(--radius);border:1px solid rgba(212,175,55,.15)}

/* ── 2. TOPBAR ── */
.topbar{position:fixed;top:0;left:0;right:0;z-index:100;background:rgba(10,22,40,.94);backdrop-filter:blur(14px) saturate(1.3);border-bottom:1px solid rgba(212,175,55,.15);padding:0 2rem;height:56px;display:flex;align-items:center;justify-content:space-between}
.topbar .back{display:flex;align-items:center;gap:.5rem;font-size:.95rem;color:var(--gold)}
.topbar .back svg{width:18px;height:18px;fill:var(--gold)}
.topbar .brand{font-size:1.1rem;font-weight:700;color:var(--white)}
.topbar .brand span{color:var(--gold)}
.topbar .season-toggle{background:var(--accent-soft);border:1px solid var(--accent);color:var(--accent);padding:.35rem .9rem;border-radius:20px;cursor:pointer;font-size:.8rem;font-weight:600;transition:.3s}
.topbar .season-toggle:hover{background:var(--accent);color:var(--navy-dark)}

/* ── 3. BREADCRUMBS ── */
.breadcrumbs{max-width:1100px;margin:0 auto;padding:.8rem 1.5rem 0;font-size:.8rem}
.breadcrumbs a{color:var(--text-dim)}
.breadcrumbs a:hover{color:var(--gold)}
.breadcrumbs span{color:var(--text-dim);margin:0 .4rem}
.breadcrumbs .current{color:var(--gold)}

/* ── 4. HERO — full photographic <img> + double scrim + Ken Burns (explora pattern) ── */
.hero{margin-top:56px;position:relative;height:78vh;min-height:520px;display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden}
.hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
html.anim .hero-img{animation:slowzoom 26s ease-out both}
@keyframes slowzoom{from{transform:scale(1.1)}to{transform:scale(1.02)}}
.hero::before{content:'';position:absolute;inset:0;z-index:1;background:
  linear-gradient(180deg,rgba(10,22,40,.35) 0%,rgba(10,22,40,.05) 38%,rgba(10,22,40,.6) 72%,rgba(10,22,40,.97) 100%),
  linear-gradient(90deg,rgba(10,22,40,.6) 0%,transparent 55%)}
.hero-content{position:relative;z-index:2;padding:2.5rem clamp(1.5rem,5vw,4rem) 3rem;max-width:940px;width:100%;margin:0 auto}
.hero .badge{display:inline-block;background:var(--gold-soft);border:1px solid var(--gold);color:var(--gold);padding:.3rem 1rem;border-radius:20px;font-size:.72rem;font-weight:700;letter-spacing:2.4px;text-transform:uppercase;margin-bottom:1.1rem}
.hero h1{font-family:'Playfair Display',serif;font-weight:700;font-size:clamp(2.2rem,6vw,4.6rem);line-height:1;letter-spacing:-.5px;color:var(--ivory);margin-bottom:.5rem;text-shadow:0 2px 30px rgba(10,22,40,.5);text-wrap:balance}
.hero .subtitle{font-size:clamp(1rem,1.6vw,1.2rem);line-height:1.55;color:var(--ink);max-width:56ch}

/* ── 5. QUICK FACTS (dark, explora hairlines) ── */
.quick-facts{max-width:1100px;margin:-2.2rem auto 0;position:relative;z-index:3;display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:1px;background:rgba(212,175,55,.15);border-radius:var(--radius);overflow:hidden;border:1px solid rgba(212,175,55,.15)}
.quick-facts .fact{background:var(--navy-mid);padding:1.3rem 1rem;text-align:center}
.quick-facts .fact-value{font-family:'Playfair Display',serif;font-size:1.5rem;font-weight:700;color:var(--gold)}
.quick-facts .fact-label{font-size:.72rem;color:var(--ink-55);text-transform:uppercase;letter-spacing:1.2px;margin-top:.25rem}

/* ── 6. ROUTE BAR ── */
.route-bar{max-width:1100px;margin:1.4rem auto 0;padding:0 1.5rem}
.route-cities{display:flex;align-items:center;flex-wrap:wrap;gap:.4rem;font-size:.85rem}
.route-cities .city{color:var(--ivory);font-weight:500;white-space:nowrap}
.route-cities .arrow{color:var(--gold);font-size:.7rem}

/* ── 7. LAYOUT & SECTION HEADERS ── */
.container{max-width:1100px;margin:0 auto;padding:0 clamp(1.5rem,4vw,2rem)}
section{padding:clamp(2.5rem,6vh,4rem) 0}
.section-title{font-family:'Playfair Display',serif;font-size:clamp(1.6rem,3.2vw,2.4rem);font-weight:700;color:var(--ivory);margin-bottom:.35rem;line-height:1.05;text-wrap:balance}
.section-subtitle{color:var(--ink-70);margin-bottom:2rem;font-size:1rem}

/* ── 8. IMAGE-FIRST GALLERY (asymmetric mosaic, à la .worlds) ── */
.gallery{display:flex;flex-wrap:wrap;gap:14px}
.gphoto{position:relative;display:flex;flex:1 1 320px;min-height:clamp(220px,26vw,300px);border-radius:14px;overflow:hidden;box-shadow:0 14px 40px rgba(0,0,0,.35);isolation:isolate;transition:transform .3s cubic-bezier(.2,.7,.2,1),box-shadow .3s}
.gphoto.xl{flex:2 1 520px;min-height:clamp(280px,34vw,400px)}
.gphoto.lg{flex:1.5 1 440px}
.gphoto:hover{transform:translateY(-6px);box-shadow:0 22px 55px rgba(0,0,0,.5)}
.gphoto img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;transition:transform .6s cubic-bezier(.2,.7,.2,1)}
.gphoto:hover img{transform:scale(1.05)}
.gphoto::after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(10,22,40,.05) 0%,rgba(10,22,40,0) 40%,rgba(10,22,40,.62) 74%,rgba(10,22,40,.94) 100%)}
.gphoto .cap{margin-top:auto;width:100%;padding:1rem 1.1rem;font-family:'Playfair Display',serif;font-weight:600;font-size:clamp(1.05rem,1.8vw,1.4rem);color:var(--ivory);text-shadow:0 1px 12px rgba(10,22,40,.6)}

/* ── 9. TIMELINE / DAY ACCORDION (more air, gold hairlines) ── */
.timeline{position:relative;padding-left:3rem}
.timeline::before{content:'';position:absolute;left:14px;top:0;bottom:0;width:2px;background:linear-gradient(to bottom,var(--gold),var(--accent),var(--gold))}
.day{position:relative;margin-bottom:1.5rem}
.day-marker{position:absolute;left:-3rem;top:0;width:30px;height:30px;border-radius:50%;background:var(--navy-dark);border:2px solid var(--gold);display:flex;align-items:center;justify-content:center;font-size:.72rem;font-weight:800;color:var(--gold);z-index:2}
.day.active .day-marker{background:var(--gold);color:var(--navy-dark)}
.day-header{cursor:pointer;background:var(--navy-mid);border:1px solid var(--hairline);border-radius:var(--radius-sm);padding:1rem 1.3rem;display:flex;justify-content:space-between;align-items:center;transition:.3s}
.day-header:hover{border-color:rgba(212,175,55,.45);background:var(--navy-light)}
.day.active .day-header{border-color:var(--gold);border-bottom-left-radius:0;border-bottom-right-radius:0}
.day-header h3{font-family:'Playfair Display',serif;font-size:1.05rem;font-weight:600;color:var(--ivory)}
.day-header .day-km{font-size:.8rem;color:var(--accent);font-weight:600}
.day-header .chevron{color:var(--gold);transition:transform .3s;font-size:1.2rem}
.day.active .day-header .chevron{transform:rotate(180deg)}
.day-body{display:none;background:rgba(13,40,71,.5);border:1px solid var(--hairline);border-top:0;border-radius:0 0 var(--radius-sm) var(--radius-sm);padding:1.6rem}
.day.active .day-body{display:block}
.day-body p{color:var(--ink);margin-bottom:1rem;font-size:.98rem}
.day-body .tip{background:var(--gold-soft);border-left:3px solid var(--gold);padding:.9rem 1.1rem;border-radius:0 var(--radius-sm) var(--radius-sm) 0;margin-top:.8rem;font-size:.9rem}
.day-body .tip strong{color:var(--gold)}
.day-body .highlight{color:var(--accent);font-weight:600}

/* ── 10. INCLUDES GRID ── */
.includes-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;margin-top:1.5rem}
.include-box{background:var(--navy-mid);border:1px solid var(--hairline);border-radius:var(--radius-sm);padding:1.6rem}
.include-box h4{font-family:'Playfair Display',serif;color:var(--gold);font-size:1rem;letter-spacing:.5px;margin-bottom:1rem}
.include-box ul{list-style:none}
.include-box ul li{padding:.45rem 0;font-size:.92rem;color:var(--ink);border-bottom:1px solid var(--hairline)}
.include-box ul li::before{content:'✓ ';color:var(--accent);font-weight:700}
.include-box.exclude ul li::before{content:'✕ ';color:#e07a6a}

/* ── 11. PRICE TABLE ── */
.price-table{width:100%;border-collapse:collapse;margin-top:1.5rem}
.price-table th{background:var(--gold-soft);color:var(--gold);text-align:left;padding:.85rem 1rem;font-size:.75rem;text-transform:uppercase;letter-spacing:1px;border-bottom:2px solid var(--gold)}
.price-table td{padding:.75rem 1rem;border-bottom:1px solid var(--hairline);font-size:.95rem;color:var(--ink)}
.price-table tr:hover{background:rgba(31,180,209,.05)}
.price-table .price{font-family:'Playfair Display',serif;color:var(--accent-hi);font-weight:700;font-size:1.15rem}

/* ── 12. CTA SECTION + BUTTONS ── */
.cta-section{text-align:center;padding:3rem 1.5rem;margin:2rem auto;max-width:1100px;background:linear-gradient(135deg,var(--navy-mid),var(--navy-light));border:1px solid rgba(212,175,55,.18);border-radius:var(--radius)}
.cta-section h2{font-family:'Playfair Display',serif;color:var(--ivory);margin-bottom:.5rem;font-size:clamp(1.5rem,2.6vw,2rem)}
.cta-section p{color:var(--ink-70);margin-bottom:1.5rem}
.btn-gold{display:inline-block;background:var(--gold);color:var(--navy-dark);padding:.9rem 2.5rem;border-radius:30px;font-weight:600;font-size:1rem;transition:transform .25s,box-shadow .25s;border:none;cursor:pointer}
.btn-gold:hover{transform:translateY(-2px);box-shadow:0 16px 42px var(--gold-glow);color:var(--navy-dark)}
.btn-outline{display:inline-block;border:2px solid var(--accent);color:var(--accent);padding:.8rem 2rem;border-radius:30px;font-weight:600;font-size:.95rem;margin-left:1rem;transition:.3s}
.btn-outline:hover{background:var(--accent);color:var(--navy-dark)}

/* ── 13. FOOTER + WHATSAPP FLOAT ── */
footer{border-top:1px solid rgba(212,175,55,.18);padding:2.6rem 2rem;text-align:center;color:var(--ink-45);font-size:.85rem}
footer strong{color:var(--ivory)}
.whatsapp-float{position:fixed;bottom:2rem;right:2rem;z-index:998;background:#25d366;color:#fff;width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 20px rgba(37,211,102,.4);transition:transform .3s,box-shadow .3s;cursor:pointer;border:none}
.whatsapp-float:hover{transform:scale(1.1);box-shadow:0 6px 30px rgba(37,211,102,.6)}
.whatsapp-float svg{width:28px;height:28px;fill:#fff}

/* ── 14. REVEAL (visible by default; only hides once JS adds html.anim) ── */
/* Content is ALWAYS visible. No JS-gated hide/reveal (that left content blank
   when the observer/failsafe didn't fire). Scroll-reveal removed for reliability. */
.reveal{opacity:1;transform:none}

/* ── 15. RESPONSIVE ── */
@media(max-width:768px){
  html,body{overflow-x:hidden}
  .topbar{gap:.5rem}
  .topbar>div{display:none!important}
  .hero h1{font-size:clamp(2rem,8.5vw,3rem)}
  .hero{height:62vh;min-height:400px}
  .quick-facts{grid-template-columns:repeat(2,1fr);margin:-1.6rem 1rem 0}
  .timeline{padding-left:2.5rem}
  .day-marker{left:-2.5rem;width:26px;height:26px;font-size:.65rem}
  .includes-grid{grid-template-columns:1fr}
  .route-cities{font-size:.75rem}
  .btn-outline{margin-left:0;margin-top:.8rem;display:block}
  .gphoto,.gphoto.xl,.gphoto.lg{flex-basis:100%;min-height:230px}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  html.anim .reveal{opacity:1;transform:none;transition:none}
  html.anim .hero-img{animation:none}
  .gphoto,.gphoto img,.btn-gold{transition:none}
}
