.acal-wrap {
  max-width: 900px;
  margin: 20px auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.acal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 10px;
}

.acal-nav-title {
  font-size: 20px;
  font-weight: 650;
}

.acal-nav-link {
  text-decoration: none;
  padding: 8px 14px;
  background: #f3f3f3;
  border-radius: 999px;
  transition: all 0.2s ease;
  font-size: 14px;
  color: inherit;
}

.acal-nav-link:hover { background: #e2e2e2; }

.acal-cal {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 10px !important;
}

.acal-cal th {
  text-align: center;
  font-size: 13px;
  font-weight: 650;
  padding-bottom: 10px;
  opacity: 0.85;
}

.acal-cal td {
  background: #ffffff;
  height: 96px;
  border-radius: 18px;
  text-align: center;
  vertical-align: middle;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
  padding: 10px;
}

.acal-cal td:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.acal-daynum {
  font-size: 15px;
  font-weight: 750;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.04);
  margin: 0 auto;
}

.acal-icon {
  display: block;
  margin: 8px auto 0;
  font-size: 18px;
  line-height: 1;
  opacity: 0.95;
}

.acal-note {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.2;
  opacity: 0.92;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acal-empty {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.acal-empty:hover { transform: none !important; box-shadow: none !important; }

.acal-cal td.acal-limited,
.acal-wrap .acal-cal td.acal-limited {
  background: linear-gradient(135deg, #ffb347, #ff9800) !important;
  color: #fff !important;
}

.acal-cal td.acal-unavailable,
.acal-wrap .acal-cal td.acal-unavailable {
  background: linear-gradient(135deg, #ff6a6a, #e53935) !important;
  color: #fff !important;
  opacity: 0.98;
}

.acal-limited .acal-daynum,
.acal-unavailable .acal-daynum { background: rgba(255,255,255,0.22); }

.acal-legend-wrap {
  margin-top: 18px;
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 14px;
  opacity: 0.92;
}

.acal-legend-box {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: inline-block;
  margin-right: 8px;
  vertical-align: -3px;
}

.acal-legend-limited { background: linear-gradient(135deg, #ffb347, #ff9800); }
.acal-legend-unavailable { background: linear-gradient(135deg, #ff6a6a, #e53935); }

/* Mobile tweaks */
@media (max-width: 640px) {
  .acal-cal { border-spacing: 6px !important; }
  .acal-cal td { height: 78px; border-radius: 14px; padding: 8px; }
  .acal-nav-title { font-size: 16px; }
  .acal-note { display: none; } /* keep it tidy on mobile */
}
