/**
 * Flatpickr, restyled to the Intaaya palette.
 *
 * Loaded after flatpickr.min.css and overrides only what carries the brand:
 * the sage selection, Inter for the chrome, Williwaw for the day numerals so the
 * calendar reads like the rest of the site rather than a bolted-on widget.
 *
 *   $ui-01 #717B6D sage   $ui-03 #E8E8E8 hairline
 *   $ui-02 #787064 muted  $ui-05 #281E1E ink      $ui-06 #485045 deep green
 */

.flatpickr-calendar {
	font-family: "Inter", sans-serif;
	border: 1px solid #e8e8e8;
	border-radius: 1rem;
	box-shadow: 0 1.2rem 3.2rem rgba(40, 30, 30, 0.12);
	background: #fff;
}

.flatpickr-calendar.arrowTop::before,
.flatpickr-calendar.arrowTop::after {
	border-bottom-color: #fff;
}

.flatpickr-months {
	padding: 1rem 0 0.4rem;
}

.flatpickr-current-month,
.flatpickr-current-month input.cur-year {
	font-family: "Williwaw", "Inter", sans-serif;
	font-size: 1.6rem;
	font-weight: 400;
	color: #281e1e;
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
	fill: #717b6d;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
	fill: #485045;
}

span.flatpickr-weekday {
	font-family: "Inter", sans-serif;
	font-size: 1.1rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #787064;
}

/*
 * Column alignment for multi-month view.
 *
 * Flatpickr lays days out with `justify-content: space-around` and caps each day
 * narrower than a column. With showMonths the months are NOT padded with adjacent-
 * month days, so a month's final week is a partial row — and space-around spreads
 * those few boxes across the full width, dropping them out from under their
 * weekday columns (e.g. Oct 30–31). Pack the row left with each day exactly one
 * seventh wide, so partial and full weeks share the same column grid.
 */
.flatpickr-calendar .dayContainer {
	justify-content: flex-start;
}

.flatpickr-day {
	font-family: "Williwaw", "Inter", sans-serif;
	font-size: 1.4rem;
	color: #281e1e;
	border-radius: 0.6rem;
	border: 1px solid transparent;
	height: 3.8rem;
	line-height: 3.6rem;
	max-width: 14.2857143%;
	flex-basis: 14.2857143%;
}

.flatpickr-day:hover {
	background: #f2f1ec;
	border-color: transparent;
}

.flatpickr-day.today {
	border-color: #c9c6bc;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
	background: #485045;
	border-color: #485045;
	color: #fff;
}

.flatpickr-day.inRange {
	background: #eceee7;
	border-color: #eceee7;
	color: #281e1e;
	box-shadow: -0.5rem 0 0 #eceee7, 0.5rem 0 0 #eceee7;
}

.flatpickr-day.startRange { border-radius: 0.6rem 0 0 0.6rem; }
.flatpickr-day.endRange   { border-radius: 0 0.6rem 0.6rem 0; }

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
	color: #c9c6bc;
}

/* ------------------------------------------------------------------ field */

.form-field--stay-dates {
	position: relative;
}

.form-field--stay-dates .input {
	cursor: pointer;
}

.stay-dates__hint {
	margin: -0.2rem 0 0;
	font-family: "Inter", sans-serif;
	font-weight: 300;
	font-size: 1.2rem;
	line-height: 1.5;
	color: #787064;
	min-height: 1.8rem;
}

.stay-dates__hint--warn { color: #8a1f1f; }
.stay-dates__hint--info { color: #485045; }

/* --------------------------------------------------------------- estimate */

.price-display:empty { display: none; }

.stay-estimate {
	/* No boxed border per client — sits flush in the form flow. */
	margin: 1.6rem 0 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	font-family: "Inter", sans-serif;
}

.stay-estimate__row {
	display: flex;
	justify-content: space-between;
	gap: 1.6rem;
	font-weight: 300;
	font-size: 1.3rem;
	color: #281e1e;
	padding: 0.5rem 0;
}

.stay-estimate__row span:last-child {
	font-family: "Williwaw", "Inter", sans-serif;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.stay-estimate__total {
	margin-top: 0.8rem;
	padding-top: 1rem;
	border-top: 1px solid #281e1e;
	font-size: 1.5rem;
	font-weight: 400;
}

.stay-estimate__total span:last-child {
	font-size: 2.2rem;
	line-height: 1;
}

.stay-estimate__note {
	margin: 1.2rem 0 0;
	font-size: 1.1rem;
	font-weight: 300;
	line-height: 1.5;
	color: #787064;
}

@media (max-width: 575px) {
	.flatpickr-calendar { font-size: 1.3rem; }
	.flatpickr-day { height: 3.4rem; line-height: 3.2rem; max-width: 14.2857143%; }
}
