/* ==========================================================================
   Flightsaverz — additions layer
   Sitewide nav, product query form + airport autocomplete, thank-you pages.
   Built on the tokens in base.css. Nothing here restyles existing components.
   ========================================================================== */

/* --- header nav (uses .site-nav from base.css) --------------------------- */

.site-header__inner { gap: 18px; }
.site-nav { gap: 22px; font-size: 14px; }
.site-nav a { white-space: nowrap; }
.site-nav a.is-current { font-weight: 700; color: var(--btn); }

@media (max-width: 1200px) {
  .phone-block { display: none; }
  .site-nav { gap: 16px; font-size: 13.5px; }
}

/* Header + footer-bar call buttons: gentle ring on the icon only. */
.header-actions .ring-icon,
.action-bar__cta .ring-icon { animation: ring 5s ease-in-out infinite; }


.nav-toggle { display: none; }

/* Below 900px: nav collapses behind a hamburger. */
@media (max-width: 900px) {
  .site-header__inner { flex-wrap: wrap; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    order: 2; width: 44px; height: 44px; padding: 0 11px; margin-left: -4px;
    background: none; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .25s var(--ease), opacity .2s var(--ease); }
  .is-nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .is-nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .is-nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-actions { margin-left: auto; }
  .site-nav { display: none; }
  .is-nav-open .site-nav {
    display: flex; flex-direction: column; gap: 0; order: 3; width: 100%;
    padding: 6px 0 4px; border-top: 1px solid var(--line); font-size: 16px;
  }
  .is-nav-open .site-nav a { display: block; padding: 13px 2px; border-bottom: 1px solid var(--line-soft); }
  .is-nav-open .site-nav a:last-child { border-bottom: 0; }
}

/* Small phones: keep logo, call and menu on one row; call becomes icon-only. */
@media (max-width: 560px) {
  .brand { min-width: 0; flex: 0 1 auto; }
  .brand__logo { height: 28px; max-width: 100%; }
  .header-actions { gap: 8px; }
  .header-actions .btn--pill {
    font-size: 0; gap: 0; width: 44px; height: 44px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .header-actions .btn--pill svg { width: 18px; height: 18px; }
}

/* --- product hero -------------------------------------------------------- */

.phero {
  position: relative;
  isolation: isolate;
  max-width: 1400px;
  margin: 24px auto 0;
  padding: 0 var(--gutter);
}

.phero__frame {
  position: relative;
  isolation: isolate;
  border-radius: 28px;
  overflow: hidden;
  background: var(--navy);
}

.phero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.phero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg,
    rgba(11, 27, 51, .88) 0%,
    rgba(11, 27, 51, .72) 45%,
    rgba(11, 27, 51, .45) 100%);
}

.phero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 620px);
  gap: 48px;
  align-items: center;
  padding: 52px 52px 48px;
}

.phero__copy { color: var(--white); max-width: 480px; }
.phero__copy .pill { white-space: nowrap; }

.phero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 18px 0 0;
  color: var(--white);
}

.phero__lede {
  margin: 16px 0 0;
  font-size: 16.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .86);
}

.phero__points {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, .9);
}

.phero__points li { display: flex; align-items: flex-start; gap: 10px; }
.phero__points svg { flex: none; margin-top: 3px; }

.phero__phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  font-size: 15px;
  color: rgba(255, 255, 255, .85);
}

.phero__phone strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--white);
}

/* --- query form ---------------------------------------------------------- */

.qform {
  position: relative;
  background: rgba(19, 71, 134, .86);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--r-lg);
  padding: 30px 32px 28px;
  box-shadow: 0 40px 90px -40px rgba(3, 18, 40, .85);
}

.qform--page {
  background: var(--navy);
  backdrop-filter: none;
  border-color: rgba(255, 255, 255, .1);
}

.qform__title {
  font-size: 27px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  color: var(--white);
  margin: 0 0 6px;
}

.qform__sub {
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, .7);
  margin: 0 0 22px;
}

