.cal {
  font-family: 'Lato', sans-serif;
  max-width: 400px;
  margin: 0 auto;
  user-select: none;
}

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cal-nav button {
  background: none;
  border: 2px solid var(--purple-light, #C9A8E0);
  color: var(--purple, #7B4F9E);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.cal-nav button:hover {
  background: var(--purple, #7B4F9E);
  color: var(--white, #fff);
}

.cal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--purple-dark, #5A3270);
  font-weight: 600;
  text-transform: capitalize;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.cal-head {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light, #7A6A87);
  padding: 6px 0;
  text-transform: uppercase;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.1s;
  border: none;
  background: none;
  color: var(--text, #4A3555);
  padding: 0;
  min-width: 36px;
  min-height: 36px;
}

.cal-day:hover:not(.cal-disabled):not(.cal-other) {
  background: var(--purple-light, #C9A8E0);
  color: var(--white, #fff);
  transform: scale(1.08);
}

.cal-day.cal-today {
  font-weight: 700;
  color: var(--purple, #7B4F9E);
  box-shadow: inset 0 0 0 2px var(--purple-light, #C9A8E0);
}

.cal-day.cal-selected {
  background: var(--purple, #7B4F9E);
  color: var(--white, #fff);
  font-weight: 700;
}

.cal-day.cal-available {
  background: #e4f4e6;
  color: #28643a;
  box-shadow: inset 0 0 0 1px #9bcea7;
  font-weight: 700;
}

.cal-day.cal-available:hover {
  background: #5f9f71;
  color: var(--white, #fff);
}

.cal-day.cal-disabled {
  color: var(--purple-light, #C9A8E0);
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.cal-day.cal-booked {
  color: #9f2736;
  background: #fde8eb;
  box-shadow: inset 0 0 0 1px #e7a1ab;
  opacity: 1;
}

.cal-day.cal-other {
  visibility: hidden;
}

@media (max-width: 480px) {
  .cal { max-width: 100%; }
  .cal-grid { gap: 2px; }
  .cal-day { min-width: 32px; min-height: 32px; font-size: 0.82rem; }
  .cal-nav button { width: 32px; height: 32px; font-size: 1rem; }
  .cal-title { font-size: 1.1rem; }
}
