/*
 * Booking page (/book/). Loaded only on that page.
 * Colours follow the site's plum hue (309) with the pink of the house as a soft accent.
 */

/* ---- Wide page frame: one full-width column instead of the theme's two ---- */
.cr-wide .site-content .wrap {
	max-width: 1180px;
}

.cr-wide .entry-header {
	margin-bottom: 0.75em;
}

body.cr-wide .entry-header .entry-title {
	color: hsl(309, 50%, 20%);
	font-size: 2rem;
	font-weight: 300;
	letter-spacing: 0;
	text-transform: none;
}

.bk {
	--ink: hsl(309, 50%, 18%);
	--muted: hsl(309, 12%, 42%);
	--accent: hsl(309, 50%, 38%);
	--accent-dark: hsl(309, 50%, 28%);
	--rose: #e6a39b;
	--rose-soft: #fbeeec;
	--line: hsl(309, 20%, 88%);
	--surface: #fff;
	--soft: hsl(309, 30%, 97%);
	--radius: 14px;
	color: var(--ink);
	font-size: 1rem;
	line-height: 1.55;
}

.bk *,
.bk *::before,
.bk *::after {
	box-sizing: border-box;
}

.bk p {
	margin: 0 0 0.9em;
}

.bk a,
.bk a:hover,
.bk a:focus {
	box-shadow: none !important;
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.bk-lead {
	font-size: 1.2rem;
	max-width: 46em;
}

.bk-perks {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 0 0 2.2em;
	padding: 0;
}

.bk-perks li {
	background: var(--rose-soft);
	border-radius: 999px;
	font-size: 0.92rem;
	margin: 0;
	padding: 7px 16px;
}

/* ---- Apartment card ---- */
.bk-apt {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 1px 2px rgba(60, 20, 55, 0.04), 0 8px 24px rgba(60, 20, 55, 0.06);
	margin: 0 0 2.2em;
	overflow: hidden;
	scroll-margin-top: 20px;
}

.bk-apt-top {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}

.bk-info {
	padding: 28px 30px;
}

.bk-floor {
	color: var(--accent);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	margin-bottom: 0.4em !important;
	text-transform: uppercase;
}

.bk-name {
	color: var(--ink);
	font-size: 1.45rem;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.25;
	margin: 0 0 0.35em;
	padding: 0;
	text-transform: none;
}

.bk-facts {
	color: var(--muted);
	font-size: 0.95rem;
}

.bk-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0 0 1.3em;
	padding: 0;
}

.bk-tags li {
	border: 1px solid var(--line);
	border-radius: 6px;
	color: var(--muted);
	font-size: 0.82rem;
	margin: 0;
	padding: 3px 9px;
}

.bk-soon {
	color: var(--muted);
	font-size: 0.92rem;
}

/* ---- Buttons ---- */
.bk .bk-btn,
.bk button.bk-btn {
	background: var(--accent);
	border: 1px solid var(--accent);
	border-radius: 10px;
	box-shadow: none;
	color: #fff;
	cursor: pointer;
	display: inline-block;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.2;
	margin: 0 6px 6px 0;
	padding: 12px 20px;
	text-decoration: none;
	text-transform: none;
	transition: background 0.15s, border-color 0.15s;
}

.bk .bk-btn:hover,
.bk .bk-btn:focus-visible {
	background: var(--accent-dark);
	border-color: var(--accent-dark);
	color: #fff;
}

.bk .bk-btn-ghost {
	background: transparent;
	color: var(--accent);
}

.bk .bk-btn-ghost:hover,
.bk .bk-btn-ghost:focus-visible {
	background: var(--soft);
	border-color: var(--accent);
	color: var(--accent-dark);
}

.bk .bk-btn[disabled] {
	background: var(--line);
	border-color: var(--line);
	color: var(--muted);
	cursor: not-allowed;
}

.bk .bk-btn-wide {
	margin: 0;
	text-align: center;
	width: 100%;
}

