/* ── Fix search card overflow pour autocomplete ── */
.search-card { overflow: visible !important; }
.search-tabs { border-radius: 20px 20px 0 0; overflow: hidden; }

/* ── Trip type toggle ── */
.trip-type-row {
  display: flex;
  gap: 8px;
  padding: 16px 28px 0;
}
.trip-btn {
  background: transparent;
  border: 1px solid rgba(201,168,76,.3);
  color: rgba(255,255,255,.55);
  border-radius: 20px;
  padding: 6px 18px;
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}
.trip-btn:hover { border-color: #C9A84C; color: #C9A84C; }
.trip-btn.active { background: rgba(201,168,76,.15); border-color: #C9A84C; color: #C9A84C; font-weight: 600; }

/* ── Autocomplete ── */
.ac-wrap { position: relative; }
.ac-list {
  display: none;
  position: absolute;
  top: calc(100% + 4px); left: 0; right: 0;
  background: #0f2252;
  border: 1px solid rgba(201,168,76,.25);
  border-radius: 10px;
  overflow: hidden;
  z-index: 100;
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
}
.ac-list.open { display: block; }
.ac-item {
  padding: 12px 16px;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background .15s;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover, .ac-item.focused { background: rgba(201,168,76,.1); }
.ac-item-left { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ac-item-city { font-size: .9rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-item-country { font-size: .8rem; font-weight: 400; color: rgba(255,255,255,.5); margin-left: 5px; }
.ac-item-airport { font-size: .75rem; color: rgba(255,255,255,.4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-item-code {
  color: #C9A84C;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .04em;
  flex-shrink: 0;
}

/* ── Flight results section ── */
#flight-results {
  background: #060f26;
  padding: 48px 0 64px;
}
.fr-header {
  margin-bottom: 28px;
}
.fr-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: #fff;
  margin: 0 0 6px;
}
.fr-header p {
  font-size: .88rem;
  color: rgba(255,255,255,.45);
  margin: 0;
}

/* Loading */
.fr-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 56px 0;
  color: rgba(255,255,255,.5);
  font-size: .9rem;
}
.fr-spinner {
  width: 44px; height: 44px;
  border: 3px solid rgba(201,168,76,.2);
  border-top-color: #C9A84C;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Flight card */
.fr-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.fr-card:hover {
  border-color: rgba(201,168,76,.28);
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
}
.fr-card-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
}
.fr-flight-info { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.fr-airline {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 140px;
}
.fr-airline img {
  width: 36px; height: 36px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255,255,255,.07);
  padding: 3px;
}
.fr-airline-name { font-size: .8rem; color: rgba(255,255,255,.6); }
.fr-airline-num { font-size: .72rem; color: rgba(201,168,76,.7); letter-spacing:.03em; }

.fr-route {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}
.fr-airport {
  text-align: center;
}
.fr-time {
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.fr-code {
  font-size: .72rem;
  color: rgba(255,255,255,.4);
  letter-spacing: .08em;
  margin-top: 3px;
}
.fr-middle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.fr-duration {
  font-size: .75rem;
  color: rgba(255,255,255,.4);
}
.fr-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.4), transparent);
  position: relative;
}
.fr-line::after {
  content: '✈';
  position: absolute;
  right: 0;
  top: -8px;
  font-size: .8rem;
  color: #C9A84C;
}
.fr-stops {
  font-size: .7rem;
  color: rgba(255,255,255,.35);
}

.fr-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.fr-badge {
  font-size: .68rem;
  padding: 3px 9px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: .03em;
}
.fr-badge.green  { background: rgba(52,199,89,.15);  color: #4cd964; border: 1px solid rgba(52,199,89,.2); }
.fr-badge.orange { background: rgba(255,149,0,.12);  color: #ff9500; border: 1px solid rgba(255,149,0,.2); }
.fr-badge.gray   { background: rgba(255,255,255,.06); color: rgba(255,255,255,.45); border: 1px solid rgba(255,255,255,.1); }
.fr-badge.gold   { background: rgba(201,168,76,.12); color: #C9A84C; border: 1px solid rgba(201,168,76,.2); }

/* Price + CTA */
.fr-price-col {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.fr-from { font-size: .7rem; color: rgba(255,255,255,.4); margin-bottom: -4px; }
.fr-price {
  font-size: 1.7rem;
  font-weight: 700;
  color: #C9A84C;
  line-height: 1;
}
.fr-currency { font-size: .8rem; color: rgba(201,168,76,.7); }
.fr-per-pax { font-size: .68rem; color: rgba(255,255,255,.35); margin-top: -4px; }
.btn-reserver {
  background: linear-gradient(135deg, #C9A84C, #e8cc80);
  color: #0D1B3E;
  border: none;
  border-radius: 10px;
  padding: 11px 22px;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  transition: all .22s;
  white-space: nowrap;
}
.btn-reserver:hover {
  background: linear-gradient(135deg, #b8933a, #C9A84C);
  box-shadow: 0 4px 18px rgba(201,168,76,.4);
  transform: translateY(-1px);
}

/* Multiple fare offers */
.fr-offers {
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  overflow-x: auto;
  gap: 0;
}
.fr-offer {
  flex: 1;
  min-width: 120px;
  padding: 12px 16px;
  cursor: pointer;
  border-right: 1px solid rgba(255,255,255,.06);
  transition: background .18s;
  text-align: center;
}
.fr-offer:last-child { border-right: none; }
.fr-offer:hover, .fr-offer.selected { background: rgba(201,168,76,.06); }
.fr-offer.selected { box-shadow: inset 0 -2px 0 #C9A84C; }
.fr-offer-name { font-size: .72rem; color: rgba(255,255,255,.5); margin-bottom: 4px; }
.fr-offer-price { font-size: .95rem; font-weight: 700; color: #C9A84C; }

/* Empty state */
.fr-empty {
  text-align: center;
  padding: 56px 24px;
  color: rgba(255,255,255,.4);
}
.fr-empty svg { opacity: .5; margin-bottom: 16px; }
.fr-empty p { font-size: .95rem; margin-bottom: 20px; }
.btn-whatsapp-fallback {
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
}

/* Fare collapse toggle */
.fr-toggle {
  padding: 8px 24px;
  border-top: 1px solid rgba(255,255,255,.05);
  text-align: center;
}
.fr-toggle-btn {
  background: none;
  border: none;
  color: rgba(201,168,76,.7);
  font-size: .75rem;
  cursor: pointer;
  letter-spacing: .03em;
}
.fr-toggle-btn:hover { color: #C9A84C; }

/* ── Hotel cards ── */
.hotel-card-inner {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 0;
  align-items: stretch;
}
.hotel-thumb {
  width: 140px;
  flex-shrink: 0;
  overflow: hidden;
}
.hotel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hotel-info {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hotel-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}
.hotel-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.hotel-stars { color: #C9A84C; font-size: .85rem; letter-spacing: 1px; }
.hotel-rating { font-size: .88rem; font-weight: 700; color: #4cd964; }
.hotel-reviews { font-size: .72rem; color: rgba(255,255,255,.35); }
.hotel-address { font-size: .75rem; color: rgba(255,255,255,.4); }

@media (max-width: 640px) {
  .fr-card-main { grid-template-columns: 1fr; gap: 14px; }
  .fr-price-col { align-items: flex-start; flex-direction: row; align-items: center; justify-content: space-between; }
  .fr-flight-info { gap: 12px; }
  .hotel-card-inner { grid-template-columns: 1fr; }
  .hotel-thumb { width: 100%; height: 160px; }
  .hotel-info { padding: 14px 16px; }
}
