/* Agadir Explore Tours — shared centered-emblem public header */
.ae-header-shell {
  --ae-header-navy: #041d31;
  --ae-header-deep: #021522;
  --ae-header-panel: #082942;
  --ae-header-text: #f6fbff;
  --ae-header-muted: #b7cad8;
  --ae-header-line: rgba(205, 226, 239, 0.15);
  --ae-header-gold: #d5aa54;
  --ae-header-cyan: #25b8ca;
  position: fixed;
  inset: 0 0 auto;
  z-index: 2200;
  color: var(--ae-header-text);
  background: var(--ae-header-navy);
  border-bottom: 1px solid rgba(213, 170, 84, 0.34);
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.ae-header-shell,
.ae-header-shell * {
  box-sizing: border-box;
}

.ae-header-shell.is-scrolled {
  border-color: rgba(37, 184, 202, 0.28);
  box-shadow: 0 14px 34px rgba(2, 18, 30, 0.24);
}

html.translated-ltr .ae-header-shell,
html.translated-rtl .ae-header-shell {
  top: 40px;
}

html.translated-ltr .ae-header__drawer,
html.translated-rtl .ae-header__drawer {
  top: 40px;
}

.ae-header-shell a {
  color: inherit;
  text-decoration: none;
}

.ae-header-shell a:focus-visible,
.ae-header-shell button:focus-visible,
.ae-header-shell summary:focus-visible,
.ae-header-shell select:focus-visible {
  outline: 3px solid #62d8e4;
  outline-offset: 3px;
}

.ae-header__container {
  width: min(1220px, calc(100% - 48px));
  margin-inline: auto;
}

.ae-header__utility {
  max-height: 35px;
  overflow: hidden;
  background: var(--ae-header-deep);
  border-bottom: 1px solid var(--ae-header-line);
  transition: max-height 200ms ease, opacity 180ms ease;
}

.ae-header-shell.is-scrolled .ae-header__utility {
  max-height: 0;
  opacity: 0;
}

.ae-header__utility-inner {
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ae-header__utility-links,
.ae-header__utility-language {
  display: flex;
  align-items: center;
  gap: 20px;
}

.ae-header__utility a,
.ae-header__utility-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ae-header-muted);
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.02em;
}

.ae-header__utility a:hover {
  color: #fff;
}

.ae-header__utility .site-icon {
  color: var(--ae-header-cyan) !important;
}

