.property-listing-page .listing-main {
  background: linear-gradient(
    180deg,
    rgba(5, 21, 14, 0.98),
    rgba(9, 24, 16, 1)
  );
}

.property-listing-page .listing-hero {
  padding-bottom: 1rem;
}

.property-listing-page .listing-count {
  color: rgba(255, 197, 75, 0.82);
}

.property-listing-page .listing-filters {
  border-radius: 20px;
  padding: 1rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(
    308deg,
    #021a12 4%,
    rgb(2 46 31) 43%,
    rgb(1 30 21) 100%
  );
  position: sticky;
  top: var(--header-height, 0px);
  z-index: 100;
}

.property-listing-page .listing-filters.filters-at-top {
  top: 0;
}

.property-listing-page .listing-filter-row {
  display: grid;
  grid-template-columns:
    minmax(220px, 2fr) repeat(4, minmax(120px, 1fr))
    auto auto;
  gap: 12px;
  align-items: end;
}

.property-listing-page .filter-chip {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.property-listing-page .filter-chip-search {
  min-width: 220px;
}

.property-listing-page .listing-filters .form-label,
.property-listing-page .form-label {
  color: rgba(255, 197, 75, 0.92);
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.property-listing-page .listing-filters .form-control,
.property-listing-page .listing-filters .form-select,
.property-listing-page .listing-more-btn,
.property-listing-page .listing-reset-btn,
.property-listing-page .listing-more-offcanvas .form-select,
.property-listing-page .form-control {
  min-height: 40px;
  border-radius: 12px;
  background: rgba(2, 17, 12, 0.72);
  border: 1px solid rgba(255, 197, 75, 0.24);
  color: #f6f0e6;
  box-shadow: none;
}
.listing-filter-row .form-control#listing-search,
.property-listing-page .form-control {
  padding: 7px 16px;
}

.property-listing-page .listing-filters .form-control::placeholder {
  color: rgba(246, 240, 230, 0.58);
}

.property-listing-page .listing-filters .form-control:focus,
.property-listing-page .listing-filters .form-select:focus {
  border-color: rgba(255, 197, 75, 0.8);
  box-shadow: 0 0 0 0.15rem rgba(255, 197, 75, 0.16);
}

/* Custom select dropdown — replaces native <select> to avoid OS blue hover */
.property-listing-page .cselect-wrap {
  position: relative;
}

.property-listing-page .cselect-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 40px;
  border-radius: 12px;
  background: rgba(2, 17, 12, 0.72);
  border: 1px solid rgba(255, 197, 75, 0.24);
  color: #f6f0e6;
  padding: 0 0.75rem;
  cursor: pointer;
  user-select: none;
  font-size: 1rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  width: 100%;
}

.property-listing-page .cselect-trigger:focus,
.property-listing-page .cselect-wrap.open .cselect-trigger {
  border-color: rgba(255, 197, 75, 0.8);
  box-shadow: 0 0 0 0.15rem rgba(255, 197, 75, 0.16);
  outline: none;
}

.property-listing-page .cselect-arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid rgba(255, 197, 75, 0.7);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.property-listing-page .cselect-wrap.open .cselect-arrow {
  transform: rotate(180deg);
}

.property-listing-page .cselect-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 9999;
  background: #031a0f;
  border: 1px solid rgba(255, 197, 75, 0.3);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  max-height: 240px;
  overflow-y: auto;
}

.property-listing-page .cselect-wrap.open .cselect-dropdown {
  display: block;
}

.property-listing-page .cselect-option {
  padding: 0.55rem 0.9rem;
  color: #f6f0e6;
  cursor: pointer;
  font-size: 0.95rem;
  transition:
    background 0.15s,
    color 0.15s;
}

.property-listing-page .cselect-option:hover {
  background: rgba(255, 197, 75, 0.12);
  color: #ffd27e;
}

.property-listing-page .cselect-option.selected {
  background: rgba(255, 197, 75, 0.18);
  color: #ffd27e;
  font-weight: 500;
}

.property-listing-page .listing-more-btn,
.property-listing-page .listing-reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 500;
}

.property-listing-page .listing-more-btn {
  color: #f6f0e6;
}

.property-listing-page .listing-reset-btn {
  color: var(--gold);
}

.property-listing-page .listing-more-btn:hover,
.property-listing-page .listing-reset-btn:hover {
  border-color: rgba(255, 197, 75, 0.8);
  background: rgba(255, 211, 126, 0.12);
  color: var(--gold);
}

.property-listing-page .listing-more-offcanvas {
  position: fixed;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  height: 100vh !important;
  max-height: 100vh !important;
  width: min(520px, 100vw) !important;
  background: linear-gradient(
    180deg,
    rgba(5, 21, 14, 0.99),
    rgba(9, 24, 16, 1)
  ) !important;
  color: #f6f0e6;
  z-index: 3000000000 !important;
  border-left: 1px solid rgba(255, 197, 75, 0.18);
  box-shadow: -18px 0 48px rgba(0, 0, 0, 0.42);
}

