/* =============================================================================
   Listing Detail — Production
   Scoped to body.page-detail so page styles don't leak to other pages. Loaded
   after base/layout/components/header/footer via EXTRA_CSS.

   Link styling is scoped to the listing content (`main`) and to named
   components. Nothing here targets a bare `a` on the page, so the site header
   and footer links are untouched.

   Layout, in order: photo gallery (mosaic >= 900px, swipe strip below) ->
   address / price / facts -> apply card (sticky column >= 900px, in the flow
   below) -> about, amenities, appliances, utilities, lease details, location,
   application criteria -> inquiry form. Below 900px a fixed action bar carries
   Apply now / Ask a question once the apply card has scrolled away.

   Breakpoints: 900px (two columns + mosaic + sticky card, bar hidden),
   720px (tighter gutters, type), 600px (tablet strip shows the next photo).
   Styles for markup rendered BEFORE the redesign are kept at the end of this
   file (Legacy block) until the sync Lambda has regenerated every stored page.
   ========================================================================== */

body.page-detail {
  /* Tokens (--charcoal, --cream, --font-serif, …) come from variables.css. */
  --whp-max: 1280px;       /* content width (gallery spans all of it) */
  --whp-gutter: 32px;
  --whp-sticky-top: 96px;  /* apply card sits under the collapsed header */
  --whp-bar-h: 68px;       /* phone action bar */
  /* Mosaic height: ~520-600px on a laptop, never more than 72% of the window. */
  --whp-gal-h: max(360px, min(clamp(440px, 40vw, 600px), 72vh));
  --rule: color-mix(in srgb, var(--pebble) 55%, transparent);

  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}
@supports not (color: color-mix(in srgb, red, blue)) {
  body.page-detail { --rule: var(--pebble); }
}
@media (max-width: 720px) {
  body.page-detail { --whp-gutter: 20px; }
}

/* Headings and paragraphs inside the page content. (The site's global reset
   zeroes margins; bring back the ones we need.) */
body.page-detail main h1,
body.page-detail main h2,
body.page-detail main h3,
body.page-detail main h4 {
  margin: 0 0 0.5em;
  line-height: 1.25;
  color: var(--charcoal);
  text-wrap: balance;
}
body.page-detail main h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 2.441rem;
  letter-spacing: -0.01em;
}
body.page-detail main h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.953rem;
  letter-spacing: -0.005em;
}
body.page-detail main h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.5625rem;
}
body.page-detail main h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.25rem;
}
body.page-detail main p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

/* Links inside the listing content only. Components that look like buttons
   carry .ui-link (see base.css) so the global "underline links in main" rule
   skips them, and set their own colours below. */
body.page-detail main a {
  color: var(--charcoal);
  transition: color var(--dur-base) var(--ease);
}
body.page-detail main a:hover { color: var(--brass); }

/* =============================================================================
   Buttons
   ========================================================================== */
body.page-detail .whp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--radius-button);
  border: 1px solid var(--charcoal);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--dur-base) var(--ease),
              color var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease);
  background: var(--charcoal);
  color: var(--cream);
  text-decoration: none;
}
body.page-detail .whp-btn:hover {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--cream);
  text-decoration: none;
}
body.page-detail .whp-btn:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}
body.page-detail .whp-btn[disabled] {
  background: var(--pebble);
  border-color: var(--pebble);
  color: var(--stone);
  cursor: not-allowed;
}
body.page-detail .whp-btn--ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
body.page-detail .whp-btn--ghost:hover {
  background: var(--charcoal);
  color: var(--cream);
  border-color: var(--charcoal);
}
body.page-detail .whp-btn--full { width: 100%; }

/* A text-style button (e.g. "Full screening criteria →"). */
body.page-detail .whp-link-btn {
  display: inline-block;
  padding: 6px 0;
  background: transparent;
  border: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: underline;
  text-decoration-color: var(--stone);
  text-underline-offset: 3px;
  cursor: pointer;
}
body.page-detail .whp-link-btn:hover { color: var(--brass); text-decoration-color: var(--brass); }
body.page-detail .whp-link-btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

body.page-detail .eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 14px;
}

/* =============================================================================
   Breadcrumb
   ========================================================================== */
body.page-detail .whp-crumbs {
  max-width: var(--whp-max);
  margin: 0 auto;
  padding: 16px var(--whp-gutter) 14px;
  font-size: 13px;
  color: var(--stone);
}
body.page-detail .whp-crumbs__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
body.page-detail .whp-crumbs a {
  flex: none;
  color: var(--stone);
  text-decoration: none;
}
body.page-detail .whp-crumbs a:hover { color: var(--brass); text-decoration: underline; }
body.page-detail .whp-crumbs .sep { flex: none; color: var(--pebble); }
body.page-detail .whp-crumbs .current {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--charcoal);
}

/* =============================================================================
   Gallery. One list of <a><img> tiles; CSS decides the layout.
     < 900px   scroll-snap strip of every photo (4:3), "3 / 31" counter
     >= 900px  mosaic across the full content width: big photo left (two rows),
               2x2 on the right; layout class n1 / n2 / n3 / n5 by photo count
   ========================================================================== */
body.page-detail .whp-gal-wrap {
  max-width: var(--whp-max);
  margin: 0 auto;
  padding: 0 var(--whp-gutter);
}
body.page-detail .whp-gal { position: relative; }

body.page-detail .whp-gal__track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
body.page-detail .whp-gal__track::-webkit-scrollbar { display: none; }

body.page-detail .whp-gal__tile {
  position: relative;
  display: block;
  flex: 0 0 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--linen);
  scroll-snap-align: start;
  text-decoration: none;
}
body.page-detail .whp-gal__tile img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: filter var(--dur-base) var(--ease);
}
body.page-detail .whp-gal__tile:hover img { filter: brightness(0.94); }
body.page-detail .whp-gal__tile:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: -4px;
}

/* Counter and buttons sit over the photos. */
body.page-detail .whp-gal__count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(30, 27, 24, 0.72);
  color: var(--cream);
  font-size: 12px;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
