/* Listing page (#lp), built by tools/listing_page.py: photo mosaic, details on the left, contact card on the right. */
#lp {
  --ink: #534741; --soft: #7d7069; --line: #e8e3de; --stone: #f5f3f1; --paper: #fff;
  --serif: 'GT Super Display', Georgia, serif; --sans: Lato, 'Helvetica Neue', Arial, sans-serif;
  width: 100vw; margin-left: calc(50% - 50vw); background: var(--paper); color: var(--ink);
  font: 400 17px/1.65 var(--sans); padding-bottom: 96px;
}
#lp *, #lp *::before, #lp *::after { box-sizing: border-box; }
#lp h1, #lp h2 { font-family: var(--sans); color: var(--ink); text-transform: none; letter-spacing: 0; margin: 0; }
#lp p { margin: 0; }
#lp a { color: inherit; }
#lp img { display: block; width: 100%; height: 100%; object-fit: cover; }
#lp a:focus-visible, #lp button:focus-visible, #lp input:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* page top under the site's fixed header */
.lp-banner, .lp-banner .ip-custom-banner-img, .lp-banner canvas { height: 120px !important; min-height: 120px !important; }
.lp-banner canvas { background: #bba68d !important; background-image: none !important; display: block; width: 100%; }
.lp-banner .ip-custom-banner-title { display: none !important; }
#inner-page-wrapper:has(#lp) { margin-top: 0 !important; padding-top: 0 !important; }

/* photos: one large, four small */
#lp .lp-mosaic { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px;
  height: min(62vh, 620px); max-width: 1440px; margin: 6px auto 0; padding: 0 6px; }
#lp .lp-ph { display: block; overflow: hidden; background: var(--stone); cursor: zoom-in; }
#lp .lp-ph img { transition: transform .6s ease, opacity .3s; }
#lp .lp-mosaic .lp-ph:hover img { transform: scale(1.025); }
#lp .lp-m0 { grid-row: 1 / 3; }
#lp .lp-all { position: absolute; right: 22px; bottom: 16px; border: 0; border-radius: 999px; background: #fff; color: var(--ink);
  font: 700 15px/1 var(--sans); padding: 13px 20px; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
#lp .lp-all:hover { background: var(--stone); }
#lp .lp-stripwrap { display: none; position: relative; }

/* two columns */
#lp .lp-wrap { max-width: 1200px; margin: 0 auto; padding: 40px 32px 0; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; align-items: start; }
#lp .lp-status { display: flex; align-items: center; gap: 8px; font-size: 15px; }
#lp .lp-status span { width: 9px; height: 9px; border-radius: 50%; background: #5a9a6e; }
#lp .lp-price { font-family: var(--serif); font-size: 44px; line-height: 1.15; margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
#lp .lp-est { font: 400 14px/1 var(--sans); background: var(--stone); border-radius: 999px; padding: 8px 12px; text-decoration: none; }
#lp .lp-est:hover { background: var(--line); }
#lp .lp-beds { font-size: 18px; margin-top: 10px; }
#lp .lp-rent { font-size: 18px; margin-top: 6px; }
#lp h1 { font-family: var(--serif); font-size: 34px; font-weight: 400; line-height: 1.2; margin-top: 10px; }
#lp h1 span { display: block; font: 400 18px/1.5 var(--sans); color: var(--soft); margin-top: 4px; }
#lp .lp-bldg { color: var(--soft); font-size: 16px; margin-top: 4px; }
#lp .lp-hi { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 10px; margin-top: 28px; }
#lp .lp-hi div { background: var(--stone); padding: 14px 16px; }
#lp .lp-hi strong { display: block; font-size: 16px; }
#lp .lp-hi span { font-size: 14px; color: var(--soft); }

#lp .lp-sec { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 36px; }
#lp .lp-sec h2 { font-size: 24px; font-weight: 700; margin-bottom: 16px; }
#lp .lp-desc p + p { margin-top: 14px; }
#lp .lp-desc { max-width: 68ch; }
#lp .lp-det { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; margin: 0; }
#lp .lp-det div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
#lp .lp-det dt { color: var(--soft); font-weight: 400; }
#lp .lp-det dd { margin: 0; text-align: right; }

