/* ============================================================
   TRAVENZA · Shared Design System
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --orange:       #d58e4a;
  --orange-light: #e8a86e;
  --orange-pale:  #f5e4cc;
  --green:        #5ba37a;
  --dark-green:   #2c6e49;
  --ivory:        #fdfdf3;
  --ivory-2:      #f3f1e8;
  --ivory-3:      #e8e5d8;
  --black:        #1a1a1a;
  --black-soft:   #2d2d2d;
  --white:        #ffffff;
  --gray:         #7a7a72;
  --gray-light:   #e0ded6;
  --map-land:     #ede9df;
  --map-border:   #c8c2b4;

  --f-display: 'Playfair Display', Georgia, serif;
  --f-body:    'Inter', system-ui, sans-serif;
  --ease-out:  cubic-bezier(.16,1,.3,1);
  --ease-in:   cubic-bezier(.7,0,.84,0);
}

html {
  font-size: 16px;
  height: 100%;
  overflow-y: scroll;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
html::-webkit-scrollbar { display: none; }

body {
  font-family: var(--f-body);
  background: var(--ivory);
  color: var(--black);
  overflow-x: hidden;
  height: 100%;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}

/* ——— Custom Cursor ——— */
.cursor-dot {
  position: fixed; width: 8px; height: 8px;
  background: var(--orange); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .2s, height .2s, background .2s;
  will-change: transform;
}
.cursor-ring {
  position: fixed; width: 32px; height: 32px;
  border: 1.5px solid rgba(213,142,74,.6);
  border-radius: 50%; pointer-events: none;
  z-index: 9998; transform: translate(-50%,-50%);
  transition: width .3s var(--ease-out), height .3s var(--ease-out), opacity .3s;
  will-change: transform;
}
.cursor-dot.hovered  { width: 16px; height: 16px; }
.cursor-ring.hovered { width: 52px; height: 52px; opacity: .35; }

/* ——— Scroll Progress ——— */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0; background: var(--orange);
  z-index: 1001;
  transition: width .08s linear;
}

/* ——— Navigation ——— */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500; padding: 28px 80px;
  display: flex; justify-content: space-between;
  align-items: center;
  transition: padding .5s var(--ease-out),
              background .5s, box-shadow .5s;
}
.nav.scrolled {
  padding: 14px 80px;
  background: rgba(253,253,243,.96);
  backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 1px 0 var(--gray-light);
}
.nav-logo {
  display: flex; align-items: center;
  text-decoration: none; transition: opacity .25s;
}
.nav-logo:hover { opacity: .8; }
.nav-logo-img {
  height: 32px; width: auto; display: block;
  transition: filter .4s;
  /* Logo is dark — invert to white on dark hero background */
  filter: brightness(0) invert(1);
}
/* On light scrolled nav, show natural colour */
.nav.scrolled .nav-logo-img {
  filter: none;
}
.nav.dark:not(.scrolled) .nav-link { color: rgba(255,255,255,.8); }
.nav.dark:not(.scrolled) .nav-link:hover { color: #fff; }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-link {
  font-size: 13px; font-weight: 500; letter-spacing: .3px;
  color: var(--black); text-decoration: none;
  position: relative; transition: color .2s;
}
.nav-link::after {
  content: ''; position: absolute;
  bottom: -2px; left: 0; width: 0; height: 1px;
  background: var(--orange);
  transition: width .3s var(--ease-out);
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--orange); }
.nav-cta {
  background: var(--orange); color: #fff;
  padding: 10px 26px; border-radius: 40px;
  font-size: 13px; font-weight: 700; letter-spacing: .3px;
  text-decoration: none;
  transition: background .25s, transform .2s, box-shadow .25s;
}
.nav-cta:hover {
  background: var(--dark-green); transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(213,142,74,.4);
}

/* ——— Section base ——— */
.panel {
  position: relative; height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}

/* ——— Illustrated Map Shared ——— */
.map-wrap {
  width: 100%; height: 100%;
  background: var(--ivory);
  position: relative;
}
.map-svg-el {
  width: 100%; height: 100%;
  display: block;
}
.country-path {
  fill: var(--map-land);
  stroke: var(--map-border);
  stroke-width: .5;
  stroke-linejoin: round;
}
.dest-pulse {
  fill: rgba(213,142,74,.18);
  animation: mapPulse 2.4s ease-out infinite;
}
.dest-dot {
  fill: var(--orange);
  stroke: var(--ivory);
  stroke-width: 1.5;
  cursor: pointer;
  transition: r .2s;
}
.dest-dot:hover { r: 7; }
.dest-label {
  font-family: var(--f-body);
  font-size: 9px;
  font-weight: 600;
  fill: var(--black);
  pointer-events: none;
  letter-spacing: .3px;
}
@keyframes mapPulse {
  0% { r: 8; opacity: .6; }
  100% { r: 20; opacity: 0; }
}