.qform__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 14px 20px;
}

.qform__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qform__field--wide { grid-column: 1 / -1; }

.qform__field--disabled { opacity: .45; }
.qform__field--disabled .dp-input,
.qform__field--disabled select,
.qform__field--disabled input { cursor: not-allowed; }

.trip-toggle {
  display: inline-flex;
  width: max-content;
  gap: 4px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  padding: 4px;
}

.trip-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }

.trip-toggle label {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .75);
  padding: 8px 16px;
  border-radius: 7px;
  cursor: pointer;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}

.trip-toggle input:checked + label {
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
}

.trip-toggle label:hover { color: var(--white); }
.trip-toggle input:checked + label:hover { color: var(--navy); }

@media (max-width: 380px) {
  .trip-toggle { flex-wrap: wrap; }
  .trip-toggle label { padding: 8px 12px; }
}

.qform__field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}

.qform__field input,
.qform__field select {
  width: 100%;
  background: #EEF2FB;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 13px 15px;
  font: inherit;
  font-size: 15.5px;
  color: var(--navy);
  outline: none;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}

.qform__field input:focus,
.qform__field select:focus {
  border-color: var(--btn);
  box-shadow: 0 0 0 3px rgba(0, 114, 255, .25);
}

.qform__field input::placeholder { color: #93A1B8; }

.qform__field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1l5 5 5-5' stroke='%230B1B33' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.qform__submit {
  width: 100%;
  margin-top: 20px;
  background: var(--btn);
  color: var(--white);
  border: 0;
  border-radius: 10px;
  padding: 16px 18px;
  font: inherit;
  font-size: 16.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s var(--ease);
}

.qform__submit:hover { background: var(--btn-hover); }

.qform__note {
  margin-top: 11px;
  font-size: 12.5px;
  line-height: 1.55;
  text-align: center;
  color: rgba(255, 255, 255, .6);
}

.qform__note a {
  color: rgba(255, 255, 255, .9);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- date picker ---------------------------------------------------------- */

.dp-wrap { position: relative; }

.dp-input { cursor: pointer; padding-right: 40px !important; }

.dp-box { position: relative; }

.dp-cal-ico {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #5A6A82;
}

.dp {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 30;
  width: 300px;
  max-width: calc(100vw - 40px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 26px 50px -22px rgba(11, 27, 51, .45);
  padding: 14px 14px 10px;
  display: none;
}

.dp.is-open { display: block; }

.dp__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.dp__label { font-size: 14.5px; font-weight: 700; color: var(--navy); }

.dp__nav {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--cream);
  border: 0;
  border-radius: 8px;
  color: var(--navy);
  cursor: pointer;
}

.dp__nav:hover { background: var(--line); }
.dp__nav:disabled { opacity: .35; cursor: default; }
.dp__nav:disabled:hover { background: var(--cream); }

.dp__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  margin-bottom: 4px;
}

.dp__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.dp__day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.dp__day:hover:not(:disabled) { background: var(--cream); }
.dp__day--out { color: var(--muted); opacity: .45; }
.dp__day--today { font-weight: 800; color: var(--btn); }
.dp__day--on { background: var(--btn); color: var(--white); font-weight: 700; }
.dp__day--on:hover { background: var(--btn-hover); }
.dp__day:disabled { color: var(--muted); opacity: .3; cursor: default; }

.dp__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
}

.dp__link {
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 4px 2px;
}

.dp__link--strong { color: var(--btn); }
.dp__link:hover { text-decoration: underline; }

@media (max-width: 380px) {
  .dp { width: 264px; }
}

@media (max-width: 340px) {
  .qform__grid { grid-template-columns: 1fr; }
}

/* --- airport autocomplete ------------------------------------------------ */

.ac-wrap { position: relative; }

.ac-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  min-width: 320px;
  max-height: 288px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 26px 50px -22px rgba(11, 27, 51, .45);
  display: none;
}

.ac-list.is-open { display: block; }

