/* A home for sale */
.lst__inner { display: flex; flex-direction: column; }

/* Breadcrumb */
.lst-crumbs { padding: 4px 16px 0; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lst-crumbs a { color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; }
.lst-crumbs__here { color: var(--navy); font-weight: 500; }

/* Photos. Phone: one large photo with a side-scrolling strip under it. Desktop: a five-photo grid. */
.lst-gallery { position: relative; }
.lst-gallery__main { position: relative; height: 270px; background: var(--blue); }
.lst-photo { position: relative; display: block; width: 100%; height: 100%; }
.lst-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lst-photo:focus-visible { outline-offset: -3px; }
.lst-gallery__thumbs { gap: 8px; padding: 10px 16px 0; }
.lst-gallery__thumbs .lst-photo { flex: none; width: 132px; height: 96px; border-radius: 12px; overflow: hidden; }
.lst-photo__sample { position: absolute; left: 10px; bottom: 10px; background: rgba(255,255,255,0.92); color: var(--navy); font-size: 12px; font-weight: 600; border-radius: 6px; padding: 4px 8px; }
.lst-gallery > .tag { position: absolute; top: 14px; left: 14px; padding: 6px 10px; }
.lst-gallery__actions { position: absolute; top: 10px; right: 10px; display: flex; gap: 8px; }
.lst-gallery__actions .save-btn, .lst-share { box-shadow: 0 2px 8px rgba(27,43,74,0.18); }
.lst-share { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; background: #FFFFFF; color: var(--navy); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 600; cursor: pointer; }
.lst-share .icon { width: 20px; height: 20px; }
.lst-gallery__count { position: absolute; right: 12px; bottom: 12px; background: rgba(15,26,48,0.72); color: #FFFFFF; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 6px 12px; pointer-events: none; }
.lst-gallery__all { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; background: #FFFFFF; color: var(--navy); border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 16px rgba(27,43,74,0.18); }
.lst-sample-note { margin: 0; padding: 6px 16px 0; font-size: 12px; color: var(--muted); }

/* Body: the details column, then the "ask about this home" card */
.lst-body { padding: 20px 16px 28px; display: flex; flex-direction: column; gap: 28px; }
.lst-main { min-width: 0; display: flex; flex-direction: column; gap: 28px; }

.lst-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.lst-intro__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.lst-intro__price h1 { margin: 0; font-family: var(--head); font-weight: 700; font-size: 40px; line-height: 1; letter-spacing: -0.025em; }
.lst-intro__price span { font-size: 15px; color: var(--muted); }
.lst-intro__price h1 .price-note { font-size: 15px; }
.lst-intro__credit { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.lst-intro__address { display: flex; align-items: flex-start; gap: 8px; font-size: 17px; font-weight: 500; }
.lst-intro__address > span:first-child { display: inline-flex; margin-top: 2px; }
.lst-keys { align-self: stretch; margin: 6px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.lst-keys li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--mist); border-radius: 16px; }
.lst-keys li > span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.lst-keys__tile { flex: none; width: 40px; height: 40px; border-radius: 14px; background: #FFFFFF; color: var(--navy); display: grid; place-items: center; }
.lst-keys__value { font-family: var(--head); font-weight: 700; font-size: 18px; }
.lst-keys__label { font-size: 13px; color: var(--muted); }

.lst-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--card-shadow); }
.lst-bar__text { display: flex; flex-direction: column; }
.lst-bar__text strong { font-family: var(--head); font-size: 20px; }
.lst-bar__text span { font-size: 13px; color: var(--muted); }
.lst-bar__text a { font-weight: 600; white-space: nowrap; }
.lst-bar .btn { flex: none; border-width: 0; }

.lst-section { display: flex; flex-direction: column; gap: 14px; }
.lst-section h2 { margin: 0; font-family: var(--head); font-weight: 700; font-size: 22px; letter-spacing: -0.015em; }
.lst-about p { margin: 0; font-size: 16px; line-height: 1.7; }

.lst-highlights { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.lst-highlights li { background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: flex; gap: 14px; align-items: flex-start; }
.lst-highlights li > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.lst-highlights__tile { flex: none; width: 44px; height: 44px; border-radius: 14px; background: #FFE9E3; color: var(--coral-text); display: grid; place-items: center; }
.lst-highlights__title { font-family: var(--head); font-weight: 600; font-size: 18px; }
.lst-highlights__text { font-size: 15px; line-height: 1.5; color: var(--muted); }

.lst-details { margin: 0; background: var(--mist); border-radius: 20px; padding: 6px 18px 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 40px; }
.lst-details > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid #DCE3EF; font-size: 15px; }
.lst-details dt { color: var(--muted); }
.lst-details dd { margin: 0; font-weight: 600; text-align: right; }

.lst-features, .lst-near { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.lst-features li { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 15px; }
.lst-features li > span { color: #17603C; display: inline-flex; }
.lst-near li { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--mist); font-size: 15px; font-weight: 500; }

.lst-owners { background: var(--navy); color: #FFFFFF; border-radius: 24px; padding: 22px 20px; display: flex; flex-wrap: wrap; gap: 20px 24px; align-items: center; justify-content: space-between; }
.lst-owners__text { flex: 1 1 380px; min-width: 0; display: flex; gap: 16px; align-items: flex-start; }
.lst-owners__text > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.lst-owners__tile { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--coral); color: #FFFFFF; display: grid; place-items: center; }
.lst-owners h2 { margin: 0; font-family: var(--head); font-weight: 700; font-size: 22px; line-height: 1.15; }
.lst-owners p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--blue); }
.lst-owners .btn { flex: 1 1 100%; }

.lst-map { position: relative; height: 222px; border-radius: 20px; background: #E7EEFB; border: 1px solid #CFDAEE; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.lst-map__grid { position: absolute; inset: 0; background-image: linear-gradient(#D6E0F2 1px, transparent 1px), linear-gradient(90deg, #D6E0F2 1px, transparent 1px); background-size: 48px 48px; opacity: 0.7; }
.lst-map__pin { position: relative; width: 52px; height: 52px; border-radius: 999px; background: var(--coral); color: #FFFFFF; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(255,107,74,0.4); }
.lst-map__label { position: relative; font-size: 15px; font-weight: 600; background: #FFFFFF; border-radius: 999px; padding: 6px 14px; box-shadow: 0 2px 8px rgba(27,43,74,0.12); }
.lst-map__note { position: relative; font-size: 13px; color: var(--muted); }

/* Ask about this home */
.lst-ask { background: #FFFFFF; border: 1px solid var(--line); border-radius: 24px; padding: 20px 18px; box-shadow: 0 12px 40px rgba(27,43,74,0.10); display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 16px; }
.lst-ask__head { display: flex; gap: 14px; align-items: flex-start; }
.lst-ask__mark { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--navy); display: flex; align-items: center; justify-content: center; }
.lst-ask__by { display: flex; flex-direction: column; min-width: 0; }
.lst-ask__title { font-family: var(--head); font-weight: 600; font-size: 18px; }
.lst-ask__brokers { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.lst-ask__brokers > span { font-size: 14px; line-height: 1.45; color: var(--muted); }
.lst-ask__brokers strong { color: var(--navy); font-weight: 600; }
.lst-ask__lic { display: block; white-space: nowrap; }

.lst-form { display: flex; flex-direction: column; gap: 14px; }
.lst-mode { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lst-mode label { position: relative; display: block; cursor: pointer; }
.lst-mode input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.lst-mode span { min-height: 44px; display: flex; align-items: center; justify-content: center; text-align: center; border-radius: 10px; border: 1px solid var(--line-strong); background: #FFFFFF; color: var(--navy); font-size: 15px; font-weight: 500; }
.lst-mode input:checked + span { border-color: var(--navy); background: var(--navy); color: #FFFFFF; }
.lst-mode input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }
.lst-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; min-width: 0; }
.lst-field input, .lst-field textarea { width: 100%; min-width: 0; border: 1px solid var(--line-strong); border-radius: 12px; font-size: 16px; color: var(--navy); background: #FFFFFF; }
.lst-field input { height: 46px; padding: 0 12px; }
.lst-field input[type="date"] { -webkit-appearance: none; appearance: none; display: flex; align-items: center; line-height: 44px; text-align: left; }
.lst-field input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.lst-field input[type="date"]::-webkit-datetime-edit { padding: 0; }
.lst-field textarea { display: block; padding: 10px 12px; resize: vertical; }
.lst-field [aria-invalid="true"] { border-color: #A32213; }
.lst-error { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.4; color: #A32213; }
.lst-form__go { min-height: 52px; border: 0; background: var(--coral); color: #FFFFFF; border-radius: 12px; font-family: var(--head); font-weight: 600; font-size: 18px; cursor: pointer; transition: background-color .2s ease; }
.lst-form__go:hover, .lst-form__go:focus-visible { background: var(--coral-dark); }
.lst-form__go:disabled { opacity: 0.7; cursor: default; }
/* "Ask a question" has no preferred day and a different button label. data-mode is kept in step by listing.js. */
.lst-when-question { display: none; }
.lst-form[data-mode="question"] .lst-when-viewing, .lst-form[data-mode="question"] .lst-field--day { display: none; }
.lst-form[data-mode="question"] .lst-when-question { display: inline; }
.lst-form:has(input[value="question"]:checked) .lst-when-viewing, .lst-form:has(input[value="question"]:checked) .lst-field--day { display: none; }
.lst-form:has(input[value="question"]:checked) .lst-when-question { display: inline; }
.lst-sent { background: var(--blue); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.lst-sent__title { font-family: var(--head); font-weight: 600; font-size: 20px; }
.lst-sent__text { font-size: 15px; line-height: 1.55; }
.lst-ask__call { font-size: 14px; color: var(--muted); }
.lst-ask__call a { font-weight: 600; white-space: nowrap; }
.lst-ask__points { margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.lst-ask__points li { display: flex; gap: 10px; align-items: flex-start; }
.lst-ask__points li > span:first-child { color: #17603C; display: inline-flex; margin-top: 3px; }

/* More homes for sale */
.lst-more { background: var(--mist); padding: 28px 0 32px; }
.lst-more__inner { display: flex; flex-direction: column; gap: 16px; }
.lst-more__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; padding: 0 16px; }
.lst-more__head > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.lst-more h2 { margin: 0; font-family: var(--head); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; }
.lst-more__all { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--head); font-weight: 600; font-size: 16px; }
.lst-more__cards { gap: 12px; padding: 4px 16px 12px; }
.lst-card { flex: none; width: 272px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--card-shadow); overflow: hidden; display: flex; flex-direction: column; }
.lst-card__media { position: relative; height: 160px; background: var(--blue); }
.lst-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lst-card__media .tag { position: absolute; top: 12px; left: 12px; font-size: 11px; padding: 6px 10px; }
.lst-card__media .save-btn { position: absolute; top: 8px; right: 8px; box-shadow: 0 2px 8px rgba(27,43,74,0.18); }
.lst-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; flex: 1; }
.lst-card__price { font-family: var(--head); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.lst-card h3 { margin: 0; font-family: var(--body); font-size: 15px; font-weight: 500; text-wrap: wrap; }
.lst-card__facts { font-size: 14px; color: var(--muted); }
.lst-card__link { margin-top: auto; padding-top: 8px; min-height: 52px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--head); font-weight: 600; font-size: 15px; }

/* All photos, opened from the gallery */
.lst-lightbox { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: #FFFFFF; color: var(--navy); }
.lst-lightbox::backdrop { background: rgba(15,26,48,0.6); }
.lst-lightbox__bar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: #FFFFFF; border-bottom: 1px solid var(--line); font-family: var(--head); font-weight: 600; font-size: 16px; }
.lst-lightbox__close { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #FFFFFF; font-family: var(--body); font-size: 15px; font-weight: 600; cursor: pointer; }
.lst-lightbox__list { max-width: 960px; margin: 0 auto; padding: 16px 16px 40px; display: flex; flex-direction: column; gap: 12px; }
.lst-lightbox figure { position: relative; margin: 0; scroll-margin-top: 76px; }
.lst-lightbox img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--blue); }
.lst-lightbox figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(255,255,255,0.92); font-size: 12px; font-weight: 600; border-radius: 6px; padding: 4px 8px; }

@media (min-width: 900px) {
  .lst { padding: 20px 32px 88px; }
  .lst__inner { max-width: var(--wrap); margin: 0 auto; gap: 24px; }
  .lst-crumbs { padding: 0; }

  .lst-gallery { border-radius: 24px; overflow: hidden; }
  .lst-gallery__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 230px; gap: 10px; }
  .lst-gallery__main { grid-column: span 2; grid-row: span 2; height: auto; }
  .lst-gallery--single .lst-gallery__main { grid-column: 1 / -1; }
  .lst-gallery__thumbs { display: contents; }
  .lst-gallery__thumbs .lst-photo { width: auto; height: auto; border-radius: 0; }
  .lst-gallery > .tag { top: 16px; left: 16px; }
  .lst-gallery__actions { top: 14px; right: 14px; }
  .lst-share { width: auto; padding: 0 16px; }
  .lst-share .icon { width: 18px; height: 18px; }

  .lst-body { padding: 0; margin-top: 8px; flex-direction: row; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
  .lst-main { flex: 999 1 560px; gap: 44px; }
  .lst-intro { gap: 14px; }
  .lst-intro__price h1 { font-size: 56px; }
  .lst-intro__address { font-size: 20px; }
  .lst-intro__address > span:first-child { margin-top: 4px; }
  .lst-keys { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
  .lst-keys li { padding: 14px 16px; }
  .lst-keys__tile { width: 44px; height: 44px; }
  .lst-keys__value { font-size: 21px; }

  .lst-section h2 { font-size: 28px; }
  .lst-about p { font-size: 17px; }
  .lst-highlights { gap: 14px; }
  .lst-highlights li { padding: 20px; }
  .lst-details { padding: 10px 28px 14px; }
  .lst-owners { padding: 32px; }
  .lst-owners h2 { font-size: 26px; }
  .lst-owners .btn { flex: none; }
  .lst-map { height: 302px; }

  .lst-ask { flex: 1 1 360px; min-width: 0; max-width: 440px; position: sticky; top: 24px; padding: 24px; }

  .lst-more { padding: 64px 32px 72px; }
  .lst-more__inner { max-width: var(--wrap); margin: 0 auto; gap: 24px; }
  .lst-more__head { padding: 0; }
  .lst-more h2 { font-size: 32px; }
  .lst-more__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 0; overflow: visible; }
  .lst-card { width: auto; }
  .lst-card__media { height: 190px; }

  .lst-lightbox__list { padding: 24px 32px 64px; gap: 16px; }
}

/* Location: a live map with a pin on the home (the address is public for homes for sale). */
.lst-map--real { height: 320px; }
.lst-map--real .lst-map__label { position: absolute; top: 12px; left: 12px; z-index: 2; pointer-events: none; }
@media (min-width: 900px) { .lst-map--real { height: 420px; } }
