.fly-time-in-destination {
	padding-bottom: 8px;
	padding-right: 64px;
	padding-left: 0;
}

.nomad-more-info-route-price {
	font-weight: bold;
}

.navbuttons {
	margin-right: 64px;
	margin-left: 0;
	margin-bottom: 5px;
}

:root {
  --blue: #0f6fff;
  --blue-dark: #0754d8;
  --navy: #071832;
  --muted: #667085;
  --border: #dbe4f0;
  --bg: #f4f8ff;
  --green: #09923d;
  --card: rgba(255,255,255,0.92);
  --shadow: 0 24px 70px rgba(10, 38, 87, 0.16);
  --radius: 22px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Arabic", "Geeza Pro", "Almarai", "Cairo", Tahoma, Arial, sans-serif;
  color: var(--navy);
  background: var(--bg);
  direction: rtl;
  text-align: right;
}

header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 34px 0 22px;
}

.logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), #0042b8);
  color: white;
  font-size: 22px;
  box-shadow: 0 12px 24px rgba(15,111,255,.28);
  cursor: pointer;
}

.brand {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: normal;
}

.result-row-flight-number-direction {
  margin-bottom: 16px;
}

.page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(232,244,255,.94) 0%, rgba(255,255,255,.72) 56%, #fff 100%);
}

.container {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
}

.gray-font {
  color: gray;
}

.hero {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 54px;
  align-items: center;
  padding: 34px 0 54px;
}

.h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 4.5vw, 68px);
  line-height: 1.25;
  letter-spacing: normal;
  max-width: 650px;
}

.blue { color: var(--blue-dark); }

.lead {
  font-size: 22px;
  line-height: 1.55;
  max-width: 560px;
  margin: 0 0 24px;
  color: #253858;
}

.trust-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #253858;
  font-size: 17px;
  margin-bottom: 28px;
}

.shield {
  width: 25px;
  height: 25px;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
}

.route-compare {
  display: grid;
  gap: 12px;
  max-width: 470px;
}

.route-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  box-shadow: 0 14px 34px rgba(9, 30, 66, .1);
}

.route-card.best {
  background: linear-gradient(270deg, #effff4, rgba(255,255,255,.94));
  border-color: #88d89c;
}

.route-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eaf1ff;
  font-size: 25px;
}

.pitstop {
  border-bottom-style: dashed;
  padding-bottom: 10px;
  padding-top: 10px;
  border-bottom-color: gray;
  border-bottom-width: 2px;
}

