/* ============================================================
   Voyara Travel — Search Engine styles
   Depends on the CSS variables defined in styles.css
   Covers: trip toggle, engine tabs, search bar + fields,
   popular row, packages note/stepper, and range calendar.
   ============================================================ */

/* ---------------- Service switch (flights / hotels) ---------------- */
.service-switch {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 14px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  backdrop-filter: blur(6px);
}
.service-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.service-pill svg { display: block; }
.service-pill:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.service-pill.active { background: #fff; color: var(--primary-color); }

/* ---------------- Engine card ---------------- */
.engine-group { position: relative; }

.engine-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 8px 22px 22px;
  max-width: 1260px;
  margin: 0 auto;
}

.hotel-engine .engine-card{
  padding: 22px 22px 22px;
}

/* trip-type tabs inside the card (radio-button style) */
.trip-tabs {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 3px;
  padding: 12px 4px 14px;
}
.trip-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--slate-700);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
}
.trip-tab input { position: absolute; opacity: 0; pointer-events: none; }

/* the visible radio circle */
.trip-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--slate-400);
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  transition: border-color 0.2s;
}
.trip-radio::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-color);
  transform: scale(0);
  transition: transform 0.18s ease;
}
.trip-tab:hover .trip-radio { border-color: var(--primary-color); }
.trip-tab:has(input:checked) { color: var(--primary-color); }
.trip-tab:has(input:checked) .trip-radio { border-color: var(--primary-color); }
.trip-tab:has(input:checked) .trip-radio::after { transform: scale(1); }

/* ---------------- Search Engine (boxed fields row) ---------------- */
.search-engine {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}
.search-panel { display: none; width: 100%; }
.search-panel.active { 
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  align-items: stretch; 
  gap: 0; 
  width: 100%; 
  background: var(--slate-100);
  border-radius: var(--radius-md);
}

/* round the outer corners of the connected bar (overflow kept visible so
   the airport / city autocomplete dropdown can escape the panel) */
.search-panel.active > *:first-child,
.search-panel.active > *:first-child .field:first-child {
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
}
.search-panel.active > *:last-child,
.search-panel.active > *:last-child .search-submit {
  border-top-right-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}

.search-panel.hotelsEngine.active{
  display: grid;
  gap: 0; 
  grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
}

/* thin vertical dividers between field groups */
.search-panel.active > * + * {
  box-shadow: inset 1px 0 0 var(--slate-200);
}

.fromtoDestination{
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}
.fromtoDestination .field + .field {
  box-shadow: inset 1px 0 0 var(--slate-200),
              inset -1px 0 0 var(--slate-200);
}

.deptReturn{
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}
.deptReturn .field + .field { box-shadow: inset 1px 0 0 var(--slate-200); }

.traveller{
  display: grid;
  grid-template-columns: 1fr auto;
  position: relative;
}

