.naturiel-booking-wrap,
.naturiel-booking-wrap *,
.naturiel-booking-wrap *::before,
.naturiel-booking-wrap *::after {
	box-sizing: border-box;
}

:root {
	--naturiel-primary: #426b4b;
	--naturiel-primary-dark: #31563b;
	--naturiel-available-bg: rgba(79, 138, 93, 0.14);
	--naturiel-available-bg-hover: rgba(79, 138, 93, 0.20);
	--naturiel-available-border: rgba(79, 138, 93, 0.42);
	--naturiel-reserved-bg: rgba(209, 138, 59, 0.30);
	--naturiel-reserved-bg-hover: rgba(209, 138, 59, 0.38);
	--naturiel-reserved-border: rgba(209, 138, 59, 0.62);
	--naturiel-booked-bg: rgba(189, 98, 88, 0.34);
	--naturiel-booked-bg-hover: rgba(189, 98, 88, 0.42);
	--naturiel-booked-border: rgba(189, 98, 88, 0.68);
	--naturiel-secondary: #edf0e7;
	--naturiel-success: #4f8a5d;
	--naturiel-warning: #d18a3b;
	--naturiel-danger: #bd6258;
	--naturiel-background: #faf8f1;
	--naturiel-surface: #fffdf8;
	--naturiel-border: rgba(65, 88, 68, 0.18);
	--naturiel-shadow: 0 18px 45px rgba(47, 64, 50, 0.10);
	--naturiel-shadow-hover: 0 18px 30px rgba(47, 64, 50, 0.15);
	--naturiel-text: #26312a;
	--naturiel-text-light: #68756c;
	--naturiel-radius: 24px;
	--naturiel-transition: 190ms ease;
}

.naturiel-booking-wrap {
	width: 100%;
	height: 100%;
	min-height: inherit;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--naturiel-text);
	font: inherit;
}

.naturiel-booking-calendar {
	position: relative;
	width: 100%;
	max-width: 1040px;
	min-height: 0;
	background: var(--naturiel-background);
	border: 1px solid var(--naturiel-border);
	border-radius: var(--naturiel-radius);
	box-shadow: var(--naturiel-shadow);
	padding: clamp(20px, 4vw, 42px);
	overflow: hidden;
	animation: naturielFadeIn .24s ease-out both;
	transition: opacity var(--naturiel-transition), transform var(--naturiel-transition), box-shadow var(--naturiel-transition);
}

.naturiel-booking-calendar.is-loading {
	pointer-events: none;
	opacity: .78;
	transform: translateY(4px);
}

.naturiel-calendar-header {
	display: grid;
	grid-template-columns: 56px 1fr 56px;
	align-items: center;
	gap: 18px;
	margin-bottom: clamp(20px, 3vw, 32px);
}

.naturiel-calendar-title {
	margin: 0;
	font: inherit;
	font-size: clamp(26px, 4vw, 42px);
	line-height: 1.08;
	font-weight: 700;
	text-align: center;
	color: var(--naturiel-text);
}

.naturiel-calendar-nav,
.naturiel-booking-button {
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid rgba(66, 107, 75, .28);
	border-radius: 999px;
	background: var(--naturiel-primary);
	color: #fff;
	cursor: pointer;
	font: inherit;
	line-height: 1;
	text-decoration: none;
	transition: transform var(--naturiel-transition), box-shadow var(--naturiel-transition), background var(--naturiel-transition), border-color var(--naturiel-transition), outline-color var(--naturiel-transition);
}

.naturiel-calendar-nav {
	width: 56px;
	height: 56px;
	min-width: 0;
	min-height: 0;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
}

.naturiel-calendar-nav:hover,
.naturiel-booking-button:hover {
	transform: translateY(-2px);
	box-shadow: var(--naturiel-shadow-hover);
	background: var(--naturiel-primary-dark);
}

.naturiel-calendar-nav:focus-visible,
.naturiel-booking-button:focus-visible,
.naturiel-calendar-day:focus-visible {
	outline: 3px solid rgba(79, 138, 93, .28);
	outline-offset: 3px;
}

.naturiel-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: clamp(8px, 1vw, 13px);
	align-items: stretch;
}

.naturiel-calendar-weekday {
	color: var(--naturiel-text-light);
	font-size: 13px;
	line-height: 1;
	text-align: center;
	font-weight: 700;
	padding-bottom: 4px;
}

.naturiel-calendar-empty {
	min-width: 0;
	height: clamp(68px, 7vw, 92px);
	visibility: hidden;
}

.naturiel-calendar-grid .naturiel-calendar-weekday {
	height: auto;
	visibility: visible;
}

.naturiel-calendar-day {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	max-width: 100%;
	min-width: 0 !important;
	height: clamp(68px, 7vw, 92px);
	min-height: 0;
	border: 1px solid var(--naturiel-border);
	border-radius: 18px;
	background: var(--naturiel-surface);
	color: var(--naturiel-text);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 8px 4px;
	cursor: pointer;
	font: inherit;
	line-height: 1.1;
	text-align: center;
	box-shadow: 0 6px 18px rgba(47, 64, 50, 0.045);
	transition: transform var(--naturiel-transition), border-color var(--naturiel-transition), background var(--naturiel-transition), box-shadow var(--naturiel-transition), color var(--naturiel-transition);
}

.naturiel-calendar-day:hover {
	transform: translateY(-4px);
	box-shadow: var(--naturiel-shadow-hover);
}

.naturiel-day-number {
	font-size: clamp(18px, 2vw, 24px);
	font-weight: 700;
	letter-spacing: .01em;
}

