/* HEADER */

.header-component {
  display: flex;
  height: 6rem;
  align-items: center;

  /* box-shadow: 0 2px 10px var(--black-10); */
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--background-color);
}

.header-component .container {
  display: flex;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding: 0 1rem;
  justify-content: flex-start;
  align-items: center;
  position: relative;
}

/* LOGO */

.icon {
  display: block;
}

.icon img {
  height: 3rem;
  width: auto;
  display: block;
  margin-left: 1rem;
  margin-right: 1.5rem;
  filter: brightness(0) saturate(100%) invert(0%);
}

/* NAVIGATION */

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(2.75rem, 4vw, 4.5rem);
  flex: 1;
  min-width: 0;
  margin-left: 1.5rem;
}

.menu-buttons {
  display: flex;
  gap: clamp(0.75rem, 1.4vw, 1.5rem);
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.menu-buttons li a {
  color: var(--text-color);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.menu-buttons li a:hover {
  color: var(--contrast-text-color);
}

/* ACTIONS */

.actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
  margin-left: auto;
}

.actions-tablet {
  display: none;
  flex-wrap: nowrap;
}

:is(.actions, .actions-tablet) .button {
  flex-shrink: 0;
  white-space: nowrap;
}

/* LANGUAGE DROPDOWN */
:is(.actions, .actions-tablet) .lang-select {
  appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--text-color);
  background: transparent;
  color: var(--text-color);
  padding: 0.3rem 1.4rem 0.3rem 0.5rem;
  margin: 0;
  border-radius: 0.35rem;
  box-shadow: none;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  z-index: 30;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23333'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.4rem center;
  background-size: 0.55rem;
}

:is(.actions, .actions-tablet) .lang-select:hover {
  color: var(--contrast-text-color);
  border-color: var(--contrast-text-color);
}

:is(.actions, .actions-tablet) .lang-select:focus-visible {
  outline: 2px solid var(--contrast-text-color);
  outline-offset: 2px;
}

/* HAMBURGER */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 1.75rem;
  height: 1.25rem;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 100%;
  background-color: var(--text-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* RESPONSIVE */

@media (width > 78rem) and (width <= 90rem) {
  .nav-wrapper {
    gap: 1.25rem;
  }

  .menu-buttons {
    gap: 0.75rem;
  }

  .menu-buttons li a.text-s {
    font-size: calc(var(--font-size-base, 1.5rem) * 0.85);
  }
}

@media (width <= 78rem) {
  .hamburger {
    display: flex;
    margin-left: 0.75rem;
    order: 4;
  }

  .actions-tablet {
    display: flex;
    order: 3;
    margin-left: auto;
    margin-right: 0;
    gap: 0.75rem;
  }

  .actions-tablet .button {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
  }

  .nav-wrapper {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    left: auto;
    width: min(22rem, calc(100vw - 2rem));
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 1rem;
    background: linear-gradient(
      180deg,
      var(--background-color) 0%,
      var(--lightest-grey) 100%
    );
    border: 1px solid var(--black-10);
    border-radius: 1rem;
    box-shadow: 0 18px 40px var(--black-10);
    backdrop-filter: blur(6px);
    display: none;
    z-index: 20;
  }

  .nav-wrapper.active {
    display: flex;
  }

  .menu-buttons {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--black-10);
  }

  .menu-buttons li {
    width: 100%;
  }

  .menu-buttons li a {
    display: block;
    padding: 0.35rem 0.65rem;
    border-radius: 0.5rem;
    text-align: left;
  }

  .menu-buttons li a:hover {
    background-color: var(--black-10);
  }

  .nav-wrapper .actions {
    display: none;
  }
}

@media (width <= 48rem) {
  .actions-tablet {
    display: none;
  }

  .hamburger {
    margin-left: auto;
  }

  .nav-wrapper {
    width: min(20rem, calc(100vw - 2rem));
  }

  .nav-wrapper .actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    width: 100%;
  }

  .nav-wrapper .actions .button {
    min-width: 12rem;
    justify-content: center;
  }
}

