@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

/* Declare CSS Cascade Layers */
@layer reset, base, theme, layout, components, interactive, utilities;

@layer reset {
  /* Box sizing and margin resets */
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  /* Reset media elements */
  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
  }
  
  /* Reset interactive elements */
  input, button, textarea, select {
    font: inherit;
    color: inherit;
    background: transparent;
    border: none;
    outline: none;
  }
  
  button, select {
    cursor: pointer;
  }
  
  ul, ol {
    list-style: none;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  /* Accessible scrollbars */
  html {
    scrollbar-color: var(--color-accent) var(--color-bg);
    scrollbar-width: thin;
  }
}

@layer base {
  :root {
    color-scheme: light dark;
  }
  
  body {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    transition: background-color 0.5s var(--transition-smooth), color 0.5s var(--transition-smooth);
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-title);
  }
  
  h1 {
    font-size: clamp(2.5rem, 2rem + 4vw, 5rem);
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.1;
  }
  
  h2 {
    font-size: clamp(1.8rem, 1.3rem + 3vw, 3rem);
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    text-wrap: balance;
  }
  
  p {
    text-wrap: pretty;
    color: var(--color-text-muted);
  }

  /* Robust custom focus outlines */
  :focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
  }
  
  ::selection {
    background-color: var(--color-accent);
    color: var(--white);
  }
}

@layer theme {
  :root {
    /* Palette Tokens (Tier 1) */
    --navy-900: hsl(224, 71%, 12%);
    --navy-950: hsl(224, 71%, 6%);
    --navy-800: hsl(224, 60%, 20%);
    --navy-200: hsl(224, 40%, 80%);
    --navy-100: hsl(224, 40%, 94%);
    --navy-50: hsl(224, 40%, 98%);
    
    --orange-500: hsl(28, 92%, 54%);
    --orange-600: hsl(28, 92%, 46%);
    --orange-400: hsl(28, 92%, 62%);
    
    --teal-500: hsl(184, 80%, 40%);
    --teal-600: hsl(184, 80%, 32%);
    --teal-400: hsl(184, 80%, 50%);
    
    --white: hsl(0, 0%, 100%);
    --black: hsl(0, 0%, 0%);
    
    --neutral-100: hsl(210, 20%, 98%);
    --neutral-200: hsl(210, 20%, 92%);
    --neutral-300: hsl(210, 15%, 85%);
    --neutral-500: hsl(210, 10%, 55%);
    --neutral-700: hsl(210, 15%, 30%);
    --neutral-800: hsl(210, 20%, 18%);
    --neutral-900: hsl(210, 20%, 12%);
    
    /* Semantic Tokens via light-dark() (Tier 2) */
    --color-bg: light-dark(var(--neutral-100), var(--navy-950));
    --color-bg-subtle: light-dark(var(--white), var(--navy-900));
    --color-text: light-dark(var(--neutral-800), var(--navy-200));
    --color-text-muted: light-dark(var(--neutral-500), var(--neutral-300));
    --color-title: light-dark(var(--navy-900), var(--white));
    
    --color-primary: light-dark(var(--navy-900), var(--white));
    --color-accent: var(--orange-500);
    --color-accent-hover: var(--orange-600);
    --color-accent-subtle: light-dark(hsl(28, 92%, 93%), hsl(28, 92%, 12%));
    --color-secondary: var(--teal-500);
    --color-border: light-dark(var(--neutral-200), var(--neutral-800));
    
    /* Surface & Glassmorphism Aesthetics (Tier 3) */
    --glass-bg: light-dark(rgba(255, 255, 255, 0.75), rgba(12, 17, 29, 0.72));
    --glass-border: light-dark(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.08));
    --glass-shadow: 0 16px 48px -12px light-dark(rgba(31, 38, 135, 0.06), rgba(0, 0, 0, 0.45));
    --card-shadow: 0 20px 50px -15px light-dark(rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.5));
    --card-shadow-hover: 0 30px 60px -12px light-dark(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.65));
    
    --border-radius-lg: 1.5rem;
    --border-radius-md: 1rem;
    --border-radius-sm: 0.5rem;
    
    --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  }
}

