/**
 * Calendrier des réservations et calendrier des disponibilités (3.97).
 *
 * Couleurs de statut (reprises de Listeo, adoucies pour rester lisibles) :
 * payée vert, acceptée jaune, demande bleu, expirée rouge de la marque,
 * dates bloquées hachurées.
 */

html body.hl-compte {
	--hl-st-payee: #3e7a33;
	--hl-st-acceptee: #e3b62a;
	--hl-st-demande: #3f7fa6;
	--hl-st-expiree: #961b1b;
	--hl-hachures: repeating-linear-gradient( 135deg, #e2dccf 0 6px, #f1ede6 6px 12px );
}

/* ------------------------------------------------------------- Guide */

html body.hl-compte .hl-cal-guide {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px 24px;
	margin: 0 0 24px;
	padding: 16px 20px;
	border: 1px solid #ddd7cc;
	border-radius: 16px;
	background: #fbfaf8;
}

html body.hl-compte .hl-cal-guide__legende {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

html body.hl-compte .hl-cal-guide__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	color: #150e10;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	cursor: help;
}

html body.hl-compte .hl-cal-pastille {
	display: inline-block;
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	border-radius: 4px;
}

html body.hl-compte .hl-cal-pastille.hl-st-payee { background: var( --hl-st-payee ); }
html body.hl-compte .hl-cal-pastille.hl-st-acceptee { background: var( --hl-st-acceptee ); }
html body.hl-compte .hl-cal-pastille.hl-st-demande { background: var( --hl-st-demande ); }
html body.hl-compte .hl-cal-pastille.hl-st-expiree { background: var( --hl-st-expiree ); }
html body.hl-compte .hl-cal-pastille.hl-st-bloque {
	background: var( --hl-hachures );
	box-shadow: inset 0 0 0 1px #bcb2a1;
}

html body.hl-compte .hl-cal-guide__note {
	margin: 8px 0 0;
	color: #6b6151;
	font-size: 14px;
	line-height: 1.5;
}

html body.hl-compte .hl-cal-guide__actions {
	position: relative;
	flex: 0 0 auto;
}

html body.hl-compte .hl-cal-bloquer {
	padding: 10px 18px;
	border: 1px solid #150e10;
	border-radius: 999px;
	background: transparent;
	color: #150e10;
	font: 600 14px/1.2 "Plus Jakarta Sans", system-ui, sans-serif;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

html body.hl-compte .hl-cal-bloquer:hover,
html body.hl-compte .hl-cal-bloquer[aria-expanded="true"] {
	background: #150e10;
	color: #fff;
}

html body.hl-compte .hl-cal-bloquer:focus-visible,
html body.hl-compte .hl-cal-menu__lien:focus-visible,
html body.hl-compte .hl-cal-bulle a:focus-visible,
html body.hl-compte .hl-cal-bulle button:focus-visible {
	outline: 2px solid #961b1b;
	outline-offset: 2px;
}

html body.hl-compte .hl-cal-menu {
	position: absolute;
	top: calc( 100% + 8px );
	right: 0;
	z-index: 50;
	width: 300px;
	padding: 12px;
	border: 1px solid #ddd7cc;
	border-radius: 16px;
	background: #fbfaf8;
	box-shadow: 0 24px 48px -24px rgba( 21, 14, 16, 0.35 );
}

html body.hl-compte .hl-cal-menu[hidden] {
	display: none;
}

html body.hl-compte .hl-cal-menu__titre {
	margin: 4px 8px 8px;
	color: #6b6151;
	font-size: 14px;
	font-weight: 600;
}

html body.hl-compte .hl-cal-menu__lien {
	display: block;
	padding: 10px 8px;
	border-radius: 10px;
	color: #150e10;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
}

html body.hl-compte .hl-cal-menu__lien:hover {
	background: #eeebe5;
}

html body.hl-compte .hl-cal-menu__aide {
	margin: 8px 8px 4px;
	color: #6b6151;
	font-size: 13px;
	line-height: 1.5;
}

/* La légende de Listeo, sous le calendrier, est remplacée par le guide. */
html body.hl-compte .dashboard-calendar-view #calendar-legend {
	display: none !important;
}

/* ---------------------------------------------------- Cases du calendrier */

html body.hl-compte.hl-compte .fc .fc-event.hl-st-payee,
html body.hl-compte.hl-compte .fc .fc-event.hl-st-demande,
html body.hl-compte.hl-compte .fc .fc-event.hl-st-expiree {
	border-color: transparent !important;
	color: #fff !important;
}

html body.hl-compte.hl-compte .fc .fc-event.hl-st-payee { background: var( --hl-st-payee ) !important; }
html body.hl-compte.hl-compte .fc .fc-event.hl-st-demande { background: var( --hl-st-demande ) !important; }
html body.hl-compte.hl-compte .fc .fc-event.hl-st-expiree { background: var( --hl-st-expiree ) !important; }

html body.hl-compte.hl-compte .fc .fc-event.hl-st-acceptee {
	border-color: transparent !important;
	background: var( --hl-st-acceptee ) !important;
	color: #150e10 !important;
}

/* Séance d'expérience : même pastille que les séjours, avec son heure. */
html body.hl-compte.hl-compte .fc .fc-daygrid-dot-event.hl-st-payee,
html body.hl-compte.hl-compte .fc .fc-daygrid-dot-event.hl-st-acceptee,
html body.hl-compte.hl-compte .fc .fc-daygrid-dot-event.hl-st-demande,
html body.hl-compte.hl-compte .fc .fc-daygrid-dot-event.hl-st-expiree {
	box-shadow: none !important;
}

html body.hl-compte.hl-compte .fc .fc-daygrid-dot-event .fc-daygrid-event-dot {
	display: none !important;
}

html body.hl-compte.hl-compte .fc .fc-daygrid-dot-event .fc-event-time {
	margin-right: 6px;
	font-weight: 700;
}

html body.hl-compte.hl-compte .fc .fc-daygrid-dot-event .fc-event-title {
	overflow: hidden;
	font-weight: 500 !important;
	text-overflow: ellipsis;
}

html body.hl-compte.hl-compte .fc .fc-daygrid-event {
	cursor: pointer;
	transition: filter 0.15s ease;
}

html body.hl-compte.hl-compte .fc .fc-daygrid-event:hover {
	filter: brightness( 0.92 );
}

/* Dates bloquées : hachures, mot « Bloqué ». Valable aussi pour le
   calendrier des disponibilités du formulaire d'annonce, où elles étaient
   devenues presque invisibles (beige sur beige). */
html body.hl-compte.hl-compte .fc .fc-bg-event,
html body.hl-compte.hl-compte .fc .fc-bg-event.blocked-date {
	opacity: 1 !important;
	background: var( --hl-hachures ) !important;
}

html body.hl-compte.hl-compte .fc .fc-bg-event .fc-event-title {
	display: inline-block !important;
	margin: 0 8px 8px !important;
	padding: 2px 8px;
	border-radius: 6px;
	background: #fbfaf8;
	color: #6b6151 !important;
	font-size: 12px !important;
	font-weight: 600;
	-webkit-line-clamp: unset;
}

html body.hl-compte.hl-compte .dashboard-calendar-view .fc .fc-bg-event {
	cursor: pointer;
}

html body.hl-compte.hl-compte .dashboard-calendar-view .fc .fc-bg-event:focus-visible {
	outline: 2px solid #961b1b;
	outline-offset: -2px;
}

/* ----------------------------------------------- Bulle des dates bloquées */

.hl-cal-bulle {
	position: absolute;
	z-index: 1000;
	width: min( 320px, calc( 100vw - 24px ) );
	padding: 16px 20px 20px;
	border: 1px solid #ddd7cc;
	border-radius: 16px;
	background: #fbfaf8;
	box-shadow: 0 24px 48px -24px rgba( 21, 14, 16, 0.4 );
	color: #150e10;
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	animation: hl-cal-bulle 0.18s ease-out;
}

@keyframes hl-cal-bulle {
	from { opacity: 0; transform: translateY( -4px ); }
	to { opacity: 1; transform: none; }
}

@media ( prefers-reduced-motion: reduce ) {
	.hl-cal-bulle { animation: none; }
}

.hl-cal-bulle__fermer {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #eeebe5;
	color: #150e10;
	font-size: 18px;
	line-height: 32px;
	cursor: pointer;
}

.hl-cal-bulle__titre {
	margin: 0 40px 8px 0;
	font-size: 16px;
	font-weight: 700;
}

.hl-cal-bulle__texte {
	margin: 0 0 16px;
	color: #6b6151;
	font-size: 14px;
	line-height: 1.5;
}

.hl-cal-bulle__lien {
	display: inline-block;
	padding: 10px 16px;
	border-radius: 999px;
	background: #150e10;
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
}

/* ------------------------------------- Fenêtre « Détails de la réservation » */

html body.hl-compte #small-dialog.hl-cal-details .small-dialog-booking-content > ul,
html body.hl-compte #small-dialog.hl-cal-details li[id^="booking-list-"] {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	list-style: none;
}

