/* ==========================================================================
   ThaiPackages — Visual Enhancement & Motion Layer
   Loaded AFTER style.css on every page. Pure additive overrides:
   richer depth, gradients, micro-interactions and scroll animations.
   All motion is disabled under prefers-reduced-motion.
   ========================================================================== */

:root {
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --gold-grad: linear-gradient(135deg, #ffd27a 0%, #f2aa27 45%, #e08a0b 100%);
  --teal-grad: linear-gradient(135deg, #0d353c 0%, #0a2a30 55%, #061d21 100%);
  --shadow-tint: 0 24px 50px -12px rgba(6, 29, 33, 0.28);
  --glow-gold: 0 10px 30px -6px rgba(242, 170, 39, 0.55);
}

::selection {
  background: rgba(242, 170, 39, 0.35);
  color: #061d21;
}

/* Accessible focus rings */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(242, 170, 39, 0.85);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ==========================================================================
   Scroll progress bar
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1100;
  pointer-events: none;
  background: var(--gold-grad);
  transform-origin: 0 50%;
  transform: scaleX(0);
  box-shadow: 0 0 12px rgba(242, 170, 39, 0.6);
}

/* ==========================================================================
   Header — shrink on scroll, hide on scroll-down, reveal on scroll-up
   ========================================================================== */
.site-header {
  transition: transform 0.25s var(--ease-out-expo), height 0.2s var(--ease-out-expo),
    background-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.nav-hidden {
  transform: translateY(-110%);
}

.site-header.is-compact {
  height: 64px;
  background-color: rgba(6, 29, 33, 0.82);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header .brand-logo-img {
  transition: transform 0.5s var(--ease-spring), height 0.35s ease, width 0.35s ease;
}

.site-header.is-compact .brand-logo-img {
  height: 38px;
  width: 38px;
}

/* ==========================================================================
   Desktop navigation (visible ≥ 1100px; hamburger drawer below that)
   ========================================================================== */
.desktop-nav {
  display: none;
}

@media (min-width: 1100px) {
  .desktop-nav {
    display: block;
    margin-left: auto;
    margin-right: 22px;
  }

  .dnav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
  }

  .dnav > li {
    position: relative;
  }

  .dnav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-heading);
    font-size: 14.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
  }

  .dnav-link svg {
    opacity: 0.7;
    transition: transform 0.2s ease;
  }

  .dnav-link:hover,
  .dnav > li:focus-within > .dnav-link,
  .dnav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
  }

  .dnav-link.active {
    box-shadow: inset 0 -2px 0 var(--gold);
  }

  .dnav-has-menu:focus-within > .dnav-link svg {
    transform: rotate(180deg);
  }

  .dnav-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    min-width: 220px;
    padding: 8px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 24px 48px -12px rgba(6, 29, 33, 0.35), 0 0 0 1px rgba(6, 29, 33, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  }

  /* invisible bridge so the menu doesn't close while the pointer moves down to it */
  .dnav-menu::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
  }

  /* Keyboard users open dropdowns with Tab */
  .dnav-has-menu:focus-within > .dnav-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }

  .dnav-menu a.dnav-menu-all {
    font-weight: 700;
    color: var(--teal-900);
    border-bottom: 1px solid #eef2f6;
    border-radius: 9px 9px 0 0;
    margin-bottom: 4px;
  }

  .dnav-menu a {
    display: block;
    padding: 10px 14px;
    border-radius: 9px;
    color: var(--teal-950);
    font-size: 14.5px;
    font-weight: 500;
    transition: background-color 0.12s ease, color 0.12s ease;
  }

  .dnav-menu a:hover,
  .dnav-menu a:focus-visible {
    background: #fef5e7;
    color: #b06f00;
  }

  .site-header .hamburger-btn {
    display: none;
  }
}

/* Hover dropdowns only where a real mouse exists. On touch screens (phones, iPads) a tap on
   "Tour Packages" / "Destinations" must open the page immediately; iOS otherwise treats the
   first tap as a hover and just shows the dropdown, which feels like a dead link. */
@media (min-width: 1100px) and (hover: hover) and (pointer: fine) {
  .dnav-has-menu:hover > .dnav-link svg {
    transform: rotate(180deg);
  }

  .dnav-has-menu:hover > .dnav-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
}

/* "All Destinations" / "All Tour Packages" at the top of each drawer list */
.drawer-submenu a.drawer-link-all {
  font-weight: 700;
  color: var(--gold);
}

/* ==========================================================================
   Floating Instagram button (fixed on the left side)
   ========================================================================== */
.ig-float {
  position: fixed;
  left: 0;
  top: 50%;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 12px 12px;
  color: #ffffff;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-radius: 0 16px 16px 0;
  box-shadow: 0 12px 28px -8px rgba(188, 24, 136, 0.55);
  transform: translateY(-50%);
  transition: padding 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.ig-float svg {
  flex-shrink: 0;
}

.ig-float-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  transition: max-width 0.25s ease;
}

.ig-float:hover,
.ig-float:focus-visible {
  color: #ffffff;
  padding-right: 18px;
  box-shadow: 0 16px 34px -8px rgba(188, 24, 136, 0.7);
}

.ig-float:hover .ig-float-label,
.ig-float:focus-visible .ig-float-label {
  max-width: 140px;
}