@layer layout {
  .container {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 1.5rem;
  }
  
  /* Navbar */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(20px);
    background-color: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    transition: background-color 0.3s ease, border-color 0.3s ease;
  }
  
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
  }
  
  .logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-title);
  }
  
  .logo span {
    color: var(--color-accent);
  }
  
  .nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
  }
  
  .nav-link {
    font-weight: 500;
    color: var(--color-text);
    transition: color 0.3s ease;
    font-size: 0.95rem;
    position: relative;
    padding-block: 0.25rem;
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s var(--transition-smooth);
  }
  
  .nav-link:hover::after {
    width: 100%;
  }
  
  .nav-link:hover {
    color: var(--color-accent);
  }
  
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
  
  /* Hero Section */
  .hero-section {
    position: relative;
    min-height: 100dvh;
    padding-top: 120px;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
  }
  
  .hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2)), url('assets/images/hero_flight.png') no-repeat center center / cover;
    transition: filter 0.5s ease;
  }
  
  /* Soft lighting overlay to enhance contrast */
  .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, light-dark(rgba(240, 244, 248, 0.2), rgba(6, 9, 17, 0.7)) 0%, light-dark(rgba(240, 244, 248, 0.75), rgba(6, 9, 17, 0.95)) 90%);
    backdrop-filter: saturate(1.1);
  }
  
  .hero-content {
    max-width: 800px;
    margin-bottom: 3.5rem;
    color: light-dark(var(--navy-900), var(--white));
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 1rem;
  }
  
  .hero-title {
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.05);
  }
  
  .hero-description {
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
    color: light-dark(var(--neutral-800), var(--neutral-200));
    font-weight: 400;
    max-width: 600px;
  }

  /* Standard Grid Sections */
  .section-padding {
    padding-block: 7.5rem;
  }
  
  .section-header {
    max-width: 650px;
    margin-bottom: 4rem;
  }
  
  .section-tag {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    display: inline-block;
  }
  
  .section-title {
    margin-bottom: 1rem;
  }
  
  .section-desc {
    font-size: 1.1rem;
  }
}

