.site-menu-toggle {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.site-menu-toggle span,
.site-menu-toggle::before,
.site-menu-toggle::after {
  content: "";
  width: 23px;
  height: 1px;
  display: block;
  background: currentColor;
}

.nav.has-site-menu {
  grid-template-columns: auto 1fr auto;
}

body.site-menu-open {
  overflow: hidden;
}

.site-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 118;
  border: 0;
  background: rgba(12, 12, 12, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.site-menu-panel {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 120;
  width: min(400px, 90vw);
  height: var(--site-menu-viewport-height, 100vh);
  min-height: 0;
  max-height: var(--site-menu-viewport-height, 100vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 34px 32px 34px;
  background: #fff;
  color: #202020;
  box-shadow: 24px 0 70px rgba(0, 0, 0, 0.14);
  transform: translateX(-104%);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

@supports (height: 100dvh) {
  .site-menu-panel {
    height: var(--site-menu-viewport-height, 100dvh);
    max-height: var(--site-menu-viewport-height, 100dvh);
  }
}

body.site-menu-open .site-menu-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.site-menu-open .site-menu-panel {
  transform: translateX(0);
}

.site-menu-view {
  min-height: calc(var(--site-menu-viewport-height, 100vh) - 68px);
  display: none;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

@supports (height: 100dvh) {
  .site-menu-view {
    min-height: calc(var(--site-menu-viewport-height, 100dvh) - 68px);
  }
}

.site-menu-view.is-active {
  display: grid;
}

.site-menu-close {
  justify-self: end;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2a2927;
  cursor: pointer;
  font-size: 25px;
  font-weight: 200;
  line-height: 1;
}

.site-menu-nav {
  display: grid;
  align-content: start;
  gap: 30px;
  padding-top: 86px;
}

.site-menu-nav a,
.site-menu-nav button,
.site-menu-destinations h2 {
  position: relative;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #282724;
  cursor: pointer;
  font-family: var(--samsaara-font-sans);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-align: left;
  text-transform: uppercase;
}

.site-menu-nav .site-menu-language {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 4px;
}

.site-menu-nav .site-menu-language img {
  width: 21px;
  height: 21px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.site-menu-nav .site-menu-language::after {
  content: none;
}

.site-menu-destinations h2 {
  grid-column: 1 / -1;
  margin: 0 0 24px;
  cursor: default;
  font-family: var(--samsaara-font-sans) !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
}

.site-menu-nav a::after,
.site-menu-nav button::after {
  content: "\2192";
  color: currentColor;
  font-size: 2em;
  font-weight: inherit;
  line-height: 1;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 180ms ease, transform 220ms ease;
}

.site-menu-nav a:hover::after,
.site-menu-nav a:focus-visible::after,
.site-menu-nav button:hover::after,
.site-menu-nav button:focus-visible::after {
  opacity: 1;
  transform: translateX(2px);
}

.site-menu-subheader {
  min-height: 38px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
}

.site-menu-back {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: #55514c;
  cursor: pointer;
  font-family: var(--samsaara-font-sans);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.site-menu-back::before {
  content: "\2039";
  margin-right: 12px;
  font-size: 30px;
  font-weight: 300;
  line-height: 0;
  vertical-align: -1px;
}

.site-menu-destinations {
  align-self: start;
  padding-top: 78px;
  display: grid;
  grid-template-columns: repeat(2, 170px);
  gap: 28px 18px;
}

.site-menu-country-card {
  width: 170px;
  display: grid;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #282724;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.site-menu-country-card img {
  width: 170px;
  height: 85px;
  display: block;
  object-fit: cover;
}

.site-menu-country-card span {
  display: grid;
  gap: 2px;
}

.site-menu-country-card strong {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.site-menu-country-card small {
  color: #6f6961;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
}

.site-menu-footer {
  align-self: end;
  display: flex;
  justify-content: center;
  padding-top: 32px;
}

.site-menu-contact {
  min-width: 190px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border: 1px solid #202020;
  background: #202020;
  color: #fff;
  cursor: pointer;
  font-family: var(--samsaara-font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 620px), (min-width: 621px) and (max-width: 1024px) {
  .site-menu-panel {
    width: min(340px, 90vw);
    padding: 28px 22px calc(28px + env(safe-area-inset-bottom, 0px));
  }

  .site-menu-view {
    min-height: calc(var(--site-menu-viewport-height, 100vh) - 56px - env(safe-area-inset-bottom, 0px));
  }

  .site-menu-nav {
    padding-top: 68px;
  }

  .site-menu-nav a,
  .site-menu-nav button,
  .site-menu-destinations h2 {
    font-size: 16px;
  }

  .site-menu-nav .site-menu-language {
    width: 22px;
    height: 22px;
  }

  .site-menu-nav .site-menu-language img {
    width: 19px;
    height: 19px;
  }

  .site-menu-destinations {
    padding-top: 62px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-menu-country-card {
    width: 100%;
  }

  .site-menu-country-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
  }

  .site-menu-footer {
    padding-top: 24px;
    padding-bottom: 56px;
    padding-bottom: clamp(36px, 8dvh, 72px);
  }
}

@media (max-width: 620px) and (max-height: 760px) {
  .site-menu-nav {
    gap: 24px;
    padding-top: 48px;
  }

  .site-menu-footer {
    padding-top: 20px;
    padding-bottom: 56px;
  }
}
