/* Colva Kinara Header
   Matches the Kinsley child theme: accent #b87969, Jost + Playfair Display, square corners. */

.ck-header,
.ck-drawer {
	--ck-accent: #b87969;
	--ck-accent-dark: #a0634f;
	--ck-ink: #2b2a33;
	--ck-text: #48494f;
	--ck-muted: #7b7b84;
	--ck-cream: #f6f1ea;
	--ck-line: #ece6de;
}

/* ---------- One-click booking flow on the search results page ----------
   Photo card first, then a single Reserve box that goes straight to checkout.
   The per-room "Book" button and the cart step are hidden when a recommendation exists. */
.mphb_sc_search_results-wrapper {
	display: flex;
	flex-direction: column;
}

.mphb_sc_search_results-wrapper > * {
	order: 5;
}

.mphb_sc_search_results-wrapper > .mphb_sc_search_results-info {
	order: 0;
}

.mphb_sc_search_results-wrapper > .mphb-room-type {
	order: 1;
}

.mphb_sc_search_results-wrapper > .mphb-recommendation-title {
	order: 2;
	margin-top: 34px;
}

.mphb_sc_search_results-wrapper > .mphb-recommendation {
	order: 3;
}

.mphb_sc_search_results-wrapper:has(> .mphb-recommendation) > .mphb-reservation-cart,
.mphb_sc_search_results-wrapper:has(> .mphb-recommendation) .mphb-reserve-room-section {
	display: none !important;
}

/* Room card as a compact tile: small photo beside the key details. */
.mphb_sc_search_results-wrapper > .mphb-room-type {
	display: grid;
	grid-template-columns: 220px 1fr;
	column-gap: 24px;
	align-items: start;
	max-width: 760px;
	padding: 14px;
	border: 1px solid #ece6de;
	background: #fff;
}

.mphb_sc_search_results-wrapper > .mphb-room-type > * {
	grid-column: 2;
	margin-top: 0;
	margin-bottom: 8px;
}

.mphb_sc_search_results-wrapper > .mphb-room-type > .mphb-loop-room-thumbnail {
	position: relative !important;
	grid-column: 1;
	grid-row: 1 / span 6;
	width: 100% !important;
	height: 150px !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
}

.mphb_sc_search_results-wrapper .mphb-room-type .mphb-loop-room-thumbnail a {
	display: block;
	width: 100%;
	height: 100%;
}

.mphb_sc_search_results-wrapper .mphb-room-type .mphb-loop-room-thumbnail img {
	position: absolute !important;
	top: 0;
	left: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-height: none !important;
	margin: 0 !important;
	object-fit: cover;
}

.mphb_sc_search_results-wrapper .mphb-room-type ul.mphb-loop-room-type-attributes {
	margin-left: 0 !important;
	padding-left: 0 !important;
}

.mphb_sc_search_results-wrapper .mphb-room-type ul.mphb-loop-room-type-attributes li {
	margin-left: 0 !important;
	padding-left: 34px !important;
}

.mphb_sc_search_results-wrapper .mphb-room-type .mphb-room-type-title {
	font-size: 22px;
	line-height: 1.25;
}

.mphb_sc_search_results-wrapper .mphb-room-type .knsl-text-light {
	display: none;
}

.mphb_sc_search_results-wrapper .mphb-recommendation {
	max-width: 760px;
}

.mphb_sc_search_results-wrapper > .mphb-recommendation-title {
	margin-top: 22px;
	font-size: 18px;
}

@media (max-width: 600px) {
	.mphb_sc_search_results-wrapper > .mphb-room-type {
		grid-template-columns: 96px 1fr;
		column-gap: 14px;
		padding: 10px;
	}

	.mphb_sc_search_results-wrapper > .mphb-room-type > .mphb-loop-room-thumbnail {
		height: 96px !important;
	}

	.mphb_sc_search_results-wrapper .mphb-room-type .mphb-room-type-title {
		font-size: 18px;
	}
}

/* Checkout: per-guest names and children's ages (built by guests.js). */
.mphb_sc_checkout-form p:has(input[name*="guest_name"]).ck-guests-hidden {
	display: none;
}