body.drawer-open .ig-float {
  opacity: 0;
  pointer-events: none;
}

/* Laptops/tablets: the side tab would cover page text, so it becomes a round corner button */
@media (max-width: 1379px) {
  .ig-float {
    top: auto;
    bottom: 24px;
    left: 20px;
    padding: 13px;
    border-radius: 50%;
    transform: none;
  }

  .ig-float:hover,
  .ig-float:focus-visible {
    padding-right: 13px;
    transform: translateY(-2px);
  }

  .ig-float-label {
    display: none;
  }
}

@media (max-width: 767px) {
  .ig-float {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    padding: 11px;
  }
}

/* ==========================================================================
   Drawer quick actions (Plan / WhatsApp / Call / Instagram)
   ========================================================================== */
.drawer-content {
  overflow-y: auto;
}

.drawer-actions {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.drawer-actions-row .btn {
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 14px;
}

.drawer-actions .btn-phone-text {
  align-items: center;
}

.drawer-ig {
  align-self: center;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 600;
}

.drawer-ig:hover {
  color: var(--gold);
}

/* Footer contact pills: call · WhatsApp · email · Instagram */
.footer-direct-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.footer-direct-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.footer-direct-link:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--gold);
  color: #ffffff;
}

.footer-direct-link.footer-wa:hover {
  border-color: #25d366;
}

.footer-direct-link[href*="instagram.com"]:hover {
  border-color: #dc2743;
}

/* Telugu helper labels: a touch smaller and never all-caps */
[lang="te"] {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-family: 'Noto Sans Telugu', 'Nirmala UI', 'Gautami', var(--font-body);
}

/* ==========================================================================
   Category & service page template
   ========================================================================== */
.hero-section.hero-category {
  min-height: 440px;
  padding: 150px 0 90px;
}

.hero-category .hero-inner p {
  max-width: 620px;
}

.cat-section {
  padding-top: 80px;
}

.cat-wrap {
  max-width: 1000px;
}

.cat-copy {
  max-width: 780px;
  margin: 0 auto;
  text-align: left;
}

.cat-copy h2 {
  margin: 6px 0 22px;
}

.cat-copy h3 {
  margin: 30px 0 10px;
  font-size: 20px;
  color: var(--teal-800);
}

.cat-copy p {
  font-size: 16.5px;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 16px;
}

.cat-copy p.cat-tagline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  color: var(--teal-900);
  padding-left: 14px;
  border-left: 4px solid var(--gold);
  margin-top: 20px;
}

.cat-highlights {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 48px 0;
}

.cat-highlight {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 20px;
  background: #ffffff;
  border: 1px solid #e8eef3;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(6, 29, 33, 0.04);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease;
}

.cat-highlight:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 170, 39, 0.45);
  box-shadow: var(--shadow-tint);
}

.cat-highlight-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: #fef5e7;
  margin-bottom: 6px;
}

.cat-highlight strong {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--teal-950);
}

.cat-highlight span:last-child {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.cat-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 32px;
  border-radius: 24px;
  background: var(--teal-grad);
  color: #ffffff;
  box-shadow: 0 30px 60px -24px rgba(6, 29, 33, 0.5);
}

.cat-cta h3 {
  color: #ffffff;
  font-size: 24px;
  margin-bottom: 6px;
}

.cat-cta p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  max-width: 440px;
}

.cat-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cat-cta .btn-phone.btn-phone-solid {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.cat-related-link {
  grid-column: 1 / -1;
  justify-self: start;
  color: var(--gold);
  font-weight: 700;
  font-size: 15px;
  border-bottom: 1px solid rgba(242, 170, 39, 0.4);
}

.cat-related-link:hover {
  color: #ffffff;
  border-color: #ffffff;
}

@media (max-width: 900px) {
  .cat-highlights {
    grid-template-columns: repeat(2, 1fr);
  }

  .cat-cta {
    grid-template-columns: 1fr;
    padding: 26px 20px;
  }

  .cat-cta-actions {
    justify-content: stretch;
    flex-direction: column;
  }

  .cat-cta-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .cat-highlights {
    gap: 10px;
    margin: 32px 0;
  }

  .cat-highlight {
    padding: 16px 14px;
  }

  .cat-highlight-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .cat-highlight strong {
    font-size: 14.5px;
  }

  .cat-highlight span:last-child {
    font-size: 13px;
  }
}

/* Contact page: direct call / WhatsApp / Instagram box */
.direct-contact-box {
  margin-top: 28px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid #e8eef3;
  border-left: 4px solid var(--gold);
  border-radius: 16px;
  box-shadow: 0 12px 30px -18px rgba(6, 29, 33, 0.3);
}

.direct-contact-title {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--teal-950);
}

.direct-contact-box p {
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 14px;
}

.direct-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.direct-contact-actions .btn {
  gap: 8px;
}

/* Branded placeholder tiles (drawn until custom photography is uploaded) */
img.img-placeholder {
  background-color: #0a2a30 !important;
  object-fit: cover;
}

/* Wordmark matched to the brand logo: stacked, wide-tracked caps */
.brand-logo {
  gap: 10px;
}

.brand-logo-img {
  background-color: transparent !important;
  object-fit: contain;
}

