/* ==========================================================================
   Book Holiday Lodge - 2026 region and county listings
   Check availability, filter sidebar (a slide-up panel on phones),
   active filter chips, listing cards and the visitor's guide.
   The page header, cards and pagination are in cards.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page header and check availability
   -------------------------------------------------------------------------- */

/* A tighter banner than the offers page so the lodges start higher up */
.pageHero--listing { min-height: 0; }
.pageHero--listing .pageHero__inner { padding-top: calc(var(--announce-h) + 104px); padding-bottom: 136px; }
.pageHero--listing .pageHero__media picture { display: block; width: 100%; height: 100%; }
.pageHero--listing .crumbs { margin-bottom: 16px; }
.pageHero--listing .pageHero__title { margin-top: 10px; font-size: clamp(2.5rem, 5vw, 4.4rem); }
.pageHero--listing .pageHero__lead { max-width: 620px; margin-top: 14px; }

.listingSearch { position: relative; z-index: 6; margin-top: -112px; }

.listingSearch__label {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #fff;
	text-shadow: 0 1px 12px rgba(0, 0, 0, .4);
	animation: fadeUp 1s .5s var(--ease-out) both;
}
.listingSearch__label .icon { width: 18px; height: 18px; color: var(--orange); }

.listingSearch .searchCard { animation: fadeUp 1.1s .6s var(--ease-out) both; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.listings { padding: clamp(40px, 5vw, 64px) 0 clamp(70px, 8vw, 110px); }

.listings__grid {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: clamp(28px, 3.5vw, 48px);
	align-items: start;
}

.listings__main .offersResults { margin-top: 0; }

/* --------------------------------------------------------------------------
   Filters
   -------------------------------------------------------------------------- */

.filters { position: sticky; top: 92px; display: grid; gap: 18px; }

.filters__panel {
	display: flex;
	flex-direction: column;
	max-height: calc(100vh - 120px);
	border-radius: var(--radius-lg);
	background: #fff;
	box-shadow: var(--shadow-sm);
	overflow: hidden;
}

.filters__head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--line);
}

.filters__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-right: auto;
	font-family: var(--font-display);
	font-size: 21px;
	color: var(--forest-800);
}
.filters__title .icon { width: 20px; height: 20px; color: var(--gold-700); }

.filters__clear {
	font-size: 14px;
	font-weight: 700;
	color: var(--forest-600);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: rgba(45, 108, 1, .35);
}
.filters__clear:hover { color: var(--cta); text-decoration-color: currentColor; }

.filters__close { display: none; }

.filters__body {
	flex: 1;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 8px 20px 18px;
	scrollbar-width: thin;
}

.fgroup { margin: 0; padding: 14px 0 6px; border: 0; border-bottom: 1px dashed var(--line); min-width: 0; }
.fgroup:last-of-type { border-bottom: 0; }

.fgroup__title {
	padding: 0;
	margin-bottom: 8px;
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--gold-700);
}

.fopt {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 -10px;
	padding: 8px 10px;
	border-radius: 12px;
	font-size: 15.5px;
	cursor: pointer;
	transition: background-color .2s;
}
.fopt:hover { background: var(--paper); }
.fopt input { position: absolute; opacity: 0; pointer-events: none; }

.fopt__box {
	display: grid;
	place-items: center;
	flex: none;
	width: 22px; height: 22px;
	border-radius: 7px;
	border: 1.5px solid rgba(26, 34, 19, .28);
	background: #fff;
	color: #fff;
	transition: background-color .2s, border-color .2s, transform .3s var(--ease-out);
}
.fopt__box .icon { width: 15px; height: 15px; stroke-width: 3; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .3s var(--ease-out); }
.fopt input:checked + .fopt__box { background: var(--forest-700); border-color: var(--forest-700); }
.fopt input:checked + .fopt__box .icon { opacity: 1; transform: none; }
.fopt input:focus-visible + .fopt__box { outline: 2.5px solid var(--orange); outline-offset: 2px; }
.fopt:active .fopt__box { transform: scale(.9); }

.fopt--radio .fopt__box { border-radius: 50%; }
.fopt--radio input:checked + .fopt__box { background: #fff; border: 7px solid var(--forest-700); }

.fopt__icon { display: grid; place-items: center; color: var(--gold-700); }
.fopt__icon .icon { width: 19px; height: 19px; }

.fopt__label { flex: 1; color: var(--ink); }
.fopt input:checked ~ .fopt__label { font-weight: 700; color: var(--forest-800); }

.fopt__count {
	min-width: 30px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--paper-2);
	font-size: 12.5px;
	font-weight: 700;
	text-align: center;
	color: var(--ink-2);
	transition: background-color .2s, color .2s;
}
.fopt input:checked ~ .fopt__count { background: var(--forest-700); color: #fff; }

.fopt.is-zero { cursor: not-allowed; opacity: .45; }
.fopt.is-zero:hover { background: none; }

.filters__foot { display: none; }

/* More destinations */

.moreDest {
	padding: 18px 20px;
	border-radius: var(--radius-lg);
	background: #fff;
	box-shadow: var(--shadow-sm);
}

.moreDest__title { margin-bottom: 8px; font-family: var(--font-display); font-size: 21px; color: var(--forest-800); }

.moreDest__region { border-bottom: 1px solid var(--line); }
.moreDest__region:last-child { border-bottom: 0; }

.moreDest__region summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 0;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	list-style: none;
}
.moreDest__region summary::-webkit-details-marker { display: none; }
.moreDest__region summary a:hover { color: var(--forest-600); text-decoration: underline; text-underline-offset: 3px; }
.moreDest__region summary .icon { width: 16px; height: 16px; color: var(--gold-700); transition: transform .35s var(--ease-out); }
.moreDest__region[open] summary .icon { transform: rotate(180deg); }

