/* CPG Réservation : calendrier des disponibilités. Couleurs : variables posées par le module (réglages repris de HBook). */
.cpg-cal-bloc {
	--cpg-fond: #fff; --cpg-libre: #fff; --cpg-inactif: #ddd; --cpg-inactif-txt: #888; --cpg-occupe: #f7d7dc;
	--cpg-btn: #333; --cpg-btn-survol: #6f6f6f; --cpg-btn-inactif: #aaa; --cpg-fleche: #fff; --cpg-bord: #ccc;
	width: 100%;
	font-family: var(--cpg-resa-police, inherit);
}
.cpg-cal-bloc .hb-availability-calendar-centered { display: table; margin: 0 auto; max-width: 100%; }
.cpg-cal { max-width: 100%; }
.cpg-cal-cadre { position: relative; display: inline-block; max-width: 100%; }
.cpg-cal-grille {
	display: grid;
	grid-template-columns: repeat(var(--cpg-colonnes, 1), 280px);
	gap: 10px;
	max-width: 100%;
}
.cpg-cal-mois {
	background: var(--cpg-fond);
	border: 1px solid var(--cpg-bord);
	border-radius: 6px;
	box-shadow: 0 0 5px rgba(0, 0, 0, .15);
	padding: 0 8px 10px;
	box-sizing: border-box;
	width: 280px;
	max-width: 100%;
}
.cpg-cal-titre {
	font-size: 21px;
	line-height: 60px;
	height: 60px;
	text-align: center;
	color: inherit;
}
.cpg-cal-semaine, .cpg-cal-jours {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
}
.cpg-cal-semaine span {
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	line-height: 30px;
}
.cpg-cal-jours span {
	height: 32px;
	line-height: 32px;
	text-align: center;
	font-size: 16px;
	border-radius: 0;
	background: var(--cpg-libre);
	cursor: default;
}
.cpg-cal-jours .cpg-j-vide { background: transparent; }
.cpg-cal-jours .cpg-j-passe,
.cpg-cal-jours .cpg-j-ferme { background: var(--cpg-inactif); color: var(--cpg-inactif-txt); }
.cpg-cal-jours .cpg-j-complet { background: var(--cpg-occupe); }
/* Demi-journées : premier jour d'un séjour (occupé l'après-midi) et jour de départ (occupé le matin). */
.cpg-cal-jours .cpg-j-depart { background: linear-gradient(to bottom right, var(--cpg-libre) 50%, var(--cpg-occupe) 50%); }
.cpg-cal-jours .cpg-j-arrivee { background: linear-gradient(to bottom right, var(--cpg-occupe) 50%, var(--cpg-libre) 50%); }
/* Sélecteurs renforcés : les thèmes et kits Elementor stylent tous les <button>. */
.cpg-cal-bloc .cpg-cal-cadre .cpg-cal-nav {
	position: absolute;
	margin: 0;
	min-height: 0;
	box-shadow: none;
	text-transform: none;
	letter-spacing: 0;
	font-family: inherit;
	font-weight: 400;
	top: 15px;
	z-index: 1;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--cpg-btn);
	color: var(--cpg-fleche);
	font-size: 22px;
	line-height: 28px;
	text-align: center;
	cursor: pointer;
}
.cpg-cal-bloc .cpg-cal-cadre .cpg-cal-nav:hover,
.cpg-cal-bloc .cpg-cal-cadre .cpg-cal-nav:focus-visible { background: var(--cpg-btn-survol); color: var(--cpg-fleche); }
.cpg-cal-bloc .cpg-cal-cadre .cpg-cal-nav:focus-visible { outline: 2px solid var(--cpg-btn); outline-offset: 2px; }
.cpg-cal-bloc .cpg-cal-cadre .cpg-cal-nav[disabled] { background: var(--cpg-btn-inactif); color: var(--cpg-fleche); cursor: default; }
.cpg-cal-prec { left: 12px; }
.cpg-cal-suiv { right: 12px; }
.cpg-cal-bloc .cpg-cal-legende { margin: 18px 0 0; line-height: 30px; text-align: left; }
.cpg-cal-legende .hb-avail-caption {
	display: inline-block;
	width: 30px;
	height: 24px;
	vertical-align: middle;
	margin-right: 10px;
	border: 1px solid var(--cpg-bord);
	background: var(--cpg-libre);
}
.cpg-cal-legende .hb-avail-caption-occupied { background: var(--cpg-occupe); }
@media (max-width: 320px) {
	.cpg-cal-grille { grid-template-columns: 1fr; }
	.cpg-cal-mois { width: 100%; }
}
