/* Lifestyle page: neighbourhood map. Shares tokens from styles.css and the nav/back-link styles from plans.css. */
.ls {
  --hair: color-mix(in srgb, var(--upper) 22%, transparent);
  --muted: var(--muted-dark);
  --caps: 700 10.5px/1.2 var(--sans);
  max-width: 1400px; margin: 0 auto; padding: 152px var(--pad) 0; font-size: 14px; font-variant-numeric: lining-nums;
}
.ls__eyebrow { font: var(--caps); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ls__h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 2.6vw, 40px); line-height: 1; letter-spacing: -.01em; }

/* head */
.ls__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: end; padding-bottom: 56px; border-bottom: 1px solid var(--upper); }
.ls__head .fp__back { display: inline-flex; margin-bottom: 26px; }
.ls__title { font-family: var(--serif); font-weight: 500; font-size: clamp(56px, 7vw, 108px); line-height: .9; letter-spacing: -.02em; margin: 14px 0 22px; }
.ls__lede { max-width: 30em; color: var(--muted); font-size: 16px; line-height: 1.5; }
.ls__hero { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; }
.ls__hero img { width: 100%; height: 100%; object-fit: cover; object-position: 46% 60%; }

/* map section */
.ls__map-section { padding: 56px 0 24px; }
.ls__map-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.ls__filters { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.ls__filters button {
  position: relative; padding: 6px 0; font: var(--caps); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  transition: color .4s var(--ease);
}
.ls__filters button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.ls__filters button:hover { color: var(--upper); }
.ls__filters button:hover::after { transform: scaleX(1); transform-origin: left; }
.ls__filters button[aria-pressed="true"] { color: var(--upper); }
.ls__filters button[aria-pressed="true"]::after { transform: scaleX(1); height: 2px; }
.ls__filters i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; vertical-align: 1px; background: var(--dot, var(--upper)); }

.ls__map-grid { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 0; border: 1px solid var(--hair); height: clamp(460px, calc(100svh - 220px), 720px); }

