/* A layered, hero-connected navigation and a useful neighborhood map. */
.detail-page .project-subnav {
  min-height: 78px;
  margin-top: -78px;
  padding-block: 8px;
  border-top: 1px solid rgba(255,255,255,.24);
  border-bottom: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(90deg, rgba(28,18,26,.79), rgba(40,25,35,.56));
  box-shadow: 0 -16px 35px rgba(18,10,16,.09), inset 0 1px 0 rgba(255,255,255,.09);
}
.detail-page .project-subnav.is-pinned {
  border-top-color: rgba(71,17,35,.06);
  border-bottom-color: rgba(71,17,35,.1);
  background: rgba(249,247,245,.94);
  box-shadow: 0 12px 26px rgba(42,20,29,.08), inset 0 1px 0 rgba(255,255,255,.8);
}
.detail-page .project-subnav > .project-nav-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: #fff;
  font-family: var(--sans);
  line-height: 1.15;
}
.project-nav-brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.project-nav-brand-mark .icon { width: 19px; height: 19px; }
.project-nav-brand-copy { display: grid; gap: 4px; }
.project-nav-brand-copy small {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
  opacity: .68;
}
.project-nav-brand-copy strong {
  overflow: hidden;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail-page .project-subnav.is-pinned > .project-nav-brand { color: var(--wine); }
.detail-page .project-subnav.is-pinned .project-nav-brand-mark {
  border-color: rgba(71,17,35,.12);
  background: rgba(71,17,35,.055);
}

.detail-page .project-subnav > .project-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(3px,.45vw,8px);
  padding: 4px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(10,6,12,.13);
  box-shadow: inset 0 1px 2px rgba(8,5,10,.1);
}
.detail-page .project-subnav.is-pinned > .project-nav-links {
  border-color: rgba(71,17,35,.085);
  background: rgba(71,17,35,.045);
  box-shadow: inset 0 1px 2px rgba(71,17,35,.025);
}
.detail-page .project-subnav .project-nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px clamp(9px,.85vw,15px);
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,.82);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .25s ease, background-color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.detail-page .project-subnav .project-nav-links a::after { display: none; }
.project-nav-links a .icon { width: 16px; height: 16px; flex: none; stroke-width: 1.8; }
.detail-page .project-subnav .project-nav-links a:hover,
.detail-page .project-subnav .project-nav-links a:focus-visible {
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.11);
  color: #fff;
  transform: translateY(-1px);
}
.detail-page .project-subnav .project-nav-links a.active {
  border-color: rgba(255,255,255,.27);
  background: rgba(255,255,255,.17);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 5px 18px rgba(10,5,10,.08);
}
.detail-page .project-subnav.is-pinned .project-nav-links a { color: #715e65; }
.detail-page .project-subnav.is-pinned .project-nav-links a:hover,
.detail-page .project-subnav.is-pinned .project-nav-links a:focus-visible {
  border-color: rgba(71,17,35,.1);
  background: rgba(71,17,35,.06);
  color: var(--wine);
}
.detail-page .project-subnav.is-pinned .project-nav-links a.active {
  border-color: var(--wine);
  background: var(--wine);
  color: #fff;
  box-shadow: 0 7px 17px rgba(71,17,35,.17);
}
.detail-page .project-subnav .project-nav-links a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.detail-page .project-subnav .button {
  border-radius: 999px;
  background: linear-gradient(125deg,#67253f,#471123 76%);
  box-shadow: 0 9px 22px rgba(20,6,15,.18), inset 0 1px 0 rgba(255,255,255,.16);
}

.nearby-explorer {
  display: grid;
  grid-template-columns: minmax(0,1.13fr) minmax(340px,.87fr);
  gap: clamp(16px,2.2vw,30px);
  align-items: stretch;
}
.nearby-map-frame {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  border: 1px solid rgba(71,17,35,.12);
  border-radius: 24px;
  background: #ddd7d0;
  box-shadow: 0 20px 38px rgba(60,37,40,.08);
}
.nearby-map { width: 100%; height: 100%; min-height: 510px; }
.nearby-map .leaflet-tile-pane { filter: saturate(.63) contrast(.96); }
.nearby-map-label {
  position: absolute;
  z-index: 500;
  top: 17px;
  left: 17px;
  display: grid;
  gap: 5px;
  max-width: calc(100% - 100px);
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 15px;
  background: rgba(255,252,248,.91);
  color: var(--wine);
  box-shadow: 0 8px 25px rgba(38,21,25,.09);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nearby-map-frame.has-active-place .nearby-map-label { opacity: 0; visibility: hidden; transform: translateY(-6px); }
.nearby-map-label span { font-size: 9px; font-weight: 600; letter-spacing: .15em; }
.nearby-map-label strong { font-size: 14px; font-weight: 600; }
.nearby-map-fallback {
  position: absolute;
  z-index: 500;
  right: 14px;
  bottom: 30px;
  left: 14px;
  padding: 12px 15px;
  border-radius: 12px;
  background: #fffaf5;
  color: var(--wine);
  box-shadow: 0 8px 30px rgba(42,20,29,.14);
  font-size: 12px;
}
.nearby-map-fallback[hidden] { display: none; }
.nearby-map-fallback a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.nearby-map .leaflet-control-zoom {
  overflow: hidden;
  margin-top: 17px;
  margin-right: 17px;
  border: 1px solid rgba(71,17,35,.1);
  border-radius: 13px;
  box-shadow: 0 7px 22px rgba(42,20,29,.1);
}
.nearby-map .leaflet-control-zoom a { width: 34px; height: 34px; line-height: 34px; color: var(--wine); }
.nearby-map .leaflet-control-attribution {
  padding: 2px 5px;
  background: rgba(255,255,255,.86);
  font-size: 10px;
}
.nearby-map .leaflet-popup-content-wrapper {
  border-radius: 15px;
  box-shadow: 0 12px 35px rgba(38,20,27,.18);
  font-family: var(--sans);
}
.nearby-map .leaflet-popup-content { margin: 14px 17px; min-width: 170px; }
.nearby-popup { display: grid; gap: 7px; }
.nearby-popup span { color: #796970; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.nearby-popup strong { color: var(--wine); font-size: 14px; line-height: 1.35; }
.nearby-popup small { color: #75696d; font-size: 11px; line-height: 1.5; }
.nearby-popup a { color: var(--wine); font-size: 11px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.primoc-map-residence { border: 0; background: none; }
.primoc-map-residence-dot {
  position: absolute;
  top: 8px;
  left: 29px;
  width: 24px;
  height: 24px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #ec6f2a;
  box-shadow: 0 3px 13px rgba(71,17,35,.38);
}
.primoc-map-residence-dot::before {
  position: absolute;
  inset: -13px;
  border: 2px solid rgba(236,111,42,.8);
  border-radius: 50%;
  content: '';
  animation: primoc-map-pulse 2.3s ease-out infinite;
}
.primoc-map-residence-name {
  position: absolute;
  top: 35px;
  left: 50%;
  padding: 4px 8px 3px;
  border-radius: 6px;
  background: #fff;
  color: var(--wine);
  box-shadow: 0 3px 12px rgba(71,17,35,.19);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .07em;
  line-height: 1;
  transform: translateX(-50%);
}
@keyframes primoc-map-pulse {
  0% { transform: scale(.48); opacity: .8; }
  70%, 100% { transform: scale(1.22); opacity: 0; }
}
.primoc-map-pin { border: 0; background: none; }
.primoc-map-pin span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--wine);
  box-shadow: 0 3px 16px rgba(35,15,22,.3);
  transition: transform .25s ease, background-color .25s ease;
}
.primoc-map-pin span::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.primoc-map-pin.is-active span { transform: scale(1.22); background: #a14f67; }
.primoc-map-sector { border: 0; background: none; }
.primoc-map-sector span {
  display: block;
  width: 20px;
  height: 20px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: #be8d64;
  box-shadow: 0 0 0 8px rgba(190,141,100,.2), 0 3px 16px rgba(35,15,22,.2);
}
.nearby-places {
  display: grid;
  align-content: center;
  align-self: center;
  gap: 10px;
}
.nearby-place {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) 16px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 84px;
  padding: 11px 14px;
  border: 1px solid rgba(71,17,35,.1);
  border-radius: 15px;
  background: #fcf9f6;
  color: var(--wine);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(60,37,40,.045);
  transition: background-color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.nearby-place:hover,
.nearby-place:focus-visible,
.nearby-place.is-active {
  border-color: rgba(71,17,35,.2);
  background: #f4ebe9;
  box-shadow: 0 12px 28px rgba(60,37,40,.08);
}
.nearby-place:hover { transform: translateX(3px); }
.nearby-place:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
.nearby-place-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(71,17,35,.1);
  border-radius: 11px;
  background: #f5eeee;
}
.nearby-place-icon .icon { width: 19px; height: 19px; }
.nearby-place-copy { display: grid; gap: 2px; min-width: 0; }
.nearby-place-copy small { color: #8d747b; font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.nearby-place-copy strong { overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.25; text-overflow: ellipsis; }
.nearby-place-copy span { color: #75696d; font-size: 11px; line-height: 1.4; }
.nearby-place-arrow { width: 16px; height: 16px; transition: transform .25s ease; }
.nearby-place:hover .nearby-place-arrow,
.nearby-place.is-active .nearby-place-arrow { transform: translate(2px,-2px); }
.nearby-section .nearby-note { margin-top: 20px; line-height: 1.6; }

@media (max-width: 1100px) {
  .detail-page .project-subnav > .project-nav-brand { display: none; }
  .detail-page .project-subnav .project-nav-links a { padding-inline: 10px; }
  .nearby-explorer { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .detail-page .project-subnav {
    top: 70px;
    min-height: 62px;
    margin-top: -62px;
    padding: 0 3.5%;
  }
  .detail-page .project-subnav > .project-nav-links {
    width: 100%;
    gap: 4px;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .detail-page .project-subnav > .project-nav-links::-webkit-scrollbar { display: none; }
  .detail-page .project-subnav .project-nav-links a {
    flex: 0 0 auto;
    min-height: 43px;
    padding: 8px 11px;
    font-size: 11px;
    scroll-snap-align: center;
  }
  .project-nav-links a .icon { width: 15px; height: 15px; }
  .nearby-explorer { grid-template-columns: 1fr; }
  .nearby-map-frame, .nearby-map { min-height: 390px; }
  .nearby-places { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .nearby-place { min-height: 84px; grid-template-columns: 37px minmax(0,1fr); gap: 10px; padding: 11px; }
  .nearby-place-icon { width: 37px; height: 37px; border-radius: 11px; }
  .nearby-place-icon .icon { width: 18px; height: 18px; }
  .nearby-place-copy strong { font-size: 13px; }
  .nearby-place-copy span { display: none; }
  .nearby-place-arrow { display: none; }
}
@media (max-width: 560px) {
  .nearby-map-frame, .nearby-map { min-height: 340px; }
  .nearby-places { grid-template-columns: 1fr; }
  .nearby-place { min-height: 72px; }
  .nearby-place-copy span { display: block; }
  .nearby-place-arrow { display: none; }
  .nearby-place { grid-template-columns: 36px minmax(0,1fr); padding-right: 12px; }
  .nearby-place-icon { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .primoc-map-residence-dot::before { animation: none; opacity: .35; transform: scale(.75); }
  .detail-page .project-subnav .project-nav-links a,
  .primoc-map-pin span,
  .nearby-place,
  .nearby-place-arrow { transition: none; }
}