body.page-detail .whp-gal__btn {
  position: absolute;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: var(--radius-button);
  border: 1px solid var(--pebble);
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-base) var(--ease),
              color var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease);
}
body.page-detail .whp-gal__btn:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--cream);
  text-decoration: none;
}
body.page-detail .whp-gal__btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
body.page-detail .whp-gal__btn svg { flex: none; }
body.page-detail .whp-gal__btn--video { left: 12px; }
body.page-detail .whp-gal__btn--all { display: none; right: 12px; }

/* Quiet placeholder: no photos yet (they can lag a new listing by minutes). */
body.page-detail .whp-gal__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 240px;
  background: var(--linen);
  color: var(--stone);
  font-size: 14px;
  text-align: center;
}
body.page-detail .whp-gal__empty p { margin: 0; }

/* Tablet: slides narrower than the viewport so the next photo peeks in. */
@media (min-width: 600px) and (max-width: 899px) {
  body.page-detail .whp-gal__track {
    /* No padding here: the wrapper already supplies the page gutter, and a
       second one pushed the first photo out of line with the text below. */
    gap: 8px;
  }
  body.page-detail .whp-gal__tile {
    flex-basis: 72%;
    border-radius: var(--radius-card);
  }
}

@media (min-width: 900px) {
  body.page-detail .whp-gal__track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 8px;
    height: var(--whp-gal-h);
    overflow: hidden;
    scroll-snap-type: none;
    border-radius: var(--radius-card);
  }
  body.page-detail .whp-gal__tile {
    flex: none;
    aspect-ratio: auto;
  }
  body.page-detail .whp-gal__btn { bottom: 16px; min-height: 40px; padding: 9px 16px; }
  body.page-detail .whp-gal__btn--video { left: 16px; }
  body.page-detail .whp-gal__btn--all { display: inline-flex; right: 16px; }
  body.page-detail .whp-gal__count { display: none; }

  /* 5+ photos: one large (left, two rows) + 2x2. Photos 6+ live in the viewer. */
  body.page-detail .whp-gal--n5 .whp-gal__tile:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
  body.page-detail .whp-gal--n5 .whp-gal__tile:nth-child(n+6) { display: none; }

  /* 3 and 4 photos: one large + two stacked. A fourth photo is left to the viewer. */
  body.page-detail .whp-gal--n3 .whp-gal__track { grid-template-columns: 2fr 1fr; }
  body.page-detail .whp-gal--n3 .whp-gal__tile:nth-child(1) { grid-row: 1 / 3; }
  body.page-detail .whp-gal--n3 .whp-gal__tile:nth-child(n+4) { display: none; }

  /* 2 photos: halves. */
  body.page-detail .whp-gal--n2 .whp-gal__track { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr); }

  /* 1 photo: the whole width. */
  body.page-detail .whp-gal--n1 .whp-gal__track { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }

  body.page-detail .whp-gal--empty .whp-gal__empty {
    min-height: 280px;
    border: 1px solid var(--pebble);
    border-radius: var(--radius-card);
  }
}

/* =============================================================================
   Page grid: head (address, price, facts) | apply card, then the body sections.
   >= 900px  two columns; the card spans both rows and sticks under the header.
   <  900px  one column in DOM order: head, apply card, body.
   ========================================================================== */
body.page-detail .whp-container {
  max-width: var(--whp-max);
  margin: 0 auto;
  padding: 0 var(--whp-gutter);
}
body.page-detail .whp-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  padding-top: 24px;
}
@media (min-width: 900px) {
  body.page-detail .whp-top {
    grid-template-columns: minmax(0, 1fr) 340px;
    grid-template-rows: auto 1fr;
    grid-template-areas: "head side" "body side";
    column-gap: 56px;
    padding-top: 32px;
  }
  body.page-detail .whp-head { grid-area: head; }
  body.page-detail .whp-body { grid-area: body; }
  body.page-detail .whp-sidebar {
    grid-area: side;
    align-self: start;
    position: sticky;
    top: var(--whp-sticky-top);
  }
}

/* ---- Address, price, facts ---- */
body.page-detail .whp-head__title {
  margin: 0;
  font-size: 26px;
  line-height: 1.12;
}
body.page-detail .whp-head__city {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--stone);
}
body.page-detail .whp-head__price {
  margin: 14px 0 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums lining-nums;
}
body.page-detail .whp-head__price .per,
body.page-detail .whp-apply-card__rent .per,
body.page-detail .whp-bar__rent .per {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  color: var(--stone);
}
@media (min-width: 720px) {
  body.page-detail .whp-head__title { font-size: 34px; }
}
/* Beside the card the price lives in the card; below 900px the card has no rent. */
@media (min-width: 900px) {
  body.page-detail .whp-head__price { display: none; }
}

body.page-detail .whp-facts {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  padding: 18px 0;
  border-top: 1px solid var(--pebble);
  border-bottom: 1px solid var(--pebble);
}
body.page-detail .whp-facts ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.page-detail .whp-fact { margin: 0; }
body.page-detail .whp-facts__home .whp-fact {
  font-size: 15px;
  color: var(--stone);
}
body.page-detail .whp-facts__home strong {
  margin-right: 1px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--charcoal);
  font-variant-numeric: tabular-nums lining-nums;
}
body.page-detail .whp-facts__more .whp-fact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--charcoal);
}
body.page-detail .whp-facts__more .whp-fact::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brass);
}

