/* True Travel shared public footer — 2026 */
.ae-footer {
  --footer-container: 1240px;
  --footer-bg: #0b3558;
  --footer-bg-deep: #072944;
  --footer-text: #f7fbff;
  --footer-muted: #bfd0df;
  --footer-line: rgba(255, 255, 255, .14);
  --footer-brand: #3dc4e4;
  --footer-cta: #0077c8;
  position: relative;
  margin-top: clamp(56px, 7vw, 92px);
  overflow: hidden;
  color: var(--footer-text);
  background: var(--footer-bg);
  font-family: var(--font-ui, "Poppins", system-ui, sans-serif);
}

.ae-footer,
.ae-footer * { box-sizing: border-box; }
.ae-footer a { color: inherit; text-decoration: none; }

.ae-footer a:focus-visible,
.ae-footer button:focus-visible {
  outline: 3px solid var(--footer-brand);
  outline-offset: 3px;
}

.ae-footer__container {
  width: min(var(--footer-container), calc(100% - 48px));
  margin-inline: auto;
}

.ae-footer__whatsapp {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-inline: 20px;
  border: 1px solid var(--footer-cta);
  border-radius: 9px;
  color: #fff !important;
  background: var(--footer-cta);
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.ae-footer__whatsapp:hover {
  border-color: #1596d5;
  background: #1596d5;
  transform: translateY(-1px);
}

.ae-footer__main {
  display: grid;
  grid-template-columns: minmax(210px, 1.35fr) repeat(3, minmax(125px, .72fr)) minmax(210px, 1.1fr);
  gap: clamp(24px, 3vw, 46px);
  padding-block: 52px;
}

.ae-footer__brand-logo {
  display: block;
  width: 138px;
  height: 88px;
  margin: 0 0 18px;
  padding: 7px;
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
}

.ae-footer__brand-copy {
  max-width: 31ch;
  margin: 0;
  color: var(--footer-muted);
  font-size: .88rem;
  line-height: 1.7;
}

.ae-footer__socials { display: flex; align-items: center; gap: 9px; margin-top: 20px; }

.ae-footer__socials a {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--footer-line);
  border-radius: 9px;
  color: #dce8f2;
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.ae-footer__socials a:hover { color: #fff; border-color: var(--footer-cta); background: var(--footer-cta); }

.ae-footer__heading,
.ae-footer__accordion-trigger {
  margin: 0 0 17px;
  color: #fff;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ae-footer__accordion-trigger {
  width: 100%;
  min-height: 54px;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: start;
  cursor: pointer;
}

.ae-footer__accordion-icon { position: relative; width: 18px; height: 18px; }

.ae-footer__accordion-icon::before,
.ae-footer__accordion-icon::after {
  content: "";
  position: absolute;
  inset: 8px 1px auto;
  height: 2px;
  background: var(--footer-brand);
  transition: transform 160ms ease;
}

.ae-footer__accordion-icon::after { transform: rotate(90deg); }
.ae-footer__accordion-trigger[aria-expanded="true"] .ae-footer__accordion-icon::after { transform: rotate(0); }

.ae-footer__links,
.ae-footer__contact-list { list-style: none; padding: 0; margin: 0; }
.ae-footer__links { display: grid; gap: 10px; }

.ae-footer__links a {
  display: inline-block;
  color: var(--footer-muted);
  font-size: .86rem;
  line-height: 1.45;
  transition: color 150ms ease, transform 150ms ease;
}

.ae-footer__links a:hover { color: #fff; transform: translateX(2px); }

.ae-footer__contact-list { display: grid; gap: 15px; }

.ae-footer__contact-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--footer-muted);
  font-size: .83rem;
  line-height: 1.55;
}

.ae-footer__contact-list .site-icon { margin-top: 4px; color: var(--footer-brand) !important; }
.ae-footer__contact-list a { overflow-wrap: anywhere; }
.ae-footer__contact-list a:hover { color: #fff; }
.ae-footer__whatsapp { margin-top: 20px; padding-inline: 14px; }

.ae-footer__partners {
  border-top: 1px solid var(--footer-line);
  background: rgba(1, 20, 35, .22);
}

.ae-footer__partners-inner {
  min-height: 132px;
  display: grid;
  grid-template-columns: minmax(210px, .8fr) minmax(0, 2.2fr);
  align-items: center;
  gap: 34px;
  padding-block: 24px;
}

.ae-footer__partners-copy h2 { margin: 3px 0 5px; color: #fff; font-size: 1.05rem; }
.ae-footer__partners-copy > p:last-child { margin: 0; color: var(--footer-muted); font-size: .76rem; line-height: 1.5; }

.ae-footer__partners-kicker {
  margin: 0;
  color: var(--footer-brand);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ae-footer__carousel-toggle {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-inline: 12px;
  border: 1px solid var(--footer-line);
  border-radius: 7px;
  color: #dce8f2;
  background: transparent;
  font: 700 .7rem/1 inherit;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.ae-footer__carousel-toggle:hover {
  color: #fff;
  border-color: var(--footer-brand);
  background: rgba(255, 255, 255, .06);
}

.ae-footer__carousel-toggle:disabled { cursor: default; opacity: .72; }

.ae-footer__partner-carousel {
  min-width: 0;
  overflow: hidden;
  padding-block: 6px;
  direction: ltr;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.ae-footer__partner-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: ae-footer-partners-scroll 28s linear infinite;
  will-change: transform;
}

.ae-footer__partner-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.ae-footer__partner-carousel:hover .ae-footer__partner-track,
.ae-footer__partner-carousel:focus-within .ae-footer__partner-track,
.ae-footer__partners.is-paused .ae-footer__partner-track {
  animation-play-state: paused;
}

@keyframes ae-footer-partners-scroll {
  to { transform: translateX(-50%); }
}

.ae-footer__partner-logo {
  width: 156px;
  flex: 0 0 156px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: #fff;
}

.ae-footer__partner-logo img { width: 100%; height: 100%; display: block; object-fit: contain; }

.ae-footer__partner-logo--viator {
  background: #fff url("/assets/brand/partner-viator.webp") center/112% auto no-repeat;
}

.ae-footer__bottom { background: var(--footer-bg-deep); }

.ae-footer__bottom-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #adc1d2;
  font-size: .76rem;
  padding-inline: 70px;
}

.ae-footer__bottom p { margin: 0; }
.ae-footer__legal { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px; }
.ae-footer__legal a { color: #adc1d2; font-size: .75rem; transition: color 150ms ease; }
.ae-footer__legal a:hover { color: #fff; }

.ae-footer__agency-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 7px;
  color: #c6d5e1 !important;
}

.ae-footer__agency-credit span { font-size: .62rem; font-weight: 700; text-transform: uppercase; }
.ae-footer__agency-credit img { width: 64px; height: 23px; object-fit: contain; }

@media (max-width: 1050px) {
  .ae-footer__main { grid-template-columns: 1.2fr repeat(3, .8fr); }
  .ae-footer__contact {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 22px;
    align-items: start;
    padding-top: 28px;
    border-top: 1px solid var(--footer-line);
  }
  .ae-footer__contact .ae-footer__heading { margin-top: 4px; }
  .ae-footer__contact-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ae-footer__whatsapp { margin-top: 0; }
  .ae-footer__partners-inner { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 800px) {
  .ae-footer__bottom-inner { flex-wrap: wrap; justify-content: flex-start; gap: 12px 22px; padding-block: 18px; }
  .ae-footer__bottom-inner > p { width: 100%; }
}

@media (max-width: 760px) {
  .ae-footer { margin-top: 56px; }
  .ae-footer__container { width: min(100% - 34px, 620px); }
  .ae-footer__main { display: block; padding-block: 40px 34px; }
  .ae-footer__brand { padding-bottom: 30px; }
  .ae-footer__brand-logo { width: 126px; height: 82px; }
  .ae-footer__accordion { border-top: 1px solid var(--footer-line); }
  .ae-footer__accordion:last-of-type { border-bottom: 1px solid var(--footer-line); }
  .ae-footer__accordion .ae-footer__heading { display: none; }
  .ae-footer__accordion-trigger { display: flex; margin: 0; }
  .ae-footer__accordion-panel { padding-bottom: 18px; }
  .ae-footer__accordion-panel[hidden] { display: none; }
  .ae-footer__links { gap: 3px; }
  .ae-footer__links a { width: 100%; min-height: 43px; display: flex; align-items: center; }
  .ae-footer__contact { display: block; padding-top: 34px; border-top: 0; }
  .ae-footer__contact-list { grid-template-columns: 1fr; }
  .ae-footer__whatsapp { width: 100%; margin-top: 22px; }
  .ae-footer__partners-inner { padding-block: 28px; }
  .ae-footer__partner-logo { width: 142px; flex-basis: 142px; height: 60px; }
  .ae-footer__bottom-inner {
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
    padding-top: 22px;
    padding-inline: 0;
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 340px) {
  .ae-footer__container { width: calc(100% - 28px); }
}

[dir="rtl"] .ae-footer__socials,
[dir="rtl"] .ae-footer__legal,
[dir="rtl"] .ae-footer__contact-list li { direction: rtl; }

[dir="rtl"] .ae-footer__links a:hover { transform: translateX(-2px); }

@media (prefers-reduced-motion: reduce) {
  .ae-footer *,
  .ae-footer *::before,
  .ae-footer *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .ae-footer__partner-track { animation: none; }
}