html body.hl-compte #small-dialog.hl-cal-details .list-box-listing,
html body.hl-compte #small-dialog.hl-cal-details .list-box-listing-content,
html body.hl-compte #small-dialog.hl-cal-details .inner {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

html body.hl-compte #small-dialog.hl-cal-details h3 {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px !important;
	font-size: 28px;
	line-height: 1.2;
}

html body.hl-compte #small-dialog.hl-cal-details h3 a {
	margin-right: 4px;
	color: #150e10;
	text-decoration: none;
}

html body.hl-compte #small-dialog.hl-cal-details h3 .booking-status {
	margin: 0;
	padding: 4px 10px;
	border-radius: 999px;
	background: #eeebe5 !important;
	color: #150e10 !important;
	font: 600 13px/1.3 "Plus Jakarta Sans", system-ui, sans-serif;
}

html body.hl-compte #small-dialog.hl-cal-details .hl-cal-details__statut {
	display: block;
	margin: 0 0 24px;
	padding: 12px 16px;
	border-radius: 12px;
	background: #eeebe5;
	color: #150e10;
	font-size: 15px;
	line-height: 1.5;
}

html body.hl-compte #small-dialog.hl-cal-details .hl-cal-details__statut .hl-cal-pastille {
	margin-right: 8px;
	vertical-align: -2px;
}

