/* Agadir Authentic Tours — shared public footer */
.ae-footer {
  --ae-footer-bg: #355307;
  --ae-footer-bg-deep: #263D04;
  --ae-footer-text: #FFFDF9;
  --ae-footer-muted: #E1E9C9;
  --ae-footer-line: rgba(255, 255, 255, 0.16);
  --ae-footer-accent: #D96F0B;
  --ae-footer-accent-strong: #F08A17;
  position: relative;
  margin-top: clamp(56px, 8vw, 104px);
  overflow: hidden;
  color: var(--ae-footer-text);
  background: var(--ae-footer-bg);
}

.ae-footer::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #D96F0B 0 52%, #F08A17 52%);
}

.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(--ae-footer-accent-strong);
  outline-offset: 4px;
}

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

.ae-footer__cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  padding: clamp(42px, 6vw, 72px) 0;
  border-bottom: 1px solid var(--ae-footer-line);
}

.ae-footer__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--ae-footer-accent-strong);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ae-footer__eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.ae-footer__cta h2 {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.ae-footer__cta-copy {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--ae-footer-muted);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.7;
}

.ae-footer__cta-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  border: 1px solid var(--ae-footer-accent);
  border-radius: 8px;
  color: #111111 !important;
  background: var(--ae-footer-accent-strong);
  font-weight: 800;
  white-space: nowrap;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.ae-footer__cta-button:hover {
  border-color: #fff;
  background: #fff;
  transform: translateY(-2px);
}

.ae-footer__main {
  display: grid;
  grid-template-columns: minmax(250px, 1.5fr) repeat(3, minmax(128px, 0.78fr)) minmax(220px, 1.16fr);
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(48px, 7vw, 80px) 0;
}

.ae-footer__brand-logo {
  display: block;
  width: min(210px, 100%);
  height: auto;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 20px;
}

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

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

.ae-footer__socials a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ae-footer-line);
  border-radius: 50%;
  color: #E1E9C9;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.ae-footer__socials a:hover {
  color: #111111;
  border-color: var(--ae-footer-accent-strong);
  background: var(--ae-footer-accent-strong);
}

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

.ae-footer__accordion-trigger {
  width: 100%;
  display: none;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  font-family: inherit;
  text-align: left;
  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(--ae-footer-accent-strong);
  transition: transform 180ms ease;
}

.ae-footer__accordion-icon::after {
  transform: rotate(90deg);
}

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

.ae-footer__links,
.ae-footer__contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ae-footer__links {
  display: grid;
  gap: 13px;
}

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

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

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

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

.ae-footer__contact-list .site-icon {
  margin-top: 4px;
  color: var(--ae-footer-accent-strong) !important;
}

.ae-footer__contact-list a {
  overflow-wrap: anywhere;
}

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

.ae-footer__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin-top: 22px;
  padding: 0 15px;
  border: 1px solid rgba(240, 138, 23, 0.34);
  border-radius: 7px;
  color: #FFFDF9 !important;
  font-size: 0.85rem;
  font-weight: 750;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.ae-footer__whatsapp:hover {
  color: #111111 !important;
  border-color: var(--ae-footer-accent-strong);
  background: var(--ae-footer-accent-strong);
}

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

.ae-footer__partners-inner {
  min-height: 190px;
  display: flex;
  align-items: stretch;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding-top: 32px;
  padding-bottom: 34px;
}

.ae-footer__partners-copy h2 {
  margin: 2px 0 6px;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.2;
}

.ae-footer__partners-copy > p:last-child {
  max-width: 62ch;
  margin: 0;
  color: #E1E9C9;
  font-size: .82rem;
}

.ae-footer__partners-kicker {
  margin: 0;
  color: var(--ae-footer-accent-strong);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.ae-footer__partner-logos {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.ae-footer__partner-logo {
  width: 100%;
  height: 78px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.ae-footer__partner-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

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

.ae-footer__partner-logo--getyourguide {
  padding-top: 9px;
  padding-bottom: 9px;
}

.ae-footer__partner-logo--getyourguide img {
  width: auto;
  max-width: 100%;
  height: 54px;
}

.ae-footer__partner-logo img[alt="Tripadvisor"] {
  max-width: 92%;
}

.ae-footer__partner-logo img[alt="Booking.com"] {
  max-width: 88%;
}

.ae-footer__partner-logo img[alt="Airbnb"] {
  max-width: 82%;
}

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

.ae-footer__bottom-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #D6DFB9;
  font-size: 0.8rem;
}

.ae-footer__bottom p {
  margin: 0;
}

.ae-footer__agency-credit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
  color: #E1E9C9 !important;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.ae-footer__agency-credit:hover {
  color: #fff !important;
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.05);
}

