/* ========================================
   Skycenda Flight Website - Main Styles
   Professional flight booking UI
   ======================================== */

/* --- CSS Variables --- */
:root {
  --blue: #0770e3;
  --blue-dark: #0554ad;
  --blue-light: #e8f4fd;
  --green: #00a698;
  --green-dark: #008577;
  --orange: #ff6d00;
  --red: #d1435b;
  --white: #ffffff;
  --gray-50: #f7f8fa;
  --gray-100: #eff1f3;
  --gray-200: #dddfe1;
  --gray-300: #c1c7cd;
  --gray-400: #9da5ad;
  --gray-600: #545d68;
  --gray-800: #2d3642;
  --gray-900: #161b22;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
  --radius: 8px;
  --radius-lg: 12px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: .2s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

/* ========================================
   HEADER / NAVIGATION
   ======================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.nav {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 22px; font-weight: 700;
  color: var(--blue); display: flex; align-items: center; gap: 6px;
}
.logo svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 8px; }
.nav-links a {
  padding: 8px 16px; border-radius: 6px;
  font-size: 14px; font-weight: 500;
  color: var(--gray-600); transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { background: var(--blue-light); color: var(--blue); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-select {
  padding: 6px 10px; border: 1px solid var(--gray-200);
  border-radius: 6px; font-size: 13px; background: var(--white);
  cursor: pointer;
}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border: none; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--transition);
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--white); color: var(--blue); border: 1px solid var(--blue); }
.btn-secondary:hover { background: var(--blue-light); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* mobile menu toggle */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--gray-800); margin: 5px 0; transition: var(--transition); }

/* ========================================
   HERO / SEARCH SECTION
   ======================================== */
.hero {
  background: linear-gradient(135deg, #0554ad 0%, #0770e3 50%, #00a698 100%);
  padding: 60px 24px 80px; text-align: center; color: var(--white);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero h1 { font-size: 42px; font-weight: 800; margin-bottom: 12px; }
.hero p { font-size: 18px; opacity: .9; margin-bottom: 36px; }

/* --- Search Card --- */
.search-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 28px;
  max-width: 960px; margin: 0 auto; text-align: left; color: var(--gray-800);
  position: relative; z-index: 2;
}
.trip-type-tabs { display: flex; gap: 0; margin-bottom: 20px; }
.trip-btn {
  padding: 8px 18px; font-size: 14px; font-weight: 500;
  border: 1px solid var(--gray-200); cursor: pointer; transition: var(--transition);
  color: var(--gray-600); background: var(--white); font-family: inherit;
}
.trip-btn:first-child { border-radius: 6px 0 0 6px; }
.trip-btn:last-child { border-radius: 0 6px 6px 0; border-left: none; }
.trip-btn.active {
  background: var(--blue); color: var(--white); border-color: var(--blue);
}
.search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 12px; margin-bottom: 16px;
}
.search-grid-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px; align-items: end;
}
.field { display: flex; flex-direction: column; position: relative; }
.field label { font-size: 12px; font-weight: 600; color: var(--gray-600); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; }
.field input, .field select {
  padding: 12px 14px; border: 1px solid var(--gray-200); border-radius: var(--radius);
  font-size: 15px; transition: var(--transition); background: var(--white);
  width: 100%;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(7,112,227,.12); }
.field input::placeholder { color: var(--gray-400); }
.swap-btn {
  position: absolute; right: -18px; top: 34px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); font-size: 14px;
}
.swap-btn:hover { background: var(--blue-light); border-color: var(--blue); }

/* Autocomplete dropdown */
.ac-dropdown {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  max-height: 240px; overflow-y: auto; display: none;
  margin-top: 4px;
}
.ac-dropdown.show { display: block; }
.ac-item {
  padding: 10px 14px; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; gap: 10px; font-size: 14px;
}
.ac-item:hover, .ac-item.highlighted { background: var(--blue-light); }
.ac-item .ac-code { font-weight: 700; color: var(--blue); min-width: 36px; }
.ac-item .ac-name { color: var(--gray-600); }
.ac-item .ac-city { font-weight: 600; }
.ac-item .ac-country { margin-left: auto; font-size: 12px; color: var(--gray-400); white-space: nowrap; }

