/* Flights page — Obour Tours EN */

.view { display: none; }
.view.on { display: block; }

/* Tabs */
.tabs {
  display: flex;
  gap: 8px;
  padding: 20px 22px 0;
  flex-wrap: wrap;
}

.tab {
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--bd);
  background: transparent;
  color: var(--tx2);
  font-family: var(--font);
  transition: all 0.2s;
}

.tab.on {
  background: var(--gold-light);
  border-color: var(--gold-dark);
  color: var(--navy);
}

.airline-switcher {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  background: var(--white);
  border-radius: var(--r);
  box-shadow: var(--sh);
  border: 1px solid var(--bd);
  padding: 10px 14px;
  flex-wrap: wrap;
}

.airline-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid var(--bd);
  background: transparent;
  color: var(--tx2);
  font-family: var(--font);
  transition: all 0.2s;
}

.airline-tab.on {
  background: var(--gold-light);
  border-color: var(--gold-dark);
  color: var(--navy);
}

.fbody { padding: 16px 22px 22px; }

.grow { display: grid; gap: 12px; margin-bottom: 12px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 720px) {
  .g4, .g3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .g4, .g3, .g2 { grid-template-columns: 1fr; }
}

.fld { display: flex; flex-direction: column; gap: 4px; position: relative; }
.fld label { font-size: 0.75rem; font-weight: 600; color: var(--tx2); }

.inp {
  background: var(--bg);
  border: 1.5px solid var(--bd);
  border-radius: var(--rs);
  padding: 10px 13px;
  font-size: 0.9rem;
  font-family: var(--font);
  color: var(--tx);
  width: 100%;
  transition: border 0.2s;
}

.inp:focus {
  outline: none;
  border-color: var(--gold-dark);
  background: var(--white);
}

select.inp {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%239A9AB0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* Passengers */
.pax-picker {
  background: var(--bg);
  border: 1.5px solid var(--bd);
  border-radius: var(--rs);
  padding: 10px 13px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pax-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1.5px solid var(--bd);
  border-radius: var(--rs);
  z-index: 200;
  box-shadow: var(--sh-lg);
  padding: 14px 16px;
  display: none;
}

.pax-dropdown.open { display: block; }

.pax-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--bg);
}

.pax-row:last-child { border: none; }
.pax-label { font-size: 0.87rem; }
.pax-sub { font-size: 0.73rem; color: var(--tx3); }
.pax-ctrl { display: flex; align-items: center; gap: 10px; }

.pax-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--bd);
  background: var(--white);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pax-btn:hover:not(:disabled) { border-color: var(--gold-dark); color: var(--gold-dark); }
.pax-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.pax-num { font-weight: 700; min-width: 18px; text-align: center; }

/* Autocomplete */
.acdrop {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1.5px solid var(--bd);
  border-radius: var(--rs);
  z-index: 300;
  max-height: 220px;
  overflow-y: auto;
  display: none;
  box-shadow: var(--sh-lg);
}

.acdrop.open { display: block; }

.acit {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  cursor: pointer;
  border-bottom: 1px solid var(--bg);
  font-size: 0.87rem;
}

.acit:hover { background: var(--gold-light); }
.accode { font-weight: 800; color: var(--gold-dark); min-width: 36px; }
.acsub { font-size: 0.74rem; color: var(--tx3); }

/* Multi-city */
.mc-slice {
  background: var(--bg);
  border-radius: var(--rs);
  padding: 12px 14px;
  margin-bottom: 10px;
  border: 1px solid var(--bd);
  position: relative;
}

.mc-slice-num { font-size: 0.73rem; font-weight: 700; color: var(--gold-dark); margin-bottom: 8px; }

.mc-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: var(--tx3);
  cursor: pointer;
}

.btn-add-slice {
  background: transparent;
  border: 1.5px dashed var(--bd);
  border-radius: var(--rs);
  padding: 10px;
  width: 100%;
  font-family: var(--font);
  font-size: 0.85rem;
  color: var(--tx2);
  cursor: pointer;
  margin-bottom: 12px;
}

.btn-add-slice:hover { border-color: var(--gold-dark); color: var(--gold-dark); }

.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  justify-content: space-between;
}

.search-row-left {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1;
}

.msg {
  border-radius: var(--rs);
  padding: 11px 15px;
  font-size: 0.87rem;
  display: none;
  gap: 8px;
  margin-bottom: 12px;
}

.msg.on { display: flex; }
.merr { background: var(--err-bg); border: 1px solid #ffd0d0; color: var(--err); }
.mok { background: var(--ok-bg); border: 1px solid #c0efd0; color: var(--ok); }

.spin-wrap { text-align: center; padding: 48px 20px; }

/* Filters */
.filters-wrap {
  background: var(--white);
  border-radius: var(--r);
  box-shadow: var(--sh);
  border: 1px solid var(--bd);
  padding: 16px 20px;
  margin-bottom: 14px;
}

.filter-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--tx2);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

.fpill {
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--bd);
  background: var(--white);
  color: var(--tx2);
  font-family: var(--font);
}