.brand-logo .brand-text {
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  font-family: 'Montserrat', var(--font-heading);
  text-transform: uppercase;
}

.brand-logo .brand-name-bold {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.32em;
  line-height: 1;
}

.brand-logo .brand-name-light {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.42em;
  line-height: 1;
  opacity: 0.85;
}

.site-header .brand-logo:hover .brand-logo-img {
  transform: rotate(-8deg) scale(1.08);
}

.hamburger-btn span {
  transition: transform 0.3s var(--ease-out-expo), width 0.3s var(--ease-out-expo), opacity 0.2s ease;
}

.hamburger-btn:hover span:nth-child(2) {
  transform: translateX(4px);
}

/* Drawer: staggered link entrance */
.mobile-drawer.open .drawer-menu > li,
.mobile-drawer.active .drawer-menu > li,
.mobile-drawer[aria-hidden="false"] .drawer-menu > li {
  animation: tpSlideIn 0.3s var(--ease-out-expo) both;
}

.mobile-drawer .drawer-menu > li:nth-child(1) { animation-delay: 0.02s; }
.mobile-drawer .drawer-menu > li:nth-child(2) { animation-delay: 0.04s; }
.mobile-drawer .drawer-menu > li:nth-child(3) { animation-delay: 0.06s; }
.mobile-drawer .drawer-menu > li:nth-child(4) { animation-delay: 0.08s; }
.mobile-drawer .drawer-menu > li:nth-child(5) { animation-delay: 0.10s; }
.mobile-drawer .drawer-menu > li:nth-child(6) { animation-delay: 0.12s; }

.drawer-link {
  transition: color 0.2s ease, transform 0.3s var(--ease-out-expo);
}

.drawer-link:hover {
  transform: translateX(6px);
}

@keyframes tpSlideIn {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Buttons — gradient fill, shine sweep, click ripple
   ========================================================================== */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.55) 50%, transparent 100%);
  transform: skewX(-20deg);
  z-index: -1;
  pointer-events: none;
}

.btn:hover::after {
  animation: tpShine 0.5s var(--ease-out-expo);
}

@keyframes tpShine {
  to {
    left: 130%;
  }
}

.btn-primary {
  background: var(--gold-grad);
  background-size: 160% 160%;
  background-position: 0% 50%;
  color: #061d21;
  box-shadow: var(--glow-gold);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease, background-position 0.3s ease;
}

.btn-primary:hover {
  background: var(--gold-grad);
  background-size: 160% 160%;
  background-position: 100% 50%;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 36px -8px rgba(242, 170, 39, 0.7);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.18s ease-out, background-color 0.18s ease, border-color 0.18s ease;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.18);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* Secondary buttons placed on light backgrounds keep the dark style */
.section:not(.section-dark) .btn-secondary,
.bg-subtle .btn-secondary,
.bg-white .btn-secondary {
  background-color: var(--teal-900);
  border-color: var(--teal-900);
}

.btn .tp-ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  animation: tpRipple 0.45s ease-out forwards;
  z-index: -1;
}

@keyframes tpRipple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* WhatsApp CTA: brand green, chat-bubble corner */
.btn-wa {
  background: #25d366;
  color: #ffffff;
  border-radius: 999px 999px 999px 8px;
  box-shadow: 0 10px 26px -8px rgba(18, 140, 126, 0.7);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn-wa:hover {
  background: #1fbe5b;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px rgba(18, 140, 126, 0.85);
}

/* Phone CTA: outlined, shows the number */
.btn-phone {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding-top: 8px;
  padding-bottom: 8px;
  transition: transform 0.18s ease-out, background-color 0.18s ease, border-color 0.18s ease;
}

.btn-phone:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--gold);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-phone svg {
  color: var(--gold);
}

.btn-phone:hover svg {
  animation: tpRing 0.5s ease-in-out;
}

.btn-phone-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.btn-phone-text small {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
}

/* Instagram CTA */
.btn-ig {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px -10px rgba(204, 35, 102, 0.7);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease;
}

.btn-ig:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

/* On light backgrounds the phone button goes solid navy */
.btn-phone.btn-phone-solid {
  background: var(--teal-900);
  border-color: var(--teal-900);
}

.btn-phone.btn-phone-solid:hover {
  background: var(--teal-950);
}

.hero-text-link {
  display: inline-block;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  min-height: 0;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.hero-text-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* ==========================================================================
   Hero — cinematic overlay, entrance choreography, trust chips, scroll cue
   ========================================================================== */
.hero-section {
  isolation: isolate;
}

.hero-section .hero-overlay {
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(6, 29, 33, 0.55) 0%, rgba(6, 29, 33, 0) 70%),
    linear-gradient(180deg, rgba(6, 29, 33, 0.55) 0%, rgba(6, 29, 33, 0.15) 35%, rgba(6, 29, 33, 0.35) 70%, rgba(6, 29, 33, 0.92) 100%);
}

.hero-section.hero-home {
  min-height: min(94vh, 880px);
  padding-bottom: 140px;
}

/* Homepage hero: ONE clean, full-bleed cinematic gradient, top to bottom. No spot shadows,
   no vignette behind the text: the whole photo is toned evenly, a touch deeper at the very
   top (menu) and bottom (stats strip), so white text reads effortlessly everywhere. */
.hero-section.hero-home .hero-bg-media {
  opacity: 1;
}

