/* =============================================================
   Gîte Réservation — Styles Frontend
   ============================================================= */

/* ── Conteneur principal ── */
.gite-resa-container {
	max-width: 760px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
	color: #1a202c;
	line-height: 1.6;
}

.gite-resa-title {
	font-size: 1.75rem;
	font-weight: 700;
	color: #1a202c;
	margin: 0 0 1.5rem;
}

/* ── Bloc calendrier ── */
.gite-resa-calendar-block {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}

.gite-resa-calendar-hint {
	font-size: 0.95rem;
	color: #718096;
	margin: 0 0 1rem;
}

/* ── Calendrier personnalisé ── */
.gite-resa-calendar {
	width: 100%;
}

.gite-resa-cal {
	width: 100%;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
	font-family: inherit;
	font-size: 0.9rem;
}

.gite-resa-cal__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.6rem 1rem;
	background: #f7fafc;
	border-bottom: 1px solid #e2e8f0;
}

.gite-resa-cal__title {
	font-weight: 700;
	font-size: 1rem;
	color: #2d3748;
}

.gite-resa-cal__prev,
.gite-resa-cal__next {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 1.6rem;
	line-height: 1;
	color: #4a5568;
	padding: 0 0.5rem;
	border-radius: 4px;
	transition: background 0.15s;
}

.gite-resa-cal__prev:hover,
.gite-resa-cal__next:hover {
	background: #edf2f7;
}

.gite-resa-cal__weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	text-align: center;
	font-size: 0.72rem;
	font-weight: 700;
	color: #718096;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0.4rem 0;
	background: #f7fafc;
	border-bottom: 1px solid #e2e8f0;
}

.gite-resa-cal__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
}

.gite-resa-cal__day {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	cursor: pointer;
	border: 1px solid transparent;
	box-sizing: border-box;
	min-height: 2.4rem;
	user-select: none;
	transition: opacity 0.12s;
}

.gite-resa-cal__day--empty {
	cursor: default;
}

.gite-resa-cal__day.is-disabled {
	cursor: not-allowed;
	text-decoration: line-through;
}

.gite-resa-cal__day--empty {
    background: #fffafa !important;
}

.gite-resa-cal__day.is-today:not(.is-sel) {
	box-shadow: inset 0 0 0 10px #000000;
	font-weight: 700;
}

.gite-resa-cal__day.is-start {
	border-radius: 4px 0 0 4px;
}

.gite-resa-cal__day.is-end {
	border-radius: 0 4px 4px 0;
}

.gite-resa-cal__day:hover:not(.is-disabled):not(.gite-resa-cal__day--empty) {
	opacity: 0.75;
}

/* ── Légende ── */
.gite-resa-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 0.75rem;
	font-size: 0.8rem;
	color: #4a5568;
}

.gite-resa-legend__item {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.gite-resa-legend__item::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	border-radius: 3px;
}

