/* ===================================================
   SCHENGEN ROUTE - ADVANCED INTERACTIVE STYLES
   =================================================== */

:root {
  --schengen-blue: #0A192F;
  --accent-cyan: #06B6D4;
  --accent-emerald: #10B981;
  --accent-gold: #F59E0B;
  --accent-purple: #8B5CF6;
  --bg-dark: #070C18;
  --bg-card: rgba(15, 23, 42, 0.75);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: #F1F5F9;
  overflow-x: hidden;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0B1120;
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Glowing text gradients */
.text-glow-cyan {
  background: linear-gradient(135deg, #38BDF8 0%, #06B6D4 50%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-glow-gold {
  background: linear-gradient(135deg, #FDE047 0%, #F59E0B 50%, #EF4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-glow-purple {
  background: linear-gradient(135deg, #C084FC 0%, #818CF8 50%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphic Panels */
.glass-panel {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-glow {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: 0 0 40px -10px rgba(6, 182, 212, 0.25);
}

.glass-panel-emerald {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 40px -10px rgba(16, 185, 129, 0.25);
}

/* Starry European Grid Background */
.eu-grid-bg {
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.18), transparent 45%),
    radial-gradient(circle at 90% 40%, rgba(16, 185, 129, 0.12), transparent 40%),
    radial-gradient(circle at 10% 70%, rgba(139, 92, 246, 0.12), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(245, 158, 11, 0.08), transparent 40%),
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}

/* Animated Pulse Glow for Pricing Badges */
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4), inset 0 0 10px rgba(16, 185, 129, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.8), inset 0 0 20px rgba(16, 185, 129, 0.4);
  }
}
.pulse-glow {
  animation: glowPulse 2.5s infinite;
}

/* Radar & Orb Animations */
@keyframes radarSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.radar-spin {
  animation: radarSpin 12s linear infinite;
}

@keyframes radarPingSlow {
  0% { transform: scale(0.85); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0.2; }
  100% { transform: scale(0.85); opacity: 0.8; }
}
.radar-pulse-ring {
  animation: radarPingSlow 4s ease-in-out infinite;
}

/* Floating animation */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}
.float-slow {
  animation: floatSlow 4s ease-in-out infinite;
}

@keyframes floatReverse {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(8px);
  }
}
.float-reverse {
  animation: floatReverse 4.5s ease-in-out infinite;
}

/* Marquee / Infinite Ticker for Schengen Flags */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}

/* 50% Opacity Animated Backdrop for Unlocked Country */
.unlocked-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  filter: brightness(0.7) contrast(1.15) saturate(1.2);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.unlocked-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 12, 24, 0.75) 0%, rgba(7, 12, 24, 0.88) 50%, rgba(7, 12, 24, 0.98) 100%);
}

/* ===================================================
   HORIZONTAL SCROLL DECKS & CAROUSELS (TYPE OR SCROLL)
   =================================================== */

.horizontal-scroll-deck {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.25rem;
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.horizontal-scroll-deck::-webkit-scrollbar {
  height: 8px;
}
.horizontal-scroll-deck::-webkit-scrollbar-track {
  background: #0B1120;
  border-radius: 9999px;
}
.horizontal-scroll-deck::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #06B6D4, #3B82F6);
  border-radius: 9999px;
}

/* Scroll Card for Countries */
.deck-country-card {
  scroll-snap-align: start;
  flex: 0 0 290px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (min-width: 640px) {
  .deck-country-card {
    flex: 0 0 320px;
  }
}
@media (min-width: 1024px) {
  .deck-country-card {
    flex: 0 0 340px;
  }
}

.deck-country-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 20px 35px -10px rgba(6, 182, 212, 0.3);
}

.deck-country-card.active-selected {
  border-color: #38BDF8;
  background: rgba(30, 41, 59, 0.95);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.45);
}

/* Origin Scroll Track */
.origin-scroll-deck {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  scroll-behavior: smooth;
}
.origin-scroll-deck::-webkit-scrollbar {
  height: 5px;
}
.origin-scroll-deck::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 9999px;
}

.origin-pill-card {
  scroll-snap-align: start;
  flex: 0 0 170px;
  transition: all 0.2s ease;
}
.origin-pill-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.4);
}

/* Review Cards Carousel Scroll */
.reviews-scroll-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
  scroll-behavior: smooth;
}
.reviews-scroll-container::-webkit-scrollbar {
  height: 6px;
}
.reviews-scroll-container::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #10B981, #06B6D4);
  border-radius: 9999px;
}

.review-item {
  scroll-snap-align: start;
  flex: 0 0 320px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.review-item:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
}
@media (min-width: 640px) {
  .review-item {
    flex: 0 0 380px;
  }
}
@media (min-width: 1024px) {
  .review-item {
    flex: 0 0 420px;
  }
}

/* Verified Stamp Badge Glow */
.verified-stamp-badge {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(16, 185, 129, 0.35);
}

/* Locked Overlay Styling */
.locked-blur-overlay {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(7, 12, 24, 0.75);
}

/* Modal Transition Animations */
.modal-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.open .modal-container {
  transform: scale(1) translateY(0);
}

/* Smooth Accordion */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion-content.open {
  max-height: 1000px;
}

/* Live Matcher Box */
.matcher-card {
  background: radial-gradient(circle at 50% 0%, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 30px -10px rgba(6, 182, 212, 0.2);
}

/* Official Route Selection (CSP Categories) */
.csp-track-deck {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.csp-track-deck::-webkit-scrollbar {
  height: 4px;
}
.csp-track-deck::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 9999px;
}
.csp-track-deck::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #06B6D4, #3B82F6);
  border-radius: 9999px;
}

.csp-pill-btn {
  scroll-snap-align: start;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.875rem;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.csp-pill-btn.inactive {
  background: rgba(15, 23, 42, 0.85);
  color: #CBD5E1;
  border: 1px solid rgba(51, 65, 85, 0.8);
}
.csp-pill-btn.inactive:hover {
  background: rgba(30, 41, 59, 0.9);
  color: #FFFFFF;
  border-color: rgba(56, 189, 248, 0.4);
}

.csp-pill-btn.active {
  background: linear-gradient(90deg, #06B6D4 0%, #2563EB 100%);
  color: #FFFFFF;
  border: 1px solid #38BDF8;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.csp-highlight-card {
  background: radial-gradient(circle at 10% 0%, rgba(6, 182, 212, 0.08), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(6, 182, 212, 0.35);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.8), 0 0 30px -10px rgba(6, 182, 212, 0.25);
}

/* Modal Overlay & Transitions */
.modal-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-overlay .modal-container {
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.open .modal-container {
  transform: scale(1) translateY(0);
}

