/* =========================================================================
   Mahandra Collective — listings page (listings.html)
   Filter bar · cards · illustrated Bali map · detail dialog.
   Uses the tokens from site.css; the map has two looks:
   Kapur (limestone, default) and Senja (dusk) — .lx-map[data-look="senja"].
   ========================================================================= */

.lx-intro { padding-bottom: clamp(2rem, 4vw, 3.4rem); }
.lx-intro .section-head { margin-bottom: 0; }
.lx-sample-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .8rem;
  max-width: 52rem;
  margin: clamp(1.6rem, 3vw, 2.4rem) 0 0;
  padding: .85rem 1.1rem;
  border-left: 2px solid var(--brass);
  background: rgba(166, 129, 76, .08);
  font-size: .9rem;
  line-height: 1.55;
  color: var(--fg-soft);
}
.lx-badge {
  display: inline-flex;
  align-items: center;
  height: 1.45rem;
  padding: 0 .6rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .58rem;
  font-weight: 500;
  font-style: normal;
  letter-spacing: .2em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--accent-text);
  white-space: nowrap;
}
.lx-badge--dark { background: var(--ink); border-color: var(--ink); color: var(--lime); }

/* ---------- filter bar ---------- */
.lx { --lx-top: 72px; --lx-bar-h: 78px; position: relative; }
.lx-bar {
  position: sticky;
  top: var(--lx-top);
  z-index: 40;
  border-block: 1px solid var(--rule);
  background: rgba(243, 238, 229, .92);
  -webkit-backdrop-filter: saturate(1.1) blur(14px);
  backdrop-filter: saturate(1.1) blur(14px);
}
.lx-bar-inner {
  display: flex;
  align-items: flex-end;
  gap: .9rem;
  max-width: none;
  padding-block: .85rem .9rem;
}
.lx-bar-more { display: flex; align-items: flex-end; gap: .9rem; min-width: 0; }
.lx-sheet-head, .lx-sheet-foot, .lx-filters-toggle { display: none; }

.lx-seg {
  display: inline-flex;
  flex: none;
  padding: 3px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
}
.lx-seg label { position: relative; }
.lx-seg input { position: absolute; opacity: 0; pointer-events: none; }
.lx-seg span {
  display: inline-flex;
  align-items: center;
  height: 2.35rem;
  padding: 0 1.15rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.lx-seg input:checked + span { background: var(--ink); color: var(--lime); }
.lx-seg input:focus-visible + span { outline: 1px solid var(--brass-deep); outline-offset: 2px; }

.lx-ctl { position: relative; display: grid; gap: .2rem; min-width: 0; }
.lx-ctl-label {
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.lx-ctl select, .lx-pop-btn, .lx-sort select {
  -webkit-appearance: none;
  appearance: none;
  height: 2.35rem;
  min-width: 7.5rem;
  max-width: 15rem;
  padding: 0 1.9rem 0 0;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231B231E'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right .15rem center;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .3s var(--ease);
}
.lx-ctl select:hover, .lx-pop-btn:hover, .lx-sort select:hover { border-bottom-color: var(--ink); }
.lx-ctl select:focus-visible, .lx-pop-btn:focus-visible, .lx-sort select:focus-visible {
  outline: none;
  border-bottom-color: var(--brass-deep);
  box-shadow: 0 1px 0 var(--brass-deep);
}
.lx-pop-btn[aria-expanded="true"] { border-bottom-color: var(--ink); }
.lx-pop-btn.is-set, .lx-ctl select.is-set { color: var(--brass-deep); border-bottom-color: var(--brass); }

.lx-pop {
  position: absolute;
  top: calc(100% + .8rem);
  left: -1.2rem;
  z-index: 5;
  width: 22rem;
  padding: 1.3rem 1.3rem 1.2rem;
  border: 1px solid var(--rule-strong);
  background: var(--lime);
  box-shadow: 0 30px 60px -30px rgba(27, 35, 30, .45);
}
.lx-pop--wide { width: 30rem; }
.lx-pop-title { margin: 0 0 1rem; font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; }
.lx-pop-hint { display: block; margin-top: .2rem; font-family: var(--sans); font-size: .78rem; color: var(--fg-muted); }
.lx-pop-foot { margin: .9rem 0 0; font-size: .78rem; line-height: 1.5; color: var(--fg-muted); }
.lx-pop-foot:empty { display: none; }

.lx-range { position: relative; height: 2rem; margin: 0 .55rem; }
.lx-range-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--rule-strong);
}
.lx-range-fill { position: absolute; top: -1px; height: 3px; background: var(--ink); }
.lx-range input {
  position: absolute;
  inset: 0 -.55rem;
  width: calc(100% + 1.1rem);
  height: 100%;
  margin: 0;
  background: none;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
}
.lx-range input::-webkit-slider-runnable-track { background: none; border: 0; }
.lx-range input::-moz-range-track { background: none; border: 0; }
.lx-range input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.1rem;
  height: 1.1rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 2px 6px rgba(27, 35, 30, .25);
  pointer-events: auto;
  cursor: grab;
}
.lx-range input::-moz-range-thumb {
  width: 1.1rem;
  height: 1.1rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 2px 6px rgba(27, 35, 30, .25);
  pointer-events: auto;
  cursor: grab;
}
.lx-range input:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--brass-deep); outline-offset: 2px; }
.lx-range input:focus-visible::-moz-range-thumb { outline: 2px solid var(--brass-deep); outline-offset: 2px; }
.lx-range-values {
  display: flex;
  justify-content: space-between;
  gap: .6rem;
  margin: .5rem 0 1rem;
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
}
.lx-range-values span { color: var(--fg-muted); }
.lx-presets { display: flex; flex-wrap: wrap; gap: .45rem; }
.lx-preset {
  height: 2.1rem;
  padding: 0 .9rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: transparent;
  font-size: .82rem;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.lx-preset:hover { border-color: var(--ink); }
.lx-preset[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--lime); }