.ae-header__utility-label {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ae-header__language-select {
  min-height: 26px;
  padding: 2px 28px 2px 10px;
  border: 1px solid rgba(205, 226, 239, 0.22);
  border-radius: 6px;
  color: #fff;
  background: #092a43;
  font: 700 0.69rem/1 inherit;
  cursor: pointer;
}

.ae-header__main {
  position: relative;
  background: var(--ae-header-navy);
}

.ae-header__main-inner {
  min-height: 102px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 154px minmax(0, 1fr);
  align-items: center;
  transition: min-height 200ms ease;
}

.ae-header-shell.is-scrolled .ae-header__main-inner {
  min-height: 76px;
}

.ae-header__nav {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ae-header__nav--left {
  justify-content: flex-end;
  padding-right: 22px;
}

.ae-header__nav--right {
  justify-content: flex-start;
  padding-left: 22px;
}

.ae-header__nav-link,
.ae-header__menu-trigger {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border: 0;
  border-radius: 7px;
  color: #dce9f2 !important;
  background: transparent;
  font: 750 0.82rem/1.2 inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.ae-header__nav-link:hover,
.ae-header__menu-trigger:hover,
.ae-header__nav-link[aria-current="page"],
.ae-header__menu-trigger[aria-expanded="true"],
.ae-header__menu-item.is-current .ae-header__menu-trigger {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
}

.ae-header__nav-link[aria-current="page"],
.ae-header__menu-item.is-current .ae-header__menu-trigger {
  box-shadow: inset 0 -2px 0 var(--ae-header-cyan);
}

.ae-header__menu-trigger .site-icon {
  color: var(--ae-header-gold) !important;
  font-size: 0.66rem;
  transition: transform 160ms ease;
}

.ae-header__menu-trigger[aria-expanded="true"] .site-icon {
  transform: rotate(180deg);
}

.ae-header__brand {
  position: relative;
  z-index: 4;
  width: 154px;
  height: 102px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ae-header__wordmark {
  width: 124px;
  height: 112px;
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border: 1px solid rgba(213, 170, 84, 0.58);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(1, 14, 24, 0.3);
  transition: width 200ms ease, min-height 200ms ease, padding 200ms ease;
}

.ae-header__wordmark img {
  width: 112px;
  max-width: 100%;
  height: 94px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.ae-header-shell.is-scrolled .ae-header__wordmark {
  width: 92px;
  height: 72px;
  min-height: 72px;
  padding: 4px;
  box-shadow: 0 8px 20px rgba(1, 14, 24, 0.26);
}

.ae-header-shell.is-scrolled .ae-header__wordmark img {
  width: 80px;
  height: 66px;
}

.ae-header__menu-item {
  position: relative;
}

.ae-header__mega-menu {
  position: absolute;
  top: calc(100% + 29px);
  z-index: 10;
  width: min(720px, 86vw);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 24px;
  border: 1px solid rgba(205, 226, 239, 0.16);
  border-top: 3px solid var(--ae-header-cyan);
  border-radius: 0 0 12px 12px;
  color: #e9f3f8;
  background: #07243a;
  box-shadow: 0 24px 54px rgba(0, 12, 22, 0.34);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.ae-header__nav--left .ae-header__mega-menu {
  right: -186px;
}

.ae-header__nav--right .ae-header__mega-menu {
  left: -186px;
}

.ae-header__menu-item.is-open .ae-header__mega-menu,
.ae-header__menu-item:focus-within .ae-header__mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ae-header-shell.is-scrolled .ae-header__mega-menu {
  top: calc(100% + 16px);
}

.ae-header__mega-column {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 3px;
}

.ae-header__mega-column + .ae-header__mega-column {
  padding-left: 20px;
  border-left: 1px solid var(--ae-header-line);
}

.ae-header__mega-title {
  margin: 0 0 9px;
  color: var(--ae-header-gold);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ae-header__mega-menu a {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 5px;
  color: #c4d7e3;
  font-size: 0.78rem;
  transition: color 150ms ease, background-color 150ms ease;
}

.ae-header__mega-menu a:hover,
.ae-header__mega-menu a[aria-current="page"] {
  color: #fff;
  background: rgba(37, 184, 202, 0.12);
}

.ae-header__action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid rgba(205, 226, 239, 0.2);
  border-radius: 7px;
  color: #eaf4fa !important;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.ae-header__action:hover {
  border-color: rgba(98, 216, 228, 0.55);
  background: rgba(255, 255, 255, 0.07);
}

.ae-header__action--primary {
  border-color: var(--ae-header-cyan);
  color: #031b2c !important;
  background: #63d6e2;
}

.ae-header__action--primary:hover {
  border-color: #fff;
  background: #fff;
}

.ae-header__mobile-toggle,
.ae-header__mobile-quick-action {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  display: none;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border: 1px solid rgba(205, 226, 239, 0.2);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.ae-header__mobile-toggle {
  left: 0;
}

.ae-header__mobile-quick-action {
  right: 0;
  color: #031b2c !important;
  border-color: var(--ae-header-cyan);
  background: #63d6e2;
}

.ae-header__drawer {
  position: fixed;
  inset: 0;
  z-index: 2400;
  visibility: hidden;
  pointer-events: none;
}

.ae-header__drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.ae-header__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(1, 12, 20, 0.68);
  opacity: 0;
  transition: opacity 200ms ease;
}

.ae-header__drawer-panel {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(92vw, 410px);
  display: flex;
  flex-direction: column;
  color: #edf7fb;
  background: #041d31;
  box-shadow: 22px 0 48px rgba(0, 10, 18, 0.35);
  transform: translateX(-100%);
  transition: transform 220ms ease;
}

.ae-header__drawer.is-open .ae-header__backdrop {
  opacity: 1;
}

.ae-header__drawer.is-open .ae-header__drawer-panel {
  transform: translateX(0);
}

.ae-header__drawer-head {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--ae-header-line);
}

.ae-header__drawer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ae-header__drawer-brand img {
  width: 54px;
  height: 54px;
  padding: 3px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

.ae-header__drawer-brand span {
  display: grid;
  gap: 3px;
}

.ae-header__drawer-brand strong {
  color: #fff;
  font-size: 0.94rem;
}

.ae-header__drawer-brand small {
  color: var(--ae-header-cyan);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ae-header__drawer-close {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(205, 226, 239, 0.2);
  border-radius: 50%;
  color: #fff;
  background: transparent;
}

.ae-header__drawer-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 20px 30px;
}

.ae-header__mobile-nav {
  display: grid;
}

.ae-header__mobile-link,
.ae-header__mobile-group summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  border-bottom: 1px solid var(--ae-header-line);
  color: #edf7fb;
  font-size: 0.9rem;
  font-weight: 750;
  list-style: none;
  cursor: pointer;
}

.ae-header__mobile-group summary::-webkit-details-marker {
  display: none;
}

.ae-header__mobile-group summary::after {
  content: "+";
  color: var(--ae-header-cyan);
  font-size: 1.25rem;
  font-weight: 400;
}

.ae-header__mobile-group[open] summary::after {
  content: "−";
}

.ae-header__mobile-submenu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--ae-header-line);
}

.ae-header__mobile-submenu a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 6px 9px;
  border-radius: 5px;
  color: #b9cedb;
  font-size: 0.79rem;
}

.ae-header__mobile-submenu a:hover,
.ae-header__mobile-submenu a[aria-current="page"] {
  color: #fff;
  background: rgba(37, 184, 202, 0.12);
}

.ae-header__drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 24px;
}

.ae-header__drawer-actions .ae-header__action {
  min-height: 48px;
}

.ae-header__mobile-language {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--ae-header-line);
}

