/*
  Listing microsite — the single-property surface.

  Tokens, chrome (header, sidebar cards, footer, back-to-top) and the two-column
  page grid all come from the design system in packages/site-ui. Everything here
  is `lst-` prefixed and exists only on a listing page, plus a handful of DS
  overrides at the bottom.

  Every value is from the handoff. Where a number looks odd (17px, 18.5px,
  14.5px) it is deliberate and comes from the production type scale.
*/

.lst-page {
  background: var(--white);
  color: var(--ink);
}

/* Anchor targets clear the sticky header. The brand never smooth-scrolls, so
   there is no scroll-behavior here — nav jumps are instant, by design. */
html {
  scroll-padding-top: 70px;
}

/* ------------------------------------------------------------- hero mosaic */

.lst-hero {
  background: var(--black);
}

.lst-hero__grid {
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 3px;
  aspect-ratio: 24 / 9;
}

.lst-hero__cell {
  position: relative;
  overflow: hidden;
  background: var(--black);
  border: 0;
  padding: 0;
  cursor: pointer;
  display: block;
}

.lst-hero__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.94);
  transition: filter 0.2s ease;
}

.lst-hero__cell:hover img {
  filter: brightness(1);
}

.lst-hero__cell--main {
  grid-row: 1 / 3;
}

.lst-hero__all {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  background: var(--white);
  border: var(--border-card);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  cursor: pointer;
}

.lst-hero__all:hover {
  background: var(--cream-warm);
}

/* ---------------------------------------------------------------- mediabar */

.lst-mediabar {
  background: var(--black);
  border-top: 4px solid var(--gold);
  border-bottom: 4px solid var(--gold);
}

.lst-mediabar__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.lst-mediabar__label {
  color: var(--gold);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-right: 4px;
}

.lst-mediabtn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-family: inherit;
  font-size: 16.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.lst-mediabtn:hover {
  background: var(--gold);
  color: var(--black);
}

/* Pushes the print utility to the right end of the bar. */
.lst-mediabar__spacer {
  flex: 1 1 auto;
}

/* A page utility, not a reason to be here — dimmer until you go looking. */
.lst-mediabtn--quiet {
  border-color: var(--nav-dim);
  color: var(--nav-dim);
  font-size: 15.5px;
  min-height: 38px;
  padding: 0 14px;
}

.lst-mediabtn--quiet:hover {
  background: var(--nav-dim);
  color: var(--black);
}

/* ------------------------------------------------------- reading progress */

.lst-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 100%;
  background: var(--gold-deep);
  transform: scaleX(0);
  transform-origin: 0 50%;
  /* Sits on the header's own 4px gold rule, so it reads as that rule filling
     rather than as a second bar. */
  z-index: 6;
}

/* --------------------------------------------------- address plate + stats */

.lst-plate {
  padding: 30px 20px 0;
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}

.lst-plate__h1 {
  font-size: 46px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0;
}

.lst-plate__city {
  font-size: 22px;
  font-weight: 600;
  color: var(--muted-2);
  margin: 6px 0 0;
}

.lst-plate__rule {
  height: 4px;
  width: 140px;
  background: var(--gold);
  margin: 16px 0 0;
}

.lst-plate__price {
  text-align: right;
}

.lst-plate__price b {
  display: block;
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
}

.lst-plate__chips {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 10px;
  flex-wrap: wrap;
}

.lst-chip-sale,
.lst-chip-mls {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  border: var(--border-card);
  border-radius: var(--radius-pill);
  padding: 5px 16px;
  font-size: 14.5px;
}

.lst-chip-sale {
  background: var(--for-sale);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* Sold and pending listings keep the same plate; only the fill changes. */
.lst-chip-sale.is-sold {
  background: var(--sold);
}

.lst-chip-sale.is-pending,
.lst-chip-sale.is-soon {
  background: var(--gold);
  color: var(--black);
}

.lst-chip-mls {
  background: var(--white);
  font-weight: 600;
}

.lst-stats {
  max-width: var(--content-max);
  margin: 24px auto 0;
  padding: 0 20px;
}

.lst-stats__inner {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: var(--border-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--white);
}

.lst-stat {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: var(--border-card);
}

.lst-stat:first-child {
  border-left: 0;
}

.lst-stat__icon {
  color: var(--gold-deep);
}

.lst-stat b {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
}

.lst-stat span {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted-2);
}

/* ---------------------------------------------------------------- sections */

.lst-section {
  margin-top: 38px;
  padding-top: 32px;
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: 80px;
}

.lst-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.lst-h2 {
  font-size: 31px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 0 0 10px;
}

.lst-deck {
  font-size: 20px;
  font-weight: 600;
  color: var(--muted-2);
  margin: 0 0 18px;
  line-height: 1.35;
}

