/* /neighborhood and /amenities: the Skyview at Aria location journey, ported
 * from aria-skyview-website src/site/neighborhood.css and refinements.css to
 * plain CSS (gate feedback, 2026-10-29). One stepped navy panel morphs from the
 * opening into a stationary story card while three full-frame photographs wipe
 * in from the bottom; assets/js/journey.js drives the custom properties. The
 * neighborhood map section and the amenities accordion follow the same file.
 * Reduced motion keeps the scroll-linked story but drops drift, snapping and
 * transitions. Without script only the opening shows (see .location-journey
 * :not([data-ready])). */

.location-page { --location-navy: var(--ink); background: var(--location-navy); color: #fff; }
.location-page main { background: var(--location-navy); }

/* Header floats over the journey; it turns light over paper sections. */
.site-header.location-header {
  position: fixed; inset: 0 0 auto; width: 100%; z-index: 40; color: #fff;
  background: linear-gradient(180deg, rgba(11, 16, 40, 0.62), transparent);
  border-bottom-color: transparent;
}
.location-header .btn-tour { background: #fff; color: var(--ink); }
.location-header .btn-tour:hover { background: var(--mist); }
.site-header.location-header.on-light-surface { background: var(--paper); color: var(--ink); border-bottom-color: var(--line); }
.location-header.on-light-surface .btn-tour { background: var(--ink); color: #fff; }

/* ── Journey ── */
.location-journey { height: 400svh; position: relative; --morph: 0; --intro: 1; --details: 0; }
.location-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.location-scenes, .location-scene { position: absolute; inset: 0; overflow: hidden; }
.location-scene { will-change: clip-path; }
.location-scene img {
  width: 100%; height: 100%; max-width: none; object-fit: cover; filter: brightness(0.78);
  transform: translate3d(0, var(--photo-drift, 0%), 0) scale(1.12); will-change: transform;
}
.location-hero-photo { position: absolute; inset: 0; overflow: hidden; pointer-events: none; clip-path: inset(0 0 var(--hero-edge, 0%) 0); }
.location-hero-photo img {
  width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--hero-pos, center 50%);
  filter: brightness(0.86); transform: translateY(var(--hero-drift, 0%)) scale(1.12); will-change: transform;
}
.location-panel {
  position: absolute; left: calc(1.3% + var(--morph) * 49.2%); right: 1.3%;
  top: calc(30% - var(--morph) * 15%); bottom: 2.6%;
  background: var(--location-navy);
  clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%, 0 12%, 34% 12%);
  will-change: left, top;
}
.location-opening { opacity: var(--intro); position: absolute; inset: 0; padding: 2.4vw; pointer-events: none; }
.location-opening h1 {
  position: absolute; right: 2vw; top: 2%; margin: 0;
  font-size: clamp(30px, 5.8vw, 108px); line-height: 1; font-weight: 400; letter-spacing: -0.045em; text-transform: uppercase;
}
.location-kicker { position: absolute; top: 17%; margin: 0; font-size: clamp(13px, 1.3vw, 20px); line-height: 1.25; color: #b7bfd6; text-transform: uppercase; }
.location-opening-copy { position: absolute; bottom: 3%; margin: 0; font-size: clamp(18px, 1.8vw, 28px); line-height: 1.35; text-transform: uppercase; max-width: 60%; }
.location-opening button {
  position: absolute; bottom: 5%; right: 3%; pointer-events: auto;
  border: 1px solid #8a8fa6; border-radius: 50%; width: 45px; height: 45px; color: #fff;
  display: grid; place-items: center; transition: background-color 0.2s, border-color 0.2s;
}
.location-opening button:hover { background: #ffffff14; border-color: #fff; }
.location-opening button svg { width: 18px; height: 18px; }
.location-details { position: absolute; inset: 0; opacity: var(--details); }
.location-detail { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.45s ease, visibility 0.45s; }
.location-detail[data-active="true"] { opacity: 1; visibility: visible; }
.location-detail h2 {
  position: absolute; top: 2.5%; right: 3%; margin: 0;
  font-size: clamp(18px, 1.8vw, 30px); font-weight: 400; line-height: 1.2; letter-spacing: -0.02em; text-align: right; text-transform: uppercase;
}
.location-detail > svg { position: absolute; width: 25%; height: 35%; left: 37.5%; top: 25%; }
.location-detail > p {
  position: absolute; left: 3%; right: 15%; bottom: 22%; margin: 0; max-width: 460px;
  font-size: clamp(13px, 1.22vw, 20px); line-height: 1.32; text-transform: uppercase; color: #c9cede;
}
.location-credit { position: absolute; bottom: 4.2%; left: 12%; font-size: 11px; color: #a3a8bd; letter-spacing: 0.03em; }
button.location-credit, a.location-credit { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: #dfe2ec; }
button.location-credit:hover, a.location-credit:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.location-credit .i360 { width: 26px; height: 26px; }
.location-progress { position: absolute; left: 3%; right: 3%; bottom: 17%; display: flex; gap: 3%; }
.location-progress button { height: 24px; position: relative; flex: 1; cursor: pointer; }
.location-progress button::before, .location-progress-fill {
  content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 1px; background: #4a4f68;
}
.location-progress-fill { background: #eee; transform-origin: left; transform: scaleX(0); will-change: transform; }
.location-count { position: absolute; bottom: 4.5%; left: 3%; right: 3%; display: flex; justify-content: space-between; font-size: 12px; pointer-events: none; }
.location-journey[data-expanded="true"] .location-details { pointer-events: none; }
.location-journey[data-expanded="false"] .location-opening, .location-journey[data-expanded="false"] .location-opening button { pointer-events: none; }
.location-page button:focus-visible, .location-page a:focus-visible { outline: 2px solid #c9a48c; outline-offset: 5px; }

/* No script: the opening only, one screen tall; the facts follow below. */
.location-journey:not([data-ready]) { height: 100svh; }
.location-journey:not([data-ready]) .location-details, .location-journey:not([data-ready]) .location-opening button { display: none; }

/* ── Neighborhood map: full-bleed navy map, places card on the left ── */
.location-map-section { position: relative; min-height: 100svh; background: var(--ink); padding: 96px 2vw 3vw; overflow-anchor: none; }
.location-map-canvas { position: absolute; inset: 0; z-index: 0; }
.location-map-section[data-interactive="false"] .location-map-canvas { pointer-events: none; }
.map-interaction-shield { position: absolute; inset: 0 0 26px; z-index: 1; touch-action: pan-y; }
.location-map-section[data-interactive="true"] .map-interaction-shield { display: none; }
.map-interaction-toggle {
  position: absolute; z-index: 4;
  right: calc((100% - 2vw - clamp(330px, 32%, 480px)) / 2 - 220px); top: calc(31svh - 88px);
  width: 440px; max-width: calc(100% - 44px); padding: 40px 44px; text-align: left;
  background: var(--paper); color: var(--ink); box-shadow: 0 12px 44px #0b102833;
  transition: top 0.8s var(--ease-both), right 0.8s var(--ease-both), width 0.8s var(--ease-both), padding 0.8s var(--ease-both), background-color 0.3s;
}
.map-interaction-toggle:hover { background: var(--mist); }
.map-toggle-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 40px; letter-spacing: -0.02em; line-height: 1.2; transition: font-size 0.8s var(--ease-both); }
.map-toggle-title .arrow-glyph { font-size: 0.8em; }
.map-toggle-hint { display: block; font-size: 13px; line-height: 1.6; margin-top: 16px; color: var(--muted); }
.location-map-section[data-interactive="true"] .map-interaction-toggle { top: 96px; right: 80px; width: 230px; padding: 18px 22px; }
.location-map-section[data-interactive="true"] .map-toggle-title { font-size: 18px; }
.location-map-section[data-interactive="true"] .map-toggle-hint { margin-top: 6px; font-size: 11px; }
.location-map-card {
  position: relative; z-index: 2; background: var(--mist); color: var(--ink);
  width: 32%; max-width: 480px; min-width: 330px; padding: 32px 28px 24px;
  clip-path: polygon(0 0, 65% 0, 65% 25px, 100% 25px, 100% 100%, 0 100%);
  max-height: calc(100svh - 130px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
}
.location-map-card h2 { font-size: clamp(32px, 3vw, 48px); font-weight: 400; letter-spacing: -0.04em; line-height: 1; margin: 0 0 22px; }
.map-drawer-toggle, .map-mobile-selection { display: none; }
.location-map-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.location-map-filters button { border: 1px solid #cfd3dc; min-height: 34px; padding: 0 11px; font-size: 12px; background: transparent; color: var(--ink); transition: background-color 0.15s, border-color 0.15s; }
.location-map-filters button:hover { border-color: var(--ink); }
.location-map-filters button[aria-pressed="true"] { color: #fff; background: var(--ink); border-color: var(--ink); }
.location-map-filters .n { margin-left: 6px; opacity: 0.7; font-variant-numeric: tabular-nums; }
.location-map-search input { width: 100%; border: 0; border-bottom: 1px solid #c3c8d4; background: transparent; color: var(--ink); font-size: 14px; padding: 12px 0; outline-offset: 3px; }
.location-place-list { list-style: none; margin: 0; padding: 0; display: grid; }
.location-place-list button {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  border-bottom: 1px solid #dfe2e8; padding: 12px 0; font-size: 14px; color: inherit; min-height: 44px;
}
.location-place-list button:hover .lp-name { text-decoration: underline; text-underline-offset: 4px; }
.location-place-list .lp-n { font-size: 11px; color: var(--muted); min-width: 18px; font-variant-numeric: tabular-nums; }
.location-place-list .lp-cat { font-size: 11px; color: var(--muted); }
.location-place-list .lp-mi { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.location-place-list button[aria-current="true"] { font-weight: 600; }
.location-place-list button[aria-current="true"] .lp-n { color: var(--copper-deep); }
.location-place { margin-top: 22px; }
.location-place:empty { display: none; }
.location-place small { font-size: 11px; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.location-place h3 { font-size: 20px; font-weight: 400; margin: 8px 0; letter-spacing: -0.02em; }
.location-place p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.location-place-links { display: flex; gap: 20px; margin-top: 8px; font-size: 13px; }
.location-place-links a { text-decoration: underline; text-underline-offset: 4px; min-height: 32px; display: inline-flex; align-items: center; gap: 4px; }
.location-place { animation: place-reveal 0.45s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes place-reveal { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.location-map-reset { border-bottom: 1px solid #b9bfcc; padding: 10px 0; margin-top: 16px; font-size: 13px; color: var(--ink); }
.location-map-note { font-size: 12px; line-height: 1.5; color: var(--muted); margin: 16px 0 0; }
.location-map-note[hidden] { display: none; }
.location-map-section .maplibregl-ctrl-top-right { top: 96px; right: 20px; }
.location-map-marker {
  border: 1px solid #c8cbd8; border-radius: 50%; background: #2a2f4d; color: #fff;
  width: 36px; height: 36px; cursor: pointer; font: 500 14px Satoshi, Arial, sans-serif; display: grid; place-items: center;
}
.location-map-marker:hover { background: #3a4066; }
.location-map-marker.is-selected { background: #fff; color: var(--ink); outline: 5px solid #ffffff2e; z-index: 5; }
.location-map-marker[hidden] { display: none; }
.location-home-marker { color: #fff; width: 92px; display: block; z-index: 4; }
.location-home-marker svg { display: block; width: 100%; height: auto; }

/* No script: the places list stays open on phones too. */
.location-map-section:not([data-ready]) .map-drawer-content { max-height: none; opacity: 1; visibility: visible; }
.location-map-section:not([data-ready]) .map-interaction-toggle, .location-map-section:not([data-ready]) .map-drawer-toggle { display: none; }

/* ── Amenities: accordion (Skyview AmenitiesContent) on paper ── */
.amenities-collection { background: var(--paper); color: var(--ink); padding: 85px var(--gutter); }
.amenities-collection-label { display: flex; justify-content: space-between; gap: 20px; font-size: 13px; color: var(--muted); margin-bottom: 35px; }
.amenities-accordion article { border-top: 1px solid var(--line); }
.amenities-accordion article:last-child { border-bottom: 1px solid var(--line); }
.amenities-accordion h2 { margin: 0; }
.amenities-accordion h2 button {
  display: flex; align-items: center; text-align: left; width: 100%; gap: 35px; padding: 30px 0;
  font-size: clamp(24px, 3vw, 44px); letter-spacing: -0.035em; line-height: 1.1; color: var(--ink);
}
.amenities-accordion h2 button:hover span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }
.amenities-accordion i { width: 20px; height: 20px; position: relative; margin-left: auto; flex-shrink: 0; }
.amenities-accordion i::before, .amenities-accordion i::after {
  content: ""; position: absolute; background: currentColor; left: 0; top: 9px; width: 20px; height: 1px;
  transition: transform 0.65s var(--ease-both);
}
.amenities-accordion i::after { transform: rotate(90deg); }
.amenities-accordion [data-open="true"] i::after { transform: rotate(0); }
.amenity-collapse { display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows 0.7s var(--ease-both), opacity 0.5s ease, visibility 0.7s; }
.amenity-collapse > div { overflow: hidden; min-height: 0; }
.amenities-accordion [data-open="true"] .amenity-collapse { grid-template-rows: 1fr; opacity: 1; visibility: visible; }
.amenity-content { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8vw; padding: 5px 0 40px 50px; }
.amenity-content .plain-list { font-size: 16px; color: var(--ink-2); }
.amenity-content .amenity-tours { margin-top: 24px; }
.amenity-content img { width: 100%; aspect-ratio: 1.6; object-fit: cover; }
.amenity-content figcaption { font-size: 12px; margin-top: 12px; color: var(--muted); }
.amenities-footnote { font-size: 13px; color: var(--muted); margin-top: 30px; }
.amenities-footnote a { text-decoration: underline; text-underline-offset: 3px; }
.location-page .tour-band, .location-page .amenities-collection { position: relative; }
/* The page text is white on navy; the light tour band sets its own ink (its heading link was white on mist, 1.1:1). */
.location-page .tour-band, .location-page .site-footer { color: var(--ink); }

@media (max-width: 760px) {
  .location-panel { left: 4%; right: 4%; top: 78px; bottom: auto; height: calc(34svh - var(--morph) * 5svh); min-height: 250px; }
  .location-opening h1 { font-size: 7.6vw; top: 5%; right: 4%; }
  .location-kicker { top: 25%; left: 5%; font-size: 12px; }
  .location-opening-copy { font-size: 15px; left: 5%; top: 47%; bottom: auto; max-width: 85%; }
  .location-detail h2 { font-size: 17px; top: 3%; right: 5%; }
  .location-detail > svg { top: 24%; height: 26%; width: 30%; left: 35%; }
  .location-detail > p { font-size: 12px; left: 5%; right: 5%; bottom: 23%; }
  .location-map-marker { width: 30px; height: 30px; font-size: 12px; }
  .location-home-marker { width: 74px; }
  .location-credit { font-size: 10px; bottom: 4%; left: 14%; }
  .location-progress { bottom: 15%; }

  .location-map-section { height: 100svh; min-height: 640px; padding: 0; overflow: hidden; }
  .location-map-canvas { height: 100%; }
  .map-interaction-shield { inset: 0 0 26px; }
  .map-interaction-toggle { top: 90px; right: 64px; width: calc(100% - 86px); max-width: 300px; padding: 18px 20px; }
  .map-toggle-title { font-size: 22px; }
  .map-toggle-hint { font-size: 12px; margin-top: 8px; }
  .location-map-section[data-interactive="true"] .map-interaction-toggle { top: 90px; right: 64px; width: 180px; padding: 12px 16px; }
  .location-map-section[data-interactive="true"] .map-toggle-title { font-size: 15px; }
  .location-map-section[data-interactive="true"] .map-toggle-hint { display: none; }
  .location-map-section .maplibregl-ctrl-top-right { top: 84px; right: 10px; }
  .location-map-card {
    position: absolute; z-index: 3; bottom: 20px; left: 16px; width: calc(100% - 32px); min-width: 0; max-width: none;
    max-height: 62svh; padding: 0; clip-path: none; border-radius: 6px; overflow: clip; box-shadow: 0 6px 30px #0002;
  }
  .map-drawer-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 20px; min-height: 56px; color: var(--ink); background: var(--mist); font-size: 18px; }
  .map-mobile-selection { display: block; margin: 0; padding: 0 20px 16px; font-size: 13px; color: var(--muted); }
  .map-drawer-content {
    max-height: 0; padding: 0 20px; opacity: 0; visibility: hidden; overflow: hidden;
    transition: max-height 0.55s var(--ease-both), opacity 0.3s ease, visibility 0.55s;
  }
  .location-map-card[data-open="true"] { position: fixed; left: 16px; right: 16px; bottom: 20px; width: auto; z-index: 20; }
  .location-map-card[data-open="true"] .map-drawer-content { max-height: calc(62svh - 56px); padding-bottom: 24px; opacity: 1; visibility: visible; overflow-y: auto; overscroll-behavior: contain; }
  .location-map-card[data-open="true"] .map-mobile-selection { display: none; }
  .location-map-card h2 { display: none; }
  .location-map-filters button { min-height: 40px; }
  .location-map-search input { font-size: 16px; }
  .location-map-card .location-place { display: none; }

  .amenities-collection { padding: 55px 22px; }
  .amenities-collection-label > span:last-child { display: none; }
  .amenities-accordion h2 button { gap: 16px; padding: 25px 0; }
  .amenity-content { grid-template-columns: 1fr; padding-left: 0; gap: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .location-detail, .amenity-collapse, .amenities-accordion i::after, .map-interaction-toggle, .map-toggle-title, .map-drawer-content { transition: none; }
  .location-scene { will-change: auto; }
  .location-scene img, .location-hero-photo img { transform: none; will-change: auto; }
  .location-place { animation: none; }
}
