/* ============================================================================
   Hola Holidays — global marketplace header styles (2026 rebuild)

   One header for every public page. Paired with assets/js/header-2026.js,
   which mounts the markup into #siteHeaderMount.

   Layers:
   1. Shell + bar (sticky; transparent overlay variant for hero pages)
   2. Brand, primary nav, dropdown panels, right-side tools
   3. Integrated search panel with live results
   4. Mobile drawer (accordions, secondary links, language)
   5. Motion, focus, print

   Colours come from the #siteHeaderMount token block in airbnb-2026.css
   (--header-surface, --header-text, --header-accent, …).
   ============================================================================ */

/* ---- 1. SHELL + BAR ------------------------------------------------------- */
/* Self-sufficient box model: pages that skip index.css still get sane sizing. */
#siteHeaderMount,
#siteHeaderMount *,
#siteHeaderMount *::before,
#siteHeaderMount *::after {
  box-sizing: border-box;
}

.ae-header-shell {
  position: sticky;
  top: 0;
  z-index: 90;
  width: 100%;
}

/* Homepage/hero variant: the bar floats over the hero image, then turns
   solid as soon as the page scrolls (`.is-scrolled`, set by the JS). */
.ae-header-shell.ae-header-shell--overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.ae-header__main {
  background: var(--header-surface, #FFFFFF);
  border-bottom: 1px solid transparent;
  transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.ae-header-shell.is-scrolled .ae-header__main {
  border-bottom-color: var(--header-border, #EBEBEB);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Overlay (transparent) state */
.ae-header-shell--overlay:not(.is-scrolled) .ae-header__main {
  background: linear-gradient(180deg, rgba(12, 14, 16, 0.42), rgba(12, 14, 16, 0));
  border-bottom-color: transparent;
  box-shadow: none;
}
.ae-header-shell--overlay:not(.is-scrolled) .ae-header__wordmark,
.ae-header-shell--overlay:not(.is-scrolled) .ae-header__nav-link,
.ae-header-shell--overlay:not(.is-scrolled) .ae-header__menu-trigger,
.ae-header-shell--overlay:not(.is-scrolled) .ae-header__language,
.ae-header-shell--overlay:not(.is-scrolled) .ae-header__language-select,
.ae-header-shell--overlay:not(.is-scrolled) .ae-header__search-toggle,
.ae-header-shell--overlay:not(.is-scrolled) .ae-header__icon-action,
.ae-header-shell--overlay:not(.is-scrolled) .ae-header__mobile-search,
.ae-header-shell--overlay:not(.is-scrolled) .ae-header__mobile-toggle {
  color: #FFFFFF;
}
.ae-header-shell--overlay:not(.is-scrolled) .ae-header__nav-link:hover,
.ae-header-shell--overlay:not(.is-scrolled) .ae-header__menu-trigger:hover {
  background: rgba(255, 255, 255, 0.14);
}
.ae-header-shell--overlay:not(.is-scrolled) .ae-header__menu-item.is-current > .ae-header__menu-trigger,
.ae-header-shell--overlay:not(.is-scrolled) .ae-header__nav-link[aria-current="page"] {
  background: rgba(255, 255, 255, 0.18);
}

.ae-header__container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.ae-header__main-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
}

/* ---- 2. BRAND ------------------------------------------------------------- */
.ae-header__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  color: var(--header-text, #222222);
  border-radius: 10px;
  flex: 0 0 auto;
}

.ae-header__logo {
  width: 56px;
  height: 56px;
  border-radius: 0;
  display: block;
  /* Soft radial vignette mask: keeps the wordmark crisp, fades only the
     decorative outer corners of the illustrated badge. */
  -webkit-mask-image: radial-gradient(circle at 50% 47%, #000 75%, rgba(0, 0, 0, 0) 100%);
          mask-image: radial-gradient(circle at 50% 47%, #000 75%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
}

.ae-header__wordmark {
  font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.ae-header__wordmark strong { font-weight: 800; }
.ae-header__wordmark-dot { color: var(--header-accent, #FF385C); font-weight: 800; }

/* ---- PRIMARY NAV ---------------------------------------------------------- */
.ae-header__nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 auto;
}

.ae-header__nav-link,
.ae-header__menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--header-text, #222222);
  font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease;
}

.ae-header__nav-link:hover,
.ae-header__menu-trigger:hover {
  background: var(--header-surface-hover, #F2F2F2);
}

.ae-header__nav-link[aria-current="page"] {
  background: var(--header-surface-alt, #F7F7F7);
}

.ae-header__menu-item { position: relative; }
.ae-header__menu-item.is-current > .ae-header__menu-trigger {
  background: var(--header-surface-alt, #F7F7F7);
}
.ae-header__menu-item.is-open > .ae-header__menu-trigger {
  background: var(--header-surface-hover, #F2F2F2);
}

.ae-header__menu-caret {
  font-size: 0.6rem;
  color: var(--header-muted, #717171);
  transition: transform 160ms ease;
}
.ae-header-shell--overlay:not(.is-scrolled) .ae-header__menu-caret { color: rgba(255, 255, 255, 0.85); }
.ae-header__menu-item.is-open .ae-header__menu-caret { transform: rotate(180deg); }

/* ---- DROPDOWN PANELS ------------------------------------------------------ */
.ae-header__mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 320px;
  padding: 22px;
  background: var(--header-surface, #FFFFFF);
  border: 1px solid var(--header-border, #EBEBEB);
  border-radius: 16px;
  box-shadow: var(--header-shadow-panel, 0 8px 28px rgba(0, 0, 0, 0.14));
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms ease, transform 150ms ease, visibility 0s linear 150ms;
  z-index: 95;
}

.ae-header__menu-item.is-open .ae-header__mega {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}

.ae-header__mega-grid {
  display: grid;
  grid-template-columns: repeat(var(--mega-cols, 2), minmax(200px, 1fr)) 264px;
  gap: 8px 26px;
  align-items: start;
}

/* Panels without a feature card must not reserve the trailing 264px track. */
.ae-header__mega-grid--solo {
  grid-template-columns: repeat(var(--mega-cols, 1), minmax(180px, 1fr));
}

.ae-header__mega-col { min-width: 0; }

.ae-header__mega-col-title {
  margin: 0 0 8px;
  color: var(--header-muted, #717171);
  font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ae-header__mega-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
}

.ae-header__mega-links a {
  display: block;
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--header-text, #222222);
  font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 130ms ease;
}
.ae-header__mega-links a:hover { background: var(--header-surface-alt, #F7F7F7); }

/* Nested fly-out groups (desktop) */
.ae-header__mega-group { position: relative; }

.ae-header__mega-group-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--header-text, #222222);
  font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 130ms ease;
}
.ae-header__mega-group-trigger:hover,
.ae-header__mega-group.is-open .ae-header__mega-group-trigger {
  background: var(--header-surface-alt, #F7F7F7);
}
.ae-header__mega-group-trigger .site-icon { color: var(--header-accent, #FF385C); width: 1.05em; text-align: center; }
.ae-header__mega-group-chevron {
  margin-left: auto;
  font-size: 0.6rem;
  color: var(--header-muted, #717171);
  transition: transform 150ms ease;
}
.ae-header__mega-group.is-open .ae-header__mega-group-chevron { transform: rotate(90deg); }

.ae-header__mega-group-panel {
  position: absolute;
  top: 0;
  left: calc(100% + 6px);
  min-width: 220px;
  padding: 8px;
  background: var(--header-surface, #FFFFFF);
  border: 1px solid var(--header-border, #EBEBEB);
  border-radius: 12px;
  box-shadow: var(--header-shadow-panel, 0 8px 28px rgba(0, 0, 0, 0.14));
  display: none;
}
.ae-header__mega-group.is-open .ae-header__mega-group-panel { display: block; }

.ae-header__mega-sublink {
  display: block;
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--header-text, #222222);
  font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
}
.ae-header__mega-sublink:hover { background: var(--header-surface-alt, #F7F7F7); }

/* Feature card (right column of a panel) */
.ae-header__mega-feature {
  display: block;
  border: 1px solid var(--header-border, #EBEBEB);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  background: var(--header-surface, #FFFFFF);
  transition: box-shadow 150ms ease, transform 150ms ease;
}
.ae-header__mega-feature:hover {
  box-shadow: var(--header-shadow-panel, 0 8px 28px rgba(0, 0, 0, 0.14));
  transform: translateY(-2px);
}

.ae-header__mega-feature-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--header-surface-alt, #F7F7F7);
}
.ae-header__mega-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ae-header__mega-feature-body { display: block; padding: 13px 15px 15px; }

.ae-header__mega-feature-kicker {
  display: block;
  color: var(--header-accent, #FF385C);
  font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.ae-header__mega-feature-title {
  display: block;
  color: var(--header-text, #222222);
  font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ae-header__mega-feature-text {
  display: block;
  margin-top: 3px;
  color: var(--header-muted, #717171);
  font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
  font-size: 0.8rem;
  line-height: 1.45;
}

.ae-header__mega-feature-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: var(--header-accent, #FF385C);
  font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
  font-size: 0.8rem;
  font-weight: 650;
}
.ae-header__mega-feature-link .site-icon { font-size: 0.68rem; transition: transform 140ms ease; }
.ae-header__mega-feature:hover .ae-header__mega-feature-link .site-icon { transform: translateX(3px); }

/* ---- RIGHT-SIDE TOOLS ------------------------------------------------------ */
.ae-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.ae-header__language {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
  color: var(--header-text, #222222);
}
.ae-header__language .site-icon { font-size: 0.9rem; color: inherit; }

.ae-header__language-select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
  font-size: 0.85rem;
  font-weight: 650;
  padding: 6px 2px;
  cursor: pointer;
}
.ae-header__language-select:focus-visible { outline: 2px solid var(--header-focus, #FF385C); outline-offset: 2px; border-radius: 6px; }

.ae-header__search-toggle,
.ae-header__icon-action,
.ae-header__mobile-search,
.ae-header__mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--header-text, #222222);
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 140ms ease;
}
.ae-header__search-toggle:hover,
.ae-header__icon-action:hover,
.ae-header__mobile-search:hover,
.ae-header__mobile-toggle:hover { background: var(--header-surface-hover, #F2F2F2); }

.ae-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--header-accent, #FF385C);
  color: #FFFFFF;
  font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 140ms ease, transform 140ms ease;
}
.ae-header__cta:hover { background: var(--header-accent-dark, #E00B41); }
.ae-header__cta:active { transform: scale(0.98); }

.ae-header__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- 3. SEARCH PANEL ------------------------------------------------------- */
.ae-header__search {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--header-surface, #FFFFFF);
  border-bottom: 1px solid var(--header-border, #EBEBEB);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.12);
  z-index: 94;
}

.ae-header__search-inner { padding: 14px 24px 18px; }

.ae-header__search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
  padding: 4px 6px 4px 16px;
  border: 1.5px solid var(--header-border-strong, #DDDDDD);
  border-radius: 12px;
  background: var(--header-surface, #FFFFFF);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.ae-header__search-form:focus-within {
  border-color: var(--header-text, #222222);
  box-shadow: 0 0 0 3px rgba(34, 34, 34, 0.08);
}
.ae-header__search-form > .site-icon { color: var(--header-muted, #717171); }

.ae-header__search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--header-text, #222222);
  font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
  font-size: 0.95rem;
  padding: 9px 0;
}
.ae-header__search-input:focus { outline: none; }
.ae-header__search-input::placeholder { color: var(--header-muted, #717171); }
.ae-header__search-input::-webkit-search-cancel-button { display: none; }

.ae-header__search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--header-muted, #717171);
  cursor: pointer;
}
.ae-header__search-clear:hover { background: var(--header-surface-alt, #F7F7F7); color: var(--header-text, #222222); }

.ae-header__search-submit {
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: var(--header-text, #222222);
  color: #FFFFFF;
  font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
  font-size: 0.84rem;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 140ms ease;
}
.ae-header__search-submit:hover { background: #000000; }

.ae-header__search-results {
  max-width: 720px;
  max-height: min(52vh, 430px);
  overflow-y: auto;
  margin: 10px auto 0;
  padding: 6px;
  border: 1px solid var(--header-border, #EBEBEB);
  border-radius: 12px;
  background: var(--header-surface, #FFFFFF);
}

.ae-header__search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 10px;
  text-decoration: none;
}
.ae-header__search-result:hover,
.ae-header__search-result.is-active { background: var(--header-surface-alt, #F7F7F7); }

.ae-header__search-result img {
  width: 66px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  flex: 0 0 auto;
  background: var(--header-surface-alt, #F7F7F7);
}

.ae-header__search-result-body { min-width: 0; max-width: calc(100% - 80px); }
.ae-header__search-result-body strong {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--header-text, #222222);
  font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
}
.ae-header__search-result-body small {
  display: block;
  margin-top: 1px;
  color: var(--header-muted, #717171);
  font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
  font-size: 0.76rem;
}

.ae-header__search-empty {
  margin: 0;
  padding: 14px 10px;
  color: var(--header-muted, #717171);
  font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
  font-size: 0.85rem;
  text-align: center;
}

/* ---- 4. MOBILE DRAWER ------------------------------------------------------ */
.ae-header__mobile-search,
.ae-header__mobile-toggle { display: none; }

.ae-header__drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  visibility: hidden;
  pointer-events: none;
}
.ae-header__drawer.is-open { visibility: visible; pointer-events: auto; }

.ae-header__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  cursor: pointer;
  transition: opacity 200ms ease;
}
.ae-header__drawer.is-open .ae-header__backdrop { opacity: 1; }

.ae-header__drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 94vw);
  display: flex;
  flex-direction: column;
  background: var(--header-surface, #FFFFFF);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.22);
  transform: translateX(102%);
  transition: transform 240ms ease;
}
.ae-header__drawer.is-open .ae-header__drawer-panel { transform: translateX(0); }

.ae-header__drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--header-border, #EBEBEB);
}

.ae-header__drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.ae-header__drawer-logo { width: 38px; height: 38px; border-radius: 50%; }
.ae-header__drawer-brand strong {
  display: block;
  color: var(--header-text, #222222);
  font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
  font-size: 0.95rem;
  font-weight: 750;
}
.ae-header__drawer-brand small {
  display: block;
  color: var(--header-muted, #717171);
  font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
  font-size: 0.72rem;
}

.ae-header__drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--header-surface-alt, #F7F7F7);
  color: var(--header-text, #222222);
  font-size: 1rem;
  cursor: pointer;
}

.ae-header__drawer-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ae-header__drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  border-radius: 12px;
  background: var(--header-accent, #FF385C);
  color: #FFFFFF;
  font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}
.ae-header__drawer-cta .site-icon { font-size: 0.8rem; }

.ae-header__drawer-search {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1.5px solid var(--header-border-strong, #DDDDDD);
  border-radius: 12px;
  color: var(--header-muted, #717171);
}
.ae-header__drawer-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 11px 0;
  background: transparent;
  color: var(--header-text, #222222);
  font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
  font-size: 0.92rem;
}
.ae-header__drawer-search input:focus { outline: none; }

.ae-header__mobile-nav { display: grid; gap: 2px; }

.ae-header__m-group { border-bottom: 1px solid var(--header-border, #EBEBEB); }

.ae-header__m-group-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 2px;
  border: 0;
  background: transparent;
  color: var(--header-text, #222222);
  font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
  font-size: 0.98rem;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.ae-header__m-group-trigger .site-icon { font-size: 0.72rem; color: var(--header-muted, #717171); transition: transform 160ms ease; }
.ae-header__m-group-trigger[aria-expanded="true"] .site-icon { transform: rotate(180deg); }

.ae-header__m-group-panel { padding: 2px 0 12px; display: grid; gap: 2px; }
.ae-header__m-group-panel[hidden],
.ae-header__m-sub-panel[hidden] { display: none; }

.ae-header__m-link {
  display: block;
  padding: 8px 2px;
  color: var(--header-text, #222222);
  font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
  font-size: 0.9rem;
  font-weight: 550;
  text-decoration: none;
}
.ae-header__m-link:hover { color: var(--header-accent, #FF385C); }

.ae-header__m-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 2px;
  color: var(--header-accent, #FF385C);
  font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
}

.ae-header__m-block { padding: 4px 0; }
.ae-header__m-block-title {
  margin: 4px 0 2px;
  color: var(--header-muted, #717171);
  font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ae-header__m-sub { border-top: 1px dashed var(--header-border, #EBEBEB); }
.ae-header__m-sub:first-of-type { border-top: 0; }

.ae-header__m-sub-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 2px;
  border: 0;
  background: transparent;
  color: var(--header-text, #222222);
  font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.ae-header__m-sub-trigger .site-icon { font-size: 0.66rem; color: var(--header-muted, #717171); transition: transform 160ms ease; }
.ae-header__m-sub-trigger[aria-expanded="true"] .site-icon { transform: rotate(180deg); }

.ae-header__m-sub-panel { padding: 0 0 6px; display: grid; }

.ae-header__mobile-link {
  display: block;
  padding: 10px 2px;
  color: var(--header-text, #222222);
  font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
  font-size: 0.92rem;
  font-weight: 550;
  text-decoration: none;
}

.ae-header__drawer-section { border-top: 1px solid var(--header-border, #EBEBEB); padding-top: 12px; }
.ae-header__drawer-heading {
  margin: 0 0 4px;
  color: var(--header-muted, #717171);
  font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ae-header__mobile-link--secondary { color: var(--header-muted, #717171); padding: 8px 2px; }

.ae-header__drawer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.ae-header__drawer-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border: 1.5px solid var(--header-border-strong, #DDDDDD);
  border-radius: 12px;
  color: var(--header-text, #222222);
  font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}
.ae-header__drawer-pill--dark { background: var(--header-text, #222222); border-color: var(--header-text, #222222); color: #FFFFFF; }
.ae-header__drawer-pill .fa-whatsapp { color: #128C7E; }
.ae-header__drawer-pill--dark .fa-envelope { color: #FFFFFF; }

.ae-header__mobile-language {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 2px 0;
  border-top: 1px solid var(--header-border, #EBEBEB);
}
.ae-header__mobile-language label {
  color: var(--header-muted, #717171);
  font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
  font-size: 0.8rem;
  font-weight: 600;
}
.ae-header__mobile-language .ae-header__language-select {
  border: 1.5px solid var(--header-border-strong, #DDDDDD);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--header-text, #222222);
}

/* ---- 5. RESPONSIVE ---------------------------------------------------------- */
@media (max-width: 1080px) {
  .ae-header__nav,
  .ae-header__language,
  .ae-header__cta,
  .ae-header__icon-action { display: none; }

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

  .ae-header__main-inner { min-height: 58px; gap: 8px; }
  .ae-header__container { padding: 0 16px; }
  .ae-header__brand { margin-right: auto; }
  .ae-header__actions { margin-left: auto; }
  .ae-header__actions .ae-header__search-toggle { display: none; }
}

@media (min-width: 1081px) {
  .ae-header__mobile-search { display: none; }
}

@media (max-width: 480px) {
  .ae-header__logo { width: 44px; height: 44px; }
  .ae-header__wordmark { font-size: 0.98rem; }
}

/* ---- 6. MOTION / FOCUS / PRINT --------------------------------------------- */
.ae-header-shell a:focus-visible,
.ae-header-shell button:focus-visible,
.ae-header-shell select:focus-visible,
.ae-header-shell input:focus-visible {
  outline: 2px solid var(--header-focus, #FF385C);
  outline-offset: 2px;
}

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

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

@media print {
  .ae-header-shell { display: none; }
}

/* ---- 7. SHARED CENTERED BRAND BAR ----------------------------------------- */
/* Keep one bright, recognizable header across every public page, including
   the homepage where the older hero overlay used to turn the bar transparent. */
.ae-header-shell.ae-header-shell--overlay {
  position: sticky;
  top: 0;
  left: auto;
  right: auto;
}

.ae-header-shell--overlay:not(.is-scrolled) .ae-header__main {
  background: #fff;
  border-bottom-color: var(--header-border, #ebebeb);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .045);
}

.ae-header-shell--overlay:not(.is-scrolled) .ae-header__wordmark,
.ae-header-shell--overlay:not(.is-scrolled) .ae-header__nav-link,
.ae-header-shell--overlay:not(.is-scrolled) .ae-header__menu-trigger,
.ae-header-shell--overlay:not(.is-scrolled) .ae-header__language,
.ae-header-shell--overlay:not(.is-scrolled) .ae-header__language-select,
.ae-header-shell--overlay:not(.is-scrolled) .ae-header__search-toggle,
.ae-header-shell--overlay:not(.is-scrolled) .ae-header__icon-action,
.ae-header-shell--overlay:not(.is-scrolled) .ae-header__mobile-search,
.ae-header-shell--overlay:not(.is-scrolled) .ae-header__mobile-toggle {
  color: var(--header-text, #222);
}

.ae-header__main-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  min-height: 84px;
  gap: 12px;
}

.ae-header__brand {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 72px;
  height: 72px;
  margin: 0;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(20, 61, 62, .08);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(19, 57, 58, .12), 0 0 0 4px rgba(255, 255, 255, .42);
}

.ae-header__logo {
  width: 62px;
  height: 62px;
  -webkit-mask-image: none;
          mask-image: none;
  object-fit: contain;
  animation: ae-brand-logo-motion 3.4s ease-in-out infinite;
  transition: filter 220ms ease;
}

.ae-header__brand:hover .ae-header__logo,
.ae-header__brand:focus-visible .ae-header__logo {
  filter: drop-shadow(0 3px 5px rgba(20, 75, 76, .2));
  animation-duration: 1.1s;
}

.ae-header__nav {
  grid-column: 1;
  justify-self: start;
  margin: 0;
}

.ae-header__actions {
  grid-column: 3;
  justify-self: end;
  margin: 0;
}

@media (max-width: 1080px) {
  .ae-header__main-inner {
    grid-template-columns: 1fr auto 1fr;
    min-height: 66px;
  }

  .ae-header__brand {
    position: static;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    width: 58px;
    height: 58px;
    transform: none;
    border-radius: 15px;
  }

  .ae-header__logo { width: 50px; height: 50px; }
  .ae-header__actions { display: none; }

  .ae-header__mobile-toggle {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    margin: 0;
  }

  .ae-header__mobile-search {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin: 0;
  }
}

@media (max-width: 480px) {
  .ae-header__main-inner { min-height: 62px; }
  .ae-header__brand { width: 54px; height: 54px; border-radius: 14px; }
  .ae-header__logo { width: 47px; height: 47px; }
}

@keyframes ae-brand-logo-motion {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-1.5px) scale(1.025); }
}

@media (prefers-reduced-motion: reduce) {
  .ae-header__logo { animation: none !important; }
}

/* ---- 8. FIRST-VISIT WELCOME MOTION ---------------------------------------- */
.hh-page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  opacity: 1;
  transition: opacity 380ms ease, visibility 380ms ease;
}

.hh-page-loader.is-leaving {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.hh-page-loader__content {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 20px;
  animation: hh-loader-arrive 650ms cubic-bezier(.2, .8, .2, 1) both;
}

.hh-page-loader__logo-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  border: 1px solid rgba(19, 68, 70, .09);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 14px 40px rgba(19, 68, 70, .12);
  animation: hh-loader-breathe 1.4s ease-in-out infinite alternate;
}

.hh-page-loader__logo-wrap img {
  display: block;
  width: 104px;
  height: 104px;
  object-fit: contain;
}

.hh-page-loader__orbit {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 156px;
  height: 156px;
  border: 2px solid transparent;
  border-top-color: #ed7e43;
  border-right-color: rgba(25, 99, 99, .38);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: hh-loader-spin 1.15s linear infinite;
}

.hh-page-loader__caption {
  color: #31595a;
  font-family: var(--font-ui, Inter, system-ui, sans-serif);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

@keyframes hh-loader-spin { to { transform: translateX(-50%) rotate(360deg); } }
@keyframes hh-loader-breathe { to { transform: scale(1.045); } }
@keyframes hh-loader-arrive {
  from { opacity: 0; transform: translateY(12px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hh-page-loader,
  .hh-page-loader__content,
  .hh-page-loader__logo-wrap,
  .hh-page-loader__orbit {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}
