/* =========================================================
   SKIATHOS HOMES — NAV V8.0 (PRODUCTION)
========================================================= */

/* --- 0. Preferences & Resets --- */
/* Scoped reduced motion */
@media (prefers-reduced-motion: reduce) {
  .sh-nav2-header *, .sh-nav2-mobile-panel * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Theme Override Reset (Fixes the Blue Background issue) */
.sh-nav2-burger, .sh-nav2-close-btn {
  background-color: transparent !important;
  box-shadow: none !important;
  padding: 0; margin: 0;
}
.sh-nav2-burger:hover, .sh-nav2-close-btn:hover {
  background-color: transparent !important;
}

/* --- 1. A11y Skip Link --- */
.sh-nav2-skip {
  position: absolute; top: 0; left: 0; transform: translateY(-120%);
  background: var(--navy-dark); color: var(--gold);
  padding: 10px 15px; z-index: 10001; font-weight: bold; border-radius: 0 0 8px 8px;
  transition: transform 0.3s ease;
}
.sh-nav2-skip:focus { transform: translateY(0); outline: none; }

/* --- 2. Header Layout (Grid) --- */
.sh-nav2-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 24px 0;
  transition: padding 0.4s ease, background-color 0.4s ease, border-color 0.4s ease;
  background: transparent; border-bottom: 1px solid transparent;
}

/* Scrolled State */
.sh-nav2-header.is-scrolled {
  padding: 12px 0;
  background: rgba(7, 13, 22, 0.92); /* Fallback */
  background: color-mix(in srgb, var(--navy-dark) 92%, transparent 8%);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

/* Static State */
.sh-nav2-header.is-static {
  position: relative; background: var(--navy-dark);
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sh-nav2-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* True Center */
  align-items: center; gap: 20px;
}

/* Mobile: switch to flex so brand stays left, burger stays right */
@media (max-width: 900px) {
  .sh-nav2-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

/* --- 3. Brand --- */
.sh-nav2-brand { justify-self: start; position: relative; z-index: 1002; }

/* --- 4. Desktop Nav --- */
.sh-nav2-desktop { display: none; justify-self: center; }
@media (min-width: 901px) { .sh-nav2-desktop { display: block; } }

.sh-nav2-list {
  list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; align-items: center;
}
.sh-nav2-list > li { position: relative; }

/* Link Styles */
.sh-nav2-list > li > a {
  font-family: var(--font-body, sans-serif);
  font-size: 0.95rem; font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none; padding: 10px 0;
  position: relative; display: flex; align-items: center; gap: 6px;
  transition: color 0.3s ease;
}

/* Hover/Active */
.sh-nav2-list > li > a:hover,
.sh-nav2-list > li.current-menu-item > a,
.sh-nav2-list > li.current-menu-ancestor > a,
.sh-nav2-list > li > a.is-active,
/* Fix for touch devices keeping hover state */
.sh-nav2-list > li.is-touch-open > a { 
  color: var(--white); 
}

/* Focus Ring */
.sh-nav2-list > li > a:focus-visible,
.sh-nav2-burger:focus-visible,
.sh-nav2-close-btn:focus-visible,
.sh-nav2-private-card:focus-visible {
  outline: none;
  border-radius: 8px;
  box-shadow: 0 0 0 2px var(--gold), 
              0 0 0 6px color-mix(in srgb, var(--gold) 20%, transparent 80%);
}

/* UNDERLINE (::before) */
.sh-nav2-list > li > a::before {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s ease;
}
.sh-nav2-list > li > a:hover::before,
.sh-nav2-list > li.current-menu-item > a::before,
.sh-nav2-list > li.current-menu-ancestor > a::before,
.sh-nav2-list > li > a.is-active::before,
.sh-nav2-list > li.is-touch-open > a::before {
  transform: scaleX(1); transform-origin: left;
}

/* WP CARET (::after) */
.sh-nav2-list > li.menu-item-has-children > a { padding-right: 4px; }
.sh-nav2-list > li.menu-item-has-children > a::after {
  content: ''; display: inline-block;
  width: 6px; height: 6px; margin-left: 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.6; transition: transform 0.3s ease, opacity 0.3s ease;
}
.sh-nav2-list > li.menu-item-has-children:hover > a::after,
.sh-nav2-list > li.menu-item-has-children:focus-within > a::after,
.sh-nav2-list > li.is-touch-open > a::after {
  transform: rotate(225deg) translateY(-2px);
  opacity: 1; color: var(--gold);
}

/* Dropdown */
.sh-nav2-list .sub-menu {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--navy-dark);
  border: 1px solid rgba(201,174,120,0.15); /* Fallback */
  border: 1px solid color-mix(in srgb, var(--gold) 15%, transparent 85%);
  min-width: 230px; padding: 10px 0; border-radius: 12px;
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, transform 0.3s ease;
  list-style: none; z-index: 100;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}
.sh-nav2-list li:hover .sub-menu, 
.sh-nav2-list li:focus-within .sub-menu,
.sh-nav2-list li.is-touch-open .sub-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.sh-nav2-list .sub-menu li a {
  display: block; padding: 10px 20px; color: rgba(255,255,255,0.85);
  font-size: 0.92rem; text-decoration: none; white-space: nowrap;
}
.sh-nav2-list .sub-menu li a:hover {
  background: rgba(255,255,255,0.03); color: var(--white);
}

/* --- 5. Actions --- */
.sh-nav2-actions { justify-self: end; display: flex; align-items: center; gap: 1rem; }
.sh-nav2-cta-wrap { display: none; }
@media (min-width: 901px) {
  .sh-nav2-cta-wrap { display: block; }
  .sh-nav2-cta-wrap .btn { font-size: 0.85rem; padding: 0.7rem 1.4rem;  border-radius: 0;}
}

/* Burger */
.sh-nav2-burger {
  display: flex; align-items: center; justify-content: center;
  border: none; width: 44px; height: 44px;
  cursor: pointer; z-index: 1002; position: relative;
}
@media (min-width: 901px) { .sh-nav2-burger { display: none; } }

.sh-nav2-burger-box { width: 26px; height: 14px; position: relative; display: inline-block; }
.sh-nav2-burger-inner, .sh-nav2-burger-inner::before, .sh-nav2-burger-inner::after {
  position: absolute; left: 0; width: 26px; height: 1.5px; background-color: var(--white);
  border-radius: 2px;
  transition: transform .38s cubic-bezier(.4,0,.2,1), width .32s ease, background-color .25s ease;
}
.sh-nav2-burger-inner { top: 50%; transform: translateY(-50%); }
.sh-nav2-burger-inner::before { content: ""; top: -6px; }
.sh-nav2-burger-inner::after  { content: ""; bottom: -6px; width: 17px; } /* refined asymmetry */

/* Hover — bottom line extends to full width + lines turn gold */
.sh-nav2-burger:hover .sh-nav2-burger-inner::after { width: 26px; }
.sh-nav2-burger:hover .sh-nav2-burger-inner,
.sh-nav2-burger:hover .sh-nav2-burger-inner::before,
.sh-nav2-burger:hover .sh-nav2-burger-inner::after { background-color: var(--gold); }

/* Burger Active State (X) */
.sh-nav2-burger.is-active .sh-nav2-burger-inner { background-color: transparent; }
.sh-nav2-burger.is-active .sh-nav2-burger-inner::before { transform: translateY(6px) rotate(45deg); width: 26px; }
.sh-nav2-burger.is-active .sh-nav2-burger-inner::after  { transform: translateY(-6px) rotate(-45deg); width: 26px; }


/* --- 6. Mobile Panel --- */
body.sh-nav2-locked { position: fixed; width: 100%; height: 100%; overflow: hidden; }

.sh-nav2-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: 1000; opacity: 0; visibility: hidden; transition: opacity 0.4s ease;
}
.sh-nav2-backdrop.is-open { opacity: 1; visibility: visible; }

