:root {
  --site-width: 1250px;
  --site-radius: 28px;
  --glass-button-background: rgba(86, 86, 85, 0.28);
  --glass-button-hover: rgba(86, 86, 85, 0.44);
  --glass-button-border: rgba(255, 255, 255, 0.45);
  --glass-button-shadow: 0 10px 26px rgba(86, 65, 45, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

[hidden] {
  display: none !important;
}

.home-page .hero-cta, .home-page .feature-link, .home-page .back-to-top, #cookie-banner button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  height: auto;
  padding: 12px 20px;
  border: 1px solid var(--glass-button-border);
  border-radius: 999px;
  background: var(--glass-button-background);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--glass-button-shadow);
  color: #fff;
  text-decoration: none;
  text-align: center;
  text-shadow: none;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.home-page .hero-cta:hover, .home-page .feature-link:hover, .home-page .back-to-top:hover, #cookie-banner button:hover {
  background: var(--glass-button-hover);
  border-color: var(--glass-button-border);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(86, 65, 45, 0.17), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.home-page .hero-cta:active, .home-page .feature-link:active, .home-page .back-to-top:active, #cookie-banner button:active {
  transform: translateY(-1px) scale(0.96);
}

.home-page .back-to-top {
  display: flex;
}

#cookie-banner {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 9999;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  width: min(780px, calc(100% - 28px));
  max-height: calc(100svh - 28px);
  overflow-y: auto;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)), rgba(47, 47, 45, 0.76);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  backdrop-filter: blur(22px) saturate(135%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.96);
  text-align: left;
}

#cookie-banner span {
  flex: 1 1 0%;
  min-width: 0;
  font-size: 0.86rem;
  line-height: 1.55;
}

#cookie-banner a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

#cookie-banner a:hover {
  color: #fff;
  text-decoration-thickness: 2px;
}

#cookie-banner button {
  flex: 0 0 auto;
}

#cookie-banner a:focus-visible, #cookie-banner button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

@media (max-width: 760px) {
  #cookie-banner {
    bottom: max(12px, env(safe-area-inset-bottom));
    width: calc(100% - 24px);
    max-height: calc(100svh - 24px);
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    border-radius: 18px;
    text-align: center;
  }

  #cookie-banner span {
    font-size: 0.82rem;
  }

  #cookie-banner button {
    width: 100%;
    min-height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .hero-cta, .home-page .feature-link, .home-page .back-to-top, #cookie-banner button {
    transition: none;
  }
  .home-page .hero-cta:hover, .home-page .hero-cta:active,
  .home-page .feature-link:hover, .home-page .feature-link:active,
  .home-page .back-to-top:hover, .home-page .back-to-top:active,
  #cookie-banner button:hover, #cookie-banner button:active {
    transform: none;
  }
}

:focus-visible {
  outline: rgb(195, 123, 34) solid 3px;
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 10001;
  padding: 12px 20px;
  color: rgb(255, 255, 255);
  background: rgb(47, 47, 45);
  border-radius: 8px;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

.corner-logo {
  position: absolute;
  top: 26px;
  left: clamp(22px, 5vw, 72px);
  width: 82px;
  height: 82px;
  z-index: 31;
  display: block;
  overflow: hidden;
  border-radius: 50%;
  background: rgb(255, 255, 255);
  box-shadow: rgba(0, 0, 0, 0.2) 0px 8px 24px;
}

.corner-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-header {
  position: relative;
  width: 100%;
  min-height: 64px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 30;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(53, 68, 66, 0.4);
  backdrop-filter: blur(16px);
}

.primary-menu li {
  position: relative;
  margin: 0px;
}

.primary-menu a, .submenu-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  color: rgb(255, 255, 255);
  font: 600 0.9rem / 1.5 "DM Sans", sans-serif;
  text-decoration: none;
  border: 0px;
  border-radius: 99px;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}

.primary-menu a:hover, .submenu-toggle:hover, .primary-menu a[aria-current="page"], .submenu-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.16);
}

.submenu-toggle svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s;
}

.submenu-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.primary-menu .apartment-menu {
  position: absolute;
  right: 0px;
  top: calc(100% + 15px);
  min-width: 245px;
  margin: 0px;
  padding: 8px;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 16px;
  background: rgb(52, 65, 63);
  box-shadow: rgba(0, 0, 0, 0.2) 0px 18px 40px;
}

.apartment-menu a {
  border-radius: 8px;
}

.language-switcher {
  position: absolute;
  right: 0px;
  top: 0px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 7px;
  color: rgba(255, 255, 255, 0.667);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 99px;
  background: rgba(53, 68, 66, 0.4);
  backdrop-filter: blur(16px);
}

.lang-btn {
  min-height: 44px;
  padding: 9px 12px;
  border: 0px;
  border-radius: 99px;
  color: rgba(255, 255, 255, 0.75);
  background: transparent;
  font: 600 0.9rem / 1.4 "DM Sans", sans-serif;
  cursor: pointer;
}

.lang-btn.active, .lang-btn:hover {
  color: rgb(255, 255, 255);
  background: rgba(255, 255, 255, 0.16);
}

.nav-toggle {
  display: none;
}

.hero .welcome-text h1 {
  margin: 0px 0px 22px;
  color: rgb(255, 255, 255);
  font: 600 clamp(2.4rem, 5vw, 4.5rem) / 1.06 "Playfair Display", serif;
  letter-spacing: -0.035em;
  text-wrap: balance;
  text-shadow: rgba(0, 0, 0, 0.2) 0px 8px 28px;
}