.fpill.on { background: var(--gold-light); border-color: var(--gold-dark); color: var(--navy); }

.filter-range { display: flex; gap: 8px; align-items: center; flex: 1; min-width: 200px; }
.filter-range label { font-size: 0.78rem; color: var(--tx2); white-space: nowrap; }
.filter-range input[type=range] { flex: 1; accent-color: var(--gold-dark); }
.filter-range span { font-size: 0.78rem; color: var(--gold-dark); font-weight: 600; min-width: 44px; }

.airline-check { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; padding: 4px 0; cursor: pointer; }
.airline-check input { accent-color: var(--gold-dark); }

/* Results */
.res-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.res-count { font-size: 0.88rem; color: var(--tx2); }
.res-count b { color: var(--gold-dark); }

.sort-pills { display: flex; gap: 6px; flex-wrap: wrap; }

.spill {
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 0.77rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--bd);
  background: var(--white);
  color: var(--tx2);
  font-family: var(--font);
}

.spill.on { background: var(--gold-light); border-color: var(--gold-dark); color: var(--navy); }

/* Offer card */
.ocard {
  background: var(--white);
  border: 1.5px solid var(--bd);
  border-radius: var(--r);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 16px;
  align-items: start;
  transition: all 0.2s;
  cursor: pointer;
  margin-bottom: 8px;
}

.ocard:hover {
  border-color: var(--gold-dark);
  box-shadow: 0 4px 22px rgba(232, 149, 10, 0.12);
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .ocard { grid-template-columns: 1fr; }
}

.alogo {
  width: 46px;
  height: 46px;
  border-radius: 9px;
  object-fit: contain;
  border: 1px solid var(--bd);
  padding: 3px;
}

.aname { font-size: 0.7rem; color: var(--tx3); margin-top: 3px; text-align: center; max-width: 54px; }

.route-times { display: flex; align-items: center; gap: 12px; }
.rtime { font-size: 1.28rem; font-weight: 800; line-height: 1; }
.riata { font-size: 0.77rem; font-weight: 600; color: var(--tx2); margin-top: 3px; }
.rcity { font-size: 0.7rem; color: var(--tx3); }

.rmid {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 70px;
}

.rline {
  width: 100%;
  height: 1.5px;
  background: linear-gradient(to right, var(--gold-dark), var(--gold), var(--gold-dark));
  position: relative;
}

.rline::before,
.rline::after {
  content: '';
  position: absolute;
  top: -3.5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-dark);
}

.rline::before { left: 0; }
.rline::after { right: 0; }

.rdur { font-size: 0.7rem; color: var(--tx3); }
.sdirect { font-size: 0.7rem; color: var(--ok); font-weight: 600; background: var(--ok-bg); padding: 2px 8px; border-radius: 10px; }
.s1 { font-size: 0.7rem; color: #b7601a; font-weight: 600; background: var(--gold-light); padding: 2px 8px; border-radius: 10px; }
.sn { font-size: 0.7rem; color: var(--err); font-weight: 600; background: var(--err-bg); padding: 2px 8px; border-radius: 10px; }

.otags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.otag { font-size: 0.69rem; padding: 2px 8px; border-radius: 10px; font-weight: 600; border: 1px solid var(--bd); }
.otag-ok { background: var(--ok-bg); color: var(--ok); border-color: #c0efd0; }
.otag-no { background: var(--err-bg); color: var(--err); border-color: #ffd0d0; }

.pblock { text-align: right; min-width: 120px; }
.pamnt { font-size: 1.4rem; font-weight: 800; color: var(--gold-dark); line-height: 1; }
.pcur { font-size: 0.75rem; color: var(--tx3); }

.bbook {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--navy);
  border: none;
  padding: 9px 16px;
  border-radius: var(--rs);
  font-size: 0.84rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  margin-top: 8px;
  width: 100%;
}

/* Modal */
.mwrap {
  position: fixed;
  inset: 0;
  background: rgba(5, 13, 36, 0.5);
  backdrop-filter: blur(3px);
  z-index: 400;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 14px;
  overflow-y: auto;
}

.mwrap.open { display: flex; }

.mbox {
  background: var(--white);
  border-radius: 18px;
  width: 100%;
  max-width: 600px;
  box-shadow: var(--sh-lg);
  margin: auto;
}

.mhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--bd);
}

.mhead h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--navy); }

.mcls {
  background: var(--bg);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--tx2);
}

.mbody { padding: 18px 22px; max-height: 75vh; overflow-y: auto; }
.mfoot { padding: 12px 22px 18px; display: flex; gap: 8px; justify-content: flex-end; border-top: 1px solid var(--bd); }

.msteps {
  display: flex;
  margin-bottom: 14px;
  border: 1px solid var(--bd);
  border-radius: var(--rs);
  overflow: hidden;
}

.mstep {
  flex: 1;
  padding: 8px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--tx3);
  background: var(--bg);
}

.mstep.on { background: var(--navy); color: var(--gold); }
.msnum { display: block; font-size: 0.95rem; font-weight: 800; margin-bottom: 2px; }

