/* ==========================================================================
   Lets Fly — Search Results Styles
   Light theme: white cards, orange accents, clean filters sidebar
   ========================================================================== */

/* ── Page body ─────────────────────────────────────────────────────────────── */
.lf-results-body {
  background: #F8F9FC;
  color: #1a1a2e;
  font-family: 'Inter', sans-serif;
}

/* ── Summary bar ───────────────────────────────────────────────────────────── */
.lf-summary-bar {
  background: #fff;
  border-bottom: 1px solid #e8e9f0;
  padding: 80px 0 16px;
}
.lf-summary-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.lf-summary-route {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1a1a2e;
}
.lf-route-arrow { color: #EF6603; font-size: 1.2rem; }
.lf-summary-meta { color: #6b7280; font-size: 0.85rem; margin-top: 4px; }
.lf-btn-outline-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid #EF6603;
  color: #EF6603;
  padding: 8px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.lf-btn-outline-sm:hover { background: #EF6603; color: #fff; }

/* ── Results layout ────────────────────────────────────────────────────────── */
.lf-results-section { padding: 32px 0 64px; }
.lf-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.lf-results-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1024px) { .lf-results-layout { grid-template-columns: 1fr; } }

/* ── Error state ───────────────────────────────────────────────────────────── */
.lf-error-state {
  text-align: center;
  padding: 80px 24px;
  grid-column: 1 / -1;
}
.lf-error-icon { font-size: 3rem; margin-bottom: 16px; }
.lf-error-state h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.lf-error-state p  { color: #6b7280; margin-bottom: 24px; }
.lf-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #EF6603;
  color: #fff;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.lf-btn-primary:hover { background: #d95c02; transform: translateY(-1px); }

/* ── Filter sidebar ────────────────────────────────────────────────────────── */
.lf-filter-sidebar { position: sticky; top: 80px; }
.lf-filter-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e8e9f0;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.lf-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1a1a2e;
}
.lf-filter-reset {
  font-size: 0.75rem;
  color: #EF6603;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
}
.lf-filter-group { margin-bottom: 20px; }
.lf-filter-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.lf-stop-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.stop-pill {
  padding: 5px 12px;
  border-radius: 20px;
  border: 1.5px solid #e0e0e0;
  background: #f9fafb;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all .15s;
}
.stop-pill.active { border-color: #EF6603; background: #fff4ec; color: #EF6603; }
.lf-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: #e0e0e0;
  outline: none;
  cursor: pointer;
}
.lf-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #EF6603;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #EF6603;
}
.lf-dual-range { display: flex; flex-direction: column; gap: 4px; }
.lf-select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1.5px solid #e0e0e0;
  font-size: 0.82rem;
  color: #374151;
  background: #f9fafb;
  cursor: pointer;
}

