/* SWITZER FONT LOAD */
@font-face {
  font-family: "Switzer Variable";
  src: url("../../assets/fonts/Switzer-Variable.woff2") format("woff2"),
    url("../../assets/fonts/Switzer-Variable.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

/* REDACTION FONT LOAD */
@font-face {
  font-family: "Redaction Italic";
  src: url("../../assets/fonts/Redaction-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
}

/* BASICS */

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
}

html {
  scroll-behavior: smooth;
}

:root {
  --light: 255, 255, 255;
  --light-gray: 245, 245, 245;
  --gray: 191, 191, 191;
  --dark: 23, 23, 23;
  --blue-whale: 28, 44, 60;
  --camel: 195, 161, 88;
  --success: 25, 135, 84;
  --error: 243, 8, 32;

  --h1-fz: 2.5rem;
  --h2-fz: 2rem;
  --h3-fz: 1.625rem;
  --h4-fz: 1.5rem;
  --h5-fz: 1.25rem;
  --h6-fz: 1rem;
  --paragraph-fz: 0.875rem;
  --small-fz: 0.75rem;

  --size-xxs: 0.125rem;
  --size-xs: 0.25rem;
  --size-s: 0.375rem;
  --size-m: 0.5rem;
  --size-l: 0.75rem;
  --size-xl: 1rem;
  --size-2xl: 1.5rem;
  --size-3xl: 2rem;
  --size-4xl: 3rem;

  --w-large: 90rem;
  --w-medium: 64rem;
  --w-small: 48rem;
}

body {
  width: 100vw;
  height: 100dvh;
  background: rgb(var(--light));
  color: rgb(var(--blue-whale));
  font-family: "Switzer Variable";
  font-size: var(--paragraph-fz);
  font-weight: 300;
}

.wrapper {
  width: 100%;
  max-width: var(--w-large);
  margin: 0 auto;
}

.half-wrapper {
  max-width: var(--w-small);
  margin: 0 auto;
}

.wrapper-padding {
  padding: var(--size-4xl) var(--size-2xl);
}

#whatsapp {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1200;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

#whatsapp:hover {
  transform: scale(1.075);
}

#whatsapp img {
  width: 4rem;
}

/* REVEAL */

.reveal {
  filter: blur(0.5rem);
  opacity: 0;
  transform: translateY(1rem);
  transition: filter 0.5s ease-out, opacity 0.5s ease-out,
    transform 0.5s ease-out;
  transition-property: filter, opacity, transform;
}

.reveal.revealed {
  filter: blur(0);
  opacity: 1;
  transform: translateY(0);
}

/* IMGS/VIDEOS */

img,
video {
  display: block;
  width: 100%;
  height: auto;
}

.cover {
  height: 100%;
  object-fit: cover;
}

video {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}

/* TEXT */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400;
}

h1 {
  text-transform: uppercase;
  text-wrap: balance;
  font-size: var(--h1-fz);
  line-height: 2.75rem;
}

.redaction {
  font-family: "Redaction Italic";
  color: rgb(var(--camel));
}

h2 {
  text-wrap: balance;
  font-size: var(--h2-fz);
}

h3 {
  font-size: var(--h3-fz);
}

h4 {
  font-size: var(--h4-fz);
}

h5 {
  font-size: var(--h5-fz);
}

h6 {
  font-size: var(--h6-fz);
}

p,
a {
  font-size: var(--paragraph-fz);
}

a {
  display: inline-block;
  color: rgb(var(--light));
  text-decoration: none;
}

small,
small > * {
  font-size: var(--small-fz);
}

.blue-variant {
  color: rgba(var(--blue-whale), 0.75);
}

.gray {
  color: rgb(var(--gray));
}

.camel,
sup {
  color: rgb(var(--camel));
}

.text-center {
  text-align: center;
}

.text-end {
  text-align: end;
}

.text-balance {
  text-wrap: balance;
}

label,
input,
textarea {
  font-size: var(--paragraph-fz);
}

.link-hoverable {
  opacity: 0.5;
  transition: opacity 0.2s ease-out;
}

.link-hoverable:hover,
.link-hoverable.active {
  opacity: 1;
  text-decoration: underline;
}

/* BTNs */

.btn,
.btn.invert:hover {
  width: fit-content;
  background: rgb(var(--blue-whale));
  color: rgb(var(--light));
  border: 1px solid rgb(var(--blue-whale));
  padding: 0.375rem var(--size-l);
  border-radius: var(--size-xxs);
  transition: background 0.2s ease-out, color 0.2s ease-out;
}