.moreDest__region ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; padding: 0 0 12px; }
.moreDest__region li a { display: block; padding: 4px 0; font-size: 14px; color: var(--ink-2); transition: color .2s; }
.moreDest__region li a:hover, .moreDest__region li a[aria-current] { color: var(--forest-600); font-weight: 700; }

/* --------------------------------------------------------------------------
   Results
   -------------------------------------------------------------------------- */

.foundNum { margin: 0; }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -8px 0 22px; }

.chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 10px 7px 13px;
	border-radius: 999px;
	background: var(--forest-800);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	transition: background-color .2s, transform .3s var(--ease-out);
}
.chip .icon { width: 16px; height: 16px; color: var(--gold-200); }
.chip .chip__x { width: 15px; height: 15px; color: rgba(255, 255, 255, .75); }
.chip:hover { background: var(--deal); transform: translateY(-1px); }
.chip:hover .chip__x { color: #fff; }

.chips__clear { margin-left: 4px; font-size: 14px; font-weight: 700; color: var(--forest-600); text-decoration: underline; text-underline-offset: 3px; }

/* Cards: the listing version of the offer card */

.offer.listing { grid-template-columns: minmax(280px, 360px) 1fr 220px; }

.offer__formerly { display: block; margin-top: 4px; font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--ink-2); }

.offer__desc--lead {
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.6;
}

.offer__per { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); }

.milesAway .icon { color: var(--cta); }

/* --------------------------------------------------------------------------
   Visitor's guide
   -------------------------------------------------------------------------- */

.guide { padding: clamp(70px, 8vw, 110px) 0; background: var(--paper-2); }

.guide__inner { max-width: 900px; }

.guide__head { margin-bottom: 30px; }

.guide__title {
	margin-top: 12px;
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(2.2rem, 4.2vw, 3.6rem);
	line-height: 1.05;
	letter-spacing: -.02em;
	color: var(--forest-800);
	text-wrap: balance;
}

.guide__content {
	padding: clamp(26px, 4vw, 52px);
	border-radius: var(--radius-lg);
	background: #fff;
	box-shadow: var(--shadow-sm);
	font-size: 17px;
	line-height: 1.75;
	color: var(--ink-2);
}

.guide__content > :first-child { margin-top: 0; }
.guide__content p { margin: 0 0 1.1em; }
.guide__content p:first-child { font-family: var(--font-display); font-size: clamp(19px, 1.8vw, 22px); line-height: 1.6; color: var(--ink); }

.guide__content h2, .guide__content h3, .guide__content h4 {
	margin: 1.8em 0 .6em;
	font-family: var(--font-display);
	font-weight: 500;
	line-height: 1.2;
	color: var(--forest-800);
	text-wrap: balance;
}
.guide__content h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.guide__content h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

.guide__content a { color: var(--forest-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(45, 108, 1, .35); }
.guide__content a:hover { color: var(--cta); text-decoration-color: currentColor; }

.guide__content ul { margin: 0 0 1.3em; padding: 0; display: grid; gap: 8px; }
.guide__content ul li { position: relative; padding-left: 26px; }
.guide__content ul li::before {
	content: "";
	position: absolute;
	left: 4px; top: .72em;
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--moss);
}

.guide__content ol { counter-reset: guide; margin: 0 0 1.4em; padding: 0; list-style: none; display: grid; gap: 10px; }
.guide__content ol li {
	counter-increment: guide;
	position: relative;
	padding: 12px 16px 12px 56px;
	border-radius: 14px;
	background: var(--paper);
	color: var(--ink);
}
.guide__content ol li::before {
	content: counter(guide);
	position: absolute;
	left: 12px; top: 50%;
	display: grid;
	place-items: center;
	width: 30px; height: 30px;
	margin-top: -15px;
	border-radius: 50%;
	background: var(--forest-700);
	color: #fff;
	font-weight: 800;
	font-size: 14px;
}