.property-listing-page .listing-more-offcanvas.show,
.property-listing-page .listing-more-offcanvas.showing {
  visibility: visible;
}

.property-listing-page .listing-more-offcanvas .offcanvas-header {
  border-bottom: 1px solid rgba(255, 197, 75, 0.14);
  padding: 1rem 1rem 0.9rem;
}

.property-listing-page .listing-more-offcanvas .offcanvas-body {
  padding: 1rem;
  overflow-y: auto;
}

.property-listing-page .listing-property-card {
  position: relative;
}

.offcanvas-backdrop {
  z-index: 2990 !important;
  background-color: rgba(0, 0, 0, 0.72);
}

.offcanvas-backdrop.show {
  opacity: 0.72;
}

.property-listing-page .listing-more-grid {
  display: grid;
  gap: 1rem;
}

.property-listing-page .listing-more-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
  align-items: center;
}

.property-listing-page .listing-results-wrap {
  margin-top: 1rem;
}

.property-listing-page .listing-toolbar {
  margin-bottom: 1rem;
}

.property-listing-page .listing-grid {
  align-items: stretch;
}

.property-listing-page .listing-property-card {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.property-listing-page .listing-property-card .property-image-container {
  height: 250px;
}

.property-listing-page .listing-property-card .property-badge {
  background: rgba(255, 211, 126, 0.95);
  color: #021a12;
}

.property-listing-page .listing-property-card .property-header h3 {
  /* min-height: 58px; */
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.property-listing-page .listing-empty-state {
  padding: 2rem;
  border-radius: 24px;
  text-align: center;
}

.property-listing-page .listing-empty-state h3 {
  color: var(--gold);
}

.property-listing-page .listing-pagination {
  margin-top: 2rem;
}

.property-listing-page .pagination {
  gap: 0.4rem;
}

.property-listing-page .page-item .page-link {
  background: rgba(2, 17, 12, 0.8);
  color: var(--gold);
  border: 1px solid rgba(255, 197, 75, 0.25);
  border-radius: 10px;
  min-width: 44px;
  text-align: center;
}

.property-listing-page .page-item.active .page-link,
.property-listing-page .page-item .page-link:hover {
  background: linear-gradient(
    173deg,
    rgba(255, 211, 126, 1) 0%,
    rgba(255, 211, 126, 1) 25%,
    rgba(229, 173, 68, 1) 100%
  );
  color: #042114;
  border-color: rgba(255, 211, 126, 1);
}

.property-listing-page .page-item.disabled .page-link {
  opacity: 0.45;
}

@media (max-width: 768px) {
  .property-listing-page .listing-filter-row {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
  }

  .property-listing-page .filter-chip-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 991px) {
  .property-listing-page .listing-filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile-only offcanvas filters: hidden on desktop */
.listing-more-mobile-only,
.listing-more-offcanvas .listing-more-mobile-only {
  display: none !important;
}

@media (max-width: 767px) {
  .property-listing-page .listing-filters {
    padding: 0.85rem;
  }

  /* Hide desktop filters in main bar */
  .property-listing-page .filter-chip-desktop-only {
    display: none !important;
  }

  /* Show mobile-only filters inside offcanvas */
  .listing-more-mobile-only,
  .listing-more-offcanvas .listing-more-mobile-only {
    display: block !important;
  }

  .property-listing-page .listing-filter-row {
    grid-template-columns: 1fr;
  }

  .property-listing-page .listing-property-card .property-image-container {
    height: 220px;
  }
}

/* Active filter badges */
.property-listing-page .listing-active-filters {
  padding: 0.5rem 0 0.25rem;
}

.property-listing-page .filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 197, 75, 0.12);
  border: 1px solid rgba(255, 197, 75, 0.38);
  color: rgba(255, 211, 126, 0.95);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s;
  white-space: nowrap;
}

.property-listing-page .filter-badge:hover {
  background: rgba(255, 197, 75, 0.22);
  border-color: rgba(255, 197, 75, 0.7);
  color: var(--gold);
}

.property-listing-page .filter-badge-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255, 197, 75, 0.2);
  font-size: 0.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.property-listing-page .listing-hero-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.property-listing-page .listing-hero-panel > div {
  background: linear-gradient(
    308deg,
    #021a12 4%,
    rgb(2 46 31) 43%,
    rgb(1 30 21) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px 12px;
  text-align: center;
}

.property-listing-page .listing-stat {
  display: block;
  color: var(--gold);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}

.property-listing-page .listing-hero-panel small,
.property-listing-page .listing-count {
  color: rgba(255, 197, 75, 0.8);
}

.property-listing-page .listing-sidebar-wrap {
  position: sticky;
  top: 110px;
}