@layer components {
  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 1.8rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    transition: all 0.3s var(--transition-smooth);
    min-block-size: 48px; /* Touch target baseline */
  }
  
  .btn-primary {
    background-color: var(--color-accent);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(235, 94, 40, 0.3);
  }
  
  .btn-primary:hover:not(:disabled) {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(235, 94, 40, 0.4);
  }
  
  .btn-primary:active {
    transform: translateY(0);
  }
  
  .btn-secondary {
    background-color: var(--glass-bg);
    color: var(--color-title);
    border: 1px solid var(--glass-border);
  }
  
  .btn-secondary:hover {
    background-color: var(--color-border);
    transform: translateY(-2px);
  }

  .btn-icon-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
  }
  
  .btn-icon-toggle:hover {
    background-color: var(--color-border);
    color: var(--color-accent);
    transform: scale(1.05);
  }

  /* Booking Box Glassmorphism Card */
  .booking-card {
    background: var(--glass-bg);
    backdrop-filter: blur(25px) saturate(1.2);
    -webkit-backdrop-filter: blur(25px) saturate(1.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    width: 100%;
    margin-top: 1rem;
    position: relative;
    z-index: 10;
  }
  
  .booking-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.75rem;
  }
  
  .booking-tab-btn {
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: var(--color-text-muted);
    position: relative;
    transition: color 0.3s ease;
  }
  
  .booking-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-accent);
    transition: width 0.3s var(--transition-smooth);
  }
  
  .booking-tab-btn.active {
    color: var(--color-accent);
    font-weight: 600;
  }
  
  .booking-tab-btn.active::after {
    width: 100%;
  }
  
  .booking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    padding: 0.75rem 1rem;
    background: light-dark(rgba(240, 244, 248, 0.75), rgba(255, 255, 255, 0.03));
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    transition: border-color 0.3s, background-color 0.3s;
  }
  
  /* Native CSS :has() for interactive card focus borders */
  .input-group:has(input:focus, select:focus) {
    border-color: var(--color-accent);
    background: light-dark(var(--white), rgba(255, 255, 255, 0.05));
    box-shadow: 0 0 0 1px var(--color-accent);
  }
  
  .input-group label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }

  .input-group label svg {
    color: var(--color-accent);
  }
  
  .input-group input, .input-group select {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-title);
    width: 100%;
  }

  .input-group input::placeholder {
    color: var(--color-text-muted);
    font-weight: 400;
  }
  
  /* Customizable Select Dropdown using base-select options */
  .custom-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='hsl(28, 92%, 54%)' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.25rem center;
    background-size: 1.25rem;
    padding-right: 1.75rem;
  }
  
  .booking-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
  }
  
  .booking-promos {
    display: flex;
    gap: 1.5rem;
    align-items: center;
  }
  
  .promo-item {
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-text-muted);
  }
  
  .promo-item svg {
    color: var(--teal-500);
  }

  /* Benefits Grid */
  .benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }
  
  .benefit-card {
    background-color: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 2.5rem 2rem;
    transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth);
    box-shadow: var(--card-shadow);
  }
  
  .benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
  }
  
  .benefit-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-sm);
    background-color: var(--color-accent-subtle);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
  }
  
  .benefit-card:hover .benefit-icon {
    transform: rotate(5deg) scale(1.05);
  }
  
  .benefit-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  /* Destination Carousel */
  .carousel-wrapper {
    position: relative;
    margin-top: 1rem;
  }
  
  .carousel-container {
    overflow: hidden;
    padding-block: 1rem;
    margin-inline: -1rem;
    padding-inline: 1rem;
  }
  
  .carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.6s var(--transition-smooth);
  }
  
  .destination-card {
    flex: 0 0 calc(33.333% - 1.333rem);
    min-width: 300px;
    background-color: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth);
    position: relative;
  }
  
  .destination-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
  }
  
  .destination-img-container {
    height: 280px;
    overflow: hidden;
    position: relative;
  }
  
  .destination-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition-smooth);
  }
  
  .destination-card:hover .destination-img {
    transform: scale(1.08);
  }
  
  .destination-tag {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(12, 17, 29, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
  }
  
  .destination-info {
    padding: 1.75rem;
  }
  
  .destination-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
  }
  
  .destination-loc {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
  .destination-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    font-weight: 600;
  }
  
  .destination-rating svg {
    color: #ffb703;
  }
  
  .destination-name {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--color-title);
  }
  
  .destination-desc {
    font-size: 0.925rem;
    margin-bottom: 1.25rem;
  }
  
  .destination-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
  }
  
  .destination-price {
    display: flex;
    flex-direction: column;
  }
  
  .price-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .price-amt {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-title);
  }
  
  .price-amt span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-text-muted);
  }
  
  .destination-btn {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: gap 0.25s ease;
  }
  
  .destination-card:hover .destination-btn {
    gap: 0.5rem;
  }

  .carousel-ctrls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
  }

  /* Live Deals Explorer */
  .explorer-section {
    background-color: light-dark(var(--white), var(--navy-900));
    border-block: 1px solid var(--color-border);
    transition: background-color 0.5s ease;
  }
  
  .explorer-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
    background-color: var(--color-bg);
    padding: 0.4rem;
    border-radius: 100px;
    width: max-content;
    margin-inline: auto;
    border: 1px solid var(--color-border);
  }
  
  .explorer-tab-btn {
    padding: 0.65rem 1.75rem;
    font-weight: 600;
    border-radius: 100px;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
    min-block-size: 40px;
  }
  
  .explorer-tab-btn.active {
    background-color: var(--color-accent);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(235, 94, 40, 0.2);
  }
  
  .deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
  }
  
  .deal-card {
    background-color: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s var(--transition-smooth);
    box-shadow: var(--card-shadow);
  }
  
  .deal-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent);
    box-shadow: var(--card-shadow-hover);
  }
  
  .deal-route {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .deal-cities {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-title);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .deal-cities svg {
    color: var(--color-accent);
  }
  
  .deal-duration {
    font-size: 0.8rem;
    color: var(--color-text-muted);
  }
  
  .deal-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
  }
  
  .deal-tag {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: var(--color-accent-subtle);
    color: var(--color-accent);
    padding: 0.2rem 0.5rem;
    border-radius: var(--border-radius-sm);
  }
  
  .deal-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-title);
  }

  /* Booking Flight Results Simulation Modules */
  .flights-results-container {
    display: none;
    margin-top: 3rem;
  }
  
  .results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1.5rem;
  }
  
  .results-search-summary {
    display: flex;
    flex-direction: column;
  }
  
  .results-search-title {
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
  }
  
  .results-search-meta {
    font-size: 0.9rem;
    color: var(--color-text-muted);
  }
  
  .results-close-btn {
    padding: 0.5rem 1.2rem;
    background-color: var(--color-border);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
  }
  
  .results-close-btn:hover {
    background-color: var(--color-accent);
    color: var(--white);
  }
  
  /* Simulated Loading Skeleton */
  .skeleton-loader {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .skeleton-card {
    background-color: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    overflow: hidden;
  }
  
  .skeleton-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, light-dark(rgba(255,255,255,0.5), rgba(255,255,255,0.03)), transparent);
    transform: translateX(-100%);
    animation: shimmer 1.5s infinite;
  }
  
  @keyframes shimmer {
    100% {
      transform: translateX(100%);
    }
  }
  
  .skeleton-bar {
    height: 16px;
    background-color: light-dark(var(--neutral-200), var(--neutral-800));
    border-radius: 4px;
    width: 80%;
  }
  
  .skeleton-bar.short { width: 40%; }
  .skeleton-bar.title { height: 24px; width: 60%; margin-bottom: 0.5rem;}
  
  .skeleton-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .skeleton-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: light-dark(var(--neutral-200), var(--neutral-800));
  }

  /* Actual Flight Result Card */
  .flight-result-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .flight-card {
    background-color: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    display: grid;
    grid-template-columns: 1.2fr 2.5fr 1fr 1.3fr;
    gap: 2.5rem;
    align-items: center;
    transition: all 0.3s var(--transition-smooth);
    box-shadow: var(--card-shadow);
  }
  
  .flight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--teal-500);
  }
  
  .flight-airline {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .airline-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    background-color: var(--color-accent-subtle);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
  }
  
  .airline-name {
    font-weight: 600;
    color: var(--color-title);
  }
  
  .airline-code {
    font-size: 0.8rem;
    color: var(--color-text-muted);
  }
  
  .flight-time-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
  
  .time-node {
    display: flex;
    flex-direction: column;
  }
  
  .time-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-title);
  }
  
  .time-code {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
  }
  
  .flight-path-visual {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-bottom: 1.25rem;
  }
  
  .path-line {
    width: 100%;
    height: 2px;
    background-color: var(--color-border);
    position: relative;
  }
  
  .path-line::before, .path-line::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-border);
    top: -2px;
  }
  
  .path-line::before { left: 0; }
  .path-line::after { right: 0; }
  
  .path-plane {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
    color: var(--color-accent);
    background-color: var(--color-bg-subtle);
    padding-inline: 0.25rem;
  }
  
  .path-stops {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
    color: var(--teal-500);
  }
  
  .flight-duration {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-title);
    text-align: center;
  }
  
  .flight-cabin {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-align: center;
  }
  
  .flight-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
  }
  
  .flight-price-amt {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-title);
  }
  
  .flight-price-sub {
    font-size: 0.75rem;
    color: var(--color-text-muted);
  }

  /* Booking Success Modal */
  .modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background-color: rgba(6, 9, 17, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
  }
  
  .modal-content {
    background-color: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2.5rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 70px rgba(0,0,0,0.5);
    position: relative;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s var(--transition-smooth);
  }
  
  .modal-overlay.active {
    display: flex;
  }
  
  .modal-overlay.active .modal-content {
    transform: scale(1);
    opacity: 1;
  }
  
  .modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: light-dark(hsl(184, 80%, 93%), hsl(184, 80%, 12%));
    color: var(--teal-500);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
    margin-bottom: 1.5rem;
    font-size: 2rem;
  }
  
  .modal-title {
    margin-bottom: 0.75rem;
  }
  
  .modal-desc {
    margin-bottom: 2rem;
    font-size: 0.95rem;
  }

  /* Footer */
  .footer {
    background-color: light-dark(var(--white), var(--navy-950));
    border-top: 1px solid var(--color-border);
    padding-top: 5rem;
    padding-bottom: 3rem;
    transition: background-color 0.5s ease;
  }
  
  .footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3.5rem;
    margin-bottom: 4rem;
  }
  
  .footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
  
  .footer-desc {
    max-width: 320px;
  }
  
  .footer-socials {
    display: flex;
    gap: 1rem;
  }
  
  .social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
  }
  
  .social-icon:hover {
    background-color: var(--color-accent);
    color: var(--white);
    transform: translateY(-2px);
  }
  
  .footer-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .footer-link {
    color: var(--color-text-muted);
    font-size: 0.925rem;
    transition: color 0.25s ease;
  }
  
  .footer-link:hover {
    color: var(--color-accent);
  }
  
  .footer-newsletter {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  
  .newsletter-input {
    flex: 1;
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-sm);
    color: var(--color-title);
    min-block-size: 44px;
  }
  
  .newsletter-input:focus {
    border-color: var(--color-accent);
  }
  
  .footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
  }
}