/* ---- Photo gallery ---- */
.bk-gallery {
	background: var(--soft);
	min-height: 100%;
	position: relative;
}

.bk-slides {
	display: flex;
	height: 100%;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.bk-slides::-webkit-scrollbar {
	display: none;
}

.bk-slides img {
	aspect-ratio: 3 / 2;
	display: block;
	flex: 0 0 100%;
	height: 100%;
	min-height: 300px;
	object-fit: cover;
	scroll-snap-align: start;
	width: 100%;
}

.bk .bk-nav {
	align-items: center;
	background: rgba(255, 255, 255, 0.92);
	border: 0;
	border-radius: 50%;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
	color: var(--ink);
	cursor: pointer;
	display: flex;
	font-size: 20px;
	height: 38px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 38px;
}

.bk .bk-nav:hover {
	background: #fff;
	color: var(--accent);
}

.bk-nav-prev { left: 12px; }
.bk-nav-next { right: 12px; }

.bk-count {
	background: rgba(30, 10, 28, 0.7);
	border-radius: 999px;
	bottom: 12px;
	color: #fff;
	font-size: 0.78rem;
	padding: 3px 10px;
	position: absolute;
	right: 12px;
}

/* ---- Booking widget ---- */
.bk-widget {
	background: var(--soft);
	border-top: 1px solid var(--line);
	padding: 28px 30px 30px;
	scroll-margin-top: 16px;
}

.bk-widget-title {
	font-size: 1.1rem;
	font-weight: 600;
	margin: 0 0 0.2em;
}

.bk-hint {
	color: var(--muted);
	font-size: 0.92rem;
	min-height: 1.5em;
}

.bk-layout {
	align-items: start;
	display: grid;
	gap: 28px;
	grid-template-columns: minmax(0, 1fr) 340px;
}

.bk-cal-head {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin-bottom: 8px;
}

.bk .bk-cal-btn {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 8px;
	box-shadow: none;
	color: var(--ink);
	cursor: pointer;
	font-size: 16px;
	height: 36px;
	line-height: 1;
	padding: 0;
	width: 36px;
}

.bk .bk-cal-btn:hover:not([disabled]) {
	border-color: var(--accent);
	color: var(--accent);
}

.bk .bk-cal-btn[disabled] {
	cursor: default;
	opacity: 0.35;
}

.bk-months {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bk-month-name {
	font-weight: 600;
	margin-bottom: 8px;
	text-align: center;
}

.bk-grid {
	display: grid;
	gap: 3px;
	grid-template-columns: repeat(7, minmax(0, 1fr));
}

.bk-dow {
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 600;
	padding-bottom: 4px;
	text-align: center;
	text-transform: uppercase;
}

.bk .bk-day {
	align-items: center;
	aspect-ratio: 1 / 1;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 8px;
	box-shadow: none;
	color: var(--ink);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	justify-content: center;
	letter-spacing: 0;
	line-height: 1.1;
	min-height: 44px;
	padding: 2px;
	text-transform: none;
}

.bk-day small {
	color: var(--muted);
	font-size: 0.68rem;
	font-weight: 400;
	margin-top: 2px;
}

.bk .bk-day:hover:not([disabled]) {
	border-color: var(--accent);
}

.bk .bk-day[disabled] {
	background: transparent;
	border-color: transparent;
	color: hsl(309, 10%, 72%);
	cursor: default;
	font-weight: 400;
}

.bk .bk-day.is-taken {
	text-decoration: line-through;
}

/* a booked night that can still be the check-out day of the stay being picked */
.bk .bk-day.is-checkout-only {
	background: var(--surface);
	border-color: var(--line);
	border-style: dashed;
	color: var(--ink);
}

.bk .bk-day.is-range {
	background: var(--rose-soft);
	border-color: var(--rose-soft);
}

.bk .bk-day.is-start,
.bk .bk-day.is-end {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.bk-day.is-start small,
.bk-day.is-end small {
	color: rgba(255, 255, 255, 0.85);
}

.bk-pad {
	visibility: hidden;
}

.bk-legend {
	color: var(--muted);
	display: flex;
	flex-wrap: wrap;
	font-size: 0.8rem;
	gap: 6px 18px;
	margin-top: 12px;
}

/* ---- Summary card ---- */
.bk-summary {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 20px;
}

.bk-dates {
	border: 1px solid var(--line);
	border-radius: 10px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin-bottom: 14px;
}

.bk-dates div {
	padding: 9px 12px;
}

.bk-dates div + div {
	border-left: 1px solid var(--line);
}

.bk-dates span,
.bk-field span {
	color: var(--muted);
	display: block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.bk-dates b {
	font-weight: 600;
}

.bk-guests {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin-bottom: 8px;
}

.bk-guests small {
	color: var(--muted);
	display: block;
	font-size: 0.78rem;
}

.bk-stepper {
	align-items: center;
	display: flex;
	gap: 10px;
}

.bk .bk-stepper button {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 50%;
	box-shadow: none;
	color: var(--ink);
	cursor: pointer;
	font-size: 18px;
	height: 32px;
	line-height: 1;
	padding: 0;
	width: 32px;
}

.bk .bk-stepper button:hover:not([disabled]) {
	border-color: var(--accent);
	color: var(--accent);
}

.bk .bk-stepper button[disabled] {
	cursor: default;
	opacity: 0.35;
}

.bk-stepper output {
	font-weight: 600;
	min-width: 1.2em;
	text-align: center;
}

.bk-price {
	border-top: 1px solid var(--line);
	margin: 14px 0;
	padding-top: 12px;
}

.bk-row {
	display: flex;
	font-size: 0.95rem;
	justify-content: space-between;
	padding: 3px 0;
}

.bk-row.is-discount {
	color: #1c7a4b;
}

.bk-row.is-total {
	border-top: 1px solid var(--line);
	font-size: 1.1rem;
	font-weight: 700;
	margin-top: 8px;
	padding-top: 10px;
}

.bk-note {
	color: var(--muted);
	font-size: 0.8rem;
	margin: 10px 0 0 !important;
}

.bk-error {
	background: #fdecea;
	border-radius: 8px;
	color: #8a1f17;
	font-size: 0.9rem;
	margin: 10px 0 !important;
	padding: 9px 12px;
}

/* ---- Guest form ---- */
.bk-form {
	border-top: 1px solid var(--line);
	margin-top: 16px;
	padding-top: 16px;
}

.bk-field {
	display: block;
	margin-bottom: 10px;
}

.bk-two {
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr 1fr;
}

.bk .bk-field input,
.bk .bk-field textarea {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 8px;
	color: var(--ink);
	display: block;
	font-family: inherit;
	font-size: 1rem;
	margin-top: 3px;
	padding: 9px 11px;
	width: 100%;
}

.bk .bk-field input:focus,
.bk .bk-field textarea:focus {
	border-color: var(--accent);
	outline: 2px solid hsl(309, 50%, 88%);
}

/* the honeypot: present for bots, never seen or reached by people */
.bk-hp {
	height: 1px;
	left: -9999px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.bk-done {
	background: #edf7f1;
	border-radius: 12px;
	padding: 22px;
}

.bk-done h3 {
	color: #145c38;
	font-size: 1.15rem;
	letter-spacing: 0;
	margin: 0 0 0.4em;
	padding: 0;
	text-transform: none;
}

.bk-foot {
	color: var(--muted);
	font-size: 0.95rem;
}

/* ---- Smaller screens ---- */
@media (max-width: 960px) {
	.bk-layout {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 820px) {
	.bk-apt-top {
		grid-template-columns: minmax(0, 1fr);
	}

	.bk-slides img {
		height: auto;
		min-height: 0;
	}

	.bk-info,
	.bk-widget {
		padding: 22px 18px;
	}

	.bk-months {
		grid-template-columns: minmax(0, 1fr);
	}

	.bk-months .bk-month + .bk-month {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bk-slides {
		scroll-behavior: auto;
	}
}