/* ---- Apply card (sticky column) ---- */
body.page-detail .whp-sidebar { margin-top: 24px; }
@media (min-width: 900px) {
  body.page-detail .whp-sidebar { margin-top: 0; }
}
body.page-detail .whp-apply-card {
  background: var(--cream);
  border: 1px solid var(--pebble);
  border-radius: var(--radius-card);
  padding: 24px;
}
body.page-detail .whp-apply-card__rent {
  display: none;
  margin-bottom: 16px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 34px;
  line-height: 1;
  color: var(--charcoal);
  font-variant-numeric: tabular-nums lining-nums;
}
@media (min-width: 900px) {
  body.page-detail .whp-apply-card { padding: 28px; }
  body.page-detail .whp-apply-card__rent { display: block; }
}
body.page-detail .whp-apply-card__avail {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 11px 14px;
  background: var(--linen);
  border-radius: 4px;
}
body.page-detail .whp-apply-card__avail .dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
}
body.page-detail .whp-apply-card__avail strong {
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
}
body.page-detail .whp-apply-card__btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
body.page-detail .whp-apply-card__contact {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--pebble);
}
body.page-detail .whp-apply-card__contact .eyebrow { margin-bottom: 10px; }
body.page-detail .whp-apply-card__phone {
  display: block;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
body.page-detail .whp-apply-card__phone:hover { text-decoration: underline; }
body.page-detail .whp-apply-card__hours {
  margin-top: 6px;
  font-size: 13px;
  color: var(--stone);
}

/* =============================================================================
   Body sections
   ========================================================================== */
body.page-detail .whp-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
body.page-detail .whp-section {
  padding: 36px 0;
  border-top: 1px solid var(--pebble);
}
body.page-detail .whp-section:first-child { border-top: 0; }
body.page-detail .whp-section > h2 {
  margin: 0 0 20px;
  font-size: 26px;
  line-height: 1.2;
}

/* About */
body.page-detail .whp-about > h2 { max-width: 640px; font-size: 28px; line-height: 1.2; }
body.page-detail .whp-about p {
  max-width: 680px;
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.65;
}

/* Amenities: compact columns, first ten, the rest behind a native <details>. */
body.page-detail .whp-amenities__list {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 3;
  column-gap: 40px;
}
body.page-detail .whp-amenities__item {
  margin: 0;
  padding: 9px 0;
  break-inside: avoid;
  border-bottom: 1px solid var(--pebble);
  border-bottom-color: var(--rule);
  font-size: 15px;
}
body.page-detail .whp-amenities__more { margin-top: 4px; }
body.page-detail .whp-amenities__more[open] > .whp-amenities__list { margin-top: 0; }
body.page-detail .whp-amenities__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal);
  cursor: pointer;
  list-style: none;
  text-decoration: underline;
  text-decoration-color: var(--stone);
  text-underline-offset: 3px;
}
body.page-detail .whp-amenities__toggle::-webkit-details-marker { display: none; }
body.page-detail .whp-amenities__toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--dur-base) var(--ease);
}
body.page-detail .whp-amenities__more[open] > .whp-amenities__toggle::after {
  transform: rotate(-135deg) translateY(-2px);
}
body.page-detail .whp-amenities__toggle:hover { color: var(--brass); text-decoration-color: var(--brass); }
body.page-detail .whp-amenities__toggle:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
body.page-detail .whp-amenities__hide { display: none; }
body.page-detail .whp-amenities__more[open] .whp-amenities__show { display: none; }
body.page-detail .whp-amenities__more[open] .whp-amenities__hide { display: inline; }
@media (max-width: 899px) {
  body.page-detail .whp-amenities__list { columns: 2; column-gap: 28px; }
}
@media (max-width: 420px) {
  body.page-detail .whp-amenities__list { columns: 1; }
}

/* Appliances: chips */
body.page-detail .whp-appliances__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
body.page-detail .whp-chip {
  padding: 8px 14px;
  border: 1px solid var(--pebble);
  border-radius: 4px;
  background: var(--cream);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--charcoal);
}

/* Utilities */
body.page-detail .whp-utilities__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
body.page-detail .whp-utilities__col .eyebrow { margin-bottom: 14px; }
body.page-detail .whp-utilities__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--pebble);
  font-size: 15px;
}
body.page-detail .whp-utilities__row + .whp-utilities__row { margin-top: 10px; }
body.page-detail .whp-utilities__tag { font-size: 13px; color: var(--stone); }
body.page-detail .whp-utilities__tag.is-included { color: var(--sage); }
body.page-detail .whp-utilities__note { margin: 0; font-size: 15px; color: var(--stone); }
@media (max-width: 640px) {
  body.page-detail .whp-utilities__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Lease details: the one place money terms live */
body.page-detail .whp-details__list { margin: 0; }
body.page-detail .whp-details__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  padding: 14px 0;
  border-top: 1px solid var(--pebble);
  font-size: 15px;
}
body.page-detail .whp-details__label { color: var(--stone); }
body.page-detail .whp-details__value { color: var(--charcoal); }
body.page-detail .whp-details__value .num { font-variant-numeric: tabular-nums lining-nums; }
@media (max-width: 640px) {
  body.page-detail .whp-details__row { grid-template-columns: 1fr; gap: 2px; }
}

/* Location */
body.page-detail .whp-location__note {
  max-width: 620px;
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--stone);
}
body.page-detail .whp-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--pebble);
  border-radius: var(--radius-card);
  background: var(--linen);
  cursor: pointer;
}
body.page-detail .whp-map__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
body.page-detail .whp-map__expand {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 12px;
  border: 1px solid var(--pebble);
  border-radius: 4px;
  background: var(--cream);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--charcoal);
  cursor: pointer;
}
body.page-detail .whp-map__expand:hover { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }

/* Application criteria */
body.page-detail .whp-criteria__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 620px;
  margin: 0 0 14px;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--stone);
}
body.page-detail .whp-criteria__list li { margin: 0; }

/* In-page jumps land below the sticky header. */
body.page-detail #apply-section,
body.page-detail #quick-contact-form,
body.page-detail #quick-contact-review-card { scroll-margin-top: var(--whp-sticky-top); }
@media (prefers-reduced-motion: no-preference) {
  html:has(body.page-detail) { scroll-behavior: smooth; }
}


/* =============================================================================
   Gallery viewer (full-screen dialog). Built by js/listing-detail.js on first
   open; sits above the modals (1000) and the map lightbox (1100).
   ========================================================================== */
html.whp-lock { overflow: hidden; }

body.page-detail .whp-viewer {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  background: var(--charcoal);
  color: var(--cream);
  font-family: var(--font-sans);
  overscroll-behavior: contain;
}
body.page-detail .whp-viewer:focus { outline: none; }
body.page-detail .whp-viewer [hidden] { display: none !important; }