.guide__content table { width: 100%; margin: 0 0 1.6em; border-collapse: collapse; font-size: 15.5px; display: block; overflow-x: auto; }
.guide__content th, .guide__content td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.guide__content th { background: var(--forest-800); color: #fff; font-weight: 700; }
.guide__content th:first-child { border-radius: 12px 0 0 0; }
.guide__content th:last-child { border-radius: 0 12px 0 0; }
.guide__content tr:nth-child(even) td { background: var(--paper); }

.guide__content img { max-width: 100%; height: auto; margin: 1.2em 0; border-radius: var(--radius); }
.guide__content hr { margin: 2em 0; border: 0; border-top: 1px dashed var(--line); }

/* More fab getaways */

.getaways { margin-top: 36px; }
.getaways h2 { margin-bottom: 16px; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--forest-800); }
.getaways ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.getaways a {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 100%;
	padding: 16px 18px;
	border-radius: 16px;
	background: #fff;
	border: 1px solid var(--line);
	font-weight: 700;
	color: var(--forest-800);
	transition: transform .4s var(--ease-out), box-shadow .4s, border-color .3s;
}
.getaways a .icon:first-child { width: 20px; height: 20px; color: var(--gold-700); }
.getaways a .icon:last-child { width: 18px; height: 18px; margin-left: auto; color: var(--cta); transition: transform .35s var(--ease-out); }
.getaways a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.getaways a:hover .icon:last-child { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Phones and tablets: filters slide up from the bottom
   -------------------------------------------------------------------------- */

.filtersFab, .filtersBackdrop { display: none; }

@media (max-width: 1100px) {
	.offer.listing { grid-template-columns: 300px 1fr; }
}

@media (max-width: 1000px) {

	.listings__grid { grid-template-columns: 1fr; }

	.filters { position: static; display: block; }

	.filters__panel {
		position: fixed;
		left: 0; right: 0; bottom: 0;
		z-index: 190;
		max-height: 88vh;
		max-height: 88dvh;
		border-radius: 26px 26px 0 0;
		box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .45);
		transform: translateY(105%);
		visibility: hidden;
		transition: transform .5s var(--ease-out), visibility 0s .5s;
	}
	.filters.is-open .filters__panel { transform: none; visibility: visible; transition-delay: 0s; }

	.filters__head { position: relative; padding-top: 26px; }
	.filters__head::before {
		content: "";
		position: absolute;
		top: 9px; left: 50%;
		width: 44px; height: 5px;
		margin-left: -22px;
		border-radius: 5px;
		background: rgba(26, 34, 19, .18);
	}
	.filters__head .filters__clear { display: none; }

	.filters__close {
		display: grid;
		place-items: center;
		width: 40px; height: 40px;
		border-radius: 50%;
		background: var(--paper-2);
	}
	.filters__close .icon { width: 20px; height: 20px; }

	.filters__body { padding-bottom: 8px; }
	.fopt { padding: 11px 10px; }

	.filters__foot {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--line);
		background: #fff;
	}
	.filters__foot .btn { flex: 1; max-width: 260px; height: 52px; }

	.filtersBackdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 185;
		background: rgba(6, 14, 2, .5);
		-webkit-backdrop-filter: blur(2px);
		backdrop-filter: blur(2px);
		opacity: 0;
		visibility: hidden;
		transition: opacity .4s, visibility 0s .4s;
	}
	body.filters-open .filtersBackdrop { opacity: 1; visibility: visible; transition-delay: 0s; }

	.filtersFab {
		position: fixed;
		left: 50%;
		bottom: 18px;
		z-index: 95;
		display: inline-flex;
		align-items: center;
		gap: 10px;
		height: 52px;
		padding: 0 24px;
		border-radius: 999px;
		background: var(--forest-800);
		color: #fff;
		font-weight: 700;
		font-size: 15.5px;
		box-shadow: 0 16px 34px -14px rgba(10, 22, 4, .7);
		transform: translate(-50%, 90px);
		transition: transform .5s var(--ease-out), background-color .2s;
	}
	.filtersFab .icon { width: 19px; height: 19px; }
	.filtersFab.is-shown { transform: translate(-50%, 0); }
	.filtersFab:hover { background: var(--forest-700); }

	.filtersFab__count {
		display: grid;
		place-items: center;
		min-width: 22px;
		height: 22px;
		padding: 0 6px;
		border-radius: 999px;
		background: var(--orange);
		color: #1c1206;
		font-size: 12px;
		font-weight: 800;
	}
	.filtersFab__count[hidden] { display: none; }

	.moreDest { margin-top: 0; }
	.listings__main { order: -1; }
	.listings__grid > .filters { order: 2; }

	.getaways ul { grid-template-columns: 1fr; }

}

@media (max-width: 760px) {

	.offer.listing { grid-template-columns: 1fr; }

	.pageHero--listing .pageHero__inner { padding-top: calc(var(--announce-h) + 84px); padding-bottom: 128px; }
	.pageHero--listing .crumbs { margin-bottom: 12px; }
	/* The text runs across the whole photo on phones, so darken it evenly */
	.pageHero--listing .pageHero__shade {
		background: linear-gradient(180deg, rgba(9, 20, 3, .66) 0%, rgba(9, 20, 3, .52) 40%, rgba(9, 20, 3, .6) 75%, rgba(9, 20, 3, .74) 100%);
	}
	.listingSearch { margin-top: -108px; }
	.listingSearch__label { font-size: 12px; }

	.guide__content { font-size: 16px; }
	.guide__content ol li { padding-left: 52px; }

}

@media (prefers-reduced-motion: reduce) {
	.listingSearch__label, .listingSearch .searchCard { animation-name: fadeIn; }
}
