/* Festive */
.page-tabs {
  /* display: none; */
  position: sticky;
  position: -webkit-sticky;
  top: calc(var(--header-height));
  z-index: 100;
  background: var(--accent-200);

  .block-content {
    padding-block: 0;
  }
}

/* Mobile */
.page-tabs .block-content {
  margin-bottom: 0;
}

.page-tabs {

  /* margin: 1.5rem 1rem;
	padding: 2rem; */
  .bg,
  .line {
    display: none;
  }

  [class|='icon'] {
    font-size: 1rem;
  }
}

.page-tabs-content {
  display: flex;
  flex-wrap: nowrap;
  scroll-snap-type: x mandatory;
  padding: 0 0.5rem;
  overflow: auto;
  /* gap: 1rem; */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-inline: calc(var(--edge) * -1);

  &::-webkit-scrollbar {
    /* height: 1px; */
    display: none;
  }

  a {
    font-weight: 500;

    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
    border-bottom: 1px solid transparent;
    padding: 1rem 1rem;
    scroll-snap-align: start;
    white-space: nowrap;

    .icon-light-arrow-right {
      font-size: 1rem;
    }

    &.active {
      border-bottom: 2px solid var(--foreground);
    }
  }
}

.pseudo-tabs.center,
.slider-tab.center,
.slider-tab-2.center {
  justify-content: center;
}

.slider-tab,
.slider-tab-2,
.pseudo-tabs {
  font-size: var(--text-lg);
  display: flex;
  margin: 2rem auto;
  gap: 2rem;
  flex-wrap: wrap;
}

.slider-tab a,
.slider-tab-2,
.pseudo-tabs a {
  cursor: pointer;
  position: relative;
  border-bottom: 2px solid;
  color: var(--accent);
  padding-inline: 0.5rem;
  font-weight: 500;
}

.slider-tab a.active,
.slider-tab-2 a.active,
.pseudo-tabs a.active {
  color: var(--primary);
}

.slider-tab-content,
.slider-tab-content-2 {
  display: none;
}

.slider-tab-content.active,
.slider-tab-content-2.active {
  display: block;
}

.slider-tab.bordered {
  gap: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: auto;

  a {
    padding-inline: 1rem;
    border-top: 1px solid transparent;
    border-right: 1px solid transparent;
    border-bottom: 1px solid;
  }

  .active {
    border-top-color: currentColor;
    border-bottom: 0;
    border-right-color: currentColor;
    /* border-color: currentColor;
		border-bottom: 0; */
  }

  a:has(+ .active) {
    border-right-color: currentColor;
  }

  /* a  */
}

.pseudo-tabs:has(a[data-url].active)~div .slider-container {
  display: none;
}

.pseudo-tabs:has(a[data-url='rooms-suites'].active)~div .slider-container[data-url='rooms-suites'] {
  display: block;
}

.pseudo-tabs:has(a[data-url='dining'].active)~div .slider-container[data-url='dining'] {
  display: block;
}

.pseudo-tabs:has(a[data-url='entertainment'].active)~div .slider-container[data-url='entertainment'] {
  display: block;
}

.pseudo-tabs:has(a[data-url='gaming'].active)~div .slider-container[data-url='gaming'] {
  display: block;
}

.pseudo-tabs:has(a[data-url='festive'].active)~div .slider-container[data-url='festive'] {
  display: block;
}

/* Nav Mobile Styling */
.nav-tabs__container {
  position: sticky;
  top: var(--header-height);
  z-index: 100;

  &.promotion-tabs__nav {
    position: static;
  }
}

.nav-tabs {
  position: sticky;
  top: var(--header-height);
  z-index: 100;

  left: calc(50% - 50svw);
  padding: 0 !important;

  margin-block: 0 2rem !important;

  max-width: 100%;


  grid-template-columns: minmax(max-content, 1fr);


  width: 100svw;




  &.nav-tabs__list {
    display: none;
  }

  &.nav-tabs__list.nav-tabs__list--open {
    display: grid;
    /* justify-items: flex-start; */
    justify-items: center;
    background: var(--accent);
  }

  li {
    position: relative;
    list-style: none;
    margin: 0 !important;
    padding: 1rem 0;
    overflow: hidden;

    &:has(.nav-tabs__link.active) {
      border-bottom: none;

      @media (min-width: 1024px) {
        border-bottom: 2px solid var(--foreground);
      }
    }

    a,
    button {
      text-decoration: none;
      /* position: relative; */
      padding: 1.25rem 1rem;
      background-color: transparent;
      outline: none;
      border: 0;
      font-family: var(--text-sans);
      cursor: pointer;
      font-size: var(--text-base);
      color: var(--foreground);

      &:hover {
        opacity: 0.75;
        color: var(--primary);

        /* &:before {
          width: 100%;
        } */
      }

      &.active {
        opacity: 1;
        font-weight: 500;
        color: var(--foreground);

        /* &:before {
          width: 100%;
        } */
      }

      /* &:before,
      &:after {
        content: "";
        position: absolute;
        display: block;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--primary);
        z-index: 1;
        transition: width 0.3s var(--ease);
      }

      &:after {
        width: 100%;
        background-color: var(--foreground);
        z-index: 0;
        opacity: 0;
      } */
    }

    button {
      padding: 0 1rem;
    }

    &:last-child {
      a {
        border: none;
      }
    }
  }



  @media (min-width: 1024px) {
    display: flex !important;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    align-items: center;

    max-width: 100%;
    margin-inline: 0;

    /* &.nav-tabs__list {
    display: none;
  } */
  }
}



/* nav tabs sticky mobile */
.nav-tabs__mobile-toggle {
  padding: 1.25rem 1rem;
  border: none;

  background-color: var(--accent-200);

  color: var(--foreground);
  font-family: var(--text-sans);
  font-weight: bold;
  font-size: var(--text-xl);

  width: 100%;
  text-align: left;

  display: block;

  &:hover {
    cursor: pointer;
  }

  .nav-tabs__mobile-toggle-text-wrapper {
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
    justify-content: center;
  }

  &.nav-tabs__mobile-toggle--open {
    /* border-radius: 0.563rem 0.563rem 0 0; */

  }

  @media (min-width: 1024px) {
    display: none;
  }
}

@media only screen and (min-width: 768px) {
  .page-tabs {
    /* box-shadow: 0px 2px 10px -1px rgba(0, 0, 0, 0.35); */

    display: block;

    .block-content {
      margin-bottom: 0;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    span {
      display: block;
    }

    [class|='icon'] {
      display: none;
    }
  }

  .page-tabs-content {
    display: flex;
    justify-content: center;
    width: 100%;
    flex-direction: row;
    gap: 1rem;

    a {
      font-size: var(--text-base);
      position: relative;
      text-align: center;
      margin-bottom: 0;
      font-weight: 300;
      /* font-weight: 600; */
      /* color: #fff; */
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      border-bottom: 0;
      border-bottom: 2px solid transparent;
    }

    .line {
      position: absolute;
      right: 0;
      top: 0;
      height: 100%;
      width: 1px;
      display: block;
      background-color: var(--accent);
    }

    .bg {
      position: absolute;
      bottom: 0;
      left: 0;
      display: block;
      width: 100%;
      transition: all 0.3s ease-in-out;
      opacity: 0;
    }

    a::after {
      content: '';
    }

    a:hover .bg {
      opacity: 1;
    }

    a.active {
      .bg {
        opacity: 1;
      }
    }
  }
}