.ck-guests {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 16px;
	margin: 6px 0 18px;
}

.ck-guests__title,
.ck-guests__note {
	grid-column: 1 / -1;
	margin: 0;
}

.ck-guests__title {
	font: 500 13px/1.2 Jost, sans-serif;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #2b2a33;
}

.ck-guests__note {
	font-size: 13px;
	color: #7b7b84;
}

.ck-guests label {
	display: block;
	margin: 0;
	font-size: 13px;
	color: #7b7b84;
}

.ck-guests input,
.ck-guests select {
	display: block;
	width: 100%;
	margin-top: 4px;
}

@media (max-width: 600px) {
	.ck-guests {
		grid-template-columns: 1fr;
	}
}

/* Footer: centre the Sales Team numbers on phones like the other footer blocks. */
@media (max-width: 767px) {
	footer.footer .elementor-icon-list-items {
		align-items: center;
	}

	footer.footer .elementor-icon-list-item,
	footer.footer .elementor-icon-list-item > a {
		justify-content: center;
		text-align: center;
	}
}

/* Hide the theme's own header + hamburger overlay while ours is active. */
body.ck-header-active .knsl-top-bar,
body.ck-header-active .onovo-menu-overlay,
body.ck-header-active .onovo-menu-overlay-after,
body.ck-header-active .onovo-menu-btn {
	display: none !important;
}

/* ---------- Bar ---------- */
.ck-header {
	--ck-h: 88px;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9990;
	color: #fff;
	font-family: Jost, sans-serif;
	border-bottom: 1px solid rgba(255, 255, 255, 0.32);
	transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body.admin-bar .ck-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .ck-header {
		top: 46px;
	}
}

/* Soft scrim so white text stays readable over bright photos (like the Taj header). */
.ck-header::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: calc(100% + 60px);
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0) 100%);
	pointer-events: none;
	transition: opacity 0.3s ease;
	z-index: -1;
}

.ck-header.is-scrolled,
.ck-header.is-solid {
	--ck-h: 70px;
	background: #fff;
	color: var(--ck-ink);
	border-bottom: 2px solid var(--ck-accent);
	box-shadow: 0 6px 24px rgba(30, 25, 20, 0.08);
}

.ck-header.is-scrolled::before,
.ck-header.is-solid::before {
	opacity: 0;
}

/* Pages without a hero image start with the solid bar and need room under it. */
body.ck-header-active.ck-needs-offset {
	padding-top: 70px;
}

.ck-header__inner {
	display: flex;
	align-items: center;
	gap: 36px;
	max-width: 1560px;
	height: var(--ck-h);
	margin: 0 auto;
	padding: 0 40px;
	transition: height 0.3s ease;
}

/* ---------- Logo ---------- */
.ck-logo {
	display: block;
	flex: 0 0 auto;
	line-height: 0;
}

.ck-logo img {
	display: block;
	width: auto;
	height: 52px;
	transition: height 0.3s ease;
}

.ck-logo__dark {
	display: none !important;
}

.ck-header.is-scrolled .ck-logo__light,
.ck-header.is-solid .ck-logo__light {
	display: none !important;
}

.ck-header.is-scrolled .ck-logo__dark,
.ck-header.is-solid .ck-logo__dark {
	display: block !important;
}

.ck-header.is-scrolled .ck-logo img,
.ck-header.is-solid .ck-logo img {
	height: 44px;
}

/* ---------- Primary nav ---------- */
.ck-nav {
	flex: 1 1 auto;
	min-width: 0;
}

.ck-nav__list {
	display: flex;
	align-items: center;
	height: var(--ck-h);
	margin: 0;
	padding: 0;
	list-style: none;
	transition: height 0.3s ease;
}

.ck-nav__item {
	position: relative;
	display: flex;
	align-items: center;
	height: 100%;
	margin: 0;
}

.ck-nav__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 100%;
	padding: 0 15px;
	border: 0;
	background: none;
	color: inherit;
	font: 400 14px/1 Jost, sans-serif;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: color 0.2s ease;
}