.btn:hover,
.btn.invert {
  background: rgb(var(--light));
  color: rgb(var(--blue-whale));
}

aside .btn,
.book__map {
  margin-top: 0.5rem;
}

section:nth-child(odd):not(#legalNotice, #privacy) .btn {
  border-color: rgb(var(--light));
}

/* INPUTs/SELECT/TEXTAREA */

input,
select,
textarea {
  width: 100%;
  color: rgb(var(--light));
  box-sizing: border-box;
  display: inline-block;
  background: none;
  border-bottom: 1px solid rgb(var(--gray));
  padding-block: var(--size-l);
  transition: color 0.2s ease-out, border-color 0.2s ease-out;
}

textarea {
  font-family: "Switzer Variable";
  resize: vertical;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

input[type="datetime-local"] {
  font-family: "Switzer Variable";
  padding-block: calc(var(--size-l) - 2px);
}

input[type="datetime-local"],
input::placeholder {
  color: rgb(var(--gray));
}

input[type="submit"] {
  width: 100%;
  border: 1px solid rgb(var(--light));
  background: rgb(var(--light));
  color: rgb(var(--blue-whale));
  transition: background 0.2s ease-out;
}

input[type="submit"]:hover {
  background: transparent;
  color: rgb(var(--light));
}

input:hover,
input:focus,
select:hover,
select:focus,
.quantity:hover input,
textarea:hover,
textarea:focus {
  color: rgb(var(--light));
  border-color: rgb(var(--light));
}

.radio {
  width: 50%;
  appearance: none;
  border: 1px solid rgb(var(--light));
  transition: background 0.2s ease-out, color 0.2s ease-out;
}

.radio:hover,
.radio:has(input:checked) {
  background: rgb(var(--light));
  color: rgb(var(--blue-whale));
}

.radio input {
  display: none;
}

.radio label {
  padding-block: 0.625rem;
}

.required {
  width: fit-content;
}

.required::after {
  content: "*";
  position: absolute;
  top: -0.125rem;
  right: -0.5rem;
  color: rgb(var(--camel));
}

ul {
  list-style: none;
}

li {
  display: inline-block;
}

#byHourDuration {
  display: none;
}

form:has(#byhour:checked) #byHourDuration {
  display: flex;
}

#adult,
#child {
  text-align: center;
  width: fit-content;
  appearance: textfield;
  -moz-appearance: textfield;
}

#adult::-webkit-inner-spin-button,
#adult::-webkit-outer-spin-button,
#child::-webkit-inner-spin-button,
#child::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

button {
  background: rgb(var(--light));
  color: rgb(var(--blue-whale));
  border: 1px solid rgb(var(--light));
  width: 2.5625rem;
  transition: background 0.2s ease-out, color 0.2s ease-out;
}

button:not(.btn) {
  aspect-ratio: 1/1;
}

button:not(:disabled):hover {
  color: rgb(var(--light));
  background: rgb(var(--blue-whale));
}

button:disabled {
  opacity: 0.5;
}

/* POSITIONS */

.relative,
.autocomplete {
  position: relative;
}

.absolute,
#popularDestinations article h5 {
  position: absolute;
}

/* GRID/FLEX */

.grid {
  display: grid;
}

.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex.column {
  flex-direction: column;
  align-self: start;
}

.cols-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: var(--size-xl);
}

.cols-12 {
  grid-template-columns: repeat(12, 1fr);
  gap: var(--size-2xl);
}

.align-center {
  align-items: center;
  align-self: center;
}

.align-end,
#hero aside {
  align-items: end;
  align-self: end;
}

.justify-center {
  justify-content: center;
  justify-self: center;
}

.justify-end {
  justify-content: end;
  justify-self: end;
}

.space-between {
  justify-content: space-between;
}

/* GAPS */

.gap-xxs {
  gap: var(--size-xxs);
}

.gap-xs {
  gap: var(--size-xs);
}

.gap-s {
  gap: var(--size-s);
}

.gap-m {
  gap: var(--size-m);
}

.gap-l {
  gap: var(--size-l);
}

.gap-xl {
  gap: var(--size-xl);
}

.gap-2xl {
  gap: var(--size-2xl);
}

.gap-3xl {
  gap: var(--size-3xl);
}

.gap-4xl {
  gap: var(--size-4xl);
}

/* HEADER */

header {
  z-index: 1500;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgb(var(--light));
  padding: var(--size-xl);
  transition: top 0.8s ease;
}