body.page-detail .whp-viewer__bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 6px 8px 6px 20px;
}
body.page-detail .whp-viewer__count {
  margin-right: auto;
  font-size: 14px;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
body.page-detail .whp-viewer__vbtn,
body.page-detail .whp-viewer__close,
body.page-detail .whp-viewer__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(250, 249, 246, 0.35);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  transition: background-color var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease);
}
body.page-detail .whp-viewer__vbtn {
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: var(--radius-button);
  font-size: 14px;
  font-weight: 500;
}
body.page-detail .whp-viewer__close {
  width: 44px;
  height: 44px;
  border-color: transparent;
  border-radius: 50%;
}
body.page-detail .whp-viewer__vbtn:hover,
body.page-detail .whp-viewer__close:hover,
body.page-detail .whp-viewer__nav:hover {
  background: rgba(250, 249, 246, 0.16);
  border-color: rgba(250, 249, 246, 0.6);
}
body.page-detail .whp-viewer button:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}

body.page-detail .whp-viewer__stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  touch-action: pan-y pinch-zoom;
}
body.page-detail .whp-viewer__media {
  position: absolute;
  inset: 0;
}
body.page-detail .whp-viewer__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  transition: opacity var(--dur-base) var(--ease);
}
body.page-detail .whp-viewer__img.is-loading { opacity: 0; }
body.page-detail .whp-viewer__frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.page-detail .whp-viewer__iframe {
  width: min(100%, calc((100vh - 150px) * 16 / 9));
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}
@supports (height: 100dvh) {
  body.page-detail .whp-viewer__iframe { width: min(100%, calc((100dvh - 150px) * 16 / 9)); }
}
body.page-detail .whp-viewer__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border-radius: 50%;
  background: rgba(30, 27, 24, 0.55);
}
body.page-detail .whp-viewer__nav--prev { left: 16px; }
body.page-detail .whp-viewer__nav--next { right: 16px; }

body.page-detail .whp-viewer__rail {
  position: relative; /* thumbnails are measured against the rail when centring */
  flex: none;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  scrollbar-width: thin;
  scrollbar-color: rgba(250, 249, 246, 0.35) transparent;
}
body.page-detail .whp-viewer__thumb {
  position: relative;
  flex: none;
  width: 72px;
  height: 54px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 4px;
  background: rgba(250, 249, 246, 0.1);
  opacity: 0.6;
  transition: opacity var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
body.page-detail .whp-viewer__thumb:hover { opacity: 0.9; }
body.page-detail .whp-viewer__thumb.is-active { border-color: var(--cream); opacity: 1; }
body.page-detail .whp-viewer__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
body.page-detail .whp-viewer__thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 27, 24, 0.4);
  color: var(--cream);
  pointer-events: none;
}
@media (min-width: 900px) {
  body.page-detail .whp-viewer__bar { padding-left: 28px; }
  /* leave room for the arrows beside the photo */
  body.page-detail .whp-viewer__media { inset: 0 80px; }
  body.page-detail .whp-viewer__nav--prev { left: 20px; }
  body.page-detail .whp-viewer__nav--next { right: 20px; }
}
@media (max-width: 599px) {
  /* phones: swipe, with smaller arrows over the photo's edges */
  body.page-detail .whp-viewer__nav { width: 40px; height: 40px; margin-top: -20px; }
  body.page-detail .whp-viewer__nav--prev { left: 8px; }
  body.page-detail .whp-viewer__nav--next { right: 8px; }
}

/* =============================================================================
   Removed listing: the "no longer available" notice
   A home that left the feed keeps its page for 30 days (api/sync.js, section
   "Removed listings"): a calm band under the breadcrumb, the home as last listed
   (no price, apply card, lease details, criteria or forms), and similar homes at
   the end. All of it is hidden unless <main> carries .whp-detail--gone, which only
   the notice render sets: a page that an older Lambda renders from this template
   (it leaves the notice markup and its {{TOKENS}} in) shows none of it.
   Same language as the page: linen band, 1px pebble rules, brass accent, serif
   heading, no shadows.
   ========================================================================== */
body.page-detail .whp-gone,
body.page-detail .whp-similar-slot { display: none; }
body.page-detail .whp-detail--gone .whp-gone,
body.page-detail .whp-detail--gone .whp-similar-slot { display: block; }

body.page-detail .whp-gone {
  background: var(--linen);
  border-top: 1px solid var(--pebble);
  border-bottom: 1px solid var(--pebble);
}
body.page-detail .whp-gone__inner {
  max-width: var(--whp-max);
  margin: 0 auto;
  padding: 22px var(--whp-gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
}
body.page-detail .whp-gone__text {
  flex: 1 1 380px;
  min-width: 0;
  padding-left: 16px;
  border-left: 2px solid var(--brass);
}
body.page-detail main .whp-gone__title {
  margin: 0;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
}
body.page-detail main .whp-gone__note {
  max-width: 64ch;
  margin: 6px 0 0;
  font-size: 16px;
  color: var(--stone);
}
body.page-detail main .whp-gone__link {
  flex: none;
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--stone);
  text-underline-offset: 3px;
}
body.page-detail main .whp-gone__link:hover { text-decoration-color: var(--brass); }
body.page-detail main .whp-gone__link:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

/* No apply card: one column, as wide as the left column of an active page. */
@media (min-width: 900px) {
  body.page-detail .whp-detail--gone .whp-top {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "head" "body";
  }
  body.page-detail .whp-detail--gone .whp-head,
  body.page-detail .whp-detail--gone .whp-body { max-width: 820px; }
}

/* Similar homes. The cards follow the rentals-page listing card (cream card,
   pebble border, 4:3 photo, serif address, price and beds/baths on one row);
   that stylesheet is not loaded here, so the few rules are repeated. */
