/*
Theme Name: Travenza
Theme URI: https://travenzaholidays.com
Author: Travenza Holidays
Description: Bespoke travel agency theme — pixel-perfect port of the Travenza HTML prototype. Custom post types for Itineraries, Destinations, Experiences and Visa packages.
Version: 1.0.0
Text Domain: travenza
Tags: travel, full-width-template, custom-colors, custom-menu
*/

/* ============================================================
   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: clip;
  height: 100%;
  -webkit-font-smoothing: antialiased;
}

/* ——— 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,
              transform .4s var(--ease-out);
}
.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.nav-hidden { transform: translateY(-110%); }
.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;
}
.nav.dark:not(.scrolled) .nav-logo-img { filter: brightness(0) invert(1); }
.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, .nav-link.active::after { width: 100%; }
.nav-link:hover, .nav-link.active { 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);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 1.5px;
  background: currentColor;
  transition: transform .3s, opacity .3s;
}
@media (max-width: 900px) {
  .nav { padding: 20px 24px; }
  .nav.scrolled { padding: 12px 24px; }
  .nav-toggle { display: flex; color: #fff; }
  .nav.scrolled .nav-toggle { color: var(--black); }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: var(--ivory); flex-direction: column; gap: 0;
    padding: 100px 40px 40px; box-shadow: -4px 0 40px rgba(0,0,0,.12);
    transition: right .4s var(--ease-out);
    align-items: flex-start; z-index: 499;
  }
  .nav-links.open { right: 0; }
  .nav-link { color: var(--black) !important; font-size: 18px; padding: 14px 0; border-bottom: 1px solid var(--gray-light); width: 100%; }
  .nav-cta { display: none; }
}

/* ——— 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; opacity: 0; transition: opacity .15s; }
.dest-marker:hover .dest-label { opacity: 1; }
@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-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; }

/* ——— Section label + heading shared ——— */
.section-label { font-size: 10px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--orange); margin-bottom: 16px; display: block; }
.section-heading { font-family: var(--f-display); font-size: clamp(28px, 4vw, 56px); font-weight: 900; line-height: 1.05; letter-spacing: -1px; margin-bottom: 48px; max-width: 560px; }
.section-heading em { font-style: italic; color: var(--orange); }

/* ——— Enquiry Strip ——— */
.enquiry-strip { background: var(--dark-green); padding: 80px; text-align: center; display: block; }
.enquiry-strip h2 { font-family: var(--f-display); font-size: clamp(32px,5vw,60px); font-weight: 900; color: #fff; margin-bottom: 16px; }
.enquiry-strip p { font-size: 16px; color: rgba(255,255,255,.5); margin-bottom: 40px; }

/* ——— Footer mobile ——— */
@media (max-width: 900px) {
  .footer { padding: 60px 24px 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .enquiry-strip { padding: 60px 24px; }
}

/* ——— WP Admin Bar adjustment ——— */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }

/* ══════════ SHARED CARD COMPONENTS — available globally ══════════ */

/* Itinerary cards (used on homepage, destinations, single pages) */
.itin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; }
.itin-card { border-radius: 16px; overflow: hidden; position: relative; aspect-ratio: .75; text-decoration: none; display: block; }
.itin-card:hover .itin-bg { transform: scale(1.06); }
.itin-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .7s var(--ease-out); }
.itin-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.05) 55%); }
.itin-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; color: #fff; }
.itin-region { font-size: 9px; text-transform: uppercase; letter-spacing: 2px; color: var(--orange); font-weight: 600; margin-bottom: 6px; display: block; }
.itin-name { font-family: var(--f-display); font-size: 19px; font-weight: 700; line-height: 1.2; margin-bottom: 5px; display: block; }
.itin-days { font-size: 11px; color: rgba(255,255,255,.5); display: block; }
.itin-hover { position: absolute; inset: 0; background: rgba(213,142,74,.92); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0; transition: opacity .3s; }
.itin-card:hover .itin-hover { opacity: 1; }
.view-all-link { font-size: 13px; font-weight: 600; color: var(--orange); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.view-all-link:hover { color: var(--black); }

/* Responsive itinerary grids */
@media (max-width: 1100px) { .itin-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .itin-grid { grid-template-columns: 1fr; } }

/* Dest cards (used on destinations page and destination singles) */
.dest-card { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 3/4; cursor: pointer; transition: transform .4s, box-shadow .4s; text-decoration: none; display: block; }
.dest-card:hover { transform: translateY(-6px); box-shadow: 0 24px 56px rgba(0,0,0,.14); }
.dest-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.dest-card:hover .dest-card-img { transform: scale(1.06); }
.dest-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.08) 50%, transparent 100%); }
.dest-card-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px; color: #fff; }
.dest-card-region { font-size: 9px; color: var(--orange); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; margin-bottom: 8px; display: block; }
.dest-card-name { font-family: var(--f-display); font-size: clamp(22px,2.4vw,30px); font-weight: 900; line-height: 1.1; margin-bottom: 6px; display: block; }
.dest-card-tagline { font-size: 12px; color: rgba(255,255,255,.55); line-height: 1.45; margin-bottom: 14px; display: block; }
.dest-card-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--orange); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.dest-card:hover .dest-card-btn { opacity: 1; transform: translateY(0); }

/* Why cards (brand-consistent, used on single templates) */
.why-brand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 20px; margin-top: 32px; }
.why-brand-card { background: #fff; border-radius: 20px; padding: 32px 28px; border-bottom: 3px solid transparent; transition: border-color .3s, transform .3s, box-shadow .3s; }
.why-brand-card:hover { border-bottom-color: var(--orange); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.08); }
.why-brand-icon { width: 52px; height: 52px; background: var(--orange-pale); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px; transition: background .3s; }
.why-brand-card:hover .why-brand-icon { background: var(--orange); }
.why-brand-title { font-family: var(--f-display); font-size: 18px; font-weight: 700; color: var(--black); margin-bottom: 8px; }
.why-brand-desc { font-size: 13px; color: var(--gray); line-height: 1.65; }

/* Section containers used on inner pages */
.inner-section { padding: 72px 80px; }
.inner-section-narrow { max-width: 1200px; margin: 0 auto; }
@media (max-width: 768px) { .inner-section { padding: 48px 24px; } }