.scrolled header {
  top: -110%;
}

header .flex img {
  width: var(--size-l);
}

header a img {
  width: 6rem;
}

header h3 {
  color: rgb(var(--blue-whale));
}

/* SECTIONS */

section:nth-child(odd):not(#legalNotice, #privacy) {
  background: rgb(var(--blue-whale));
  color: rgb(var(--light));
}

/* CONTENT LAYOUT */

.w-full {
  width: 100%;
}

.w-half {
  width: calc(50% - var(--size-l));
}

.w-100 {
  width: 100vw;
}

.h-100 {
  height: 100dvh;
}

aside {
  grid-column: 1/5;
}

aside.sticky {
  position: sticky;
  top: 7rem;
  transition: top 0.3s ease-out;
}

.scrolled aside.sticky {
  top: 1rem;
}

.content {
  grid-column: 5/13;
}

article,
article img {
  overflow: hidden;
  border-radius: var(--size-xs);
}

/* LEGAL */

#legalNotice,
#privacy {
  margin-top: var(--size-4xl);
}

#faq .link-hoverable,
#legalNotice .link-hoverable,
#privacy .link-hoverable {
  color: rgb(var(--blue-whale));
  opacity: 1;
  text-decoration: underline;
}

#faq .link-hoverable:hover,
#legalNotice .link-hoverable:hover,
#privacy .link-hoverable:hover {
  opacity: 0.5;
  text-decoration: none;
}

/* HERO */

#hero {
  width: 100vw;
  overflow: hidden;
}

#hero .wrapper-padding {
  padding: 0;
  margin-left: 1.5rem;
}

#hero .content {
  top: 0;
  left: calc(34% + var(--size-l));
  width: calc(66% - var(--size-l));
}

#hero aside {
  margin-bottom: var(--size-2xl);
}

/* OUR FLEET */

#ourFleet article {
  width: calc(50% - var(--size-l));
}

/* WHY US */

#whyUs img {
  width: 3rem;
}

#whyUs .why-item {
  width: calc(25% - var(--size-l));
}

/* BOOK */

.book__map {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: var(--size-s);
}

.ac-list {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + var(--size-l));
  z-index: 9999;
  background: rgb(var(--light));
  border: 1px solid rgb(var(--light));
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(var(--dark), 0.8);
  overflow: hidden;
}
.ac-item {
  color: rgb(var(--blue-whale));
  padding: 0.625rem 0.75rem;
  cursor: pointer;
  line-height: 1.2;
}
.ac-item:hover,
.ac-item[aria-selected="true"] {
  background: rgb(var(--blue-whale));
  color: rgb(var(--light));
}

#stopAdd img {
  width: 1rem;
}

#stopAdd.link-hoverable {
  opacity: 1;
}

.stop button {
  top: 0;
  right: 0;
  transform: translateX(50%);
  background: rgb(var(--error));
  border: none;
  border-radius: 10rem;
  width: 1.5rem;
  padding: var(--size-s);
  transition: opacity 0.2s ease-out;
}

.stop button:hover {
  background: rgb(var(--error));
  opacity: 0.5;
}

/* FAQ */

#faq button {
  display: none;
  margin-top: 1rem;
}

.faq__item {
  border-bottom: 1px solid rgb(var(--blue-whale));
  cursor: pointer;
}

.faq__question {
  padding-block: 1rem;
}

.faq__answer-wrap {
  overflow: hidden;
  display: block;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.faq__answer {
  padding-bottom: 1rem;
}

.faq__icon {
  width: 1.125rem;
  aspect-ratio: 1/1;
  background: url(../img/plus-icon.svg) center center no-repeat;
}

.faq__opened .faq__icon {
  background: url(../img/minus-icon.svg) center center no-repeat;
}

/* POPULAR DESTINATIONS */

#popularDestinations article {
  width: calc(25% - var(--size-2xl));
  aspect-ratio: 3/4;
  overflow: hidden;
}

#popularDestinations article::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35%;
  background: linear-gradient(rgba(var(--dark), 0), rgba(var(--dark), 0.8));
}

#popularDestinations article h5 {
  left: 1rem;
  bottom: 1rem;
}

/* FOOTER */

footer {
  width: 100vw;
  height: 100dvh;
  padding: var(--size-2xl);
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background: rgba(var(--dark), 1);
  z-index: -1;
}

footer .link-hoverable {
  width: fit-content;
  opacity: 1;
  text-decoration: underline;
}

footer .link-hoverable:hover {
  opacity: 0.5;
  text-decoration: none;
}