/* ——— Map Tooltip ——— */
.map-tooltip {
  position: absolute; z-index: 50;
  width: 240px; border-radius: 14px;
  background: var(--black); overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.35);
  pointer-events: none;
  opacity: 0; transform: translateY(6px);
  transition: opacity .2s, transform .2s;
}
.map-tooltip.show { opacity: 1; transform: translateY(0); pointer-events: all; }
.map-tooltip-img { width: 100%; height: 120px; object-fit: cover; display: block; }
.map-tooltip-body { padding: 14px 16px; color: #fff; }
.map-tooltip-region { font-size: 9px; color: var(--orange); letter-spacing: 2px; text-transform: uppercase; font-weight: 600; }
.map-tooltip-name { font-size: 17px; font-weight: 700; margin: 4px 0; }
.map-tooltip-desc { font-size: 12px; color: rgba(255,255,255,.5); line-height: 1.45; }
.map-tooltip-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--orange); text-decoration: none; }
.map-tooltip-link:hover { color: #fff; }

/* ——— Buttons ——— */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: #fff;
  padding: 16px 40px; border-radius: 60px;
  font-size: 14px; font-weight: 700; letter-spacing: .3px;
  text-decoration: none; border: none; cursor: pointer;
  transition: background .25s, transform .2s, box-shadow .25s;
  box-shadow: 0 6px 24px rgba(213,142,74,.35);
}
.btn-primary:hover {
  background: #be7a38; transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(213,142,74,.55);
}
.btn-outline-light {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid rgba(255,255,255,.35); color: #fff;
  padding: 15px 36px; border-radius: 60px;
  font-size: 14px; font-weight: 500;
  text-decoration: none; backdrop-filter: blur(4px);
  transition: background .25s, transform .2s;
}
.btn-outline-light:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn-outline-dark {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid rgba(26,26,26,.25); color: var(--black);
  padding: 15px 36px; border-radius: 60px;
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  transition: border-color .25s, color .25s, transform .2s;
}
.btn-outline-dark:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }

/* ——— Route animation ——— */
.route-path {
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.5;
  stroke-dasharray: 6 5;
  stroke-linecap: round;
  stroke-dashoffset: 2000;
  transition: stroke-dashoffset 2s var(--ease-out);
}
.route-path.drawn { stroke-dashoffset: 0; }

/* ——— Footer ——— */
.footer {
  background: var(--dark-green);
  padding: 80px 80px 40px;
  color: #fff;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 60px; margin-bottom: 60px;
}
.footer-brand { }
.footer-brand-logo { display: flex; align-items: center; margin-bottom: 16px; text-decoration: none; }
.footer-brand-img { height: 30px; width: auto; display: block; filter: brightness(0) invert(1); }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,.4); line-height: 1.65; max-width: 220px; }
.footer-col-title { font-size: 10px; text-transform: uppercase; letter-spacing: 2px; color: var(--orange); font-weight: 600; margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link { font-size: 13px; color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s; letter-spacing: .2px; }
.footer-link:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: 11px; color: rgba(255,255,255,.25); letter-spacing: .3px;
}

/* ——— Scroll reveal ——— */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.visible { opacity: 1; transform: translateY(0); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal-left  { opacity: 0; transform: translateX(-28px); }
.reveal-left.visible { opacity: 1; transform: translateX(0); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal-right { opacity: 0; transform: translateX(28px); }
.reveal-right.visible { opacity: 1; transform: translateX(0); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }

/* delay helpers */
.d1 { transition-delay: .1s !important; }
.d2 { transition-delay: .2s !important; }
.d3 { transition-delay: .3s !important; }
.d4 { transition-delay: .4s !important; }
.d5 { transition-delay: .5s !important; }
.d6 { transition-delay: .6s !important; }

/* ══════════ WORD SPLIT TEXT ══════════ */
.sw  { display: inline-block; overflow: hidden; vertical-align: bottom; }
.sw-i { display: inline-block; }

/* ══════════ SKEW ENTRANCE ══════════ */
.skew-in { opacity: 0; transform: translateY(50px) skewY(3.5deg); }
.skew-in.visible {
  opacity: 1; transform: translateY(0) skewY(0);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

/* ══════════ HORIZONTAL MARQUEE ══════════ */
.marquee-wrap {
  overflow: hidden; width: 100%;
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
  padding: 11px 0;
  background: var(--ivory-2);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marqueeRun 32s linear infinite;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 22px; font-size: 10px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gray); white-space: nowrap;
}
.marquee-dot { width: 4px; height: 4px; background: var(--orange); border-radius: 50%; flex-shrink: 0; }
@keyframes marqueeRun { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ══════════ RICH MAP TOOLTIP ══════════ */
.map-pin-tooltip {
  position: absolute; width: 260px; border-radius: 16px;
  background: var(--black); overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.07);
  pointer-events: none; opacity: 0;
  transform: translateY(10px) scale(.95);
  transition: opacity .22s var(--ease-out), transform .22s var(--ease-out);
  z-index: 100;
}
.map-pin-tooltip.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
.mtt-img { width: 100%; height: 140px; object-fit: cover; display: block; }
.mtt-body { padding: 14px 17px 17px; }
.mtt-stop {
  font-size: 9px; color: rgba(255,255,255,.28);
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 3px;
}
.mtt-days {
  font-size: 9px; color: var(--orange);
  letter-spacing: 2px; text-transform: uppercase; font-weight: 700; margin-bottom: 5px;
}
.mtt-name {
  font-family: var(--f-display); font-size: 20px; font-weight: 900;
  color: #fff; line-height: 1.1; margin-bottom: 5px; letter-spacing: -.3px;
}
.mtt-desc { font-size: 12px; color: rgba(255,255,255,.48); line-height: 1.5; }
.mtt-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 13px;
  font-size: 12px; font-weight: 700; color: var(--orange);
  text-decoration: none; letter-spacing: .2px; transition: color .2s, gap .2s;
}
.mtt-link:hover { color: #fff; gap: 10px; }
