/* =========================================================================
 * CCW Availability Calendar — modern pink + gold month view.
 * ===================================================================== */

.ccw-cal { --ccw-cal-accent: var(--ccw-rose-deep); --ccw-cal-gold: var(--ccw-gold); position: relative; width: 100%; }
.ccw-cal__inner { margin: 0 auto; padding-block: var(--ccw-space-6); }

.ccw-cal__head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 22px; }
.ccw-cal__eyebrow { font-family: var(--ccw-font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ccw-cal-accent); }
.ccw-cal__title { font-family: var(--ccw-font-display); font-size: var(--ccw-fs-h2); line-height: 1.14; color: #2A1E2C; margin: 0; }
.ccw-cal__intro { font-size: 0.96rem; line-height: 1.6; color: #5A4F58; max-width: 46ch; margin: 0; }

.ccw-cal__card {
	background: rgba(255, 255, 255, 0.75);
	border: 1px solid rgba(201, 162, 75, 0.35);
	border-radius: 22px;
	padding: 24px 24px 26px;
	box-shadow: 0 20px 50px rgba(42, 30, 44, 0.08);
}

/* Nav */
.ccw-cal__nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ccw-cal__month { font-family: var(--ccw-font-display); font-size: 1.3rem; color: #2A1E2C; }
.ccw-cal__prev, .ccw-cal__next {
	width: 40px; height: 40px;
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 1.5rem; line-height: 1;
	color: var(--ccw-cal-accent);
	background: #fff;
	border: 1.5px solid rgba(192, 57, 122, 0.35);
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.18s ease;
}
.ccw-cal__prev:hover, .ccw-cal__next:hover { background: var(--ccw-cal-accent); color: #fff; border-color: var(--ccw-cal-accent); }

/* Weekday header + grid */
.ccw-cal__dow, .ccw-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.ccw-cal__dow { margin-bottom: 8px; }
.ccw-cal__dow span { text-align: center; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #9C8AA0; }

.ccw-cal__day {
	position: relative;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.95rem;
	color: #6A5F68;
	border-radius: 12px;
	border: 1.5px solid transparent;
	user-select: none;
}
.ccw-cal__day.is-muted { color: #cbb8c4; }
.ccw-cal__day.is-off { color: #b7a7b1; }
.ccw-cal__day.is-open {
	color: var(--ccw-cal-accent);
	font-weight: 700;
	background: rgba(201, 162, 75, 0.08);
	border-color: rgba(192, 57, 122, 0.35);
	cursor: pointer;
	transition: all 0.16s ease;
}
.ccw-cal__day.is-open::after {
	content: "";
	position: absolute;
	bottom: 7px; left: 50%;
	transform: translateX(-50%);
	width: 5px; height: 5px;
	border-radius: 50%;
	background: var(--ccw-cal-gold);
}
.ccw-cal__day.is-open:hover { background: rgba(192, 57, 122, 0.1); }
.ccw-cal__day.is-active { color: #fff; background: var(--ccw-cal-accent); border-color: var(--ccw-cal-accent); }
.ccw-cal__day.is-active::after { background: #fff; }

/* Legend */
.ccw-cal__legend { display: flex; gap: 18px; justify-content: center; margin-top: 16px; }
.ccw-cal__key { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; color: #7A6E78; }
.ccw-cal__key i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.ccw-cal__key--open i { background: rgba(201, 162, 75, 0.12); border: 1.5px solid rgba(192, 57, 122, 0.4); }
.ccw-cal__key--off i { background: transparent; border: 1.5px solid #d9c9d2; }

/* Slots panel */
.ccw-cal__slots { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(201, 162, 75, 0.3); min-height: 40px; }
.ccw-cal__hint { font-size: 0.9rem; color: #9C8AA0; }
.ccw-cal__slots-date { display: block; font-family: var(--ccw-font-body); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ccw-cal-gold); margin-bottom: 10px; }
.ccw-cal__slot-list { display: flex; flex-wrap: wrap; gap: 9px; }
.ccw-cal__slot {
	padding: 9px 16px;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--ccw-cal-accent);
	background: #fff;
	border: 1.5px solid rgba(192, 57, 122, 0.4);
	border-radius: 50px;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.16s ease;
}
.ccw-cal__slot:hover { color: #fff; background: var(--ccw-cal-accent); border-color: var(--ccw-cal-accent); }

@media (max-width: 480px) {
	.ccw-cal__card { padding: 18px 16px 20px; }
	.ccw-cal__day { font-size: 0.85rem; border-radius: 9px; }
}
