/* =========================================
   장비다 리스트
========================================= */

.jb-list-page {
  padding: 30px 0 60px;
  background: #f5f7fa;
}

/* =========================================
   상단 카테고리
========================================= */

.jb-top-category {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-bottom: 24px;
  padding-bottom: 5px;
}

.jb-top-category a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  transition: all .2s ease;
}

.jb-top-category a:hover {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

/* =========================================
   레이아웃
========================================= */

.jb-list-layout {
  display: flex;
  align-items: flex-start;

  gap: 24px;
}

/* =========================================
   좌측 사이드
========================================= */

.jb-list-sidebar {
  width: 280px;
  flex-shrink: 0;

  position: sticky;
  top: 170px;

  height: fit-content;
}

.jb-side-box {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid #edf0f4;
}

.jb-side-box h3 {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 800;
  color: #111827;
}

.jb-side-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.jb-side-box ul li+li {
  margin-top: 12px;
}

.jb-side-box ul li a {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  transition: all .2s ease;
}

.jb-side-box ul li a:hover {
  color: #2563eb;
}

/* =========================================
   필터
========================================= */

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

.jb-filter-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.jb-filter-group input,
.jb-filter-group select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
}

.jb-filter-group input:focus,
.jb-filter-group select:focus {
  outline: none;
  border-color: #2563eb;
}

.jb-filter-btn {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
}

.jb-filter-btn:hover {
  background: #2563eb;
}

/* =========================================
   우측 컨텐츠
========================================= */

.jb-list-content {
  flex: 1;
  min-width: 0;
}

/* =========================================
   섹션
========================================= */

.jb-list-section {
  margin-bottom: 50px;
}

.jb-section-title {
  margin-bottom: 18px;
  font-size: 24px;
  font-weight: 800;
  color: #111827;
}

/* =========================================
   카드 그리드
========================================= */

.jb-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* =========================================
   카드
========================================= */

.jb-card {
  display: block;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #edf0f4;
  transition: all .2s ease;
}

.jb-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

/* =========================================
   썸네일
========================================= */

.jb-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #f3f4f6;
  overflow: hidden;
}

.jb-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================
   카드 내용
========================================= */

.jb-card-body {
  padding: 18px;
}

.jb-card-title {
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 800;
  color: #111827;
  line-height: 1.4;
}

.jb-card-meta {
  margin-bottom: 14px;
  font-size: 14px;
  color: #6b7280;
}

.jb-card-price {
  font-size: 22px;
  font-weight: 800;
  color: #2563eb;
}

/* =========================================
   추천매물 강조
========================================= */

.jb-card-grid.best .jb-card {
  border: 2px solid #2563eb;
}

/* =========================================
   우대매물
========================================= */

.jb-card-grid.premium .jb-card {
  background: #fcfcfd;
}

/* =========================================
   반응형
========================================= */

@media (max-width: 1280px) {

  .jb-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 1024px) {

  .jb-list-layout {
    flex-direction: column;
  }

  .jb-list-sidebar {
    width: 100%;
  }

}

@media (max-width: 768px) {

  .jb-list-page {
    padding: 20px 0 40px;
  }

  .jb-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .jb-section-title {
    font-size: 20px;
  }

  .jb-side-box {
    padding: 18px;
    border-radius: 14px;
  }

  .jb-card-body {
    padding: 16px;
  }

  .jb-card-title {
    font-size: 16px;
  }

  .jb-card-price {
    font-size: 20px;
  }

  .jb-list-sidebar {
    position: static;
    width: 100%;
  }

}