/* tour_info_list_style.css
   - 행사/쇼핑/음식점 목록 공통 스타일
   - 반응형 그리드(모바일 1열→2~3열, 데스크탑 4열)
   - 현대적 카드, 검색툴바, 카테고리 탭, 페이지네이션, 빈 상태 포함
*/

/* ========= Design Tokens ========= */ 
:root {
  --ui-surface: #ffffff;
  --ui-border: #e5e7eb;
  --ui-text: #0f172a;
  --ui-muted: #64748b;
  --ui-primary: #2563eb;         /* 기본 포커스/버튼 */
  --ui-primary-600: #1e40af;     /* hover */
  --ui-accent: #eef2ff;          /* 보조 배경(칩/탭 활성) */
  --ui-shadow: 0 10px 30px rgba(2,6,23,0.08);
}
/* ========= Page Layout ========= */
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 16px 40px;
  background: var(--ui-bg);
  min-height: 100vh;
}

.page-head {
  margin-bottom: 18px;
  text-align: center;
}
.page-title {
  display: block;
  font-weight: 800;
  font-size: 28px;
  color: var(--ui-text);
}
.page-sub {
  margin-top: 6px;
  color: var(--ui-muted);
}

/* ========= Category Tabs ========= */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 16px 0 10px;
}
.category-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  color: #334155;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.category-tab:hover {
  transform: translateY(-1px);
  box-shadow: var(--ui-shadow);
}
.category-tab.is-active {
  background: var(--ui-accent);
  border-color: #c7d2fe;
  color: #3730a3;
}
.category-tab .emoji {
  font-size: 16px;
  line-height: 1;
}

/* ========= Toolbar (Search + Sort) ========= */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--ui-shadow);
  margin-bottom: 14px;
}
.searchbar {
  flex: 1;
  min-width: 220px;
  display: flex;
  gap: 8px;
}
.searchbar input[type="text"],
.searchbar input[type="search"] {
  flex: 1;
  min-width: 140px;
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  outline: none;
}
.searchbar input:focus {
  border-color: #bfd0ff;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.08);
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  background: var(--ui-primary);
  color: #fff;
  transition: background .15s ease, transform .05s ease;
}
.btn:hover { background: var(--ui-primary-600); }
.btn:active { transform: translateY(1px); }

.select {
  min-width: 160px;
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--ui-surface);
}

/* ========= Result Meta ========= */
.result-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 2px 12px;
}
.result-count { font-weight: 800; color: var(--ui-text); }
.result-hint { color: var(--ui-muted); }

/* ========= Grid & Card ========= */
.card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 520px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px){ .card-grid { grid-template-columns: repeat(4, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--ui-shadow); }

.card-thumb {
  aspect-ratio: 16 / 10;
  background: #f1f5f9;
  overflow: hidden;
}
.card-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.card-noimg {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  color: #94a3b8; font-size: 14px;
}

.card-body { padding: 14px 14px 12px; }
.card-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  font-size: 13px;
  color: var(--ui-muted);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ui-accent);
  border: 1px solid #e0e7ff;
  font-weight: 700;
  color: #3730a3;
  font-size: 12px;
}

/* 카테고리별 포인트 색 (선택) */
.card[data-source="festival"] .chip { background: #fff7ed; border-color: #fed7aa; color:#9a3412; }
.card[data-source="shopping"] .chip { background: #ecfeff; border-color: #a5f3fc; color:#164e63; }
.card[data-source="restaurant"] .chip { background: #fef2f2; border-color: #fecaca; color:#7f1d1d; }

/* ========= Pagination ========= */
.pager {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 18px 0 6px;
}
.page-btn {
  border: 1px solid var(--ui-border);
  background: var(--ui-surface);
  border-radius: 10px;
  padding: 8px 14px;
  text-decoration: none;
  color: var(--ui-text);
  transition: background .15s ease, border-color .15s ease;
}
.page-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.page-btn.is-current {
  background: var(--ui-accent);
  border-color: #c7d2fe;
  color: #3730a3;
  font-weight: 800;
}
.page-btn.is-disabled { pointer-events: none; opacity: .5; }

/* ========= Empty State ========= */
.empty {
  padding: 36px 14px;
  text-align: center;
  color: var(--ui-muted);
}

/* ========= Helpers ========= */
.mt-6 { margin-top: 24px; }

/* 페이지네이션 컨테이너 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
  gap: 10px;
  flex-wrap: wrap;
}

/* 페이지 번호 기본 스타일 */
/* 🔹 페이지네이션 (라이트 톤) */
.pager{
  display:flex; gap:8px; justify-content:center; margin:18px 0 6px;
}
.page{
  border:1px solid var(--border);
  background:#fff;
  border-radius:10px;
  padding:8px 14px;
  text-decoration:none;
  color:#111;
}
.page.is-current{
  background:#eef2ff;
  border-color:#c7d2fe;
  color:#3730a3;
  font-weight:800;
}
..page.is-disabled{
  pointer-events:none;
  opacity:.5;
}




