/* ============ Board list / gallery ============ */
.board-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 0;
  margin-bottom: 12px;
}
.board-count { font-size: 13px; color: var(--color-text-mute); }
.board-count b { color: var(--color-text); font-weight: 600; }
/* Figma 13-203: 제목 dropdown + input with inline search icon */
.board-search { display: flex; gap: 8px; align-items: stretch; }
.board-search select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 12px 34px 12px 14px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 14px;
  color: var(--color-text);
  /* Figma 13:75 — #ccc down triangle (13x9), no native arrow */
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='13' height='9' viewBox='0 0 13 9'><path d='M0 0h13L6.5 9z' fill='%23cccccc'/></svg>") no-repeat right 14px center;
  min-width: 110px;
}
.board-search select::-ms-expand { display: none; }
.board-search__box { position: relative; display: flex; }
.board-search__box input {
  flex: 1;
  min-width: 0;
  padding: 12px 42px 12px 14px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 14px;
  background: #fff;
}
.board-search__box button {
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-text-mute);
  display: flex;
  align-items: center;
  padding: 8px;
}
.board-search__box button:hover { color: var(--color-navy); }

/* Category tabs */
/* Figma 13-203: connected segmented tabs, navy border, no radius */
.board-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 28px;
}
.board-cats a {
  text-align: center;
  padding: 20px 16px;
  border: 1px solid var(--color-navy);
  margin-left: -1px;
  background: #fff;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  transition: all .15s;
}
.board-cats a:first-child { margin-left: 0; }
.board-cats a:hover { color: var(--color-navy); }
.board-cats a.is-active {
  background: var(--color-navy);
  color: #fff;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

/* Grid list */
.board-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 44px 32px;   /* Figma 13-203: ~row 47 / col 36 (scaled) */
}
@media (max-width: 1024px) { .board-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .board-grid { grid-template-columns: repeat(2, 1fr); } .board-cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .board-grid { grid-template-columns: 1fr; } .board-cats { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 640px) {
  .board-search { flex-wrap: wrap; }
  .board-search select { flex: 1; }
  .board-search__box { flex: 1 1 100%; }
}

.board-item {
  display: flex;
  flex-direction: column;
  color: var(--color-text);
  padding-bottom: 30px;
  border-bottom: 1px solid #dcdcdc;   /* Figma 13-203 card divider */
  transition: transform .2s;
}
.board-item:hover { transform: translateY(-2px); }
.board-item__thumb {
  aspect-ratio: 363 / 263;   /* Figma 13-105 */
  background: var(--color-bg-mute);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}
.board-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
/* Figma 13-203 removes the category badge overlay on thumbnails */
.board-item__badge { display: none; }
.board-item__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}
/* Figma 13-203: "라벨 : 값" inline, left-aligned */
.board-item__meta {
  font-size: 13px;
  color: var(--color-text-mute);
  line-height: 1.75;
}
.board-item__meta div { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-item__meta dt, .board-item__meta dd { display: inline; margin: 0; }
.board-item__meta dt { color: var(--color-text-mute); }
.board-item__meta dt::after { content: " : "; white-space: pre; }
/* gallery meta = category + date on one line */
.board-item__meta:has(> span) { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.board-item__meta > span:first-child { color: var(--color-navy); font-weight: 600; }
.board-item__price {
  margin-top: 26px;
  font-size: 16px;
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.02em;
}
.board-item__price small { font-size: 11px; font-weight: 500; color: var(--color-text-mute); margin-left: 4px; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
}
.pagination a {
  width: 37px; height: 37px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--color-text-mute);
  border-radius: 2px;   /* Figma 13-203 */
}
/* number pages get a navy border (Figma), arrows stay plain */
.pagination a:not([aria-label]) { border: 1px solid var(--color-navy); color: var(--color-navy); }
.pagination a:hover { background: var(--color-bg-soft); }
.pagination a.is-active {
  background: var(--color-navy);
  color: #fff;
  border-color: var(--color-navy);
  font-weight: 700;
}

/* Empty */
.board-empty {
  padding: 100px 20px;
  text-align: center;
  color: var(--color-text-light);
  border: 1px dashed var(--color-border);
  border-radius: 10px;
}

/* Write button */
.board-writebar {
  display: flex;
  justify-content: flex-end;
  padding-top: 24px;
}

/* 중고 안내 문구 — plain memo style (Figma 2-6534) */
.speech-bubble {
  color: #333;
  margin-bottom: 32px;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: -0.32px;
}
.speech-bubble b { color: #131313; }