body.page-detail .whp-similar {
  margin-top: 64px;
  padding: 56px 0 72px;
  background: var(--linen);
  border-top: 1px solid var(--pebble);
}
body.page-detail .whp-similar--none { padding: 40px 0 56px; }
body.page-detail .whp-similar__inner {
  max-width: var(--whp-max);
  margin: 0 auto;
  padding: 0 var(--whp-gutter);
}
body.page-detail main .whp-similar__title {
  margin: 0 0 24px;
  font-size: 28px;
  line-height: 1.2;
}
body.page-detail .whp-similar__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 600px) {
  body.page-detail .whp-similar__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  body.page-detail .whp-similar__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
}
body.page-detail .whp-similar__item { display: flex; margin: 0; }
body.page-detail main .whp-sim {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--pebble);
  border-radius: var(--radius-card);
  color: var(--charcoal);
  text-decoration: none;
  transition: border-color var(--dur-base) var(--ease);
}
body.page-detail main .whp-sim:hover { border-color: var(--brass); color: var(--charcoal); }
body.page-detail main .whp-sim:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
body.page-detail .whp-sim__photo {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--linen);
  border-bottom: 1px solid var(--pebble);
}
body.page-detail .whp-sim:hover .whp-sim__photo { border-bottom-color: var(--brass); }
body.page-detail .whp-sim__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.page-detail .whp-sim__body { display: block; padding: 18px 20px 20px; }
body.page-detail .whp-sim__address {
  display: block;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
}
body.page-detail .whp-sim__city {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--stone);
}
body.page-detail .whp-sim__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
body.page-detail .whp-sim__price {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
}
body.page-detail .whp-sim__price .per {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  color: var(--stone);
}
body.page-detail .whp-sim__meta {
  font-size: 13px;
  color: var(--stone);
  text-align: right;
  font-variant-numeric: tabular-nums lining-nums;
}
body.page-detail .whp-similar__all { margin: 32px 0 0; }
body.page-detail .whp-similar--none .whp-similar__all { margin: 0; }

/* =============================================================================
   Phone action bar. Hidden from 900px up (the sticky apply card does the job).
   JS adds .is-visible once the top apply card has scrolled away.
   ========================================================================== */
body.page-detail .whp-bar { display: none; }
@media (max-width: 899px) {
  body.page-detail .whp-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--cream);
    border-top: 1px solid var(--pebble);
    transform: translateY(100%);
    visibility: hidden;
    transition: transform var(--dur-base) var(--ease),
                visibility 0s linear var(--dur-base);
  }
  body.page-detail .whp-bar.is-visible {
    transform: none;
    visibility: visible;
    transition: transform var(--dur-base) var(--ease), visibility 0s;
  }
  body.page-detail .whp-bar__rent {
    flex: 1 1 auto;
    min-width: 0;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 20px;
    line-height: 1.1;
    font-variant-numeric: tabular-nums lining-nums;
  }
  body.page-detail .whp-bar__rent .per { display: block; font-size: 12px; line-height: 1.2; }
  body.page-detail .whp-bar .whp-btn { flex: none; min-height: 44px; padding: 10px 14px; }

  /* The inquiry form is the last thing on the page: keep it clear of the bar
     even if the bar is showing (JS also hides the bar while the form is in view). */
  body.page-detail section.whp-apply {
    padding-bottom: calc(56px + var(--whp-bar-h) + env(safe-area-inset-bottom, 0px));
  }

  /* Office-only feedback button (fixed bottom right) rides above the bar. */
  body.page-detail.whp-bar-on #whp-fb-btn {
    bottom: calc(var(--whp-bar-h) + 16px + env(safe-area-inset-bottom, 0px));
  }
  body.page-detail.whp-bar-on #whp-fb-label,
  body.page-detail.whp-bar-on #whp-fb-toast {
    bottom: calc(var(--whp-bar-h) + 74px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-detail .whp-gal__tile img,
  body.page-detail .whp-viewer__img,
  body.page-detail .whp-viewer__thumb,
  body.page-detail .whp-amenities__toggle::after,
  body.page-detail .whp-bar,
  body.page-detail main .whp-sim { transition: none; }
}

/* =============================================================================
   Forms, inquiry section, lead enrichment, modals, map lightbox, returning-
   visitor card. Unchanged by the redesign: same markup, same field names.
   ========================================================================== */
/* =============================================================================
   Forms (scoped)
   ========================================================================== */
body.page-detail .whp-field { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-sans); }
body.page-detail .whp-field > label {
  font-size: 13px;
  color: var(--stone);
  font-weight: 500;
}
body.page-detail .whp-field > input,
body.page-detail .whp-field > select,
body.page-detail .whp-field > textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--charcoal);
  background: var(--cream);
  border: 1px solid var(--pebble);
  border-radius: var(--radius-input);
  padding: 10px 12px;
  outline: none;
  transition: border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
  width: 100%;
  box-sizing: border-box;
}
body.page-detail .whp-field > input:focus,
body.page-detail .whp-field > select:focus,
body.page-detail .whp-field > textarea:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 1px var(--brass);
}
body.page-detail .whp-field .hint { font-size: 12px; color: var(--stone); }

/* =============================================================================
   Apply / contact section (bottom)
   ========================================================================== */
body.page-detail .whp-apply {
  background: var(--linen);
  padding: 80px 32px;
  margin-top: 80px;
  border-top: 1px solid var(--pebble);
}
body.page-detail .whp-apply__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}
body.page-detail .whp-apply__pitch h2 {
  margin: 0 0 20px;
  font-size: 36px;
  line-height: 1.15;
}
body.page-detail .whp-apply__pitch p {
  color: var(--stone);
  font-size: 16px;
  line-height: 1.6;
  max-width: 420px;
  margin: 0 0 28px;
}
body.page-detail .whp-apply__pitch-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}
body.page-detail .whp-apply__call .eyebrow { margin-bottom: 8px; }
body.page-detail .whp-apply__call-num {
  font-size: 20px;
  color: var(--charcoal);
  font-variant-numeric: tabular-nums;
  display: block;
  border-bottom: 0;
}
body.page-detail .whp-apply__call-hours {
  font-size: 14px;
  color: var(--stone);
  line-height: 1.6;
}

