/* League Estates — CRMLS IDX search + detail */

.le-idx {
  --navy: #0a2744;
  --navy-deep: #061525;
  --gold: #d4af37;
  --gold-soft: #e8d48b;
  --cream: #f7f4ef;
  --muted: #5c6b7a;
  --ink: #0f1a24;
  max-width: 1140px;
  margin: 0 auto 2.5rem;
  color: var(--ink);
}
.le-idx *,
.le-idx *::before,
.le-idx *::after,
.le-idx-detail *,
.le-idx-detail *::before,
.le-idx-detail *::after {
  box-sizing: border-box;
}

.le-idx-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  margin: 0 0 1.5rem;
  padding: 2rem 1.5rem 1.7rem;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 60% at 90% -5%, rgba(212, 175, 55, 0.3), transparent 55%),
    linear-gradient(155deg, #061525 0%, #0c2a48 48%, #081c32 100%);
  border: 1px solid rgba(212, 175, 55, 0.42);
  box-shadow: inset 0 3px 0 0 #d4af37, 0 24px 56px rgba(0, 0, 0, 0.22);
}
.le-idx-hero h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: #fff;
}
.le-idx-hero p:last-child {
  margin: 0 auto;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}
.le-idx-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 0.7rem;
}
.le-idx-kicker a {
  color: var(--gold-soft) !important;
  text-decoration: none !important;
}

.le-idx-wait {
  background: var(--cream);
  border: 1px dashed rgba(10, 39, 68, 0.2);
  border-radius: 16px;
  padding: 1.5rem 1.2rem;
  text-align: center;
  color: var(--muted);
}

.le-idx-filters {
  margin: 0 0 1rem;
}
.le-idx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin: 0 0 0.9rem;
}
.le-idx-chip {
  appearance: none;
  border: 1px solid rgba(10, 39, 68, 0.15);
  background: #f7f4ef;
  color: #0a2744;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}
.le-idx-chip.is-on {
  background: #0a2744;
  color: #fff;
  border-color: #0a2744;
}
.le-idx-row {
  display: grid;
  grid-template-columns: 1.4fr repeat(5, minmax(0, 1fr)) auto;
  gap: 0.55rem;
  align-items: end;
}
@media (max-width: 980px) {
  .le-idx-row {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .le-idx-row {
    grid-template-columns: 1fr;
  }
}
.le-idx-row label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.le-idx-row input,
.le-idx-row select {
  font: inherit;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--navy);
  border: 1px solid rgba(10, 39, 68, 0.16);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  background: #fff;
}
.le-idx-go,
.le-idx-more,
.le-idx-ghost {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none !important;
}
.le-idx-go {
  background: #0a2744;
  color: #fff !important;
  padding: 0.7rem 1.15rem;
  height: fit-content;
}
.le-idx-ghost {
  background: transparent;
  color: #0a2744 !important;
  border: 1px solid rgba(10, 39, 68, 0.2);
  padding: 0.65rem 1.05rem;
}
.le-idx-more {
  background: #f7f4ef;
  color: #0a2744;
  border: 1px solid rgba(10, 39, 68, 0.15);
  padding: 0.65rem 1.2rem;
}
.le-idx-more-wrap {
  text-align: center;
  margin: 1rem 0 0;
}

.le-idx-meta {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}
.le-idx-grid {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (min-width: 1500px) {
  .le-idx-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 980px) {
  .le-idx-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .le-idx-grid {
    grid-template-columns: 1fr;
  }
}

.le-idx-card {
  list-style: none !important;
  margin: 0;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(10, 39, 68, 0.08);
  border: 1px solid rgba(10, 39, 68, 0.06);
  display: flex;
  flex-direction: column;
}
.le-idx-card-media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  background: #eef1f4;
  overflow: hidden;
}
.le-idx-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.le-idx-card-price {
  display: block;
  padding: 0.85rem 1rem 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0a2744;
  text-decoration: none !important;
}
.le-idx-card-facts {
  display: block;
  padding: 0.15rem 1rem 0;
  color: #5c6b7a;
  font-size: 0.92rem;
}
.le-idx-card-addr {
  display: block;
  padding: 0.2rem 1rem 0;
  color: #0a2744;
  font-weight: 600;
  text-decoration: none !important;
}
.le-idx-card-attr {
  display: block;
  padding: 0.45rem 1rem 1rem;
  color: #3d4a58;
  font-size: 0.88rem;
  line-height: 1.4;
  font-weight: 600;
}

.le-idx-disclaimer {
  margin: 1.75rem auto 0;
  max-width: 46rem;
  text-align: center;
  color: #5c6b7a;
  font-size: 0.86rem;
  line-height: 1.55;
}

.le-idx-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1rem;
  color: #5c6b7a;
  background: #f7f4ef;
  border-radius: 14px;
  border: 1px dashed rgba(10, 39, 68, 0.15);
}

.le-idx-detail {
  background: #fff;
  padding: 1.5rem 1.1rem 3rem;
}
.le-idx-detail-inner {
  max-width: 1080px;
  margin: 0 auto;
}
.le-idx-detail h1 {
  margin: 0 0 0.35rem;
  color: #0a2744;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.le-idx-detail-sub {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0a2744;
}
.le-idx-facts {
  margin: 0 0 1.1rem;
  color: #5c6b7a;
}
.le-idx-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0.45rem;
  margin: 0 0 1.4rem;
}
.le-idx-gallery .is-hero {
  grid-row: span 2;
}
.le-idx-gallery figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #eef1f4;
  min-height: 120px;
}
.le-idx-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 800px) {
  .le-idx-gallery {
    grid-template-columns: 1fr 1fr;
  }
  .le-idx-gallery .is-hero {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}
.le-idx-detail-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 1.4rem;
  align-items: start;
}
@media (max-width: 800px) {
  .le-idx-detail-grid {
    grid-template-columns: 1fr;
  }
}
.le-idx-detail-copy {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #0f1a24;
}
.le-idx-attr {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(10, 39, 68, 0.1);
  font-weight: 700;
  color: #0a2744;
  font-size: 1rem;
}
.le-idx-detail-cta {
  background: #061525;
  color: #fff;
  border-radius: 18px;
  padding: 1.3rem 1.2rem;
  border: 1px solid rgba(212, 175, 55, 0.4);
}
.le-idx-cta-label {
  margin: 0 0 0.4rem;
  font-weight: 800;
  color: var(--gold-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.le-idx-detail-cta p {
  color: rgba(255, 255, 255, 0.82);
}
.le-idx-detail-cta .le-idx-go {
  width: 100%;
  margin: 0.6rem 0 0.45rem;
}
.le-idx-detail-cta .le-idx-ghost {
  width: 100%;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.28);
}
