/* ================================================================
   NON-CRITICAL CSS - Below-the-Fold (Deferred Loading)
   Load this after first paint using rel="preload"
   ================================================================ */

/* ===== FEATURES SECTION ===== */
.features {
  padding: 80px 20px;
  background: var(--bg);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: all 0.3s;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--white);
  font-size: 32px;
}
.feature-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}
.feature-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== FLIGHT RESULTS ===== */
.results-container {
  max-width: 1200px;
  margin: 80px auto 0;
  padding: 20px;
}
.results-header {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.results-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.results-count {
  font-size: 18px;
  font-weight: 600;
}
.results-filters {
  display: flex;
  gap: 12px;
  align-items: center;
}
.filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}
.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ===== FLIGHT CARDS ===== */
.flight-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  position: relative;
}
.flight-card:hover {
  box-shadow: var(--shadow-lg);
}
.flight-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary);
  border-radius: var(--radius) 0 0 var(--radius);
  opacity: 0;
  transition: opacity 0.3s;
}
.flight-card:hover::before {
  opacity: 1;
}
.flight-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.airline-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 4px;
}
.airline-info {
  flex: 1;
}
.airline-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.flight-number {
  font-size: 12px;
  color: var(--text-light);
}
.flight-details {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 20px;
}
.flight-time {
  text-align: center;
}
.time {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}
.airport {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}
.flight-duration {
  text-align: center;
  position: relative;
  flex: 1;
}
.duration-time {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
}
.duration-line {
  height: 2px;
  background: var(--border);
  position: relative;
  margin: 8px 0;
}
.duration-line::before {
  content: "✈";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(50%, -50%);
  background: var(--white);
  padding: 0 4px;
  font-size: 16px;
  color: var(--primary);
}
.stops {
  font-size: 12px;
  color: var(--warning);
}
.flight-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg);
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-light);
}
.meta-tag svg {
  width: 14px;
  height: 14px;
}
.meta-tag.refundable {
  color: var(--success);
  background: rgba(40, 167, 69, 0.1);
}
.meta-tag.urgent {
  color: var(--danger);
  background: rgba(220, 53, 69, 0.1);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}
.flight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--bg);
}
.price-section {
  text-align: right;
}
.price-label {
  font-size: 12px;
  color: var(--text-light);
}
.price-amount {
  font-size: 28px;
  font-weight: 700;
  color: var(--secondary);
  margin: 4px 0;
}
.price-breakdown {
  font-size: 11px;
  color: var(--text-light);
}
.book-btn {
  padding: 12px 32px;
  background: var(--secondary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.book-btn:hover {
  background: var(--secondary-dark);
  transform: scale(1.05);
}

/* Footer styles moved to critical.css - removed duplicates */

/* ===== BOOKING FORM ===== */
.booking-container {
  max-width: 1000px;
  margin: 80px auto 40px;
  padding: 20px;
}
.booking-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}
.step-indicator::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-number {
  width: 40px;
  height: 40px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-weight: 600;
  transition: all 0.3s;
}
.step.active .step-number {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.step.completed .step-number {
  background: var(--success);
  color: var(--white);
  border-color: var(--success);
}
.step-label {
  font-size: 12px;
  color: var(--text-light);
}
.passenger-form {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.passenger-form h3 {
  font-size: 18px;
  margin-bottom: 20px;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.active {
  display: flex;
}
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalIn 0.3s ease-out;
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.modal-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title {
  font-size: 20px;
  font-weight: 600;
}
.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 24px;
}
.modal-close:hover {
  color: var(--text);
}
.modal-body {
  padding: 24px;
}
.modal-footer {
  padding: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ===== ALERTS ===== */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.alert-success {
  background: rgba(40, 167, 69, 0.1);
  color: var(--success);
  border: 1px solid var(--success);
}
.alert-danger {
  background: rgba(220, 53, 69, 0.1);
  color: var(--danger);
  border: 1px solid var(--danger);
}
.alert-warning {
  background: rgba(255, 193, 7, 0.1);
  color: #856404;
  border: 1px solid var(--warning);
}
.alert-info {
  background: rgba(26, 126, 193, 0.1);
  color: var(--primary);
  border: 1px solid var(--primary);
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  padding: 20px;
  background: var(--white);
  margin-top: 64px;
  border-bottom: 1px solid var(--border);
}
.breadcrumb-list {
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  list-style: none;
  font-size: 14px;
}
.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb-list a {
  color: var(--primary);
}
.breadcrumb-list a:hover {
  text-decoration: underline;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.slide-in {
  animation: slideIn 0.4s ease-out;
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

/* ===== PRINT STYLES ===== */
@media print {
  .header,
  .footer,
  .search-box,
  .btn,
  .nav {
    display: none !important;
  }
  body {
    background: var(--white);
  }
  .flight-card {
    page-break-inside: avoid;
  }
}

/* ===== RESPONSIVE - TABLET ===== */
@media (max-width: 992px) {
  .flight-details {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .flight-duration {
    margin: 16px 0;
  }
  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .results-summary {
    flex-direction: column;
    align-items: flex-start;
  }
  .flight-footer {
    flex-direction: column;
    gap: 16px;
  }
  .price-section {
    text-align: left;
    width: 100%;
  }
  .book-btn {
    width: 100%;
  }
  .modal {
    width: 95%;
    max-height: 95vh;
  }
}

/* ===== PASSENGER DROPDOWN (Flight Search) ===== */
.passenger-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-width: 400px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  padding: 20px;
  z-index: 1000;
  margin-top: 4px;
}
.passenger-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}
.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.close-btn:hover {
  color: #333;
}
.passenger-row {
  margin-bottom: 16px;
}
.passenger-label {
  display: block;
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}
.passenger-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.passenger-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}
.passenger-btn:hover {
  border-color: var(--primary, #1a7ec1);
  background: #f0f8ff;
}
.passenger-btn.active {
  background: var(--primary, #1a7ec1);
  border-color: var(--primary, #1a7ec1);
  color: white;
}
.class-select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}
.passenger-footer {
  margin-top: 0;
  padding: 10px 16px 14px;
  text-align: right;
  border-top: 1px solid #f0f0f0;
}
/* ===== NEW COMPACT PAX COUNTER (replaces passenger-btn boxes) ===== */
.passenger-row-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #f5f5f5;
}
.passenger-row-compact:last-of-type {
  border-bottom: none;
}
.pax-info {
  display: flex;
  flex-direction: column;
}
.pax-title {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}
.pax-age {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}
.pax-counter {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pax-btn-minus,
.pax-btn-plus {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--primary, #1a7ec1);
  background: #fff;
  color: var(--primary, #1a7ec1);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s,
    color 0.15s;
  font-weight: 700;
  padding: 0;
}
.pax-btn-minus:hover,
.pax-btn-plus:hover {
  background: var(--primary, #1a7ec1);
  color: #fff;
}
.pax-btn-minus:disabled,
.pax-btn-plus:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.pax-count {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  min-width: 22px;
  text-align: center;
}
@media (max-width: 768px) {
  .passenger-dropdown {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    width: 360px;
  }
}

/* ===== END NON-CRITICAL CSS (30.1 KB) ===== */
