/* =========================================================
   Calendrier de sélection de date — réservation visiteur
   ========================================================= */

.cal-wrap {
	max-width: 360px;
	transition: opacity .2s;
	border: 2px solid var(--sand);
	border-radius: 10px;
	padding: 10px;
	box-sizing: border-box;
	margin: 20px auto;
	background: #fff;
}
.cal-wrap.cal-loading {
	opacity: .4;
	pointer-events: none;
}

/* --- Navigation --- */
.cal-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: .75rem;
}
.cal-nav strong {
	font-size: 15px;
	text-transform: capitalize;
}
.cal-nav-btn {
	color: inherit;
	cursor: pointer;
	width: 25px;
	height: 25px;
	border-radius: 5px;
}
.cal-nav-btn:hover { background: var(--sand); }
.cal-nav-disabled {
	opacity: .3;
	cursor: default;
	pointer-events: none;
}

/* --- Tableau --- */
.cal-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}
.cal-table th {
	font-size: 11px;
	font-weight: 500;
	color: #888;
	padding: 4px 0;
	text-align: center;
}

/* --- Cellules --- */
.cal-td {
	text-align: center;
	padding: 4px 2px;
	height: 44px;
	vertical-align: middle;
	border-radius: 6px;
	position: relative;
}
.cal-day-num {
	display: block;
	font-size: 13px;
	line-height: 1;
	margin-bottom: 3px;
}

/* Jours hors mois */
.cal-other {
	opacity: .25;
}

/* Jours passés */
.cal-disabled {
	cursor: default;
}
.cal-disabled .cal-day-num { color: #bbb; }

/* Jours complets — numéro grisé, point rouge, non cliquable */
.cal-full {
	cursor: default;
}
.cal-full .cal-day-num { color: #bbb; }

/* Jour courant */
.cal-today .cal-day-num {
	font-weight: 700;
	color: var(--gold);
}

/* Jours disponibles et partiels — cliquables */
.cal-free,
.cal-partial {
	cursor: pointer;
}
.cal-free:hover,
.cal-partial:hover {
	background: var(--pearl);
}

/* Jour sélectionné */
.cal-selected {
	background: var(--deep) !important;
	color: #fff;
}
.cal-selected .cal-day-num { color: #fff; }
.cal-selected .cal-dispo { opacity: .6; }

/* --- Indicateurs de disponibilité --- */
.cal-dispo {
	display: block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	margin: 0 auto;
}
.cal-dispo.free    { background: #5FAE78; }
.cal-dispo.partial { background: #D6A34D; }
.cal-dispo.full    { background: #C96A6A; }

/* --- Légende --- */
.cal-legend {
	display: flex;
	gap: 12px;
	justify-content: center;
	margin-top: .75rem;
	flex-wrap: wrap;
}
.cal-legend-item {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	color: #666;
}
.cal-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}
.cal-dot.free    { background: #5FAE78; }
.cal-dot.partial { background: #D6A34D; }
.cal-dot.full    { background: #C96A6A; }

/* --- Responsive --- */
@media (max-width: 380px) {
	.cal-td       { height: 38px; padding: 3px 1px; }
	.cal-day-num  { font-size: 12px; }
}
