/* 기본 */
body {
  font-family: Arial, sans-serif;
  background: #f6f6f6;
  margin: 0;
  padding: 20px;
}

/* 검색바 디자인 */
.search-wrapper {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.search-input,
.region-select,
.status-select,
#minPrice,
#maxPrice {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: white;
  font-size: 15px;
}

.search-btn {
  background: #ff7e00;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 15px;
}

.search-btn:hover {
  background: #ff9e40;
}

/* 결과 카드 그리드 */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
}

/* Skeleton UI */
.skeleton {
  background: linear-gradient(90deg, #e5e5e5, #f1f1f1, #e5e5e5);
  background-size: 200% 100%;
  animation: skeleton-loading 1.2s infinite ease-in-out;
  border-radius: 10px;
}

.skeleton-card {
  height: 250px;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 상품 카드 */
.card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all .2s;
  cursor: pointer;
}

.card:hover {
  transform: scale(1.03);
}

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

.card-title {
  padding: 10px 10px 0;
  font-size: 16px;
  font-weight: bold;
}

.card-price {
  padding: 0 10px 10px;
  font-size: 15px;
  color: #ff6f00;
  font-weight: bold;
}

/* 더보기 버튼 */
.load-more-btn {
  margin: 25px auto;
  display: block;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
}

.load-more-btn:hover {
  background: #eee;
}

.hidden {
  display: none;
}

/* 상세보기 모달 */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal-content {
  width: 430px;
  max-height: 85vh;
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  font-size: 25px;
  position: absolute;
  right: 12px;
  top: 10px;
  cursor: pointer;
}

.detail-img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.detail-title {
  font-size: 22px;
  font-weight: bold;
}

.detail-price {
  font-size: 18px;
  color: #ff6f00;
  margin: 5px 0;
}

.detail-status {
  font-size: 15px;
  color: #777;
}

.detail-date {
  font-size: 14px;
  color: #aaa;
}

.detail-content {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.5;
}

.detail-link {
  margin-top: 18px;
  display: inline-block;
  background: #ff7e00;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
}
