/* Booking Appartement - public styles. Override the custom properties in your theme. */

.bkap {
	--bkap-accent: #1f6f78;
	--bkap-accent-contrast: #fff;
	--bkap-border: #d9dde1;
	--bkap-muted: #6b7280;
	--bkap-booked: #c9cdd2;
	--bkap-radius: 6px;
	box-sizing: border-box;
}

.bkap *,
.bkap *::before,
.bkap *::after {
	box-sizing: inherit;
}

/* ----- Notices ----- */
.bkap-notice {
	padding: 0.75em 1em;
	border-radius: var(--bkap-radius);
	border-left: 4px solid var(--bkap-accent);
	background: #f1f7f8;
}

.bkap-notice--error {
	border-color: #c0392b;
	background: #fdf0ef;
}

.bkap-notice--success {
	border-color: #2e7d32;
	background: #eef7ee;
}

.bkap-hint {
	color: var(--bkap-muted);
	font-size: 0.9em;
	margin: 0.5em 0;
}

/* ----- Calendar ----- */
.bkap-calendar {
	position: relative;
	margin: 0 0 1em;
}

.bkap-calendar.is-loading {
	opacity: 0.6;
}

.bkap-cal__nav {
	display: flex;
	justify-content: space-between;
	margin-bottom: 0.5em;
}

.bkap-cal__btn {
	min-width: 44px;
	min-height: 44px;
	font-size: 1.4em;
	line-height: 1;
	border: 1px solid var(--bkap-border);
	border-radius: var(--bkap-radius);
	background: #fff;
	color: inherit;
	cursor: pointer;
}

.bkap-cal__btn:disabled {
	opacity: 0.35;
	cursor: default;
}

.bkap-cal__months {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.25em;
}

.bkap-cal__month {
	width: 100%;
	border-collapse: separate;
	border-spacing: 3px;
	table-layout: fixed;
	margin: 0;
}

.bkap-cal__month caption {
	font-weight: 600;
	text-transform: capitalize;
	padding: 0.25em 0 0.5em;
}

.bkap-cal__month th {
	font-size: 0.75em;
	font-weight: 600;
	color: var(--bkap-muted);
	text-align: center;
	padding: 0.25em 0;
	border: 0;
}

.bkap-cal__month td {
	padding: 0;
	border: 0;
	text-align: center;
	height: 2.4em;
	border-radius: 4px;
	font-size: 0.9em;
}

.bkap-cal__day.has-season {
	background: color-mix(in srgb, var(--bkap-season) 30%, #fff);
}

.bkap-cal__day.is-past {
	color: #b5b9be;
}

.bkap-cal__day.is-booked {
	background: var(--bkap-booked);
	color: #6b7280;
	text-decoration: line-through;
}

/* Arrival day of another booking stays usable as a departure day. */
.bkap-cal__day.is-booked-start {
	background: linear-gradient(135deg, transparent 50%, var(--bkap-booked) 50%);
}

.bkap-cal__day > span,
.bkap-cal__pick {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 2.4em;
}

.bkap-cal__pick {
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: inherit;
	font: inherit;
	text-decoration: inherit;
	cursor: pointer;
	padding: 0;
}

.bkap-cal__pick:hover:not(:disabled),
.bkap-cal__pick:focus-visible {
	outline: 2px solid var(--bkap-accent);
	outline-offset: -2px;
}

.bkap-cal__pick:disabled {
	cursor: not-allowed;
}

.bkap-cal__day.is-selected {
	background: color-mix(in srgb, var(--bkap-accent) 25%, #fff);
}

.bkap-cal__day.is-checkin,
.bkap-cal__day.is-checkout {
	background: var(--bkap-accent);
	color: var(--bkap-accent-contrast);
	font-weight: 700;
}

.bkap-cal__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em 1.25em;
	list-style: none;
	margin: 1em 0 0;
	padding: 0;
	font-size: 0.9em;
}

.bkap-cal__legend li {
	display: flex;
	align-items: center;
	gap: 0.4em;
	margin: 0;
}

.bkap-swatch {
	display: inline-block;
	width: 1em;
	height: 1em;
	border-radius: 3px;
	vertical-align: -0.15em;
	margin-right: 0.4em;
}

.bkap-swatch--booked {
	background: var(--bkap-booked);
}

/* ----- Form ----- */
.bkap-fieldset {
	border: 1px solid var(--bkap-border);
	border-radius: var(--bkap-radius);
	padding: 1em 1.25em;
	margin: 0 0 1.25em;
}

.bkap-fieldset legend {
	font-weight: 600;
	padding: 0 0.4em;
}

.bkap-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0 1em;
}

.bkap-grid p {
	margin: 0 0 0.9em;
}

.bkap-grid__wide {
	grid-column: span 2;
}

.bkap-grid__full {
	grid-column: 1 / -1;
}