/* ========================================
   CONTAINER / SECTIONS
   ======================================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 48px 0; }
.section-title { font-size: 26px; font-weight: 700; margin-bottom: 24px; color: var(--gray-900); }

/* ========================================
   POPULAR DESTINATIONS
   ======================================== */
.dest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dest-card {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); background: var(--white);
  cursor: pointer; transition: var(--transition); position: relative;
}
.dest-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.dest-card img { width: 100%; height: 160px; object-fit: cover; }
.dest-card .dest-info { padding: 14px 16px; }
.dest-card .dest-city { font-weight: 700; font-size: 16px; }
.dest-card .dest-country { font-size: 13px; color: var(--gray-400); }
.dest-card .dest-price { position: absolute; top: 12px; right: 12px; background: var(--green); color: var(--white); padding: 4px 10px; border-radius: 20px; font-size: 13px; font-weight: 700; }

/* ========================================
   DEALS SECTION
   ======================================== */
.deals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.deal-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200); padding: 20px;
  transition: var(--transition); position: relative; overflow: hidden;
}
.deal-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); }
.deal-badge { display: inline-block; background: var(--orange); color: var(--white); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-bottom: 12px; text-transform: uppercase; }
.deal-route { font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.deal-meta { font-size: 13px; color: var(--gray-400); margin-bottom: 12px; }
.deal-prices { display: flex; align-items: center; gap: 10px; }
.deal-original { text-decoration: line-through; color: var(--gray-400); font-size: 15px; }
.deal-sale { font-size: 24px; font-weight: 800; color: var(--green); }

/* ========================================
   SEARCH RESULTS PAGE
   ======================================== */
.results-bar {
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  padding: 16px 0;
}
.results-bar-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.results-route { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.results-layout {
  display: grid; grid-template-columns: 280px 1fr; gap: 24px; padding-top: 24px; padding-bottom: 48px;
}
/* filters sidebar */
.filters { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--gray-200); padding: 20px; height: fit-content; position: sticky; top: 88px; }
.filter-section { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--gray-100); }
.filter-section:last-child { border-bottom: none; margin-bottom: 0; }
.filter-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; color: var(--gray-900); }
.filter-option { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 14px; cursor: pointer; }
.filter-option input[type="checkbox"], .filter-option input[type="radio"] { accent-color: var(--blue); }
.price-slider { width: 100%; margin: 8px 0; accent-color: var(--blue); }
.price-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--gray-400); }

/* sort bar */
.sort-bar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.sort-btn {
  padding: 8px 16px; border: 1px solid var(--gray-200); border-radius: 20px;
  background: var(--white); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: var(--transition); color: var(--gray-600);
}
.sort-btn:hover, .sort-btn.active { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* flight result card */
.flight-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 20px; margin-bottom: 12px;
  transition: var(--transition); display: grid;
  grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  cursor: pointer;
}
.flight-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); }
.flight-card .tag {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: 4px; margin-bottom: 8px;
}
.tag-cheapest { background: #e6f9f0; color: var(--green); }
.tag-fastest { background: #fff3e0; color: var(--orange); }
.fc-airline { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.fc-airline-name { font-weight: 600; font-size: 14px; }
.fc-airline-flight { font-size: 13px; color: var(--gray-400); }
.fc-times { display: flex; align-items: center; gap: 16px; }
.fc-time { font-size: 22px; font-weight: 700; }
.fc-line { flex: 1; position: relative; height: 2px; background: var(--gray-200); min-width: 80px; }
.fc-line::before, .fc-line::after {
  content: ''; position: absolute; top: -3px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--blue);
}
.fc-line::before { left: 0; }
.fc-line::after { right: 0; }
.fc-duration { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--gray-400); white-space: nowrap; }
.fc-stops { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--gray-400); white-space: nowrap; }
.fc-stops.direct { color: var(--green); font-weight: 600; }
.fc-airports { display: flex; justify-content: space-between; font-size: 13px; color: var(--gray-400); margin-top: 4px; }
.fc-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.fc-price { font-size: 26px; font-weight: 800; color: var(--blue); }
.fc-per { font-size: 12px; color: var(--gray-400); }

/* ========================================
   FLIGHT DETAILS PAGE
   ======================================== */
