/* Lease & Rental listings */
.lr-banner {
  position: relative;
  color: #fff;
  min-height: min(48vh, 420px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.lr-banner__media {
  position: absolute;
  inset: 0;
}

.lr-banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lr-banner__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 21, 37, 0.2) 0%, rgba(6, 21, 37, 0.78) 100%),
    linear-gradient(90deg, rgba(6, 21, 37, 0.55) 0%, transparent 60%);
}

.lr-banner__content {
  position: relative;
  z-index: 2;
  padding: 3rem 0 2.4rem;
  max-width: none;
}

.lr-banner__eyebrow {
  margin: 0 0 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-soft);
}

.lr-banner__content h1 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: #fff;
  line-height: 1.08;
}

.lr-banner__content p {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 720px;
}

.lr-section {
  background: linear-gradient(180deg, #f7f4ee 0%, #fff 40%);
  padding-left: 0;
  padding-right: 0;
  width: 100%;
  max-width: 100vw;
}

.lr-shell {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 clamp(0.85rem, 2vw, 1.5rem) 1.25rem;
  box-sizing: border-box;
}

.lr-tabs {
  display: inline-flex;
  gap: 0.45rem;
  padding: 0.35rem;
  margin: 0;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(6, 21, 37, 0.22);
}

.lr-tab {
  min-width: 120px;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy);
  transition: background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.lr-tab.is-active,
.lr-tab:hover {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 18px rgba(11, 31, 58, 0.18);
}

.lr-layout {
  display: grid;
  gap: 1rem;
  align-items: stretch;
  width: 100%;
  min-height: calc(100vh - 12rem);
}

.lr-filters {
  background: #fff;
  border: 1px solid rgba(11, 31, 58, 0.08);
  border-radius: 18px;
  padding: 1.15rem 1.1rem 1.25rem;
  box-shadow: 0 12px 28px rgba(11, 31, 58, 0.08);
  height: 100%;
}

.lr-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.lr-filters__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--navy);
}

.lr-filters__reset {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
}

.lr-filter-group {
  margin-bottom: 1rem;
}

.lr-filter-group label,
.lr-filter-label {
  display: block;
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(11, 31, 58, 0.62);
}

.lr-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.lr-chip {
  cursor: pointer;
}

.lr-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lr-chip span {
  display: inline-flex;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(11, 31, 58, 0.12);
  background: #f7f4ee;
  color: rgba(11, 31, 58, 0.78);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.lr-chip input:checked + span {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.lr-budget {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.45rem;
  align-items: center;
}

.lr-budget span {
  color: rgba(11, 31, 58, 0.45);
  font-size: 0.8rem;
}

.lr-results {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.lr-results__toolbar {
  margin-bottom: 0.75rem;
  color: rgba(11, 31, 58, 0.65);
}

.lr-results__scroll {
  flex: 1 1 auto;
  max-height: calc(100vh - 11rem);
  min-height: 28rem;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(196, 163, 90, 0.75) rgba(11, 31, 58, 0.08);
}

.lr-results__scroll::-webkit-scrollbar { width: 6px; }
.lr-results__scroll::-webkit-scrollbar-thumb {
  background: rgba(196, 163, 90, 0.75);
  border-radius: 999px;
}

.lr-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  flex: 0 0 auto;
  width: 100%;
  min-height: 250px;
  background: #fff;
  border: 1px solid rgba(11, 31, 58, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(11, 31, 58, 0.08);
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

.lr-card:hover {
  transform: translateY(-3px);
  border-color: rgba(196, 163, 90, 0.4);
  box-shadow: 0 18px 36px rgba(11, 31, 58, 0.14);
}

.lr-card__media {
  position: relative;
  flex: 0 0 280px;
  width: 280px;
  max-width: 34%;
  height: auto;
  min-height: 250px;
  align-self: stretch;
  background: #e8edf4;
  overflow: hidden;
}

.lr-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 280ms ease;
  display: block;
}

.lr-card__media img.is-active {
  opacity: 1;
  z-index: 1;
}

.lr-card__dots {
  position: absolute;
  left: 50%;
  bottom: 0.7rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.3rem;
  z-index: 2;
}

.lr-card__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.lr-card__dots span.is-active {
  background: #fff;
}

.lr-card__room {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 2;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(6, 21, 37, 0.72);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lr-card__body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 1.1rem 1.25rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  justify-content: center;
}

.lr-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.lr-card__price {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}

.lr-card__badge {
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: rgba(196, 163, 90, 0.16);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lr-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
  line-height: 1.2;
}

.lr-card__loc {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  color: rgba(11, 31, 58, 0.62);
  font-size: 0.9rem;
}

.lr-card__loc svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
  flex-shrink: 0;
}

.lr-card__meta-line {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(11, 31, 58, 0.55);
}

.lr-card__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.45rem;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbf9f4 0%, #f3f0e8 100%);
  border: 1px solid rgba(196, 163, 90, 0.18);
}

.lr-card__facts span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(11, 31, 58, 0.5);
  margin-bottom: 0.2rem;
}

.lr-card__facts strong {
  font-size: 0.88rem;
  color: var(--navy);
  font-weight: 700;
}

.lr-card__excerpt {
  margin: 0.35rem 0 0;
  color: rgba(11, 31, 58, 0.62);
  font-size: 0.9rem;
  line-height: 1.45;
}

.lr-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.55rem;
}

.lr-empty {
  text-align: center;
  padding: 2.5rem 1.25rem;
  background: #fff;
  border-radius: 18px;
  border: 1px dashed rgba(11, 31, 58, 0.15);
}

@media (min-width: 980px) {
  .lr-layout {
    grid-template-columns: minmax(260px, 22%) minmax(0, 1fr);
    gap: 1.15rem;
  }

  .lr-filters {
    position: sticky;
    top: calc(var(--header-h-scrolled, 68px) + 0.5rem);
    max-height: calc(100vh - 5.5rem);
    overflow: auto;
  }

  .lr-results__scroll {
    max-height: calc(100vh - 10.5rem);
  }
}

@media (max-width: 979px) {
  .lr-layout {
    min-height: 0;
  }

  .lr-results__scroll {
    max-height: none;
    min-height: 0;
  }
}

@media (max-width: 820px) {
  .lr-shell {
    padding-inline: 0.75rem;
  }

  .lr-card {
    flex-direction: column;
    min-height: 0;
  }

  .lr-card__media {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    height: 220px;
    min-height: 220px;
  }

  .lr-card__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