.ck-nav__link::after {
	content: "";
	position: absolute;
	left: 15px;
	right: 15px;
	bottom: calc(var(--ck-h) / 2 - 16px);
	height: 2px;
	background: var(--ck-accent);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.3s ease;
}

.ck-nav__item:hover > .ck-nav__link::after,
.ck-nav__item:focus-within > .ck-nav__link::after,
.ck-nav__item.is-current > .ck-nav__link::after,
.ck-nav__item.is-open > .ck-nav__link::after {
	transform: scaleX(1);
}

.ck-header.is-scrolled .ck-nav__item:hover > .ck-nav__link,
.ck-header.is-solid .ck-nav__item:hover > .ck-nav__link {
	color: var(--ck-accent-dark);
}

/* Parents with a dropdown: link + chevron sit together. */
.ck-nav__item.has-children > .ck-nav__link:not(.ck-nav__link--button) {
	padding-right: 4px;
}

.ck-nav__item.has-children > .ck-nav__link:not(.ck-nav__link--button)::after {
	right: 4px;
}

.ck-nav__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 0 12px 0 4px;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}

.ck-icon--chevron {
	display: block;
	width: 11px;
	height: 7px;
	transition: transform 0.25s ease;
}

.ck-nav__item:hover .ck-icon--chevron,
.ck-nav__item.is-open .ck-icon--chevron {
	transform: rotate(180deg);
}

/* ---------- Dropdown ---------- */
.ck-dropdown {
	position: absolute;
	top: 100%;
	left: -10px;
	min-width: 340px;
	padding: 10px;
	background: #fff;
	border-top: 3px solid var(--ck-accent);
	box-shadow: 0 24px 50px rgba(30, 25, 20, 0.17);
	color: var(--ck-text);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.ck-nav__item:hover > .ck-dropdown,
.ck-nav__item:focus-within > .ck-dropdown,
.ck-nav__item.is-open > .ck-dropdown {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.ck-dropdown ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ck-dropdown li {
	margin: 0;
}

.ck-dropdown a {
	display: block;
	padding: 14px 18px;
	border-left: 2px solid transparent;
	color: var(--ck-ink);
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ck-dropdown a:hover,
.ck-dropdown a:focus-visible {
	background: var(--ck-cream);
	border-left-color: var(--ck-accent);
}

.ck-dropdown__title {
	display: block;
	font: 500 17px/1.3 "Playfair Display", serif;
	letter-spacing: 0.01em;
}

.ck-dropdown a:hover .ck-dropdown__title,
.ck-dropdown a:focus-visible .ck-dropdown__title {
	color: var(--ck-accent-dark);
}

.ck-dropdown__desc {
	display: block;
	margin-top: 4px;
	font: 400 13.5px/1.45 Jost, sans-serif;
	color: var(--ck-muted);
}

/* ---------- Right side ---------- */
.ck-actions {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-left: auto;
}

.ck-phone {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: inherit;
	font: 400 14px/1 Jost, sans-serif;
	letter-spacing: 0.08em;
	text-decoration: none;
	white-space: nowrap;
}

.ck-phone:hover {
	color: inherit;
	opacity: 0.8;
}

.ck-icon--phone {
	display: block;
	flex: 0 0 auto;
}

.ck-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	padding: 0 30px;
	background: var(--ck-accent);
	color: #fff;
	font: 500 14px/1 Jost, sans-serif;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.ck-cta:hover,
.ck-cta:focus-visible {
	background: var(--ck-accent-dark);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(160, 99, 79, 0.35);
}

.ck-burger {
	display: none;
	position: relative;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.ck-burger span {
	position: absolute;
	left: 10px;
	right: 10px;
	height: 2px;
	background: currentColor;
}

.ck-burger span:nth-child(1) {
	top: 15px;
}

.ck-burger span:nth-child(2) {
	top: 21px;
}

.ck-burger span:nth-child(3) {
	top: 27px;
}

/* ---------- Drawer (mobile / tablet) ---------- */
.ck-drawer {
	position: fixed;
	inset: 0;
	z-index: 9995;
	visibility: hidden;
	pointer-events: none;
	font-family: Jost, sans-serif;
}

.ck-drawer.is-open {
	visibility: visible;
	pointer-events: auto;
}

.ck-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 16, 12, 0.55);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.ck-drawer.is-open .ck-drawer__backdrop {
	opacity: 1;
}

.ck-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: min(390px, 90vw);
	padding: 22px 28px 30px;
	overflow-y: auto;
	background: #fff;
	color: var(--ck-ink);
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ck-drawer.is-open .ck-drawer__panel {
	transform: none;
}

.ck-drawer__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
}

.ck-drawer__logo img {
	display: block;
	width: auto;
	height: 44px;
}

.ck-drawer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-right: -10px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ck-ink);
	cursor: pointer;
}