.naturiel-day-status {
	font-size: 12px;
	line-height: 1.1;
	color: var(--naturiel-text-light);
}

.naturiel-calendar-day.is-available {
	background: var(--naturiel-available-bg);
	border-color: var(--naturiel-available-border);
	color: var(--naturiel-primary-dark);
}

.naturiel-calendar-day.is-available:hover {
	background: var(--naturiel-available-bg-hover);
	border-color: rgba(79, 138, 93, .58);
}

.naturiel-calendar-day.is-available .naturiel-day-status { color: rgba(49, 86, 59, .72); }

.naturiel-calendar-day.is-reserved {
	background: var(--naturiel-reserved-bg);
	border-color: var(--naturiel-reserved-border);
	color: var(--naturiel-text);
}

.naturiel-calendar-day.is-reserved:hover {
	background: var(--naturiel-reserved-bg-hover);
	border-color: rgba(209, 138, 59, .78);
}

.naturiel-calendar-day.is-booked {
	background: var(--naturiel-booked-bg);
	border-color: var(--naturiel-booked-border);
	color: var(--naturiel-text);
	cursor: not-allowed;
}

.naturiel-calendar-day.is-booked:hover {
	background: var(--naturiel-booked-bg-hover);
	border-color: rgba(189, 98, 88, .82);
}

.naturiel-calendar-day.is-reserved .naturiel-day-status { color: #a96520; }
.naturiel-calendar-day.is-booked .naturiel-day-status { color: #a94840; }

.naturiel-calendar-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 22px;
	margin-top: 26px;
	color: var(--naturiel-text-light);
	font-size: 14px;
}

.naturiel-calendar-legend span { display: inline-flex; align-items: center; gap: 9px; }
.naturiel-calendar-legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 1px solid transparent; }
.naturiel-calendar-legend .is-available { background: var(--naturiel-available-bg); border-color: var(--naturiel-available-border); }
.naturiel-calendar-legend .is-reserved { background: var(--naturiel-warning); border-color: var(--naturiel-reserved-border); }
.naturiel-calendar-legend .is-booked { background: var(--naturiel-danger); border-color: var(--naturiel-booked-border); }

.naturiel-booking-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 24px;
}

.naturiel-statistics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.naturiel-statistics > div, .naturiel-occupancy { background: var(--naturiel-surface); border: 1px solid var(--naturiel-border); border-radius: 18px; padding: 18px; box-shadow: var(--naturiel-shadow); }
.naturiel-statistics strong, .naturiel-occupancy strong { display: block; font-size: 28px; color: var(--naturiel-primary); }
.naturiel-statistics span, .naturiel-occupancy span { color: var(--naturiel-text-light); }
.naturiel-progress { height: 9px; background: var(--naturiel-secondary); border-radius: 999px; overflow: hidden; margin-top: 12px; }
.naturiel-progress span { display: block; height: 100%; background: var(--naturiel-primary); }

@keyframes naturielFadeIn {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
	.naturiel-booking-wrap {
		align-items: flex-start;
		justify-content: center;
		padding-inline: 0;
	}

	.naturiel-booking-calendar {
		width: min(100%, 100vw);
		max-width: 100%;
		min-height: 0;
		border-radius: 20px;
		padding: 18px 12px 20px;
		overflow: hidden;
	}


	.naturiel-calendar-header {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 12px;
		margin-bottom: 22px;
	}

	.naturiel-calendar-title {
		grid-column: 1 / -1;
		order: -1;
		font-size: clamp(27px, 8.5vw, 36px);
		line-height: 1.05;
	}

	.naturiel-calendar-nav {
		width: 100% !important;
		max-width: 100%;
		height: 54px;
		min-width: 0 !important;
		min-height: 0 !important;
		border-radius: 22px;
		padding: 0 !important;
	}

	.naturiel-calendar-grid {
		width: 100%;
		max-width: 100%;
		display: grid;
		grid-template-columns: repeat(7, minmax(0, 1fr));
		gap: 6px;
	}

	.naturiel-calendar-weekday {
		min-width: 0;
		font-size: 12px;
		line-height: 1;
		padding-bottom: 4px;
	}

	.naturiel-calendar-empty {
		display: block;
		min-width: 0;
		height: clamp(42px, 11vw, 56px);
	}

	.naturiel-calendar-day {
		width: 100% !important;
		max-width: 100%;
		min-width: 0 !important;
		height: clamp(42px, 11vw, 56px);
		min-height: 0 !important;
		max-height: 56px;
		aspect-ratio: auto;
		border-radius: 14px;
		gap: 0;
		padding: 0 !important;
		box-shadow: none;
		overflow: hidden;
	}

	.naturiel-calendar-day:hover,
	.naturiel-calendar-day:focus-visible {
		transform: none;
	}

	.naturiel-day-number {
		font-size: clamp(17px, 5.2vw, 22px);
		line-height: 1;
	}

	.naturiel-day-status {
		display: none;
	}

	.naturiel-calendar-legend {
		justify-content: center;
		gap: 12px 16px;
		font-size: 13px;
		margin-top: 24px;
	}
}

@media (max-width: 380px) {
	.naturiel-booking-calendar { padding-inline: 10px; }
	.naturiel-calendar-grid { gap: 5px; }
	.naturiel-calendar-day { height: clamp(38px, 10.5vw, 48px); border-radius: 12px; }
	.naturiel-day-number { font-size: 17px; }
	.naturiel-calendar-legend { font-size: 12px; gap: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.naturiel-booking-calendar,
	.naturiel-calendar-nav,
	.naturiel-booking-button,
	.naturiel-calendar-day {
		animation: none;
		transition: none;
	}
}
