/* ==========================================================
   Albatross Point - booking pages
   Builds on /style.css (palette, type, .cta, header, footer)
   ========================================================== */

/* Inner pages: header sits in the flow instead of over a hero */
.page-inner header {
	position: relative;
	background: var(--cream);
	border-bottom: 1px solid var(--line);
}

.bk {
	padding: 60px 5% 90px;
	max-width: 1320px;
	margin: 0 auto;
}
.bk-intro { max-width: 640px; margin-bottom: 44px; }
.bk-intro h1 { margin: 14px 0 16px; font-size: 52px; font-weight: 400; line-height: 1; }
.bk-intro p:not(.eyebrow) { font-size: 17px; line-height: 1.6; }

.bk-label,
.bk-rows dt,
.bk-status,
.cal-title,
.cal-dow,
.cal-legend,
.bk-link,
.stepper small {
	font: 10px Arial, sans-serif;
	letter-spacing: 2px;
	text-transform: uppercase;
}
.bk-label em { font-style: normal; letter-spacing: 1px; text-transform: none; color: #625e54; }

.bk-notice {
	margin-bottom: 30px;
	padding: 16px 20px;
	border: 1px solid var(--line);
	background: var(--paper);
	font-size: 15px;
}

.bk-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 48px;
	align-items: start;
}