.ac-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.ac-item[aria-selected="true"],
.ac-item:hover { background: var(--cream); }

.ac-item__ico { flex: none; color: var(--btn); display: flex; }

.ac-item__text {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

.ac-item__city {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

.ac-item__name {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ac-item__code {
  flex: none;
  margin-left: auto;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--navy);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 7px;
}

.ac-item[aria-selected="true"] .ac-item__code { background: var(--white); }

.ac-empty {
  padding: 12px 10px;
  font-size: 13.5px;
  color: var(--muted);
}

/* --- deals / routes / info ----------------------------------------------- */

.route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 16px;
}

.route {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: inherit;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}

.route:hover {
  color: inherit;
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(11, 27, 51, .28);
  border-color: rgba(0, 114, 255, .35);
}

.route__pair {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.1;
  color: var(--navy);
}

.route__arrow { color: var(--btn); font-size: 18px; }

.route__meta { font-size: 13px; color: var(--muted); }

.route__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed rgba(11, 27, 51, .14);
}

.route__price { font-size: 13.5px; color: var(--ink); }
.route__price strong { font-size: 16px; color: var(--navy); }

.route__cta {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--btn);
}

.info-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 28px;
}

.info-col h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 10px;
}

.info-col p,
.info-col li { font-size: 14.5px; line-height: 1.65; color: var(--ink); }
.info-col p { margin: 0 0 10px; }
.info-col ul { margin: 0; padding-left: 20px; }
.info-col li { margin-bottom: 7px; }

/* --- footer additions (uses .site-footer from base.css) ------------------- */

.footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }

.footer-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--white);
}

.footer-brand span { color: var(--btn); }

.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.55;
}

.footer-contact strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 3px;
}

.footer-contact a { color: var(--white); font-weight: 600; }
.footer-phone { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }

/* --- thank-you page ------------------------------------------------------ */

.ty {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px var(--gutter) 96px;
  text-align: center;
}

.ty__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 56px 48px 48px;
  box-shadow: 0 40px 80px -50px rgba(11, 27, 51, .45);
}

.ty__check {
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--green);
  box-shadow: 0 0 0 10px rgba(34, 197, 94, .14);
}

.ty__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -.015em;
  margin: 0 0 14px;
  color: var(--navy);
}

.ty__lede {
  margin: 0 auto;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
}

.ty__ref {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  margin: 28px 0 0;
  padding: 16px 28px;
  background: var(--cream);
  border-radius: var(--r-md);
}

.ty__ref-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.ty__ref-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--navy);
}

.ty__meta {
  display: flex;
  justify-content: center;
  gap: 10px 28px;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--muted);
}

.ty__meta strong { color: var(--navy); }

.ty__call {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
}

.ty__call-label {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 8px;
}

.ty__call-number {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--navy);
}

.ty__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.ty__next {
  margin-top: 34px;
  text-align: left;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 14px;
}

.ty__next-item {
  background: var(--cream-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 18px 20px;
}

.ty__next-item strong {
  display: block;
  font-size: 14.5px;
  color: var(--navy);
  margin-bottom: 4px;
}

.ty__next-item span {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* --- sitemap page -------------------------------------------------------- */

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px;
  margin-top: 8px;
}

.sitemap-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}

.sitemap-card h2 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

.sitemap-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14.5px;
}

/* --- responsive ---------------------------------------------------------- */

@media (max-width: 1080px) {
  .phero__inner { grid-template-columns: 1fr; gap: 32px; padding: 40px 32px; }
  .phero__copy { max-width: 620px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .phero { padding: 0 12px; }
  .phero__frame { border-radius: 22px; }
  .phero__inner { padding: 28px 20px 30px; }
  .qform { padding: 22px 18px 20px; border-radius: 18px; }
  .qform__title { font-size: 23px; }
  .ac-list { min-width: 0; }
  .ty { padding: 40px var(--gutter) 64px; }
  .ty__card { padding: 36px 22px 32px; border-radius: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}
