/* Jerina Mansion – direct booking */

:root {
	--jm-hb-main: #191614;
	--jm-hb-frame: #f4ece2;
	--jm-hb-accent: #ffac66;
	--jm-hb-muted: #6b6258;
	--jm-hb-line: #ddd3c6;
	--jm-hb-error: #b3261e;
	--jm-hb-serif: 'Cormorant', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
	--jm-hb-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- Base and theme isolation ---------- */

.jm-booking,
.jm-booking * {
	box-sizing: border-box;
}

.jm-booking {
	font-family: var(--jm-hb-sans);
	color: var(--jm-hb-main);
	font-size: 15px;
	line-height: 1.5;
	text-align: left;
}

.jm-booking button,
.jm-booking input,
.jm-booking select,
.jm-booking textarea {
	font-family: var(--jm-hb-sans);
	text-transform: none;
	letter-spacing: normal;
	text-shadow: none;
	box-shadow: none;
	margin: 0;
	min-width: 0;
}

.jm-booking p {
	margin: 0;
	padding: 0;
}

/* ---------- Status, spinner ---------- */

.jm-booking .jm-app__status {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 48px 12px;
	color: var(--jm-hb-muted);
	text-align: center;
}

.jm-booking .jm-app__status.is-error p + p {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 12px 18px;
}

.jm-spinner {
	display: inline-block;
	width: 30px;
	height: 30px;
	border: 3px solid var(--jm-hb-frame);
	border-top-color: var(--jm-hb-main);
	border-radius: 50%;
	animation: jm-hb-spin 0.8s linear infinite;
	vertical-align: middle;
}

.jm-spinner--small {
	width: 16px;
	height: 16px;
	border-width: 2px;
	border-color: rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	margin-right: 10px;
}

/* ---------- Buttons and links ---------- */

.jm-booking .jm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	padding: 0 28px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
	white-space: nowrap;
}

.jm-booking .jm-btn--primary {
	background: var(--jm-hb-main);
	color: #fff;
}

.jm-booking .jm-btn--primary:hover:not([disabled]) {
	background: #000;
}

.jm-booking .jm-btn--ghost {
	background: #fff;
	color: var(--jm-hb-main);
	border-color: var(--jm-hb-line);
}

.jm-booking .jm-btn--ghost:hover {
	background: var(--jm-hb-frame);
}

/* Salient styles every button[type=submit] with the accent colour and forces uppercase with !important
   (body[data-form-submit="regular"] button[type="submit"]), so these selectors must be more specific. */
.jm-booking button.jm-btn.jm-btn[type] {
	text-transform: none !important;
	letter-spacing: normal !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	transform: none !important;
}

.jm-booking button.jm-btn.jm-btn--primary,
.jm-booking button.jm-btn.jm-btn--primary:focus {
	background-color: var(--jm-hb-main) !important;
	color: #fff !important;
}

.jm-booking button.jm-btn.jm-btn--primary:hover:not([disabled]) {
	background-color: #000 !important;
}

.jm-booking button.jm-btn.jm-btn--ghost,
.jm-booking button.jm-btn.jm-btn--ghost:focus {
	background-color: #fff !important;
	color: var(--jm-hb-main) !important;
}

.jm-booking button.jm-btn.jm-btn--ghost:hover {
	background-color: var(--jm-hb-frame) !important;
}

.jm-booking .jm-btn[disabled] {
	opacity: 0.35;
	cursor: not-allowed;
}

.jm-booking .jm-btn[aria-busy="true"] {
	opacity: 0.85;
	cursor: progress;
}

.jm-booking .jm-btn:focus-visible,
.jm-booking .jm-icon-btn:focus-visible,
.jm-booking .jm-link:focus-visible {
	outline: 2px solid var(--jm-hb-main);
	outline-offset: 3px;
}

.jm-booking .jm-link {
	display: inline;
	padding: 0;
	border: 0;
	background: none;
	color: var(--jm-hb-main);
	font-size: 14px;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.jm-booking .jm-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid var(--jm-hb-line);
	border-radius: 50%;
	background: #fff;
	color: var(--jm-hb-main);
	cursor: pointer;
}

.jm-booking .jm-icon-btn:hover:not([disabled]) {
	background: var(--jm-hb-frame);
}

.jm-booking .jm-icon-btn[disabled] {
	opacity: 0.3;
	cursor: default;
}

.jm-booking .jm-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 20px;
}

/* ---------- Calendar ---------- */

.jm-booking .jm-cal {
	position: relative;
}

.jm-booking .jm-cal__nav {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	justify-content: space-between;
	pointer-events: none;
}

.jm-booking .jm-cal__nav .jm-icon-btn {
	pointer-events: auto;
}

.jm-booking .jm-cal__months {
	display: grid;
	grid-template-columns: 1fr;
	gap: 36px;
}

.jm-booking .jm-cal--2 .jm-cal__months {
	grid-template-columns: 1fr 1fr;
}