.lst-p {
  font-size: 18.5px;
  line-height: 1.7;
  margin: 0 0 16px;
  text-wrap: pretty;
}

.lst-note {
  font-size: 17px;
  margin: 18px 0 0;
}

.lst-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  background: var(--white);
  border: var(--border-card);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
  cursor: pointer;
}

.lst-pill:hover {
  background: var(--gold);
}

/* -------------------------------------------------------------- highlights */

.lst-highlights {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 26px;
}

.lst-highlights li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
}

.lst-highlights svg {
  color: var(--gold-deep);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ------------------------------------------------------- sidebar buy card */

.lst-sidebuy {
  border: var(--border-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--white);
}

.lst-sidebuy__top {
  background: var(--gold);
  border-bottom: var(--border-card);
  padding: 14px 16px;
}

.lst-sidebuy__price {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
}

.lst-sidebuy__sub {
  font-size: 15.5px;
  font-weight: 600;
  margin-top: 4px;
}

.lst-sidebuy__acts {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lst-sidebuy__acts a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border: var(--border-card);
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--black);
  background: var(--white);
}

.lst-sidebuy__acts a:hover {
  background: var(--cream-warm);
}

.lst-sidebuy__acts a.is-primary {
  background: var(--gold);
}

.lst-sidebuy__acts a.is-primary:hover {
  background: var(--black);
  color: var(--gold);
}

/* -------------------------------------------------------- full-width band */

.lst-full {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 20px 44px;
}

.lst-full .lst-section:first-child {
  margin-top: 0;
  padding-top: 34px;
  border-top: 4px solid var(--black);
}

.lst-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 40px;
  align-items: start;
}

/* ------------------------------------------------------------ media cards */

.lst-media {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.lst-media[data-cards='2'] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lst-media[data-cards='1'] {
  grid-template-columns: minmax(0, 520px);
}

.lst-mediacard {
  text-decoration: none;
  border: var(--border-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  color: var(--ink);
}

.lst-mediacard__head {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  border-bottom: var(--border-card);
  padding: 11px 14px;
  font-size: 18px;
  font-weight: 700;
}

.lst-mediacard__shot {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--cream);
  overflow: hidden;
}

.lst-mediacard__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.82);
  transition: filter 0.2s ease;
}

.lst-mediacard:hover .lst-mediacard__shot img {
  filter: brightness(1);
}

.lst-mediacard__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--white);
  border: var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lst-mediacard__play::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 20px solid var(--black);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 5px;
}

.lst-mediacard__foot {
  padding: 12px 14px 14px;
  font-size: 15.5px;
  color: var(--muted-2);
  font-weight: 500;
  line-height: 1.4;
}

/* ---------------------------------------------------------------- gallery */

.lst-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.lst-gallery button:not(.lst-pill) {
  padding: 0;
  border: var(--border-card);
  border-radius: var(--radius-plate);
  overflow: hidden;
  background: var(--cream);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  position: relative;
}

.lst-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.9);
  transition: filter 0.2s ease;
}

.lst-gallery button:hover img {
  filter: brightness(1);
}

.lst-gallery__more {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

/* -------------------------------------------------------------- accordion */

.lst-acc {
  border: var(--border-card);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.lst-acc__row + .lst-acc__row {
  border-top: var(--border-card);
}

.lst-acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--white);
  border: 0;
  padding: 15px 18px;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  min-height: 56px;
}

.lst-acc__btn:hover {
  background: var(--cream-warm);
}

.lst-acc__btn[aria-expanded='true'] {
  background: var(--gold);
}

.lst-acc__panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 34px;
  padding: 6px 18px 18px;
  border-top: 1px solid var(--line-soft);
  margin: 0;
}

.lst-acc__panel[hidden] {
  display: none;
}

.lst-acc__panel div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}

.lst-acc__panel dt {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted-3);
}

.lst-acc__panel dd {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
}

/* -------------------------------------------------- community facts + chips */

.lst-facts {
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 34px;
}

.lst-facts div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}

.lst-facts dt {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted-3);
}

.lst-facts dd {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
}

.lst-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-content: flex-start;
}

.lst-chips li {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: var(--border-card);
  border-radius: var(--radius-pill);
  font-size: 16.5px;
  font-weight: 600;
  background: var(--white);
}

/* -------------------------------------------------------------------- map */

.lst-maprow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

.lst-mapwrap {
  position: relative;
}

.lst-map {
  border: var(--border-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  height: 520px;
  background: var(--cream);
}

.lst-mapswitch {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 500;
  display: flex;
  border: var(--border-card);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--white);
}

.lst-mapswitch button {
  min-height: 40px;
  padding: 0 20px;
  border: 0;
  background: var(--white);
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  color: var(--black);
}

