:root {
  --text: #ffffff;
  --accent: #f26e59;
  --bg-page: #000000;
  --dropdown-item-bg: #20346f;
  --line-strong: #ffffff;
  --line-soft: rgba(255, 255, 255, 0.7);
  --line-subtle: rgba(255, 255, 255, 0.45);
  --divider: rgba(255, 255, 255, 0.4);
  --overlay: rgba(0, 0, 0, 0.2);
  --mobile-menu-overlay: rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
}

body {
  font-family: "Albert Sans", sans-serif;
  color: var(--text);
  background: var(--bg-page);
}

a {
  color: inherit;
  text-decoration: none;
}

.lp {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  isolation: isolate;
  overflow: hidden;
}

.lp__bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.lp__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.35s ease;
  will-change: opacity;
}

.lp__bg--main {
  background-image: url("../assets/main.jpg");
}

.lp__bg--karpacz {
  background-image: url("../assets/karpacz.jpg");
}

.lp__bg--mielno {
  background-image: url("../assets/mielno.jpg");
}

.lp__bg.is-active {
  opacity: 1;
}

.lp__overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  z-index: 1;
}

.lp__header {
  position: relative;
  z-index: 20;
  --header-pad-x: 24px;
  padding: 25px var(--header-pad-x) 0;
}

.header__top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: start;
  height: 55px;
}

.header__left,
.header__right {
  display: flex;
  align-items: center;
}

.header__right {
  justify-content: flex-end;
  gap: 24px;
}

.location-dropdown {
  position: relative;
  z-index: 40;
}

.location-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: clamp(160px, 16vw, 199px);
  min-height: 40px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: transparent;
  color: var(--text);
  font-family: "Albert Sans", sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.72px;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.location-dropdown__trigger:focus-visible {
  background-color: var(--accent);
  border-color: var(--accent);
  outline: none;
}

.location-dropdown__trigger img {
  width: 8px;
  height: 8px;
}

.location-dropdown__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 60;
  width: 100%;
  min-width: 165px;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.location-dropdown.is-open .location-dropdown__menu {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.hotel-type-dropdown__item {
  position: relative;
  min-height: 38px;
  margin-top: 5px;
  border: 1px solid transparent;
  border-radius: 20px;
  background: var(--dropdown-item-bg);
  backdrop-filter: blur(6px);
  transition: border-color 0.2s ease;
}

.hotel-type-dropdown__item:hover {
  border-color: var(--line-soft);
}

.hotel-type-dropdown__link {
  display: block;
  min-height: 38px;
  padding: 12px 20px;
  color: var(--line-strong);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.72px;
  text-align: left;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
}

.hotel-type-dropdown__link:hover,
.hotel-type-dropdown__link:focus-visible {
  background: transparent;
  outline: none;
}

.header__center {
  display: flex;
  justify-content: center;
  transform: translateY(-25px);
}

.brand img {
  width: clamp(220px, 21vw, 340px);
  height: auto;
}

.meta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(10px, 0.76vw, 12px);
  font-weight: 400;
  letter-spacing: 0.32px;
  text-transform: uppercase;
  line-height: 1;
  transition: color 0.2s ease;
}

.meta-link img {
  width: 15px;
  height: 15px;
  position: relative;
  transform: translateY(-2px);
}

.meta-link:focus-visible {
  outline: none;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  width: 52px;
  height: 48px;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--line-strong);
}

.mobile-menu-toggle span + span {
  margin-top: 5px;
}

.mobile-menu-toggle span:nth-child(2) {
  width: 21px;
}