.hero-section.secondary-container {
  padding-top: 4rem;
  padding-bottom: 6.25rem;
}

.hero-section .hero-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin: 0;
  text-align: left;
}

.hero-section .hero-container .text-3xl,
.hero-section .hero-container .text-m {
  text-align: left;
}

.hero-section .hero-container .text-m {
  margin-bottom: 1rem;
  max-width: 40ch;
  line-height: 1.25;
}

.hero-section .hero-container .button {
  align-self: flex-start;
}

.hero-section .hero-container br {
  display: none;
}

@media (width <= 834px) {
  .hero-section.secondary-container {
    padding-top: 2rem;
    padding-bottom: 3rem;
  }
}

@media (width <= 393px) {
  .hero-section.secondary-container {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

/* @media (width <= 48rem) {
  .hero-section.secondary-container {
    padding-top: 3.25rem;
  }

  .hero-section .hero-container .text-m {
    margin-bottom: 1.25rem;
  }
} */

/* HERO-CARRUSEL */

/* .hero-carrusel-section { */

/* max-width: 100%; */

/* padding: 0 0 2.5rem; */

/* overflow: visible; */

/* } */

/* .hero-carrusel-section .text-2xl { */

/* padding-inline: 1rem; */

/* margin-top: 3rem;
  margin-bottom: 3rem; */

/* } */

.hero-carrusel {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.hero-carrusel::-webkit-scrollbar {
  display: none;
}

.hero-carrusel:focus-visible {
  outline: 2px solid var(--border-color);
  outline-offset: 0.25rem;
}

.hero-carrusel__slide {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background-color: var(--background-color);
  border: 1px solid var(--background-color);
}

.hero-carrusel__slide img {
  width: 100%;
  height: min(50rem, 70vh) !important;
  object-fit: cover;
}

/* Tablet */
@media (width >= 768px) {
  .hero-carrusel__slide img {
    height: min(50rem, 65vh) !important;
  }
}

/* Desktop */
@media (width >= 1024px) {
  .hero-carrusel__slide img {
    height: min(65rem, 85vh) !important;
  }
}

.hero-section .hero-carrusel-markers {
  display: flex;
  justify-content: center;
  gap: 1rem;
  width: fit-content;
  margin: 0.5rem auto 0;
  padding: 0.2rem 0.35rem;
  border-radius: var(--border-radius-max);
  background-color: var(--background-color);
}

.hero-section .hero-carrusel-marker {
  display: block;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  border: 1px solid var(--black);
  background-color: var(--black);
  text-decoration: none;
  opacity: 0.55;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.hero-section .hero-carrusel-marker:hover,
.hero-section .hero-carrusel-marker:focus-visible {
  opacity: 0.8;
}

.hero-section .hero-carrusel-marker.is-active {
  opacity: 1;
  transform: scale(1.15);
}

.hero-section .hero-carrusel-marker:first-child {
  opacity: 1;
  transform: scale(1.15);
}

body:has(.hero-carrusel__slide:target)
  .hero-section
  .hero-carrusel-marker:first-child {
  opacity: 0.55;
  transform: none;
}

body:has(#hero-slide-1:target)
  .hero-section
  .hero-carrusel-marker[href="#hero-slide-1"],
body:has(#hero-slide-2:target)
  .hero-section
  .hero-carrusel-marker[href="#hero-slide-2"],
body:has(#hero-slide-3:target)
  .hero-section
  .hero-carrusel-marker[href="#hero-slide-3"],
body:has(#hero-slide-4:target)
  .hero-section
  .hero-carrusel-marker[href="#hero-slide-4"] {
  opacity: 1;
  transform: scale(1.15);
}

@media (width <= 48rem) {
  .hero-section .hero-carrusel-markers {
    margin-top: 1rem;
  }
}

/* THE BOAT SECTION */
.theBoat-section {
  background-color: var(--background-color);
  overflow-x: clip;
  padding-bottom: 5.33rem;
}

.theBoat-section .experience-hero-text,
.theBoat-section .the-boat-experience-section {
  display: flex;
  flex-direction: column;
  padding-bottom: 2.5rem;
  gap: 1.5rem;
}

.theBoat-section .experience-hero-text .text-2xl {
  max-width: 18ch;
}

.theBoat-section .experience-hero-text .text-m,
.theBoat-section .the-boat-experience-section > .text-m {
  padding-top: 2.5rem;
  max-width: 46ch;
  line-height: 1.25;
}

/* the-boat-carousel */

.theBoat-section .the-boat-images-row {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.theBoat-section .the-boat-carousel {
  width: 100%;
  margin: 0;
  padding: 0;
}

.theBoat-section .the-boat-carousel li,
.theBoat-section .the-boat-carousel li:nth-child(even) {
  background-color: var(--white);
  border-color: var(--white);
}

.theBoat-section .the-boat-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  border-color: var(--white);
}

.theBoat-section .the-boat-image {
  display: block;
  width: 100%;
  height: min(44rem, 70vh);
  object-fit: contain;
  background-color: var(--white);
}

@media (width <= 834px) {
  .theBoat-section {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (width <= 768px) {
  .theBoat-section .the-boat-image {
    height: min(28rem, 60vh);
  }
}

@media (width <= 393px) {
  .theBoat-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.theBoat-section .the-boat-experience-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}

.theBoat-section .the-boat-experience-info-item,
.theBoat-section .the-boat-experience-info-m2,
.theBoat-section .the-boat-experience-amenities-item {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.25rem 0;
}

.theBoat-section .the-boat-experience-amenities-item--full {
  grid-column: 1 / -1;
  padding-bottom: 0.5rem;
}

.theBoat-section .the-boat-experience-info-item .text-xs,
.theBoat-section .the-boat-experience-info-m2 .text-xs,
.theBoat-section .the-boat-experience-amenities-item .text-xs {
  line-height: 1.5;
}

.theBoat-section .info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.theBoat-section .amenities-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2rem;
}

/* ICON ITEMS */
.theBoat-section .info-icon {
  position: relative;
  padding-left: 1.7rem;
  min-height: 1.2rem;
}

.theBoat-section .info-icon::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18rem;
  width: 0.95rem;
  height: 0.95rem;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.95;
  filter: brightness(0);
}

/* CAPACITY */
.theBoat-section .info-icon--guests::before {
  background-image: url("../assets/icons/guests.svg");
}

/* SPACES & LAYOUT */
.theBoat-section .info-icon--sun::before {
  background-image: url("../assets/icons/rooftop.svg");
}

.theBoat-section .info-icon--lounge::before {
  background-image: url("../assets/icons/outdoor.svg");
}

.theBoat-section .info-icon--indoor::before {
  background-image: url("../assets/icons/indoor.svg");
}

/* AMENITIES */
.theBoat-section .info-icon--sound::before {
  background-image: url("../assets/icons/hi-fi.svg");
}

.theBoat-section .info-icon--dj::before {
  background-image: url("../assets/icons/dj.svg");
}

.theBoat-section .info-icon--kitchen::before {
  background-image: url("../assets/icons/kitchen.svg");
}

.theBoat-section .info-icon--bbq::before {
  background-image: url("../assets/icons/BBQ.svg");
}

.theBoat-section .info-icon--bathroom::before {
  background-image: url("../assets/icons/bathroom.svg");
}

.theBoat-section .info-icon--furniture::before {
  background-image: url("../assets/icons/forniture.svg");
}

.theBoat-section .info-icon--wifi::before {
  background-image: url("../assets/icons/wi-fi.svg");
}

.theBoat-section .info-icon--check::before {
  background-image: url("../assets/icons/final-cleaning.svg");
}

@media (width <= 1024px) {
  .theBoat-section .the-boat-experience-info-grid,
  .theBoat-section .amenities-columns {
    grid-template-columns: 1fr;
  }
}
