/* ============================================================
   LANDMARK PUBLIC SHELL
   Shared header/footer/navigation across public pages.
   Keep site chrome here so page CSS does not own layout stability.
   ============================================================ */

:root {
  --shell-scrollbar-width: 0px;
  --shell-fullbleed-width: calc(100vw - var(--shell-scrollbar-width));
  --shell-max: var(--max-width, 1480px);
  --shell-gutter: var(--site-gutter, clamp(20px, 2.2vw, 40px));
}

.topbar-wrap {
  width: 100%;
  border-bottom: 1px solid rgba(174, 203, 246, 0.62);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(247, 250, 255, 0.96) 100%
  );
  box-shadow: 0 8px 22px rgba(13, 34, 56, 0.04);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  min-height: 92px;
  padding: 14px var(--shell-gutter);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(12px, 1.2vw, 20px);
  position: relative;
}

.brand {
  min-width: 0;
  z-index: 3;
}

.brand a {
  display: inline-flex;
}

.brand-logo {
  display: block;
  width: auto;
  height: clamp(60px, 3.2vw, 72px);
  max-width: min(320px, 24vw);
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 0;
  min-width: 0;
  width: auto;
  max-width: min(100%, 660px);
  position: static;
  left: auto;
  top: auto;
  transform: none;
  flex-wrap: wrap;
  row-gap: 6px;
  z-index: 2;
}