.ae-footer__agency-credit span {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ae-footer__agency-credit img {
  display: block;
  width: 70px;
  height: 25px;
  object-fit: contain;
}

@media (max-width: 1050px) {
  .ae-footer__main {
    grid-template-columns: 1.3fr repeat(3, 0.8fr);
  }

  .ae-footer__contact {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 160px 1fr auto;
    gap: 24px;
    align-items: start;
    padding-top: 30px;
    border-top: 1px solid var(--ae-footer-line);
  }

  .ae-footer__contact .ae-footer__heading {
    margin: 4px 0 0;
  }

  .ae-footer__contact-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ae-footer__whatsapp {
    margin-top: 0;
  }
}

@media (max-width: 1100px) {
  .ae-footer__partner-logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .ae-footer__partners-inner {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .ae-footer__partner-logos {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ae-footer__partner-logo {
    width: 100%;
    height: 68px;
  }

  .ae-footer__partner-logo--getyourguide img {
    height: 46px;
  }
}

@media (max-width: 760px) {
  .ae-footer {
    margin-top: 56px;
  }

  .ae-footer::before {
    width: 3px;
  }

  .ae-footer__container {
    width: min(100% - 34px, 620px);
  }

  .ae-footer__cta {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 44px 0;
  }

  .ae-footer__cta h2 {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .ae-footer__cta-button {
    width: 100%;
  }

  .ae-footer__main {
    display: block;
    padding: 46px 0 40px;
  }

  .ae-footer__brand {
    padding-bottom: 34px;
  }

  .ae-footer__brand-logo {
    width: 180px;
    height: auto;
    margin-top: 0;
  }

  .ae-footer__brand-copy {
    max-width: 36ch;
  }

  .ae-footer__accordion {
    border-top: 1px solid var(--ae-footer-line);
  }

  .ae-footer__accordion:last-of-type {
    border-bottom: 1px solid var(--ae-footer-line);
  }

  .ae-footer__accordion .ae-footer__heading {
    display: none;
  }

  .ae-footer__accordion-trigger {
    display: flex;
    margin: 0;
  }

  .ae-footer__accordion-panel {
    padding: 0 0 22px;
  }

  .ae-footer__accordion-panel[hidden] {
    display: none;
  }

  .ae-footer__links {
    gap: 5px;
  }

  .ae-footer__links a {
    width: 100%;
    min-height: 43px;
    display: flex;
    align-items: center;
  }

  .ae-footer__contact {
    display: block;
    padding-top: 38px;
    border-top: 0;
  }

  .ae-footer__contact .ae-footer__heading {
    margin-bottom: 22px;
  }

  .ae-footer__contact-list {
    grid-template-columns: 1fr;
  }

  .ae-footer__whatsapp {
    width: 100%;
    justify-content: center;
    margin-top: 24px;
  }

  .ae-footer__bottom-inner {
    min-height: 106px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 9px;
    padding: 22px 0;
  }

  .product-page .ae-footer__bottom-inner {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }
}

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

  .ae-footer__brand-logo {
    width: 160px;
    height: auto;
  }

  .ae-footer__cta h2 {
    font-size: 1.92rem;
  }
}

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

/* Brand finish */
.ae-footer {
  font-family: var(--font-ui, 'Montserrat', sans-serif);
}

.ae-footer__eyebrow {
  color: #FFD4A9;
  font-family: var(--font-handwritten, cursive);
  font-size: .86rem;
}

.ae-footer__cta h2 {
  font-family: var(--font-heading, 'Baloo 2', sans-serif);
  letter-spacing: -.025em;
}

.ae-footer__cta-button,
.ae-footer__whatsapp {
  color: #fff !important;
  border-color: #D96F0B;
  border-radius: 999px;
  background: #D96F0B;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ae-footer__cta-button:hover,
.ae-footer__whatsapp:hover {
  color: #fff !important;
  border-color: #B95706;
  background: #B95706;
}

.ae-footer__brand-logo {
  width: min(156px, 100%);
  max-height: 178px;
  padding: 10px;
  border-radius: 1.25rem 1.25rem .65rem 1.25rem;
  background: #fff;
  box-shadow: 0 14px 32px rgba(17, 29, 2, .24);
}

.ae-footer__socials a:hover {
  color: #fff;
  border-color: #D96F0B;
  background: #D96F0B;
}

.ae-footer__heading,
.ae-footer__accordion-trigger {
  letter-spacing: .14em;
}

/* ============================================================
   HOME 2026 — premium footer refinements
   ============================================================ */
.ae-footer__cta h2 {
  font-family: var(--hm-font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

.ae-footer__eyebrow {
  letter-spacing: 0.16em;
}

.ae-footer__cta-button {
  min-height: 56px;
  padding-inline: 28px;
  border-radius: 999px;
  font-weight: 700;
}

.ae-footer {
  background: linear-gradient(180deg, #2F4606 0%, #263D04 55%, #1F3203 100%);
}

.ae-footer::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 6px;
  background: linear-gradient(90deg, #D96F0B 0%, #F08A17 34%, #7F9618 68%, #D96F0B 100%);
}

/* ============================================================
   FOOTER 2026 — legal row + premium bottom bar
   ============================================================ */
.ae-footer__legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.ae-footer__legal a {
  color: #D6DFB9;
  font-size: 0.78rem;
  transition: color 160ms ease;
}

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

@media (max-width: 900px) {
  .ae-footer__bottom-inner {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 14px 24px;
    padding-block: 18px;
  }

  .ae-footer__bottom-inner > p {
    width: 100%;
  }
}