.hero-section.hero-home .hero-overlay {
  background: linear-gradient(180deg,
    rgba(4, 20, 24, 0.52) 0%,
    rgba(4, 20, 24, 0.34) 22%,
    rgba(4, 20, 24, 0.30) 55%,
    rgba(4, 20, 24, 0.46) 80%,
    rgba(4, 20, 24, 0.80) 100%);
}

/* Crisp, tight text shadows only (no glows) */
.hero-section.hero-home .hero-inner h1 {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-section.hero-home .hero-inner p,
.hero-section.hero-home .hero-trust li,
.hero-section.hero-home .hero-text-link {
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-section.hero-home .hero-eyebrow {
  background: rgba(6, 29, 33, 0.38);
  border-color: rgba(255, 255, 255, 0.35);
}

.hero-bg-media {
  animation: tpHeroZoomIn 0.8s var(--ease-out-expo) both, kenBurns 30s ease-in-out 0.8s infinite;
}

@keyframes tpHeroZoomIn {
  from {
    transform: scale(1.06);
    opacity: 0.6;
  }
  to {
    transform: scale(1);
    filter: none;
  }
}

/* Staggered entrance for whatever lives inside the hero */
.hero-inner > *,
.info-hero-inner > * {
  animation: tpHeroRise 0.5s var(--ease-out-expo) backwards;
}

.hero-inner > *:nth-child(1), .info-hero-inner > *:nth-child(1) { animation-delay: 0.10s; }
.hero-inner > *:nth-child(2), .info-hero-inner > *:nth-child(2) { animation-delay: 0.05s; }
.hero-inner > *:nth-child(3), .info-hero-inner > *:nth-child(3) { animation-delay: 0.1s; }
.hero-inner > *:nth-child(4), .info-hero-inner > *:nth-child(4) { animation-delay: 0.15s; }
.hero-inner > *:nth-child(5), .info-hero-inner > *:nth-child(5) { animation-delay: 0.2s; }
.hero-inner > *:nth-child(n+6), .info-hero-inner > *:nth-child(n+6) { animation-delay: 0.25s; }

@keyframes tpHeroRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-inner h1 {
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

.hero-section.hero-home .hero-inner h1 {
  font-size: clamp(38px, 6.6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.text-gradient {
  background: linear-gradient(110deg, #ffe2a3 0%, #f2aa27 35%, #ffd27a 55%, #f2aa27 75%, #ffe2a3 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: tpGradientPan 6s linear infinite;
  text-shadow: none;
  display: inline-block;
  padding-bottom: 0.06em;
}

@keyframes tpGradientPan {
  to {
    background-position: 220% center;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 8px;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-eyebrow .dot {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold-grad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.hero-eyebrow .dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(242, 170, 39, 0.7);
  animation: tpPing 2s var(--ease-out-expo) infinite;
}

@keyframes tpPing {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  80%, 100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-top: 30px;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13.5px;
  font-weight: 500;
}

.hero-trust svg {
  flex-shrink: 0;
  color: var(--gold);
}

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 96px;
  z-index: 10;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
  opacity: 0;
  animation: tpFadeIn 0.4s ease 0.5s forwards;
  transition: border-color 0.2s ease;
  min-height: 0;
}

.hero-scroll-cue:hover {
  border-color: #ffffff;
}

.hero-scroll-cue span {
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--gold);
  animation: tpScrollDot 1.8s var(--ease-out-expo) infinite;
}

@keyframes tpScrollDot {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateY(14px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 0;
  }
}

@keyframes tpFadeIn {
  to {
    opacity: 1;
  }
}

/* ==========================================================================
   Stats strip — glass card overlapping the hero
   ========================================================================== */
.stats-strip {
  position: relative;
  z-index: 20;
  margin-top: -72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  box-shadow: 0 30px 60px -20px rgba(6, 29, 33, 0.35), 0 0 0 1px rgba(6, 29, 33, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}

.stat-item {
  position: relative;
  padding: 26px 20px;
  text-align: center;
  transition: background-color 0.3s ease;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: linear-gradient(180deg, transparent, #e2e8f0, transparent);
}

.stat-item:hover {
  background-color: #fffaf0;
}

.stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #0a2a30 0%, #217381 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .hero-section.hero-home {
    min-height: auto;
    padding-bottom: 120px;
  }

  .hero-scroll-cue {
    display: none;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -64px;
    border-radius: 18px;
  }

  .stat-item {
    padding: 18px 12px;
  }

  .stat-item:nth-child(3)::before {
    display: none;
  }

  .stat-item:nth-child(n + 3) {
    border-top: 1px solid #eef2f6;
  }

  .hero-trust {
    gap: 8px 16px;
  }

  .hero-trust li {
    font-size: 12.5px;
  }

  .hero-eyebrow {
    font-size: 11.5px;
    padding: 6px 12px 6px 6px;
    gap: 8px;
    margin-bottom: 16px;
  }
}

/* Short desktop windows: the scroll cue would collide with the trust chips */
@media (max-height: 760px) {
  .hero-scroll-cue {
    display: none;
  }
}

/* ==========================================================================
   Section headers — animated accent bar + eyebrow
   ========================================================================== */
.section-header h2 {
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 6px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: var(--gold-grad);
  transform-origin: left center;
  transition: transform 0.4s var(--ease-out-expo) 0.05s;
}

.section-header.centered h2::after {
  left: 50%;
  margin-left: -28px;
  transform-origin: center;
}

.section-header.reveal:not(.is-visible) h2::after {
  transform: scaleX(0);
}

.eyebrow-pill {
  background: linear-gradient(135deg, #e0f7fa 0%, #fef5e7 100%);
  border: 1px solid rgba(14, 116, 144, 0.15);
  color: #0e7490;
  padding: 6px 16px;
  box-shadow: 0 4px 14px -6px rgba(14, 116, 144, 0.3);
}

/* ==========================================================================
   Group discount banner — living gradient + shimmer
   ========================================================================== */
.group-discount-banner {
  background: linear-gradient(120deg, #061d21 0%, #0d353c 30%, #185a65 50%, #0d353c 70%, #061d21 100%);
  background-size: 260% 100%;
  animation: tpBannerFlow 12s ease-in-out infinite;
  border-radius: 18px;
  padding: 18px 26px;
  margin-top: 28px;
}

.group-discount-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(242, 170, 39, 0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: tpBannerShimmer 5s ease-in-out infinite;
  pointer-events: none;
}

.group-discount-banner::before {
  background: var(--gold-grad);
  width: 5px;
}

@keyframes tpBannerFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes tpBannerShimmer {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

.group-discount-badge {
  background: var(--gold-grad);
  animation: tpBadgeBob 3s ease-in-out infinite;
}

@keyframes tpBadgeBob {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-2px) rotate(-2deg); }
}

.group-discount-btn {
  position: relative;
  z-index: 1;
  background: var(--gold-grad);
  box-shadow: var(--glow-gold);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.3s ease, background 0.3s ease;
}

.group-discount-btn:hover {
  background: #ffffff;
  transform: translateY(-2px) scale(1.03);
}

/* ==========================================================================
   Package & destination cards — depth, glare, image zoom
   ========================================================================== */
.package-card,
.destination-card,
.commitment-card-visual,
.review-card,
.family-trust-card,
.step-card {
  backface-visibility: hidden;
}

.package-card,
.destination-card {
  position: relative;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(6, 29, 33, 0.04), 0 12px 32px -14px rgba(6, 29, 33, 0.22);
  transition: transform 0.22s ease-out, box-shadow 0.22s ease-out, border-color 0.2s ease;
}

.package-card:hover,
.destination-card:hover,
.package-card.compact:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-tint);
}

.package-card.compact {
  border-radius: 18px;
  border-color: rgba(226, 232, 240, 0.9);
  transition: transform 0.22s ease-out, box-shadow 0.22s ease-out, border-color 0.2s ease;
}

.package-card.compact:hover {
  border-color: rgba(242, 170, 39, 0.55);
}

.package-card.compact .package-media-wrap {
  height: 190px;
  border-radius: 17px 17px 0 0;
}

/* Glare that follows the pointer (vars set by motion.js) */
.tp-glare::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 45%);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 3;
}

.tp-glare:hover::after {
  opacity: 1;
}

/* Snappier transform while following the pointer */
.package-card.tp-tilting,
.destination-card.tp-tilting,
.commitment-card-visual.tp-tilting,
.review-card.tp-tilting {
  transition: transform 0.08s linear, box-shadow 0.22s ease-out, border-color 0.2s ease;
}

/* Image zoom + darkening gradient for legibility of floating tags */
.package-media-wrap::after,
.dest-media-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 29, 33, 0) 50%, rgba(6, 29, 33, 0.45) 100%);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.package-card .package-media-wrap img,
.destination-card .dest-media-wrap img {
  transition: transform 0.45s ease-out, filter 0.3s ease;
}

.package-card:hover .package-media-wrap img,
.destination-card:hover .dest-media-wrap img {
  transform: scale(1.06);
  filter: saturate(1.15);
}

.package-badge-tag,
.package-duration-tag,
.dest-region-badge {
  z-index: 2;
}

.package-card.compact .package-badge-tag {
  background: var(--gold-grad);
  color: #061d21;
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 10px;
  box-shadow: 0 6px 14px -4px rgba(0, 0, 0, 0.35);
}

.package-card.compact .package-duration-tag {
  border-radius: 999px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.package-card.compact .package-duration-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.package-card.compact h3 {
  transition: color 0.25s ease;
}

.package-card.compact:hover h3 {
  color: #185a65;
}

.package-card.compact .package-price-value {
  font-size: 17px;
  background: linear-gradient(135deg, #0a2a30 0%, #185a65 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.package-card.compact .btn-sm {
  border-radius: 999px;
  padding: 8px 16px;
}

/* Card footers: price on the left, button on the right, with real breathing room.
   (style.css centred both with no gap and added 45px of dead space under every card.) */
.package-card {
  padding-bottom: 0;
}

.package-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 16px;
  margin-top: auto;
  padding-top: 18px;
}

.package-card-body > p {
  margin-bottom: 20px;
}

.package-price-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.package-price-label {
  line-height: 1.2;
}

.package-price-value {
  line-height: 1.2;
}

.package-card-footer .btn {
  flex: 0 0 auto;
  padding: 11px 20px;
}

.package-card.compact .package-card-body {
  padding: 18px 18px 20px;
}

.package-card.compact .package-card-body > p {
  margin-bottom: 16px;
}

.package-card.compact .package-card-footer {
  gap: 12px;
  padding-top: 16px;
}

.package-card.compact .package-card-footer .btn-sm {
  padding: 10px 16px;
}

.dest-card-body > p {
  margin-bottom: 18px;
}

.dest-card-footer {
  padding-top: 16px;
  margin-top: auto;
}

/* Give the carousel room for lift + shadow so nothing is clipped */
.featured-carousel-container {
  padding: 16px 4px 36px;
  margin: -10px -4px -18px;
}

.carousel-btn {
  transition: transform 0.18s ease-out, background-color 0.15s ease, color 0.15s ease, box-shadow 0.18s ease;
}

.carousel-btn:hover:not(:disabled) {
  background: var(--teal-900);
  border-color: var(--teal-900);
  color: var(--gold);
  transform: scale(1.12);
  box-shadow: 0 10px 24px -6px rgba(6, 29, 33, 0.45);
}

/* Carousel position dots (injected by motion.js) */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.carousel-dots button {
  min-height: 0;
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
  transition: width 0.25s ease-out, background-color 0.2s ease;
}

.carousel-dots button.active {
  width: 28px;
  background: var(--gold-grad);
}

/* ==========================================================================
   Light trust cards (Thailand With The Comfort Of Home)
   ========================================================================== */
.section-family-trust {
  position: relative;
  padding: 96px 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(14, 116, 144, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 100%, rgba(242, 170, 39, 0.08) 0%, transparent 40%),
    #ffffff;
  overflow: hidden;
}

.family-trust-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e8eef3;
  border-radius: 20px;
  padding: 30px 24px 26px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(6, 29, 33, 0.04);
  transition: transform 0.22s ease-out, box-shadow 0.22s ease-out, border-color 0.2s ease;
}

.family-trust-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease-out;
}

