/* =========================
   Centers Page Base
========================= */

.centers-page {
  background: #f6f8fb;
  min-height: 100vh;
  padding-bottom: 60px;
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans KR", sans-serif;
}

/* =========================
   HERO
========================= */

.center-hero {
  background: linear-gradient(
      rgba(15, 23, 42, 0.6),
      rgba(15, 23, 42, 0.6)
    ),
    url('/assets/images/centers-hero.jpg') center/cover no-repeat;
  color: #fff;
  padding: 80px 20px 60px;
}

.center-hero h1 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 10px;
}

.center-hero p {
  font-size: 15px;
  opacity: 0.9;
}

/* =========================
   QUICK FILTER
========================= */

.centers-quick-filter {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 20px;
}

.quick-filter-form {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.qf-status button {
  background: #f1f5f9;
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
}

.qf-status button.active {
  background: #2563eb;
  color: #fff;
}

.qf-search {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.qf-search input {
  border: 1px solid #d1d5db;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
}

.qf-search button {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

/* =========================
   LAYOUT
========================= */

.centers-layout {
  max-width: 1280px;
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 0 20px;
}

/* =========================
   SIDEBAR FILTER
========================= */

.centers-filter {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  height: fit-content;
}

.centers-filter h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.filter-group {
  margin-bottom: 16px;
}

.filter-group label {
  display: block;
  font-size: 13px;
  color: #374151;
  margin-bottom: 6px;
}

.filter-group select {
  width: 100%;
  padding: 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
}

.filter-actions {
  display: flex;
  gap: 10px;
}

.filter-actions button {
  flex: 1;
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
}

.filter-actions .reset {
  flex: 1;
  text-align: center;
  background: #f1f5f9;
  border-radius: 6px;
  padding: 8px;
  font-size: 13px;
}

/* =========================
   LIST & CARD
========================= */

.centers-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.center-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: transform .2s ease, box-shadow .2s ease;
}

.center-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

.card-thumb {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-thumb .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
}

.card-body {
  padding: 14px;
}

.card-body h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.card-body .addr {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 8px;
}

.card-body .spec {
  font-size: 13px;
  color: #374151;
  margin-bottom: 12px;
}

.card-body .btn-view {
  display: inline-block;
  background: #0f172a;
  color: #fff;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px;
}

/* =========================
   EMPTY
========================= */

.centers-empty {
  background: #fff;
  border-radius: 12px;
  padding: 60px 20px;
  text-align: center;
  color: #6b7280;
  grid-column: 1 / -1;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {
  .centers-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .center-hero h1 {
    font-size: 26px;
  }
}
