:root {
  --primary: #0d6efd;
  --primary-dark: #084298;
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 8px 24px rgba(15, 23, 42, .08);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, sans-serif;
}

.page-shell {
  padding: 24px;
}

.sidebar-card,
.listing-card,
.panel-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sidebar-card {
  padding: 16px;
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.form-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
}

.form-control,
.form-select {
  border-radius: 10px;
  border-color: var(--border);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .15rem rgba(13, 110, 253, .15);
}

.filter-group {
  margin-bottom: 18px;
}

.filter-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.filter-checks .form-check {
  margin: 0;
  font-size: .82rem;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.results-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0;
}

.results-count {
  color: var(--muted);
  font-size: .95rem;
}

.listing-card {
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.listing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .13);
}

.listing-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.listing-body {
  padding: 20px;
}

.listing-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
  padding-right: 210px;
}

.listing-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.listing-meta {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 10px;
}

.listing-description {
  color: #374151;
  line-height: 1.45;
}

.listing-badges {
  position: absolute;
  top: 14px;
  right: 14px;
  text-align: right;
  z-index: 2;
}

.badge-soft {
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 700;
}

.actions-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.btn {
  border-radius: 10px;
  font-weight: 700;
}

.btn-primary {
  background: var(--primary);
}

.info-box {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.info-box h6 {
  font-weight: 800;
  margin-bottom: 8px;
}

.info-box ul {
  padding-left: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
  font-size: .9rem;
}

.pagination .page-link {
  border-radius: 10px;
  margin: 0 3px;
  border: 1px solid var(--border);
  color: var(--primary);
}

.pagination .active .page-link {
  background: var(--primary);
  border-color: var(--primary);
}

@media (max-width: 991px) {
  .page-shell {
    padding: 14px;
  }

  .sidebar-card {
    position: static;
    max-height: none;
    margin-bottom: 18px;
  }

  .listing-title {
    padding-right: 0;
  }

  .listing-badges {
    position: static;
    margin-bottom: 10px;
    text-align: left;
  }

  .listing-img {
    height: 240px;
  }
}