.lst-mapswitch button + button {
  border-left: var(--border-card);
}

.lst-mapswitch button:hover {
  background: var(--cream-warm);
}

.lst-mapswitch button.is-on {
  background: var(--gold);
}

/* Marker is drawn rather than loaded — one less request, and it matches the
   plate treatment: gold fill, black border. */
.lst-map__pin {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--black);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

/* MapLibre ships rounded, shadowed chrome. Square it off so the map does not
   look like a third-party widget dropped into a flat, black-bordered page. */
.lst-map .maplibregl-popup-content {
  border: var(--border-card);
  border-radius: var(--radius-plate);
  box-shadow: none;
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 600;
  padding: 10px 30px 10px 14px;
}

.lst-map .maplibregl-popup-tip {
  display: none;
}

.lst-map .maplibregl-ctrl-group {
  border: var(--border-card);
  border-radius: var(--radius-plate);
  box-shadow: none;
}

.lst-map .maplibregl-ctrl-group button + button {
  border-top: 1px solid var(--line-soft);
}

.lst-nearby {
  list-style: none;
  margin: 0;
  padding: 0;
  border: var(--border-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--white);
}

.lst-nearby li {
  padding: 13px 16px;
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.35;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lst-nearby li:last-child {
  border-bottom: 0;
}

.lst-nearby b {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted-3);
}

.lst-nearby__head {
  background: var(--gold);
  border-bottom: var(--border-card);
  font-size: 18px;
  font-weight: 700;
  padding: 11px 16px;
}

.lst-nearby__cta {
  padding-top: 16px;
}

/* ---------------------------------------------------------- cost estimate */

.lst-cost {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
  border: var(--border-card);
  border-radius: var(--radius-card);
  padding: 20px 22px;
}

.lst-cost__ctl {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lst-cost__ctl label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15.5px;
  font-weight: 600;
}

.lst-cost__ctl label > span {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
}

/* The readout must never wrap — it changes on every input event and a reflow
   there reads as the layout twitching. */
.lst-cost__ctl label b {
  flex: none;
  width: max-content;
  white-space: nowrap;
  font-size: 18px;
}

.lst-cost__ctl input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 32px;
  margin: 4px 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: grab;
}

.lst-cost__ctl input[type='range']:active {
  cursor: grabbing;
}

.lst-cost__ctl input[type='range']::-webkit-slider-runnable-track {
  height: 16px;
  border: var(--border-card);
  border-radius: var(--radius-pill);
  background: var(--cream);
}

.lst-cost__ctl input[type='range']::-moz-range-track {
  height: 16px;
  border: var(--border-card);
  border-radius: var(--radius-pill);
  background: var(--cream);
}

.lst-cost__ctl input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  margin-top: -9px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  border: var(--border-card);
  cursor: grab;
}

.lst-cost__ctl input[type='range']::-webkit-slider-thumb:hover {
  background: var(--white);
}

.lst-cost__ctl input[type='range']::-moz-range-thumb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  border: var(--border-card);
  cursor: grab;
}

.lst-cost__out {
  border-left: var(--border-card);
  padding-left: 22px;
}

.lst-cost__total {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
}

.lst-cost__per {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}

.lst-cost__rows {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.lst-cost__rows li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 16px;
  font-weight: 500;
}

.lst-cost__note {
  font-size: 14.5px;
  color: var(--muted-3);
  margin: 12px 0 0;
  line-height: 1.4;
}

/* ---------------------------------------------------------- media viewer */

.lst-lb {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.92);
  color: var(--white);
}

.lst-lb[open] {
  display: flex;
  flex-direction: column;
}

/*
  The viewer toggles its parts with the `hidden` attribute, but `hidden` is only
  a UA `display: none` — any author rule that sets `display` beats it. That is
  how "Open full screen" ended up showing over a photo. One scoped override so
  the next part added here cannot repeat it.
*/
.lst-lb [hidden] {
  display: none !important;
}

.lst-lb::backdrop {
  background: rgba(0, 0, 0, 0.92);
}

.lst-lb__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  flex-shrink: 0;
}

.lst-lb__bar-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.lst-lb__count {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--gold);
}

.lst-lb__ext {
  color: var(--gold);
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.lst-lb__ext:hover {
  background: transparent;
  color: var(--white);
}

.lst-lb__x {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.lst-lb__x:hover {
  background: var(--gold);
  color: var(--black);
}

.lst-lb__stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 14px;
}

.lst-lb__stage img,
.lst-lb__stage video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border: 2px solid var(--gold);
}

.lst-lb__stage iframe {
  width: 100%;
  height: 100%;
  border: 2px solid var(--gold);
  background: var(--black);
}


