/* One fixed-navigation appearance across every public page. */
:root {
  --site-header-height: 68px;
  --site-header-gutter: clamp(32px, 11.1365vw, 224px);
  --site-header-surface: #202523;
  --site-header-ink: #e1e4df;
}
body[class] .site-header.is-sticky,
body:is(.mobile-menu-open, .guides-mega-open) .site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(0, 1fr) calc(var(--site-header-height) * 1024 / 737) minmax(0, 1fr);
  align-items: center;
  gap: 0 clamp(24px, 3vw, 48px);
  width: 100%;
  height: var(--site-header-height);
  min-height: var(--site-header-height);
  padding: 0 var(--site-header-gutter);
  background: var(--site-header-surface);
  color: var(--site-header-ink);
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  animation: none;
}
body:is(.listing-page, .guides-page, .contact-page) .site-header.is-sticky {
  position: sticky;
}
body:is(.mobile-menu-open, .guides-mega-open) .site-header {
  position: fixed;
  z-index: 1002;
}
body[class] .site-header:is(.is-sticky) > :is(.nav-left, .nav-right),
body:is(.mobile-menu-open, .guides-mega-open) .site-header > :is(.nav-left, .nav-right) {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 48px);
  padding: 0;
  margin: 0;
  font: 400 clamp(12px, .82vw, 14px)/1.5 Avenir, 'Avenir Next', sans-serif;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: inherit;
}
body[class] .site-header > .nav-left { justify-content: flex-start; }
body[class] .site-header > .nav-right { justify-content: flex-end; }
body[class] .site-header.is-sticky > :is(.nav-left, .nav-right) > :is(a, button),
body:is(.mobile-menu-open, .guides-mega-open) .site-header > :is(.nav-left, .nav-right) > :is(a, button) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
}
body[class] .site-header.is-sticky > :is(.nav-left, .nav-right) > [aria-current] {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-thickness: 1px;
}
body[class] .site-header.is-sticky .language-toggle,
body:is(.mobile-menu-open, .guides-mega-open) .site-header .language-toggle {
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  transform: none;
}
body[class] .site-header.is-sticky .language-toggle img,
body:is(.mobile-menu-open, .guides-mega-open) .site-header .language-toggle img {
  width: 21px;
  height: 21px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .85;
}
body[class] .site-header > .brand:focus-visible { outline-offset: -4px; }
body[class] .skip-link:focus { z-index: 1100; }

/* Secondary controls remain below the shared header. */
html:has(body.listing-page) { scroll-padding-top: var(--site-header-height); }
.listing-page .sticky-search { top: var(--site-header-height); }
.listing-page .is-map #area-map {
  top: calc(var(--site-header-height) + var(--search-height) + 16px);
  max-height: calc(100svh - var(--site-header-height) - var(--search-height) - 32px);
}
.property-page .detail-navigation { top: var(--site-header-height); }
html:has(body.property-page) {
  scroll-padding-top: calc(var(--site-header-height) + var(--property-sticky-height, 88px) + 20px);
}
@media (min-width: 1001px) and (max-width: 1200px) {
  :root { --site-header-gutter: 4vw; }
  body[class] .site-header.is-sticky > :is(.nav-left, .nav-right),
  body.guides-mega-open .site-header > :is(.nav-left, .nav-right) { gap: 18px; }
}
@media (max-width: 1000px) {
  :root { --site-header-height: 76px; --site-header-gutter: 6vw; }
  body[class] #mobile-nav,
  body[class] .site-header #mobile-nav:not([hidden]) { border-top: 0; }
  body[class] #mobile-nav > :is(a, button) {
    border-bottom: 0;
    color: #f5f6f3;
  }
  body[class] #mobile-nav > [aria-current="page"] { color: #b8c4b8; }
  body[class] .site-header.is-sticky,
  body:is(.mobile-menu-open, .guides-mega-open) .site-header {
    display: flex;
    justify-content: center;
  }
  body[class] .site-header.is-sticky > .nav-left,
  body:is(.mobile-menu-open, .guides-mega-open) .site-header > .nav-left { display: contents; }
  body[class] .site-header.is-sticky > .nav-right,
  body:is(.mobile-menu-open, .guides-mega-open) .site-header > .nav-right { display: none; }
  body[class] .site-header.is-sticky .nav-left > :not(.language-toggle),
  body:is(.mobile-menu-open, .guides-mega-open) .site-header .nav-left > :not(.language-toggle) { display: none; }
  body[class] .site-header.is-sticky .language-toggle,
  body:is(.mobile-menu-open, .guides-mega-open) .site-header .language-toggle {
    position: absolute;
    top: 14px;
    left: max(12px, calc(6vw - 12px));
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    padding: 10px;
  }
  body[class] .site-header.is-sticky .language-toggle img,
  body:is(.mobile-menu-open, .guides-mega-open) .site-header .language-toggle img { width: 28px; height: 28px; }
  body[class] .site-header.is-sticky .menu-toggle,
  body:is(.mobile-menu-open, .guides-mega-open) .site-header .menu-toggle {
    top: 14px;
    right: 6vw;
    min-height: 48px;
    font: 400 13px/1.5 Avenir, 'Avenir Next', sans-serif;
    letter-spacing: .09em;
    color: var(--site-header-ink);
  }
}
@media (max-width: 900px) {
  .listing-page .sticky-search:has(.listing-filters:not(.is-collapsed)) {
    max-height: calc(100svh - var(--site-header-height) - 16px);
  }
  .listing-page .is-map #area-map { top: 0; max-height: none; }
  html:has(body.property-page) { scroll-padding-top: calc(var(--site-header-height) + 20px); }
}
@media (max-width: 900px) and (max-height: 500px) {
  .listing-page .sticky-search { position: relative; top: 0; }
  .listing-page .sticky-search:has(.listing-filters:not(.is-collapsed)) { max-height: none; }
}