.field {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 18px;
  border: none;
  border-radius: 0;
  background: var(--slate-100);
  transition: background 0.2s;
  min-width: 0;
  cursor: pointer;
}
.field:hover { background: #e9eeee; }

/* Disabled field (e.g. Return date on a one-way trip) */
.field.field-disabled {
  opacity: 0.55;
  pointer-events: none;
}
.field:focus-within,
.field.open,
.field.pax-field.open {
  background: #e3ebeb;
}
/* leading icons removed in the connected-bar layout */
.field-icon { display: none; }
.field-icon svg { display: block; }

/* date fields keep their calendar icon, but on the RIGHT side */
.date-field .field-icon {
  display: grid;
  place-items: center;
  order: 2;                 /* push after the field body */
  margin-left: auto;        /* shove it to the far right */
  color: var(--slate-400);
  flex-shrink: 0;
}
.field-swap svg, .search-submit svg, .pax-caret svg, .field-caret svg { display: block; }
.search-submit svg { margin-right: 2px; }
.field-body { min-width: 0; flex: 1; }
.field-label {
  font-size: 0.68rem;
  color: var(--slate-500);
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.field-body input,
.field-body select {
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  width: 100%;
  background: transparent;
  padding: 0;
  cursor: pointer;
  box-shadow: none !important;
}
.field-body input,
.field-body input:focus {box-shadow: none !important;}
.field-body input::placeholder { color: var(--slate-400); font-weight: 500; }

/* dropdown caret on the right of a field */
.field-caret {
  color: var(--slate-400);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: transform 0.2s;
}
.field.open .field-caret { transform: rotate(180deg); }

/* hide carets on location/date fields; keep it only where there's a real dropdown */
.fromtoDestination .field-caret,
.deptReturn .field-caret,
.hotelsEngine .date-field .field-caret { display: none; }

/* swap button floats between From and To */
.field-swap {
  align-self: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--white);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
  transition: background 0.2s, transform 0.3s;
  position: absolute;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  cursor: pointer;
}

.search-submit {
  flex-shrink: 0;
  padding: 0 34px;
  border-radius: var(--radius-md);
  background: var(--primary-color);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: none;
  white-space: nowrap;
  transition: background 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.search-submit:hover { background: var(--primary-dark); box-shadow: 0 10px 24px rgba(232, 130, 60, .35); }

/* Popular destinations row under engine */
.popular-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 26px;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}
.popular-row .label { font-weight: 600; opacity: 0.75; }
.popular-row a { font-weight: 700; color: #fff; transition: color 0.2s; }
.popular-row a:hover { color: var(--primary-color); }

.classecom{
  position: relative;
  top: -5px;
}

/* .classecom .pax-value{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
} */

/* ---------------- Packages: reassurance note + travelers stepper ---------------- */
.engine-note {
  text-align: center;
  margin-top: 16px;
  color: rgba(32, 32, 32, 0.82);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}
.engine-note .check {
  color: var(--primary-color);
  font-weight: 800;
}

/* Travelers stepper inside a search field */
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.stepper button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  font-size: 1.1rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s;
}
.stepper button:hover { border-color: var(--slate-400); }
.stepper .count { font-weight: 500; min-width: 62px; text-align: center; font-size: 0.83rem; color: #555; }

/* Combo pill highlighting flight + hotel savings */
.combo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 240, 0, 0.16);
  color: var(--primary-color);
  border: 1px solid rgba(200, 240, 0, 0.4);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0 auto 18px;
}

/* ============================================================
   Range Calendar (dual-month popover) for search engines
   ============================================================ */

/* A date field is a button styled like the other engine fields */
.date-field {
  text-align: left;
  cursor: pointer;
  box-shadow: inset 1px 0 0 var(--slate-200);
}
.date-field .date-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.date-field .date-value.placeholder { color: var(--slate-400); font-weight: 500; }