body.page-detail .whp-contact-form {
  padding: 28px;
  border: 1px solid var(--pebble);
  border-radius: var(--radius-card);
  background: var(--cream);
}
body.page-detail .whp-contact-form h3 { margin: 0 0 6px; }
body.page-detail .whp-contact-form__sub {
  margin: 0 0 20px;
  color: var(--stone);
  font-size: 14px;
}
body.page-detail .whp-contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
body.page-detail .whp-contact-form__full { grid-column: 1 / -1; }
body.page-detail .whp-contact-form__footer {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
body.page-detail .whp-contact-form__fineprint {
  font-size: 12px;
  color: var(--stone);
  max-width: 320px;
  line-height: 1.5;
}

/* SMS consent block */
body.page-detail .whp-sms-consent { grid-column: 1 / -1; }
body.page-detail .whp-sms-consent label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--stone);
  line-height: 1.5;
  cursor: pointer;
}
body.page-detail .whp-sms-consent input[type="checkbox"] { margin-top: 3px; accent-color: var(--charcoal); }
body.page-detail .whp-sms-consent a { color: var(--charcoal); border-bottom: 1px solid var(--pebble); }
body.page-detail .whp-sms-consent a:hover { color: var(--brass); border-bottom-color: var(--brass); }

@media (max-width: 860px) {
  body.page-detail .whp-apply { padding: 56px 20px; margin-top: 56px; }
  body.page-detail .whp-apply__inner { grid-template-columns: 1fr; gap: 40px; }
  body.page-detail .whp-apply__pitch h2 { font-size: 28px; }
  body.page-detail .whp-contact-form__grid { grid-template-columns: 1fr; }
}

/* =============================================================================
   Lead enrichment (post-submit)
   ========================================================================== */
body.page-detail .lead-enrichment {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--pebble);
}
body.page-detail .lead-enrichment__header {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 500;
  color: var(--charcoal);
  margin: 0 0 4px;
}
body.page-detail .lead-enrichment__subhead {
  font-size: 13px;
  color: var(--stone);
  margin: 0 0 16px;
}
body.page-detail .lead-enrichment__row { margin-bottom: 14px; }
body.page-detail .lead-enrichment__row > label {
  display: block;
  font-size: 13px;
  color: var(--stone);
  font-weight: 500;
  margin-bottom: 6px;
}
body.page-detail .lead-enrichment__row input[type="number"],
body.page-detail .lead-enrichment__row input[type="date"],
body.page-detail .lead-enrichment__row select,
body.page-detail .lead-enrichment__row textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--charcoal);
  background: var(--cream);
  border: 1px solid var(--pebble);
  border-radius: var(--radius-input);
  padding: 10px 12px;
  width: 100%;
  outline: none;
  box-sizing: border-box;
  transition: border-color var(--dur-base) var(--ease);
}
body.page-detail .lead-enrichment__row input:focus,
body.page-detail .lead-enrichment__row select:focus,
body.page-detail .lead-enrichment__row textarea:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 1px var(--brass);
}
body.page-detail .lead-enrichment__prefix-wrap {
  position: relative;
}
body.page-detail .lead-enrichment__prefix {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--stone);
  font-size: 15px;
  pointer-events: none;
}
body.page-detail .lead-enrichment__prefix-wrap input { padding-left: 24px; }
body.page-detail .lead-enrichment__fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 14px;
}
body.page-detail .lead-enrichment__fieldset legend {
  font-size: 13px;
  color: var(--stone);
  font-weight: 500;
  margin-bottom: 8px;
  padding: 0;
}
body.page-detail .lead-enrichment__radio-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
body.page-detail .lead-enrichment__radio-group label,
body.page-detail .lead-enrichment__checkbox-row label {
  font-size: 14px;
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
body.page-detail .lead-enrichment__radio-group input,
body.page-detail .lead-enrichment__checkbox-row input[type="checkbox"] { accent-color: var(--charcoal); }
body.page-detail .lead-enrichment__pet-types {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
body.page-detail .lead-enrichment__checkbox-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
body.page-detail .lead-enrichment__qty-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--stone);
}
body.page-detail .lead-enrichment__qty-wrap select { width: auto; padding: 6px 8px; }
body.page-detail .lead-enrichment__done { margin-top: 8px; }

/* =============================================================================
   Modals
   ========================================================================== */
body.page-detail .whp-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
body.page-detail .whp-modal.is-open { display: flex; }
body.page-detail .whp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 27, 24, 0.55);
}
body.page-detail .whp-modal__content {
  position: relative;
  background: var(--cream);
  border-radius: var(--radius-card);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  border: 1px solid var(--pebble);
}
body.page-detail .whp-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: 0;
  font-size: 28px;
  color: var(--stone);
  cursor: pointer;
  line-height: 1;
  padding: 4px 10px;
}
body.page-detail .whp-modal__close:hover { color: var(--charcoal); }
body.page-detail .whp-modal__title {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 26px;
}
body.page-detail .whp-modal__body { font-size: 15px; color: var(--charcoal); line-height: 1.6; }
body.page-detail .whp-modal__body p { margin: 0 0 14px; }
body.page-detail .whp-modal__body ul { margin: 0 0 14px 0; padding-left: 20px; }
body.page-detail .whp-modal__body li { margin-bottom: 8px; }
body.page-detail .whp-modal__body a { color: var(--charcoal); border-bottom: 1px solid var(--pebble); }
body.page-detail .whp-modal__body a:hover { color: var(--brass); border-bottom-color: var(--brass); }
body.page-detail .whp-modal__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
body.page-detail .whp-modal__status {
  margin-top: 12px;
  font-size: 13px;
  color: var(--stone);
}
@media (max-width: 640px) {
  body.page-detail .whp-modal__row { grid-template-columns: 1fr; }
  body.page-detail .whp-modal__content { padding: 24px; }
}

/* Map lightbox — larger map */
body.page-detail .whp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  background: rgba(30, 27, 24, 0.85);
  padding: 40px;
}
body.page-detail .whp-lightbox.is-open { display: flex; align-items: center; justify-content: center; }
body.page-detail .whp-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: 0;
  font-size: 32px;
  color: var(--cream);
  cursor: pointer;
  line-height: 1;
  padding: 4px 10px;
}
body.page-detail .whp-lightbox__frame {
  width: 100%;
  max-width: 1100px;
  height: 80vh;
  background: var(--cream);
  border-radius: var(--radius-card);
  overflow: hidden;
}