.lx-fs { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.1rem; padding: 0; border: 0; }
.lx-fs:last-child { margin-bottom: 0; }
.lx-fs legend {
  width: 100%;
  margin-bottom: .55rem;
  padding: 0;
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.lx-fs .chip { position: relative; font-size: .85rem; }
.lx-fs .chip span { height: 2.2rem; padding: 0 .95rem; font-size: .84rem; }
.lx-fs[hidden] { display: none; }

.lx-usd {
  flex: none;
  height: 2.35rem;
  margin-left: auto;
  padding: 0 .95rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: transparent;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.lx-usd:hover { border-color: var(--ink); }
.lx-usd[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--lime); }

.lx-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.lx-icon-btn svg { width: 1.1rem; height: 1.1rem; }
.lx-icon-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--lime); }
.lx-icon-btn[aria-pressed="true"] { border-color: var(--ink); }

/* ---------- list + map layout ---------- */
.lx-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: start;
}
.lx-list { padding: 1.4rem clamp(1.2rem, 2.4vw, 2.4rem) 4rem var(--gutter); min-width: 0; }
.lx-mapcol {
  position: sticky;
  top: calc(var(--lx-top) + var(--lx-bar-h));
  height: calc(100vh - var(--lx-top) - var(--lx-bar-h));
  height: calc(100svh - var(--lx-top) - var(--lx-bar-h));
  min-height: 460px;
}

.lx-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1.4rem;
  margin-bottom: .9rem;
}
.lx-count { margin: 0; font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; }
.lx-count em { color: var(--accent-text); }
.lx-sort select { min-width: 0; font-size: .88rem; }
.lx-inview {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .84rem;
  color: var(--fg-soft);
  cursor: pointer;
}
.lx-inview input { width: 1rem; height: 1rem; margin: 0; accent-color: var(--ink); }
.lx-summary-right { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; }

.lx-active { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.2rem; }
.lx-active:empty { display: none; }
.lx-active button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  height: 2rem;
  padding: 0 .8rem 0 .95rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .35);
  font-size: .8rem;
  cursor: pointer;
}
.lx-active button::after { content: "×"; font-size: 1rem; line-height: 1; color: var(--fg-muted); }
.lx-active button:hover { border-color: var(--ink); }
.lx-active .lx-clear { border-color: transparent; background: none; text-decoration: underline; text-underline-offset: 3px; }
.lx-active .lx-clear::after { content: none; }