html body.hl-compte #small-dialog.hl-cal-details .hl-cal-details__ligne {
	display: grid;
	grid-template-columns: 180px minmax( 0, 1fr );
	gap: 4px 16px;
	align-items: baseline;
	margin: 0 !important;
	padding: 12px 0 !important;
	border-top: 1px solid #ddd7cc;
}

html body.hl-compte #small-dialog.hl-cal-details .hl-cal-details__ligne h5 {
	margin: 0 !important;
	color: #6b6151 !important;
	font: 500 14px/1.5 "Plus Jakarta Sans", system-ui, sans-serif !important;
}

html body.hl-compte #small-dialog.hl-cal-details .hl-cal-details__ligne .booking-list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

html body.hl-compte #small-dialog.hl-cal-details .hl-cal-details__ligne .booking-list li {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: #150e10 !important;
	font-size: 15px !important;
	font-weight: 500;
	line-height: 1.5;
}

html body.hl-compte #small-dialog.hl-cal-details .hl-cal-details__ligne .booking-list li::before,
html body.hl-compte #small-dialog.hl-cal-details .hl-cal-details__ligne .booking-list li::after {
	display: none !important;
}

html body.hl-compte #small-dialog.hl-cal-details .hl-cal-details__ligne .booking-list a {
	color: #150e10;
}

html body.hl-compte #small-dialog.hl-cal-details .booking-buttons-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 24px 0 0 !important;
	padding: 16px 0 0 !important;
	border-top: 1px solid #ddd7cc;
}

html body.hl-compte #small-dialog.hl-cal-details .booking-buttons-actions .button {
	margin: 0 !important;
	padding: 10px 18px !important;
	border-radius: 999px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
}

