/* Landing: fit the visible viewport so the footer stays on-screen (esp. 13" MacBooks). */
body:has(.landing) {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

body:has(.landing) main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.landing {
  max-width: 100%;
  flex: 1;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.landing-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(18px, 2.2vw, 36px) clamp(20px, 2.5vw, 40px);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.landing-top a,
.landing-top .landing-brand-link,
.landing-top .landing-nav-profile-menu {
  pointer-events: auto;
}

.landing-brand-link {
  display: block;
  line-height: 0;
}

.landing-brand {
  display: block;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

.landing-nav {
  display: flex;
  gap: clamp(16px, 2vw, 32px);
  align-items: center;
}

.landing-nav > a {
  color: #fff;
  text-decoration: none;
  text-transform: lowercase;
  font-size: clamp(14px, 1.35vw, 20px);
  font-weight: 500;
}

.landing-nav-profile-menu {
  position: relative;
  margin-left: 4px;
}

.landing-nav-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
}

.landing-nav-profile svg {
  display: block;
}

.landing-nav-profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  min-width: 190px;
  padding: 6px 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.18);
}

.landing-nav .landing-nav-profile-dropdown-link {
  display: block;
  padding: 10px 16px;
  color: var(--landing-dark);
  text-decoration: none;
  text-transform: lowercase;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.landing-nav .landing-nav-profile-dropdown-link:hover {
  background: rgb(108 49 46 / 0.08);
  color: var(--landing-dark);
}

.landing-hero {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-panel {
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}

.landing-panel-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.landing-footer {
  background: var(--landing-accent);
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.landing-footer a {
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-size: clamp(14px, 1.25vw, 18px);
  font-weight: 500;
  line-height: 1;
}

.landing-footer a.landing-footer-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 8px;
  background: #fff;
  color: var(--landing-accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.landing-footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.landing-footer-instagram svg {
  display: block;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .landing-nav > a,
  .landing-nav-profile {
    color: #fff;
  }

  .landing-hero {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr);
  }

  .landing-panel--left,
  .landing-panel--right {
    display: none;
  }

  .landing-panel--center {
    display: block;
  }

  .landing-panel {
    min-height: 0;
  }

  .landing-footer {
    min-height: 80px;
    padding: 0 24px;
  }

  .landing-footer a {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  body:has(.landing) {
    padding-bottom: calc(var(--mobile-footbar-height) + env(safe-area-inset-bottom, 0px));
  }

  .landing-footer {
    display: none;
  }
}
