/* Colva Kinara booking bar: slim, minimal. Floating on most pages, inline on search/checkout. */

.ck-bar {
	--ck-accent: #b87969;
	--ck-accent-dark: #a0634f;
	--ck-ink: #2b2a33;
	--ck-muted: #8a8a92;
	--ck-line: #eee9e2;
	color: var(--ck-ink);
	font-family: Jost, sans-serif;
}

.ck-bar:not(.ck-bar--inline) {
	position: fixed;
	left: 50%;
	bottom: 18px;
	z-index: 9980;
	width: min(760px, calc(100% - 32px));
	transform: translateX(-50%);
	background: #fff;
	border-radius: 999px;
	box-shadow: 0 8px 30px rgba(30, 25, 20, 0.18), 0 0 0 1px rgba(30, 25, 20, 0.04);
}

.ck-bar__toggle {
	display: none;
}

.ck-bar__fields {
	display: grid;
	grid-template-columns: 1.3fr 1.3fr 0.8fr 0.9fr auto;
	align-items: center;
}

.ck-bar__field {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	margin: 0;
	padding: 8px 18px;
	border-right: 1px solid var(--ck-line);
	cursor: pointer;
}

.ck-bar__field:nth-child(4) {
	border-right: 0;
}

.ck-bar__field > span {
	margin-bottom: 2px;
	color: var(--ck-muted);
	font: 500 10px/1 Jost, sans-serif;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.ck-bar .ck-bar__field input,
.ck-bar .ck-bar__field select {
	width: 100% !important;
	height: 20px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background-color: transparent !important;
	box-shadow: none !important;
	color: var(--ck-ink) !important;
	font: 500 14px/20px Jost, sans-serif !important;
	outline: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

/* Custom chevron so the guest dropdowns look the same everywhere. */
.ck-bar .ck-bar__field select {
	padding-right: 16px !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238a8a92' stroke-width='1.5'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right center !important;
}

.ck-bar__field input[type="date"]::-webkit-calendar-picker-indicator {
	opacity: 0.45;
	cursor: pointer;
}

.ck-bar__submit {
	height: 44px;
	margin: 6px;
	padding: 0 26px;
	border: 0;
	border-radius: 999px;
	background: var(--ck-accent);
	color: #fff;
	font: 500 12px/1 Jost, sans-serif;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.25s ease;
}

.ck-bar__submit:hover,
.ck-bar__submit:focus-visible {
	background: var(--ck-accent-dark);
}

/* Inline version (search + checkout): sits in the page flow, slightly outlined. */
.ck-bar--inline {
	max-width: 760px;
	margin: 0 auto 26px;
	background: #fff;
	border: 1px solid var(--ck-line);
	border-radius: 999px;
}

/* Footer room for the floating bar without a white strip under the footer. */
body.ck-bar-active footer.footer {
	background: #30313d;
	padding-bottom: 76px;
}

/* Back to top on the left; chat widget stays on the right. */
body #scrollTop.scrollTopStick {
	right: auto !important;
	left: 18px !important;
}

body.ck-bar-active #scrollTop.scrollTopStick {
	bottom: 86px !important;
}

body.ck-bar-active .chaty-widget,
body.ck-bar-active [id^="chaty-widget"] {
	bottom: 86px !important;
}

/* The home hero already gets this bar, so hide its built-in search form. */
body.ck-bar-active .knsl-banner .knsl-book-form {
	display: none !important;
}

@media (max-width: 900px) {
	.ck-bar__field {
		padding: 8px 12px;
	}

	.ck-bar__submit {
		padding: 0 18px;
	}
}

/* Phones: a slim strip that opens into a panel. */
@media (max-width: 680px) {
	.ck-bar:not(.ck-bar--inline) {
		bottom: 0;
		left: 0;
		width: 100%;
		transform: none;
		border-radius: 14px 14px 0 0;
		overflow: hidden;
	}

	.ck-bar__toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		width: 100%;
		height: 46px;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: #fff;
		color: var(--ck-ink);
		font: 500 12px/1 Jost, sans-serif;
		letter-spacing: 0.14em;
		text-transform: uppercase;
		cursor: pointer;
	}

	.ck-bar--inline .ck-bar__toggle {
		display: none;
	}

	.ck-bar__toggle .ck-icon--chevron {
		width: 10px;
		height: 6px;
		transform: rotate(180deg);
		transition: transform 0.25s ease;
	}

	.ck-bar.is-open .ck-bar__toggle .ck-icon--chevron {
		transform: none;
	}

	.ck-bar:not(.ck-bar--inline) .ck-bar__fields {
		display: none;
		border-top: 1px solid var(--ck-line);
	}

	.ck-bar.is-open .ck-bar__fields,
	.ck-bar--inline .ck-bar__fields {
		display: grid;
	}

	.ck-bar__fields {
		grid-template-columns: 1fr 1fr;
	}

	.ck-bar__field {
		border-right: 0;
		border-bottom: 1px solid var(--ck-line);
		padding: 10px 16px;
	}

	.ck-bar__submit {
		grid-column: 1 / -1;
		height: 46px;
		margin: 12px 16px;
	}

	.ck-bar--inline {
		margin: 0 0 20px;
		border-radius: 14px;
	}

	body.ck-bar-active footer.footer {
		padding-bottom: 54px;
	}

	body.ck-bar-active #scrollTop.scrollTopStick,
	body.ck-bar-active .chaty-widget,
	body.ck-bar-active [id^="chaty-widget"] {
		bottom: 62px !important;
	}
}

/* The theme turns every <select> into a select2 widget; use the plain native dropdown here. */
.ck-bar .select2-container {
	display: none !important;
}

.ck-bar select.select2-hidden-accessible {
	position: static !important;
	clip: auto !important;
	clip-path: none !important;
	width: 100% !important;
	height: 20px !important;
	margin: 0 !important;
	padding: 0 16px 0 0 !important;
	overflow: visible !important;
	border: 0 !important;
}
