/**
 * Ticket 290 — Site header (PrestigeFly)
 * Scroll state: .pf-scrolled (see site-header.js)
 */

/* —— Disable legacy hide-on-scroll for prestige header —— */
header.prestige-header.sticky .navbar-top,
header.prestige-header.sticky.header-appear .navbar-top,
header.prestige-header.pf-scrolled .navbar-top {
  top: 0 !important;
}

header.prestige-header nav .nav-header-container {
  position: relative;
}

header.prestige-header nav.navbar.bootsnav {
  padding: 20px 0;
  background: transparent;
  border-bottom: 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

header.prestige-header:not(.pf-scrolled):not(.no-sticky) nav.navbar.bootsnav::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 100px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, transparent 100%);
  z-index: -1;
}

header.prestige-header.pf-scrolled nav.navbar.bootsnav::before,
header.prestige-header.no-sticky nav.navbar.bootsnav::before {
  display: none;
}

header.prestige-header.pf-scrolled nav.bootsnav.header-light {
  background-color: #ffffff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  padding: 14px 0;
}

header.prestige-header.no-sticky nav.navbar.bootsnav {
  padding: 16px 0;
  background: #ffffff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

/* —— Logo: full wordmark (logo_full.svg) — desktop & mobile —— */
header.prestige-header .logo .logo-dark {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

header.prestige-header .logo .logo-light,
header.prestige-header .logo .logo-light.default {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: auto !important;
  max-height: 52px;
  height: auto;
  object-fit: contain;
}

/* Logo color: #be3455 in logo_full.svg (no CSS filter) */

/* —— Trust badges —— */
header.prestige-header .mob-some-changer {
  gap: 10px;
  align-items: center;
}

header.prestige-header .m-left-231 {
  margin-left: 10px !important;
}

@media (max-width: 1400px) {
  header.prestige-header .m-left-231 {
    margin-left: 5px !important;
  }
}

@media (max-width: 1350px) {
  .callMeBtn{
    display: none;
  }
}

@media (max-width: 991px) {
  .callMeBtn{
    display: block;
  }
}

header.prestige-header .iata-logo,
header.prestige-header .great-logo,
header.prestige-header .bbb-logo {
  position: relative;
  width: 74px;
  height: 55px;
  border-radius: 60px;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.12);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
  cursor: pointer;
}

header.prestige-header .iata-logo > img,
header.prestige-header .great-logo > img,
header.prestige-header .bbb-logo > img {
  width: 40px;
  height: auto;
  transition: filter 0.25s ease;
}

/* IATA mark is white in PNG — render dark on white badge */
header.prestige-header .iata-logo > img {
  filter: brightness(0);
}

header.prestige-header .bbb-logo > img {
  filter: brightness(0);
}

header.prestige-header .iata-logo:hover,
header.prestige-header .great-logo:hover,
header.prestige-header .bbb-logo:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

header.prestige-header .bbb-cert a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
  text-decoration: none;
}

header.prestige-header .bbb-cert a:focus-visible {
  outline: 2px solid var(--base-color);
  outline-offset: -4px;
}

header.prestige-header .iata-cert,
header.prestige-header .great-cert,
header.prestige-header .bbb-cert {
  display: none;
  position: absolute;
  z-index: 25;
  width: 300px;
  height: 240px;
  border-radius: 20px;
  border: 3px solid #ffffff;
  overflow: hidden;
  align-items: center;
  background-color: #ffffff;
  bottom: -240px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.15);
}

header.prestige-header .iata-cert-number {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: end;
}

header.prestige-header .iata-cert > img,
header.prestige-header .great-cert > img,
header.prestige-header .bbb-cert img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

header.prestige-header .iata-logo:hover .iata-cert,
header.prestige-header .great-logo:hover .great-cert,
header.prestige-header .bbb-logo:hover .bbb-cert {
  display: flex;
}

header.prestige-header.pf-scrolled .iata-logo,
header.prestige-header.pf-scrolled .great-logo,
header.prestige-header.pf-scrolled .bbb-logo,
header.prestige-header.no-sticky .iata-logo,
header.prestige-header.no-sticky .great-logo,
header.prestige-header.no-sticky .bbb-logo {
  background-color: #f2f2f2;
}

