/* Compound detail (hotdetail) — listings section enhancements */

.compound-detail-page .build-map {
  min-height: 320px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(44, 36, 25, 0.08);
}

.compound-detail-jump {
  margin: 1rem 0 0;
}

.compound-detail-jump__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #5d3c19;
  background: linear-gradient(135deg, #faf6ef 0%, #f3ebe0 100%);
  border: 1px solid rgba(189, 158, 94, 0.28);
  text-decoration: none !important;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.compound-detail-jump__link:hover {
  color: #cd212d;
  border-color: rgba(205, 33, 45, 0.25);
  background: #fff8f4;
  transform: translateY(-1px);
}

.compound-detail-page .row.info {
  align-items: flex-start;
}

@media (min-width: 992px) {
  .compound-detail-page .col-lg-4.right {
    position: sticky;
    top: 1rem;
    align-self: flex-start;
    z-index: 3;
  }
}

/* Disable legacy fixed enquiry overlay — it overlaps listing cards below */
.compound-detail-page .card.enquiry.fixed,
.container.property-infopage.compound-detail-page .card.enquiry.fixed {
  position: static !important;
  bottom: auto !important;
  width: 100% !important;
  box-shadow: 0 4px 18px rgba(44, 36, 25, 0.08) !important;
  margin-bottom: 0 !important;
}

.compound-detail-page .compound-listings {
  position: relative;
  z-index: 4;
  clear: both;
  background: #fff;
  margin-top: 2.5rem;
  padding-top: 2rem;
}

.compound-listings__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-top: 0.65rem;
}

.compound-listings__stat {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #5d3c19;
  background: #fff;
  border: 1px solid rgba(189, 158, 94, 0.35);
  box-shadow: 0 1px 4px rgba(44, 36, 25, 0.04);
}

.compound-listings__stat i {
  font-size: 0.72rem;
  color: #bd9e5e;
}

.compound-listings__stat--muted {
  font-weight: 600;
  color: #8a7a68;
  background: #faf8f4;
  border-color: rgba(44, 36, 25, 0.08);
}

.compound-listings__grid {
  position: relative;
  z-index: 1;
}

.compound-listings__grid .latest-listing-card {
  border: 1px solid rgba(44, 36, 25, 0.06);
}

.compound-listings__grid .latest-listing-card:hover {
  border-color: rgba(189, 158, 94, 0.35);
}

.compound-listings__grid .latest-listing-card__price {
  color: #cd212d;
}

.compound-listings__footer {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  padding-top: 0.75rem;
  clear: both;
  position: relative;
  z-index: 1;
}

.compound-listings__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff !important;
  background: linear-gradient(135deg, #cd212d 0%, #b01a26 100%);
  border: none;
  box-shadow: 0 8px 22px rgba(205, 33, 45, 0.22);
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compound-listings__cta:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(205, 33, 45, 0.28);
}

.compound-listings--empty {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(44, 36, 25, 0.1);
}

.compound-listings__empty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  max-width: 34rem;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #faf8f4 0%, #fff 100%);
  border: 1px dashed rgba(189, 158, 94, 0.35);
}

.compound-listings__empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  font-size: 1.2rem;
  color: #bd9e5e;
  background: #fff;
  border: 1px solid rgba(189, 158, 94, 0.25);
}

.compound-listings__empty-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #5d3c19;
}

.compound-listings__empty-text {
  margin: 0;
  max-width: 28rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #8a7a68;
}

@media (max-width: 991.98px) {
  .compound-detail-page .compound-listings {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
  }

  .compound-detail-page .detail-related__more {
    margin-top: 0.35rem;
  }
}

@media (max-width: 575.98px) {
  .compound-detail-jump__link {
    width: 100%;
    justify-content: center;
    font-size: 0.82rem;
  }

  .compound-listings__footer .compound-listings__cta {
    width: 100%;
    font-size: 0.84rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