/* ---------- cards ---------- */
.lx-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
  gap: clamp(1.8rem, 2.6vw, 2.6rem) clamp(1rem, 1.8vw, 1.6rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.lx-card { min-width: 0; }
.lx-card-link {
  display: grid;
  color: inherit;
  text-decoration: none;
  border-radius: 2px;
}
.lx-card-art {
  aspect-ratio: 5 / 4;
  border-radius: 50% 50% 0 0 / 5.5rem 5.5rem 0 0;
  transition: box-shadow .5s var(--ease);
}
.lx-card-art .scene-fronds { animation: none; }
.lx-card-link:hover .scene, .lx-card.is-hot .scene { transform: scale(1.045); }
.lx-card.is-hot .lx-card-art { box-shadow: 0 0 0 1px var(--brass), 0 24px 40px -28px rgba(27, 35, 30, .6); }
.lx-card-flag {
  position: absolute;
  z-index: 3;
  left: .8rem;
  bottom: .8rem;
  display: flex;
  gap: .35rem;
}
.lx-card-flag .lx-badge { background: rgba(243, 238, 229, .92); border-color: transparent; color: var(--ink); }
.lx-card-flag .lx-badge--dark { background: var(--ink); color: var(--lime); }
.lx-card-body { padding-top: 1rem; }
.lx-kicker {
  margin: 0 0 .35rem;
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.lx-card-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.12;
  text-wrap: balance;
}
.lx-card-link:hover .lx-card-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.lx-place { margin: .3rem 0 .6rem; font-size: .88rem; color: var(--fg-muted); }
.lx-specs {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem .9rem;
  margin: 0 0 .7rem;
  padding: 0;
  list-style: none;
  font-size: .84rem;
  color: var(--fg-soft);
}
.lx-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .15rem .6rem;
  margin: 0;
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.2;
}
.lx-price small { font-family: var(--sans); font-size: .8rem; color: var(--fg-muted); }
.lx-checks {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .75rem;
  margin: .7rem 0 0;
  padding: .65rem 0 0;
  border-top: 1px solid var(--rule);
  list-style: none;
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--fg-muted);
}
.lx-checks li { display: inline-flex; align-items: center; gap: .3rem; }
.lx-checks li::before {
  content: "";
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  border: 1px solid currentColor;
}
.lx-checks .is-verified { color: var(--moss); }
.lx-checks .is-verified::before { background: currentColor; }
.lx-checks .is-in_progress::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.lx-card[data-status="under_offer"] .lx-card-art .scene { filter: saturate(.7); }

.lx-empty { max-width: 32rem; padding: 2rem 0; }
.lx-empty .display-3 { margin-bottom: .8rem; }
.lx-empty em { font-style: italic; color: var(--accent); }

