/* 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: 63, 63, 63;
  --dark: 23, 23, 23;
  --blue-whale: 28, 44, 60;
  --camel: 195, 161, 88;
  --success: 25, 135, 84;
  --error: 243, 8, 32;
  --warn: 255, 151, 39;

  --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(--dark));
  font-family: "Switzer Variable";
  font-size: var(--paragraph-fz);
  font-weight: 300;
}

main {
  margin-top: 7rem;
}

.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);
}

/* 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,
button {
  font-size: var(--paragraph-fz);
}

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

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

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

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

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

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

sup {
  color: rgb(var(--error));
}

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

.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(--dark));
  color: rgb(var(--light));
  border: 1px solid rgb(var(--dark));
  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(--dark));
}

.btn-danger {
  background: rgb(var(--error));
  color: rgb(var(--light));
  border-color: rgb(var(--error));
}

.btn-danger:hover {
  background: transparent;
  color: rgb(var(--error));
}

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

/* INPUTs/SELECT/TEXTAREA */

input,
select,
textarea {
  width: 100%;
  color: rgb(var(--dark));
  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;
}

input[type="checkbox"] {
  width: fit-content;
}

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(--dark));
  background: rgb(var(--dark));
  color: rgb(var(--light));
  transition: background 0.2s ease-out;
}

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

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

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

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

.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(--error));
}

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(--dark));
  color: rgb(var(--light));
  border: 1px solid rgb(var(--dark));
  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(--dark));
  background: rgb(var(--light));
}

button:disabled {
  opacity: 0.5;
}

/* POSITIONS */

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.center-center {
  width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* 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 {
  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 a img {
  width: 6rem;
}

/* 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);
}

/* RESERVATIONS LIST */

hr {
  background: rgb(var(--light));
  height: 1px;
}

.log__old {
  opacity: 0.7;
  text-decoration: line-through;
}

.masonry {
  column-count: 3;
  column-gap: var(--size-l);
}

.pill,
.additionnal {
  padding: var(--size-m) var(--size-l);
  background: rgba(var(--light), 0.1);
  backdrop-filter: blur(1rem);
  border: 1px solid rgb(var(--light));
  border-radius: var(--size-xs);
}

.pill {
  text-wrap: nowrap;
  border-radius: 10rem;
}

.pill.success {
  background: rgba(var(--success), 0.1);
  color: rgb(var(--success));
  border-color: rgb(var(--success));
}

.pill.warn {
  background: rgba(var(--warn), 0.1);
  color: rgb(var(--warn));
  border-color: rgb(var(--warn));
}

.masonry .reservation__item {
  order: 0;
  --gray: 191, 191, 191;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  -moz-column-break-inside: avoid;
  padding: var(--size-xl);
  width: 100%;
  margin-bottom: var(--size-l);
  border-radius: var(--size-xs);
}

.reservation__item a {
  color: var(--light);
}

.reservation__item .align-center {
  align-self: auto;
}

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

.reservation__item .btn {
  border-color: rgb(var(--light));
  background: rgb(var(--light));
  color: rgb(var(--blue-whale));
}

.reservation__item .btn:hover {
  background: transparent;
  color: rgb(var(--light));
}

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

.masonry .reservation__item.is_cancelled {
  order: 9999;
  opacity: 0.6;
  filter: grayscale(1);
  text-decoration: line-through;
}

.masonry .reservation__item.is_cancelled:hover {
  outline: none;
  cursor: not-allowed;
}

.transport-prive {
  color: rgb(var(--light));
  background: rgb(var(--blue-whale));
}

.transport-prive:hover {
  outline: 3px solid rgb(var(--camel));
}

/* 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(--dark));
  border: 1px solid rgb(var(--dark));
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(var(--dark), 0.8);
  overflow: hidden;
}
.ac-item {
  color: rgb(var(--light));
  padding: 0.625rem 0.75rem;
  cursor: pointer;
  line-height: 1.2;
}
.ac-item:hover,
.ac-item[aria-selected="true"] {
  background: rgb(var(--light));
  color: rgb(var(--dark));
}

#stopAdd img {
  width: 1rem;
}

#stopAdd.link-hoverable {
  color: rgb(var(--dark));
  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;
}

/* 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);
  }

  .masonry {
    column-count: 2;
    column-gap: var(--size-m);
  }

  .reservation__item {
    margin-bottom: var(--size-m);
  }

  .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);
  }

  .masonry {
    column-count: 1;
  }

  .reservation__item {
    padding: var(--size-2xl);
    margin-bottom: var(--size-2xl);
  }
  .h-auto-mobile,
  #hero img {
    height: auto;
  }

  .align-start-mobile {
    align-self: start;
    align-items: start;
    align-content: start;
  }

  .w-full-mobile {
    width: 100%;
  }

  .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);
  } */
}