.details-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; padding-top: 24px; padding-bottom: 48px; }
.detail-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; }
.detail-card h2 { font-size: 18px; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--blue); }
/* timeline */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--gray-200); }
.tl-point { position: relative; margin-bottom: 24px; }
.tl-point::before { content: ''; position: absolute; left: -21px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); border: 2px solid var(--white); box-shadow: 0 0 0 2px var(--blue); }
.tl-point:last-child { margin-bottom: 0; }
.tl-time { font-size: 20px; font-weight: 700; color: var(--gray-900); }
.tl-airport { font-size: 15px; font-weight: 600; margin: 2px 0; }
.tl-detail { font-size: 13px; color: var(--gray-400); }
.tl-flight-info { background: var(--gray-50); padding: 12px 16px; border-radius: var(--radius); margin: 12px 0; font-size: 14px; }
/* price breakdown */
.price-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.price-row.total { border-top: 2px solid var(--gray-900); margin-top: 8px; padding-top: 12px; font-weight: 700; font-size: 18px; }
/* baggage item */
.bag-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
.bag-item:last-child { border-bottom: none; }
.bag-icon { font-size: 28px; }
.bag-label { font-weight: 600; font-size: 14px; }
.bag-desc { font-size: 13px; color: var(--gray-400); }
.bag-status { margin-left: auto; font-size: 13px; font-weight: 600; }
.bag-status.included { color: var(--green); }
.bag-status.paid { color: var(--orange); }
/* sidebar sticky */
.sidebar-sticky { position: sticky; top: 88px; }
.sidebar-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; }
.sidebar-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; color: var(--gray-600); }
.summary-row span:last-child { font-weight: 600; color: var(--gray-900); }
.summary-row.total { border-top: 2px solid var(--blue); margin-top: 8px; padding-top: 10px; font-size: 18px; font-weight: 700; }
.summary-row.total span:last-child { color: var(--blue); }

/* ========================================
   BOOKING PAGE
   ======================================== */
.steps-bar { background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 20px 0; }
.steps { display: flex; justify-content: center; gap: 0; max-width: 600px; margin: 0 auto; position: relative; }
.steps::before { content: ''; position: absolute; top: 18px; left: 15%; right: 15%; height: 2px; background: var(--gray-200); z-index: 0; }
.step-dot { display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 1; flex: 1; }
.step-num { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; background: var(--gray-100); color: var(--gray-400); transition: var(--transition); }
.step-dot.active .step-num { background: var(--blue); color: var(--white); }
.step-dot.done .step-num { background: var(--green); color: var(--white); }
.step-label { font-size: 12px; font-weight: 600; color: var(--gray-400); }
.step-dot.active .step-label { color: var(--blue); }
.step-dot.done .step-label { color: var(--green); }

