/* =========================================================
   SAWB — DESTINATIONS
   A&K inspired image-led destination cards
========================================================= */

.ak-destinations-section {
  background: #f6f4ef;
  scroll-margin-block-start: var(--header-height, 0px);

  padding:
    64px
    0
    78px;

  overflow: hidden;
}


.ak-destinations-shell {
  width:
    min(
      1660px,
      calc(100% - 96px)
    );

  margin-inline: auto;
}


/* =========================================================
   HEADER
========================================================= */

.ak-destinations-header {
  display: flex;

  align-items: flex-end;

  justify-content: space-between;

  gap: 30px;

  margin-bottom: 22px;
}


.ak-destinations-heading {
  max-width: 850px;
}


.ak-eyebrow {
  display: inline-flex;

  align-items: center;

  gap: 11px;

  margin-bottom: 12px;

  color: #1c50be;

  font-size: 8.5px;

  font-weight: 700;

  letter-spacing: .16em;

  text-transform: uppercase;
}


.ak-eyebrow::before {
  content: "";

  width: 25px;
  height: 1px;

  background:
    rgba(28, 80, 190, .48);
}


[dir="rtl"]
.ak-eyebrow {
  letter-spacing: 0;

  text-transform: none;
}


/* =========================================================
   TITLE
========================================================= */

.ak-destinations-heading h2 {
  margin: 0;

  color: #111827;

  font-family:
    var(--sawb-display-font);

  font-size:
    clamp(
      2.7rem,
      4vw,
      4.4rem
    );

  line-height: .98;

  font-weight: 500;

  letter-spacing: -.045em;
}


[dir="rtl"]
.ak-destinations-heading h2 {
  font-family:
    var(--sawb-arabic-font, "Noto Sans Arabic", sans-serif);

  font-size:
    clamp(
      2.35rem,
      3.2vw,
      3.45rem
    );

  line-height: 1.2;

  letter-spacing: -.025em;
}


/* =========================================================
   VIEW ALL
========================================================= */

.ak-view-all {
  display: inline-flex;

  align-items: center;

  gap: 9px;

  margin-bottom: 5px;

  padding-bottom: 5px;

  color: #111827;

  border-bottom:
    1px solid rgba(17, 24, 39, .28);

  text-decoration: none;

  font-size: 10px;

  font-weight: 700;
}


/* =========================================================
   TABS
========================================================= */

.ak-destinations-tabs {
  display: flex;

  align-items: center;

  justify-content: center;

  gap:
    clamp(
      30px,
      5vw,
      70px
    );

  margin-bottom: 46px;

  border-bottom:
    1px solid rgba(17, 24, 39, .14);

  overflow-x: auto;

  scrollbar-width: none;
}


.ak-destinations-tabs::-webkit-scrollbar {
  display: none;
}

.ak-destinations-tablist {
  display: flex;
  align-items: center;
  gap: inherit;
}


.ak-destinations-tabs a {
  position: relative;

  display: inline-block;

  padding:
    13px
    0
    17px;

  color: #171b25;

  text-decoration: none;

  white-space: nowrap;

  font-size:
    clamp(
      .87rem,
      .95vw,
      1rem
    );

  font-weight: 500;
}


.ak-destinations-tabs a.is-active {
  color: #1c50be;
}


.ak-destinations-tabs a.is-active::after {
  content: "";

  position: absolute;

  inset-inline: 0;

  bottom: -1px;

  height: 3px;

  background: #1c50be;
}


/* =========================================================
   GRID
========================================================= */

.ak-destination-grid {
  --ak-card-gap: clamp(14px, 1.25vw, 20px);
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: var(--ak-card-gap);
}

.ak-destination-grid[hidden] {
  display: none;
}

.ak-package-poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ak-destination-card-link.ak-package-link {
  background: #e1e8f4;
  container: package-frame / size;
}

@container package-frame (min-aspect-ratio: 7 / 10) and (max-aspect-ratio: 41 / 50) {
  .ak-package-poster--4x5 {
    object-fit: cover;
  }
}

:is(.ak-destinations-tablist a, .ak-package-link):focus-visible {
  outline: 2px solid #1c50be;
  outline-offset: -2px;
}

@media (min-width: 761px) {
  .ak-package-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .ak-package-grid .ak-destination-card {
    flex: 0 0 calc((100% - 2 * var(--ak-card-gap)) / 3);
  }
}


/* =========================================================
   CARD
========================================================= */

.ak-destination-card {
  min-width: 0;
}