.sh-nav2-mobile-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(92vw, 420px);
  background: var(--navy-dark);
  z-index: 1001;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1), visibility 0s linear 0.45s;
  display: flex; flex-direction: column;
  box-shadow: -10px 0 40px rgba(0,0,0,0.6);
  border-left: 1px solid rgba(255,255,255,0.05);
}
.sh-nav2-mobile-panel.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.sh-nav2-mobile-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 30px; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sh-nav2-mobile-brand {
  font-family: var(--font-head, sans-serif); font-size: 1.2rem; color: var(--white); text-decoration: none;
}
.sh-nav2-mobile-brand span { color: var(--gold); }

/* Close Button (Theme Override added) */
.sh-nav2-close-btn {
  background: transparent !important; border: none; cursor: pointer; color: rgba(255,255,255,0.5);
  padding: 8px; transition: color 0.3s ease;
}
.sh-nav2-close-btn:hover { color: var(--white); background: transparent !important; }
.sh-nav2-close-btn svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ════════════════════════════════════════════
   PREMIUM MOBILE MENU (editorial, full-screen)
════════════════════════════════════════════ */
/* Mobile Content - Strict Left Align */
.sh-nav2-mobile-content {
  flex: 1; overflow-y: auto; padding: 30px;
  text-align: left; /* FIX: Strict Left Align */
}

/* (Mobile menu reverted to the original sectioned drawer.) */

.sh-nav2-section-title {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.68rem; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.24em;
  margin-top: 10px; margin-bottom: 16px; font-weight: 600;
  opacity: 0.92;
}
/* faint line trailing to the right of each section title */
.sh-nav2-section-title::after {
  content: ""; flex: 1; height: 1px;
  background: rgba(201,174,120,0.22);
}

