/**
 * SKOLKOLETET.RU Design System
 * Codename: "Jet Stream"
 *
 * A premium aviation-inspired travel interface
 * Deep night skies, warm horizon accents, elegant motion
 */

/* ========================================
   FONTS
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap&subset=cyrillic,cyrillic-ext,latin');

/* ========================================
   CSS CUSTOM PROPERTIES
   ======================================== */
:root {
  /* Primary Palette - Night Sky */
  --sky-midnight: #0A1628;
  --sky-deep: #0F1D32;
  --sky-navy: #1A2744;
  --sky-dusk: #2A3F5F;
  --sky-twilight: #3D5A80;

  /* Accent Palette - Horizon Warmth */
  --horizon-coral: #FF6B4A;
  --horizon-peach: #FF8A6B;
  --horizon-gold: #FFB347;
  --horizon-sunset: #E85D3B;

  /* Secondary - Atmosphere */
  --atmos-cyan: #4ECDC4;
  --atmos-teal: #26A69A;
  --atmos-sky: #64B5F6;
  --atmos-cloud: #E8EEF4;

  /* Neutrals */
  --white: #FFFFFF;
  --white-soft: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;

  /* Semantic */
  --success: #22C55E;
  --warning: #F59E0B;
  --error: #EF4444;
  --info: var(--atmos-sky);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Font Sizes - Fluid Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
  --text-5xl: clamp(3rem, 2rem + 5vw, 5rem);

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 40px -10px var(--horizon-coral);
  --shadow-card: 0 4px 20px -2px rgb(10 22 40 / 0.15);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-Index Scale */
  --z-base: 0;
  --z-raised: 10;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;

  /* Container */
  --container-max: 1280px;
  --container-padding: var(--space-6);
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font: inherit;
}

ul, ol {
  list-style: none;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6, .heading {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--sky-midnight);
}

h1, .h1 { font-size: var(--text-4xl); }
h2, .h2 { font-size: var(--text-3xl); }
h3, .h3 { font-size: var(--text-2xl); }
h4, .h4 { font-size: var(--text-xl); }
h5, .h5 { font-size: var(--text-lg); }
h6, .h6 { font-size: var(--text-base); }

.text-display {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-lead {
  font-size: var(--text-lg);
  color: var(--gray-500);
  line-height: 1.7;
}

.text-small {
  font-size: var(--text-sm);
}

.text-xs {
  font-size: var(--text-xs);
}

.text-gradient {
  background: linear-gradient(135deg, var(--horizon-coral) 0%, var(--horizon-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.container-narrow {
  max-width: 900px;
}

.container-wide {
  max-width: 1440px;
}

.section {
  padding: var(--space-16) 0;
}

.section-lg {
  padding: var(--space-24) 0;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* Flex Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ========================================
   COMPONENTS: BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.5;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--horizon-coral) 0%, var(--horizon-sunset) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px -3px rgba(255, 107, 74, 0.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -3px rgba(255, 107, 74, 0.6);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--white);
  color: var(--sky-navy);
  border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
  border-color: var(--horizon-coral);
  color: var(--horizon-coral);
}

.btn-dark {
  background: var(--sky-midnight);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--sky-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
}

.btn-ghost:hover {
  background: var(--gray-100);
  color: var(--sky-midnight);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-xl);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-lg);
}

/* ========================================
   COMPONENTS: CARDS
   ======================================== */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-body {
  padding: var(--space-6);
}

.card-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--gray-100);
}

.card-footer {
  padding: var(--space-4) var(--space-6);
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
}

/* Destination Card */
.destination-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.destination-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.9) 0%, rgba(10, 22, 40, 0.3) 50%, transparent 100%);
  z-index: 1;
  transition: all var(--transition-base);
}

.destination-card:hover::before {
  background: linear-gradient(to top, rgba(10, 22, 40, 0.95) 0%, rgba(10, 22, 40, 0.5) 60%, rgba(10, 22, 40, 0.2) 100%);
}

.destination-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.destination-card:hover .destination-card-bg {
  transform: scale(1.08);
}