.jm-booking .jm-month__title {
	height: 38px;
	margin-bottom: 8px;
	font-size: 16px;
	font-weight: 600;
	line-height: 38px;
	text-align: center;
}

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

.jm-booking .jm-weekday {
	padding: 4px 0 8px;
	color: var(--jm-hb-muted);
	font-size: 12px;
	font-weight: 500;
	text-align: center;
	text-transform: capitalize;
}

.jm-booking .jm-day {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	max-height: 48px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--jm-hb-main);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.jm-booking .jm-day.is-empty {
	visibility: hidden;
}

.jm-booking .jm-day.is-available:hover {
	background: var(--jm-hb-frame);
	border-radius: 50%;
}

.jm-booking .jm-day.is-unavailable {
	color: #b8aea2;
	text-decoration: line-through;
	cursor: default;
}

.jm-booking .jm-day.is-loading {
	color: transparent;
	cursor: default;
	animation: jm-hb-pulse-bg 1.2s ease-in-out infinite alternate;
}

.jm-booking .jm-day.is-range {
	background: var(--jm-hb-frame);
	border-radius: 0;
	text-decoration: none;
}

.jm-booking .jm-day.is-start,
.jm-booking .jm-day.is-end,
.jm-booking .jm-day.is-start:hover,
.jm-booking .jm-day.is-end:hover {
	background: var(--jm-hb-main);
	color: #fff;
	border-radius: 50%;
	text-decoration: none;
}

.jm-booking .jm-day.is-hover-end {
	box-shadow: inset 0 0 0 1.5px var(--jm-hb-main);
	border-radius: 50%;
}

.jm-booking .jm-day:focus-visible {
	outline: 2px solid var(--jm-hb-accent);
	outline-offset: -2px;
	border-radius: 50%;
}

.jm-booking .jm-cal__summary {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: baseline;
	gap: 6px 20px;
	min-height: 26px;
	margin-top: 18px;
	font-size: 15px;
	text-align: center;
}

.jm-booking .jm-sum {
	font-weight: 600;
}

.jm-booking .jm-sum__label {
	margin-right: 4px;
	color: var(--jm-hb-muted);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.jm-booking .jm-sum--total small,
.jm-booking .jm-stay__total small {
	display: block;
	color: var(--jm-hb-muted);
	font-size: 12px;
	font-weight: 400;
}

.jm-booking .jm-hint {
	color: var(--jm-hb-muted);
}

.jm-booking .jm-hint--minor {
	width: 100%;
	font-size: 13px;
}

.jm-booking .jm-notice {
	margin: 16px 0 0;
	padding: 12px 16px;
	border-radius: 12px;
	background: #fcebea;
	color: #7a1d15;
	font-size: 14px;
	text-align: center;
}

.jm-booking .jm-notice p + p {
	margin-top: 6px;
}

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

.jm-booking .jm-stay {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 8px 16px;
	padding: 14px 18px;
	border-radius: 14px;
	background: var(--jm-hb-frame);
	font-size: 14px;
	font-weight: 600;
}

.jm-booking .jm-stay__dates {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
}

.jm-booking .jm-stay__total {
	margin-top: 10px;
	font-size: 14px;
}

.jm-booking .jm-form__title {
	margin: 24px 0 14px;
	padding: 0;
	font-family: var(--jm-hb-serif);
	font-size: 28px;
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: normal;
	text-transform: none;
	color: var(--jm-hb-main);
}

.jm-booking .jm-form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.jm-booking .jm-field--message {
	grid-column: 1 / -1;
}

.jm-booking .jm-label {
	display: block;
	margin: 0 0 6px;
	padding: 0;
	color: var(--jm-hb-main);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
}

.jm-booking .jm-field .jm-input {
	display: block;
	width: 100%;
	height: 48px;
	padding: 0 14px;
	border: 1px solid var(--jm-hb-line);
	border-radius: 12px;
	background: #fff;
	color: var(--jm-hb-main);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.jm-booking .jm-field select.jm-input {
	padding-right: 38px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23191614' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}

.jm-booking .jm-field textarea.jm-input {
	height: auto;
	min-height: 92px;
	padding: 12px 14px;
	resize: vertical;
}

.jm-booking .jm-field .jm-input:focus {
	border-color: var(--jm-hb-main);
	box-shadow: 0 0 0 3px rgba(255, 172, 102, 0.45);
}

.jm-booking .jm-field.has-error .jm-input {
	border-color: var(--jm-hb-error);
}

.jm-booking .jm-field__error {
	margin: 6px 0 0;
	color: var(--jm-hb-error);
	font-size: 13px;
}

.jm-booking .jm-hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.jm-booking .jm-form__privacy {
	margin: 16px 0 0;
	color: var(--jm-hb-muted);
	font-size: 13px;
	text-align: center;
}

/* ---------- Confirmation ---------- */

.jm-booking .jm-done {
	padding: 8px 0 4px;
	text-align: center;
	outline: none;
}

.jm-booking .jm-done__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--jm-hb-frame);
	color: var(--jm-hb-main);
}

.jm-booking .jm-done__title {
	margin: 16px 0 8px;
	padding: 0;
	font-family: var(--jm-hb-serif);
	font-size: 32px;
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: normal;
	text-transform: none;
	color: var(--jm-hb-main);
}

.jm-booking .jm-done__text {
	max-width: 480px;
	margin: 0 auto;
	color: var(--jm-hb-muted);
}

.jm-booking .jm-done__summary {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	max-width: 520px;
	margin: 24px auto 0;
	padding: 0;
}

.jm-booking .jm-done__summary div {
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--jm-hb-frame);
	text-align: left;
}

