/* ============================================
   TOP TRAVEL CENTRE - PROFESSIONAL ANIMATIONS
   ============================================ */

/* --- SCROLL REVEAL: disabled sitewide ---
   The fade+slide-up effect created stacking contexts (will-change, transform)
   that made search-form dropdowns (date pickers, destination autocomplete)
   render behind later sections in some scroll positions, so clicks on
   calendar days/suggestions could silently miss. Content now shows at full
   opacity immediately; animations.js no longer tags anything for reveal. */

/* --- HERO SECTION --- */
.elementor-widget-heading .elementor-heading-title {
  animation: ttc-heroFadeUp 0.9s cubic-bezier(0.22,1,0.36,1) both;
}
.elementor-widget-text-editor {
  animation: ttc-heroFadeUp 0.9s 0.15s cubic-bezier(0.22,1,0.36,1) both;
}
.elementskit-button, .elementor-widget-button {
  animation: ttc-heroFadeUp 0.9s 0.3s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes ttc-heroFadeUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- CARD HOVER EFFECTS --- */
.ha-card, .elementor-widget-ha-card {
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s ease;
}
.ha-card:hover, .elementor-widget-ha-card:hover .ha-card {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0,0,0,0.18) !important;
}

/* --- IMAGE HOVER ENHANCEMENT --- */
.ha-image-hover-effect figure {
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), filter 0.4s ease;
  overflow: hidden;
}
.ha-image-hover-effect figure:hover {
  transform: scale(1.03);
  filter: brightness(1.05);
}
.ha-image-hover-effect img {
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.ha-image-hover-effect figure:hover img {
  transform: scale(1.1);
}

/* --- BUTTON MICRO-INTERACTIONS --- */
.ekit-btn, .elementor-button, a[href*="explore"] {
  position: relative;
  transition: transform 0.2s cubic-bezier(0.22,1,0.36,1), box-shadow 0.2s ease;
  overflow: hidden;
}
.ekit-btn:hover, .elementor-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37,117,252,0.35);
}
.ekit-btn:active, .elementor-button:active {
  transform: translateY(0) scale(0.98);
}
.ekit-btn::after, .elementor-button::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}
.ekit-btn:active::after, .elementor-button:active::after {
  width: 300px; height: 300px;
}

/* --- TAB TRANSITIONS --- */
.elementskit-simple-tab .ekit-tab-content {
  animation: ttc-tabFade 0.4s cubic-bezier(0.22,1,0.36,1);
}
@keyframes ttc-tabFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- NAV LINK UNDERLINE --- */
.ct-menu > li > a {
  position: relative;
}
.ct-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #2575FC;
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.22,1,0.36,1), left 0.3s cubic-bezier(0.22,1,0.36,1);
}
.ct-menu > li > a:hover::after {
  width: 80%;
  left: 10%;
}

/* --- BADGE ANIMATION --- */
.ha-card .ha-badge, .badge_text {
  animation: ttc-pulse 2s ease-in-out infinite;
}
@keyframes ttc-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* --- LOADING SHIMMER FOR TP WIDGETS --- */
.script-tag-container, [class*="tp-"] {
  min-height: 120px;
  position: relative;
}
.script-tag-container:not(:has(> *)):empty::before,
[class*="tp-"]:empty::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: ttc-shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes ttc-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- IMAGE BOX HOVER --- */
.elementor-widget-image-box {
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.elementor-widget-image-box:hover {
  transform: translateY(-5px);
}
.elementor-widget-image-box .elementor-image-box-img img {
  transition: transform 0.4s ease;
}
.elementor-widget-image-box:hover img {
  transform: rotate(-5deg) scale(1.1);
}

/* --- SECTION DIVIDER ANIMATION --- */
.elementor-section-stretched {
  transition: opacity 0.5s ease;
}

/* --- MAP WIDGET CONTAINER --- */
.elementor-widget-html:has(script[src*="4285"]) {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

/* --- FLOATING LANGUAGE SWITCHER --- */
.translate-switcher {
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), opacity 0.3s ease;
}
.translate-switcher:hover {
  transform: scale(1.05) translateY(-2px);
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-ttc-reveal] { opacity: 1; transform: none; }
}

/* --- HIDE AVIASALES/TP BRANDING --- */
[class*="powered_by"],
[class*="powered-by"],
[id*="powered_by"],
.tp-powered-by,
[class*="tp-logo"],
[class*="tp-brand"],
[class*="aviasales"],
img[src*="aviasales"],
img[src*="powered"],
a[href*="aviasales.ru"],
a[href*="aviasales.com"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}


/* --- FIX: search-bar sections must always paint above later sections ---
   Elementor gives these sections position:static by default, so an absolutely
   positioned dropdown inside them (date pickers, autocompletes) can end up
   stacked behind normal-flow content that comes right after it in the DOM,
   causing clicks on calendar days to miss and land on the section below. */
.elementor-section:has(.form-datepicker),
.elementor-section:has(input[name="destination"]),
.elementor-section:has(.cascoon) {
  position: relative;
  z-index: 10000;
  isolation: isolate;
}