.booking-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; padding-top: 24px; padding-bottom: 48px; }
.book-section { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; }
.book-section h2 { font-size: 18px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.book-section h2 .num { background: var(--blue); color: var(--white); width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; }

/* seat map */
.seat-legend { display: flex; gap: 20px; margin-bottom: 16px; justify-content: center; }
.seat-legend-item { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.seat-legend-box { width: 24px; height: 24px; border-radius: 4px; border: 2px solid var(--gray-200); }
.seat-legend-box.avail { background: var(--white); }
.seat-legend-box.sel { background: var(--blue); border-color: var(--blue); }
.seat-legend-box.taken { background: var(--gray-200); border-color: var(--gray-200); }
.seat-grid { display: grid; grid-template-columns: repeat(7, 28px); gap: 3px; justify-content: center; margin-bottom: 16px; max-height: 400px; overflow-y: auto; }
.seat-cell {
  width: 28px; height: 28px; border: 1px solid var(--gray-200);
  border-radius: 4px 4px 3px 3px; display: flex; align-items: center;
  justify-content: center; font-size: 9px; font-weight: 600;
  cursor: pointer; transition: var(--transition); background: var(--white);
}
.seat-cell:hover:not(.taken):not(.aisle):not(.locked) { border-color: var(--blue); background: var(--blue-light); }
.seat-cell.selected { background: var(--blue); color: var(--white); border-color: var(--blue); }
.seat-cell.taken { background: var(--gray-100); color: var(--gray-300); cursor: not-allowed; border-color: var(--gray-100); }
.seat-cell.aisle { border: none; background: none; cursor: default; }
.seat-cell.business { border-color: #d4a017; }
.seat-cell.business:not(.taken):not(.locked) { background: #fef9e7; }
.seat-cell.locked { background: #fdf2d0; color: #b8860b; cursor: not-allowed; border-color: #d4a017; opacity: .6; }
.seat-legend-box.biz { background: #fef9e7; border-color: #d4a017; }
.seat-legend-box.locked { background: #fdf2d0; border-color: #d4a017; opacity: .6; }

/* addon cards */
.addon-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.addon-card {
  border: 2px solid var(--gray-200); border-radius: var(--radius);
  padding: 14px; cursor: pointer; transition: var(--transition); display: flex; gap: 12px; align-items: flex-start;
}
.addon-card:hover { border-color: var(--blue); }
.addon-card.selected { border-color: var(--blue); background: var(--blue-light); }
.addon-card input { margin-top: 3px; accent-color: var(--blue); }
.addon-title { font-weight: 600; font-size: 14px; }
.addon-desc { font-size: 13px; color: var(--gray-400); }
.addon-price { font-weight: 700; color: var(--blue); font-size: 14px; margin-top: 4px; }

/* form grid */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--gray-600); }
.form-field input, .form-field select {
  padding: 11px 14px; border: 1px solid var(--gray-200); border-radius: var(--radius);
  font-size: 15px; transition: var(--transition);
}
.form-field input:focus, .form-field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(7,112,227,.12); }
.form-field .error-msg { font-size: 12px; color: var(--red); margin-top: 3px; display: none; }
.form-field.invalid input, .form-field.invalid select { border-color: var(--red); }
.form-field.invalid .error-msg { display: block; }

/* payment */
.pay-methods { display: flex; gap: 12px; margin-bottom: 20px; }
.pay-method {
  flex: 1; padding: 14px; border: 2px solid var(--gray-200);
  border-radius: var(--radius); text-align: center; cursor: pointer;
  transition: var(--transition); font-weight: 600; font-size: 14px;
}
.pay-method:hover { border-color: var(--blue); }
.pay-method.active { border-color: var(--blue); background: var(--blue-light); }
.pay-icon { font-size: 24px; margin-bottom: 4px; }
.terms-row { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; margin-bottom: 10px; }
.terms-row input { margin-top: 3px; accent-color: var(--blue); }
.terms-row a { color: var(--blue); }

/* ========================================
   CONFIRMATION PAGE
   ======================================== */
.confirm-hero {
  background: linear-gradient(135deg, #00a698 0%, #28c76f 100%);
  color: var(--white); text-align: center; padding: 48px 24px;
}
.confirm-hero .check-icon { width: 72px; height: 72px; background: rgba(255,255,255,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 36px; margin: 0 auto 16px; }
.confirm-hero h1 { font-size: 32px; margin-bottom: 8px; }
.confirm-hero p { font-size: 16px; opacity: .9; }
.ref-card { background: var(--white); border: 2px dashed var(--blue); border-radius: var(--radius-lg); padding: 24px; text-align: center; margin-bottom: 24px; }
.ref-card h2 { font-size: 14px; color: var(--gray-400); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.ref-code { font-size: 36px; font-weight: 800; color: var(--blue); font-family: monospace; letter-spacing: 4px; }
.eticket { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px; }
.eticket-top { background: var(--blue); color: var(--white); padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; }
.eticket-body { padding: 24px; }
.eticket-route { display: flex; justify-content: space-between; align-items: center; text-align: center; margin-bottom: 20px; }
.eticket-point h4 { font-size: 12px; color: var(--gray-400); text-transform: uppercase; margin-bottom: 4px; }
.eticket-point .code { font-size: 32px; font-weight: 800; }
.eticket-point .city { font-size: 14px; color: var(--gray-600); }
.eticket-point .time { font-size: 18px; font-weight: 700; margin-top: 4px; }
.eticket-mid { font-size: 32px; color: var(--gray-300); }
.eticket-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 16px; border-top: 1px dashed var(--gray-200); }
.eticket-info div { font-size: 13px; }
.eticket-info strong { display: block; font-size: 12px; color: var(--gray-400); text-transform: uppercase; margin-bottom: 2px; font-weight: 600; }
.eticket-bar { padding: 16px 24px; border-top: 1px dashed var(--gray-200); text-align: center; }
.barcode { height: 48px; background: repeating-linear-gradient(90deg, var(--gray-900) 0 2px, transparent 2px 4px, var(--gray-900) 4px 5px, transparent 5px 8px, var(--gray-900) 8px 10px, transparent 10px 12px); margin: 0 auto 8px; max-width: 300px; }
.eticket-actions { display: flex; gap: 12px; justify-content: center; margin-top: 16px; }

/* info grid */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 24px; }
.info-box { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 20px; }
.info-box h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.info-box ul { padding-left: 18px; }
.info-box li { font-size: 14px; color: var(--gray-600); margin-bottom: 6px; }

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--gray-900); color: var(--gray-400);
  padding: 48px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-brand p { font-size: 14px; line-height: 1.7; margin-top: 12px; }
.footer-col h4 { color: var(--white); font-size: 14px; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .5px; }
.footer-col a { display: block; font-size: 14px; padding: 4px 0; transition: var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; flex-wrap: wrap; gap: 12px; }
.social-links { display: flex; gap: 16px; }
.social-links a { font-size: 18px; transition: var(--transition); }
.social-links a:hover { color: var(--white); }

/* ========================================
   UTILITIES & RESPONSIVE
   ======================================== */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.hidden { display: none !important; }

/* Mobile filter toggle */
.mobile-filter-toggle { display: none; }

/* ---- TABLET (max 1024px) ---- */
@media (max-width: 1024px) {
  .search-grid { grid-template-columns: 1fr 1fr; }
  .search-grid-bottom { grid-template-columns: 1fr 1fr; }
  .dest-grid { grid-template-columns: repeat(2, 1fr); }
  .deals-grid { grid-template-columns: 1fr; }
  .results-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .details-layout { grid-template-columns: 1fr; }
  .booking-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .eticket-info { grid-template-columns: 1fr 1fr; }
}

/* ---- PHONE (max 640px) ---- */
@media (max-width: 640px) {
  /* Global */
  body { font-size: 14px; }
  .container { padding: 0 14px; }
  section { padding: 32px 0; }
  .section-title { font-size: 20px; margin-bottom: 16px; }

  /* Header / Nav */
  .nav { padding: 0 14px; height: 56px; }
  .logo { font-size: 19px; }
  .logo svg { width: 24px; height: 24px; }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 56px; left: 0; right: 0; background: var(--white);
    border-bottom: 1px solid var(--gray-200); padding: 12px 14px;
    box-shadow: var(--shadow-md); z-index: 99;
  }
  .nav-links.open a { padding: 12px 14px; font-size: 15px; border-radius: 8px; }
  .nav-right { gap: 8px; }
  .lang-select { padding: 5px 8px; font-size: 12px; }

  /* Hero */
  .hero { padding: 36px 14px 52px; }
  .hero h1 { font-size: 26px; line-height: 1.2; }
  .hero p { font-size: 14px; margin-bottom: 24px; }

  /* Search Card */
  .search-card { padding: 18px 14px; border-radius: 10px; }
  .trip-type-tabs { margin-bottom: 14px; }
  .trip-btn { padding: 7px 14px; font-size: 13px; }
  .search-grid { grid-template-columns: 1fr; gap: 10px; margin-bottom: 10px; }
  .search-grid-bottom { grid-template-columns: 1fr; gap: 10px; }
  .field input, .field select { padding: 11px 12px; font-size: 14px; }
  .field label { font-size: 11px; margin-bottom: 4px; }
  .swap-btn { right: 8px; top: 32px; width: 28px; height: 28px; font-size: 12px; }
  .btn-lg { padding: 13px 20px; font-size: 15px; width: 100%; }

  /* Destinations */
  .dest-grid { grid-template-columns: 1fr; gap: 14px; }
  .dest-card img { height: 140px; }

  /* Deals */
  .deals-grid { grid-template-columns: 1fr; gap: 14px; }
  .deal-route { font-size: 16px; }
  .deal-sale { font-size: 20px; }

  /* Mobile filter toggle */
  .mobile-filter-toggle { display: block; width: 100%; margin: 14px 0 0; font-size: 14px; padding: 10px 16px; }

  /* Search Results */
  .results-bar { padding: 12px 0; }
  .results-route { font-size: 16px; }
  .results-layout { grid-template-columns: 1fr; gap: 16px; padding-top: 16px; padding-bottom: 32px; }
  .filters { display: none; padding: 16px; border-radius: 10px; order: 2; }
  .filters.open { display: block; }
  .sort-bar { gap: 6px; }
  .sort-btn { padding: 7px 12px; font-size: 12px; }

  /* Flight Cards */
  .flight-card { grid-template-columns: 1fr; padding: 16px; gap: 12px; border-radius: 10px; }
  .fc-airline { margin-bottom: 6px; }
  .fc-airline-name { font-size: 13px; }
  .fc-time { font-size: 18px; }
  .fc-line { min-width: 60px; }
  .fc-duration { font-size: 11px; top: -18px; }
  .fc-stops { font-size: 11px; bottom: -16px; }
  .fc-right { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; padding-top: 8px; border-top: 1px solid var(--gray-100); }
  .fc-price { font-size: 22px; }
  .fc-per { font-size: 11px; }

  /* Flight Details Page */
  .details-layout { grid-template-columns: 1fr; gap: 16px; padding-top: 16px; padding-bottom: 32px; }
  .detail-card { padding: 18px; border-radius: 10px; margin-bottom: 14px; }
  .detail-card h2 { font-size: 16px; }
  .tl-time { font-size: 17px; }
  .tl-airport { font-size: 14px; }
  .price-row { font-size: 13px; }
  .price-row.total { font-size: 16px; }
  .bag-item { padding: 10px 0; }
  .bag-icon { font-size: 24px; }
  .sidebar-sticky { position: static; }
  .sidebar-card { padding: 16px; }

  /* Booking Page */
  .steps-bar { padding: 14px 0; }
  .steps { gap: 0; }
  .step-num { width: 30px; height: 30px; font-size: 12px; }
  .step-label { font-size: 10px; }
  .booking-layout { grid-template-columns: 1fr; gap: 16px; padding-top: 16px; padding-bottom: 32px; }
  .book-section { padding: 18px; border-radius: 10px; margin-bottom: 14px; }
  .book-section h2 { font-size: 16px; }
  .book-section h2 .num { width: 24px; height: 24px; font-size: 12px; }

  /* Seat Map */
  .seat-legend { gap: 12px; flex-wrap: wrap; }
  .seat-legend-item { font-size: 11px; }
  .seat-grid { grid-template-columns: repeat(7, 30px); gap: 4px; }
  .seat-cell { width: 30px; height: 30px; font-size: 9px; }

  /* Form / Add-ons */
  .form-grid { grid-template-columns: 1fr; gap: 10px; }
  .form-field label { font-size: 12px; }
  .form-field input, .form-field select { padding: 10px 12px; font-size: 14px; }
  .addon-row { grid-template-columns: 1fr; gap: 10px; }
  .addon-card { padding: 12px; }
  .addon-title { font-size: 13px; }
  .addon-desc { font-size: 12px; }

  /* Payment */
  .pay-methods { flex-direction: column; gap: 8px; }
  .pay-method { padding: 12px; font-size: 13px; }
  .terms-row { font-size: 13px; }

  /* Confirmation */
  .confirm-hero { padding: 32px 14px; }
  .confirm-hero .check-icon { width: 56px; height: 56px; font-size: 28px; }
  .confirm-hero h1 { font-size: 24px; }
  .confirm-hero p { font-size: 14px; }
  .ref-card { padding: 18px; }
  .ref-code { font-size: 26px; letter-spacing: 2px; }
  .eticket-top { padding: 12px 16px; font-size: 14px; }
  .eticket-body { padding: 16px; }
  .eticket-point .code { font-size: 24px; }
  .eticket-point .city { font-size: 13px; }
  .eticket-point .time { font-size: 16px; }
  .eticket-mid { font-size: 24px; }
  .eticket-route { flex-direction: column; gap: 14px; }
  .eticket-info { grid-template-columns: 1fr; gap: 10px; }
  .eticket-actions { flex-direction: column; gap: 8px; }
  .eticket-actions .btn { width: 100%; }
  .info-grid { grid-template-columns: 1fr; gap: 12px; }
  .info-box { padding: 16px; }
  .info-box h3 { font-size: 15px; }

  /* Footer */
  .site-footer { padding: 32px 0 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding: 0 14px; }
  .footer-brand p { font-size: 13px; }
  .footer-col h4 { font-size: 13px; margin-bottom: 10px; }
  .footer-col a { font-size: 13px; padding: 3px 0; }
  .footer-bottom { padding: 16px 14px 0; font-size: 12px; flex-direction: column; text-align: center; gap: 8px; }
  .social-links { justify-content: center; }
}

/* ========================================
   AIRLINE LOGOS
   ======================================== */
.airline-logo { width: 32px; height: 32px; object-fit: contain; border-radius: 4px; flex-shrink: 0; }
.fc-save { font-size: 11px; color: var(--green); font-weight: 700; }

/* ========================================
   LIVE CHAT WIDGET
   ======================================== */
.chat-bubble {
  position: fixed; bottom: 24px; right: 24px; z-index: 9000;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 20px rgba(7,112,227,.4);
  transition: transform .2s, box-shadow .2s;
}
.chat-bubble:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(7,112,227,.5); }
.chat-bubble-icon { font-size: 28px; }
.chat-bubble-badge {
  position: absolute; top: -2px; right: -2px;
  background: var(--red); color: var(--white);
  width: 20px; height: 20px; border-radius: 50%;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.chat-window {
  position: fixed; bottom: 24px; right: 24px; z-index: 9001;
  width: 380px; height: 520px;
  background: var(--white); border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,.18);
  flex-direction: column; overflow: hidden;
  animation: chatIn .3s ease;
}
@keyframes chatIn { from { opacity: 0; transform: translateY(20px) scale(.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes modalIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }

.chat-header {
  background: var(--blue); color: var(--white);
  padding: 14px 18px; display: flex; align-items: center; justify-content: space-between;
}
.chat-header-info { display: flex; align-items: center; gap: 10px; }
.chat-header-avatar { width: 36px; height: 36px; background: rgba(255,255,255,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.chat-header-name { font-weight: 700; font-size: 15px; }
.chat-header-status { font-size: 12px; opacity: .85; display: flex; align-items: center; gap: 5px; }
.chat-online-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; display: inline-block; }
.chat-close-btn { background: none; border: none; color: var(--white); font-size: 20px; cursor: pointer; padding: 4px 8px; opacity: .8; transition: opacity .2s; }
.chat-close-btn:hover { opacity: 1; }

.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { display: flex; flex-direction: column; max-width: 85%; }
.chat-msg.user { align-self: flex-end; align-items: flex-end; }
.chat-msg.bot { align-self: flex-start; align-items: flex-start; }
.chat-msg-bubble {
  padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5;
  word-wrap: break-word; white-space: pre-line;
}
.chat-msg.user .chat-msg-bubble { background: var(--blue); color: var(--white); border-bottom-right-radius: 4px; }
.chat-msg.bot .chat-msg-bubble { background: var(--gray-100); color: var(--gray-800); border-bottom-left-radius: 4px; }
.chat-msg-time { font-size: 11px; color: var(--gray-400); margin-top: 3px; }

.chat-typing span {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gray-400); margin: 0 2px;
  animation: typingDot 1.4s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typingDot { 0%, 80%, 100% { transform: scale(.6); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }

.chat-quick-replies { padding: 8px 16px; display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px solid var(--gray-100); }
.chat-quick-btn {
  padding: 6px 12px; border: 1px solid var(--blue); border-radius: 20px;
  background: var(--white); color: var(--blue); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
}
.chat-quick-btn:hover { background: var(--blue); color: var(--white); }

.chat-input-area { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--gray-200); }
.chat-input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--gray-200);
  border-radius: 24px; font-size: 14px; outline: none;
  transition: border-color .2s;
}
.chat-input:focus { border-color: var(--blue); }
.chat-send-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: var(--white); border: none;
  font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.chat-send-btn:hover { background: var(--blue-dark); }

@media (max-width: 640px) {
  .chat-window { width: calc(100vw - 16px); height: calc(100vh - 80px); bottom: 8px; right: 8px; border-radius: 12px; }
  .chat-bubble { bottom: 16px; right: 16px; width: 52px; height: 52px; }
  .chat-bubble-icon { font-size: 24px; }
}

/* Print */
@media print {
  .site-header, .site-footer, .eticket-actions, .btn, #liveChatWidget { display: none !important; }
  body { background: white; }
  .eticket { border: 2px solid #000; }
}