/* Mobile filter toggle */
.lf-mobile-filter-btn {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
@media (max-width: 1024px) {
  .lf-filter-sidebar { display: none; position: fixed; top: 0; left: 0; height: 100%; z-index: 999; overflow-y: auto; }
  .lf-filter-sidebar.mobile-filter-open { display: block; }
  .lf-mobile-filter-btn { display: flex; }
}

/* ── Cards column ──────────────────────────────────────────────────────────── */
.lf-cards-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.lf-result-count { font-size: 0.88rem; color: #6b7280; }
.lf-result-count strong { color: #1a1a2e; font-weight: 700; }
.lf-rt-badge {
  background: #fff4ec;
  color: #EF6603;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.lf-rt-notice {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.lf-rt-step {
  font-size: 0.8rem;
  font-weight: 600;
  color: #9ca3af;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1.5px solid #e0e0e0;
  transition: all .2s;
}
.lf-rt-step.lf-step-active { color: #EF6603; border-color: #EF6603; background: #fff4ec; }

/* ── Individual flight card ─────────────────────────────────────────────────── */
.lf-flight-result {
  background: #fff;
  border: 1.5px solid #e8e9f0;
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s, transform .15s;
}
.lf-flight-result:hover { box-shadow: 0 6px 24px rgba(239,102,3,.1); border-color: #fcd7b6; }
.lf-flight-result.lf-outbound-selected { border-color: #EF6603; box-shadow: 0 0 0 2px rgba(239,102,3,.2); }
.lf-flight-result.lf-outbound-dimmed  { opacity: .5; transform: scale(.99); pointer-events: none; }
.lf-flight-result.hidden { display: none; }

.lf-flight-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  flex-wrap: wrap;
}

/* Airline section */
.lf-card-airline {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
  flex-shrink: 0;
}
.lf-airline-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
  background: #f9fafb;
  padding: 4px;
  border: 1px solid #e8e9f0;
}
.lf-airline-code {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #fff4ec;
  color: #EF6603;
  font-weight: 800;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -.02em;
}
.lf-airline-info { display: flex; flex-direction: column; }
.lf-airline-name { font-weight: 600; font-size: 0.88rem; color: #1a1a2e; }
.lf-flight-num   { font-size: 0.75rem; color: #9ca3af; }

/* Route section */
.lf-card-route {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 200px;
}
.lf-time-block { text-align: center; }
.lf-big-time { display: block; font-size: 1.3rem; font-weight: 800; color: #1a1a2e; }
.lf-apt-code  { display: block; font-size: 0.72rem; font-weight: 700; color: #EF6603; letter-spacing: .06em; }
.lf-route-line { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.lf-route-dur { font-size: 0.72rem; color: #6b7280; }
.lf-route-track { display: flex; align-items: center; gap: 0; width: 100%; }
.lf-dot  { width: 6px; height: 6px; border-radius: 50%; background: #EF6603; flex-shrink: 0; }
.lf-dash { flex: 1; height: 1.5px; background: #d1d5db; }
.lf-plane { font-size: 0.8rem; color: #EF6603; transform: rotate(0deg); }
.lf-nonstop { font-size: 0.7rem; font-weight: 700; color: #16a34a; }
.lf-1stop   { font-size: 0.7rem; font-weight: 700; color: #d97706; }
.lf-2stop   { font-size: 0.7rem; font-weight: 700; color: #dc2626; }

/* Price section */
.lf-card-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 140px;
  flex-shrink: 0;
}
.lf-price-amount { font-size: 1.65rem; font-weight: 900; color: #1a1a2e; line-height: 1; }
.lf-price-note   { font-size: 0.7rem; color: #9ca3af; }
.lf-select-outbound-btn, .lf-select-oneway-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #EF6603;
  color: #fff;
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.82rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .15s;
  margin-top: 4px;
}
.lf-select-outbound-btn:hover, .lf-select-oneway-btn:hover { background: #d95c02; transform: translateY(-1px); }
.lf-select-outbound-btn.lf-btn-selected { background: #16a34a; }
.lf-details-toggle {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin-top: 2px;
}
.lf-details-toggle:hover { color: #EF6603; }

/* ── Segment Details Panel ───────────────────────────────────────────────────── */
.lf-details-panel {
  border-top: 1px solid #f0f0f5;
  padding: 14px 20px;
  background: #fafafa;
}
.lf-seg-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed #e8e9f0;
}
.lf-seg-row:last-child { border-bottom: none; }
.lf-seg-logo-wrap img { width: 28px; height: 28px; object-fit: contain; border-radius: 4px; }
.lf-seg-detail { flex: 1; }
.lf-seg-times-row { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; flex-wrap: wrap; }
.lf-seg-time   { font-weight: 700; color: #1a1a2e; }
.lf-seg-apt    { font-size: 0.72rem; font-weight: 700; color: #EF6603; }
.lf-seg-arrow  { color: #d1d5db; font-size: 0.75rem; }
.lf-seg-meta   { font-size: 0.72rem; color: #9ca3af; margin-top: 3px; }
.lf-layover-row {
  background: #fff8f4;
  border-left: 3px solid #EF6603;
  padding: 6px 12px;
  font-size: 0.75rem;
  color: #6b7280;
  margin: 6px 0;
  border-radius: 0 6px 6px 0;
}

/* ── Return flight section ───────────────────────────────────────────────────── */
.lf-return-container {
  border-top: 2px solid #EF6603;
  background: #fffaf7;
  padding: 16px 20px 20px;
}
.lf-return-header {
  font-weight: 700;
  font-size: 0.9rem;
  color: #EF6603;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lf-return-list { display: flex; flex-direction: column; gap: 10px; }

/* Return option card */
.lf-return-option {
  background: #fff;
  border: 1.5px solid #e8e9f0;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s;
}
.lf-return-option:hover { border-color: #EF6603; }
.lf-return-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  flex-wrap: wrap;
}
.lf-return-airline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
  flex-shrink: 0;
}
.lf-airline-logo-sm { width: 30px; height: 30px; object-fit: contain; border-radius: 6px; background: #f9fafb; }
.lf-airline-code-badge {
  width: 30px; height: 30px;
  background: #fff4ec; color: #EF6603;
  border-radius: 6px; font-weight: 800;
  font-size: 0.65rem;
  display: flex; align-items: center; justify-content: center;
}
.lf-airline-name-sm { font-size: 0.78rem; font-weight: 600; color: #374151; }

.lf-return-route { display: flex; align-items: center; gap: 8px; flex: 1; }
.lf-return-time-block { text-align: center; }
.lf-return-time { font-size: 1.05rem; font-weight: 800; color: #1a1a2e; display: flex; align-items: center; gap: 3px; }
.lf-return-apt  { font-size: 0.68rem; font-weight: 700; color: #EF6603; }
.lf-return-line { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.lf-return-dur  { font-size: 0.68rem; color: #6b7280; }
.lf-return-track { display: flex; align-items: center; width: 100%; gap: 0; }
.lf-return-dot  { width: 5px; height: 5px; border-radius: 50%; background: #EF6603; }
.lf-return-dash { flex: 1; height: 1.5px; background: #d1d5db; }
.lf-plane-icon  { font-size: 0.7rem; color: #EF6603; }
.lf-badge-nonstop { font-size: 0.65rem; font-weight: 700; color: #16a34a; }
.lf-badge-1stop   { font-size: 0.65rem; font-weight: 700; color: #d97706; }
.lf-badge-2stop   { font-size: 0.65rem; font-weight: 700; color: #dc2626; }
.lf-overnight-badge {
  font-size: 0.55rem; font-weight: 800;
  background: #fef2f2; color: #dc2626;
  padding: 1px 4px; border-radius: 4px;
}

.lf-return-price-block {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 4px;
  min-width: 110px; flex-shrink: 0;
}
.lf-return-price      { font-size: 1.2rem; font-weight: 900; color: #1a1a2e; }
.lf-return-price-note { font-size: 0.65rem; color: #9ca3af; }
.lf-select-return-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: #1a1a2e; color: #fff;
  padding: 7px 14px; border-radius: 8px;
  font-size: 0.75rem; font-weight: 700;
  border: none; cursor: pointer;
  transition: background .2s;
}
.lf-select-return-btn:hover { background: #EF6603; }

.lf-return-detail-toggle { padding: 0 16px 2px; }
.lf-detail-btn {
  background: none; border: none;
  font-size: 0.72rem; color: #6b7280;
  cursor: pointer; display: flex;
  align-items: center; gap: 4px;
}
.lf-detail-btn:hover { color: #EF6603; }
.lf-return-segments { padding: 10px 16px 14px; border-top: 1px dashed #e8e9f0; }
.lf-seg-logo { width: 22px; height: 22px; object-fit: contain; border-radius: 4px; }
.lf-layover-pill {
  background: #fff8f4;
  border-left: 2px solid #EF6603;
  padding: 5px 10px;
  font-size: 0.7rem;
  color: #6b7280;
  margin: 5px 0;
  border-radius: 0 6px 6px 0;
}

/* ── Skeleton loading ────────────────────────────────────────────────────────── */
.lf-progress-msg {
  text-align: center;
  padding: 10px;
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 600;
}
.lf-skeleton {
  background: #f5f5f7;
  border-radius: 10px;
  padding: 14px 16px;
  animation: lf-pulse 1.5s ease-in-out infinite;
}
.lf-skel-line { height: 10px; background: #e0e0e0; border-radius: 6px; margin: 6px 0; }
.lf-skel-short { width: 40%; }
.lf-skel-long  { width: 90%; }
.lf-skel-mid   { width: 65%; }
@keyframes lf-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .5; }
}

/* ── Return errors / retry ───────────────────────────────────────────────────── */
.lf-return-error {
  text-align: center;
  padding: 16px;
  color: #6b7280;
  font-size: 0.82rem;
}
.lf-retry-btn {
  background: none;
  border: 1.5px solid #EF6603;
  color: #EF6603;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  margin-left: 8px;
}
.lf-retry-btn:hover { background: #EF6603; color: #fff; }

/* ── Empty filter state ──────────────────────────────────────────────────────── */
.lf-empty-filter {
  text-align: center;
  padding: 60px 24px;
  color: #9ca3af;
}
.lf-empty-icon { font-size: 2.5rem; display: block; margin-bottom: 12px; }
.lf-empty-filter strong { color: #374151; }

/* ── Mobile filter backdrop ──────────────────────────────────────────────────── */
.mobile-filter-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 998;
}
.mobile-filter-backdrop.active { display: block; }
