.search-form-card {
  background: #fff; padding: 20px 24px; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-bottom: 20px;
}
.search-form { display: flex; flex-direction: column; gap: 12px; }
.search-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.search-field { display: flex; flex-direction: column; min-width: 120px; position: relative; }
.search-field-wide { flex: 2; min-width: 180px; }
.search-field-tiny { min-width: 80px; }
.search-submit { justify-content: flex-end; }
.search-field label { font-size: 11px; color: #718096; margin-bottom: 4px; font-weight: 600; }
.search-field input, .search-field select {
  padding: 9px 12px; border: 1px solid #cbd5e0; border-radius: 6px; font-size: 14px;
}
.search-field input:disabled { background: #edf2f7; color: #a0aec0; }
.search-submit .btn { padding: 10px 24px; font-size: 14px; }

.autocomplete-list {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
  background: #fff; border: 1px solid #cbd5e0; border-top: none;
  border-radius: 0 0 6px 6px; max-height: 260px; overflow-y: auto;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08); display: none;
}
.autocomplete-list.visible { display: block; }
.autocomplete-item {
  padding: 8px 12px; cursor: pointer; font-size: 13px; border-bottom: 1px solid #f0f0f0;
}
.autocomplete-item:hover, .autocomplete-item.highlighted { background: #ebf8ff; }
.autocomplete-item .iata { font-weight: 700; color: #1a365d; margin-right: 8px; }
.autocomplete-item .city { color: #4a5568; }
.autocomplete-item .state { color: #a0aec0; font-size: 11px; margin-left: 6px; }

.route-context {
  background: #ebf8ff; padding: 14px 18px; border-radius: 8px; margin-bottom: 16px;
  border-left: 4px solid #3182ce; font-size: 13px;
}
.route-context .rc-title { font-weight: 600; color: #1a365d; margin-bottom: 4px; }
.route-context .rc-stats { color: #2c5282; }

.loading {
  text-align: center; padding: 40px; background: #fff; border-radius: 10px;
  margin-bottom: 16px;
}
.spinner {
  width: 40px; height: 40px; border: 4px solid #e2e8f0; border-top-color: #3182ce;
  border-radius: 50%; margin: 0 auto 12px; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.results { display: flex; flex-direction: column; gap: 20px; }
.results.round-trip { flex-direction: row; align-items: flex-start; }
.results.round-trip .direction-col { flex: 1; min-width: 0; }

.direction-title {
  font-size: 14px; font-weight: 600; color: #4a5568; text-transform: uppercase;
  letter-spacing: 0.5px; margin: 0 0 12px 0;
}

.summary-card {
  background: #fff; padding: 14px 18px; border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06); margin-bottom: 14px;
}
.summary-card h3 { margin: 0 0 10px 0; font-size: 13px; color: #4a5568; text-transform: uppercase; }
.summary-list { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.summary-item { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f0f0f0; }
.summary-item:last-child { border: none; }
.summary-item .s-label { color: #718096; font-size: 11px; text-transform: uppercase; }
.summary-item .s-value { font-weight: 600; color: #1a365d; }
.summary-item .s-none { color: #a0aec0; font-style: italic; }

.summary-best-value {
  background: linear-gradient(90deg, #fefcbf 0%, #fff 100%);
  border-left: 4px solid #d69e2e; padding: 10px 14px !important;
  border-radius: 6px; margin-bottom: 8px;
}
.summary-best-value .bv-icon { color: #d69e2e; font-size: 16px; margin-right: 6px; }
.summary-best-value small { color: #744210; font-size: 11px; }

.offer-card {
  background: #fff; padding: 14px 16px; border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06); margin-bottom: 10px;
  cursor: pointer; border: 2px solid transparent; transition: border-color 0.15s;
}
.offer-card:hover { border-color: #cbd5e0; }
.offer-card.selected { border-color: #3182ce; background: #ebf8ff; }
.offer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.offer-price { font-size: 20px; font-weight: 700; color: #1a365d; }
.offer-price-level {
  display: inline-block; padding: 3px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; margin-left: 8px;
}
.level-low { background: #c6f6d5; color: #22543d; }
.level-typical { background: #fefcbf; color: #744210; }
.level-high { background: #fed7d7; color: #742a2a; }
.level-unknown { background: #e2e8f0; color: #4a5568; }

.offer-type-badge {
  display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 11px;
  font-weight: 600; text-transform: uppercase;
}
.type-direct { background: #bee3f8; color: #1a365d; }
.type-same_airline { background: #e9d8fd; color: #44337a; }
.type-hacker_fare { background: #feebc8; color: #7b341e; }

.offer-meta { font-size: 12px; color: #718096; margin-bottom: 6px; }
.offer-legs { font-size: 12px; color: #2d3748; font-family: ui-monospace, monospace; }
.offer-leg {
  display: flex; justify-content: space-between; padding: 3px 0;
}
.offer-leg .leg-route { font-weight: 600; }
.offer-savings { font-size: 11px; margin-top: 6px; color: #22543d; font-weight: 600; }
.offer-savings.negative { color: #742a2a; }

.selection-bar {
  position: fixed; bottom: 0; left: 0; right: 0; background: #1a202c; color: #fff;
  padding: 14px 24px; display: flex; justify-content: space-between; align-items: center;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.2); z-index: 100;
}
.selection-info { display: flex; gap: 24px; font-size: 13px; }
.selection-total { font-size: 18px; font-weight: 700; }

@media (max-width: 900px) {
  .results.round-trip { flex-direction: column; }
  .search-row { flex-direction: column; align-items: stretch; }
  .search-field { min-width: auto; }
}