/* ---------- map ---------- */
.lx-map {
  --m-sea: #ECE5D8;
  --m-sea-deep: #E5DCCB;
  --m-ripple: rgba(127, 97, 54, .3);
  --m-land: #E0D3BC;
  --m-land-service: #D6BE94;
  --m-land-hover: #CBAE7C;
  --m-land-active: #C2A06A;
  --m-coast: rgba(27, 35, 30, .62);
  --m-border: rgba(27, 35, 30, .3);
  --m-lake: #D8DCD0;
  --m-label: #5E5A52;
  --m-label-strong: #1B231E;
  --m-halo: rgba(236, 229, 216, .9);
  --m-pin-bg: #F3EEE5;
  --m-pin-fg: #1B231E;
  --m-pin-line: rgba(27, 35, 30, .35);
  --m-pin-hot-bg: #1B231E;
  --m-pin-hot-fg: #F3EEE5;
  --m-ui-bg: rgba(243, 238, 229, .92);
  --m-line: #7F6136;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  background: var(--m-sea);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
  transition: background-color .6s var(--ease);
}
.lx-map[data-look="senja"] {
  --m-sea: #1F2822;
  --m-sea-deep: #151B17;
  --m-ripple: rgba(201, 165, 110, .28);
  --m-land: #2A332C;
  --m-land-service: #3A3B2B;
  --m-land-hover: #4A4630;
  --m-land-active: #564E33;
  --m-coast: rgba(201, 165, 110, .85);
  --m-border: rgba(243, 238, 229, .2);
  --m-lake: #1A2320;
  --m-label: rgba(243, 238, 229, .62);
  --m-label-strong: #F3EEE5;
  --m-halo: rgba(27, 35, 30, .85);
  --m-pin-bg: #26302A;
  --m-pin-fg: #F3EEE5;
  --m-pin-line: rgba(201, 165, 110, .6);
  --m-pin-hot-bg: #C9A56E;
  --m-pin-hot-fg: #1B231E;
  --m-ui-bg: rgba(27, 35, 30, .88);
  --m-line: #C9A56E;
  color: var(--lime);
}
.lx-map:focus-visible { box-shadow: inset 0 0 0 2px var(--brass-deep); }
.lx-map.is-dragging { cursor: grabbing; }
.lx-map-stage { position: absolute; inset: 0; }
.lx-map-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 95% at 55% 45%, transparent 45%, var(--m-sea-deep) 130%);
  opacity: .9;
  pointer-events: none;
}
.lx-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lx-svg path, .lx-svg ellipse { vector-effect: non-scaling-stroke; }
.lx-ripple { fill: none; stroke-linejoin: round; }
.lx-ripple--line { stroke: var(--m-ripple); }
.lx-ripple--gap { stroke: var(--m-sea); }
.lx-ripple--shelf { stroke: var(--m-sea-deep); opacity: .5; }
.lx-map[data-look="senja"] .lx-ripple--shelf { stroke: #26302A; opacity: .6; }
.lx-reg {
  fill: var(--m-land);
  stroke: var(--m-border);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  transition: fill .35s var(--ease);
}
.lx-reg.is-service { fill: var(--m-land-service); cursor: pointer; }
.lx-reg.is-service:hover { fill: var(--m-land-hover); }
.lx-reg.is-active { fill: var(--m-land-active); }
.lx-reg.is-dim { fill: var(--m-land); }
.lx-coast { fill: none; stroke: var(--m-coast); stroke-width: 1.1; stroke-linejoin: round; pointer-events: none; }
.lx-lake { fill: var(--m-lake); stroke: var(--m-coast); stroke-width: .8; pointer-events: none; }

.lx-overlay { position: absolute; inset: 0; pointer-events: none; }
.lx-overlay > * { position: absolute; left: 0; top: 0; will-change: transform; }
.lx-lines { width: 100%; height: 100%; overflow: visible; }
.lx-lines line { stroke: var(--m-line); stroke-width: 1.2; stroke-dasharray: 4 4; }
.lx-lines circle { fill: var(--m-line); }
.lx-lines .lx-approx { fill: rgba(166, 129, 76, .16); stroke: var(--m-line); stroke-width: 1; stroke-dasharray: 2 3; }
.lx-dist {
  padding: .1rem .45rem;
  border-radius: 999px;
  background: var(--m-ui-bg);
  font-size: .7rem;
  letter-spacing: .04em;
  color: var(--m-label-strong);
  white-space: nowrap;
  transform-origin: 0 0;
}

.lx-rlabel, .lx-alabel, .lx-lm {
  white-space: nowrap;
  text-shadow: 0 0 3px var(--m-halo), 0 0 8px var(--m-halo);
  transition: opacity .35s var(--ease);
}
.lx-rlabel {
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--m-label);
}
.lx-rlabel.is-service { color: var(--m-label-strong); font-weight: 600; letter-spacing: .34em; }
.lx-alabel {
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--m-label-strong);
}
.lx-lm {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
  font-size: .62rem;
  letter-spacing: .06em;
  color: var(--m-label);
}
.lx-lm svg { width: 18px; height: 18px; color: var(--m-label-strong); }
.lx-lm small { font-size: .56rem; opacity: .8; }
.lx-lm--beach svg { width: 8px; height: 8px; }
.lx-hide { opacity: 0 !important; visibility: hidden; }
.lx-map.no-landmarks .lx-lm { opacity: 0; visibility: hidden; }