.nav a {
  font-family: var(--font-ui);
  text-decoration: none;
  color: #12356d;
  text-transform: none;
  letter-spacing: 0.012em;
  font-size: clamp(0.84rem, 0.75vw, 0.96rem);
  font-weight: 700;
  padding: 0 10px;
  line-height: 1.15;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav a + a {
  border-left: 1px solid rgba(18, 53, 109, 0.24);
}

.nav a:hover,
.nav a.is-active {
  color: #c9a84c;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  justify-content: flex-end;
  flex-wrap: nowrap;
  min-width: 0;
  z-index: 3;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  font-family: var(--font-ui);
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid #204d88;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(145deg, #244f88, #193d72);
  color: #fff;
  box-shadow: 0 10px 20px rgba(13, 34, 56, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(13, 34, 56, 0.18);
}

.language-switcher {
  position: relative;
  height: 42px;
  min-width: 76px;
  border-radius: 999px;
  border: 1px solid rgba(18, 53, 109, 0.24);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(6, 23, 53, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px 0 12px;
}

.language-switcher-code {
  font-family: var(--font-ui);
  color: var(--color-navy-900);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  pointer-events: none;
}

.language-switcher-select {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.language-switcher-caret {
  position: absolute;
  right: 12px;
  width: 8px;
  height: 8px;
  border-right: 1.6px solid #264f90;
  border-bottom: 1.6px solid #264f90;
  transform: rotate(45deg) translateY(-2px);
  pointer-events: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(174, 203, 246, 0.55);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #0a2148;
  border-radius: 2px;
  transition: transform 0.26s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.footer-lux {
  position: relative;
  width: var(--shell-fullbleed-width);
  margin-left: calc(50% - (var(--shell-fullbleed-width) / 2));
  margin-right: calc(50% - (var(--shell-fullbleed-width) / 2));
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(160deg, #0d2238 0%, #12304d 60%, #183c61 100%);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: hidden;
}

.site > .footer-lux,
.properties-page > .footer-lux,
.property-detail-page > .footer-lux {
  margin-top: auto;
}

.footer-lux::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    100deg,
    #c9a84c 0%,
    rgba(201, 168, 76, 0.35) 38%,
    rgba(201, 168, 76, 0) 65%
  );
}

.footer-awards-hang {
  position: absolute;
  right: 18px;
  top: 12px;
  z-index: 5;
  display: flex;
  gap: 6px;
  align-items: flex-start;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.footer-award-item {
  height: 126px;
  width: auto;
  object-fit: contain;
  object-position: center top;
  filter: drop-shadow(0 8px 14px rgba(2, 7, 20, 0.3));
  opacity: 0.98;
  transform: none !important;
}

.footer-lux-grid {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 24px 214px 22px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.92fr) minmax(0, 0.74fr);
  gap: 18px;
}

.footer-col h3 {
  margin: 0 0 9px;
  color: #c9a84c;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.6rem;
  font-weight: 800;
}

.footer-col p,
.footer-col a,
.footer-col address,
.footer-contact-list li {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.77rem;
  line-height: 1.56;
}

.footer-contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-contact-list a {
  color: rgba(225, 237, 255, 0.9);
  text-decoration: underline;
  text-decoration-color: rgba(225, 237, 255, 0.32);
  text-underline-offset: 2px;
}

.footer-contact-list a:hover {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.72);
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(191, 214, 250, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f2f7ff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.54rem;
  font-weight: 800;
  padding: 9px 16px;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-social-links a:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(3, 10, 25, 0.22);
  background: rgba(255, 255, 255, 0.12);
}

.footer-legal {
  max-width: var(--shell-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(190px, 0.72fr) minmax(0, 1fr) minmax(220px, auto);
  align-items: center;
  column-gap: 18px;
  row-gap: 10px;
  border-top: 1px solid rgba(182, 208, 248, 0.24);
  color: rgba(214, 229, 251, 0.86);
  text-transform: none;
  letter-spacing: 0.03em;
  font-size: 0.65rem;
  line-height: 1.5;
  font-weight: 600;
  padding: 14px 214px 18px 22px;
}

.footer-legal > span {
  grid-column: 1;
  font-family: var(--font-ui);
  font-size: 0.56rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(176, 203, 243, 0.88);
}

.footer-legal .footer-legal-links {
  grid-column: 2;
  justify-content: flex-start;
}

.footer-legal .social-share {
  grid-column: 3;
  justify-content: flex-end;
}

@media (min-width: 1200px) and (max-width: 1439px) {
  .brand-logo {
    max-width: min(300px, 22vw);
  }

  .nav {
    max-width: min(100%, 620px);
  }

  .nav a {
    padding: 0 9px;
  }

  .footer-award-item {
    height: 114px;
  }

  .footer-lux-grid,
  .footer-legal {
    padding-right: 196px;
  }
}

@media (min-width: 769px) and (max-width: 1199px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    padding: 12px 18px;
  }

  .brand,
  .header-actions {
    justify-self: center;
  }

  .brand-logo {
    height: 62px;
    max-width: min(320px, 48vw);
  }

  .nav {
    width: 100%;
    max-width: none;
    justify-content: center;
    row-gap: 8px;
  }

  .nav a {
    font-size: 0.88rem;
    padding: 8px 10px;
  }

  .nav a + a {
    border-left: 0;
  }

  .header-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .header-cta {
    font-size: 0.78rem;
    padding: 12px 18px;
  }

  .language-switcher {
    min-width: 78px;
  }

  .footer-awards-hang {
    position: static;
    padding: 14px 18px 0;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .footer-award-item {
    height: 108px;
  }

  .footer-lux-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 20px 18px 18px;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .footer-legal {
    grid-template-columns: 1fr;
    padding: 14px 18px 18px;
  }

  .footer-legal > span,
  .footer-legal .footer-legal-links,
  .footer-legal .social-share {
    grid-column: 1;
  }

  .footer-legal .social-share {
    justify-content: flex-start;
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid rgba(181, 207, 247, 0.24);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    grid-row: 1;
    grid-column: 2;
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0;
    min-height: 0;
    padding: 12px 16px;
    align-items: center;
  }

  .brand {
    grid-row: 1;
    grid-column: 1;
  }

  .brand-logo {
    height: 56px;
    max-width: min(280px, 62vw);
  }

  .nav,
  .header-actions {
    display: none;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .topbar-wrap {
    max-height: 100dvh;
    overflow: auto;
  }

  body.nav-open .topbar {
    align-items: start;
    row-gap: 0;
    padding-bottom: calc(8px + var(--safe-area-bottom));
  }

  body.nav-open .nav {
    display: flex;
    position: static;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    padding: 12px 14px 0;
    margin-top: 8px;
    border-top: 0;
    border-radius: 22px 22px 0 0;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98),
      rgba(242, 248, 255, 0.96)
    );
    box-shadow: 0 18px 44px rgba(8, 31, 67, 0.14);
  }

  body.nav-open .nav a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 13px 0;
    border-left: 0;
    border-bottom: 1px solid rgba(18, 53, 109, 0.12);
    text-align: left;
    font-size: 0.94rem;
  }

  body.nav-open .nav a + a {
    border-left: 0;
  }

  body.nav-open .nav a:last-child {
    border-bottom: 0;
  }

  body.nav-open .header-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
    padding: 10px 14px calc(14px + var(--safe-area-bottom));
    margin-top: 0;
    border-top: 1px solid rgba(18, 53, 109, 0.08);
    border-radius: 0 0 22px 22px;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98),
      rgba(242, 248, 255, 0.96)
    );
    box-shadow: 0 18px 44px rgba(8, 31, 67, 0.14);
    position: relative;
    top: -1px;
    grid-column: 1 / -1;
  }

  body.nav-open .header-actions .header-cta,
  body.nav-open .header-actions .language-switcher {
    width: 100%;
    justify-content: center;
  }

  body.nav-open .header-actions .header-cta {
    min-height: 44px;
    padding: 12px 14px;
  }

  body.nav-open .header-actions .language-switcher {
    height: 44px;
  }

  .footer-lux {
    overflow: visible;
  }

  .footer-awards-hang {
    position: static;
    padding: 14px 14px 8px;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .footer-award-item {
    height: 96px;
  }

  .footer-lux-grid {
    grid-template-columns: 1fr;
    padding: 18px 14px 14px;
    gap: 14px;
  }

  .footer-legal {
    grid-template-columns: 1fr;
    padding: 12px 14px calc(16px + var(--safe-area-bottom));
    gap: 10px;
    font-size: 0.62rem;
  }

  .footer-legal > span,
  .footer-legal .footer-legal-links,
  .footer-legal .social-share {
    grid-column: 1;
  }

  .footer-legal .social-share {
    justify-content: flex-start;
  }
}
