/* Digital Horizon Design System - Magallones Travel */

:root {
  --primary-color: #00f3ff; /* Electric Cyan */
  --secondary-color: #071b2a; /* Deep Space Blue */
  --accent-color: #ff00e6; /* Neon Purple (optional accent) */
  --text-color: #ffffff; /* Pure White for High Contrast */
  --glass-bg: rgba(255, 255, 255, 0.05); /* Ultra-low opacity white */
  --glass-border: 1px solid rgba(255, 255, 255, 0.15); /* Rim Light */
  --glass-blur: blur(16px);
  --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-color);
  background-color: var(--secondary-color);
  overflow-x: hidden;
}

/* =========================================
   Glassmorphism Utilities
   ========================================= */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 0 25px rgba(0, 243, 255, 0.3);
}

/* Aero-Glass Widget (Search Box) */
.search-widget {
  position: relative; /* For video background */
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-blur) !important;
  -webkit-backdrop-filter: var(--glass-blur) !important;
  border: var(--glass-border) !important;
  box-shadow: var(--glass-shadow) !important;
  border-radius: 20px;
  padding: 2.5rem;
  width: 100%;
  max-width: 1200px;
  margin-top: 2rem;
}

.search-widget-video-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  border-radius: 20px;
  z-index: -1;
}

.search-widget-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.4; /* Subtle background */
}

.search-widget-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 27, 42, 0.4);
  z-index: 0;
}

.search-widget > * {
  position: relative;
  z-index: 2;
}

.aero-glass {
  /* Alias for consistency */
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
}

/* =========================================
   Typography
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-accent {
  color: var(--accent-color) !important;
}

.text-success-neon {
  color: #00ff9d !important; /* Neon Green */
}

.btn-tech {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-tech:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

/* =========================================
   Hero Section & Video
   ========================================= */
/* =========================================
   Hero Section & Video
   ========================================= */
/* =========================================
   Hero Section & Video
   ========================================= */
.hero-section {
  position: relative;
  min-height: 100vh; /* Full Viewport Height */
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding-top: 80px; /* Nav Offset */
  z-index: 0; /* Create Stacking Context */

  /* Fallback Background */
  background: url("https://images.unsplash.com/photo-1436491865332-7a61a109cc05?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
  background-color: var(--secondary-color);
}

.hero-overlay {
  background-color: var(--secondary-color);
  opacity: 0.4; /* Reduced opacity to see video better */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1; /* Just above video */
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -2; /* At the bottom of this stacking context */
  object-fit: cover;
}

/* Global Video for Base (Optional override) */
#video-background {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  z-index: -100;
  object-fit: cover;
  filter: brightness(0.6);
}

/* =========================================
   Interactive Elements (Tabs, Buttons)
   ========================================= */
.search-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

.search-tab {
  background: transparent;
  border: none;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 10px;
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.search-tab.active {
  background: linear-gradient(
    135deg,
    rgba(0, 243, 255, 0.1) 0%,
    rgba(0, 153, 255, 0.1) 100%
  );
  border: 1px solid var(--primary-color);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.search-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.btn-search {
  width: 100%;
  background: linear-gradient(135deg, #0066cc 0%, #00f3ff 100%);
  color: white;
  font-weight: 700;
  padding: 1.2rem;
  border-radius: 12px;
  border: none;
  font-size: 1.1rem;
  margin-top: 1.5rem;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: "Montserrat", sans-serif;
  box-shadow: 0 0 15px #00f3ff; /* Requested Glow */
}

.btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 243, 255, 0.8);
}

/* =========================================
   Form Controls (Floating & Transparent)
   ========================================= */
.form-group label,
.floating-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  display: block;
  font-family: "Montserrat", sans-serif;
}

/* Specific Target for Floating Input */
.floating-control,
.form-control {
  background: transparent !important;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 0;
  padding: 0.85rem 0.5rem;
  font-weight: 500;
  height: auto;
  color: white !important;
  font-family: "Inter", sans-serif;
  transition: all 0.3s ease;
}

.floating-control:focus,
.form-control:focus {
  border-bottom-color: var(--primary-color) !important;
  box-shadow: 0 4px 10px -2px rgba(0, 243, 255, 0.2);
  background: transparent !important;
  outline: none;
  color: white !important;
}

.floating-control::placeholder,
.form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Ensure Autocomplete Dropdown is White/Visible */
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  color: #1f2937; /* Dark text for dropdown */
}
.autocomplete-dropdown.show {
  display: block;
}
.autocomplete-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  background: white;
}
.autocomplete-item:hover,
.autocomplete-item.active {
  background-color: #f9fafb;
}