.family-trust-card:hover {
  transform: translateY(-8px);
  border-color: rgba(242, 170, 39, 0.4);
  background: #ffffff;
  box-shadow: var(--shadow-tint);
}

.family-trust-card:hover::before {
  transform: scaleX(1);
}

.family-trust-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 3px;
  background: var(--gold-grad);
  box-shadow: 0 10px 22px -8px rgba(242, 170, 39, 0.6);
  margin-bottom: 20px;
  transition: transform 0.25s ease-out;
}

.family-trust-card:hover .family-trust-icon {
  transform: scale(1.08) rotate(-6deg);
}

.family-trust-icon img {
  border: 3px solid #ffffff;
}

.family-trust-card h3 {
  font-size: 18px;
}

/* ==========================================================================
   Dark "Why Trust" section — aurora background + glass cards
   ========================================================================== */
.section-aurora {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--teal-grad);
}

.section-aurora::before,
.section-aurora::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  pointer-events: none;
}

.section-aurora::before {
  top: -180px;
  left: -140px;
  background: radial-gradient(circle, rgba(33, 115, 129, 0.9) 0%, transparent 70%);
  animation: tpFloatA 18s ease-in-out infinite;
}

.section-aurora::after {
  bottom: -220px;
  right: -160px;
  background: radial-gradient(circle, rgba(242, 170, 39, 0.45) 0%, transparent 70%);
  animation: tpFloatB 22s ease-in-out infinite;
}