.lst-lb__nav {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: rgba(0, 0, 0, 0.5);
  color: var(--gold);
  font-size: 24px;
  cursor: pointer;
  font-family: inherit;
}

.lst-lb__nav:hover {
  background: var(--gold);
  color: var(--black);
}


.lst-lb__rail {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 16px;
}

.lst-lb__rail:empty {
  display: none;
}

.lst-lb__rail button {
  flex: 0 0 96px;
  height: 66px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  background: none;
  cursor: pointer;
}

.lst-lb__rail button.is-on {
  border-color: var(--gold);
}

.lst-lb__rail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.7);
}

.lst-lb__rail button.is-on img {
  filter: brightness(1);
}

/* --------------------------------------------------- mobile action bar */

/* Desktop keeps the sidebar, which already carries these two actions. */
.lst-actionbar {
  display: none;
}

@media (max-width: 860px) {
  .lst-actionbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 190;
    display: flex;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: var(--black);
    border-top: 4px solid var(--gold);
  }

  .lst-actionbar a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: var(--border-card);
    border-radius: var(--radius-pill);
    font-size: 16.5px;
    font-weight: 700;
    text-decoration: none;
    color: var(--black);
    background: var(--white);
  }

  .lst-actionbar__primary {
    flex: 1 1 auto;
    background: var(--gold) !important;
  }

  .lst-actionbar__call {
    flex: 0 0 96px;
  }

  /* The bar covers the last of the page and sits where the back-to-top button
     would land, so both get out of its way. */
  .lst-legal {
    padding-bottom: 90px;
  }

  .back-to-top {
    bottom: 84px !important;
  }
}

/* -------------------------------------------------------------- legal strip */

.lst-legal {
  border-top: 4px solid var(--black);
  background: var(--white);
  padding: 22px 20px 30px;
}

.lst-legal p {
  max-width: var(--content-max);
  margin: 0 auto;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted-3);
}

/* -------------------------------------------------------------- DS overrides */

/*
  The wordmark is the street address here, not a short domain, so it needs a
  cap and it has to get out of the way before it collides with five nav links.
*/
.site-header__wordmark {
  flex: 0 1 auto;
  max-width: min(34%, 240px);
  padding-right: 14px;
  /* The DS fades the wordmark in once you scroll past the banner. A listing
     page has no banner, so it would only ever appear after a scroll — show it
     from the start instead. */
  opacity: 1;
  transform: none;
}

@media (max-width: 1200px) {
  .site-header__wordmark {
    display: none;
  }
}

/*
  The ↗ character sits on the baseline and renders differently in every font
  fallback. Replace it with a mask everywhere it appears, including inside the
  shared header and footer components.
*/
.site-ext,
.site-footer__site-ext {
  font-size: 0 !important;
  display: inline-flex;
  align-items: center;
}

.site-ext::after,
.site-footer__site-ext::after {
  content: '';
  display: block;
  width: 13px;
  height: 13px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7'/%3E%3Cpath d='M8 7h9v9'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7'/%3E%3Cpath d='M8 7h9v9'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.site-footer__site-ext::after {
  width: 15px;
  height: 15px;
  background: var(--gold-deep);
}

.site-footer__sites a:hover .site-footer__site-ext::after {
  background: var(--black);
}

.site-header__actions a .site-ext::after {
  background: var(--nav-dim);
}

.site-header__actions a:hover .site-ext::after {
  background: var(--gold);
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 1180px) {
  .lst-full .lst-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .lst-acc__panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lst-two,
  .lst-maprow,
  .lst-cost {
    grid-template-columns: minmax(0, 1fr);
  }
  .lst-media {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lst-cost__out {
    border-left: 0;
    border-top: var(--border-card);
    padding: 18px 0 0;
  }
}

@media (max-width: 1080px) {
  .lst-stats__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lst-stat:nth-child(4) {
    border-left: 0;
  }
  .lst-stat:nth-child(n + 4) {
    border-top: var(--border-card);
  }
}

@media (max-width: 860px) {
  .lst-hero__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    aspect-ratio: auto;
  }
  .lst-hero__cell {
    aspect-ratio: 4 / 3;
  }
  .lst-hero__cell--main {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 3 / 2;
  }
  .lst-hero__cell:nth-child(n + 4) {
    display: none;
  }
  .lst-plate {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 16px 0;
  }
  .lst-plate__h1 {
    font-size: 34px;
  }
  .lst-plate__price {
    text-align: left;
  }
  .lst-plate__chips {
    justify-content: flex-start;
  }
  .lst-full {
    padding: 0 16px 34px;
  }
  .lst-full .lst-gallery,
  .lst-media {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lst-highlights,
  .lst-acc__panel,
  .lst-facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .lst-map {
    height: 360px;
  }
}