.bk-step {
	padding: 34px 0 40px;
	border-top: 1px solid var(--line);
}
.bk-step-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 26px; }
.bk-num { font: 10px Arial, sans-serif; letter-spacing: 3px; color: #625e54; }
.bk-step h2 { margin: 0; font-size: 30px; font-weight: 400; }
.bk-hint { min-height: 1.4em; margin: 14px 0 0; font-size: 14px; color: #5d5a51; }
.bk-hint.is-error { color: #8a1f11; }

/* ---------- Picked dates ---------- */
.bk-picked {
	display: grid;
	grid-template-columns: 1fr 1fr .6fr;
	border: 1px solid var(--line);
	margin-bottom: 22px;
	background: var(--paper);
}
.bk-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px 20px;
	border: 0;
	border-right: 1px solid var(--line);
	background: transparent;
	color: inherit;
	text-align: left;
	font: inherit;
	cursor: pointer;
}
.bk-field:last-child { border-right: 0; }
.bk-field-static { cursor: default; }
.bk-field.is-active { box-shadow: inset 0 -2px 0 var(--olive); }
.bk-value { font-size: 18px; }

/* ---------- Calendar ---------- */
.cal { border: 1px solid var(--line); background: var(--paper); padding: 22px 24px 18px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cal-instruction { margin: 0; font-size: 15px; font-style: italic; text-align: center; }
.cal-arrow {
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	background: transparent;
	color: var(--ink);
	font-size: 18px;
	cursor: pointer;
}
.cal-arrow:hover:not(:disabled) { border-color: var(--olive); }
.cal-arrow:disabled { border-color: #68645a; background: #e8e4da; color: #5e5a50; cursor: not-allowed; }
.cal-keyboard-help { margin: 0 0 14px; color: #5e5a50; font-size: 13px; line-height: 1.5; }

.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; min-height: 330px; }
.cal-months[aria-busy="true"] { opacity: 1; }
.cal-title { margin: 0 0 14px; text-align: center; letter-spacing: 3px; font: 10px Arial, sans-serif; text-transform: uppercase; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; }
.cal-dow { padding: 6px 0; text-align: center; color: #625e54; }

.cal-day {
	position: relative;
	aspect-ratio: 1 / 1;
	min-height: 40px;
	border: 0;
	background: transparent;
	color: var(--ink);
	font: 15px Georgia, "Times New Roman", serif;
	cursor: pointer;
}
.cal-day:disabled { cursor: default; }
.cal-day.is-blank { visibility: hidden; }
.cal-day.is-available:not(:disabled):hover { outline: 1px solid var(--olive); outline-offset: -1px; }
.cal-day.is-unavailable,
.cal-day.is-past { color: #625e54; text-decoration: line-through; text-decoration-color: #625e54; }
.cal-day.is-past { text-decoration: none; }
.cal-day.is-checkout-only { color: var(--ink); text-decoration: none; }
.cal-day.is-today::after {
	position: absolute;
	left: 50%;
	bottom: 6px;
	width: 4px;
	height: 4px;
	margin-left: -2px;
	border-radius: 50%;
	background: var(--olive);
	content: "";
}
.cal-day.is-inrange { background: #e4e1d4; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.cal-day.is-start,
.cal-day.is-end { background: var(--olive); color: #fff; text-decoration: none; font-weight: 700; box-shadow: inset 0 0 0 2px #fff; }
.cal-day.is-start.is-today::after,
.cal-day.is-end.is-today::after { background: #fff; }
.cal-day:focus-visible { outline: 3px solid #20231e; outline-offset: 1px; box-shadow: 0 0 0 5px var(--cream); z-index: 1; }

.cal-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; list-style: none; }
.cal-legend li { display: flex; align-items: center; gap: 8px; }
.cal-legend i { display: inline-block; width: 14px; height: 14px; border: 1px solid var(--line); }
.lg-avail { background: var(--paper); }
.lg-unavail { background: #e9e6dc; }
.lg-selected { background: var(--olive); border-color: var(--olive) !important; }
.bk-link { min-height: 44px; padding: 8px 10px; border: 0; background: none; color: var(--ink); text-decoration: underline; cursor: pointer; }

/* ---------- Guests ---------- */
.bk-guests { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); background: var(--paper); }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; }
.stepper + .stepper { border-left: 1px solid var(--line); }
.stepper small { display: block; margin-top: 6px; letter-spacing: 1px; text-transform: none; color: #625e54; }
.stepper-ctl { display: flex; align-items: center; gap: 4px; }
.stepper-ctl button {
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	background: transparent;
	color: var(--ink);
	font-size: 20px;
	cursor: pointer;
}
.stepper-ctl button:hover:not(:disabled) { border-color: var(--olive); }
.stepper-ctl button:disabled { border-color: #68645a; background: #e8e4da; color: #5e5a50; cursor: not-allowed; }
.stepper-ctl output { min-width: 40px; text-align: center; font-size: 22px; }

/* ---------- Guest details form ---------- */
.bk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.bk-span { grid-column: 1 / -1; }
.bk-input { display: flex; flex-direction: column; gap: 9px; }
.bk-input input,
.bk-input textarea {
	width: 100%;
	padding: 14px 14px;
	border: 1px solid var(--line);
	border-radius: 0;
	background: var(--paper);
	color: var(--ink);
	font: 16px Georgia, "Times New Roman", serif;
}
.bk-input textarea { resize: vertical; }
.bk-input input:focus,
.bk-input textarea:focus { border-color: var(--olive); }
.bk-input input:focus-visible,
.bk-input textarea:focus-visible { outline: 3px solid #20231e; outline-offset: 2px; }
.bk-input.is-invalid input,
.bk-input.is-invalid textarea { border-color: #8a1f11; }

.bk-consents { display: grid; gap: 12px; margin: 26px 0 0; padding: 22px 0 0; border: 0; border-top: 1px solid var(--line); }
.bk-consents label { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.4; }
.bk-consents input { width: 20px; height: 20px; margin: 0; flex: 0 0 auto; accent-color: var(--olive); }
.bk-consents a,
.bk-card a:not(.cta) { color: var(--olive); }

.bk-error { margin: 18px 0 0; padding: 12px 16px; border-left: 2px solid #8a1f11; background: #f3e9e3; font-size: 15px; }
.bk-pay { margin-top: 24px; border: 0; cursor: pointer; }
.bk-secure { margin: 14px 0 0; font: 11px Arial, sans-serif; letter-spacing: .5px; color: #625e54; }

.cta[disabled],
.cta.is-busy { opacity: .45; cursor: default; }
button.cta { border: 0; cursor: pointer; }
.cta.outline-dark { border: 1px solid var(--olive); background: transparent; color: var(--olive); }

/* ---------- Summary ---------- */
.bk-summary {
	position: sticky;
	top: 24px;
	padding: 30px 28px;
	border: 1px solid var(--line);
	background: var(--paper);
}
.bk-summary h3 { margin: 10px 0 20px; font-size: 20px; font-weight: 400; letter-spacing: 4px; }
.bk-rows { margin: 0; padding: 0; }
.bk-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.bk-rows dt { color: #5d5a51; padding-top: 3px; }
.bk-rows dd { margin: 0; text-align: right; font-size: 15px; }
.bk-prices { margin-top: 18px; }
.bk-total { padding: 22px 0 4px; }
.bk-total strong { display: block; margin-top: 8px; font-size: 38px; font-weight: 400; }
.bk-due { margin: 8px 0 0; font-size: 14px; color: #5d5a51; }
.bk-status { min-height: 1.4em; margin: 16px 0; line-height: 1.6; letter-spacing: 1px; text-transform: none; font-size: 12px; color: #5d5a51; }
.bk-status.is-error { color: #8a1f11; }
.bk-continue { width: 100%; text-align: center; }

.bk-loading::after {
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-left: 10px;
	border: 1px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	content: "";
	vertical-align: -1px;
	animation: bk-spin .8s linear infinite;
}
@keyframes bk-spin { to { transform: rotate(360deg); } }

.bk-mobilebar { display: none; }

/* ---------- Confirmation + policies ---------- */
.bk-confirm { max-width: 760px; }
.bk-card { padding: 44px 46px; border: 1px solid var(--line); background: var(--paper); }
.bk-card + .bk-card { margin-top: 26px; }
.bk-card h1 { margin: 16px 0 14px; font-size: 44px; font-weight: 400; line-height: 1.05; }
.bk-card h2 { margin: 10px 0 14px; font-size: 30px; font-weight: 400; }
.bk-card p:not(.eyebrow),
.bk-card li { font-size: 16px; line-height: 1.65; }
.bk-card ul { padding-left: 20px; }
.cf-details { margin: 26px 0 8px; }
.cf-wait { display: flex; align-items: center; gap: 14px; }
.cf-spinner {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	border: 1px solid var(--olive);
	border-right-color: transparent;
	border-radius: 50%;
	animation: bk-spin .9s linear infinite;
}
.cf-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.bk-policies { max-width: 900px; }
.bk-center { margin-top: 40px; text-align: center; }

@media (prefers-reduced-motion: reduce) {
	.bk-loading::after, .cf-spinner { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.bk-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
	.cal-months { gap: 26px; }
}

@media (max-width: 900px) {
	.bk { padding: 40px 6% 120px; }
	.bk-intro h1 { font-size: 42px; }
	.bk-layout { grid-template-columns: 1fr; }
	.bk-summary { position: static; }
	.cal-months { grid-template-columns: 1fr; min-height: 0; }
	.cal { padding: 18px 14px 14px; }
	.cal-day { min-height: 44px; font-size: 16px; }

	.bk-mobilebar:not([hidden]) {
		position: fixed;
		z-index: 20;
		left: 0;
		right: 0;
		bottom: 0;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		padding: 12px 6% calc(12px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--line);
		background: var(--cream);
	}
	.bk-mobilebar strong { display: block; margin-top: 4px; font-size: 22px; font-weight: 400; }
	.bk-mobilebar .cta { padding: 15px 20px; }
}

@media (max-width: 560px) {
	.bk-intro h1 { font-size: 36px; }
	.bk-step h2 { font-size: 26px; }
	.bk-picked { grid-template-columns: 1fr 1fr; }
	.bk-field { padding: 14px; }
	.bk-field-static { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; border-top: 1px solid var(--line); border-right: 0; }
	.bk-value { font-size: 16px; }
	.bk-guests { grid-template-columns: 1fr; }
	.stepper + .stepper { border-left: 0; border-top: 1px solid var(--line); }
	.bk-grid { grid-template-columns: 1fr; }
	.cal-foot { flex-direction: column; align-items: flex-start; }
	.bk-summary { padding: 24px 20px; }
	.bk-card { padding: 30px 22px; }
	.bk-card h1 { font-size: 34px; }
	.cf-actions .cta { width: 100%; text-align: center; }
}
