/* 전국 축제 달력 전용 스타일 */
.festival-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.fest-tab {
  appearance: none;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-sub);
  border-radius: 10px;
  padding: 9px 6px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  transition: all 0.14s ease;
}

.fest-tab:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.fest-tab.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.fest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 540px) {
  .fest-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.fest-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 0.14s ease, transform 0.12s ease;
}

.fest-card:hover {
  border-color: var(--brand);
}

.fest-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--surface-soft);
  overflow: hidden;
  position: relative;
}

.fest-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fest-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eaf2f9 0%, #dce8f5 100%);
  color: var(--brand);
  font-weight: 800;
  font-size: 0.92rem;
  padding: 16px;
  text-align: center;
}

.fest-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 6px;
}

.fest-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.fest-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.38;
  color: var(--ink);
}

.fest-meta {
  margin: 0;
  font-size: 0.83rem;
  color: var(--ink-sub);
  line-height: 1.5;
}

.fest-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}

.fest-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none !important;
  text-align: center;
}

.fest-mini-btn--primary {
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid #c5daf0;
}

.fest-mini-btn--primary:hover {
  background: var(--brand);
  color: #ffffff;
}

.fest-mini-btn--map {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.fest-mini-btn--map:hover {
  background: #059669;
  color: #ffffff;
}

/* 개별 축제 상세 페이지 */
.fest-hero-img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.fest-info-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fest-info-row {
  background: var(--surface-soft);
  border-radius: 11px;
  padding: 12px 14px;
}

.fest-info-row strong {
  display: block;
  font-size: 0.8rem;
  color: var(--brand);
  margin-bottom: 3px;
}

.fest-info-row span {
  font-size: 0.94rem;
  color: var(--ink);
  font-weight: 600;
}

.gabolgot-box {
  background: linear-gradient(135deg, #f0f9ff 0%, #e6f6f4 100%);
  border: 1.5px solid #99d5cf;
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gabolgot-box h2,
.gabolgot-box h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 900;
  color: #0f4c5c;
}

.gabolgot-box p {
  margin: 0;
  font-size: 0.87rem;
  color: #334155;
  line-height: 1.55;
}

.kogl-box {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-warm);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}