footer h2,
footer small {
  font-weight: 300;
  color: rgb(var(--light));
}

footer h2 a {
  font-size: var(--h2-fz);
}

footer .btn.invert {
  border-color: rgb(var(--light));
}

/* ERROR MANAGER */

#formAlerts .alert {
  border: 1px solid transparent;
  padding: 12px 16px;
  line-height: 1.45;
}
#formAlerts .alert p,
#formAlerts .alert li {
  margin: 0.25rem 0;
}
#formAlerts .alert.error {
  background: rgba(var(--error), 0.2);
  border-color: rgb(var(--error));
}
#formAlerts .alert.success {
  background: rgba(var(--success), 0.2);
  border-color: rgb(var(--success));
}

#close {
  top: 0;
  right: 0;
  width: 2rem;
  height: 2rem;
  transform: translate(50%, -50%);
  background: none;
  border: none;
  transition: opacity 0.2s ease-out;
}

#close img {
  width: 2rem;
  background: rgb(var(--light));
  border-radius: 10rem;
}

#close:hover {
  opacity: 0.5;
}

@media screen AND (max-width: 1024px) {
  .wrapper {
    max-width: var(--w-medium);
  }

  .flex-tablet {
    display: flex;
  }

  .column-reverse-tablet {
    flex-direction: column-reverse;
  }

  .justify-start-tablet {
    justify-content: start;
  }

  .gap-2xl-tablet {
    gap: var(--size-2xl);
  }

  .h-auto-tablet {
    height: auto;
  }

  #hero .wrapper-padding {
    padding: 0 0 var(--size-4xl);
    margin: 0;
  }

  #hero .content {
    width: 100vw;
    position: inherit;
  }

  #hero aside {
    align-items: start;
    align-self: start;
    padding-inline: var(--size-2xl);
  }

  #hero img {
    height: 80dvh;
  }

  #popularDestinations article {
    width: calc(50% - var(--size-l));
  }

  #popularDestinations article {
    aspect-ratio: 1/1;
  }
}

@media screen AND (max-width: 768px) {
  :root {
    /* --h1-fz: 2.25rem;
    --h2-fz: 1.75rem;
    --h3-fz: 1.55rem;
    --h4-fz: 1.25rem;
    --h5-fz: 1rem;
    --h6-fz: 0.875rem;
    --paragraph-fz: 0.75rem;
    --small-fz: 0.625rem; */
    --h1-fz: 2rem;
    --h2-fz: 1.5rem;
    --h3-fz: 1.3rem;
    --h4-fz: 1rem;
    --h5-fz: 0.9rem;
    --h6-fz: 0.875rem;
    --paragraph-fz: 0.75rem;
    --small-fz: 0.625rem;

    --size-xxs: 0.0833rem;
    --size-xs: 0.1667rem;
    --size-s: 0.25rem;
    --size-m: 0.334rem;
    --size-l: 0.5rem;
    --size-xl: 0.667rem;
    --size-2xl: 1rem;
    --size-3xl: 1.5rem;
    --size-4xl: 2rem;
  }
  .wrapper {
    max-width: var(--w-small);
  }

  .h-auto-mobile,
  #hero img {
    height: auto;
  }

  .column-reverse-mobile {
    flex-direction: column-reverse;
  }

  .faq-hidden {
    display: none;
  }

  #legalNotice,
  #privacy {
    margin-top: 4.8rem;
  }

  header a img {
    width: 4.8rem;
  }

  .gap-xl-mobile {
    gap: var(--size-xl);
  }

  .gap-2xl-mobile {
    gap: var(--size-2xl);
  }

  .gap-3xl-mobile {
    gap: var(--size-3xl);
  }

  aside.sticky {
    position: static;
  }

  .flex-mobile {
    display: flex;
  }

  .column-mobile {
    flex-direction: column;
  }

  .space-between-mobile {
    justify-content: space-between;
  }

  .hidden-mobile {
    display: none;
  }

  .w-half {
    width: 100%;
  }

  .flex-wrap-mobile {
    flex-wrap: wrap;
  }

  #whyUs .why-item {
    width: calc(50% - var(--size-l));
  }

  .stop img {
    width: 0.75rem;
  }

  .book__map {
    aspect-ratio: 2/1;
  }

  #faq button {
    display: flex;
  }

  #whatsapp {
    bottom: 1rem;
    right: 1rem;
  }

  #whatsapp img {
    width: 3rem;
  }

  /* footer {
    padding: var(--size-2xl);
  } */
}