.lx-pin {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  height: 1.75rem;
  padding: 0 .6rem;
  border: 1px solid var(--m-pin-line);
  border-radius: 1rem 1rem .35rem .35rem;
  background: var(--m-pin-bg);
  box-shadow: 0 6px 14px -8px rgba(27, 35, 30, .55);
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--m-pin-fg);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.lx-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-right: 1px solid var(--m-pin-line);
  border-bottom: 1px solid var(--m-pin-line);
  background: inherit;
  transform: rotate(45deg);
}
.lx-pin.is-offer { opacity: .78; }
.lx-pin:hover, .lx-pin.is-hot, .lx-pin.is-selected {
  z-index: 3;
  background: var(--m-pin-hot-bg);
  border-color: var(--m-pin-hot-bg);
  color: var(--m-pin-hot-fg);
}
.lx-pin:focus-visible { outline: 2px solid var(--brass-deep); outline-offset: 3px; }
.lx-cluster {
  pointer-events: auto;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid var(--m-pin-line);
  border-radius: 50%;
  background: var(--m-pin-bg);
  box-shadow: 0 0 0 4px rgba(166, 129, 76, .22), 0 8px 18px -10px rgba(27, 35, 30, .6);
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--m-pin-fg);
  cursor: pointer;
}
.lx-cluster:hover, .lx-cluster.is-hot { background: var(--m-pin-hot-bg); color: var(--m-pin-hot-fg); }
.lx-cluster:focus-visible { outline: 2px solid var(--brass-deep); outline-offset: 3px; }

.lx-map-palm {
  position: absolute;
  right: -8%;
  top: -10%;
  z-index: 1;
  width: 62%;
  aspect-ratio: 4 / 3;
  background: url("../img/palm-shadow.svg") no-repeat right top / contain;
  opacity: .06;
  filter: blur(3px);
  pointer-events: none;
  transform-origin: 100% 0;
  animation: lx-sway 14s ease-in-out infinite alternate;
}
.lx-map[data-look="senja"] .lx-map-palm { opacity: .1; filter: blur(3px) invert(1); }
@keyframes lx-sway { from { transform: rotate(-1.4deg); } to { transform: rotate(1.8deg); } }

.lx-map-cartouche {
  position: absolute;
  left: 1.1rem;
  top: 1rem;
  z-index: 2;
  display: grid;
  gap: .1rem;
  pointer-events: none;
}
.lx-cart-title { font-family: var(--serif); font-size: 1.45rem; font-style: italic; line-height: 1; color: var(--m-label-strong); }
.lx-cart-sub { font-size: .58rem; letter-spacing: .26em; text-transform: uppercase; color: var(--m-label); }

.lx-map-controls {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 4;
  display: grid;
  gap: .4rem;
}
.lx-map-controls .lx-icon-btn { background: var(--m-ui-bg); color: var(--m-label-strong); border-color: var(--m-pin-line); }
.lx-map-controls .lx-icon-btn:hover { background: var(--m-pin-hot-bg); color: var(--m-pin-hot-fg); border-color: var(--m-pin-hot-bg); }
.lx-map-controls .lx-icon-btn[aria-pressed="false"] { opacity: .6; }

.lx-map-legend {
  position: absolute;
  left: 1.1rem;
  bottom: 2.4rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .68rem;
  letter-spacing: .06em;
  color: var(--m-label);
  pointer-events: none;
}
.lx-legend-swatch { width: 1.4rem; height: .8rem; border: 1px solid var(--m-coast); background: var(--m-land-service); }
.lx-map-scale {
  position: absolute;
  left: 1.1rem;
  bottom: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .64rem;
  letter-spacing: .08em;
  color: var(--m-label);
  pointer-events: none;
}
.lx-scale-bar {
  display: block;
  height: 5px;
  border: 1px solid var(--m-label-strong);
  border-top: 0;
  background: linear-gradient(90deg, var(--m-label-strong) 50%, transparent 50%) 0 100% / 100% 2px no-repeat;
}
.lx-map-attrib {
  position: absolute;
  right: .8rem;
  bottom: .5rem;
  z-index: 2;
  margin: 0;
  max-width: 60%;
  font-size: .56rem;
  line-height: 1.3;
  text-align: right;
  color: var(--m-label);
  opacity: .8;
  pointer-events: none;
}