#lp .lp-cost-n { font-family: var(--serif); font-size: 34px; line-height: 1.2; }
#lp .lp-cost-n output, #lp .lp-cost-n span { display: inline; }
#lp .lp-cost-n span { font: 400 17px/1 var(--sans); white-space: nowrap; }
#lp .lp-cost-note { color: var(--soft); font-size: 15px; margin-top: 4px; }
#lp .lp-calc { display: grid; grid-template-columns: 1fr auto; gap: 8px 32px; align-items: center; margin-top: 22px; max-width: 560px; }
#lp .lp-calc label { font-size: 15px; display: flex; justify-content: space-between; gap: 12px; }
#lp .lp-calc label[for=lp-down] { grid-column: 1; }
#lp .lp-calc input[type=range] { grid-column: 1; grid-row: 2; width: 100%; accent-color: var(--ink); }
#lp .lp-calc label[for=lp-rate] { grid-column: 2; grid-row: 1; }
#lp .lp-rate { grid-column: 2; grid-row: 2; font-size: 15px; }
#lp .lp-rate input { width: 6ch; font: 400 16px/1 var(--sans); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 9px 8px; background: #fff; }
#lp .lp-credit { font-size: 14px; color: var(--soft); border-top: 1px solid var(--line); margin-top: 44px; padding-top: 20px; }

/* contact card */
#lp .lp-side { position: sticky; top: 84px; float: none; width: auto; }
#lp .lp-card { display: grid; gap: 10px; }
#lp .lp-btn { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 54px; border-radius: 999px;
  background: var(--ink); color: #fff; font: 700 16px/1.2 var(--sans); text-decoration: none; text-align: center; padding: 0 20px; transition: background .2s; }
#lp .lp-btn:hover { background: #3e3430; }
#lp .lp-btn-2 { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
#lp .lp-btn-2:hover { background: var(--stone); }
#lp .lp-agent { display: flex; gap: 14px; align-items: center; margin-top: 18px; font-size: 15px; line-height: 1.4; }
#lp .lp-agent img { width: 64px; height: 64px; border-radius: 50%; object-position: 50% 20%; flex: none; }
#lp .lp-agent strong { display: block; font-size: 16px; }
#lp .lp-agent span { display: block; color: var(--soft); }
#lp .lp-agent a { text-decoration: none; font-weight: 700; }
#lp .lp-bar { display: none; }

/* all photos */
#lp .lp-gallery { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #fff; }
#lp .lp-gallery::backdrop { background: #fff; }
#lp .lp-gallery form { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; padding: 14px 20px; background: rgba(255,255,255,.96); }
#lp .lp-close { border: 0; border-radius: 999px; background: var(--stone); color: var(--ink); font: 700 15px/1 var(--sans); padding: 12px 20px; cursor: pointer; }
#lp .lp-gal { max-width: 1000px; margin: 0 auto; padding: 0 20px 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#lp .lp-gal figure { margin: 0; }
#lp .lp-gal figure:nth-child(3n+1) { grid-column: 1 / -1; }
#lp .lp-gal .lp-ph { cursor: default; aspect-ratio: 3 / 2; }
#lp .lp-gal figcaption { font-size: 14px; color: var(--soft); padding: 6px 0 10px; }

#ai-minimalist-properties-details-wrap:has(#lp) .ai-minimalist-pd-pagination { margin-top: 0; }

@media (max-width: 991px) {
  .lp-banner { display: none !important; }
  #lp { padding-top: 114px; }
  #lp .lp-side { position: static; }
}
@media (max-width: 900px) {
  #lp .lp-wrap { grid-template-columns: 1fr; gap: 0; padding: 28px 20px 0; }
  #lp .lp-side { display: none; }
  #lp .lp-hi { grid-template-columns: repeat(min(var(--n, 4), 2), 1fr); }
  #lp .lp-det { grid-template-columns: 1fr; }
  #lp .lp-bar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -1px 0 var(--line); }
  #lp .lp-bar .lp-btn { flex: 1; min-height: 48px; }
  #lp .lp-bar .lp-btn-2 { flex: 0 0 96px; }
}
@media (max-width: 680px) {
  #lp .lp-mosaic { display: none; }
  #lp .lp-stripwrap { display: block; }
  #lp .lp-stripwrap .lp-all { right: 14px; bottom: 12px; padding: 10px 14px; font-size: 14px; }
  #lp .lp-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 4px; scrollbar-width: none; }
  #lp .lp-strip::-webkit-scrollbar { display: none; }
  #lp .lp-strip .lp-ph { flex: 0 0 100%; aspect-ratio: 4 / 3; scroll-snap-align: start; }
  #lp .lp-price { font-size: 36px; }
  #lp h1 { font-size: 28px; }
  #lp .lp-gal { grid-template-columns: 1fr; padding: 0 0 60px; }
  #lp .lp-gal figcaption { padding: 6px 16px 10px; }
}
@media (prefers-reduced-motion: reduce) { #lp .lp-ph img { transition: none; } }