.cal-popover {
  position: absolute;
  z-index: 60;
  top: calc(66% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(700px, calc(100vw - 32px));
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 22px 24px;
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.cal-popover.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(-50%);
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cal-header h4 { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.3px; }
.cal-nights {
  background: rgba(20, 52, 81, 0.08);
  color: var(--navy-700);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.cal-months {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  position: relative;
}
.cal-month { min-width: 0; }
.cal-month-head {
  text-align: center;
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 12px;
  position: relative;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* prev / next arrows sit at the outer top corners */
.cal-nav {
  position: absolute;
  top: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  display: grid;
  place-items: center;
  background: var(--white);
  transition: background 0.2s, border-color 0.2s;
  z-index: 2;
}
.cal-nav:hover { background: var(--slate-100); border-color: var(--slate-400); }
.cal-nav.prev { left: 0; }
.cal-nav.next { right: 0; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal-dow {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--slate-400);
  padding-bottom: 6px;
  text-transform: uppercase;
}
.cal-day {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: background 0.15s, color 0.15s;
}
.cal-day.empty { visibility: hidden; cursor: default; }
.cal-day.disabled { color: var(--slate-200); cursor: not-allowed; }
.cal-day:not(.disabled):not(.empty):hover { background: var(--slate-100); }

/* range fill uses a square background behind the circle */
.cal-day.in-range {
  background: rgba(20, 52, 81, 0.10);
  border-radius: 0;
}
.cal-day.range-start { border-radius: 50% 0 0 50%; }
.cal-day.range-end { border-radius: 0 50% 50% 0; }
.cal-day.single { border-radius: 50%; }

/* selected endpoints: solid teal circle on top */
.cal-day.selected {
  background: var(--navy-700);
  color: #fff;
}
.cal-day.range-start.selected,
.cal-day.range-end.selected {
  background: var(--navy-700);
}
.cal-day.range-start.selected::before,
.cal-day.range-end.selected::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy-700);
  border-radius: 50%;
  z-index: 0;
}
.cal-day.selected span { position: relative; z-index: 1; }

.cal-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cal-summary { font-size: 0.92rem; font-weight: 700; color: var(--navy-800); }
.cal-summary .muted { color: var(--slate-400); font-weight: 500; }
.cal-done {
  background: var(--navy-700);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  transition: background 0.2s;
}
.cal-done:hover { background: var(--navy-600); }
.cal-done:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------------- Engine responsive ---------------- */
@media (max-width: 1080px) {
  .engine-card{
     max-width: 720px;
  }
  .search-panel.active { grid-template-columns: 1fr; flex-wrap: wrap; }
  .search-panel.hotelsEngine.active{
    grid-template-columns: 1fr;
  }
  .search-panel.active .field { flex: 1 1 calc(50% - 6px); }
  .search-submit { flex: 1 1 100%; justify-content: center; padding: 15px; }

  /* Hotels engine: keep on a single line (only 4 fields + button) */
  #hotels.search-panel.active { flex-wrap: nowrap; }
  #hotels.search-panel.active .field { flex: 1 1 0; }
  #hotels.search-panel.active .field:first-child { flex: 1.6 1 0; }
  #hotels .search-submit { flex: 0 0 auto; }
  .service-switch{
    display: flex;
    justify-content: center;
    max-width: fit-content;
    margin: 0px auto 20px;
  }
}

@media (max-width: 900px) {
  .engine-card { padding: 6px 14px 16px; border-radius: 18px; }
  .trip-tabs { gap: 22px; }
  .trip-tab { font-size: 0.88rem; white-space: nowrap; }
  .search-panel.active { flex-direction: column; gap: 10px; }
  .search-panel.active .field { flex: 1 1 auto; width: 100%; }
  /* swap button drops into normal flow, centered between the stacked fields */
  .field-swap {
    position: absolute;
    align-self: center;
    box-shadow: var(--shadow-sm);
  }
  .search-submit { width: 100%; justify-content: center; padding: 15px; }
}

@media (max-width: 620px) {
  .cal-months { grid-template-columns: 1fr; gap: 22px; }
  .cal-nav.next { right: 0; top: 0; }
  .cal-popover { padding: 18px 16px;top: 50%; }
}

/* ============================================================
   Passengers & cabin popover (flight engines)
   ============================================================ */

/* the field acts as a button trigger */
.pax-field { text-align: left; cursor: pointer; position: relative; flex: 1.3;box-shadow: inset 1px 0 0 var(--slate-200); }
.pax-field .field-body {
  display: block;
  min-width: 0;
}
.pax-field .field-body > div { min-width: 0; }
.pax-field .pax-value {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pax-field .pax-caret {
  color: var(--slate-400);
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.pax-field.open .pax-caret { transform: rotate(180deg); }

.pax-popover {
  position: absolute;
  z-index: 60;
  top: calc(100% + 12px);
  right: 0;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 20px;
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.pax-popover.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.pax-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
}
.pax-row + .pax-row { border-top: 1px solid var(--slate-100); }
.pax-row .pax-info h5 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.pax-row .pax-info p {
  font-size: 0.8rem;
  color: var(--slate-500);
}

.pax-stepper {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.pax-stepper button {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--slate-200);
  color: var(--navy-700);
  font-size: 1.15rem;
  line-height: 1;
  display: grid;
  place-items: center;
  background: var(--white);
  transition: border-color 0.2s, background 0.2s, opacity 0.2s;
}
.pax-stepper button:hover:not(:disabled) { border-color: var(--navy-700); background: var(--slate-100); }
.pax-stepper button:disabled { opacity: 0.4; cursor: not-allowed; }
.pax-stepper .pax-count {
  min-width: 20px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
}

.pax-cabin {
  margin: 14px 0 16px;
}
.pax-cabin select {
  width: 100%;
  border: 1.5px solid var(--slate-200);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.pax-cabin select:focus { border-color: var(--navy-700); }

.pax-done {
  width: 100%;
  background: #f5f5f5;
  color: #201f1f;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 13px;
  border-radius: 12px;
  transition: background 0.2s;
  border: none
}
.pax-done:hover { background: var(--navy-600); color: #fff; }

/* ============================================================
   Airport / city autocomplete dropdown (From / To fields)
   ============================================================ */
.ac-menu {
  position: absolute;
  z-index: 70;
  top: calc(100% + 10px);
  left: 0;
  width: 340px;
  max-width: calc(100vw - 32px);
  max-height: 320px;
  overflow-y: auto;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.ac-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.ac-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.ac-item:hover,
.ac-item.active { background: var(--slate-100); }
.ac-code {
  flex-shrink: 0;
  min-width: 42px;
  height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(20, 52, 81, 0.08);
  color: var(--navy-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: grid;
  place-items: center;
}
.ac-body { min-width: 0; }
.ac-city {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ac-sub {
  font-size: 0.8rem;
  color: var(--navy-600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ac-empty {
  padding: 16px 14px;
  color: var(--slate-500);
  font-size: 0.9rem;
  text-align: center;
}
/* ensure the field that hosts the menu positions it correctly */
.field.has-ac { 
    position: relative;    
    width: 100%;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start; }


.field.has-ac:first-child{
  border-bottom: 1px solid #dddd;
  border-radius: 0px !important;
}

/* Hotel-city dropdown variant (header + pin rows) */
.ac-header {
  padding: 12px 14px 8px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--slate-500);
}
.ac-city-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  cursor: pointer;
}
.ac-city-item:hover,
.ac-city-item.active { background: var(--slate-100); }
.ac-city-item .ac-pin {
  width: 30px; height: 30px;
  flex-shrink: 0;
  border-radius: 9px;
  background: rgba(20, 52, 81, 0.08);
  color: var(--navy-700);
  display: grid;
  place-items: center;
}
.ac-city-item .ac-place { min-width: 0; }
.ac-city-item .ac-c {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ac-city-item .ac-country { font-size: 0.8rem; color: var(--slate-500); }

/* Engine field validation (missing destination / dates on Search) */
.field.field-error {
  box-shadow: inset 0 0 0 1.5px #e11d48;
  background: rgba(225, 29, 72, 0.06);
}
.field.field-error .field-label { color: #e11d48; }

/* invalid airport (typed text that isn't a real city/code) */
.field.has-ac.ac-invalid {
  box-shadow: inset 0 0 0 1.5px #e11d48;
  background: rgba(225, 29, 72, 0.06);
}
.field.has-ac.ac-invalid .field-label { color: #e11d48; }
.field.has-ac.ac-invalid::after {
  content: "Elige una opción de la lista";
  position: absolute;
  left: 14px;
  bottom: -18px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #e11d48;
  white-space: nowrap;
  pointer-events: none;
}
.engine-hint {
  text-align: center;
  margin-top: 14px;
  color: #e11d48;;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  display: none;
}
.engine-hint.show { display: inline-block; }
.engine-hint-wrap { text-align: center; }

/* Header phone button (replaces Sign in) */
.nav-phone {
  font-size: 0.9rem;
  padding: 9px 18px;
  white-space: nowrap;
}
.nav-phone svg { display: block; }


.field-swap.pkg-swap{
  left: 50%;
}

/* Keep the phone visible on mobile even though it carries .btn-desktop */
@media (max-width: 760px) {
  .nav-actions .nav-phone.btn-desktop { display: inline-flex; }
  .nav-phone { font-size: 0.82rem; padding: 8px 14px; }
}

@media (max-width: 640px) {
   
    .fromtoDestination{
        grid-template-columns: 1fr;
    }
    .deptReturn{
        grid-template-columns: 1fr;
    }
    .traveller{
       grid-template-columns: 1fr;
    }

    .field-swap{
      left: inherit;
      right: 3px;
      top: 45px;
    }

    .field-swap svg{
      transform: rotate(270deg);
    }
}

@media (max-width: 480px) {
  /* on very small screens show just the number a touch tighter */
  .nav-phone { padding: 7px 12px; }
  .service-pill{
    font-size: 0.83rem;
    padding: 8px 12px;
  }
  .footer-col ul{
     gap: 6px;
  }
}

/* ============================================================
   Search loader — animated flight-route screen (light)
   ============================================================ */
.loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 30%, #ffffff 0%, #f2f7f7 60%, #e9f1f1 100%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.loader-overlay.show { opacity: 1; visibility: visible; }

.loader-box {
  width: min(900px, 100%);
  text-align: center;
  transform: translateY(12px);
  transition: transform 0.4s ease;
}
.loader-overlay.show .loader-box { 
  transform: translateY(0); background: radial-gradient(900px 500px at 50% 10%, rgba(167, 7, 7, .35) 0%, rgba(167, 7, 7, 0) 60%), linear-gradient(160deg, #3a0404 0%, #2a0303 55%, #1b0202 100%) !important;
  padding: 34px;
  border-radius: 20px;
}

.loader-title {
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 10px;
}
.loader-title span { color: var(--primary-color, #008B8B); }
.loader-subtitle {
  font-size: 1rem;
  color: #7b8a8a;
  margin-bottom: 46px;
}

/* the route row */
.loader-journey {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  margin-bottom: 40px;
}
.lj-end { display: flex; flex-direction: column; }
.lj-start { text-align: left; }
.lj-to { text-align: right; }
.lj-code {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #1f2937;
  line-height: 1;
}
.lj-city {
  font-size: .9rem;
  color: #8a9797;
  margin-top: 6px;
}

/* flight path */
.lj-path {
  position: relative;
  height: 34px;
}
.lj-track {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 3px;
  transform: translateY(-50%);
  border-top: 2px dashed #cdd8d8;
}
.lj-progress {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0;
  height: 3px;
  transform: translateY(-50%);
  border-radius: 3px;
  background: linear-gradient(90deg, #12a67a, var(--primary-color, #008B8B));
  animation: lj-fill 1.3s ease-in-out forwards;
}
.lj-dot {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translateY(-50%);
}
.lj-dot-start { left: 0; background: var(--primary-color, #008B8B); }
.lj-dot-end   { right: 0; background: #cdd8d8; }
.lj-plane {
  position: absolute;
  top: 50%;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color, #008B8B);
  color: #fff;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 6px 16px rgba(0, 139, 139, .35);
  animation: lj-fly 1.3s ease-in-out forwards;
}
.lj-plane svg { display: block; transform: rotate(45deg); }

@keyframes lj-fill {
  0%   { width: 0; }
  100% { width: 55%; }
}
@keyframes lj-fly {
  0%   { left: 4%; }
  100% { left: 55%; }
}

/* bottom message bar */
.loader-message {
  background: linear-gradient(120deg, var(--primary-dark, #027575), var(--primary-color, #008B8B));
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  padding: 16px 24px;
  border-radius: 12px;
  max-width: 780px;
  margin: 0 auto;
  box-shadow: 0 10px 26px rgba(0, 139, 139, .22);
}

@media (max-width: 1070px) {
  .traveller{
        grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 992px) {
  .section-title::after{
    top: 15px !important; 
  }
}

@media (max-width: 640px) {
  .search-panel.active .field{
    border-bottom: 1px solid var(--slate-200);
  }
 
}

@media (max-width: 560px) {
  .loader-journey { gap: 12px; }
  .lj-city { font-size: .78rem; }
  .loader-message { font-size: .85rem; padding: 14px 16px; }
  .traveller{
        grid-template-columns: 1fr;
  }
  .section-title::after{
    display: none;
  }
  .section-title::before{
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lj-progress, .lj-plane { animation-duration: 0.01s; }
}

/* end loader */