.lx-tip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 6;
  padding: .45rem .7rem;
  border: 1px solid var(--m-pin-line);
  background: var(--m-ui-bg);
  font-size: .78rem;
  line-height: 1.35;
  color: var(--m-label-strong);
  white-space: nowrap;
  pointer-events: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lx-tip strong { display: block; font-family: var(--serif); font-size: 1.05rem; font-weight: 500; }

.lx-hint {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 8;
  margin: 0;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  background: rgba(27, 35, 30, .82);
  color: var(--lime);
  font-size: .8rem;
  letter-spacing: .04em;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.lx-hint.is-on { opacity: 1; }

.lx-peek {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 7;
  width: 17.5rem;
  border: 1px solid var(--rule-strong);
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 30px 60px -28px rgba(27, 35, 30, .6);
  cursor: default;
}
.lx-peek .lx-card-art { aspect-ratio: 16 / 9; border-radius: 50% 50% 0 0 / 3rem 3rem 0 0; }
.lx-peek-body { padding: .8rem 1rem 1rem; }
.lx-peek .lx-card-title { font-size: 1.25rem; }
.lx-peek .lx-price { font-size: 1.3rem; }
.lx-peek .lx-specs { margin-bottom: .4rem; font-size: .8rem; }
.lx-peek-actions { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .8rem; }
.lx-peek-close {
  position: absolute;
  right: .5rem;
  top: .5rem;
  z-index: 4;
  width: 2rem;
  height: 2rem;
}

/* ---------- mobile view toggle ---------- */
.lx-viewtoggle {
  position: fixed;
  left: 50%;
  bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px));
  z-index: 44;
  display: none;
  align-items: center;
  gap: .55rem;
  height: 3rem;
  padding: 0 1.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--lime);
  box-shadow: 0 14px 30px -12px rgba(27, 35, 30, .6);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  transform: translateX(-50%);
  cursor: pointer;
}
.lx-viewtoggle svg { width: 1.1rem; height: 1.1rem; }
.lx-viewtoggle[aria-pressed="true"] [data-when="list"], .lx-viewtoggle[aria-pressed="false"] [data-when="map"] { display: none; }

/* ---------- notes ---------- */
.lx-notes { padding-block: clamp(4rem, 8vw, 7rem); border-top: 1px solid var(--rule); }
.lx-notes-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); }
.lx-notes .section-label { margin-bottom: 1.2rem; }
.lx-notes-list { margin: 0; }
.lx-notes-list li { font-size: .98rem; }
.lx-notes .fineprint { margin-top: 2.6rem; }

