/*
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:         #6a6a63;   /* darkened from #7a7a72: 5.2:1 on ivory (was 4.2:1, failed AA for secondary copy) */
  --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);

  /* Fluid layout rhythm — every page uses these instead of fixed 80px paddings */
  --gutter:       clamp(20px, 5.6vw, 80px);   /* page side padding: 20px phones → 80px desktop */
  --section-y:    clamp(56px, 8vw, 112px);    /* vertical section padding */
  --container:    1200px;
  --container-wide: 1500px;
  --nav-h:        72px;                       /* approximate fixed-nav height, for hero top padding */
  --vh-full:      100vh;                      /* overridden to 100svh below where supported */
  --radius-card:  20px;
  --orange-ink:   #a8631f;                    /* SMALL orange text on light surfaces (4.6:1); display type keeps --orange */
  --radius-pill:  60px;

  /* Readability scrims — put text on photos only with one of these underneath */
  --scrim-card:   linear-gradient(to top, rgba(8,8,8,.88) 0%, rgba(8,8,8,.62) 38%, rgba(8,8,8,.18) 68%, rgba(8,8,8,0) 100%);
  --scrim-hero:   linear-gradient(to top, rgba(8,8,8,.86) 0%, rgba(8,8,8,.55) 42%, rgba(8,8,8,.28) 72%, rgba(8,8,8,.45) 100%);
  --glass-bg:     rgba(20,16,12,.38);
  --glass-border: rgba(255,255,255,.2);
}
@supports (height: 100svh) { :root { --vh-full: 100svh; } }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(213,142,74,.18);
}
html::-webkit-scrollbar { display: none; }

body {
  font-family: var(--f-body);
  background: var(--ivory);
  color: var(--black);
  overflow-x: clip;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
body.menu-open { overflow: hidden; }

/* Media never escapes its box */
img, video, canvas { max-width: 100%; }
img, video { height: auto; }
svg { max-width: 100%; }
h1, h2, h3, h4 { overflow-wrap: break-word; text-wrap: balance; font-variant-numeric: lining-nums; }
p, li { overflow-wrap: break-word; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* Scroll-reveal hidden state only applies when JS is running (see the 'js' flag in <head>) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee-track, .exp-carousel-track { animation: none !important; }
}

/* ——— Shared layout utilities ——— */
.container      { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { width: 100%; max-width: var(--container-wide); margin-inline: auto; padding-inline: var(--gutter); }
.section        { padding-block: var(--section-y); }
.section-tight  { padding-block: calc(var(--section-y) * .6); }
/* Photo overlays: stack these as the LAST overlay layer under text */
.scrim-card { background-image: var(--scrim-card); }
.scrim-hero { background-image: var(--scrim-hero); }
/* Frosted info card ("container system") — used for stat chips on photo heroes */
.glass { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 18px; -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); color: #fff; box-shadow: 0 8px 32px rgba(0,0,0,.18); }
/* Responsive helper: 2 → 1 columns */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
@media (max-width: 820px) { .split-2 { grid-template-columns: 1fr; } }
.no-scrollbar { scrollbar-width: none; } .no-scrollbar::-webkit-scrollbar { display: none; }

/* ——— 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 var(--gutter);
  display: flex; justify-content: space-between;
  align-items: center; gap: 20px;
  transition: padding .5s var(--ease-out),
              background .5s, box-shadow .5s,
              transform .4s var(--ease-out);
}
.nav.scrolled {
  padding: 14px var(--gutter);
  background: rgba(253,253,243,.96);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  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; flex-shrink: 0; min-height: 44px;
  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,.88); }
.nav.dark:not(.scrolled) .nav-link:hover { color: #fff; }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-link {
  display: inline-flex; align-items: center; line-height: 20px; min-height: 24px;
  font-size: 13px; font-weight: 500; letter-spacing: .3px; white-space: nowrap;
  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; white-space: nowrap;
  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);
}
@media (max-width: 1400px) and (min-width: 1101px) {
  .nav-links { gap: 22px; }
  .nav-cta { padding: 10px 20px; }
}

/* Desktop dropdowns */
.nav-dropdown-wrap { position: relative; }
.nav-has-dropdown { display: inline-flex !important; align-items: center; gap: 3px; }
.nav-chevron { width: 10px; height: 6px; margin-left: 4px; opacity: .6; transition: transform .2s; flex-shrink: 0; }
.nav-dropdown-wrap:hover .nav-chevron, .nav-dropdown-wrap.is-open .nav-chevron { transform: rotate(180deg); opacity: 1; }
.nav-dropdown {
  position: absolute; top: calc(100% + 20px); left: 50%; transform: translateX(-50%);
  background: #fff; border-radius: 16px; min-width: 260px;
  box-shadow: 0 16px 64px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.06);
  padding: 20px; opacity: 0; pointer-events: none;
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
  transform: translateX(-50%) translateY(8px); z-index: 600;
}
.nav-dropdown::before { content: ''; position: absolute; left: 0; right: 0; top: -22px; height: 22px; } /* hover bridge */
.nav-dropdown-wrap:hover .nav-dropdown,
.nav-dropdown-wrap:focus-within .nav-dropdown,
.nav-dropdown-wrap.is-open .nav-dropdown {
  opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0);
}
.nav-dropdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-bottom: 12px; }
.nav-dropdown-label { font-size: 10px; text-transform: uppercase; letter-spacing: 2px; color: var(--orange); font-weight: 700; margin-bottom: 10px; }
.nav-dropdown-link {
  display: block; font-size: 13px; color: var(--black); text-decoration: none; white-space: nowrap;
  padding: 5px 0; border-bottom: 1px solid var(--gray-light); transition: color .2s;
}
.nav-dropdown-link:last-child { border-bottom: none; }
.nav-dropdown-link:hover { color: var(--orange); }
.nav-dropdown-cta {
  display: block; font-size: 12px; font-weight: 700; color: var(--orange);
  text-decoration: none; padding-top: 12px; border-top: 1px solid var(--gray-light);
  margin-top: 4px;
}

