
/* ─────────────────────────────────────────────
   예약 현황
───────────────────────────────────────────── */
.booking-cal {
  padding: 13rem 0 10rem;
  min-height: 100vh;
  background: var(--color-bg-primary);
}

.booking-cal__header {
  text-align: center;
  margin: 6rem 0;
  position: relative;
}


/* ─────────────────────────────────────────────
   캘린더
───────────────────────────────────────────── */
.booking-cal__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin: 20px 0;
}

.booking-cal__arrow {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: var(--transition);
  flex-shrink: 0;
}
.booking-cal__arrow:hover {
  color: var(--color-gold);
}

.booking-cal__month {
  font-size: var(--text-xl);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  color: var(--color-text-primary);
  min-width: 200px;
  text-align: center;
}

.booking-cal__legend {
  display: flex;
  gap: 24px;
  margin: 20px 0 20px 10px;
}

.booking-cal__legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: var(--ls-normal);
}

/* 캘린더 그리드 */
.badge {
  display: inline-block;
  width: 15px;
  height: 15px;
  border-radius: 2px;
  flex-shrink: 0;
}

.badge--avail {
  background: rgb(201, 168, 76);
  color: #fff;
}

.badge--booked {
  background: rgb(136, 136, 136, 0.5);
  color: #fff;
}

.booking-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-left: 1px solid var(--color-border-subtle);
  border-top: 1px solid var(--color-border-subtle);
}

/* 요일 헤더 */
.cal-header {
  padding: 12px 0;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-gold);
  letter-spacing: var(--ls-normal);
  border-right: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-gold);
  background: var(--color-bg-secondary);
}

/* 날짜 셀 */
.cal-day {
  padding: 10px 10px 12px;
  min-height: 9rem;
  border-right: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
  background: var(--color-bg-secondary);
}

.cal-day--empty {
  background: var(--color-bg-primary);
}

.cal-day--past {
  opacity: 0.5;
}

.cal-day__num {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: 10px;
  line-height: 1;
}

.cal-day--today {
  position: relative;
}
.cal-day--today::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--color-gold);
  pointer-events: none;
  z-index: 2;
}

/* A/B/C 배지 */
.cal-day__badges {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 20px;
  border-radius: 2px;
  font-size: var(--text-sm);
  font-weight: var(--fw-regular);
  line-height: 1;
  opacity: 0.8;
}




/* ─────────────────────────────────────────────
   모바일 반응형
───────────────────────────────────────────── */

/* Laptop 1024px */
@media (max-width: 1024px) {
  .booking-cal {
    padding: 13rem 0 8rem;
  }
  .cal-day {
    min-height: 8rem;
  }
}

/* Tablet 768px */
@media (max-width: 768px) {
  .booking-cal {
    padding: 12rem 0 6rem;
  }
  .booking-cal__header {
    margin: 4rem 0;
  }
  .booking-cal__month {
    font-size: var(--text-lg);
    min-width: 16rem;
  }
  .cal-header {
    font-size: var(--text-xs);
    padding: 1rem 0;
  }
  .cal-day {
    min-height: 7rem;
    padding: 0.8rem 0.6rem 1rem;
  }
  .cal-day__num {
    font-size: var(--text-2xs);
    margin-bottom: 0.6rem;
  }
  .badge {
    width: 2.2rem;
    height: 1.8rem;
    font-size: var(--text-xs);
  }
}

/* Mobile L 430px */
@media (max-width: 430px) {
  .section-label{
    font-size: var(--text-lg);
  }

  .booking-cal {
    padding: 11rem 0 5rem;
  }
  .booking-cal__header {
    margin: 3rem 0;
  }
  .booking-cal__controls {
    gap: 1.6rem;
  }
  .booking-cal__month {
    font-size: var(--text-md);
    min-width: 12rem;
  }
  .booking-cal__arrow {
    width: 3.2rem;
    height: 3.2rem;
  }
  .cal-header {
    font-size: var(--text-2xs);
    padding: 0.8rem 0;
  }
  .cal-day {
    min-height: 5.6rem;
    padding: 0.5rem 0.4rem 0.6rem;
  }
  .cal-day__num {
    font-size: var(--text-2xs);
    margin-bottom: 0.4rem;
  }
  .badge {
    width: 1.8rem;
    height: 1.4rem;
    font-size: var(--text-2xs);
  }
  .cal-day__badges {
    gap: 0.2rem;
  }
}

/* Mobile S 360px */
@media (max-width: 360px) {
  .booking-cal__month {
    min-width: 10rem;
  }
  .cal-day {
    min-height: 4.8rem;
    padding: 0.4rem 0.3rem 0.5rem;
  }
  .badge {
    width: 1.6rem;
    height: 1.3rem;
  }
}