/* Flight & hotel deals tool — extends insurance layout */
.deals-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
}

.deals-tab {
  appearance: none;
  border: 1px solid rgba(169, 187, 212, 0.2);
  background: #121820;
  color: #a9bbd4;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.deals-tab.is-active {
  background: rgba(255, 90, 61, 0.16);
  border-color: rgba(255, 90, 61, 0.4);
  color: #f6efe4;
}

.deals-tab:hover {
  color: #f6efe4;
}

/* Live flight results */
.flight-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.flight-results__insight {
  margin: 0;
  color: #a9bbd4;
  font-size: 0.85rem;
}

.flight-results__insight strong {
  color: #f6efe4;
}

.flight-results__error {
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 90, 61, 0.35);
  border-radius: 10px;
  background: rgba(255, 90, 61, 0.08);
  color: #f6efe4;
  font-size: 0.88rem;
}

.flight-results__compare {
  margin-top: 8px;
}

.flight-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flight-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 1.6fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(169, 187, 212, 0.14);
  border-radius: 10px;
  background: #0e141c;
}

.flight-row__airline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  color: #f6efe4;
  font-size: 0.85rem;
}

.flight-row__airline span {
  display: flex;
  flex-direction: column;
  font-weight: 600;
}

.flight-row__airline small {
  color: #a9bbd4;
  font-size: 0.72rem;
  font-weight: 400;
}

.flight-row__times {
  display: flex;
  flex-direction: column;
}

.flight-row__times strong {
  color: #f6efe4;
  font-size: 0.95rem;
  font-weight: 600;
}

.flight-row__times sup {
  margin-left: 2px;
  color: #ff8a70;
  font-size: 0.68rem;
}

.flight-row__times small,
.flight-row__price small {
  color: #a9bbd4;
  font-size: 0.75rem;
}

.flight-row__stops {
  color: #a9bbd4;
  font-size: 0.82rem;
}

.flight-row__price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.flight-row__price strong {
  color: #f6efe4;
  font-size: 1.05rem;
  font-weight: 700;
}

@media (max-width: 720px) {
  .flight-row {
    grid-template-columns: 1fr auto;
  }

  .flight-row__times {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .deal-card {
    flex-direction: column;
    align-items: stretch;
  }
}

.flight-results__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.flight-filters {
  display: flex;
  gap: 6px;
}

.flight-filter {
  appearance: none;
  border: 1px solid rgba(169, 187, 212, 0.2);
  background: transparent;
  color: #a9bbd4;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.flight-filter.is-active {
  background: rgba(255, 90, 61, 0.16);
  border-color: rgba(255, 90, 61, 0.4);
  color: #f6efe4;
}

.flight-row__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.flight-badge {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.flight-badge--google {
  background: rgba(96, 165, 250, 0.14);
  color: #93c5fd;
}

.flight-badge--kiwi {
  background: rgba(52, 211, 153, 0.14);
  color: #6ee7b7;
}

.flight-badge--warn {
  background: rgba(251, 191, 36, 0.14);
  color: #fcd34d;
  cursor: help;
}

.flight-row--self {
  border-color: rgba(251, 191, 36, 0.18);
}

.flight-row .flight-row__price .btn {
  margin-top: 4px;
  white-space: nowrap;
}

.flight-results__note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(251, 191, 36, 0.07);
  color: #a9bbd4;
  font-size: 0.8rem;
  line-height: 1.45;
}

.flight-results__note strong {
  color: #fcd34d;
}

.flight-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px 4px;
  color: #a9bbd4;
}

.flight-loading__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5a3d;
  animation: flight-pulse 1s ease-in-out infinite;
}

@keyframes flight-pulse {
  50% {
    opacity: 0.25;
    transform: scale(0.7);
  }
}

.deals-section-title {
  margin-top: 24px;
}

.deals-status {
  margin: 10px 0 0;
  font-size: 0.85rem;
}

.deals-status--warn {
  color: #fcd34d;
}

.deals-status--info {
  color: #a9bbd4;
}

/* Live deals (OzBargain) */
.deal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.deal-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(169, 187, 212, 0.14);
  border-radius: 10px;
  background: #0e141c;
}

.deal-card__body {
  min-width: 0;
}

.deal-card__title {
  color: #f6efe4;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.deal-card__title:hover {
  color: #ff8a70;
}

.deal-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 6px;
  color: #a9bbd4;
  font-size: 0.74rem;
}

.deal-card__meta a {
  color: #a9bbd4;
}

.deal-card__match {
  color: #6ee7b7;
  font-weight: 600;
}

.deal-code {
  flex: 0 0 auto;
  appearance: none;
  border: 1px dashed rgba(255, 90, 61, 0.6);
  background: rgba(255, 90, 61, 0.1);
  color: #ff8a70;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.deal-code:hover {
  background: rgba(255, 90, 61, 0.18);
}

.deal-code--sm {
  padding: 3px 8px;
  font-size: 0.72rem;
}

.deal-source {
  margin: 10px 0 0;
  color: #a9bbd4;
  font-size: 0.75rem;
}

.deal-source a {
  color: #ff8a70;
}

.compare-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.compare-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(169, 187, 212, 0.14);
  border-radius: 10px;
  background: #0e141c;
  text-decoration: none;
}

.compare-link strong {
  color: #f6efe4;
  font-size: 0.86rem;
}

.compare-link span {
  color: #a9bbd4;
  font-size: 0.74rem;
}

.compare-link:hover {
  border-color: rgba(255, 90, 61, 0.4);
}

/* Airport type-ahead */
.airport-ac-field {
  position: relative;
}

.airport-ac {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  min-width: 260px;
  max-height: 320px;
  overflow-y: auto;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: #0e141c;
  border: 1px solid rgba(255, 90, 61, 0.28);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.airport-ac[hidden] {
  display: none;
}

.airport-ac__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
}

.airport-ac__item.is-active,
.airport-ac__item:hover {
  background: rgba(255, 90, 61, 0.14);
}

.airport-ac__code {
  flex: 0 0 auto;
  min-width: 42px;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(255, 90, 61, 0.16);
  color: #ff8a70;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}

.airport-ac__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.airport-ac__text strong {
  color: #f6efe4;
  font-size: 0.9rem;
  font-weight: 600;
}

.airport-ac__text small {
  overflow: hidden;
  color: #a9bbd4;
  font-size: 0.76rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.airport-ac__msg {
  padding: 10px;
  color: #a9bbd4;
  font-size: 0.85rem;
}