@layer interactive {
  /* Dynamic micro-animations */
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s var(--transition-smooth) forwards;
  }
  
  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@layer utilities {
  .text-accent { color: var(--color-accent); }
  .text-teal { color: var(--color-secondary); }
  .d-flex { display: flex; }
  .flex-column { flex-direction: column; }
  .align-center { align-items: center; }
  .justify-between { justify-content: space-between; }
  .gap-1 { gap: 1rem; }
  .w-100 { width: 100%; }
  
  /* Screen reader utility */
  .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;
  }
}

/* RESPONSIVE DESIGN - BREAKPOINTS */
@media (max-width: 1024px) {
  .destination-card {
    flex: 0 0 calc(50% - 1rem);
  }
  
  .flight-card {
    grid-template-columns: 1fr 2fr 1.2fr;
    gap: 1.5rem;
  }
  
  .flight-time-block {
    grid-column: 1 / -1;
    order: 2;
  }
  
  .flight-pricing {
    grid-column: 3;
    align-items: flex-end;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* In a real app we'd have a mobile drawer, but let's keep it tidy */
  }
  
  .booking-card {
    padding: 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-brand {
    align-items: center;
    text-align: center;
  }
  
  .footer-socials {
    justify-content: center;
  }
  
  .footer-title {
    margin-bottom: 1rem;
    text-align: center;
  }
  
  .footer-links {
    align-items: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-section {
    padding-top: 100px;
  }
  
  .skeleton-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .flight-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.25rem;
    padding: 1.5rem;
  }
  
  .flight-airline {
    flex-direction: column;
  }
  
  .flight-time-block {
    flex-direction: column;
    gap: 1rem;
  }
  
  .flight-pricing {
    grid-column: 1;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .destination-card {
    flex: 0 0 100%;
  }
  
  .booking-tabs {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }
  
  .booking-tab-btn {
    text-align: center;
  }
}