.status-page .welcome-text h1 {
  font-size: clamp(2rem, 4.3vw, 3.6rem);
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0px;
  z-index: 10000;
  padding: 70px 100px;
  align-items: center;
  justify-content: center;
  background: rgb(24, 34, 30);
  opacity: 0;
  transition: opacity 0.35s;
}

.lightbox.lb-visible {
  opacity: 1;
}

.lightbox-content {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.lightbox-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(1200px, 100%);
}

.lightbox-inner img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(-190px + 100svh);
  object-fit: contain;
  border-radius: 10px;
}

.lightbox-caption-link, #lightbox-caption {
  max-width: 100%;
  margin: 16px 0px 0px;
  color: rgb(255, 255, 255);
  text-align: center;
  font: 500 1rem / 1.5 "DM Sans", sans-serif;
  text-underline-offset: 5px;
}

.lightbox-caption-link:not([href]) {
  text-decoration: none;
}

.lightbox .close, .lightbox .arrow {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0px;
  border: 1px solid rgba(255, 255, 255, 0.314);
  border-radius: 50%;
  color: rgb(255, 255, 255);
  background: rgba(255, 255, 255, 0.08);
  font: 28px / 1 sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox .close:hover, .lightbox .arrow:hover {
  background: rgba(255, 255, 255, 0.19);
}

.lightbox .close:focus-visible, .lightbox .arrow:focus-visible {
  outline-color: rgb(255, 255, 255);
}

.lightbox .close {
  top: 24px;
  right: 28px;
}

.mobile-lightbox-arrows {
  display: contents;
}

.lightbox .arrow {
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
}

.lightbox .arrow:first-child {
  left: 28px;
}

.lightbox .arrow:last-child {
  right: 28px;
}

html.lb-open, body.lb-open {
  overflow: hidden;
  overscroll-behavior: none;
}

@media (max-width: 1050px) {
  .hero-header {
    justify-content: flex-end;
  }

  .corner-logo {
    width: 64px;
    height: 64px;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 58px;
    padding: 10px 14px;
    margin-right: 132px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 99px;
    color: rgb(255, 255, 255);
    background: rgba(53, 68, 66, 0.667);
    font: 600 0.9rem / 1.4 "DM Sans", sans-serif;
    cursor: pointer;
  }

  .nav-toggle svg {
    width: 18px;
    height: 18px;
  }

  .primary-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0px;
    right: 0px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(52, 65, 63, 0.98);
    max-height: calc(-140px + 100svh);
    overflow-y: auto;
  }

  .hero-header.menu-open .primary-menu {
    display: flex;
  }

  .primary-menu a, .submenu-toggle {
    width: 100%;
    justify-content: space-between;
    min-height: 46px;
    border-radius: 9px;
  }

  .primary-menu .apartment-menu {
    position: static;
    min-width: 0px;
    border: 0px;
    border-radius: 8px;
    margin: 4px 0px;
    background: rgba(255, 255, 255, 0.047);
    box-shadow: none;
  }

  .apartment-menu a {
    white-space: normal;
  }

}

@media (max-width: 700px) {
  .hero .welcome-text h1 {
    font-size: clamp(2.35rem, 8.4vw, 3.1rem);
  }

  .status-page .welcome-text h1 {
    font-size: clamp(1.9rem, 7.5vw, 2.7rem);
  }

  .lightbox {
    padding: 70px 16px 100px;
  }

  .lightbox-inner img {
    max-height: calc(-225px + 100svh);
    border-radius: 6px;
  }

  .lightbox .close {
    top: 12px;
    right: 12px;
    width: 46px;
    height: 46px;
  }

  .mobile-lightbox-arrows {
    display: flex;
    position: fixed;
    bottom: max(20px,env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    gap: 42px;
  }

  .lightbox .arrow {
    position: static;
    transform: none;
    width: 48px;
    height: 48px;
  }

  #lightbox-caption {
    font-size: 0.9rem;
  }

}

@media (max-width: 450px) {
  .corner-logo {
    top: 20px;
    left: 16px;
    width: 52px;
    height: 52px;
  }

  .hero {
    padding-inline: 16px;
    padding-top: 20px;
  }

  .language-switcher {
    padding: 4px;
  }

  .lang-btn {
    padding-inline: 9px;
  }

  .nav-toggle {
    min-height: 54px;
    margin-right: 112px;
    padding-inline: 11px;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .lightbox, .submenu-toggle svg {
    transition: none;
  }

}

html {
  background: rgb(47, 47, 45) !important;
}

#page-transition {
  position: fixed;
  inset: 0px;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  background: rgb(47, 47, 45);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.55s cubic-bezier(0.22, 0.61, 0.36, 1), visibility;
}

#page-transition .transition-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.4s, transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

#page-transition .transition-logo {
  display: block;
  width: clamp(140px, 22vw, 230px);
  max-width: 70vw;
  height: auto;
  max-height: 34vh;
  object-fit: contain;
  filter: drop-shadow(rgba(0, 0, 0, 0.18) 0px 8px 22px);
}

#page-transition.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.55s cubic-bezier(0.22, 0.61, 0.36, 1), visibility linear 0.55s;
}

#page-transition.is-hidden .transition-brand {
  opacity: 0;
  transform: scale(0.97);
}

#page-transition.is-leaving {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.42s cubic-bezier(0.65, 0, 0.35, 1), visibility;
}

body.page-ready .background-video {
  opacity: 1;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  #page-transition, #page-transition.is-hidden, #page-transition.is-leaving, #page-transition .transition-brand {
    transition: none;
  }

}