.best .route-icon { background: #bff2c8; }

.route-title {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: normal;
}

.points {
  color: var(--green);
  font-weight: 850;
  font-size: 20px;
  margin-top: 5px;
}

.badge {
  align-self: start;
  color: white;
  background: var(--green);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.button-badge {
  align-self: start;
  color: white;
  background: var(--green);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.red-badge {
  align-self: start;
  color: white;
  background: #F54927;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.smallprint {
  font-size: xx-small;
  color: gray;
  text-align: center;
}

.result-row {
  background-color: white;
  margin-top: 16px;
  padding-top: 10px;
  padding-right: 10px;
  padding-left: 0;
  padding-bottom: 10px;
}

.result-row-operating-flight-number {
  margin-left: 3px;
  margin-right: 3px;
  color: gray;
}

.result-row-flight-number {
  font-weight: bold;
}

.airport-name-results {
  font-size: larger;
}

.points-per-eur {
  font-size: smaller;
}

.points {
  font-size: large;
  font-weight: bold;
}

.price {
  font-size: xx-large;
  font-weight: bolder;
  letter-spacing: normal;
}

ul {
  list-style-type: none;
}

.book-button {
  background-color: #2592DF;
  color: white;
  padding-top: 5px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
}

.book-button:visited {
  color: white;
}

.book-button:hover {
  color: white;
}

.sort-row-title {
  padding-top: 5px;
}

.sort-container {
  margin-top: 10px;
}

.sort-button {
  text-align: center;
}

.sort-button a {
  color: black;
  text-decoration: none;
}

#errorMessage {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  text-align: center;
  background: lightpink;
  font-weight: bold;
}

.text-description {
  margin-top: 300px;
}

.top-container-title {
  margin-bottom: 100px;
}

#flight-search-container {
  background-color: white;
  padding-top: 10px;
  padding-bottom: 10px;
}

.optionalLineBreak {
  display: none;
}

@media (max-width: 770px) {
  .optionalLineBreak {
    display: block !important;
  }
  .fly-direction-result {
    border-bottom-style: dotted;
    border-bottom-width: 1px;
    border-bottom-color: gray;
  }
  .sort-button {
    font-size: smaller;
  }
}

@media (max-width: 990px) {
  .route-compare {
    display: none;
  }
}

.result-row-times {
  margin-bottom: 10px;
}

.uplift {
  font-size: 14px;
  color: #087b34;
  margin-top: 6px;
  white-space: nowrap;
}

.search-card {
  background: var(--card);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #eaf2ff;
  color: var(--blue-dark);
  font-weight: 750;
  margin-bottom: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  min-height: 76px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.field:focus-within {
  border-color: rgba(15,111,255,.7);
  box-shadow: 0 0 0 4px rgba(15,111,255,.1);
  transform: translateY(-1px);
}

.field.full { grid-column: 1 / -1; }

.field-icon {
  color: #475467;
  font-size: 21px;
}

.form-control,
.form-select,
.field select,
.field input[type="text"] {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: #17233c;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
  appearance: none;
  -webkit-appearance: none;
  text-overflow: ellipsis;
  text-align: right;
  font-family: inherit;
}

.field select {
  padding-left: 24px;
  padding-right: 0;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, #667085 50%),
    linear-gradient(135deg, #667085 50%, transparent 50%);
  background-position:
    12px 50%,
    17px 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  text-align: right;
}

.field input::placeholder {
  color: #98a2b3;
  font-weight: 550;
  text-align: right;
}

.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #17233c;
  transition: background-color 9999s ease-in-out 0s;
}

label {
  display: block;
  color: #718096;
  font-size: 13px;
  margin-bottom: 5px;
  text-align: right;
}

.value {
  font-size: 16px;
  font-weight: 600;
  color: #17233c;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  font-weight: 650;
}

.form-check-label { margin: 0; color: #17233c; font-size: 16px; }

input.toggle {
  appearance: none;
  -webkit-appearance: none;
  width: 40px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  cursor: pointer;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
  transition: background .18s ease, box-shadow .18s ease;
}

input.toggle::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  top: 3px;
  right: 3px;
  left: auto;
  box-shadow: 0 2px 5px rgba(0,0,0,.22);
  transition: transform .18s ease;
}

input.toggle:checked {
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(15,111,255,.1);
}

input.toggle:checked::after { transform: translateX(-18px); }

input.toggle:focus-visible {
  outline: 3px solid rgba(15,111,255,.28);
  outline-offset: 3px;
}

.note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 11px;
  background: #eaf2ff;
  color: #174ea6;
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 14px;
  text-align: right;
}

.cta {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), #004fd1);
  color: white;
  font-size: 21px;
  font-weight: 800;
  padding: 17px 20px;
  cursor: pointer;
  box-shadow: 0 16px 28px rgba(15,111,255,.24);
  font-family: inherit;
}

.microtrust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 17px;
  color: #475467;
  font-size: 13px;
  text-align: center;
}

.below {
  background: white;
  padding: 34px 0 46px;
}

.below-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 36px;
  align-items: stretch;
}

.how h2 {
  margin: 0 0 22px;
  font-size: 26px;
  letter-spacing: normal;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: start;
  padding-right: 0;
  padding-left: 18px;
  border-right: 0;
  border-left: 1px solid var(--border);
}

.step:last-child { border-left: 0; }

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue);
  color: white;
  display: grid;
  place-items: center;
  font-size: 24px;
}

