/* FLY HEADER */
.fly-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  z-index: 1000;
  transition: top 0.2s ease-in-out;

  background-color: #e5e2dc;
  border-bottom: 1px solid #e0e0e0;
}

.fly-header.show {
  top: 0;
}

.fly-header:not(.show) {
  top: -100%;
}

/* RESET */
.app-bar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.app-bar li {
  display: inline-block;
  margin: 0;
}

.app-bar summary::-webkit-details-marker {
  display: none;
}

.app-bar summary {
  list-style: none;
  list-style-type: none;
  user-select: none;
}

/* APP BAR */
.app-bar {
  display: grid;
  grid-template-columns: 1fr auto auto;

  align-items: center;

  padding: 24px;
  padding-inline: 48px;
  gap: 24px;

  color: white;
}

.fly-header.app-bar {
  color: #768e88;
}


/* Use the right version of the logo*/
.logo-green {
  display: none;
}

.logo-white {
  display: block;
}


.fly-header .logo-green {
  display: block;
}

.fly-header .logo-white {
  display: none;
}


@media (max-width: 1200px) {
  .app-bar {
    padding: 16px;
    padding-inline: 24px;
  }
}

.app-bar .destinations {
  display: flex;
  align-items: center;
  gap: 24px;
}

.app-bar .destination {
  position: relative;
}

.app-bar .destination {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
}

.app-bar .destination.active {
  font-weight: bold;
}

.app-bar .logo-link {
  display: flex;
  align-items: center;

  flex: 1;
}

.app-bar .logo-link img {
  height: 1rem;
}

/* LANGUAGE SWITCH */
.app-bar .language-switch {
  margin: 0;
}

.app-bar .language-switch * {
  color: inherit;
}

.app-bar .language-switch ul {
  padding: 0;
}

.app-bar .language-switch li {
  margin: 0;
}

.app-bar .language-switch ul li {
  text-transform: uppercase;
  display: inline;
}

.app-bar .language-switch ul li.active a {
  font-weight: bold;
  cursor: default;
}

.app-bar .language-switch ul li:after {
  content: "|";
  padding-inline: 8px;
}

.app-bar .language-switch ul li:last-child:after {
  content: "";
}

/* FLYOUT */

.app-bar .destination .flyout {
  position: absolute;
  top: 100%;
  left: 0;

  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition-property: opacity, visibility, transform;
  transition-duration: 0.2s;

  padding-top: 8px;
}
.app-bar .destination:hover .flyout {
  opacity: 1;
  visibility: visible;
  transform: translateY(0px);
}

.app-bar .flyout :is(span, summary) {
  color: black;
}

.app-bar .destination .level-2 {
  width: max-content;

  display: flex;
  gap: 20px;
  padding: 20px;

  background-color: #e5e2dc;
}

.app-bar .destination .level-3 {
  display: flex;
  flex-direction: column;
  gap: 12px;

  margin: 0px;
  margin-block: 8px;
}

.app-bar .destination :is(.level-2-label, .level-3-label, .level-4-label) {
  font-size: 1rem;
}

.app-bar .level-2-label {
  text-transform: uppercase;
}

.app-bar .destination .level-4 {
  display: flex;
  flex-direction: column;
  gap: 8px;

  margin-inline-start: 16px;
  margin-block: 8px;
}

.app-bar .spin-when-details-collapsed {
  transform: rotate(-90deg);
  transition: transform 0.1s;
}
.app-bar details[open] > summary > .spin-when-details-collapsed {
  transform: rotate(0deg);
}

.app-bar details summary {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 8px;

  width: 100%;
}
