/**
 * 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;
}

@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 {
  border-radius: 12px !important;
  max-width: 100% !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 {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .6s cubic-bezier(.2,.8,.2,1), opacity .4s ease;
}

.collapsible.open {
  max-height: 4000px;
  opacity: 1;
}

/* 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;
}

@media (max-width: 767px) {
  body.search-active #blogFeed, body.search-active #tours, body.search-active footer, body.search-active #whyUs, 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;
}