/* ---------- detail dialog ---------- */
.lx-dialog {
  width: min(1120px, calc(100% - 2rem));
  max-height: calc(100svh - 2rem);
  margin: auto;
  padding: 0;
  border: 1px solid var(--rule-strong);
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 50px 100px -40px rgba(27, 35, 30, .7);
  overflow: auto;
  overscroll-behavior: contain;
}
.lx-dialog::backdrop { background: rgba(27, 35, 30, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lx-dialog[open] { animation: lx-rise .45s var(--ease-out); }
@keyframes lx-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.lx-d { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.lx-d-media { position: relative; padding: clamp(1.2rem, 2.4vw, 2rem); background: var(--lime-2); }
.lx-d-media .lx-card-art { aspect-ratio: 4 / 5; border-radius: 999px 999px 0 0; }
.lx-d-mini { margin-top: 1.2rem; }
.lx-d-mini svg { width: 100%; height: auto; aspect-ratio: 3 / 2; border: 1px solid var(--rule); background: #ECE5D8; }
.lx-d-mini figcaption { margin-top: .45rem; font-size: .76rem; color: var(--fg-muted); }
.lx-d-mini path, .lx-d-mini circle { vector-effect: non-scaling-stroke; }
.lx-d-mini .mini-land { fill: #E0D3BC; stroke: rgba(27, 35, 30, .25); stroke-width: 1; stroke-dasharray: 3 3; }
.lx-d-mini .mini-land.is-service { fill: #D6BE94; }
.lx-d-mini .mini-coast { fill: none; stroke: rgba(27, 35, 30, .6); stroke-width: 1; }
.lx-d-mini .mini-ring { fill: rgba(166, 129, 76, .22); stroke: #7F6136; stroke-width: 1; stroke-dasharray: 3 3; }
.lx-d-mini .mini-dot { fill: #1B231E; }
.lx-d-mini text { font-family: var(--serif); font-style: italic; fill: #5E5A52; }
.lx-d-mini .mini-here { fill: #1B231E; font-weight: 500; }
.lx-d-body { padding: clamp(1.6rem, 3.2vw, 3rem) clamp(1.4rem, 3.2vw, 3rem) clamp(1.4rem, 2.6vw, 2.4rem); }
.lx-d-title { margin: .3rem 0 .4rem; font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 300; line-height: 1.05; text-wrap: balance; }
.lx-d .lx-price { font-size: 2rem; margin: .8rem 0 1.2rem; }
.lx-d-summary { color: var(--fg-soft); }
.lx-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  margin: 1.4rem 0;
  padding: 1px 0 0 1px;
}
.lx-facts div { margin: -1px 0 0 -1px; padding: .7rem .85rem; border: 1px solid var(--rule); }
.lx-facts dt { font-size: .58rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-muted); }
.lx-facts dd { margin: .15rem 0 0; font-size: .98rem; }
.lx-d h3 {
  margin: 1.6rem 0 .7rem;
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.lx-feats { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.lx-feats li { padding: .3rem .8rem; border: 1px solid var(--rule-strong); border-radius: 999px; font-size: .82rem; }
.lx-checklist { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.lx-checklist li {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr) auto;
  gap: .7rem;
  align-items: baseline;
  padding: .65rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: .9rem;
}
.lx-checklist small { display: block; font-size: .78rem; color: var(--fg-muted); }
.lx-checklist .st { font-size: .66rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); white-space: nowrap; }
.lx-checklist .is-verified .st { color: var(--moss); }
.lx-checklist .mark {
  display: grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: .7rem;
  line-height: 1;
  color: var(--fg-muted);
  transform: translateY(.15rem);
}
.lx-checklist .is-verified .mark { background: var(--moss); border-color: var(--moss); color: var(--lime); }
.lx-dists { margin: 0; padding: 0; list-style: none; font-size: .9rem; color: var(--fg-soft); }
.lx-dists li + li { margin-top: .25rem; }
.lx-d-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }
.lx-d-meta { margin: 1.2rem 0 0; font-size: .76rem; color: var(--fg-muted); }
.lx-d-top {
  position: sticky;
  top: 0;
  z-index: 5;
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: .4rem;
  height: 0;
  padding-right: .9rem;
  overflow: visible;
}
.lx-d-top .lx-icon-btn { margin-top: .9rem; }
.lx-d-nav { display: flex; gap: .4rem; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .lx-filters-toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    height: 2.5rem;
    padding: 0 1.1rem;
    border: 1px solid var(--rule-strong);
    border-radius: 999px;
    background: transparent;
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .lx-filters-toggle svg { width: 1.1rem; height: 1.1rem; }
  .lx-count-dot {
    display: grid;
    place-items: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 .3rem;
    border-radius: 999px;
    background: var(--ink);
    color: var(--lime);
    font-size: .64rem;
    letter-spacing: 0;
  }
  .lx-count-dot[hidden] { display: none; }
  .lx-bar-inner { align-items: center; }
  /* backdrop-filter would make the bar the containing block of the fixed sheet */
  .lx-bar { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--lime); }
  .lx-bar.has-sheet { z-index: 70; }
  .lx-bar-more {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    align-items: start;
    gap: 1.3rem;
    max-height: 86svh;
    padding: 1.2rem var(--gutter) calc(1.2rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--rule-strong);
    background: var(--lime);
    box-shadow: 0 -30px 60px -30px rgba(27, 35, 30, .5);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(105%);
    visibility: hidden;
    transition: transform .5s var(--ease-out), visibility 0s linear .5s;
  }
  .lx-bar-more.is-open { transform: none; visibility: visible; transition: transform .5s var(--ease-out); }
  .lx-sheet-head { display: flex; align-items: center; justify-content: space-between; }
  .lx-sheet-foot {
    position: sticky;
    bottom: calc(-1.2rem - env(safe-area-inset-bottom, 0px));
    display: flex;
    gap: .6rem;
    margin: 0 calc(var(--gutter) * -1) calc(-1.2rem - env(safe-area-inset-bottom, 0px));
    padding: .9rem var(--gutter) calc(.9rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--rule);
    background: var(--lime);
  }
  .lx-sheet-foot .btn { flex: 1; }
  .lx-ctl select { max-width: none; width: 100%; }
  .lx-ctl--pop .lx-pop-btn { display: none; }
  .lx-ctl--pop .lx-pop, .lx-ctl--pop .lx-pop[hidden] {
    display: block;
    position: static;
    width: auto;
    padding: .4rem 0 0;
    border: 0;
    background: none;
    box-shadow: none;
  }
  .lx-pop-title { font-size: 1.1rem; }
  .lx-sheet-scrim {
    position: fixed;
    inset: 0;
    z-index: 59;
    background: rgba(27, 35, 30, .45);
  }
}
@media (max-width: 900px) {
  .lx { --lx-bar-h: 68px; }
  .lx-body { grid-template-columns: minmax(0, 1fr); }
  .lx-list { padding-inline: var(--gutter); padding-bottom: 6rem; }
  .lx-mapcol { display: none; }
  .lx.is-map-view .lx-list { display: none; }
  .lx.is-map-view .lx-mapcol {
    display: block;
    min-height: 0;
    height: calc(100vh - var(--lx-top) - var(--lx-bar-h));
    height: calc(100dvh - var(--lx-top) - var(--lx-bar-h));
  }
  .lx-viewtoggle { display: inline-flex; }
  .lx-map-cartouche { top: .8rem; left: .9rem; }
  .lx-cart-title { font-size: 1.2rem; }
  .lx-map-controls { top: .7rem; right: .7rem; gap: .3rem; }
  .lx-map-controls .lx-icon-btn { width: 2.15rem; height: 2.15rem; }
  .lx-map-controls .lx-icon-btn svg { width: .95rem; height: .95rem; }
  .lx-map-legend { display: none; }
  .lx-map-scale { bottom: auto; top: 3.3rem; left: .9rem; }
  .lx-map-attrib { right: auto; left: .9rem; bottom: auto; top: 4.4rem; max-width: 58%; font-size: .5rem; text-align: left; }
  .lx-peek { left: .8rem !important; right: .8rem; top: auto !important; bottom: 4.8rem; width: auto; transform: none !important; display: grid; grid-template-columns: 7rem minmax(0, 1fr); }
  .lx-peek .lx-card-art { aspect-ratio: auto; height: 100%; min-height: 7.5rem; border-radius: 0; }
  .lx-d { grid-template-columns: minmax(0, 1fr); }
  .lx-d-media { padding-bottom: 0; }
  .lx-d-media .lx-card-art { aspect-ratio: 4 / 3; border-radius: 50% 50% 0 0 / 7rem 7rem 0 0; }
  .lx-d-mini { display: none; }
  .lx-notes-grid { grid-template-columns: minmax(0, 1fr); }
  body.lx-map-open .wa-float { opacity: 0; pointer-events: none; }
}
@media (max-width: 640px) {
  .lx-seg span { padding: 0 .85rem; letter-spacing: .12em; font-size: .64rem; }
  .lx-filters-toggle { padding: 0 .85rem; }
  .lx-filters-toggle > span:not(.lx-count-dot) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .lx-usd { padding: 0 .7rem; }
  .lx-dialog { width: 100%; max-height: 100svh; height: 100svh; max-width: none; border: 0; }
  .lx-d .lx-price { font-size: 1.7rem; }
  .lx-d-actions .btn { flex: 1 1 100%; }
  .lx-summary { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .lx-map-palm { animation: none; }
  .lx-dialog[open] { animation: none; }
  .lx-card-link:hover .scene, .lx-card.is-hot .scene { transform: none; }
}
@media print {
  .lx-bar, .lx-mapcol, .lx-viewtoggle { display: none !important; }
  .lx-body { grid-template-columns: minmax(0, 1fr); }
}