html body.hl-compte #small-dialog.hl-cal-details .hl-cal-details__liste {
	background: #150e10 !important;
	color: #fff !important;
}

html body.hl-compte #small-dialog.hl-cal-details .booking-buttons-actions .cancel {
	border: 1px solid #961b1b !important;
	background: transparent !important;
	color: #961b1b !important;
}

html body.hl-compte #small-dialog.hl-cal-details .small-dialog-header {
	margin-bottom: 16px !important;
}

@media ( max-width: 767px ) {
	html body.hl-compte .hl-cal-guide {
		flex-direction: column;
	}

	html body.hl-compte .hl-cal-menu {
		right: auto;
		left: 0;
	}

	html body.hl-compte #small-dialog.hl-cal-details .hl-cal-details__ligne {
		grid-template-columns: 1fr;
	}
}

/* ----------------------------------------- Formulaire d'annonce, calendrier */

/* La consigne sous « Calendrier des disponibilités » héritait de
   l'interlettrage serré du titre : illisible. */
html body.hl-compte .availability_calendar .add-listing-headline h3 > span {
	display: block;
	margin-top: 8px;
	color: #6b6151;
	font: 400 15px/1.5 "Plus Jakarta Sans", system-ui, sans-serif;
	letter-spacing: 0;
}

/* ------------------------------------------------ Univers (3.98) */

/* Les dessins du site (maison, planchette, guirlande) en masque : ils
   prennent la couleur du texte, blanc sur une réservation payée, foncé
   sur une réservation acceptée. */
html body.hl-compte .hl-cal-univers {
	display: inline-block;
	flex: 0 0 auto;
	background-color: currentColor;
	-webkit-mask: var( --hl-univers ) center / contain no-repeat;
	mask: var( --hl-univers ) center / contain no-repeat;
}

html body.hl-compte.hl-compte .fc .hl-cal-type {
	width: 14px;
	height: 14px;
	margin-right: 6px;
	vertical-align: -2px;
}

html body.hl-compte.hl-compte .fc .fc-event-main-frame {
	align-items: center;
}

html body.hl-compte.hl-compte .fc .fc-daygrid-dot-event {
	align-items: center;
}

html body.hl-compte #small-dialog.hl-cal-details .hl-cal-details__type {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
	color: #961b1b;
	font: 600 14px/1.3 "Plus Jakarta Sans", system-ui, sans-serif;
}

html body.hl-compte #small-dialog.hl-cal-details .hl-cal-details__icone {
	width: 22px;
	height: 22px;
}

/* ------------------------------- Fenêtre de détails, forme du site (3.98) */

/* Mêmes arrondis que les cartes du compte (20 à 24 px), fond ivoire,
   bouton de fermeture rond. */
html body.hl-compte #small-dialog.booking-calendar-view-popup {
	max-width: 640px;
	padding: 32px 36px 36px !important;
	border: 1px solid #ddd7cc;
	border-radius: 24px !important;
	background: #fbfaf8 !important;
	box-shadow: 0 40px 80px -32px rgba( 21, 14, 16, 0.45 ) !important;
	overflow: hidden;
}

html body.hl-compte #small-dialog.booking-calendar-view-popup .small-dialog-header {
	margin: 0 0 24px !important;
	padding: 0 48px 0 0 !important;
	border: 0 !important;
	background: transparent !important;
}

html body.hl-compte #small-dialog.booking-calendar-view-popup .small-dialog-header h3 {
	margin: 0 !important;
	font-size: 32px !important;
	line-height: 1.15 !important;
}

html body.hl-compte #small-dialog.booking-calendar-view-popup .mfp-close {
	top: 24px !important;
	right: 24px !important;
	width: 40px !important;
	height: 40px !important;
	border-radius: 50% !important;
	background-color: #eeebe5 !important;
	color: #150e10 !important;
	line-height: 40px !important;
	opacity: 1 !important;
	transition: background-color 0.2s ease;
}