/* =============================================================================
   Profile review card (returning-visitor UX)
   ========================================================================== */
body.page-detail .rentw2-profile-review-card {
  background: var(--cream);
  border: 1px solid var(--pebble);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  margin-bottom: 20px;
}
body.page-detail .rentw2-profile-review-card h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}
body.page-detail .rentw2-profile-review-card__lede {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--stone);
}
body.page-detail .rentw2-profile-review-card__summary {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
  margin: 0 0 20px;
  padding: 16px;
  background: var(--linen);
  border-radius: 4px;
  font-size: var(--text-sm, 0.875rem);
}
body.page-detail .rentw2-profile-review-card__summary dt {
  color: var(--stone);
  font-weight: 500;
  white-space: nowrap;
}
body.page-detail .rentw2-profile-review-card__summary dd {
  color: var(--charcoal);
  margin: 0;
  word-break: break-word;
}
body.page-detail .rentw2-profile-review-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
body.page-detail .rentw2-profile-review-card__status {
  margin: 0 0 8px;
  font-size: 13px;
  min-height: 1em;
}
body.page-detail .rentw2-profile-review-card__footer {
  margin: 0;
  font-size: 12px;
  color: var(--stone);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
body.page-detail .rentw2-profile-review-card__clear {
  background: transparent;
  border: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--stone);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
body.page-detail .rentw2-profile-review-card__clear:hover { color: var(--clay); }

@media (max-width: 640px) {
  body.page-detail .rentw2-profile-review-card { padding: 18px 16px; }
  body.page-detail .rentw2-profile-review-card__summary {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }
  body.page-detail .rentw2-profile-review-card__summary dt { margin-top: 8px; }
  body.page-detail .rentw2-profile-review-card__summary dt:first-child { margin-top: 0; }
  body.page-detail .rentw2-profile-review-card__actions { flex-direction: column; }
}

/* =============================================================================
   LEGACY — markup rendered before the 2026-11 redesign
   The sync Lambda writes listing pages to S3 as static HTML. Until it has
   regenerated a page, the stored copy still uses the old address bar, hero +
   thumb-strip gallery, specs bar, screening card and amenity grid. These rules
   keep those pages presentable (and js/listing-detail.js still drives the old
   gallery). Delete this whole block once every listing has been re-rendered.
   ========================================================================== */
body.page-detail .whp-sidebar { display: flex; flex-direction: column; gap: 20px; }
/* =============================================================================
   Address bar
   ========================================================================== */
body.page-detail .whp-addrbar {
  background: var(--cream);
  border-bottom: 1px solid var(--pebble);
}
body.page-detail .whp-addrbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
body.page-detail .whp-addrbar__info { display: flex; flex-direction: column; gap: 8px; }
body.page-detail .whp-breadcrumb {
  font-size: 13px;
  color: var(--stone);
  display: flex;
  gap: 8px;
  align-items: center;
}
body.page-detail .whp-breadcrumb a {
  color: var(--stone);
  border-bottom: 1px solid transparent;
}
body.page-detail .whp-breadcrumb a:hover { color: var(--brass); border-bottom-color: var(--brass); }
body.page-detail .whp-breadcrumb .sep { color: var(--pebble); }
body.page-detail .whp-breadcrumb .current { color: var(--charcoal); }

body.page-detail .whp-addrbar__title {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
body.page-detail .whp-addrbar__title h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
}
body.page-detail .whp-addrbar .city { color: var(--stone); font-size: 15px; }

body.page-detail .whp-addrbar__price { text-align: right; }
body.page-detail .whp-addrbar__rent {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 28px;
  color: var(--charcoal);
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
}
body.page-detail .whp-addrbar__rent .per {
  font-size: 14px;
  font-weight: 400;
  color: var(--stone);
  font-family: var(--font-sans);
}
body.page-detail .whp-addrbar__avail {
  font-size: 13px;
  color: var(--stone);
  margin-top: 4px;
}

@media (max-width: 720px) {
  body.page-detail .whp-addrbar__inner { padding: 14px 20px; }
  body.page-detail .whp-addrbar__title h1 { font-size: 26px; }
  body.page-detail .whp-addrbar__price { text-align: left; width: 100%; }
  body.page-detail .whp-addrbar__rent { font-size: 24px; }
}

/* ---- Gallery ---- */
body.page-detail .whp-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}
body.page-detail .whp-gallery__hero {
  grid-row: 1 / 3;
  grid-column: 1;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--linen);
  border-radius: var(--radius-card);
  position: relative;
}
body.page-detail .whp-gallery__hero img,
body.page-detail .whp-gallery__hero iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}
body.page-detail .whp-gallery__hero img { cursor: zoom-in; }
body.page-detail .whp-gallery__cell {
  grid-column: 2;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--linen);
  border-radius: var(--radius-card);
  cursor: pointer;
  position: relative;
}
body.page-detail .whp-gallery__cell:nth-of-type(1) { grid-row: 1; }
body.page-detail .whp-gallery__cell:nth-of-type(2) { grid-row: 2; }
body.page-detail .whp-gallery__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.page-detail .whp-gallery__badge {
  position: absolute;
  right: 16px;
  bottom: 14px;
  background: rgba(30,27,24,0.75);
  color: var(--cream);
  padding: 6px 12px;
  border-radius: 2px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  font-family: var(--font-sans);
}

body.page-detail .whp-gallery__strip {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 8px;
  margin-top: 12px;
}
body.page-detail .whp-gallery__thumb {
  height: 64px;
  border: 0;
  padding: 0;
  border-radius: 4px;
  cursor: pointer;
  outline: 1px solid var(--pebble);
  outline-offset: 0;
  opacity: 0.85;
  overflow: hidden;
  background: var(--linen);
  transition: opacity var(--dur-base) var(--ease), outline-color var(--dur-base) var(--ease);
}
body.page-detail .whp-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.page-detail .whp-gallery__thumb.is-active {
  outline: 2px solid var(--charcoal);
  outline-offset: 2px;
  opacity: 1;
}
body.page-detail .whp-gallery__thumb--video { position: relative; }
body.page-detail .whp-gallery__thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  background: rgba(30, 27, 24, 0.35);
  pointer-events: none;
}
body.page-detail .whp-gallery__thumb-play svg { width: 22px; height: 22px; }
@media (max-width: 640px) {
  body.page-detail .whp-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  body.page-detail .whp-gallery__hero {
    grid-row: 1;
    grid-column: 1 / -1;
  }
  body.page-detail .whp-gallery__cell {
    grid-column: auto;
  }
  body.page-detail .whp-gallery__cell:nth-of-type(1),
  body.page-detail .whp-gallery__cell:nth-of-type(2) {
    grid-row: 2;
  }
  body.page-detail .whp-gallery__strip { grid-template-columns: repeat(6, 1fr); }
}