@media (max-width: 480px) {
	.bkap-grid__wide {
		grid-column: auto;
	}
}

.bkap-form label {
	display: block;
	font-weight: 500;
	margin-bottom: 0.25em;
}

.bkap-form input[type="text"],
.bkap-form input[type="email"],
.bkap-form input[type="tel"],
.bkap-form input[type="date"],
.bkap-form select,
.bkap-form textarea {
	width: 100%;
	min-height: 44px;
	padding: 0.5em 0.65em;
	border: 1px solid var(--bkap-border);
	border-radius: var(--bkap-radius);
	font: inherit;
	background: #fff;
}

.bkap-check label {
	display: flex;
	gap: 0.5em;
	align-items: flex-start;
	font-weight: 400;
}

.bkap-check input {
	margin-top: 0.3em;
}

.bkap-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.bkap-button {
	display: inline-block;
	min-height: 44px;
	padding: 0.7em 1.6em;
	border: 0;
	border-radius: var(--bkap-radius);
	background: var(--bkap-accent);
	color: var(--bkap-accent-contrast);
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.bkap-button:hover,
.bkap-button:focus-visible {
	filter: brightness(1.1);
	color: var(--bkap-accent-contrast);
}

/* ----- Tables (quote, prices) ----- */
.bkap-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1em;
}

.bkap-table th,
.bkap-table td {
	padding: 0.55em 0.6em;
	border-bottom: 1px solid var(--bkap-border);
	text-align: left;
	vertical-align: top;
}

.bkap-table td {
	text-align: right;
	white-space: nowrap;
}

.bkap-prices .bkap-table thead th {
	font-size: 0.85em;
	color: var(--bkap-muted);
}

.bkap-prices .bkap-table thead th:not(:first-child) {
	text-align: right;
}

.bkap-table--details td {
	white-space: normal;
}

/* Fixed columns: the table does not move when the amounts change. */
.bkap-quote__table {
	table-layout: fixed;
	margin-bottom: 0;
}

.bkap-quote__table td {
	width: 9em;
}

/* One line always reserved, so that a message does not push the form down. */
.bkap-quote__message {
	min-height: 1.5em;
	margin: 0.4em 0 0;
	color: #c0392b;
	font-size: 0.9em;
}

.bkap-quote__discount td {
	color: #2e7d32;
}

.bkap-quote__conditions {
	margin-left: 0.4em;
	color: var(--bkap-muted);
	font-weight: 400;
}

.bkap-quote__total th,
.bkap-quote__total td {
	font-weight: 700;
	border-top: 2px solid currentColor;
}

.bkap-quote__deposit th,
.bkap-quote__deposit td {
	font-weight: 700;
	background: #fff7e0;
}

/* ----- Confirmation ----- */
.bkap-pay {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5em;
	align-items: flex-start;
	margin-top: 1.5em;
	padding: 1.25em;
	border: 1px solid var(--bkap-border);
	border-radius: var(--bkap-radius);
}

.bkap-pay__qr svg {
	display: block;
	max-width: 100%;
	height: auto;
}

.bkap-pay__info {
	flex: 1 1 240px;
}

.bkap-pay__info dt {
	font-weight: 600;
	font-size: 0.85em;
	margin-top: 0.6em;
}

.bkap-pay__info dd {
	margin: 0;
}

/* ----- Reviews ----- */
.bkap-reviews__object + .bkap-reviews__object {
	margin-top: 2em;
}

.bkap-reviews__platforms {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em;
	margin: 0 0 1em;
}

.bkap-platform {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	min-height: 44px;
	padding: 0.5em 1em;
	border-radius: var(--bkap-radius);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
}

.bkap-platform:hover,
.bkap-platform:focus-visible {
	color: #fff;
	filter: brightness(1.1);
}

.bkap-platform--booking {
	background: #003580;
}

.bkap-platform--airbnb {
	background: #d93b5a;
}

.bkap-platform__score {
	padding: 0.15em 0.45em;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.2);
}

.bkap-reviews__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1em;
}

.bkap-review {
	margin: 0;
	padding: 1em 1.1em;
	border: 1px solid var(--bkap-border);
	border-radius: var(--bkap-radius);
}

.bkap-review__text {
	margin: 0 0 0.75em;
	padding: 0;
	border: 0;
	font-style: italic;
}

.bkap-review__text p {
	margin: 0 0 0.5em;
}

.bkap-review__meta {
	margin: 0;
	font-size: 0.9em;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em;
	align-items: center;
}

.bkap-stars {
	color: #f2a93b;
	letter-spacing: 1px;
}

.bkap-stars__off {
	color: #d9dde1;
}

.bkap-review__source {
	margin-left: auto;
	font-size: 0.8em;
	padding: 0.1em 0.5em;
	border-radius: 999px;
	background: #eef0f2;
}

@media (prefers-reduced-motion: reduce) {
	.bkap * {
		transition: none !important;
	}
}
