/**
 * Estilos Customizados — iavoos
 * Contém regras de layout, carrossel infinito, colapsáveis e estados dinâmicos.
 */

body {
  font-family: 'Inter', sans-serif;
  background: #fafbff;
  color: #0b1437;
  -webkit-font-smoothing: antialiased;
}

.font-display {
  font-family: 'Sora', sans-serif;
  letter-spacing: -.02em;
}

.glass {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
}

.hero-bg {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255,106,66,.35), transparent 60%),
    radial-gradient(900px 500px at 10% 10%, rgba(53,119,255,.35), transparent 60%),
    linear-gradient(180deg, #0b1437 0%, #132158 45%, #1b2f8a 100%);
}

/* Layout Marquee Fluido e Infinito */
.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
}

.marquee-content {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  min-width: 100%;
  gap: 2.5rem;
  animation: scroll 40s linear infinite;
  will-change: transform;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.grad-text {
  background: linear-gradient(90deg,#fff 0%,#bcd9ff 60%,#ff8a6b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-tab {
  position: relative;
  transition: color .2s;
}

.nav-tab::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg,#3577ff,#ff6a42);
  border-radius: 9999px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}

.nav-tab.active::after {
  transform: scaleX(1);
}

.nav-tab.active {
  color: #1743d0;
}

.tp-widget-wrap {
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 10px 40px -10px rgba(23,67,208,.15);
  overflow: hidden;
}

.tp-widget-wrap iframe {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  border-radius: 12px !important;
}

.map-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(10,18,60,.35);
  background: #fff;
}

.map-container iframe {
  display: block;
  width: 100% !important;
}

#tpwl-search, #tpwl-tickets {
  width: 100%;
}

#tpwl-search {
  min-height: 80px;
}

.collapsible {
  position: absolute;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  width: 100%;
  left: 0;
  transition: opacity .4s ease, visibility .4s ease;
}

.collapsible.open {
  position: relative;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* ESTADO DE BUSCA ATIVA */
body.search-active #hero {
  min-height: auto !important;
  padding-top: 5rem !important;
  padding-bottom: 0 !important;
  background: #0b1437 !important;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

body.search-active #hero > div {
  max-width: none !important;
  width: 100% !important;
  grid-template-columns: 1fr !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
}

body.search-active #heroTextContainer {
  display: none !important;
}

body.search-active #heroSearchWrapper {
  width: 100% !important;
  max-width: none !important;
  display: block !important;
  padding: 0 !important;
}

body.search-active #heroSearchContainer {
  max-width: none !important;
  width: 100% !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0.5rem 0 !important;
  margin: 0 !important;
}

body.search-active .tp-widget-wrap {
  max-width: 1280px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 1rem !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.search-active #tpwl-search {
  width: 100% !important;
  max-width: none !important;
}

body.search-active #tpwl-search iframe {
  width: 100% !important;
  max-width: none !important;
  min-width: 100% !important;
}

body.search-active #blogFeed,
body.search-active #tours,
body.search-active #whyUs,
body.search-active #marqueeSection,
body.search-active #destinationsSection,
body.search-active #mapSection,
body.search-active #calendarSection {
  display: none !important;
}

@media (max-width: 767px) {
  body.search-active footer, body.search-active #viralLoop {
    display: none !important;
  }
  body.search-active #hero {
    padding-top: 4.5rem !important;
  }
  #blogFeed article a.block.h-48 {
    display: none !important;
  }
  #blogFeed article .p-6 {
    padding: 1.5rem !important;
  }
}

/* Painel Mobile (Drawer) */
.mobile-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: white;
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

.mobile-panel.open {
  transform: translateX(0);
}

.menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 20, 55, 0.5);
  backdrop-filter: blur(4px);
  z-index: 90;
  display: none;
}

.menu-backdrop.show {
  display: block;
}

/* Skeletons de Carregamento para Widgets */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.skeleton-pulse {
  animation: pulse 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.search-active-block {
  display: none;
}

body.search-active .search-active-block {
  display: block !important;
}

/* Sticky Footer Layout to prevent white areas below footer */
main {
  min-height: 70vh;
}

/* Prevent white areas below footer in all browsers */
html {
  background-color: #0f172a !important;
}
body {
  background-color: #fafbff !important;
}

/* Force injected third-party tracking/iframe elements at body root to be hidden to prevent blank spaces, but do not touch absolute/fixed elements like calendars and dropdown autocompletes */
body.home-page > :not(header):not(nav):not(main):not(footer):not(#cookieConsentBanner):not(#compensationModal):not(#menuBackdrop):not(#mobilePanel):not(#toastContainer):not(script):not(style):not(link):not([style*="position: absolute"]):not([style*="position:absolute"]):not([style*="position: fixed"]):not([style*="position:fixed"]) {
  display: none !important;
}

/* --- TRANSITIONS --- */
body, nav, main, footer, .glass, .tp-widget-wrap, .map-container {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* --- DARK MODE OVERRIDES --- */
html.dark, html.dark body {
  background-color: #0b1329 !important;
  color: #e2e8f0 !important;
}
html.dark .bg-white {
  background-color: #0f172a !important;
}
html.dark .bg-slate-50 {
  background-color: #0b1329 !important;
}
html.dark .text-slate-900 {
  color: #f8fafc !important;
}
html.dark .text-slate-800 {
  color: #f1f5f9 !important;
}
html.dark .text-slate-700 {
  color: #cbd5e1 !important;
}
html.dark .text-slate-600 {
  color: #94a3b8 !important;
}
html.dark .text-brand-900 {
  color: #ffffff !important;
}
html.dark .border-slate-100 {
  border-color: rgba(255, 255, 255, 0.05) !important;
}
html.dark .border-brand-100 {
  border-color: rgba(255, 255, 255, 0.05) !important;
}
html.dark .glass {
  background: rgba(11, 19, 41, 0.78) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}
html.dark .nav-tab {
  color: #94a3b8;
}
html.dark .nav-tab:hover {
  color: #3577ff;
}
html.dark .nav-tab.active {
  color: #3577ff;
}
html.dark .tp-widget-wrap, html.dark .map-container {
  background: #0f172a !important;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}
html.dark #langSelectorMenu {
  background-color: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.5) !important;
}
html.dark #langSelectorMenu button {
  color: #94a3b8 !important;
}
html.dark #langSelectorMenu button:hover {
  background-color: rgba(255, 255, 255, 0.02) !important;
  color: #ffffff !important;
}

html.dark .mobile-panel {
  background-color: #0f172a !important;
  border-left: 1px solid rgba(255, 255, 255, 0.05) !important;
}
html.dark .mobile-panel span.text-slate-900,
html.dark .mobile-panel span.text-slate-700 {
  color: #ffffff !important;
}
html.dark .mobile-panel .border-slate-100 {
  border-color: rgba(255, 255, 255, 0.05) !important;
}
html.dark .mobile-nav-btn {
  color: #cbd5e1 !important;
}
html.dark .mobile-nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.02) !important;
  color: #3577ff !important;
}
html.dark .bg-brand-50 {
  background-color: rgba(53, 119, 255, 0.1) !important;
}

/* --- MENU PRINCIPAL: SCROLL COLLAPSE & FADE --- */
nav.fixed {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease !important;
  will-change: transform, opacity;
}

nav.nav-hidden {
  transform: translateY(-100%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


