.search-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #f5f5f6;
  overflow-y: auto;
}

.search-header {
  background: #fff;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.search-box {
  display: flex;
  max-width: 680px;
  margin: 0 auto;
  border: 2px solid #00ae66;
  border-radius: 4px;
  overflow: hidden;
}

.search-box input {
  flex: 1;
  border: none;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
}

.search-box button {
  background: #00ae66;
  color: #fff;
  border: none;
  padding: 0 24px;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s;
}

.search-box button:hover { background: #009957; }

.filter-panel {
  background: #fff;
  padding: 16px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.filter-row {
  display: flex;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px dashed #f0f0f0;
}

.filter-row:last-child { border-bottom: none; }

.filter-label {
  width: 60px;
  font-size: 14px;
  color: #1f2937;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 6px;
}

.filter-group {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.filter-group .chip,
.filter-group label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 13px;
  color: #4b5563;
  cursor: pointer;
  user-select: none;
  transition: all .15s;
}

.filter-group .chip:hover,
.filter-group label:hover { color: #00ae66; }

.filter-group .chip.active,
.filter-group input[type="checkbox"]:checked + span {
  background: #e6f7ef;
  border-color: #00ae66;
  color: #00ae66;
}

.filter-group input[type="checkbox"] { display: none; }

.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 10;
}

.sort-tabs {
  display: flex;
  gap: 2px;
}

.sort-tabs button {
  border: none;
  background: transparent;
  padding: 8px 16px;
  font-size: 14px;
  color: #4b5563;
  cursor: pointer;
  position: relative;
}

.sort-tabs button.active {
  color: #00ae66;
  font-weight: 600;
}

.sort-tabs button.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: #00ae66;
}

.result-count {
  font-size: 14px;
  color: #6b7280;
}

.result-count b {
  color: #00ae66;
  font-size: 18px;
  margin: 0 2px;
}

.result-area {
  flex: 1;
  padding: 20px 24px;
  min-height: 0;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.listing-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow .2s, transform .1s;
  cursor: pointer;
}

.listing-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  transform: translateY(-2px);
}

.card-img {
  height: 160px;
  background: #e8eaed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 13px;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 14px;
}

.card-title {
  font-size: 15px;
  color: #1f2937;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-loc {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 8px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.card-tags span {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  background: #f3f4f6;
  color: #6b7280;
}

.card-tags span.green {
  background: #e6f7ef;
  color: #00ae66;
}

.card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid #f3f4f6;
  padding-top: 10px;
}

.card-price {
  color: #dc2626;
  font-size: 20px;
  font-weight: 700;
}

.card-price small {
  font-size: 12px;
  font-weight: 400;
  color: #6b7280;
  margin-left: 4px;
}

.card-unit {
  font-size: 13px;
  color: #6b7280;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 24px;
}

.pagination button {
  min-width: 32px;
  height: 32px;
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  color: #4b5563;
}

.pagination button.active {
  background: #00ae66;
  color: #fff;
  border-color: #00ae66;
}

.pagination button:disabled {
  color: #d1d5db;
  cursor: not-allowed;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
}

.empty-state h3 {
  color: #374151;
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .listing-grid { grid-template-columns: 1fr; }
  .sort-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
}