.ck-drawer__list,
.ck-drawer__sub {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ck-drawer__item {
	border-bottom: 1px solid var(--ck-line);
}

.ck-drawer__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.ck-drawer__link {
	flex: 1 1 auto;
	padding: 18px 0;
	border: 0;
	background: none;
	color: var(--ck-ink);
	font: 500 21px/1.2 "Playfair Display", serif;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.ck-drawer__link--button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.ck-drawer__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ck-ink);
	cursor: pointer;
}

.ck-drawer__link--button.ck-drawer__toggle {
	width: 100%;
	padding: 18px 0;
	height: auto;
	justify-content: space-between;
}

.ck-drawer__toggle .ck-icon--chevron {
	transition: transform 0.25s ease;
}

.ck-drawer__item.is-open .ck-drawer__toggle .ck-icon--chevron {
	transform: rotate(180deg);
}

.ck-drawer__sub {
	display: none;
	padding: 0 0 14px 4px;
}

.ck-drawer__item.is-open .ck-drawer__sub {
	display: block;
}

.ck-drawer__sub a {
	display: block;
	padding: 10px 0;
	color: var(--ck-text);
	font: 400 16px/1.3 Jost, sans-serif;
	text-decoration: none;
}

.ck-drawer__sub a:hover {
	color: var(--ck-accent-dark);
}

.ck-drawer__foot {
	margin-top: auto;
	padding-top: 28px;
}

.ck-cta--block {
	display: flex;
	width: 100%;
}

.ck-drawer__phone {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	margin-top: 18px;
	color: var(--ck-text);
	font: 400 15px/1 Jost, sans-serif;
	letter-spacing: 0.06em;
	text-decoration: none;
}

body.ck-lock {
	overflow: hidden;
}

/* ---------- Responsive ---------- */
@media (max-width: 1279px) {
	.ck-phone span {
		display: none;
	}

	.ck-phone {
		justify-content: center;
		width: 44px;
		height: 44px;
		border: 1px solid currentColor;
		border-radius: 50%;
		opacity: 0.95;
	}
}

@media (max-width: 1100px) {
	.ck-header {
		--ck-h: 72px;
	}

	.ck-header.is-scrolled,
	.ck-header.is-solid {
		--ck-h: 64px;
	}

	body.ck-header-active.ck-needs-offset {
		padding-top: 64px;
	}

	.ck-header__inner {
		padding: 0 20px;
		gap: 16px;
	}

	.ck-nav {
		display: none;
	}

	.ck-burger {
		display: block;
	}

	.ck-logo img {
		height: 44px;
	}

	.ck-header.is-scrolled .ck-logo img,
	.ck-header.is-solid .ck-logo img {
		height: 40px;
	}
}

@media (max-width: 560px) {
	.ck-phone {
		display: none;
	}

	.ck-cta {
		height: 42px;
		padding: 0 18px;
		font-size: 13px;
		letter-spacing: 0.12em;
	}

	.ck-actions {
		gap: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ck-header,
	.ck-dropdown,
	.ck-drawer__panel,
	.ck-drawer__backdrop,
	.ck-nav__link::after,
	.ck-cta {
		transition: none;
	}
}

/* Search results: occupancy is per room ("Max occupancy: 2 adults, 2 children per room"). */
.mphb-recommendation-item-guests .mphb-recommendation-item-children::after,
.mphb-recommendation-item-guests .mphb-recommendation-item-adults:last-child::after {
	content: " per room";
}
