/* ==========================================================================
   Shared pill navigation — used on every Taha Properties page.
   Self-contained (its own tokens) so it works regardless of the page's CSS.
   .tpl-nav          → light (paper) pages
   .tpl-nav--dark    → charcoal, for the Galaxy Heights page aesthetic
   ========================================================================== */
.tpl-nav, .tpl-nav__mobile {
  --nav-pill-bg: rgba(245, 245, 245, 0.72);
  --nav-pill-bg-scr: rgba(255, 255, 255, 0.9);
  --nav-border: rgba(27, 25, 23, 0.08);
  --nav-shadow: 0 10px 40px -24px rgba(0, 0, 0, 0.35);
  --nav-text: #423d36;
  --nav-active-text: #241d0e;
  --nav-gold: #d1b26f;
  --nav-cta-bg: #1b1917;
  --nav-cta-text: #f3ede0;
  --nav-burger: #1b1917;
  --nav-line: rgba(27, 25, 23, 0.10);
  --nav-mobile-bg: #f5f5f5;
  --nav-mobile-text: #1b1917;
  --nav-mobile-line: rgba(27, 25, 23, 0.06);
  --nav-mobile-meta: #7c766b;
  --nav-logo-filter: none;
  --nav-ease: cubic-bezier(0.16, 1, 0.3, 1);

  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  pointer-events: none;
  font-family: "General Sans", "Helvetica Neue", Arial, sans-serif;
}

.tpl-nav--dark, .tpl-nav__mobile--dark {
  --nav-pill-bg: rgba(10, 9, 8, 0.66);
  --nav-pill-bg-scr: rgba(6, 5, 4, 0.92);
  --nav-border: rgba(255, 255, 255, 0.10);
  --nav-shadow: 0 12px 44px -22px rgba(0, 0, 0, 0.6);
  --nav-text: #cfc7b8;
  --nav-active-text: #1b1510;
  --nav-cta-bg: #d1b26f;
  --nav-cta-text: #241d0e;
  --nav-burger: #e8e1d4;
  --nav-line: rgba(255, 255, 255, 0.14);
  --nav-mobile-bg: #100e0c;
  --nav-mobile-text: #f1ede6;
  --nav-mobile-line: rgba(255, 255, 255, 0.08);
  --nav-mobile-meta: #9a9286;
  --nav-logo-filter: brightness(0) invert(1);
}

.tpl-nav__inner {
  pointer-events: auto;
  width: min(1180px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px 10px 22px;
  background: var(--nav-pill-bg);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid var(--nav-border);
  border-radius: 999px;
  box-shadow: var(--nav-shadow);
  transition: background 0.4s var(--nav-ease), box-shadow 0.4s var(--nav-ease);
}
.tpl-nav.is-scrolled .tpl-nav__inner { background: var(--nav-pill-bg-scr); }

.tpl-nav__logo { display: inline-flex; align-items: center; }
.tpl-nav__logo img { height: 30px; width: auto; filter: var(--nav-logo-filter); }

.tpl-nav__links { display: flex; align-items: center; gap: 2px; }
.tpl-nav__link {
  position: relative;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--nav-text);
  text-decoration: none;
  overflow: hidden;
  transition: color 0.35s var(--nav-ease);
}
.tpl-nav__link .tpl-nav__fill {
  position: absolute;
  inset: 0;
  background: var(--nav-gold);
  border-radius: 999px;
  transform: translateY(102%);
  transition: transform 0.45s var(--nav-ease);
  z-index: 0;
}
.tpl-nav__link span:not(.tpl-nav__fill) { position: relative; z-index: 1; }
.tpl-nav__link:hover { color: var(--nav-active-text); }
.tpl-nav__link:hover .tpl-nav__fill,
.tpl-nav__link.is-active .tpl-nav__fill { transform: translateY(0); }
.tpl-nav__link.is-active { color: var(--nav-active-text); }

.tpl-nav__cta { display: inline-flex; }
.tpl-nav__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.82em 1.5em;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  background: var(--nav-cta-bg);
  color: var(--nav-cta-text);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.35s var(--nav-ease), box-shadow 0.35s var(--nav-ease);
}
.tpl-nav__cta-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.5); }

.tpl-nav__burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--nav-line);
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.tpl-nav__burger span { display: block; width: 18px; height: 1.5px; background: var(--nav-burger); transition: transform 0.3s var(--nav-ease); }
.tpl-nav.is-open .tpl-nav__burger span:first-child { transform: translateY(3.25px) rotate(45deg); }
.tpl-nav.is-open .tpl-nav__burger span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.tpl-nav__mobile {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--nav-mobile-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 clamp(20px, 5vw, 72px);
  opacity: 0;
  visibility: hidden;
  pointer-events: auto;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: "General Sans", sans-serif;
}
.tpl-nav__mobile.is-open { opacity: 1; visibility: visible; }
.tpl-nav__mobile > a { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(2rem, 9vw, 3.4rem); color: var(--nav-mobile-text); text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--nav-mobile-line); }
.tpl-nav__mobile > a:hover { color: #b1904c; }
.tpl-nav__mobile-meta { margin-top: 32px; display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; color: var(--nav-mobile-meta); }
.tpl-nav__mobile-meta a { color: var(--nav-mobile-meta); text-decoration: none; }

@media (max-width: 940px) {
  .tpl-nav__links, .tpl-nav__cta { display: none; }
  .tpl-nav__burger { display: flex; }
}
