/* Lauriston Core components. Uses the Lauriston theme's colour tokens, with fallbacks. */
:root {
	--lhc-slate: var(--wp--preset--color--slate, #353D40);
	--lhc-ink: var(--wp--preset--color--ink, #1F2528);
	--lhc-muted: var(--wp--preset--color--muted, #566064);
	--lhc-copper: var(--wp--preset--color--copper, #A14E2C);
	--lhc-copper-dark: var(--wp--preset--color--copper-dark, #8A4123);
	--lhc-brass: var(--wp--preset--color--brass, #C9A36A);
	--lhc-sand: var(--wp--preset--color--sand, #F4EFE6);
	--lhc-shell: var(--wp--preset--color--shell, #FBF8F3);
	--lhc-line: var(--wp--preset--color--line, #E3DBCD);
	--lhc-error: #B3261E;
	--lhc-radius: 6px;
}

.lh-icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.2em; }

/* ---------- Buttons used inside components ---------- */
.lh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	min-height: 44px;
	padding: .7rem 1.25rem;
	border: 2px solid var(--lhc-slate);
	border-radius: 2px;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.lh-btn--solid { background: var(--lhc-slate); color: #fff; }
.lh-btn--solid:hover { background: var(--lhc-ink); border-color: var(--lhc-ink); color: #fff; }
.lh-btn--outline { background: transparent; color: var(--lhc-slate); }
.lh-btn--outline:hover { background: var(--lhc-slate); color: #fff; }
.lh-btn--link { background: none; border-color: transparent; color: inherit; text-decoration: underline; text-underline-offset: .2em; padding-inline: .5rem; }
.lh-btn--link:hover { text-decoration-thickness: 2px; }

/* ---------- Form fields (booking + contact) ---------- */
.lh-field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.lh-field label { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.lh-field__hint { margin: 0; color: var(--lhc-muted); font-size: 1rem; }
.lh-field input:not([type="checkbox"]),
.lh-field select,
.lh-field textarea {
	width: 100%;
	min-height: 3.25rem;
	padding: .7rem .9rem;
	font: inherit;
	font-size: 1.0625rem;
	color: var(--lhc-ink);
	background: #fff;
	border: 2px solid #6B7478;
	border-radius: 2px;
	box-sizing: border-box;
}
.lh-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--lhc-ink) 50%), linear-gradient(135deg, var(--lhc-ink) 50%, transparent 50%); background-position: calc(100% - 1.25rem) 55%, calc(100% - .9rem) 55%; background-size: .35rem .35rem; background-repeat: no-repeat; padding-right: 2.5rem; }
.lh-field textarea { min-height: 10rem; resize: vertical; }
.lh-field input:focus-visible, .lh-field select:focus-visible, .lh-field textarea:focus-visible {
	outline: 3px solid var(--lhc-copper);
	outline-offset: 1px;
	border-color: var(--lhc-ink);
}
.lh-field [aria-invalid="true"] { border-color: var(--lhc-error); border-width: 3px; }
.lh-field.has-error { border-left: 4px solid var(--lhc-error); padding-left: 1rem; }

/* ---------- Booking bar ---------- */
.lh-booking { position: relative; color: var(--lhc-ink); }
.lh-booking__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1.5rem; margin-bottom: 1rem; }
.lh-booking__title { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); color: var(--lhc-slate); }
.lh-booking__intro { margin: 0; color: var(--lhc-muted); }
.lh-booking__msg { margin: .65rem 0 0; font-weight: 700; }
.lh-booking__msg:empty { display: none; }
.lh-booking__msg.is-error { color: var(--lhc-error); }
.lh-booking__help { margin: .75rem 0 0; font-size: 1rem; color: var(--lhc-muted); }
.lh-booking__help a { color: var(--lhc-ink); font-weight: 700; }

.lh-bk { position: relative; }
.lh-bk__bar {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.15fr) auto auto;
	min-height: 5.25rem;
	background: #fff;
	border-top: 3px solid var(--lhc-brass);
	box-shadow: 0 30px 60px -30px rgba(31, 37, 40, .5);
}
.lh-bk__cell { position: relative; display: flex; min-width: 0; }
.lh-bk__cell + .lh-bk__cell { border-left: 1px solid var(--lhc-line); }

.lh-bk__field {
	appearance: none;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: .15rem;
	width: 100%;
	min-width: 0;
	padding: .55rem 1.4rem;
	border: 0;
	background: transparent;
	font: inherit;
	text-align: left;
	color: var(--lhc-ink);
	cursor: pointer;
	transition: background-color .2s;
}
.lh-bk__field:hover, .lh-bk__field[aria-expanded="true"] { background: var(--lhc-shell); }
.lh-bk__field:focus-visible, .lh-bk__promo:focus-visible, .lh-bk__go:focus-visible { outline: 3px solid var(--lhc-copper); outline-offset: -3px; }
.lh-bk__label { font-size: .875rem; font-weight: 700; color: var(--lhc-muted); }
.lh-bk__value { display: flex; align-items: center; gap: .55rem; min-width: 0; font-size: 1.125rem; font-weight: 600; }
.lh-bk__value > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lh-bk__value .lh-icon { width: 1.15rem; height: 1.15rem; color: var(--lhc-copper); }

.lh-bk__promo {
	appearance: none;
	align-self: stretch;
	padding: 0 1.4rem;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 1rem;
	color: var(--lhc-slate);
	text-decoration: underline;
	text-underline-offset: .2em;
	white-space: nowrap;
	cursor: pointer;
}
.lh-bk__promo:hover { text-decoration-thickness: 2px; background: var(--lhc-shell); }

.lh-bk__go {
	appearance: none;
	border: 0;
	padding: 0 1.9rem;
	background: var(--lhc-copper);
	color: #fff;
	font: inherit;
	font-size: 1.0625rem;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .2s;
}
.lh-bk__go:hover { background: var(--lhc-copper-dark); }

/* Pop-up panels */
.lh-bk__pop {
	position: absolute;
	z-index: 60;
	top: calc(100% + .6rem);
	left: 0;
	background: #fff;
	border-top: 3px solid var(--lhc-brass);
	box-shadow: 0 30px 70px -20px rgba(31, 37, 40, .55);
	padding: 1.25rem 1.5rem 1rem;
}
.lh-bk__pop[hidden] { display: none; }
.lh-bk__pop--cal { width: 42rem; }
.lh-bk__pop--guests { width: 21rem; }
.lh-bk__pop--promo { width: 19rem; left: auto; right: 0; }
.lh-bk__popfoot { display: flex; justify-content: flex-end; margin-top: .9rem; }
.lh-bk__done {
	appearance: none;
	min-height: 44px;
	padding: .55rem 1.35rem;
	border: 0;
	border-radius: 2px;
	background: var(--lhc-slate);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.lh-bk__done:hover { background: var(--lhc-ink); }
.lh-bk__done:focus-visible, .lh-cal__clear:focus-visible, .lh-cal__arrow:focus-visible, .lh-step__btn:focus-visible { outline: 3px solid var(--lhc-copper); outline-offset: 2px; }

/* Calendar */
.lh-cal__nav { position: absolute; top: 1rem; left: 1rem; right: 1rem; display: flex; justify-content: space-between; pointer-events: none; }
.lh-cal__arrow {
	pointer-events: auto;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid var(--lhc-line);
	border-radius: 50%;
	background: #fff;
	color: var(--lhc-slate);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}
.lh-cal__arrow:hover { background: var(--lhc-sand); }
.lh-cal__arrow:disabled { opacity: .3; cursor: default; }
.lh-cal__months { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2rem; }
.lh-cal__name { margin: .45rem 0 .9rem; text-align: center; font-family: var(--wp--preset--font-family--heading, Georgia, serif); font-size: 1.3rem; font-weight: 400; color: var(--lhc-slate); }
.lh-cal__grid { width: 100%; border-collapse: separate; border-spacing: 0 2px; table-layout: fixed; }
.lh-cal__grid th { padding: 0 0 .35rem; font-size: .8125rem; font-weight: 700; color: var(--lhc-muted); text-align: center; }
.lh-cal__grid td { padding: 0; text-align: center; }
.lh-cal__day {
	appearance: none;
	width: 100%;
	height: 2.6rem;
	border: 0;
	border-radius: 0;
	background: transparent;
	font: inherit;
	font-size: 1rem;
	color: var(--lhc-ink);
	cursor: pointer;
}
.lh-cal__day:hover:not(:disabled) { background: var(--lhc-sand); }
.lh-cal__day:focus-visible { outline: 3px solid var(--lhc-copper); outline-offset: -3px; position: relative; z-index: 1; }
.lh-cal__day:disabled { color: #A9B1B4; cursor: default; }
.lh-cal__day.is-today { font-weight: 700; text-decoration: underline; text-underline-offset: .25em; }
.lh-cal__day.is-range { background: var(--lhc-sand); }
.lh-cal__day.is-preview { background: #F7F3EC; }
.lh-cal__day.is-preview-end { background: #E9E2D5; border-radius: 0 999px 999px 0; }
.lh-cal__day.is-start, .lh-cal__day.is-end { background: var(--lhc-slate); color: #fff; font-weight: 700; text-decoration: none; }
.lh-cal__day.is-start { border-radius: 999px; }
.lh-cal__day.is-start:hover, .lh-cal__day.is-end:hover { background: var(--lhc-ink); }
.lh-cal__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--lhc-line); }
.lh-cal__summary { margin: 0; font-size: 1rem; font-weight: 600; }
.lh-cal__actions { display: flex; align-items: center; gap: 1rem; }
.lh-cal__clear { appearance: none; border: 0; background: none; padding: .5rem 0; font: inherit; font-size: 1rem; color: var(--lhc-slate); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; min-height: 44px; }

/* Guest counters */
.lh-step { display: grid; grid-template-columns: 1fr auto 2rem auto; align-items: center; gap: .65rem; padding: .7rem 0; border-bottom: 1px solid var(--lhc-line); }
.lh-step__name { font-weight: 700; font-size: 1.0625rem; }
.lh-step__btn {
	appearance: none;
	width: 2.75rem;
	height: 2.75rem;
	border: 1.5px solid var(--lhc-slate);
	border-radius: 50%;
	background: #fff;
	color: var(--lhc-slate);
	font: inherit;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}
.lh-step__btn:hover:not(:disabled) { background: var(--lhc-slate); color: #fff; }
.lh-step__btn:disabled { opacity: .3; cursor: default; }
.lh-step__val { text-align: center; font-weight: 700; font-size: 1.125rem; }

/* Promo code */
.lh-bk__pop--promo label { display: block; font-weight: 700; margin-bottom: .4rem; }
.lh-bk__pop--promo input {
	width: 100%;
	min-height: 3rem;
	padding: .6rem .8rem;
	border: 2px solid #6B7478;
	border-radius: 2px;
	font: inherit;
	box-sizing: border-box;
}
.lh-bk__pop--promo input:focus-visible { outline: 3px solid var(--lhc-copper); outline-offset: 1px; }

/* While a booking panel is open, lift it above everything else. */
body.lh-bk-open .is-style-overlap-up, body.lh-bk-open .lh-booking { z-index: 1002 !important; position: relative; }
@media (max-width: 860px) {
	body.lh-bk-open .lh-action-bar { display: none; }
	.lh-bk__bar { grid-template-columns: minmax(0, 1fr) auto; }
	.lh-bk__cell--dates { grid-column: 1 / -1; }
	.lh-bk__cell--guests { border-left: 0 !important; border-top: 1px solid var(--lhc-line); }
	.lh-bk__cell--promo { border-top: 1px solid var(--lhc-line); justify-content: center; }
	.lh-bk__go { grid-column: 1 / -1; min-height: 3.5rem; }
	.lh-bk__field { min-height: 4.25rem; padding: .5rem 1rem; }
	.lh-bk__value { font-size: 1.0625rem; gap: .45rem; }
	.lh-bk__promo { padding: 0 1rem; }
	/* Panels slide up from the bottom of the screen on phones and small tablets. */
	.lh-bk__pop {
		position: fixed;
		z-index: 1001;
		top: auto;
		left: 0;
		right: 0;
		bottom: 0;
		width: auto;
		max-height: 88vh;
		overflow: auto;
		border-radius: 14px 14px 0 0;
		padding-bottom: calc(1rem + env(safe-area-inset-bottom));
		box-shadow: 0 -20px 60px rgba(31, 37, 40, .45);
	}
	.lh-bk__pop--promo { left: 0; right: 0; }
}

/* ---------- Contact details ---------- */
.lh-contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.lh-contact__list li { display: flex; gap: .75rem; align-items: flex-start; line-height: 1.5; }
.lh-contact__list .lh-icon { margin-top: .2em; color: var(--lhc-brass); }
.lh-contact--full .lh-contact__list .lh-icon { color: var(--lhc-copper); }
.lh-contact__k { display: block; font-size: .875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lhc-muted); }
.lh-contact--full .lh-contact__list { gap: 1.4rem; font-size: 1.125rem; }
.lh-contact__address { font-style: normal; line-height: 1.6; }
.lh-contact--copyright p, .lh-contact--times p { margin: 0; }

/* ---------- Contact form ---------- */
.lh-form-wrap { scroll-margin-top: 7rem; }
.lh-form__title { margin-top: 0; }
.lh-form { display: grid; gap: 1.25rem; }
.lh-form__note { margin: 0; color: var(--lhc-muted); }
.lh-form__row { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.lh-field--check { flex-direction: row; align-items: flex-start; gap: .85rem; flex-wrap: wrap; }
.lh-field--check .lh-form__error { flex-basis: 100%; }
.lh-field--check input { width: 1.6rem; height: 1.6rem; margin: .1rem 0 0; accent-color: var(--lhc-slate); flex: none; }
.lh-field--check label { font-weight: 400; flex: 1 1 16rem; }
.lh-form__error { margin: 0; color: var(--lhc-error); font-weight: 700; }
.lh-form__submit {
	justify-self: start;
	min-height: 3.25rem;
	padding: .8rem 2rem;
	border: 2px solid var(--lhc-copper);
	background: var(--lhc-copper);
	color: #fff;
	font: inherit;
	font-weight: 700;
	border-radius: 2px;
	cursor: pointer;
}
.lh-form__submit:hover { background: var(--lhc-copper-dark); }
.lh-form__summary { border: 4px solid var(--lhc-error); padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; background: #fff; }
.lh-form__summary h3 { margin: 0 0 .5rem; color: var(--lhc-ink); font-size: 1.5rem; }
.lh-form__summary ul { margin: 0; padding-left: 1.25rem; }
.lh-form__summary a { color: var(--lhc-error); font-weight: 700; }
.lh-form__success { border-left: 6px solid #2E6B45; background: #EEF5F0; padding: 1.25rem 1.5rem; }
.lh-form__success h3 { margin: 0 0 .5rem; color: var(--lhc-ink); }
.lh-form__success:focus, .lh-form__summary:focus { outline: 3px solid var(--lhc-copper); outline-offset: 3px; }
.lh-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Tripadvisor / consent placeholder ---------- */
.lh-ta { min-height: 6rem; }
.lh-ta .lh-ta__mount { display: none; }
.lh-ta .TA_links { list-style: none; margin: 0; padding: 0; }
.lh-ta.is-loaded .lh-ta__mount { display: block; }
.lh-ta.is-loaded .lh-ta__mount img[hidden] { display: inline; }
.lh-ta.is-loaded .lh-consent-placeholder { display: none; }
.lh-consent-placeholder {
	background: #fff;
	border: 1px solid var(--lhc-line);
	border-radius: var(--lhc-radius);
	padding: 1.5rem 1.75rem;
	color: var(--lhc-ink);
}
.lh-consent-placeholder__title { display: flex; gap: .6rem; align-items: center; font-weight: 700; font-size: 1.125rem; margin: 0 0 1rem; }
.lh-consent-placeholder__title .lh-icon { color: #00AA6C; }
.lh-consent-placeholder__actions { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin: 0; }
.lh-consent-placeholder__note { margin: .75rem 0 0; font-size: .9375rem; color: var(--lhc-muted); }
.lh-ta--reviews .TA_selfserveprop, .lh-ta--reviews #CDSWIDSSP { width: 100% !important; max-width: 100% !important; }

/* ---------- Map ---------- */
.lh-map { margin: 0; }
.lh-map iframe { display: block; width: 100%; border: 0; border-radius: var(--lhc-radius); background: var(--lhc-sand); filter: saturate(.85); }
.lh-map figcaption { display: flex; flex-wrap: wrap; gap: .25rem .6rem; margin-top: .6rem; font-size: .9375rem; color: var(--lhc-muted); }
.lh-map figcaption a { color: inherit; font-weight: 700; }

/* ---------- Mobile action bar ---------- */
.lh-action-bar { display: none; }
@media (max-width: 781px) {
	.lh-action-bar {
		display: grid;
		grid-template-columns: 1fr 1.4fr;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 90;
		background: var(--lhc-slate);
		box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, .5);
		padding-bottom: env(safe-area-inset-bottom);
	}
	.lh-action-bar a {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: .55rem;
		min-height: 3.75rem;
		color: #fff;
		font-weight: 700;
		font-size: 1.0625rem;
		text-decoration: none;
	}
	.lh-action-bar a:focus-visible { outline: 3px solid var(--lhc-brass); outline-offset: -5px; }
	.lh-action-bar__book { background: var(--lhc-copper); }
	.lh-action-bar__call { border-right: 1px solid rgba(255, 255, 255, .15); }
}

/* ---------- Cookie banner ---------- */
.lh-cookie {
	position: fixed;
	z-index: 1000;
	left: clamp(.75rem, 2vw, 1.5rem);
	right: clamp(.75rem, 2vw, 1.5rem);
	bottom: clamp(.75rem, 2vw, 1.5rem);
	max-width: 46rem;
	max-height: calc(100vh - 2rem);
	overflow: auto;
	background: #fff;
	color: var(--lhc-ink);
	border-top: 4px solid var(--lhc-brass);
	border-radius: var(--lhc-radius);
	box-shadow: 0 30px 80px -20px rgba(31, 37, 40, .55);
	font-size: 1.0625rem;
	line-height: 1.55;
}
.lh-cookie[hidden] { display: none; }
.lh-cookie__inner { padding: clamp(1.25rem, 3vw, 1.75rem); }
.lh-cookie__title { margin: 0 0 .5rem; font-size: 1.5rem; color: var(--lhc-slate); }
.lh-cookie__title:focus { outline: none; }
.lh-cookie p { margin: 0 0 1rem; }
.lh-cookie a { color: var(--lhc-ink); font-weight: 700; }
.lh-cookie fieldset { border: 0; margin: 0 0 1rem; padding: 0; display: grid; gap: .75rem; }
.lh-cookie__opt { display: flex; gap: .75rem; align-items: flex-start; margin: 0 !important; }
.lh-cookie__opt input { width: 1.5rem; height: 1.5rem; margin: .1rem 0 0; flex: none; accent-color: var(--lhc-slate); }
.lh-cookie__choices { margin-bottom: 1rem; padding: 1rem; background: var(--lhc-shell); border-radius: 4px; }
.lh-cookie__choices[hidden] { display: none; }
.lh-cookie__buttons { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 781px) {
	.lh-cookie { bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
}