.destination-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6);
  z-index: 2;
  color: var(--white);
}

.destination-card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-1);
}

.destination-card-subtitle {
  font-size: var(--text-sm);
  opacity: 0.8;
}

.destination-card-time {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
}

/* Route Card */
.route-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-base);
}

.route-card:hover {
  border-color: var(--horizon-coral);
  box-shadow: var(--shadow-md);
}

.route-card-cities {
  flex: 1;
  min-width: 0;
}

.route-card-route {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 500;
  color: var(--sky-midnight);
}

.route-card-arrow {
  color: var(--horizon-coral);
  font-size: 1.25rem;
}

.route-card-time {
  font-weight: 700;
  color: var(--horizon-coral);
  font-size: var(--text-lg);
  white-space: nowrap;
}

.route-card-distance {
  font-size: var(--text-sm);
  color: var(--gray-400);
}

/* ========================================
   COMPONENTS: FORMS
   ======================================== */
.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-600);
}

.form-input,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--gray-700);
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  appearance: none;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--horizon-coral);
  box-shadow: 0 0 0 4px rgba(255, 107, 74, 0.1);
}

.form-input::placeholder {
  color: var(--gray-400);
}

.form-input-lg {
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-lg);
  border-radius: var(--radius-xl);
}

/* Search Form */
.search-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
}

@media (max-width: 768px) {
  .search-form {
    grid-template-columns: 1fr;
  }
}

.search-field {
  position: relative;
}

.search-field-icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
}

.search-field input {
  padding-left: calc(var(--space-4) + 24px + var(--space-2));
}

/* ========================================
   COMPONENTS: NAVIGATION
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: var(--space-4) 0;
  background: var(--white);
  transition: all var(--transition-base);
}

.nav.scrolled {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav.scrolled .nav-logo,
.nav.scrolled .nav-link {
  color: var(--sky-midnight);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--sky-midnight);
  transition: color var(--transition-base);
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--horizon-coral) 0%, var(--horizon-sunset) 100%);
  border-radius: var(--radius-lg);
  color: var(--white);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--horizon-coral);
  background: var(--gray-100);
}

.nav.scrolled .nav-link:hover {
  background: var(--gray-100);
  color: var(--horizon-coral);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--sky-midnight);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.nav-toggle:hover {
  background: var(--gray-100);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-20) var(--space-6);
    background: var(--sky-midnight);
    transition: right var(--transition-base);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    padding: var(--space-4);
    color: var(--white);
    border-radius: var(--radius-lg);
  }

  .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
  }
}

/* ========================================
   COMPONENTS: HERO
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-24) 0 var(--space-16);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(78, 205, 196, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(255, 107, 74, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--white) 0%, var(--gray-100) 50%, var(--atmos-cloud) 100%);
  z-index: -2;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
  background-size: 40px 40px;
  z-index: -1;
}

.hero-clouds {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  color: var(--sky-midnight);
  margin-bottom: var(--space-6);
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--gray-600);
  margin-bottom: var(--space-10);
}

.hero-search {
  margin-bottom: var(--space-10);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--gray-200);
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--horizon-coral);
}

.hero-stat-label {
  font-size: var(--text-sm);
  color: var(--gray-500);
}

/* ========================================
   COMPONENTS: FLIGHT MAP
   ======================================== */
.flight-map {
  position: relative;
  width: 100%;
  height: 400px;
  background: var(--sky-deep);
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

.flight-map-canvas {
  position: absolute;
  inset: 0;
}

.flight-path {
  fill: none;
  stroke: var(--horizon-coral);
  stroke-width: 3;
  stroke-dasharray: 8 4;
  stroke-linecap: round;
  animation: dash 30s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -1000;
  }
}

.flight-plane {
  offset-path: path('...');
  animation: fly 6s ease-in-out infinite;
}

@keyframes fly {
  0% { offset-distance: 0%; }
  50% { offset-distance: 100%; }
  100% { offset-distance: 0%; }
}

.map-marker {
  position: absolute;
  transform: translate(-50%, -50%);
}