.sh-nav2-mobile-list { list-style: none; padding: 0; margin: 0; margin-bottom: 35px; }
.sh-nav2-mobile-list li a {
  display: block;
  font-family: var(--font-body, sans-serif);
  font-size: 0.98rem; font-weight: 500;
  color: var(--white); text-decoration: none;
  padding: 9px 0;
  opacity: 0.9; transition: opacity 0.3s ease, color 0.3s ease;
  line-height: 1.4;
  text-align: left; /* Strict Left */
}
.sh-nav2-mobile-list li a:hover { opacity: 1; color: var(--gold); }

/* Off-market: a normal menu link, but distinguished (gold) + with a short note */
.sh-nav2-feat-item { margin-bottom: 35px; }
.sh-nav2-feat-link {
  display: block;
  font-family: var(--font-body, sans-serif);
  font-size: 0.98rem; font-weight: 600;
  color: var(--gold); text-decoration: none;
  padding: 9px 0 3px;
  line-height: 1.4;
  transition: opacity 0.3s ease;
}
.sh-nav2-feat-link:hover { opacity: 0.78; }
.sh-nav2-feat-desc {
  display: block;
  font-family: var(--font-body, sans-serif);
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.45);
}

/* Private Card (Theme Override Hover) */
.sh-nav2-private-card {
  display: block;
  background: rgba(255,255,255,0.03);
  border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent 70%);
  border-radius: 8px;
  padding: 18px 20px;
  text-decoration: none; margin-bottom: 35px;
  transition: all 0.3s ease;
  text-align: left; /* Strict Left */
}
/* Ensure hover doesn't go blue */
.sh-nav2-private-card:hover {
  background: rgba(201,174,120, 0.08) !important; /* Force override theme */
  border-color: var(--gold);
}
.sh-nav2-pc-head {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head, sans-serif);
  font-size: 1.1rem; color: var(--gold); margin-bottom: 4px;
}
.sh-nav2-pc-head svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.sh-nav2-pc-sub {
  display: block; font-family: var(--font-body, sans-serif);
  font-size: 0.85rem; color: rgba(255,255,255,0.6);
}

/* =========================================================
   MOBILE CHROME — compact translucent nav
   The 44px burger target stays intact; height is recovered from padding.
   Scroll direction is supplied by sh-nav2.js so the header does not compete
   with a property action bar and the browser's expanding toolbar.
========================================================= */
@media (max-width: 900px) {
  .sh-nav2-header {
    padding: 8px 0;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom-color: transparent;
    transform: translateY(0);
    transition:
      transform 0.30s cubic-bezier(0.22, 0.61, 0.36, 1),
      padding 0.30s ease,
      background-color 0.30s ease,
      border-color 0.30s ease;
    will-change: transform;
  }

  .sh-nav2-header.is-scrolled {
    padding: 6px 0;
    background: rgba(7, 13, 22, 0.76);
    -webkit-backdrop-filter: blur(18px) saturate(155%);
    backdrop-filter: blur(18px) saturate(155%);
    border-bottom-color: rgba(255,255,255,0.07);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  }

  .sh-nav2-header.is-nav-hidden {
    transform: translateY(calc(-100% - 2px));
    pointer-events: none;
  }

  /* These pages intentionally keep the header in document flow. Compact it,
     but never apply the scroll-away transform to that static variant. */
  .sh-nav2-header.is-static,
  .sh-nav2-header.is-static.is-scrolled,
  .sh-nav2-header.is-static.is-nav-hidden {
    padding: 8px 0;
    background: rgba(7, 13, 22, 0.92);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    transform: none;
    pointer-events: auto;
  }

  .sh-nav2-burger {
    width: 44px;
    height: 44px;
  }
}

/* Smaller phones: compact the drawer's whitespace, not its readable labels. */
@media (max-width: 410px) {
  .sh-nav2-brand .sh-brand-top { font-size: 0.98rem; }
  .sh-nav2-brand .sh-brand-bottom { font-size: 0.68rem; margin-top: 3px; }

  .sh-nav2-mobile-header { padding: 22px; }
  .sh-nav2-mobile-content { padding: 22px; }
  .sh-nav2-section-title { margin-top: 8px; margin-bottom: 12px; }
  .sh-nav2-mobile-list { margin-bottom: 26px; }
  .sh-nav2-feat-item { margin-bottom: 26px; }
}

@media (max-width: 900px) and (prefers-reduced-transparency: reduce) {
  .sh-nav2-header,
  .sh-nav2-header.is-scrolled,
  .sh-nav2-header.is-static {
    background: rgba(7, 13, 22, 0.96);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .sh-nav2-header { transition: none; }
}