.mobile-menu-toggle span:nth-child(3) {
  width: 14px;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 89;
  background: var(--mobile-menu-overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-navigation {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  width: min(92vw, 400px);
  background: var(--dropdown-item-bg);
  transform: translate3d(100%, 0, 0);
  transition: transform 0.35s ease;
  display: flex;
  flex-direction: column;
}

.mobile-navigation__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.mobile-navigation__close span {
  position: absolute;
  left: 6px;
  top: 17px;
  width: 24px;
  height: 2px;
  background: var(--line-strong);
}

.mobile-navigation__close span:first-child {
  transform: rotate(45deg);
}

.mobile-navigation__close span:last-child {
  transform: rotate(-45deg);
}

.mobile-navigation__inner {
  margin-top: 90px;
  padding: 0 24px;
  overflow-y: auto;
}

.mobile-navigation__link {
  display: block;
  padding: 10px 0;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: none;
  color: var(--line-strong);
}

.mobile-navigation__bottom {
  margin-top: auto;
  padding: 16px 20px 20px;
}

.location-dropdown--mobile .location-dropdown__trigger {
  width: auto;
  min-width: 0;
  padding: 0 16px;
}

.location-dropdown--mobile .location-dropdown__menu {
  width: max-content;
  min-width: 0;
  top: auto;
  bottom: calc(100% + 8px);
}

.location-dropdown--mobile .hotel-type-dropdown__item {
  width: max-content;
  min-width: 0;
  border-color: var(--line-soft);
  margin-top: 0;
  margin-bottom: 5px;
}

.mobile-navigation__socials {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.mobile-navigation__socials .meta-link {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.32px;
  text-transform: uppercase;
}

.header__bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  min-height: 52px;
  position: relative;
  --nav-line-offset: -6px;
  --nav-hover-line-shift: 7px;
}

.header__bottom::after {
  content: "";
  position: absolute;
  left: calc(-1 * var(--header-pad-x));
  right: calc(-1 * var(--header-pad-x));
  bottom: var(--nav-line-offset);
  border-bottom: 1px solid var(--line-subtle);
  pointer-events: none;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 42px;
  min-height: 30px;
  padding-left: 16px;
}

.top-nav a {
  position: relative;
  display: inline-block;
  font-size: clamp(14px, 16px, 20px);
  font-weight: 400;
  letter-spacing: 0.08px;
  text-transform: uppercase;
  line-height: 1;
  transition: none;
}

.top-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--nav-line-offset) - var(--nav-hover-line-shift));
  height: 2px;
  background: var(--line-strong);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
  pointer-events: none;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--line-strong);
  outline: none;
}

.top-nav a:hover::after,
.top-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header__spacer {
  width: 1px;
  height: 1px;
}

.lp__split {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
}

.split-divider {
  position: absolute;
  top: 6px;
  bottom: -6px;
  left: 50%;
  width: 2px;
  transform: translateX(-1px);
  background: var(--divider);
  pointer-events: none;
}

.split-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  padding: 24px 24px 72px;
}

.split-panel h1 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: clamp(52px, 5.25vw, 75px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(314px, 90%);
  min-height: 56px;
  padding: 0 22px;
  border: 1px solid var(--line-soft);
  border-radius: 55px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.8px;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.cta-btn img {
  width: 10px;
  height: 10px;
  transform: rotate(-90deg);
}

.cta-btn:hover,
.cta-btn:focus-visible {
  background-color: var(--accent);
  border-color: var(--accent);
  outline: none;
}

@media (max-width: 1024px) {
  .lp__bg {
    background-position: 28% center;
  }

  .lp__header {
    --header-pad-x: 5px;
    padding: 10px var(--header-pad-x) 0;
  }

  .header__top,
  .header__bottom {
    grid-template-columns: 1fr;
  }

  .header__left,
  .header__right {
    display: none;
  }

  .header__center {
    justify-content: flex-start;
    transform: translateY(-10px);
  }

  .header__bottom {
    display: none;
  }

  .header__bottom::after {
    display: none;
  }

  .lp__header::after {
    content: "";
    position: absolute;
    left: calc(-1 * var(--header-pad-x));
    right: calc(-1 * var(--header-pad-x));
    bottom: -10px;
    border-bottom: 1px solid var(--line-subtle);
    pointer-events: none;
  }

  .mobile-menu-toggle {
    display: flex;
    position: absolute;
    right: 14px;
    top: 10px;
  }

  .brand img {
    width: clamp(170px, 42vw, 240px);
  }

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

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

  body.mobile-menu-open .mobile-navigation {
    transform: translate3d(0, 0, 0);
  }

  .lp__split {
    min-height: 0;
  }
}

@media (max-width: 1024px) {
  .location-dropdown__trigger {
    width: 188px;
  }

  .meta-link {
    font-size: 11px;
  }

  .lp__split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .split-divider {
    display: block;
    top: 50%;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: 2px;
    transform: translateY(-1px);
  }

  .split-panel {
    min-height: 38vh;
    padding: 40px 24px 52px;
  }

  .split-panel h1 {
    font-size: clamp(44px, 10vw, 64px);
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .header__center {
    transform: translateY(-16px);
  }

  .brand img {
    width: 200px;
  }
}
