/* Filaro Collection - Neighbourhood phone page (10/Aug/26)
   Scoped to body[data-neighborhood-page]. Desktop books keep map drawer. */

body[data-neighborhood-page] {
  --nb-nav-h: 3.75rem;
  --muted: rgba(26, 20, 18, 0.55);
  overflow: hidden;
  background: var(--cream, #f7f5ef);
  color: var(--ink-dark, #1a1412);
  min-height: 100svh;
  min-height: 100dvh;
  position: relative !important;
  top: auto !important;
  width: auto !important;
  -webkit-tap-highlight-color: transparent;
}

/* Site nav - ink on cream (Gallery shell) */
body[data-neighborhood-page] .site-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 60;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  max-width: 100%;
  height: var(--nb-nav-h);
  padding: 0.9rem var(--gutter, 1.25rem);
  color: var(--ink-dark, #1a1412);
  background: transparent;
}
body[data-neighborhood-page] .site-nav__brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
body[data-neighborhood-page] .site-nav__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
body[data-neighborhood-page] .site-nav__logo {
  height: 1.25rem;
  width: auto;
  opacity: 0.95;
  filter: brightness(0);
}
body[data-neighborhood-page] .site-nav__address {
  margin: 0;
  line-height: 0;
  opacity: 0.9;
}
body[data-neighborhood-page] .site-nav__address-img {
  display: block;
  height: 1.05rem;
  width: auto;
  max-width: min(48vw, 11.5rem);
  filter: brightness(0);
}
body[data-neighborhood-page] .site-nav__book {
  display: flex;
  align-items: center;
  justify-content: center;
}
body[data-neighborhood-page] .site-nav__links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: calc(0.8125rem + 2px);
  font-weight: 500;
}
body[data-neighborhood-page] .site-nav__links a {
  text-decoration: none;
  opacity: 0.9;
  color: inherit;
}
body[data-neighborhood-page] .site-nav__end { justify-self: end; }
body[data-neighborhood-page] .site-nav__tools {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
body[data-neighborhood-page] .site-nav__sound-wrap { position: relative; }
body[data-neighborhood-page] .site-nav__sound {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
body[data-neighborhood-page] .site-nav__sound svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
body[data-neighborhood-page] .site-nav__sound .icon-unmuted { display: none; }
body[data-neighborhood-page] .site-nav__sound:not(.is-muted) .icon-muted { display: none; }
body[data-neighborhood-page] .site-nav__sound:not(.is-muted) .icon-unmuted { display: block; }
body[data-neighborhood-page] .site-nav__ot img {
  display: block;
  height: 0.85rem;
  width: auto;
  filter: brightness(0);
}

/* Phone: hide desktop book strip; Explore hamburger owns hops */
@media (max-width: 767px) {
  body[data-neighborhood-page] .site-nav__book,
  body[data-neighborhood-page] .site-nav__ot,
  body[data-neighborhood-page] .explore-nav__word {
    display: none !important;
  }
  body[data-neighborhood-page] .site-nav {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (min-width: 768px) {
  body[data-neighborhood-page] .explore-nav__plus,
  body[data-neighborhood-page] .explore-nav__stem,
  body[data-neighborhood-page] .explore-nav__rail {
    /* Keep Explore available on desktop preview of this craft page */
  }
}

/* Explore ink on cream (chrome + desktop dropdown only).
   Phone .nav-drawer stays wine - cream rule was beating shared drawer (11/Aug/26). */
body[data-neighborhood-page] .explore-nav__plus,
body[data-neighborhood-page] .explore-nav__word {
  color: var(--ink-dark, #1a1412);
}
body[data-neighborhood-page] .explore-nav__stem {
  background: var(--ink-dark, #1a1412);
}
body[data-neighborhood-page] .explore-nav__menu:not(.nav-drawer) {
  background: var(--cream, #f7f5ef);
  color: var(--ink-dark, #1a1412);
}
body[data-neighborhood-page] .explore-nav__menu:not(.nav-drawer) .explore-nav__item {
  color: inherit;
}
body[data-neighborhood-page] .explore-nav__menu.nav-drawer {
  background: var(--wine, #5b2c2d);
  color: #fff;
}
body[data-neighborhood-page] .explore-nav__item--current {
  opacity: 1;
  font-weight: 500;
}

/* Stub drawer mount - not visible; hop return uses body class */
body[data-neighborhood-page] .map-drawer.is-page {
  display: none !important;
  pointer-events: none !important;
}

/* Full-bleed map under nav */
body[data-neighborhood-page] main[aria-label="Neighbourhood map"] {
  position: fixed;
  top: var(--nb-nav-h);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--cream, #f7f5ef);
}

body[data-neighborhood-page] .nb-map-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  margin: 0;
  padding: 0;
  background: var(--cream, #f7f5ef);
}