@keyframes tpFloatA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(120px, 80px) scale(1.15); }
}

@keyframes tpFloatB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-140px, -60px) scale(1.1); }
}

.section-aurora .eyebrow-pill {
  background: rgba(242, 170, 39, 0.14);
  border-color: rgba(242, 170, 39, 0.35);
  color: var(--gold);
  box-shadow: none;
}

.section-aurora .section-header h2 {
  color: #ffffff;
}

.section-aurora .section-header p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 820px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
}

.glass-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.section-aurora .family-trust-card.glass-card:hover {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-color: rgba(242, 170, 39, 0.5);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.section-aurora .family-trust-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  padding: 0;
  font-size: 26px;
  background: rgba(242, 170, 39, 0.14);
  border: 1px solid rgba(242, 170, 39, 0.35);
  box-shadow: none;
}

.section-aurora .family-trust-card h3 {
  color: var(--gold);
}

.section-aurora .family-trust-card p {
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Reviews
   ========================================================================== */
.review-card {
  position: relative;
  border-radius: 20px;
  padding: 34px 30px 28px;
  border: 1px solid #e8eef3;
  box-shadow: 0 1px 2px rgba(6, 29, 33, 0.04), 0 12px 32px -18px rgba(6, 29, 33, 0.2);
  overflow: hidden;
  transition: transform 0.22s ease-out, box-shadow 0.22s ease-out, border-color 0.2s ease;
}

.review-card::before {
  content: '\201C';
  position: absolute;
  top: -18px;
  right: 18px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 150px;
  line-height: 1;
  color: rgba(242, 170, 39, 0.16);
  pointer-events: none;
  transition: transform 0.25s ease-out, color 0.2s ease;
}

.review-card:hover {
  transform: translateY(-8px);
  border-color: rgba(242, 170, 39, 0.35);
  box-shadow: var(--shadow-tint);
}

.review-card:hover::before {
  transform: translateY(6px) rotate(-6deg);
  color: rgba(242, 170, 39, 0.28);
}

.review-card p {
  font-size: 15px;
  color: #1f2937;
  position: relative;
}

.review-person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.review-person .review-author {
  padding-top: 0;
  border-top: none;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  color: #061d21;
  background: var(--gold-grad);
  box-shadow: 0 6px 14px -6px rgba(242, 170, 39, 0.7);
}

.review-card .review-stars {
  letter-spacing: 2px;
}

.reveal-group.is-visible .review-stars {
  animation: tpStarPop 0.35s ease-out backwards;
  animation-delay: calc(var(--i, 0) * 40ms + 0.1s);
}

@keyframes tpStarPop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Other card families on inner pages
   ========================================================================== */
.commitment-card-visual,
.step-card {
  transition: transform 0.22s ease-out, box-shadow 0.22s ease-out, border-color 0.2s ease;
}

.commitment-card-visual:hover,
.step-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-tint);
}