.gite-resa-legend__item--available::before  { background: #fff; border: 1px solid #cbd5e0; }
.gite-resa-legend__item--blocked::before    { background: #e2e8f0; }
.gite-resa-legend__item--selected::before   { background: #2b6cb0; }

/* ── Récapitulatif des dates sélectionnées ── */
.gite-resa-dates-display {
	margin-bottom: 1.5rem;
}

.gite-resa-dates-display__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	background: #ebf8ff;
	border: 1px solid #bee3f8;
	border-radius: 10px;
	padding: 1rem 1.5rem;
}

.gite-resa-dates-display__group {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.gite-resa-dates-display__label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #63b3ed;
	font-weight: 600;
}

.gite-resa-dates-display__value {
	font-size: 1rem;
	font-weight: 700;
	color: #2c5282;
}

.gite-resa-dates-display__arrow {
	font-size: 1.3rem;
	color: #63b3ed;
}

.gite-resa-dates-display__nights {
	margin-left: auto;
	background: #2b6cb0;
	color: #fff;
	padding: 0.3rem 0.9rem;
	border-radius: 20px;
	font-size: 0.9rem;
	font-weight: 600;
	white-space: nowrap;
}

/* ── Formulaire ── */
.gite-resa-form-wrapper {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 2rem;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.gite-resa-form-title {
	font-size: 1.2rem;
	font-weight: 700;
	color: #1a202c;
	margin: 0 0 1.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid #e2e8f0;
}

.gite-resa-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
}

.gite-resa-row--half {
	grid-template-columns: 1fr;
	max-width: 240px;
}

@media (max-width: 600px) {
	.gite-resa-row {
		grid-template-columns: 1fr;
	}
	.gite-resa-row--half {
		max-width: 100%;
	}
}

.gite-resa-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin-bottom: 1.25rem;
}

.gite-resa-row .gite-resa-field {
	margin-bottom: 0;
}

/* Dernier .gite-resa-row a quand même sa marge basse grâce au row */
.gite-resa-row + .gite-resa-field,
.gite-resa-row + .gite-resa-row {
	margin-top: 1.25rem;
}

.gite-resa-field label {
	font-size: 0.88rem;
	font-weight: 600;
	color: #4a5568;
}

.gite-resa-required {
	color: #e53e3e;
}

.gite-resa-field input,
.gite-resa-field select,
.gite-resa-field textarea {
	padding: 0.65rem 0.9rem;
	font-size: 1rem;
	font-family: inherit;
	border: 1.5px solid #cbd5e0;
	border-radius: 8px;
	background: #fff;
	color: #1a202c;
	transition: border-color 0.18s, box-shadow 0.18s;
	box-sizing: border-box;
	width: 100%;
}

.gite-resa-field input:focus,
.gite-resa-field select:focus,
.gite-resa-field textarea:focus {
	outline: none;
	border-color: #2b6cb0;
	box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15);
}

.gite-resa-field textarea {
	resize: vertical;
}

.gite-resa-required-note {
	font-size: 0.8rem;
	color: #718096;
	margin: 0 0 1.25rem;
}

/* ── Bouton soumettre ── */
.gite-resa-submit {
	display: block;
	width: 100%;
	padding: 0.9rem 1rem;
	background: #2b6cb0;
	color: #fff;
	border: none;
	border-radius: 9px;
	font-size: 1.05rem;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.18s, transform 0.1s;
	letter-spacing: 0.01em;
}

.gite-resa-submit:hover:not(:disabled) {
	background: #2c5282;
}

.gite-resa-submit:active:not(:disabled) {
	transform: scale(0.985);
}

.gite-resa-submit:disabled {
	background: #a0aec0;
	cursor: not-allowed;
}

/* ── Notices de feedback ── */
.gite-resa-notice {
	padding: 0.9rem 1.25rem;
	border-radius: 8px;
	margin-bottom: 1.25rem;
	font-size: 1.5rem;
	font-weight: 500;
}

.gite-resa-notice--success {
	background: #c6f6d5;
	color: #22543d;
	border: 1px solid #9ae6b4;
}

.gite-resa-notice--error {
	background: #fed7d7;
	color: #742a2a;
	border: 1px solid #feb2b2;
}

/* ── Mention légale reCAPTCHA ── */
.gite-resa-recaptcha-notice {
	font-size: 0.75rem;
	color: #a0aec0;
	margin: 0.75rem 0 0;
	text-align: center;
	line-height: 1.5;
}

.gite-resa-recaptcha-notice a {
	color: #a0aec0;
	text-decoration: underline;
}
/* ── Avertissement nuits minimum ── */
.gite-resa-period-warning {
        background: #fef3c7;
        color: #92400e;
        border: 1px solid #fcd34d;
        border-radius: 8px;
        padding: 0.65rem 1rem;
        margin-top: 1.5rem;
        font-size: 1.5rem;
        font-weight: 500;
}

/* ── Prix estimatif dans le récapitulatif ── */
.gite-resa-dates-display__price {
        width: 100%;
        text-align: center;
        margin-top: 0.4rem;
        font-size: 1rem;
        color: #2c5282;
        font-weight: 600;
        padding-top: 0.5rem;
        border-top: 1px solid #bee3f8;
        line-height: 1.8;
}

.gite-resa-price-detail {
        display: block;
        font-size: 1rem;
        font-weight: 400;
        color: #4a7faa;
}

.gite-resa-price-acompte {
        display: block;
        margin-top: 0.35rem;
        font-size: 0.82rem;
        font-weight: 400;
        color: #4a5568;
        font-style: italic;
}