/* Floating "Book" button (every page) and the booking page: availability calendar and request form */

.snk-book-fab {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 100;
	display: inline-block;
	padding: 13px 24px;
	border-radius: 30px;
	background: #861722;
	color: #fff;
	font-family: 'Oswald', sans-serif;
	font-size: 17px;
	line-height: 1.2;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
	transition: background 0.2s, transform 0.2s;
}
.snk-book-fab .fa { margin-right: 6px; }
.snk-book-fab:hover,
.snk-book-fab:focus {
	background: #6b111b;
	color: #fff;
	transform: translateY(-2px);
}
/* the theme's back-to-top button shares the corner: lift it above the Book button */
.snk-book-fab + #ht-back-top { right: 20px; bottom: 82px; }
.snk-book-fab + #ht-back-top.ht-hide { bottom: -100px; }

@media (max-width: 600px) {
	.snk-book-fab { right: 12px; bottom: 12px; padding: 11px 20px; font-size: 16px; }
	.snk-book-fab + #ht-back-top { right: 12px; bottom: 70px; }
}

/* ---------------------------------------------------------------- calendar */

.snk-booking { margin: 25px 0 50px; }

.snk-cal {
	background: #fff;
	border: 1px solid #e3d9cf;
	padding: 20px 25px 10px;
	margin-bottom: 40px;
}
.snk-cal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}
.snk-booking .snk-cal-nav {
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #861722;
	color: #fff;
	font-size: 24px;
	line-height: 40px;
	cursor: pointer;
}
.snk-booking .snk-cal-nav:disabled { background: #d9cfc5; cursor: default; }

.snk-legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
}
.snk-legend li { margin: 0; padding: 0; display: flex; align-items: center; }
.snk-swatch {
	display: inline-block;
	width: 18px;
	height: 18px;
	margin-right: 7px;
	border: 1px solid #e3d9cf;
}
.snk-swatch-free { background: #fff; }
.snk-swatch-booked { background: #d9cfc5; }
.snk-swatch-stay { background: #861722; border-color: #861722; }

.snk-months {
	display: grid;
	grid-template-columns: repeat(var(--snk-months, 2), minmax(0, 1fr));
	gap: 40px;
}
.snk-month h4 {
	margin: 5px 0 10px;
	text-align: center;
	text-transform: capitalize;
	font-size: 18px;
}
.snk-month table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 3px;
	table-layout: fixed;
}
.snk-month th,
.snk-month td {
	padding: 0;
	border: 0;
	background: none;
	text-align: center;
}
.snk-month th {
	padding-bottom: 4px;
	color: #8f8479;
	font-size: 12px;
	font-weight: normal;
	text-transform: uppercase;
}

.snk-booking .snk-day {
	display: block;
	width: 100%;
	height: 42px;
	margin: 0;
	padding: 0;
	border: 1px solid #e3d9cf;
	border-radius: 0;
	background: #fff;
	color: #333;
	font-family: inherit;
	font-size: 15px;
	line-height: 40px;
	text-transform: none;
	cursor: pointer;
	transition: none;
}
.snk-booking .snk-day:hover:not(:disabled) { border-color: #861722; }
.snk-booking .snk-day:focus-visible { outline: 2px solid #861722; outline-offset: 1px; }
.snk-booking .snk-day.is-today { font-weight: bold; }
.snk-booking .snk-day.is-past {
	border-color: transparent;
	background: transparent;
	color: #c9bfb5;
	cursor: default;
}
.snk-booking .snk-day.is-booked {
	background: #d9cfc5;
	color: #8f8479;
	text-decoration: line-through;
	cursor: not-allowed;
}
/* half days: guests leave in the morning / arrive in the afternoon */
.snk-booking .snk-day.is-checkin { background: linear-gradient(to bottom right, #fff 50%, #d9cfc5 50%); }
.snk-booking .snk-day.is-checkout { background: linear-gradient(to bottom right, #d9cfc5 50%, #fff 50%); }
.snk-booking .snk-day.is-range { background: #f2dcdf; }
.snk-booking .snk-day.is-start,
.snk-booking .snk-day.is-end {
	border-color: #861722;
	background: #861722;
	color: #fff;
	text-decoration: none;
}

.snk-cal-status,
.snk-cal-feed { margin: 15px 0 10px; text-align: center; }
.snk-cal-status { font-weight: bold; }
.snk-cal-feed { color: #8f8479; font-size: 13px; }
.snk-cal-status.is-warning,
.snk-cal-feed.is-warning { color: #861722; font-size: inherit; }

/* ---------------------------------------------------------------- form */

.snk-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 15px 20px;
	margin-bottom: 15px;
}
.snk-row-full { grid-template-columns: 1fr; }
.snk-field { display: block; margin: 0; font-weight: normal; }
.snk-field span {
	display: block;
	margin-bottom: 5px;
	font-family: 'Oswald', sans-serif;
	font-size: 14px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #333;
}
.snk-field input,
.snk-field textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 9px 10px;
	border: 1px solid #d9cfc5;
	background: #fff;
	color: #333;
	font-family: inherit;
	font-size: 15px;
}
.snk-field input { height: 42px; }
.snk-field input:focus,
.snk-field textarea:focus { border-color: #861722; outline: none; }

.snk-error { min-height: 1em; margin: 0 0 10px; color: #861722; font-weight: bold; }
.snk-error:empty { margin: 0; }

.snk-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.snk-booking .snk-send,
.snk-booking .snk-copy {
	padding: 12px 24px;
	border: 0;
	border-radius: 0;
	background: #861722;
	color: #fff;
	font-family: 'Oswald', sans-serif;
	font-size: 16px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	cursor: pointer;
}
.snk-booking .snk-send-wa { background: #333; }
.snk-booking .snk-send:hover,
.snk-booking .snk-copy:hover { background: #6b111b; }
.snk-booking .snk-send .fa,
.snk-booking .snk-copy .fa { margin-right: 6px; }

.snk-sent {
	margin-top: 25px;
	padding: 18px 20px;
	border-left: 4px solid #861722;
	background: #fff;
}
.snk-sent[hidden] { display: none; }
.snk-sent textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 10px 0 12px;
	padding: 9px 10px;
	border: 1px solid #d9cfc5;
	font-family: inherit;
	font-size: 14px;
}

@media (max-width: 600px) {
	.snk-cal { padding: 15px 10px 5px; }
	.snk-legend { gap: 4px 12px; font-size: 13px; }
	.snk-booking .snk-day { height: 38px; line-height: 36px; font-size: 14px; }
}