/* —— Nav pill —— */
header.prestige-header nav.navbar .navbar-nav {
  border-radius: 70px;
  padding: 0 20px;
  border: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

header.prestige-header:not(.pf-scrolled):not(.no-sticky) nav.navbar .navbar-nav {
  background: var(--base-color);
  border-color: var(--base-color);
  box-shadow: 0 4px 18px rgba(190, 52, 85, 0.35);
}

header.prestige-header:not(.pf-scrolled):not(.no-sticky) nav.navbar.white-link .navbar-nav > li > a,
header.prestige-header:not(.pf-scrolled):not(.no-sticky) nav.navbar.bootsnav.white-link ul.nav > li > a {
  color: #ffffff;
}

header.prestige-header.pf-scrolled nav.navbar .navbar-nav,
header.prestige-header.no-sticky nav.navbar .navbar-nav {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: none;
}

header.prestige-header.pf-scrolled nav.navbar.white-link .navbar-nav > li > a,
header.prestige-header.pf-scrolled nav.navbar.bootsnav.white-link ul.nav > li > a,
header.prestige-header.no-sticky nav.navbar.white-link .navbar-nav > li > a,
header.prestige-header.no-sticky nav.navbar.bootsnav.white-link ul.nav > li > a {
  color: #232323;
}

/* —— Desktop CTAs —— */
header.prestige-header .call-btn-header.btn-white,
header.prestige-header .call-btn-header.btn-stop-changing-color,
header.prestige-header .offer-call-button.btn-white {
  background: #ffffff !important;
  border: 2px solid #ffffff !important;
  color: #232323 !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

header.prestige-header .call-btn-header.btn-white.btn-opacity {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #232323 !important;
}

header.prestige-header .call-btn-header.btn-white i,
header.prestige-header .call-btn-header.btn-white span,
header.prestige-header .offer-call-button.btn-white i,
header.prestige-header .offer-call-button.btn-white span {
  color: #232323 !important;
}

header.prestige-header .btn-burgundy.popup-with-zoom-anim {
  box-shadow: 0 4px 18px rgba(190, 52, 85, 0.35);
}

header.prestige-header.pf-scrolled .call-btn-header.btn-white,
header.prestige-header.no-sticky .offer-call-button {
  background: #f2f2f2 !important;
  border-color: #f2f2f2 !important;
}

/* —— Floating IATA / BBB (mobile & tablet) —— */
@media (max-width: 1280px) {
  .iata-logo-mobile-container {
    display: flex;
  }

  .iata-logo-mobile-container .iata-logo-mobile,
  .iata-logo-mobile-container .bbb-logo-mobile {
    width: 65px;
    height: 65px;
    border-radius: 60px;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.25s ease;
    cursor: pointer;
  }

  .iata-logo-mobile-container .iata-logo-mobile img,
  .iata-logo-mobile-container .bbb-logo-mobile img {
    width: 34px;
    height: auto;
    object-fit: contain;
    filter: brightness(0);
  }

  .iata-logo-mobile-container .bbb-logo-mobile img {
    height: 40px !important;
  }

  .iata-logo-mobile-container .bbb-logo-mobile a {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    text-decoration: none;
  }
}

/* —— Mobile drawer (new, no Bootstrap collapse) —— */
html.pf-drawer-open,
body.pf-drawer-open {
  overflow: hidden;
  touch-action: none;
}

body.pf-drawer-open .iata-logo-mobile-container {
  visibility: hidden;
  pointer-events: none;
}

.pf-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  visibility: hidden;
}

.pf-mobile-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.pf-drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.22s ease;
  cursor: pointer;
}

.pf-mobile-drawer.is-open .pf-drawer-backdrop {
  opacity: 1;
}

.pf-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 360px);
  height: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--base-color, #be3455);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.2);
  transform: translate3d(100%, 0, 0);
  transition: transform 0.26s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}

.pf-mobile-drawer.is-open .pf-drawer-panel {
  transform: translate3d(0, 0, 0);
}