.step strong { display: block; margin-bottom: 6px; }
.step p { margin: 0; color: #475467; line-height: 1.55; }

.quote {
  padding: 28px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 34px rgba(9,30,66,.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 210px;
  position: relative;
  overflow: hidden;
  text-align: right;
}

.quote::before {
  content: "”";
  position: absolute;
  top: -26px;
  right: 20px;
  left: auto;
  color: rgba(15,111,255,.12);
  font-size: 120px;
  font-weight: 900;
  line-height: 1;
}

.review-spinner {
  position: relative;
  z-index: 1;
}

.review {
  display: none;
  animation: reviewFade .45s ease both;
}

.review.active { display: block; }

@keyframes reviewFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.stars { color: #ffb020; font-size: 21px; margin-bottom: 14px; letter-spacing: 1px; }
.quote p { margin: 0 0 12px; line-height: 1.65; font-size: 16px; }
.quote small { color: #667085; }

.review-dots {
  display: flex;
  gap: 7px;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

.review-dot {
  width: 7px;
  height: 7px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: #c8d6ea;
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}

.review-dot.active {
  width: 24px;
  background: var(--blue);
}

.tickboxlist {
  list-style-type: "✓ ";
  padding-right: 24px;
  padding-left: 0;
}

.footer-strip {
  margin-top: 30px;
  padding: 18px 24px;
  border-radius: 16px;
  background: #f2f7ff;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  color: #344054;
  text-align: center;
}

@media (max-width: 980px) {
  .hero, .below-grid { grid-template-columns: 1fr; }
  .search-card { order: -1; }
  .steps, .footer-strip { grid-template-columns: 1fr; }
  .step { border-left: 0; border-right: 0; border-bottom: 1px solid var(--border); padding-left: 0; padding-right: 0; padding-bottom: 18px; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1440px); }
  header { padding-top: 22px; }
  .hero { gap: 28px; padding-top: 18px; }
  .search-card { padding: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .microtrust { grid-template-columns: 1fr; text-align: right; }
  .route-card { grid-template-columns: 54px 1fr; }
  .badge, .uplift { grid-column: 2; }
}

:root {
  --blue: #0f6fff;
  --blue-dark: #0754d8;
  --navy: #071832;
  --text: #18243a;
  --muted: #667085;
  --soft: #f4f8ff;
  --border: #dbe4f0;
  --green: #119948;
  --purple: #7c3aed;
  --orange: #f97316;
  --shadow: 0 14px 40px rgba(10, 38, 87, .10);
  --radius: 18px;
}

.results-page {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  font-size: 24px;
  letter-spacing: normal;
  color: var(--navy);
}

.brand-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), #0042b8);
  color: #fff;
  box-shadow: 0 10px 26px rgba(15,111,255,.25);
}

.results-summary {
  color: var(--muted);
  font-size: 14px;
}

.sort-bar {
  display: grid;
  grid-template-columns: auto repeat(5, minmax(150px, 1fr));
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.sort-label {
  font-weight: 700;
  color: #344054;
  white-space: nowrap;
  padding-left: 6px;
  padding-right: 0;
  text-align: right;
}

.sort-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.88);
  color: var(--navy);
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(9,30,66,.04);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  font-family: inherit;
}

.sort-btn:hover {
  border-color: rgba(15,111,255,.45);
  box-shadow: 0 12px 28px rgba(15,111,255,.10);
  transform: translateY(-1px);
}

.sort-btn.active {
  background: #eaf2ff;
  border-color: #c6dbff;
  color: var(--blue-dark);
}

.result-list {
  display: grid;
  gap: 18px;
}

.flight-card {
  position: relative;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(219,228,240,.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-badge {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  padding: 8px 14px;
  border-radius: 0 0 0 12px;
  font-size: 13px;
  font-weight: 850;
}

.card-badge.green {
  background: #dcfce7;
  color: #087b34;
}

.card-badge.purple {
  background: #f0e7ff;
  color: var(--purple);
}

.card-badge.blue {
  background: #eaf2ff;
  color: var(--blue-dark);
}

.flight-main {
  display: grid;
  grid-template-columns: 330px minmax(380px, 1fr) 220px 190px 52px;
  gap: 22px;
  align-items: center;
  padding: 42px 28px 28px;
}

.segment-stack {
  position: relative;
  display: grid;
  gap: 15px;
  padding-right: 22px;
  padding-left: 0;
}

.segment-stack::before {
  content: "";
  position: absolute;
  top: 11px;
  bottom: 11px;
  right: 5px;
  left: auto;
  width: 2px;
  background: #cbd5e1;
  border-radius: 999px;
}

.segment {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  min-width: 0;
}

.segment::before {
  content: "";
  position: absolute;
  right: -21px;
  left: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111827;
  box-shadow: 0 0 0 3px white;
}

.airline-mark {
  color: #df1f2d;
  font-size: 17px;
  flex: 0 0 auto;
}

.flight-number {
  font-weight: 850;
  color: var(--navy);
}

.sold-as {
  color: #98a2b3;
}

.route-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.journey-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding-right: 22px;
  padding-left: 0;
  border-right: 1px solid var(--border);
  border-left: 0;
}

.journey-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 9px;
  font-size: 14px;
}

.time {
  font-weight: 850;
  color: var(--navy);
  font-size: 16px;
}

.airport {
  font-weight: 850;
  color: var(--navy);
  unicode-bidi: isolate;
}

.duration {
  color: #344054;
}

.plane {
  color: var(--navy);
  font-size: 17px;
  display: inline-block;
  transform: scaleX(-1);
  unicode-bidi: isolate;
}

.price-panel {
  text-align: right;
}

.price {
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: normal;
  color: var(--navy);
  margin-bottom: 10px;
}

.points-main {
  font-weight: 850;
  font-size: 16px;
  margin-bottom: 5px;
}

.points-rate {
  color: #475467;
  font-size: 13px;
}

.actions {
  display: grid;
  gap: 10px;
}

.primary-btn {
  border: 0;
  border-radius: 10px;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--blue), #004fd1);
  color: white;
  font: inherit;
  font-weight: 850;
  text-align: center;
  box-shadow: 0 12px 24px rgba(15,111,255,.24);
  font-family: inherit;
}

.secondary-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--blue-dark);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  text-align: right;
  padding: 0;
  font-family: inherit;
}

.collapse-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(9,30,66,.06);
}