/* Passenger Selector */
.passenger-dropdown {
  position: absolute;
  top: 100%;
  background: white;
  color: #333;
  border-radius: 8px;
  z-index: 1000;
  display: none;
  min-width: 300px;
  padding: 1rem;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

/* Overrides for form controls inside the passenger dropdown to fix visibility */
.passenger-dropdown .form-control,
.passenger-dropdown select.form-control {
  background: #f8fafc !important;
  color: #1a202c !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  padding: 0.5rem 0.75rem !important;
  margin-top: 5px;
}

.passenger-dropdown label {
  color: #4a5568 !important;
  margin-bottom: 2px !important;
  font-size: 0.7rem !important;
}

.passenger-controls button {
  border: 1px solid #ddd;
  background: white;
  color: #333;
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

/* =========================================
   Trust Section (New)
   ========================================= */
.trust-section {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.trust-card {
  height: 100%;
  padding: 2rem;
  text-align: center;
}

.trust-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 243, 255, 0.1);
  border: 1px solid rgba(0, 243, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
}

/* ── Airline Partner Carousel ── */
.airline-carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding: 1rem 0 2rem;
  width: 100%;
}
.airline-carousel-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.airline-carousel-fade--left {
  left: 0;
  background: linear-gradient(
    90deg,
    var(--secondary-color) 0%,
    transparent 100%
  );
}
.airline-carousel-fade--right {
  right: 0;
  background: linear-gradient(
    270deg,
    var(--secondary-color) 0%,
    transparent 100%
  );
}
.airline-carousel-track {
  display: flex;
  width: max-content;
  animation: carouselScroll 45s linear infinite;
}
.airline-carousel-track:hover {
  animation-play-state: paused;
}
.airline-carousel-slide {
  display: flex;
  gap: 2rem;
  padding-right: 2rem;
}
.airline-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 100px;
  padding: 10px;
  border-radius: 0;
  background: transparent;
  border: none;
  transition: all 0.3s ease;
  cursor: default;
}
.airline-logo-item:hover {
  transform: translateY(-4px);
}
.airline-logo-item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: none;
  opacity: 1;
  transition: transform 0.35s ease;
}

/* Airline Logo White Background Box */
.airline-logo-box {
  background: white;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.airline-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none !important; /* Ensure no inversion on white background */
}
.airline-logo-item:hover img {
  transform: scale(1.15);
}
.airline-logo-item span {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.airline-logo-item:hover span {
  color: var(--primary-color);
}

@keyframes carouselScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .airline-carousel-slide {
    gap: 1rem;
    padding-right: 1rem;
  }
  .airline-logo-item {
    min-width: 80px;
    padding: 10px 12px;
  }
  .airline-logo-item img {
    width: 48px;
    height: 48px;
  }
  .airline-carousel-fade {
    width: 40px;
  }
}

/* =========================================
   Layout & Footer
   ========================================= */
.navbar {
  background: rgba(7, 27, 42, 0.8) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

footer {
  background: rgba(7, 27, 42, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 3rem;
}

/* =========================================
   Bootstrap Overrides 
   ========================================= */
.navbar-collapse.collapse {
  visibility: visible !important;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.animate-up {
  animation-name: fadeInUp;
  animation-duration: 0.8s;
  animation-fill-mode: both;
}

.delay-100 {
  animation-delay: 0.1s;
}
.delay-200 {
  animation-delay: 0.2s;
}
.delay-300 {
  animation-delay: 0.3s;
}

/* Airline Partner Section Refinements */
.partner-header {
  font-size: 1.5rem !important;
  letter-spacing: 4px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  text-transform: uppercase;
  margin-bottom: 0.5rem !important;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.partner-subtitle {
  font-size: 1.1rem !important;
  opacity: 0.9 !important;
  color: #dee2e6 !important;
  font-weight: 500 !important;
}
/* =========================================
   Testimonial Carousel (Social Proof)
   ========================================= */
.testimonial-carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
  width: 100%;
}

.testimonial-track {
  display: flex;
  width: max-content;
  gap: 2rem;
  animation: testimonialScroll 40s linear infinite;
}

.testimonial-track:hover {
  animation-play-state: paused;
}

.testimonial-card {
  width: 350px;
  flex-shrink: 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.text-warning-stars {
  color: #ffcc00;
}

.badge-outline-cyan {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  font-size: 0.7rem;
  letter-spacing: 1px;
}

.badge-outline-purple {
  background: transparent;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  font-size: 0.7rem;
  letter-spacing: 1px;
}

@keyframes testimonialScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-350px * 4 - 2rem * 4));
  }
}

@media (max-width: 768px) {
  .testimonial-card {
    width: 280px;
  }
  @keyframes testimonialScroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-280px * 4 - 2rem * 4));
    }
  }
}

/* =========================================
   Blog Hub specific enhancements
   ========================================= */
.featured-card {
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.featured-img-wrapper {
  transition: transform 0.5s ease;
}

.featured-card:hover .featured-img-wrapper {
  transform: scale(1.05);
}

.badge-cyan {
  background: var(--primary-color);
  color: #000;
}
.badge-purple {
  background: var(--accent-color);
  color: #fff;
}
/* =========================================
   Utility Classes & Design Tokens
   ========================================= */
.z-max {
  z-index: 9999 !important;
}
.bg-dark-80 {
  background: rgba(7, 27, 42, 0.8) !important;
}
.backdrop-blur-sm {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.rounded-24 {
  border-radius: 24px !important;
}
.max-w-400 {
  max-width: 400px !important;
}
.text-red-neon {
  color: #ff3e3e !important;
  text-shadow: 0 0 10px rgba(255, 62, 62, 0.5);
}
.text-cyan-neon {
  color: var(--primary-color) !important;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}
.border-red-30 {
  border: 1px solid rgba(255, 62, 62, 0.3) !important;
}
.shadow-red-glow {
  box-shadow: 0 0 50px rgba(255, 62, 62, 0.2) !important;
}
.font-family-mono {
  font-family: "Fira Code", "Courier New", monospace !important;
}

.fa-spin-slow {
  animation: fa-spin 5s infinite linear;
}

.btn-cyan-glow {
  background: var(--primary-color);
  color: #071b2a !important;
  border: none;
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
  transition: all 0.3s ease;
}

.btn-cyan-glow:hover {
  background: #00c4cf;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 243, 255, 0.6);
}