/* ---- Specs bar (directly below gallery, same left column) ---- */
body.page-detail .whp-specs {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--pebble);
  border-radius: var(--radius-card);
  background: var(--cream);
  overflow: hidden;
}
body.page-detail .whp-specs__cell {
  padding: 22px 24px;
  border-right: 1px solid var(--pebble);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
body.page-detail .whp-specs__cell:last-child { border-right: 0; }
body.page-detail .whp-specs__value {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--charcoal);
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1;
}
body.page-detail .whp-specs__label {
  font-size: 12px;
  color: var(--stone);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@media (max-width: 720px) {
  body.page-detail .whp-specs { grid-template-columns: repeat(3, 1fr); }
  body.page-detail .whp-specs__cell { padding: 16px 14px; }
  body.page-detail .whp-specs__cell:nth-child(3n) { border-right: 0; }
  body.page-detail .whp-specs__cell {
    border-bottom: 1px solid var(--pebble);
  }
  body.page-detail .whp-specs__cell:nth-last-child(-n+2) { border-bottom: 0; }
  body.page-detail .whp-specs__value { font-size: 22px; }
}
@media (max-width: 480px) {
  body.page-detail .whp-specs { grid-template-columns: repeat(2, 1fr); }
  body.page-detail .whp-specs__cell:nth-child(3n) { border-right: 1px solid var(--pebble); }
  body.page-detail .whp-specs__cell:nth-child(2n) { border-right: 0; }
  body.page-detail .whp-specs__cell:last-child { grid-column: 1 / -1; border-right: 0; }
}

body.page-detail .whp-apply-card__sub {
  font-size: 13px;
  color: var(--stone);
  margin: 4px 0 20px;
}

body.page-detail .whp-qualify {
  background: var(--linen);
  border: 1px solid var(--pebble);
  border-radius: var(--radius-card);
  padding: 24px;
}
body.page-detail .whp-qualify .eyebrow { margin-bottom: 10px; }
body.page-detail .whp-qualify ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--stone);
  line-height: 1.5;
}
body.page-detail .whp-qualify__link {
  font-size: 13px;
  color: var(--charcoal);
  display: inline-block;
  margin-top: 12px;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
  font-family: var(--font-sans);
}
body.page-detail .whp-qualify__link:hover { color: var(--brass); }

body.page-detail .whp-main {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}
@media (max-width: 980px) {
  body.page-detail .whp-main { margin-top: 40px; gap: 40px; }
}

body.page-detail .whp-amenities h3 { margin: 0 0 24px; }
body.page-detail .whp-amenities__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
}
body.page-detail .whp-amenity {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 16px;
  border-top: 1px solid var(--pebble);
}
body.page-detail .whp-amenity__title {
  font-size: 16px;
  font-weight: 500;
  color: var(--charcoal);
  font-family: var(--font-sans);
}
body.page-detail .whp-amenity__desc {
  font-size: 14px;
  color: var(--stone);
}
@media (max-width: 640px) {
  body.page-detail .whp-amenities__grid { grid-template-columns: 1fr; }
}

body.page-detail .whp-details h3 { margin: 0 0 12px; }
body.page-detail .whp-utilities h3 { margin: 0 0 24px; }
body.page-detail .whp-appliances h3 { margin: 0 0 20px; }
body.page-detail .whp-location h3 { margin: 0 0 8px; }

/* Photo lightbox — full-screen viewer with prev/next + keyboard nav */
body.page-detail .whp-photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  background: rgba(14, 12, 10, 0.94);
  padding: 32px 72px;
  align-items: center;
  justify-content: center;
}
body.page-detail .whp-photo-lightbox.is-open { display: flex; }
body.page-detail .whp-photo-lightbox__figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
body.page-detail .whp-photo-lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
body.page-detail .whp-photo-lightbox__counter {
  color: rgba(250, 247, 242, 0.82);
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
body.page-detail .whp-photo-lightbox__close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: transparent;
  border: 0;
  color: var(--cream);
  font-size: 36px;
  line-height: 1;
  padding: 6px 12px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity var(--dur-base) var(--ease);
}
body.page-detail .whp-photo-lightbox__close:hover { opacity: 1; }
body.page-detail .whp-photo-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(250, 247, 242, 0.08);
  border: 1px solid rgba(250, 247, 242, 0.25);
  color: var(--cream);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease);
}
body.page-detail .whp-photo-lightbox__nav:hover {
  background: rgba(250, 247, 242, 0.18);
  border-color: rgba(250, 247, 242, 0.5);
}
body.page-detail .whp-photo-lightbox__nav:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}
body.page-detail .whp-photo-lightbox__nav[hidden] { display: none; }
body.page-detail .whp-photo-lightbox__nav svg { width: 24px; height: 24px; }
body.page-detail .whp-photo-lightbox__nav--prev { left: 18px; }
body.page-detail .whp-photo-lightbox__nav--next { right: 18px; }
@media (max-width: 640px) {
  body.page-detail .whp-photo-lightbox { padding: 16px 8px; }
  body.page-detail .whp-photo-lightbox__nav {
    width: 40px;
    height: 40px;
  }
  body.page-detail .whp-photo-lightbox__nav--prev { left: 6px; }
  body.page-detail .whp-photo-lightbox__nav--next { right: 6px; }
  body.page-detail .whp-photo-lightbox__img { max-height: calc(100vh - 100px); }
}
