/* [hl_last_minute] — last-minute stays & one-night openings */
.hl-lastmin {
	--hl-lm-cream: #f6f3ed;
	--hl-lm-charcoal: #304238;
	--hl-lm-sage: #728474;
	--hl-lm-terra: #a88f7b;
	--hl-lm-muted: #5b6b5f;
	--hl-lm-line: #e4ddd0;
	color: var(--hl-lm-charcoal);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	margin: 0 0 2rem;
}
.hl-lastmin__row + .hl-lastmin__row { margin-top: 2rem; }
.hl-lastmin__title {
	font-family: Jost, Inter, sans-serif;
	font-weight: 500;
	font-size: 1.5rem;
	line-height: 1.2;
	margin: 0 0 .25rem;
	color: var(--hl-lm-charcoal);
}
.hl-lastmin__sub { margin: 0 0 1rem; font-size: .9rem; color: var(--hl-lm-sage); }
.hl-lastmin__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.hl-lastmin__card {
	background: #fff;
	border: 1px solid var(--hl-lm-line);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.hl-lastmin__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--hl-lm-sage);
}
.hl-lastmin__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hl-lastmin__badge {
	position: absolute;
	left: .6rem;
	bottom: .6rem;
	background: var(--hl-lm-cream);
	color: var(--hl-lm-charcoal);
	font-size: .75rem;
	padding: .2rem .6rem;
	border-radius: 999px;
}
.hl-lastmin__body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; }
.hl-lastmin__name { font-family: Jost, Inter, sans-serif; font-weight: 500; font-size: 1.05rem; margin: 0; }
.hl-lastmin__dates { font-size: .9rem; color: var(--hl-lm-muted); margin: .15rem 0 .5rem; }
.hl-lastmin__price { font-weight: 500; font-size: 1.05rem; margin: 0 0 .8rem; }
.hl-lastmin__price span { font-weight: 400; font-size: .8rem; color: #8a8a80; }
.hl-lastmin a.hl-lastmin__btn {
	margin-top: auto;
	display: block;
	text-align: center;
	background: var(--hl-lm-charcoal);
	color: var(--hl-lm-cream);
	border: 1px solid var(--hl-lm-charcoal);
	border-radius: 8px;
	padding: .6rem .8rem;
	font-size: .9rem;
	text-decoration: none;
	transition: background .15s ease, color .15s ease;
}
.hl-lastmin a.hl-lastmin__btn:hover, .hl-lastmin a.hl-lastmin__btn:focus { background: var(--hl-lm-sage); border-color: var(--hl-lm-sage); color: #fff; text-decoration: none; }
.hl-lastmin a.hl-lastmin__btn--outline { background: transparent; color: var(--hl-lm-charcoal); }
.hl-lastmin__empty { color: var(--hl-lm-sage, #728474); }

@media (max-width: 767px) {
	.hl-lastmin__grid {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: .75rem;
		padding-bottom: .5rem;
		-webkit-overflow-scrolling: touch;
	}
	.hl-lastmin__card { flex: 0 0 78%; scroll-snap-align: start; }
	.hl-lastmin__title { font-size: 1.25rem; }
}

/* Page toggles: listing-page section + collection block */
.hl-lastmin-section .hl-lastmin,
.hl-coll-openings .hl-lastmin { margin: 0; }
.hl-coll-openings { padding: 3rem 0; }

/* On-page booking popup */
.hl-lm-modal { position: fixed; inset: 0; z-index: 100000; display: none; }
.hl-lm-modal.is-open { display: block; }
.hl-lm-modal__backdrop { position: absolute; inset: 0; background: rgba(48, 66, 56, .6); }
.hl-lm-modal__dialog {
	position: relative;
	margin: max(4vh, 48px) auto 4vh;
	width: min(560px, calc(100% - 32px));
	max-height: 92vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 12px;
	-webkit-overflow-scrolling: touch;
}
.hl-lm-modal__head {
	position: sticky;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .75rem 1rem;
	background: #f6f3ed;
	border-bottom: 1px solid #e4ddd0;
	z-index: 1;
}
.hl-lm-modal .hl-lm-modal__title { margin: 0; padding: 0; line-height: 1.3; font-family: Jost, Inter, sans-serif; font-weight: 500; font-size: 1.05rem; color: #304238; }
.hl-lm-modal .hl-lm-modal__close {
	background: none;
	border: 0;
	box-shadow: none;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	color: #304238;
	width: 2.25rem;
	height: 2.25rem;
	min-height: 0;
	margin: 0;
	padding: 0;
	flex: none;
}
.hl-lm-modal__frame { padding: .5rem; }
html.hl-lm-modal-open, html.hl-lm-modal-open body { overflow: hidden; }
@media (max-width: 767px) {
	.hl-lm-modal__dialog { margin: 0; width: 100%; max-height: 100vh; height: 100%; border-radius: 0; }
}

/* Exact total price line */
.hl-lastmin__price--total { display: flex; flex-direction: column; gap: .15rem; }
.hl-lastmin .hl-lastmin__price-detail { font-size: .8rem; font-weight: 400; color: var(--hl-lm-muted); }

/* Popup loading note (removed once the widget is ready) */
.hl-lm-modal__frame { position: relative; }
.hl-lm-modal .hl-lm-modal__loading {
	margin: 0;
	padding: 1.25rem 1rem;
	text-align: center;
	font-size: .95rem;
	color: #5b6b5f;
}
.hl-lm-modal .hl-lm-modal__loading::before {
	content: "";
	display: block;
	width: 1.5rem;
	height: 1.5rem;
	margin: 0 auto .6rem;
	border: 2px solid #e4ddd0;
	border-top-color: #728474;
	border-radius: 50%;
	animation: hl-lm-spin .8s linear infinite;
}
.hl-lm-modal__frame.is-loading iframe { opacity: 0; height: 120px !important; }
@keyframes hl-lm-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hl-lm-modal .hl-lm-modal__loading::before { animation: none; } }

/* Last-Minute Stays page template (editorial top shared with collections) */
.hl-lmp .hl-lmp__quote { margin-top: 2.5rem; margin-bottom: 0; }
.hl-lmp__jump {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .6rem;
	padding: clamp(2.5rem, 6vw, 4rem) 20px 0;
}
.hl-lmp .hl-lmp__jump a {
	display: inline-block;
	padding: .55rem 1.1rem;
	border: 1px solid #304238;
	border-radius: 999px;
	color: #304238;
	font-size: .9rem;
	text-decoration: none;
	transition: background .15s ease, color .15s ease;
}
.hl-lmp .hl-lmp__jump a:hover, .hl-lmp .hl-lmp__jump a:focus { background: #304238; color: #f6f3ed; }
.hl-lmp__group { padding: clamp(3rem, 7vw, 5rem) 0 0; scroll-margin-top: 80px; }
.hl-lmp__group:last-child { padding-bottom: clamp(3rem, 7vw, 5rem); }
.hl-lmp__group-head { margin-bottom: 1.75rem; }
.hl-lmp__group-head .hl-coll-h2 { margin: .35rem 0 .5rem; }
.hl-lmp__group-text { margin: 0; max-width: 52ch; color: #5b6b5f; }
.hl-lmp__group .hl-lastmin { margin: 0; }
.hl-lmp__group .hl-lastmin__title { font-size: 1.15rem; }
.hl-lmp__group + .hl-lmp__group .hl-coll-wrap { border-top: 1px solid #e4ddd0; padding-top: clamp(3rem, 7vw, 5rem); }
.hl-lmp__group + .hl-lmp__group { padding-top: 0; }
.hl-lmp__empty { padding: clamp(3rem, 7vw, 5rem) 0; text-align: center; color: #5b6b5f; }

/* Jump-link anchors land below the fixed header */
.hl-lastmin-section, .hl-coll-openings { scroll-margin-top: 90px; }

/* The ledger: compact dated list (collection pages) */
.hl-lastmin--list { max-width: 880px; margin: 0 auto; }
.hl-lastmin--list .hl-lastmin__eyebrow { margin: 0 0 .35rem; font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--hl-lm-sage); }
.hl-lastmin--list .hl-lastmin__title { font-family: 'Poiret One', Jost, Inter, sans-serif; font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 1.25rem; }
.hl-lastmin__lrow {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr) 8.5rem 7rem;
	gap: 1rem;
	align-items: center;
	padding: 1rem 0;
	border-top: 1px solid var(--hl-lm-line);
}
.hl-lastmin__lrow:last-child { border-bottom: 1px solid var(--hl-lm-line); }
.hl-lastmin__ldate { font-weight: 500; font-size: 1rem; }
.hl-lastmin__ltag {
	display: inline-block;
	margin-left: .5rem;
	font-size: .65rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	background: var(--hl-lm-charcoal);
	color: var(--hl-lm-cream);
	border-radius: 999px;
	padding: .15rem .55rem;
	vertical-align: .1em;
}
.hl-lastmin__lsub { display: block; font-size: .85rem; color: var(--hl-lm-muted); margin-top: .1rem; }
.hl-lastmin__lcabin { font-size: .95rem; color: var(--hl-lm-muted); }
.hl-lastmin__lprice { font-weight: 500; font-size: 1.05rem; text-align: right; white-space: nowrap; }
.hl-lastmin__lprice span { display: block; font-size: .75rem; font-weight: 400; color: var(--hl-lm-sage); }
.hl-lastmin a.hl-lastmin__lbtn {
	display: inline-block;
	padding: .5rem 1.1rem;
	border: 1px solid var(--hl-lm-charcoal);
	background: var(--hl-lm-charcoal);
	color: var(--hl-lm-cream);
	border-radius: 8px;
	font-size: .9rem;
	text-decoration: none;
	white-space: nowrap;
	text-align: center;
	box-sizing: border-box;
	width: 100%;
}
.hl-lastmin a.hl-lastmin__lbtn--outline { background: transparent; color: var(--hl-lm-charcoal); }
.hl-lastmin a.hl-lastmin__lbtn:hover, .hl-lastmin a.hl-lastmin__lbtn:focus { background: var(--hl-lm-sage); border-color: var(--hl-lm-sage); color: #fff; text-decoration: none; }
@media (max-width: 640px) {
	.hl-lastmin__lrow {
		grid-template-columns: minmax(0, 1fr) 7.5rem;
		grid-template-areas: "when price" "cabin btn";
		row-gap: .4rem;
	}
	.hl-lastmin__lwhen { grid-area: when; }
	.hl-lastmin__lprice { grid-area: price; }
	.hl-lastmin__lcabin { grid-area: cabin; font-size: .85rem; }
	.hl-lastmin a.hl-lastmin__lbtn { grid-area: btn; }
}
.hl-lastmin-anchor { display: block; position: relative; top: -90px; visibility: hidden; }

/* One card per cabin (Last-Minute Stays page) */
.hl-lastmin__cabins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.hl-lastmin__cabin { background: #fff; border: 1px solid var(--hl-lm-line); border-radius: 12px; overflow: hidden; }
.hl-lastmin__cabin .hl-lastmin__body { padding: 1rem 1.1rem 1.1rem; }
.hl-lastmin__cabin .hl-lastmin__name { margin: 0; font-size: 1.15rem; }
.hl-lastmin .hl-lastmin__name a { color: inherit; text-decoration: none; }
.hl-lastmin__sleeps { margin: .1rem 0 .6rem; font-size: .85rem; color: var(--hl-lm-sage); }
.hl-lastmin__crow {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto 6.25rem;
	gap: .75rem;
	align-items: center;
	padding: .7rem 0;
	border-top: 1px solid var(--hl-lm-line);
}
.hl-lastmin__crow .hl-lastmin__ldate { font-size: .95rem; }
.hl-lastmin__crow .hl-lastmin__lprice { font-size: .98rem; }
.hl-lastmin__crow a.hl-lastmin__lbtn { padding: .45rem .5rem; font-size: .85rem; }
.hl-lastmin .hl-lastmin__more { display: inline-block; margin-top: .6rem; font-size: .85rem; color: var(--hl-lm-charcoal); text-decoration: none; border-bottom: 1px solid currentColor; }
@media (max-width: 1024px) { .hl-lastmin__cabins { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
	.hl-lastmin__cabins { grid-template-columns: minmax(0, 1fr); }
	.hl-lastmin__crow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "when price" "when btn"; row-gap: .35rem; }
	.hl-lastmin__crow .hl-lastmin__lwhen { grid-area: when; }
	.hl-lastmin__crow .hl-lastmin__lprice { grid-area: price; }
	.hl-lastmin__crow a.hl-lastmin__lbtn { grid-area: btn; width: 6.25rem; justify-self: end; }
}

/* Centre the ledger on collection pages (the generic margin reset above removed auto-centering) */
.hl-coll-openings .hl-lastmin--list,
.hl-lastmin-section .hl-lastmin--list { margin-left: auto; margin-right: auto; }

/* Hide the sticky "Check availability" bars while the openings popup is open (they would cover the Reserve button on mobile). */
html.hl-lm-modal-open #hl-sticky-bar,
html.hl-lm-modal-open #hl-coll-sticky,
html.hl-lm-modal-open .hl-sticky-bar,
html.hl-lm-modal-open .hl-coll-sticky { display: none !important; }
.hl-lm-modal { z-index: 2147483647; }

/* Phones: use the visible screen height (not 100vh, which can sit under Safari's toolbar) and leave room for the home bar. */
@media (max-width: 767px) {
	.hl-lm-modal__dialog { height: 100dvh; max-height: 100dvh; }
	.hl-lm-modal__frame { padding-bottom: calc(.5rem + env(safe-area-inset-bottom, 0px)); }
}