.ae-header__mobile-language label {
  color: var(--ae-header-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ae-header__spacer {
  height: 138px;
}

html.translated-ltr .ae-header__spacer,
html.translated-rtl .ae-header__spacer {
  height: 178px;
}

body.ae-header-no-scroll {
  overflow: hidden;
}

.ae-header__translate-host {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 1320px) and (min-width: 1181px) {
  .ae-header__container {
    width: min(1180px, calc(100% - 32px));
  }

  .ae-header__nav-link,
  .ae-header__menu-trigger {
    padding-inline: 10px;
    font-size: 0.78rem;
  }

  .ae-header__call-label {
    display: none;
  }
}

@media (max-width: 1180px) {
  .ae-header__utility,
  .ae-header__nav {
    display: none;
  }

  .ae-header__container {
    width: min(100% - 32px, 760px);
  }

  .ae-header__main-inner,
  .ae-header-shell.is-scrolled .ae-header__main-inner {
    min-height: 78px;
    display: flex;
    justify-content: center;
  }

  .ae-header__brand {
    width: 104px;
    height: 78px;
  }

  .ae-header__wordmark,
  .ae-header-shell.is-scrolled .ae-header__wordmark {
    width: 92px;
    height: 68px;
    min-height: 68px;
    padding: 3px;
    border-radius: 9px;
    box-shadow: 0 8px 18px rgba(1, 14, 24, 0.28);
  }

  .ae-header__wordmark img,
  .ae-header-shell.is-scrolled .ae-header__wordmark img {
    width: 78px;
    height: 64px;
  }

  .ae-header__mobile-toggle,
  .ae-header__mobile-quick-action {
    display: inline-flex;
  }

  .ae-header__spacer {
    height: 79px;
  }

  html.translated-ltr .ae-header__spacer,
  html.translated-rtl .ae-header__spacer {
    height: 119px;
  }
}

@media (max-width: 420px) {
  .ae-header__container {
    width: calc(100% - 24px);
  }

  .ae-header__brand {
    width: 100px;
  }

  .ae-header__wordmark,
  .ae-header-shell.is-scrolled .ae-header__wordmark {
    width: 88px;
  }

  .ae-header__wordmark img,
  .ae-header-shell.is-scrolled .ae-header__wordmark img {
    width: 76px;
  }

  .ae-header__mobile-toggle,
  .ae-header__mobile-quick-action {
    width: 44px;
    height: 44px;
  }

  .ae-header__drawer-head,
  .ae-header__drawer-scroll {
    padding-inline: 16px;
  }

}

@media (max-width: 340px) {
  .ae-header__mobile-submenu {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ae-header-shell *,
  .ae-header-shell *::before,
  .ae-header-shell *::after {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