html body.hl-compte #small-dialog.booking-calendar-view-popup .mfp-close:hover {
	background-color: #ddd7cc !important;
}

html body.hl-compte #small-dialog.hl-cal-details .small-dialog-booking-content {
	padding: 24px !important;
	border: 1px solid #ddd7cc !important;
	border-radius: 20px !important;
	background: #fff8 !important;
}

html body.hl-compte #small-dialog.hl-cal-details .hl-cal-details__statut {
	border-radius: 14px;
}

@media ( max-width: 767px ) {
	html body.hl-compte #small-dialog.booking-calendar-view-popup {
		padding: 24px 20px 24px !important;
		border-radius: 20px !important;
	}

	html body.hl-compte #small-dialog.hl-cal-details .small-dialog-booking-content {
		padding: 16px !important;
	}
}

/* Listeo décale l'en-tête de 40 px et peint le titre du lieu en beige. */
html body.hl-compte #small-dialog.booking-calendar-view-popup .small-dialog-header {
	left: 0 !important;
	width: auto !important;
}

html body.hl-compte #small-dialog.hl-cal-details .small-dialog-booking-content h3 {
	padding: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}


html body.hl-compte.hl-compte .fc .hl-cal-type {
	width: 16px;
	height: 16px;
}

/* ---------------------------------- Formulaire d'annonce : champ manquant */

html body.hl-compte .hl-champ--erreur {
	padding: 16px !important;
	border: 1px solid #961b1b;
	border-radius: 16px;
	background: rgba( 150, 27, 27, 0.04 );
}

html body.hl-compte .hl-champ-erreur {
	margin: 4px 0 12px !important;
	color: #961b1b;
	font: 600 14px/1.5 "Plus Jakarta Sans", system-ui, sans-serif;
}

/* --------------------------------- Écran de fin d'enregistrement (3.100) */

html body.hl-compte .listing-added-notice {
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

html body.hl-compte .booking-confirmation-page.hl-envoi {
	max-width: 560px;
	margin: 24px auto 0 !important;
	padding: 48px 40px !important;
	border: 1px solid #ddd7cc;
	border-radius: 24px;
	background: #fbfaf8;
	text-align: center;
}

html body.hl-compte .hl-envoi__marque {
	display: inline-grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin: 0 0 24px;
	border-radius: 50%;
	background: #3e7a33;
	color: #fff;
	animation: hl-envoi-marque 0.35s ease-out both;
}

html body.hl-compte .hl-envoi__marque.is-attente {
	background: #eeebe5;
	color: #6b6151;
}

@keyframes hl-envoi-marque {
	from { opacity: 0; transform: scale( 0.8 ); }
	to { opacity: 1; transform: none; }
}

@media ( prefers-reduced-motion: reduce ) {
	html body.hl-compte .hl-envoi__marque { animation: none; }
}

html body.hl-compte .hl-envoi__titre {
	margin: 0 0 12px !important;
	color: #150e10;
	font-size: 36px !important;
	line-height: 1.15 !important;
}

html body.hl-compte .hl-envoi__texte {
	max-width: 44ch;
	margin: 0 auto 32px !important;
	color: #6b6151;
	font-size: 16px;
	line-height: 1.6;
}

html body.hl-compte .hl-envoi__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 0 !important;
}

html body.hl-compte .hl-envoi__actions .button {
	margin: 0 !important;
	padding: 12px 22px !important;
	border-radius: 999px !important;
	font-size: 15px !important;
	font-weight: 600 !important;
}

html body.hl-compte .hl-envoi__actions .hl-envoi__principal {
	border: 1px solid #150e10 !important;
	background: #150e10 !important;
	color: #fff !important;
}

html body.hl-compte .hl-envoi__actions .hl-bouton-secondaire {
	border: 1px solid #ddd7cc !important;
	background: transparent !important;
	color: #150e10 !important;
}

@media ( max-width: 767px ) {
	html body.hl-compte .booking-confirmation-page.hl-envoi {
		padding: 32px 20px !important;
	}

	html body.hl-compte .hl-envoi__titre {
		font-size: 28px !important;
	}
}