/* Very wide screens: logo/CTA sit on the same edge as the hero text, sections and footer (all use max(gutter, (100% - 1500px)/2)) */
@media (min-width: 1700px) {
  .nav, .nav.scrolled { padding-inline: max(var(--gutter), calc((100% - var(--container-wide)) / 2)); }
}

/* Mobile / tablet menu — hamburger + slide-in drawer (drawer lives OUTSIDE <nav> so the nav's
   backdrop-filter/transform can never trap its position:fixed) */
.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: none; cursor: pointer; color: var(--black);
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.nav.dark:not(.scrolled) .nav-toggle { color: #fff; }
.nav-toggle span { display: block; width: 24px; height: 2px; border-radius: 2px; background: currentColor; }
.m-overlay, .m-drawer { display: none; }

@media (max-width: 1100px) {
  .nav { padding: 16px var(--gutter); }
  .nav.scrolled { padding: 10px var(--gutter); }
  .nav-logo-img { height: 28px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { padding: 9px 18px; font-size: 12px; }

  .m-overlay {
    display: block; position: fixed; inset: 0; z-index: 1090;
    background: rgba(12,12,12,.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s;
  }
  .m-drawer {
    display: flex; flex-direction: column;
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 1100;
    width: min(88vw, 400px); background: var(--ivory);
    box-shadow: -8px 0 48px rgba(0,0,0,.22);
    transform: translateX(104%); visibility: hidden;
    transition: transform .42s var(--ease-out), visibility 0s .42s;
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding: 0 28px calc(28px + env(safe-area-inset-bottom));
  }
  body.menu-open .m-overlay { opacity: 1; visibility: visible; transition: opacity .3s; }
  body.menu-open .m-drawer { transform: none; visibility: visible; transition: transform .42s var(--ease-out); }

  .m-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; position: sticky; top: 0; background: var(--ivory); z-index: 2; border-bottom: 1px solid var(--gray-light); }
  .m-head img { height: 28px; width: auto; display: block; }
  .m-close { width: 44px; height: 44px; margin-right: -10px; border: none; background: none; cursor: pointer; color: var(--black); display: flex; align-items: center; justify-content: center; border-radius: 50%; }
  .m-close:hover { background: var(--ivory-2); }
  .m-menu { padding: 8px 0 20px; flex: 1; }
  .m-link, .m-acc > summary {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 56px; padding: 14px 0; list-style: none; cursor: pointer;
    font-size: 19px; font-weight: 600; letter-spacing: .1px; color: var(--black); text-decoration: none;
    border-bottom: 1px solid var(--gray-light);
  }
  .m-acc > summary::-webkit-details-marker { display: none; }
  .m-acc > summary svg { transition: transform .25s; flex-shrink: 0; }
  .m-acc[open] > summary { color: var(--orange); border-bottom-color: transparent; }
  .m-acc[open] > summary svg { transform: rotate(180deg); }
  .m-sub { padding: 2px 0 16px 4px; border-bottom: 1px solid var(--gray-light); }
  .m-sub-label { font-size: 10px; text-transform: uppercase; letter-spacing: 2px; color: var(--orange); font-weight: 700; margin: 12px 0 4px; }
  .m-sub a { display: flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--black-soft); text-decoration: none; }
  .m-sub a:hover, .m-link:hover { color: var(--orange); }
  .m-sub .m-sub-all { color: var(--orange); font-weight: 700; font-size: 14px; }
  .m-cta { width: 100%; justify-content: center; margin-top: 8px; }
  .m-contact { display: flex; gap: 10px; margin-top: 14px; }
  .m-contact a { flex: 1; text-align: center; padding: 13px 10px; border: 1.5px solid var(--gray-light); border-radius: 60px; font-size: 13px; font-weight: 600; color: var(--black); text-decoration: none; }
}
@media (max-width: 420px) { .nav-cta { display: none; } }

/* ——— Section base ——— */
.panel {
  position: relative; min-height: 100vh; min-height: var(--vh-full);
  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 ——— (deeper forest green than the CTA bands above it, so the CTA never merges into the footer) */
.site-footer { --sf-bg: #1d4a33; background: var(--sf-bg); color: #fff; padding: var(--section-y) var(--gutter) 32px; }
.sf-grid { display: grid; grid-template-columns: 2.2fr 1fr 1.5fr 1fr 1fr; gap: clamp(28px, 3.4vw, 48px); max-width: var(--container-wide); margin: 0 auto 48px; align-items: start; }
.sf-logo { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 12px; text-decoration: none; }
.sf-logo img { height: 30px; width: auto; display: block; filter: brightness(0) invert(1); }
.sf-about-more > summary { display: none; list-style: none; }
.sf-about-more > summary::-webkit-details-marker { display: none; }
.sf-about { font-size: 13.5px; color: rgba(255,255,255,.82); line-height: 1.72; max-width: 400px; margin-bottom: 16px; }
.sf-about p { margin-bottom: 12px; } .sf-about p:last-child { margin-bottom: 0; }
.sf-tagline { font-size: 14px; color: #fff; font-weight: 700; max-width: 400px; margin-bottom: 14px; }
.sf-tagline span { color: var(--orange-light); white-space: nowrap; }
.sf-loc { font-size: 12.5px; color: rgba(255,255,255,.74); }
.sf-col { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.sf-group { min-width: 0; }
.sf-title { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--orange-light); font-weight: 700; margin-bottom: 16px; }
.sf-list { display: flex; flex-direction: column; gap: 10px; }
.sf-pop { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.sf-link { font-size: 13.5px; color: rgba(255,255,255,.86); text-decoration: none; transition: color .2s; letter-spacing: .2px; }
.sf-link.sm { font-size: 13px; white-space: nowrap; }
.sf-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.sf-bottom { max-width: var(--container-wide); margin: 0 auto; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); font-size: 12px; color: rgba(255,255,255,.72); }

@media (max-width: 1100px) {
  .sf-link { display: flex; align-items: center; min-height: 40px; }
  .sf-list { gap: 0; }
  .sf-pop { gap: 0 16px; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .sf-grid { grid-template-columns: 1fr 1.5fr 1fr 1fr; }
  .sf-brand { grid-column: 1 / -1; }
  .sf-col-explore { order: 1; } .sf-pop-col { order: 2; } .sf-col-company { order: 3; } .sf-col-connect { order: 4; }
  .sf-about, .sf-tagline { max-width: 680px; }
}
@media (max-width: 900px) and (min-width: 701px) {
  .sf-grid { grid-template-columns: repeat(3, 1fr); }
  .sf-brand { grid-column: 1 / -1; }
  .sf-col-explore { order: 1; } .sf-col-company { order: 2; } .sf-col-connect { order: 3; }
  .sf-pop-col { order: 4; grid-column: 1 / -1; }
  .sf-pop { grid-template-columns: repeat(4, 1fr); }
  .sf-about, .sf-tagline { max-width: 680px; }
}
@media (max-width: 700px) {
  .sf-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; margin-bottom: 36px; }
  .sf-brand { grid-column: 1 / -1; }
  .sf-col-explore { order: 1; } .sf-col-company { order: 2; } .sf-col-connect { order: 3; } .sf-pop-col { order: 4; }
  .sf-pop { grid-template-columns: 1fr; gap: 0; }
  .sf-about-more > summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-size: 14px; font-weight: 600; color: #fff; cursor: pointer; border-top: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); margin: 4px 0 14px; }
  .sf-about-more > summary::after { content: '+'; font-size: 22px; font-weight: 400; line-height: 1; color: var(--orange-light); }
  .sf-about-more[open] > summary::after { content: '\2212'; }
}

/* ——— Scroll reveal ——— (hidden start state only when scripts run: <html class="js">) */
.js .reveal { opacity: 0; transform: translateY(28px); }
.reveal.visible { opacity: 1; transform: translateY(0); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .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); }
.js .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); }
@media (max-width: 560px) {
  .js .reveal { transform: translateY(16px); }
  .js .reveal-left { transform: translateX(-16px); }
  .js .reveal-right { transform: translateX(16px); }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal-left, .js .reveal-right, .js .skew-in { opacity: 1; transform: none; }
}
/* the revealed state must out-rank the (phone) start-state rules above, whatever the source order */
.js .reveal.visible, .js .reveal-left.visible, .js .reveal-right.visible, .js .skew-in.visible { opacity: 1; transform: none; }

/* 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; }
.reveal.revealed, .reveal-left.revealed, .reveal-right.revealed, .skew-in.revealed { transition-delay: 0s !important; }

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

/* ══════════ SKEW ENTRANCE ══════════ */
.js .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: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--orange-ink); margin-bottom: 16px; display: block; }
.section-heading { font-family: var(--f-display); font-size: clamp(28px, 4vw, 56px); font-weight: 900; line-height: 1.2; 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: clamp(56px, 7vw, 80px) var(--gutter); text-align: center; display: block; }
.enquiry-strip h2 { font-family: var(--f-display); font-size: clamp(32px,5vw,60px); font-weight: 900; line-height: 1.15; color: #fff; margin-bottom: 16px; }
.enquiry-strip h2 em { font-style: italic; color: var(--orange-light); }
.enquiry-strip p { font-size: 16px; color: rgba(255,255,255,.84); margin-bottom: 40px; }
.enquiry-strip .section-label { color: rgba(255,255,255,.82); font-size: 11px; line-height: 1.5; margin: 0 auto 16px; max-width: none; }

/* ——— Enquiry strip: fluid padding ——— */
@media (max-width: 900px) { .enquiry-strip { padding: 56px var(--gutter); } }

/* ——— 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: var(--scrim-card); }
.itin-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; color: #fff; text-shadow: 0 1px 14px rgba(0,0,0,.5); }
.itin-region { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--orange-light); font-weight: 700; 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: 12px; color: rgba(255,255,255,.86); 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: var(--scrim-card); }
.dest-card-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px; color: #fff; text-shadow: 0 1px 14px rgba(0,0,0,.5); }
.dest-card-region { font-size: 10px; color: var(--orange-light); 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: 13px; color: rgba(255,255,255,.88); line-height: 1.5; 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-light); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
@media (hover: none) { .dest-card-btn { opacity: 1; transform: none; } .itin-hover { display: none; } }
.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; } }

/* FAQ accordion — single sitewide style (native <details>/<summary>), also defined in page-destination-detail.css for destination/experience pages */
.dg-faq-list { display: flex; flex-direction: column; gap: 12px; }
.dg-faq-item { background: var(--white); border: 1px solid var(--gray-light); border-radius: 14px; padding: 4px 22px; }
.dg-faq-item[open] { border-color: rgba(213, 142, 74, .35); }
.dg-faq-q { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-family: var(--f-display); font-size: 16px; font-weight: 700; color: var(--black); }
.dg-faq-q::-webkit-details-marker { display: none; }
.dg-faq-toggle { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--orange-pale); color: var(--orange-ink); font-family: var(--f-body); font-size: 22px; font-weight: 500; line-height: 1; display: flex; align-items: center; justify-content: center; transition: transform .25s var(--ease-out), background .2s; }
.dg-faq-item[open] .dg-faq-toggle { transform: rotate(45deg); }
.dg-faq-a { padding: 0 0 20px; font-size: 14px; line-height: 1.75; color: var(--gray); }
.dg-faq-a p { margin: 0 0 12px; }
.dg-faq-a p:last-child { margin-bottom: 0; }

/* Testimonials cards — sitewide, also defined in page-destination-detail.css for destination/experience pages */
.dg-testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 28px; }
.dg-testi-card { background: #fff; border-radius: 14px; padding: 28px; position: relative; box-shadow: 0 2px 12px rgba(0, 0, 0, .04); }
.dg-testi-quote { font-family: var(--f-display); font-size: 48px; line-height: 1; color: var(--orange); display: block; margin-bottom: 8px; }
.dg-testi-text { font-size: 14px; line-height: 1.75; color: var(--black-soft); margin-bottom: 20px; }
.dg-testi-author { display: flex; align-items: center; gap: 12px; }
.dg-testi-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--orange-pale); color: var(--orange); font-weight: 700; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.dg-testi-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.dg-testi-name { font-size: 13px; font-weight: 700; color: var(--black); }
.dg-testi-trip { font-size: 11px; color: var(--gray); }
.dg-testi-card .travenza-stars { display: block; color: var(--orange); font-size: 13px; letter-spacing: 2px; margin-bottom: 8px; }