.flight-details {
  display: grid;
  grid-template-columns: 1fr 1fr 300px;
  gap: 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, #fbfdff, #f8fbff);
  margin: 0 22px 22px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.detail-column {
  padding: 22px;
  border-left: 1px solid var(--border);
  border-right: 0;
  border-bottom: dotted;
  border-bottom-width: 2px;
}

.detail-column:last-child { border-left: 0; }

.detail-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 4px;
}

.detail-subtitle {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 18px;
}

.leg {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  margin: 17px 0;
}

.leg-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--border);
}

.leg-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  font-size: 14px;
  margin-bottom: 8px;
}

.leg-head strong { color: var(--navy); font-size: 16px; }
.operated { color: var(--muted); }

.leg-route {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-weight: 850;
  margin-bottom: 6px;
}

.leg-route span:nth-child(2) {
  display: inline-block;
  transform: scaleX(-1);
}

.leg-route .small {
  color: var(--muted);
  font-weight: 650;
  font-size: 13px;
}

.leg-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 12px;
  color: #475467;
  font-size: 13px;
}

.transfer {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475467;
  font-size: 13px;
  padding: 10px 0;
  border-top: 1px solid #e6edf7;
  border-bottom: 1px solid #e6edf7;
}

.stat-list {
  display: grid;
  gap: 16px;
  font-size: 14px;
}

.stat-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
}

.stat-icon {
  color: #64748b;
  font-size: 17px;
}

.stat-label {
  color: #475467;
}

.stat-value {
  font-weight: 850;
  color: var(--navy);
  text-align: left;
}

.points-note {
  grid-column: 1 / -1;
  margin: 0 22px 22px;
  padding: 13px 16px;
  border-radius: 10px;
  background: #eaf2ff;
  color: #174ea6;
  font-size: 13px;
}

.pagination {
  display: grid;
  place-items: center;
  gap: 14px;
  margin-top: 20px;
  color: #475467;
  font-size: 14px;
}

.pages {
  display: flex;
  gap: 8px;
  align-items: center;
}

.page-btn {
  min-width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  font-weight: 750;
  cursor: pointer;
}

.page-btn.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

@media (max-width: 1180px) {
  .sort-bar { grid-template-columns: 1fr 1fr; }
  .sort-label { grid-column: 1 / -1; }
  .flight-main {
    grid-template-columns: 1fr 1fr;
  }
  .journey-summary { border-right: 0; border-left: 0; padding-right: 0; padding-left: 0; }
  .price-panel, .actions, .collapse-btn { align-self: start; }
  .flight-details { grid-template-columns: 1fr; }
  .detail-column { border-left: 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .detail-column:last-child { border-bottom: 0; }
}

@media (max-width: 720px) {
  .results-page { width: min(100% - 28px, 1480px); padding-top: 18px; }
  .results-header { align-items: flex-start; flex-direction: column; }
  .sort-bar { grid-template-columns: 1fr; }
  .flight-main { grid-template-columns: 1fr; padding: 42px 18px 20px; }
  .price { font-size: 30px; }
  .actions { grid-template-columns: 1fr; }
  .collapse-btn { width: 100%; }
  .flight-details, .points-note { margin-left: 14px; margin-right: 14px; }
  .leg-meta { grid-template-columns: 1fr; }
  .stat-item { grid-template-columns: 24px 1fr; }
  .stat-value { grid-column: 2; text-align: right; }
}

.results-search-panel {
  position: relative;
  max-width: 1120px;
  margin: 0 auto 1.5rem;
  padding: 0 1rem 2.75rem;
}

.results-search-panel__inner {
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.results-search-panel.is-collapsed .results-search-panel__inner {
  max-height: 255px;
}

.results-search-panel.is-expanded .results-search-panel__inner {
  max-height: 1400px;
}

.results-search-panel__fade {
  display: none;
}

.results-search-panel.is-collapsed .results-search-panel__fade {
  display: block;
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 3.6rem;
  height: 80px;
  pointer-events: none;
  background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, 0.96)
  );
}

.edit-search-btn {
  position: absolute;
  left: 50%;
  bottom: 0.25rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #165df5, #0ea5e9);
  box-shadow: 0 12px 28px rgba(22, 93, 245, 0.28);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.edit-search-btn:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 16px 34px rgba(22, 93, 245, 0.34);
}

.edit-search-btn:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.35);
  outline-offset: 4px;
}

.results-search-panel.is-expanded .results-search-panel__fade {
  display: none;
}

.results-search-panel.is-expanded .edit-search-btn i {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .results-search-panel.is-collapsed .results-search-panel__inner {
      max-height: 360px;
  }

  .edit-search-btn {
      width: calc(100% - 2rem);
      justify-content: center;
  }
}

/* RTL specific helpers for dropdowns and widgets */
.ui-autocomplete {
  direction: rtl;
  text-align: right;
  font-family: inherit;
}

.ui-datepicker {
  direction: rtl;
  font-family: inherit;
}