.commitment-card-visual,
.step-card {
  border-radius: 20px;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.final-cta-section::before {
  content: '';
  position: absolute;
  inset: -40%;
  z-index: -1;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(242, 170, 39, 0.12) 60deg, transparent 120deg, rgba(33, 115, 129, 0.18) 220deg, transparent 300deg);
  animation: tpSpin 28s linear infinite;
  pointer-events: none;
}

@keyframes tpSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   Floating quick actions — attention pulse + back to top
   ========================================================================== */
/* Two distinct contact widgets (markup upgraded by motion.js → .tp-widgets)
   Desktop: WhatsApp = green chat pill · Call = white card with number
   Mobile:  split bottom action bar  [ Call Now | WhatsApp ]                 */

.global-sticky-actions.tp-widgets {
  align-items: flex-end;
  gap: 10px;
  right: 22px;
  bottom: 22px;
}

.global-sticky-actions.tp-widgets .sticky-action-btn {
  position: relative;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  border-radius: 999px;
  padding: 8px 18px 8px 8px;
  gap: 12px;
  justify-content: flex-start;
  animation: tpPopIn 0.3s ease-out backwards;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease, background-color 0.18s ease;
}

.global-sticky-actions.tp-widgets .sticky-action-btn:hover {
  transform: translateY(-2px);
}

.global-sticky-actions.tp-widgets .sticky-action-btn:nth-child(2) { animation-delay: 0.1s; }
.global-sticky-actions.tp-widgets .sticky-action-btn:nth-child(3) { animation-delay: 0.16s; }

@keyframes tpPopIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Icon badges */
.global-sticky-actions.tp-widgets .sticky-action-btn svg {
  box-sizing: content-box;
  width: 20px;
  height: 20px;
  padding: 10px;
  border-radius: 50%;
}

/* Labels (style.css hides them with !important, so match that) */
.global-sticky-actions.tp-widgets .sticky-action-label {
  display: flex !important;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.global-sticky-actions.tp-widgets .sticky-action-label small {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.8;
}

.global-sticky-actions.tp-widgets .sticky-action-label strong {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.widget-mobile-text {
  display: none;
}

/* WhatsApp: chat-bubble pill */
.global-sticky-actions.tp-widgets .btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  border-radius: 26px 26px 6px 26px;
  box-shadow: 0 10px 28px -6px rgba(18, 140, 126, 0.55);
}

.global-sticky-actions.tp-widgets .btn-whatsapp:hover {
  background: #1fbe5b;
  box-shadow: 0 14px 32px -6px rgba(18, 140, 126, 0.7);
}

.global-sticky-actions.tp-widgets .btn-whatsapp svg {
  width: 24px;
  height: 24px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.22);
}

.wa-online-dot {
  position: absolute;
  top: 6px;
  left: 38px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #b9ffcf;
  border: 2px solid #25d366;
  z-index: 1;
}

.wa-online-dot::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: #b9ffcf;
  animation: tpPing 1.8s ease-out infinite;
}

/* Call: white contact card with navy icon */
.global-sticky-actions.tp-widgets .btn-call {
  background: #ffffff;
  color: var(--teal-950);
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 28px -8px rgba(6, 29, 33, 0.35);
}

.global-sticky-actions.tp-widgets .btn-call:hover {
  border-color: var(--gold);
  box-shadow: 0 14px 32px -8px rgba(6, 29, 33, 0.45);
}

.global-sticky-actions.tp-widgets .btn-call svg,
.global-sticky-actions.tp-widgets .btn-call .call-icon {
  width: 18px;
  height: 18px;
  padding: 11px;
  background: var(--teal-900);
  color: var(--gold);
}

.global-sticky-actions.tp-widgets .btn-call:hover svg {
  animation: tpRing 0.5s ease-in-out;
}

@keyframes tpRing {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-14deg); }
  40% { transform: rotate(12deg); }
  60% { transform: rotate(-8deg); }
  80% { transform: rotate(6deg); }
}