.map-marker-dot {
  width: 20px;
  height: 20px;
  background: var(--horizon-coral);
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: 0 0 20px rgba(255, 107, 74, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(255, 107, 74, 0.6); }
  50% { transform: scale(1.1); box-shadow: 0 0 30px rgba(255, 107, 74, 0.8); }
}

.map-marker-label {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-2) var(--space-3);
  background: var(--white);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--sky-midnight);
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
}

/* ========================================
   COMPONENTS: FLIGHT RESULT
   ======================================== */
.flight-result {
  text-align: center;
  padding: var(--space-12);
  background: linear-gradient(135deg, var(--sky-midnight) 0%, var(--sky-deep) 100%);
  border-radius: var(--radius-2xl);
  color: var(--white);
}

.flight-result-time {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  color: var(--horizon-coral);
  margin-bottom: var(--space-4);
}

.flight-result-label {
  font-size: var(--text-lg);
  opacity: 0.7;
}

.flight-result-details {
  display: flex;
  justify-content: center;
  gap: var(--space-10);
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.flight-result-detail {
  text-align: center;
}

.flight-result-detail-value {
  font-size: var(--text-2xl);
  font-weight: 700;
}

.flight-result-detail-label {
  font-size: var(--text-sm);
  opacity: 0.6;
}

/* ========================================
   COMPONENTS: TABLE
   ======================================== */
.table-wrapper {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: var(--space-4) var(--space-5);
  text-align: left;
}

.table th {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-500);
  background: var(--gray-50);
  border-bottom: 2px solid var(--gray-100);
}

.table td {
  border-bottom: 1px solid var(--gray-100);
}

.table tbody tr {
  transition: background var(--transition-fast);
}

.table tbody tr:hover {
  background: var(--gray-50);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* ========================================
   COMPONENTS: FOOTER
   ======================================== */
.footer {
  background: var(--sky-midnight);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--white);
  margin-bottom: var(--space-4);
}

.footer-description {
  font-size: var(--text-sm);
  line-height: 1.7;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--horizon-coral);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--text-sm);
}

@media (max-width: 640px) {
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  color: var(--white);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--horizon-coral);
}

/* ========================================
   COMPONENTS: BREADCRUMBS
   ======================================== */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) 0;
  padding-top: calc(70px + var(--space-4));
  font-size: var(--text-sm);
  color: var(--gray-500);
}

.breadcrumbs a {
  color: var(--gray-500);
  transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--horizon-coral);
}

.breadcrumbs-separator {
  color: var(--gray-300);
}

.breadcrumbs-current {
  color: var(--gray-700);
  font-weight: 500;
}

/* ========================================
   COMPONENTS: PAGE ARTICLE (Internal Pages)
   ======================================== */
main > article {
  padding-bottom: var(--space-16);
}

main > article > .container {
  padding-top: var(--space-8);
}

/* Page hero sections */
.page-hero,
.dest-hero,
.visa-hero,
.jc-hero,
.jc-route-hero {
  margin-bottom: var(--space-10);
}

/* Section spacing for internal pages */
.page-section {
  margin-bottom: var(--space-12);
}

/* Section titles */
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--sky-midnight);
  margin-bottom: var(--space-8);
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--gray-500);
  margin-top: calc(-1 * var(--space-6));
  margin-bottom: var(--space-8);
}

/* ========================================
   COMPONENTS: TAGS
   ======================================== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  color: var(--gray-600);
}

.tag-primary {
  background: rgba(255, 107, 74, 0.1);
  color: var(--horizon-coral);
}

.tag-success {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
}

/* ========================================
   UTILITIES
   ======================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-white { color: var(--white); }
.text-muted { color: var(--gray-500); }
.text-coral { color: var(--horizon-coral); }

.bg-white { background: var(--white); }
.bg-soft { background: var(--white-soft); }
.bg-gray { background: var(--gray-100); }

.rounded { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }

.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

/* Animations */
.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out forwards;
}