.odp { background: var(--bg); border-radius: var(--rs); padding: 14px 16px; margin-bottom: 14px; }
.odp-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.odp-route { font-weight: 800; font-size: 0.98rem; }
.odp-price { font-weight: 800; color: var(--gold-dark); }

.odp-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--bd);
  font-size: 0.82rem;
}

.odp-row:last-child { border: none; }
.odp-k { color: var(--tx2); }
.odp-v { font-weight: 600; text-align: right; }
.odp-v.ok { color: var(--ok); }
.odp-v.no { color: var(--err); }

.hold-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.hold-opt { border: 2px solid var(--bd); border-radius: var(--rs); padding: 14px; cursor: pointer; transition: all 0.2s; }
.hold-opt.on, .hold-opt:hover { border-color: var(--gold-dark); background: var(--gold-light); }
.hold-opt-title { font-size: 0.88rem; font-weight: 700; margin-bottom: 4px; }
.hold-opt-sub { font-size: 0.75rem; color: var(--tx2); }

.pax-section { border: 1px solid var(--bd); border-radius: var(--rs); padding: 14px 16px; margin-bottom: 12px; }
.pax-section-title { font-size: 0.78rem; font-weight: 700; color: var(--gold-dark); margin-bottom: 12px; text-transform: uppercase; }

.revbox { background: var(--bg); border-radius: var(--rs); padding: 14px; }
.revrow { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--bd); font-size: 0.83rem; }
.revrow:last-child { border: none; }
.revk { color: var(--tx2); }
.revv { font-weight: 600; text-align: right; }

.expiry-bar {
  background: var(--err-bg);
  border: 1px solid #ffd0d0;
  border-radius: var(--rs);
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: var(--err);
}

.modal-loading { text-align: center; padding: 30px; }
.modal-spin {
  width: 30px;
  height: 30px;
  border: 3px solid var(--bd);
  border-top-color: var(--gold-dark);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 10px;
}

/* Success */
.spage { max-width: 660px; margin: 0 auto; }
.scard { background: var(--white); border-radius: var(--r); box-shadow: var(--sh); border: 1px solid var(--bd); overflow: hidden; }

.sbanner {
  background: linear-gradient(135deg, var(--surface-soft) 0%, var(--gold-light) 100%);
  padding: 32px 26px;
  text-align: center;
  color: var(--navy);
  border-bottom: 1px solid var(--surface-border);
}

.sbanner-icon { font-size: 2.8rem; margin-bottom: 8px; }
.sbanner-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; color: var(--navy); }
.sbanner-sub { font-size: 0.86rem; color: var(--chrome-text-muted); }

.refbox {
  background: var(--gold-light);
  border: 2px dashed rgba(232, 149, 10, 0.4);
  border-radius: var(--rs);
  padding: 16px;
  text-align: center;
  margin: 20px 22px;
}

.refl { font-size: 0.76rem; color: var(--tx3); margin-bottom: 3px; font-weight: 600; }
.refn { font-size: 1.9rem; font-weight: 800; color: var(--gold-dark); letter-spacing: 3px; }

.rvis { display: flex; align-items: center; gap: 10px; background: var(--bg); border-radius: var(--rs); padding: 14px 16px; margin: 0 22px 18px; }
.rv { text-align: center; flex: 1; }
.rvt { font-size: 1.25rem; font-weight: 800; }
.rvia { font-size: 0.83rem; font-weight: 700; color: var(--gold-dark); margin-top: 2px; }

.dets { padding: 0 22px 16px; }
.dstitle { font-size: 0.73rem; font-weight: 700; color: var(--tx3); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 9px; }
.drow { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--bg); }
.dk { font-size: 0.83rem; color: var(--tx2); }
.dv { font-size: 0.86rem; font-weight: 600; }

.snote {
  background: var(--gold-light);
  border: 1px solid rgba(232, 149, 10, 0.3);
  border-radius: var(--rs);
  padding: 12px 15px;
  margin: 0 22px 18px;
  font-size: 0.81rem;
  color: var(--tx2);
}

.sacts { padding: 0 22px 22px; display: flex; gap: 9px; flex-wrap: wrap; }

/* Yemen card */
.ycard {
  background: var(--white);
  border: 1.5px solid var(--bd);
  border-radius: var(--r);
  padding: 16px 20px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.ycard:hover { border-color: var(--gold-dark); box-shadow: 0 4px 18px rgba(232, 149, 10, 0.1); }
.ycard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ycard-price { font-size: 1.3rem; font-weight: 800; color: var(--gold-dark); }

.airline-co-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--rs);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--bd);
  background: var(--bg);
  color: var(--tx2);
  font-family: var(--font);
}

.airline-co-tab.on { background: var(--gold-light); border-color: var(--gold-dark); color: var(--navy); }

.ycal-day {
  padding: 6px 3px;
  text-align: center;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
}

.ycal-day.ycal-sel { background: var(--navy); color: var(--gold); font-weight: 700; }
.ycal-day.ycal-dis { color: var(--tx3); opacity: 0.45; cursor: not-allowed; }