.pf-drawer-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.pf-drawer-panel__title {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pf-drawer-close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.pf-drawer-nav {
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.pf-drawer-list {
  list-style: none;
  margin: 0;
  padding: 8px 0 16px;
}

.pf-drawer-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.pf-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 20px;
  color: #fff !important;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.pf-drawer-link:hover,
.pf-drawer-link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
}

.pf-drawer-chevron {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.pf-drawer-item--has-sub.is-open .pf-drawer-chevron {
  transform: rotate(180deg);
}

.pf-drawer-sublist {
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
  display: none;
}

.pf-drawer-item--has-sub.is-open .pf-drawer-sublist {
  display: block;
}

.pf-drawer-sublist a {
  display: block;
  padding: 12px 20px 12px 28px;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.pf-drawer-sublist a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.pf-drawer-link--license {
  gap: 12px;
  justify-content: flex-start;
}

.pf-drawer-link--license img {
  flex-shrink: 0;
  border-radius: 50%;
}

.pf-drawer-footer {
  flex-shrink: 0;
  padding: 16px 18px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pf-drawer-footer .call-btn-header,
.pf-drawer-footer .callMeBtn,
.pf-drawer-footer .offer-call-button {
  width: 100%;
  margin: 0 !important;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  color: #fff !important;
}

.pf-drawer-footer .call-btn-header span,
.pf-drawer-footer .call-btn-header i,
.pf-drawer-footer .offer-call-button i,
.pf-drawer-footer .offer-call-button span {
  color: #fff !important;
}

.pf-drawer-footer .btn-burgundy {
  width: 100%;
  margin: 0 !important;
  background: #fff !important;
  border-color: #fff !important;
  color: var(--base-color, #be3455) !important;
}

@media (prefers-reduced-motion: reduce) {
  .pf-drawer-backdrop,
  .pf-drawer-panel,
  .pf-drawer-chevron {
    transition: none;
  }
}

/* —— Mobile top bar —— */
@media (max-width: 991px) {
  header.prestige-header .navbar-collapse-desktop {
    display: none !important;
  }

  header.prestige-header .logo .logo-light {
    max-width: min(210px, 58vw);
    max-height: 40px;
  }

  header.prestige-header nav .nav-header-container {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    grid-template-areas: "phone logo menu";
    align-items: center;
    gap: 10px;
    padding-left: 12px;
    padding-right: 12px;
  }

  header.prestige-header nav .nav-header-container > .col-auto.p-0.d-lg-none {
    grid-area: phone;
    justify-self: start;
  }

  header.prestige-header nav .nav-header-container > .col-auto.p-0:nth-of-type(2) {
    grid-area: logo;
    justify-self: center;
    min-width: 0;
    text-align: center;
  }

  header.prestige-header nav .nav-header-container > .mob-some-changer {
    grid-area: menu;
    justify-self: end;
    display: block !important;
    width: 48px;
    min-width: 48px;
    margin-left: 0 !important;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  header.prestige-header nav .nav-header-container > .d-none.d-lg-flex {
    display: none !important;
  }

  header.prestige-header .mob-some-changer .iata-logo,
  header.prestige-header .mob-some-changer .great-logo,
  header.prestige-header .mob-some-changer .bbb-logo {
    display: none !important;
  }

  header.prestige-header nav .accordion-menu {
    padding: 0;
    position: static;
    width: 48px;
  }

  header.prestige-header .navbar-toggler,
  header.prestige-header .offer-toggler-button {
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    padding: 18px 14px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.12) !important;
  }

  header.prestige-header.pf-scrolled .navbar-toggler,
  header.prestige-header.pf-scrolled .offer-toggler-button {
    border-color: rgba(0, 0, 0, 0.15) !important;
    background: rgba(255, 255, 255, 0.9) !important;
  }

  header.prestige-header .navbar-toggler .icon-bar,
  header.prestige-header .offer-toggler-button .icon-bar {
    background-color: #fff !important;
  }

  header.prestige-header.pf-scrolled .navbar-toggler .icon-bar,
  header.prestige-header.pf-scrolled .offer-toggler-button .icon-bar {
    background-color: #232323 !important;
  }

  header.prestige-header .pf-drawer-toggle.is-active .icon-bar:nth-child(2) {
    opacity: 0;
  }

  header.prestige-header .pf-drawer-toggle.is-active .icon-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  header.prestige-header .pf-drawer-toggle.is-active .icon-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  header.prestige-header .col-auto.p-0.d-lg-none .btn-white.btn-opacity {
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
  }

  header.prestige-header .col-auto.p-0.d-lg-none .btn-white.btn-opacity i {
    color: #fff !important;
    margin: 0;
  }

  header.prestige-header.pf-scrolled .col-auto.p-0.d-lg-none .btn-white.btn-opacity {
    border-color: rgba(0, 0, 0, 0.15) !important;
    background: #fff !important;
    color: #232323 !important;
  }

  header.prestige-header.pf-scrolled .col-auto.p-0.d-lg-none .btn-white.btn-opacity i {
    color: #232323 !important;
  }

  header.prestige-header:not(.pf-scrolled):not(.no-sticky) nav.navbar.bootsnav::before {
    display: none;
  }
}

header.prestige-header.pf-menu-open {
  z-index: 10070;
}

/* Tablet: hide desktop badges in header */
@media (max-width: 1280px) and (min-width: 992px) {
  header.prestige-header .iata-logo,
  header.prestige-header .great-logo,
  header.prestige-header .bbb-logo {
    display: none;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  header.prestige-header .call-btn-header {
    padding: 0 12px !important;
  }

  header.prestige-header .call-btn-header > span {
    display: none;
  }

  header.prestige-header .call-btn-header i {
    margin-right: 0;
  }
}

@media (min-width: 992px) {
  header.prestige-header .navbar-collapse-desktop.collapse {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
  }
}
