/* Filters container - scrollable */
#listing-filters {
    max-height: 800px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

#listing-filters::-webkit-scrollbar {
    width: 6px;
}

#listing-filters::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#listing-filters::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

#listing-filters::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Grid/List view toggle */
.property-sort-list-grid a {
    cursor: pointer;
}

/* List view - column adjustments */
#listing-results.listing-list > .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Skeleton Loading Styles */
@keyframes skeleton-pulse {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

.skeleton-card {
  pointer-events: none;
}

.skeleton-card .listing-img,
.skeleton-img,
.skeleton-img-placeholder {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  min-height: 220px;
  border-radius: 8px 8px 0 0;
}

.skeleton-img-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.listing-img {
  position: relative;
}

.listing-img img {
  position: relative;
  z-index: 2;
}

.skeleton-line {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: 4px;
  margin-bottom: 10px;
}

.skeleton-title {
  height: 24px;
  width: 80%;
}

.skeleton-subtitle {
  height: 16px;
  width: 60%;
}

.skeleton-price {
  height: 28px;
  width: 40%;
  margin-top: 15px;
}

.skeleton-features {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.skeleton-feature {
  height: 14px;
  width: 60px;
  margin-bottom: 0;
}

/* Image loading transition */
.listing-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