/* list */
.ls__list { list-style: none; margin: 0; padding: 0; overflow-y: auto; border-right: 1px solid var(--hair); overscroll-behavior: contain; }
.ls__list li[hidden] { display: none; }
.ls__item {
  position: relative; display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: baseline; width: 100%;
  padding: 14px 18px 14px 16px; border-bottom: 1px solid var(--hair); text-align: left; isolation: isolate; transition: color .3s var(--ease);
}
.ls__item::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--ocean) 50%, transparent); transform: scaleX(0); transform-origin: right; transition: transform .55s var(--ease); }
.ls__item:hover::before, .ls__item.is-hover::before { transform: scaleX(1); transform-origin: left; }
.ls__item.is-active { background: var(--upper); color: var(--essentials); }
.ls__item.is-active::before { display: none; }
.ls__num { font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1; }
.ls__name { font-size: 14px; line-height: 1.3; }
.ls__name small { display: block; margin-top: 3px; font: var(--caps); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ls__item.is-active small { color: color-mix(in srgb, var(--essentials) 70%, transparent); }
.ls__dist { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.ls__item.is-active .ls__dist { color: var(--ocean); }
.ls__blurb { grid-column: 2 / -1; margin-top: 6px; font-size: 13px; line-height: 1.45; display: none; }
.ls__item.is-active .ls__blurb { display: block; }

/* map */
.ls__map-wrap { position: relative; min-width: 0; }
.ls__map { position: absolute; inset: 0; background: var(--essentials); }
/* branded basemap: sea in Ocean, land in Essentials (drawn by lifestyle.js) */
.ls__map.leaflet-container { background: var(--ocean); --map-gold: #A8803F; }
.ls__map .leaflet-blocks-pane canvas { filter: drop-shadow(-3px 3px 0 #DDCBB0); }
.ls-lbl { width: 0 !important; height: 0 !important; }
.ls-lbl span { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); white-space: nowrap; color: var(--upper); }
.ls-lbl--suburb span {
  font: 565 13px/1 "Instrument Sans", var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--map-gold);
  text-shadow: 0 0 3px #FFFDF9, 0 0 3px #FFFDF9, 0 0 6px #FFFDF9;
}
.ls-lbl--bay span { font: 700 10.5px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: #3F7FA8; }
.ls-lbl--point span {
  font: 700 8.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: color-mix(in srgb, var(--map-gold) 80%, #6b5a40);
  text-shadow: 0 0 3px #FFFDF9, 0 0 3px #FFFDF9; opacity: 0; transition: opacity .3s;
}
.ls-lbl--road span {
  font: 700 9px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--map-gold);
  text-shadow: 0 0 2px #EFE3D1, 0 0 2px #EFE3D1, 0 0 4px #EFE3D1; opacity: 0; transition: opacity .3s;
}
.ls__map.show-points .ls-lbl--point span, .ls__map.show-roads .ls-lbl--road span { opacity: 1; }
.ls__map[data-zoom="12"] .ls-lbl--suburb span { font-size: 11px; }
.ls__map-hint {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 500; pointer-events: none;
  padding: 7px 12px; background: var(--upper); color: var(--essentials); font-size: 12px; transition: opacity .5s var(--ease);
}
.ls__map-hint.is-off { opacity: 0; }
.ls__source { margin-top: 12px; font-size: 11px; color: var(--muted); }

/* leaflet chrome in the site's style */
.ls .leaflet-container { font-family: var(--sans); }
.ls .leaflet-control-zoom { border: 0 !important; box-shadow: none !important; display: flex; flex-direction: column; }
.ls .leaflet-control-zoom a {
  width: 36px; height: 34px; line-height: 32px; border: 1px solid var(--upper) !important; border-radius: 0 !important; margin-top: -1px;
  background: var(--essentials); color: var(--upper); font: 400 18px/32px var(--sans); transition: background .3s var(--ease), color .3s var(--ease);
}
.ls .leaflet-control-zoom a:hover { background: var(--upper); color: var(--essentials); }
.ls .leaflet-control-attribution { background: color-mix(in srgb, var(--essentials) 85%, transparent); color: var(--muted); font-size: 10px; }
.ls .leaflet-control-attribution a { color: var(--upper); }

/* markers */
.ls-pin { width: 26px; height: 26px; }
.ls-pin span {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #FFFDF9; color: var(--dot, var(--upper));
  border: 2px solid var(--dot, var(--upper)); font: 600 12.5px/1 "Instrument Sans", var(--sans); font-variant-numeric: lining-nums;
  box-shadow: 0 6px 14px -8px rgba(40, 14, 6, .6); transition: transform .35s var(--ease), background .3s, color .3s;
}
.ls-pin.is-hover span { transform: scale(1.18); background: var(--ocean); }
.ls-pin.is-active span { transform: scale(1.25); background: var(--map-gold); color: #FFFDF9; border-color: var(--map-gold); }
.ls-pin.is-dim span { opacity: .25; }
.ls-home { width: 0 !important; height: 0 !important; }
.ls-home__pin { position: absolute; left: 0; top: 0; width: 30px; height: 40px; transform: translate(-50%, -100%); filter: drop-shadow(0 6px 6px rgba(80, 50, 10, .3)); }
.ls-home__pin svg { display: block; width: 100%; height: 100%; }
.ls-home__pin path { fill: var(--map-gold); }
.ls-home__pin circle { fill: #FFFDF9; }
.ls-home__mark {
  position: absolute; left: 22px; top: -26px; display: grid; justify-items: center; white-space: nowrap; color: var(--map-gold);
  font: 565 21px/1 "Instrument Sans", var(--sans); letter-spacing: .14em; text-transform: uppercase;
}
.ls-home__mark small { margin-top: 5px; font: 700 8.5px/1 var(--sans); letter-spacing: .42em; padding-left: .42em; }
.ls-figure { width: 0 !important; height: 0 !important; pointer-events: none; }
.ls__map .leaflet-marker-pane .ls-figure img { position: absolute; left: -150px; top: -30px; width: 118px !important; height: auto !important; max-width: none; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .5s var(--ease); }
.ls__map.show-points .leaflet-marker-pane .ls-figure img { opacity: 1; transform: none; }

/* tooltip */
.ls .leaflet-tooltip.ls-tip {
  padding: 8px 11px 9px; background: var(--upper); color: var(--essentials); border: 0; border-radius: 0; box-shadow: 0 10px 30px -14px rgba(40, 14, 6, .6);
  font-size: 12px; line-height: 1.35; white-space: nowrap;
}
.ls .leaflet-tooltip.ls-tip::before { border-top-color: var(--upper); }
.ls-tip strong { display: block; font: 700 10.5px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ocean); margin-bottom: 3px; }
.ls-tip em { font-style: normal; font-family: var(--serif); font-weight: 500; font-size: 18px; }

/* further afield + cta */
.ls__further { padding: 40px 0; border-top: 1px solid var(--hair); }
.ls__further-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px 64px; }
.ls__further-list li { display: grid; gap: 6px; }
.ls__further-list strong { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 3vw, 48px); line-height: 1; }
.ls__further-list span { font-size: 13px; color: var(--muted); }
.ls__cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 56px 0 80px; border-top: 1px solid var(--upper); }

/* category colours, kept within the palette */
[data-cat="bay"] { --dot: #4F8DB5; }
[data-cat="eat"] { --dot: #A0522D; }
[data-cat="culture"] { --dot: #8A6A3F; }
[data-cat="shop"] { --dot: #662B17; }
[data-cat="learn"] { --dot: #6E7F5A; }
[data-cat="move"] { --dot: #3E4A57; }

@media (max-width: 900px) {
  .ls { padding-top: 120px; }
  .ls__head { grid-template-columns: 1fr; gap: 28px; padding-bottom: 36px; }
  .ls__map-grid { grid-template-columns: 1fr; grid-template-rows: 62svh auto; height: auto; }
  .ls__map-wrap { order: -1; }
  .ls__list { max-height: 46svh; border-right: 0; border-top: 1px solid var(--hair); }
}
@media (max-width: 560px) {
  .ls { padding-top: 104px; }
  .ls__filters { gap: 4px 16px; }
  .ls__further-list { gap: 18px 36px; }
}

/* ---------- story: a day at Woody Point (reuses the home page's section styles from styles.css) ---------- */
/* breaks out of the .ls container to full width, like the home page sections */
.ls-story { width: 100vw; margin-left: calc(50% - 50vw); background: var(--essentials); color: var(--upper); }
.ls-story__intro { padding-top: 6svh; }
.ls-story__intro .intro__line { background: var(--upper); }
/* the story heading is the page's h1 now the old header block is gone; same look as the home intro h2 */
.ls-story__intro h1 { font-family: var(--serif); font-weight: 500; font-size: calc(var(--h2) * 1.15); line-height: 1; letter-spacing: -.01em; max-width: 64vw; }
@media (max-width: 1024px) { .ls-story__intro h1 { max-width: none; } }
.ls-story__intro p { color: var(--muted-dark); }
.ls-story__parallax { background: var(--essentials); }
.ls-story__values { padding-top: 16svh; }
.ls-story__time { font: 700 10.5px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 2.4svh; }
.ls-story__outro { padding-bottom: 14svh; }
.ls-story__pull { padding-bottom: 18svh; }
.ls-story + .ls__map-section { border-top: 1px solid var(--upper); }

/* marquee runs on CSS here (the home page drives it with GSAP) */
@keyframes ls-marquee { to { transform: translateX(-50%); } }
.ls-marquee .marquee__track { animation: ls-marquee 26s linear infinite; }

/* reveals: images wipe up, text rises (toggled by ls-story.js) */
.ls-reveal { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease); }
.ls-reveal img, .ls-reveal video { transform: scale(1.25); transition: transform 2s var(--ease-out); }
.ls-reveal.is-in { clip-path: inset(0 0 0 0); }
.ls-reveal.is-in img, .ls-reveal.is-in video { transform: scale(1); }
.ls-rise { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.ls-rise.is-in { opacity: 1; transform: none; }
.ls-story .intro__line { transform: scaleY(0); transform-origin: top; transition: transform 1.4s var(--ease); }
.ls-story .intro__line.is-in { transform: scaleY(1); }
@media (prefers-reduced-motion: reduce) {
  .ls-reveal, .ls-rise, .ls-story .intro__line { clip-path: none; opacity: 1; transform: none; }
  .ls-marquee .marquee__track { animation: none; }
}

/* place line under each story row */
.ls-story__place { margin-top: 2.4svh; font: 700 10.5px/1.5 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--upper); }
/* full-bleed story images are framed smaller so the photos stay crisp */
.ls-story__parallax { width: min(1180px, calc(100% - var(--pad) * 2)); height: auto; aspect-ratio: 21 / 9; margin: 0 auto; }
.ls-story__parallax + .ls-story__parallax, .ls-story__outro + .ls-story__parallax { aspect-ratio: 16 / 10; margin-bottom: 16svh; }
@media (max-width: 650px) and (orientation: portrait) { .ls-story__parallax { aspect-ratio: 4 / 3 !important; } }

/* illustrated couple at the top of the story (transparent PNG) */
.ls-story__illustration { display: block; width: min(380px, 62vw); height: auto; margin: 0 auto 4svh; }
/* the coastline photo is only 2000 px wide, so keep its parallax overscan small to avoid upscaling it */
.ls-story__parallax .parallax__viewport img[data-ls-parallax] { height: 112%; top: -6%; }
/* marketplace photo: larger and in its own portrait shape (client comment 2026-10-13) */
.ls-story .quote { align-items: center; }
.ls-story .quote__figure { grid-column: 1 / 6; aspect-ratio: 4 / 5; }
.ls-story .quote__text, .ls-story .quote__attrib { grid-column: 7 / 13; }
@media (max-width: 650px) and (orientation: portrait) {
  .ls-story .quote__figure { width: 100%; grid-column: 1; }
  .ls-story .quote__text, .ls-story .quote__attrib { grid-column: 1; }
}

.ls-story .quote__figure video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* "Right behind the marketplace": close-up illustrated site map (svg built by tools/build_sitemap.py) */
.ls-story + .ls-site { border-top: 1px solid var(--upper); }
.ls-site { padding: 56px 0 24px; --map-gold: #A8803F; }
.ls-site + .ls__map-section { padding-top: 32px; }
.ls-site__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 56px; align-items: end; margin-bottom: 28px; }
.ls-site__eyebrow { grid-column: 1 / -1; font: var(--caps); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.ls-site__lede { max-width: 34em; color: var(--muted); font-size: 16px; line-height: 1.5; }
.ls-site__map { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--hair); background: #EFE3D1; }
.ls-site__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ls-site__street { font: 565 15px/1 "Instrument Sans", var(--sans); letter-spacing: .26em; fill: var(--map-gold); }
.ls-site__word { font: 565 54px/1 "Instrument Sans", var(--sans); letter-spacing: .04em; fill: var(--map-gold); }
.ls-site__addr { font: 700 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; fill: var(--map-gold); }
.ls-site__place { font: 700 10.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; fill: color-mix(in srgb, var(--map-gold) 80%, #6b5a40); }
.ls-site__label { font: 700 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; fill: var(--map-gold); }
@media (max-width: 760px) {
  .ls-site__head { grid-template-columns: 1fr; row-gap: 16px; }
  .ls-site__map { aspect-ratio: 4 / 5; }
  .ls-site__street { font-size: 19px; }
  .ls-site__word { font-size: 66px; }
  .ls-site__addr, .ls-site__place, .ls-site__label { font-size: 16px; }
}

/* keep Leaflet's panes and controls (z-index 400–1000) inside the map, so the menu and enquiry panel sit above it */
.ls__map-wrap { isolation: isolate; }
.ls-site__photo { margin: 0 0 28px; border: 1px solid var(--hair); overflow: hidden; }
.ls-site__photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 760px) { .ls-site__photo { margin-bottom: 20px; } .ls-site__photo img { aspect-ratio: 4 / 3; } }