/* Mobile: full-width split bar pinned to the bottom */
@media (max-width: 767px) {
  body.has-contact-widgets {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .global-sticky-actions.tp-widgets {
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: row;
    gap: 0;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -8px 24px rgba(6, 29, 33, 0.12);
    pointer-events: auto;
  }

  .global-sticky-actions.tp-widgets .sticky-action-btn {
    flex: 1;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    margin: 0 4px;
    border-radius: 12px;
    box-shadow: none;
  }

  .global-sticky-actions.tp-widgets .sticky-action-label {
    display: none !important;
  }

  .widget-mobile-text {
    display: inline;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
  }

  .global-sticky-actions.tp-widgets .sticky-action-btn svg,
  .global-sticky-actions.tp-widgets .btn-call .call-icon {
    padding: 0;
    background: none;
    width: 20px;
    height: 20px;
  }

  .global-sticky-actions.tp-widgets .btn-call {
    background: var(--teal-900);
    color: #ffffff;
    border: none;
  }

  .global-sticky-actions.tp-widgets .btn-call .call-icon {
    color: var(--gold);
  }

  .global-sticky-actions.tp-widgets .btn-whatsapp {
    border-radius: 12px;
  }

  .wa-online-dot {
    display: none;
  }

  .global-sticky-actions.tp-widgets .back-to-top {
    position: absolute;
    right: 14px;
    bottom: calc(100% + 12px);
  }
}

.back-to-top {
  pointer-events: auto;
  position: relative;
  width: 46px;
  height: 46px;
  min-height: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  color: var(--teal-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(6, 29, 33, 0.22);
  opacity: 0;
  transform: translateY(16px) scale(0.8);
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.25s ease-out, visibility 0.2s, box-shadow 0.18s ease;
}

.back-to-top.show {
  opacity: 1;
  transform: none;
  visibility: visible;
}

.back-to-top:hover {
  box-shadow: 0 12px 28px rgba(6, 29, 33, 0.32);
  transform: translateY(-3px);
}

.back-to-top svg.ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.back-to-top .ring circle {
  fill: none;
  stroke-width: 3;
}

.back-to-top .ring .track {
  stroke: #e2e8f0;
}

.back-to-top .ring .bar {
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-dasharray: 125.66;
  stroke-dashoffset: 125.66;
  transition: stroke-dashoffset 0.1s linear;
}

/* ==========================================================================
   Footer polish
   ========================================================================== */
.site-footer {
  position: relative;
  background:
    radial-gradient(circle at 85% 0%, rgba(33, 115, 129, 0.25) 0%, transparent 45%),
    var(--teal-950);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
}

.footer-links a {
  display: inline-block;
  transition: color 0.2s ease, transform 0.3s var(--ease-out-expo);
}

.footer-links a:hover {
  transform: translateX(5px);
}

/* ==========================================================================
   Scroll reveal primitives (classes are added by motion.js only,
   so content stays visible if JavaScript is unavailable)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease-out, transform 0.4s var(--ease-out-expo);
}

.reveal.reveal-left {
  transform: translateX(-20px);
}

.reveal.reveal-right {
  transform: translateX(20px);
}

.reveal.reveal-zoom {
  transform: scale(0.98);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-group > * {
  opacity: 0;
}

/* fill-mode "backwards" (not "both") so hover/tilt transforms work after the reveal */
.reveal-group.is-visible > * {
  opacity: 1;
  animation: tpRevealUp 0.4s var(--ease-out-expo) backwards;
  animation-delay: calc(var(--i, 0) * 40ms);
}

@keyframes tpRevealUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Performance
   ========================================================================== */

/* style.css promotes EVERY <img> to its own GPU layer (translateZ(0)). On pages with many
   photos that exhausts memory on low-end phones and slows scrolling. Images that animate
   (hero Ken Burns, card hover zoom) still get layers from their own, more specific rules. */
img {
  -webkit-transform: none;
  transform: none;
}

/* Large blurred aurora blobs: keep them on the GPU so the blur is not repainted every frame */
.section-aurora::before,
.section-aurora::after,
.final-cta-section::before {
  will-change: transform;
}

/* Looping decorative animations pause while their section is off-screen (class set by motion.js) */
.tp-offscreen,
.tp-offscreen *,
.tp-offscreen::before,
.tp-offscreen::after,
.tp-offscreen *::before,
.tp-offscreen *::after {
  animation-play-state: paused !important;
}

/* Let the browser skip layout/paint for far-below-the-fold blocks until they approach the viewport */
.site-footer,
#reviews {
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

/* ==========================================================================
   Older browsers (Safari < 14.1 / iOS < 14.5 have no flexbox `gap` and no `inset`;
   they share the same release, so `inset` support is a reliable proxy)
   ========================================================================== */
@supports not (inset: 0) {
  .package-card-footer > * + *,
  .hero-cta-group > * + *,
  .cat-cta-actions > * + *,
  .direct-contact-actions > * + *,
  .footer-direct-contacts > * + *,
  .hero-trust > * + *,
  .nav-actions > * + *,
  .dnav > li + li {
    margin-left: 12px;
  }

  .footer-direct-contacts > *,
  .direct-contact-actions > *,
  .cat-cta-actions > * {
    margin-bottom: 8px;
  }

  .drawer-actions > * + * {
    margin-top: 10px;
  }

  .tp-glare::after,
  .package-media-wrap::after,
  .dest-media-wrap::after,
  .group-discount-banner::after,
  .back-to-top svg.ring {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }
}

/* ==========================================================================
   Reduced motion: keep the look, drop the movement
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-group > * {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-bg-media {
    animation: none !important;
  }
}