.animate-slide-down {
  animation: slideDown 0.4s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered animations */
.stagger > * {
  opacity: 0;
  animation: slideUp 0.5s ease-out forwards;
}

.stagger > *:nth-child(1) { animation-delay: 0.1s; }
.stagger > *:nth-child(2) { animation-delay: 0.2s; }
.stagger > *:nth-child(3) { animation-delay: 0.3s; }
.stagger > *:nth-child(4) { animation-delay: 0.4s; }
.stagger > *:nth-child(5) { animation-delay: 0.5s; }
.stagger > *:nth-child(6) { animation-delay: 0.6s; }
.stagger > *:nth-child(7) { animation-delay: 0.7s; }
.stagger > *:nth-child(8) { animation-delay: 0.8s; }

/* ========================================
   COMPONENTS: NEW ROUTE CARDS
   ======================================== */
.new-route-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
}

.new-route-card:hover {
  border-color: var(--horizon-coral);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.new-route-cities {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--gray-700);
}

.new-route-from {
  font-weight: 600;
  color: var(--sky-midnight);
}

.new-route-arrow {
  flex-shrink: 0;
  color: var(--gray-400);
}

.new-route-to {
  font-weight: 500;
  color: var(--gray-600);
}

.new-route-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-2);
  background: linear-gradient(135deg, var(--horizon-coral), var(--horizon-sunset));
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 640px) {
  .new-route-card {
    padding: var(--space-3);
  }

  .new-route-cities {
    font-size: var(--text-xs);
  }
}

/* ========================================
   COMPONENTS: VISA/JETLAG PAGES SHARED
   ======================================== */

/* Cards Grid */
.visa-cards-grid,
.dest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}

@media (max-width: 640px) {
  .visa-cards-grid,
  .dest-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* Flip Card */
.visa-flip-card {
  perspective: 1000px;
  height: 280px;
  text-decoration: none;
  color: inherit;
  display: block;
}

.visa-flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.visa-flip-card:hover .visa-flip-card-inner,
.visa-flip-card:focus .visa-flip-card-inner,
.visa-flip-card.flipped .visa-flip-card-inner {
  transform: rotateY(180deg);
}

.visa-flip-card-front,
.visa-flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.visa-flip-card-front {
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-card);
}

.visa-flip-card-back {
  background: linear-gradient(135deg, var(--sky-midnight), var(--sky-deep));
  color: var(--white);
  transform: rotateY(180deg);
}

.visa-flip-card-status {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  opacity: 0.15;
}

.visa-flip-card-flag {
  font-size: 3rem;
  margin-bottom: var(--space-3);
  line-height: 1;
}

.visa-flip-card-country {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--sky-midnight);
  margin-bottom: var(--space-2);
}

.visa-flip-card-label {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-bottom: var(--space-3);
}

.visa-flip-card-hint {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--gray-400);
  margin-top: auto;
}

.visa-flip-card-back-header {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.visa-flip-card-requirements ul {
  text-align: left;
  list-style: disc;
  padding-left: var(--space-5);
  font-size: var(--text-sm);
  line-height: 1.8;
}

.visa-flip-card-back-footer {
  margin-top: auto;
  font-size: var(--text-xs);
  opacity: 0.7;
}

/* Visa Badges */
.visa-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
}

.visa-badge-sm {
  padding: var(--space-1) var(--space-2);
}

.visa-free {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
}

.visa-evisa {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.visa-required {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

/* Info Boxes */
.visa-info-box,
.info-box {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
}

.visa-info-box:hover,
.info-box:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.visa-info-box-icon,
.info-box-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--gray-100);
  color: var(--gray-600);
}

.visa-info-box-success .visa-info-box-icon {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
}

.visa-info-box-warning .visa-info-box-icon {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.visa-info-box-title,
.info-box-title {
  font-weight: 600;
  color: var(--sky-midnight);
  margin-bottom: var(--space-2);
}

.visa-info-box-text,
.info-box-text {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.6;
}

/* Info Grid */
.visa-info-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

/* Scroll Animations - only apply when JS is active */
.js-scroll-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js-scroll-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Default: visible without JS */
.scroll-animate {
  /* Animation handled by inline styles in templates with JS */
}

/* Hover lift effect */
.hover-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
