/* Flights tab */
.flt-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr) repeat(2, 0.8fr) repeat(2, 0.8fr);
  gap: .7rem;
  align-items: end;
}
.flt-field { display: flex; flex-direction: column; position: relative; }
.flt-field label {
  font-size: .72rem; font-weight: 600; color: #555;
  text-transform: uppercase; letter-spacing: .03em; margin-bottom: .25rem;
}
.flt-field input, .flt-field select {
  padding: .55rem .6rem; border: 1px solid #ccc; border-radius: 6px;
  font-size: .9rem; font-family: inherit; background: #fff; width: 100%;
}
.flt-field input:focus, .flt-field select:focus { outline: none; border-color: #6ab04c; }

.flt-controls {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: .9rem; gap: 1rem; flex-wrap: wrap;
}
.flt-oneway { font-size: .9rem; color: #333; display: flex; align-items: center; gap: .4rem; cursor: pointer; }
.flt-oneway input { width: auto; }

/* Autocomplete */
.flt-ac {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 30;
  background: #fff; border: 1px solid #ccc; border-top: none;
  border-radius: 0 0 6px 6px; box-shadow: 0 6px 16px rgba(0,0,0,.12);
  display: none; max-height: 280px; overflow-y: auto;
}
.flt-ac.open { display: block; }
.flt-ac-item {
  padding: .5rem .6rem; cursor: pointer; display: flex; align-items: baseline; gap: .55rem;
  border-bottom: 1px solid #f0f0f0;
}
.flt-ac-item:last-child { border-bottom: none; }
.flt-ac-item:hover, .flt-ac-item.active { background: #eef6e8; }
.flt-ac-code { font-weight: 700; color: #2d5a1b; font-size: .82rem; min-width: 2.4rem; }
.flt-ac-name { font-size: .85rem; color: #444; }

/* Result messages */
.flt-msg { padding: 1.2rem; text-align: center; color: #555; font-size: .92rem; }
.flt-loading { color: #2d5a1b; font-weight: 600; }
.flt-err { color: #b03a2e; }
.flt-results-head { margin: 1rem 0 .6rem; font-size: .85rem; color: #666; font-weight: 600; }

/* Airline filter bar */
.flt-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .9rem; }
.flt-filter-label { font-size: .75rem; font-weight: 700; color: #555; text-transform: uppercase; letter-spacing: .03em; margin-right: .2rem; }
.flt-pill {
  font-family: inherit; font-size: .8rem; padding: .32rem .7rem; border-radius: 999px;
  border: 1px solid #cfcfcf; background: #fff; color: #888; cursor: pointer; transition: all .12s;
}
.flt-pill:hover { border-color: #6ab04c; }
.flt-pill.active { background: #eef6e8; border-color: #6ab04c; color: #2d5a1b; font-weight: 600; }
.flt-pill-all {
  font-family: inherit; font-size: .78rem; padding: .32rem .6rem; border-radius: 999px;
  border: 1px dashed #bbb; background: transparent; color: #666; cursor: pointer; margin-left: .2rem;
}
.flt-pill-all:hover { border-color: #6ab04c; color: #2d5a1b; }

/* Offer card */
.flt-card {
  background: #fff; border: 1px solid #e3e3e3; border-radius: 10px;
  padding: 1rem 1.1rem; margin-bottom: .85rem; box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.flt-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .4rem; }
.flt-airline { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: #222; font-size: .95rem; }
.flt-logo { width: 26px; height: 26px; object-fit: contain; }
.flt-price { font-size: 1.4rem; font-weight: 800; color: #2d5a1b; line-height: 1; text-align: right; }
.flt-price-sub { display: block; font-size: .68rem; font-weight: 500; color: #999; text-transform: uppercase; }

.flt-slice { padding: .55rem 0; border-top: 1px solid #f2f2f2; }
.flt-slice:first-of-type { border-top: none; }
.flt-slice-label { font-size: .7rem; font-weight: 700; color: #6ab04c; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .3rem; }
.flt-slice-row { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: .6rem; }
.flt-endpoint { text-align: center; }
.flt-time { font-size: 1.05rem; font-weight: 700; color: #222; }
.flt-airport { font-size: .85rem; font-weight: 600; color: #555; }
.flt-date { font-size: .72rem; color: #999; }
.flt-mid { text-align: center; }
.flt-duration { font-size: .78rem; color: #777; margin-bottom: .15rem; }
.flt-line { display: flex; align-items: center; gap: .25rem; }
.flt-track { flex: 1; height: 2px; background: #ccc; }
.flt-dot { width: 7px; height: 7px; border-radius: 50%; background: #6ab04c; flex: none; }
.flt-stops { font-size: .74rem; color: #b07a2e; margin-top: .15rem; }
.flt-stops.nonstop { color: #2d5a1b; }

.flt-card-foot { margin-top: .7rem; text-align: right; }
.flt-book { display: inline-block; text-decoration: none; padding: .5rem 1rem; font-size: .85rem; }

/* Booking modal */
.flt-modal-overlay {
  position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.5);
  display: flex; align-items: flex-start; justify-content: center; padding: 2rem 1rem; overflow-y: auto;
}
.flt-modal {
  background: #fff; border-radius: 12px; width: 100%; max-width: 560px;
  box-shadow: 0 12px 40px rgba(0,0,0,.3); overflow: hidden;
}
.flt-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.2rem; border-bottom: 1px solid #eee;
}
.flt-modal-head h3 { margin: 0; font-size: 1.05rem; color: #222; }
.flt-modal-close { background: none; border: none; font-size: 1.6rem; line-height: 1; color: #999; cursor: pointer; }
.flt-modal-body { padding: 1.1rem 1.2rem; }
.flt-note { font-size: .82rem; color: #777; background: #f6f6f2; border-radius: 6px; padding: .55rem .7rem; margin: 0 0 1rem; }

.flt-pax { border: 1px solid #e3e3e3; border-radius: 8px; padding: .7rem .9rem 1rem; margin-bottom: .9rem; }
.flt-pax legend { font-size: .8rem; font-weight: 700; color: #2d5a1b; padding: 0 .4rem; }
.flt-pax-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.flt-pax-grid label { display: flex; flex-direction: column; font-size: .76rem; font-weight: 600; color: #555; gap: .25rem; }
.flt-pax-grid input, .flt-pax-grid select {
  padding: .5rem .55rem; border: 1px solid #ccc; border-radius: 6px; font-size: .9rem; font-family: inherit;
}
.flt-pax-grid input:focus, .flt-pax-grid select:focus { outline: none; border-color: #6ab04c; }
.flt-f-sm { max-width: 100%; }

.flt-modal-msg { font-size: .85rem; margin-top: .5rem; min-height: 1.1rem; }
.flt-modal-foot {
  display: flex; justify-content: flex-end; gap: .6rem;
  padding: .9rem 1.2rem; border-top: 1px solid #eee; background: #fafafa;
}

.flt-confirm { text-align: center; padding: 1rem .5rem; }
.flt-confirm-check { font-size: 2.4rem; }
.flt-confirm h3 { margin: .3rem 0 .8rem; color: #2d5a1b; }
.flt-confirm-ref { font-size: .8rem; color: #777; text-transform: uppercase; letter-spacing: .04em; }
.flt-confirm-ref strong { display: block; font-size: 1.8rem; letter-spacing: .08em; color: #222; margin-top: .2rem; }
.flt-confirm-total { font-weight: 700; color: #222; font-size: 1.05rem; }

@media (max-width: 720px) {
  .flt-form { grid-template-columns: 1fr 1fr; }
  .flt-field-sm { grid-column: span 1; }
  .flt-pax-grid { grid-template-columns: 1fr; }
}