.ak-destination-card-link {
  position: relative;

  display: block;

  width: 100%;

  height:
    clamp(
      430px,
      38vw,
      620px
    );

  overflow: hidden;

  background: #d8d8d8;

  color: #fff;

  text-decoration: none;
}


/* =========================================================
   IMAGE
========================================================= */

.ak-destination-image {
  position: absolute;

  inset: 0;
}


.ak-destination-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  object-position: center center;

  transform: scale(1.001);

  filter:
    saturate(.94)
    contrast(1.02);

  transition:
    transform
      900ms
      cubic-bezier(.2,.8,.2,1);
}


.ak-destination-card:hover
.ak-destination-image img {
  transform: scale(1.04);
}


/* =========================================================
   OVERLAY
========================================================= */

.ak-destination-overlay {
  position: absolute;

  z-index: 1;

  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(4, 10, 18, .72) 0%,
      rgba(4, 10, 18, .40) 24%,
      rgba(4, 10, 18, .13) 52%,
      rgba(4, 10, 18, .02) 78%
    );

  pointer-events: none;
}


/* =========================================================
   CONTENT
========================================================= */

.ak-destination-content {
  position: absolute;

  z-index: 2;

  inset-inline:
    24px;

  bottom: 27px;

  text-align: center;

  color: #fff;
}


/* =========================================================
   CARD TITLE
========================================================= */

.ak-destination-content h3 {
  margin:
    0
    0
    12px;

  color: #fff;

  font-family:
    var(--sawb-display-font);

  font-size:
    clamp(
      2rem,
      2.6vw,
      3.15rem
    );

  line-height: 1;

  font-weight: 500;

  letter-spacing: -.04em;
}


[dir="rtl"]
.ak-destination-content h3 {
  font-family:
    var(--sawb-arabic-font, "Noto Sans Arabic", sans-serif);

  font-size:
    clamp(
      1.8rem,
      2.3vw,
      2.7rem
    );

  line-height: 1.2;

  letter-spacing: -.025em;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.ak-destination-content p {
  max-width: 92%;

  margin:
    0
    auto;

  color:
    rgba(255,255,255,.92);

  font-size:
    clamp(
      .83rem,
      .9vw,
      .96rem
    );

  line-height: 1.65;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

  .ak-destinations-section {
    padding:
      52px
      0
      64px;
  }


  .ak-destinations-shell {
    width:
      calc(100% - 42px);
  }


  .ak-destinations-header {
    margin-bottom: 17px;
  }


  .ak-destinations-tabs {
    gap: 30px;

    justify-content: flex-start;

    margin-bottom: 32px;
  }


  .ak-destination-grid {
    --ak-card-gap: 10px;
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }


  .ak-destination-card-link {
    height:
      clamp(
        330px,
        43vw,
        470px
      );
  }


  .ak-destination-content {
    inset-inline: 15px;

    bottom: 19px;
  }


  .ak-destination-content p {
    max-width: 100%;

    font-size: .76rem;
  }

}


/* =========================================================
   SMALL TABLET
========================================================= */

@media (max-width: 760px) {

  .ak-destinations-section {
    background: #f7f6f2;
  }


  .ak-destinations-shell {
    width:
      calc(100% - 28px);
  }


  .ak-destinations-header {
    display: block;
  }


  .ak-view-all {
    margin-top: 18px;
  }


  .ak-destinations-heading h2,
  [dir="rtl"]
  .ak-destinations-heading h2 {
    font-size:
      clamp(
        2.2rem,
        8vw,
        3rem
      );
  }


  .ak-destination-grid {
    display: flex;

    width:
      calc(100% + 28px);

    margin-inline:
      -14px;

    padding-inline:
      14px;

    padding-bottom: 8px;

    gap: 12px;

    overflow-x: auto;

    scroll-snap-type:
      x mandatory;

    scroll-padding-inline: 14px;

    scrollbar-width: none;
  }


  .ak-destination-grid::-webkit-scrollbar {
    display: none;
  }


  .ak-destination-card {
    flex:
      0
      0
      80vw;

    scroll-snap-align: start;
  }

  .ak-destination-card-link {
    height:
      clamp(
        360px,
        110vw,
        460px
      );
  }


  .ak-destination-content {
    inset-inline: 18px;

    bottom: 24px;
  }


  .ak-destination-content h3 {
    font-size: 2rem;
  }


  .ak-destination-content p {
    font-size: .84rem;
  }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  .ak-destination-image img {
    transition: none !important;

    transform: none !important;
  }

}