.jm-booking .jm-done__summary dt {
	margin: 0;
	color: var(--jm-hb-muted);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.jm-booking .jm-done__summary dd {
	margin: 2px 0 0;
	font-size: 15px;
	font-weight: 600;
}

.jm-booking .jm-ref {
	letter-spacing: 0.08em;
}

/* ---------- Inline placement (shortcode / WPBakery) ---------- */

.jm-booking-inline {
	margin: 0 auto;
	padding: 28px;
	border-radius: 20px;
	background: #fff;
}

.jm-booking--align-left {
	margin-left: 0;
}

.jm-booking--align-right {
	margin-right: 0;
}

.jm-booking-inline.is-highlighted {
	animation: jm-hb-ring 1.4s ease-out 1;
}

.jm-booking-inline .jm-booking__title {
	margin: 0 0 8px;
	font-family: var(--jm-hb-serif);
	font-size: clamp(28px, 3vw, 38px);
	font-weight: 500;
	line-height: 1.15;
	color: var(--jm-hb-main);
}

.jm-booking-inline .jm-booking__subtitle {
	margin: 0 0 22px;
	color: var(--jm-hb-muted);
}

.jm-booking--align-center .jm-booking__title,
.jm-booking--align-center .jm-booking__subtitle {
	text-align: center;
}

.jm-booking-notice {
	padding: 8px 12px;
	border: 1px dashed #a33;
	color: #a33;
	font-size: 13px;
}

/* ---------- Modal ---------- */

.jm-booking-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.jm-booking-modal[hidden] {
	display: none !important;
}

.jm-booking-modal.is-open {
	opacity: 1;
}

.jm-booking-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 16, 12, 0.72);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.jm-booking-modal__panel {
	position: relative;
	width: 100%;
	max-width: 820px;
	max-height: calc(100vh - 40px);
	max-height: calc(100dvh - 40px);
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	padding: 34px 40px 32px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
	transform: translateY(14px) scale(0.985);
	transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.jm-booking-modal.is-open .jm-booking-modal__panel {
	transform: none;
}

.jm-booking-modal .jm-booking-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--jm-hb-main);
	cursor: pointer;
}

.jm-booking-modal .jm-booking-modal__close:hover,
.jm-booking-modal .jm-booking-modal__close:focus-visible {
	background: var(--jm-hb-frame);
	outline: none;
}

.jm-booking-modal .jm-booking-modal__title {
	margin: 0 48px 6px 0;
	padding: 0;
	font-family: var(--jm-hb-serif);
	font-size: clamp(30px, 3.4vw, 40px);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: normal;
	text-transform: none;
	color: var(--jm-hb-main);
}

.jm-booking-modal .jm-booking-modal__subtitle {
	margin: 0 0 24px;
	color: var(--jm-hb-muted);
	font-size: 15px;
}

html.jm-booking-lock,
html.jm-booking-lock body {
	overflow: hidden !important;
}

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
	.jm-booking-modal {
		align-items: flex-end;
		padding: 0;
	}

	.jm-booking-modal__panel {
		max-height: 94vh;
		max-height: 94dvh;
		padding: 24px 18px calc(22px + env(safe-area-inset-bottom));
		border-radius: 20px 20px 0 0;
		transform: translateY(40px);
	}

	.jm-booking-modal .jm-booking-modal__close {
		top: 12px;
		right: 10px;
	}

	.jm-booking-modal .jm-booking-modal__title {
		font-size: 28px;
	}

	.jm-booking-inline {
		padding: 20px 14px;
	}

	.jm-booking .jm-form__grid {
		grid-template-columns: 1fr;
	}

	.jm-booking .jm-actions .jm-btn {
		flex: 1 1 auto;
	}

	.jm-booking .jm-done__summary {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jm-booking-modal,
	.jm-booking-modal__panel,
	.jm-booking-inline,
	.jm-booking .jm-day {
		transition: none;
		animation: none;
	}
}

@keyframes jm-hb-spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes jm-hb-pulse-bg {
	from {
		background-color: #fff;
	}

	to {
		background-color: var(--jm-hb-frame);
	}
}

@keyframes jm-hb-ring {
	0% {
		box-shadow: 0 0 0 0 rgba(255, 172, 102, 0.7);
	}

	100% {
		box-shadow: 0 0 0 24px rgba(255, 172, 102, 0);
	}
}
