/* ==========================================================================
   Book Holiday Lodge - 2026 availability page
   Park cards with their breaks (lodge, date, nights, price, Book),
   notices, the phone search summary, and the "At a Glance" /
   "All dates" pop-ups. Cards, filters and the page header come from
   cards.css and listings.css; tokens from site.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Search summary (phones fold the search box away)
   -------------------------------------------------------------------------- */

.searchSummary { display: none; }

@media (max-width: 760px) {

	.searchSummary {
		display: flex;
		align-items: center;
		gap: 14px;
		width: 100%;
		padding: 14px 16px;
		border-radius: 20px;
		background: #fff;
		box-shadow: var(--shadow);
		text-align: left;
		color: var(--ink);
		animation: fadeUp 1s .5s var(--ease-out) both;
	}

	.searchSummary__icon {
		display: grid;
		place-items: center;
		flex: none;
		width: 44px; height: 44px;
		border-radius: 50%;
		background: var(--cta);
		color: #fff;
	}
	.searchSummary__icon .icon { width: 20px; height: 20px; }

	.searchSummary__text { display: grid; gap: 1px; min-width: 0; flex: 1; font-size: 14px; line-height: 1.35; color: var(--ink-2); }
	.searchSummary__text strong { font-size: 16px; color: var(--forest-800); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

	.searchSummary__edit {
		flex: none;
		padding: 8px 14px;
		border-radius: 999px;
		background: var(--paper-2);
		font-size: 14px;
		font-weight: 700;
		color: var(--forest-700);
	}

	/* The full search box opens underneath */
	.availPage .listingSearch .searchCard { display: none; margin-top: 12px; }
	.availPage .listingSearch.is-open .searchCard { display: block; animation: fadeUp .5s var(--ease-out) both; }
	.availPage .listingSearch.is-open .searchSummary__edit { background: var(--forest-700); color: #fff; }

}

/* --------------------------------------------------------------------------
   Notices
   -------------------------------------------------------------------------- */

.availNotice {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 14px;
	margin-bottom: 22px;
	padding: 16px 20px;
	border-radius: var(--radius);
	background: var(--cream);
	border-left: 4px solid var(--orange);
	color: var(--ink);
}
.availNotice > .icon { width: 24px; height: 24px; flex: none; color: var(--cta); }
.availNotice p { flex: 1 1 260px; margin: 0; font-size: 15.5px; line-height: 1.5; }

.availNotice--soft { background: #fff; border-left-color: var(--moss); box-shadow: var(--shadow-sm); }
.availNotice--soft > .icon { color: var(--forest-600); }

.offersEmpty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* Help box under the filters */

.availHelp {
	margin-top: 18px;
	padding: 20px 22px;
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow-sm);
	font-size: 14.5px;
	color: var(--ink-2);
}
.availHelp__title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 800; color: var(--forest-800); }
.availHelp__title .icon { width: 19px; height: 19px; color: var(--gold-700); }
.availHelp ul { display: grid; gap: 8px; padding-left: 18px; list-style: disc; }
.availHelp li::marker { color: var(--gold-400); }

@media (max-width: 1000px) {
	.availHelp { display: none; }
}

/* --------------------------------------------------------------------------
   Park card with its breaks
   -------------------------------------------------------------------------- */

.availList { gap: 26px; }

.avail {
	border-radius: var(--radius-lg);
	background: #fff;
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	transition: box-shadow .5s var(--ease-out);
	scroll-margin-top: 110px;
}
.avail:hover { box-shadow: var(--shadow); }

.avail .offer { border-radius: 0; box-shadow: none; min-height: 250px; }
.avail .offer:hover { transform: none; box-shadow: none; }

.offer__count {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--paper-2);
	font-size: 13.5px;
	font-weight: 700;
	color: var(--forest-700);
	transition: background-color .25s, color .25s;
}
.offer__count .icon { width: 15px; height: 15px; }
.offer__count:hover { background: var(--forest-700); color: #fff; }

/* The breaks */

.breaks {
	padding: 14px 18px 18px;
	background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 60%);
	border-top: 1px solid var(--line);
}

.breaks__head,
.break {
	display: grid;
	grid-template-columns: minmax(0, 1.75fr) 74px minmax(0, 1.35fr) 78px minmax(0, 1.25fr) 116px;
	align-items: center;
	gap: 14px;
}

.breaks__head {
	padding: 4px 18px 8px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--gold-700);
}

.breaks__list { display: grid; gap: 8px; }

.break {
	padding: 14px 14px 14px 18px;
	border-radius: 16px;
	background: #fff;
	border: 1px solid var(--line);
	transition: border-color .25s, box-shadow .4s var(--ease-out), transform .4s var(--ease-out);
}
.break:hover { border-color: rgba(45, 108, 1, .35); box-shadow: 0 14px 28px -20px rgba(20, 35, 10, .55); transform: translateY(-1px); }
.break.is-new { animation: fadeUp .5s var(--ease-out) both; }

.break__unit { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.break__name { font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--forest-800); }

.break__tag { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--paper-2); color: var(--gold-700); }
.break__tag .icon { width: 15px; height: 15px; }

.break__link {
	flex-basis: 100%;
	justify-self: start;
	padding: 0;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--forest-600);
	text-align: left;
	text-decoration: underline;
	text-decoration-color: rgba(45, 108, 1, .35);
	text-underline-offset: 3px;
	transition: color .2s, text-decoration-color .2s;
}
.break__link:hover { color: var(--cta); text-decoration-color: currentColor; }

.break__sleeps, .break__nights { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.break__sleeps .icon, .break__nights .icon { width: 17px; height: 17px; color: var(--gold-700); }
.break__lbl { display: none; }

.break__date { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.break__day { font-weight: 700; color: var(--ink); }

.break__yours {
	padding: 3px 9px;
	border-radius: 999px;
	background: rgba(255, 120, 17, .14);
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #b44d00;
}

.break__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.break__was { font-size: 15px; color: var(--ink-2); text-decoration-color: var(--deal); text-decoration-thickness: 2px; }
.break__now { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; line-height: 1.1; letter-spacing: -.01em; color: var(--forest-800); }
.break__save {
	padding: 3px 9px;
	border-radius: 8px;
	background: var(--deal);
	font-size: 12.5px;
	font-weight: 800;
	color: #fff;
}
.break__pet { flex-basis: 100%; font-size: 13px; color: var(--ink-2); }

.break__book { height: 46px; padding: 0 1em; font-size: 15px; }
.break__book .icon { width: 17px; height: 17px; }

/* Show more breaks */

.breaks__more {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: 10px;
	padding: 12px;
	border-radius: 14px;
	border: 1.5px dashed rgba(45, 108, 1, .3);
	font-weight: 700;
	font-size: 15px;
	color: var(--forest-700);
	transition: background-color .25s, border-color .25s;
}
.breaks__more .icon { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.breaks__more:hover { background: #fff; border-color: var(--forest-600); }
.breaks__more[aria-expanded="true"] .icon { transform: rotate(180deg); }
.breaks__more.is-loading { opacity: .6; pointer-events: none; }

.breaks__cap { margin: 10px 0 0; font-size: 14px; text-align: center; color: var(--ink-2); }

/* Tablets and phones: each break becomes a small card */

@media (max-width: 1100px) {

	.breaks__head { display: none; }
	.break__lbl { display: inline; }

	.break {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 8px 16px;
		padding: 16px;
	}

	.break__unit { order: 1; flex: 1 1 100%; }
	.break__date { order: 2; }
	.break__sleeps { order: 3; }
	.break__nights { order: 4; }
	.break__price { order: 5; }
	.break__book { order: 6; }
	.break__link { flex-basis: auto; }
	.break__unit .break__link { margin-left: auto; }
	.break__date { flex: 1 1 100%; }
	.break__date .break__link { margin-left: auto; }
	.break__sleeps, .break__nights { font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
	.break__price { flex: 1 1 calc(100% - 150px); margin-top: 4px; padding-top: 12px; border-top: 1px dashed var(--line); }
	.break__book { flex: none; width: 130px; margin-top: 4px; }

}

@media (max-width: 760px) {

	.breaks { padding: 12px 12px 14px; }
	.break__price { flex-basis: 100%; }
	.break__book { width: 100%; }
	.offer__count { margin-top: 0; }

}

/* --------------------------------------------------------------------------
   Pop-ups
   -------------------------------------------------------------------------- */

.popup {
	width: min(900px, calc(100vw - 32px));
	max-width: none;
	max-height: min(90vh, 900px);
	padding: 0;
	border: 0;
	border-radius: var(--radius-lg);
	background: #fff;
	color: var(--ink);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
}
.popup[open] { animation: popupIn .45s var(--ease-out); }
.popup::backdrop { background: rgba(9, 20, 3, .6); backdrop-filter: blur(3px); }

@keyframes popupIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }

.popup__inner { position: relative; display: flex; flex-direction: column; max-height: inherit; }

.popup__body { overflow-y: auto; overscroll-behavior: contain; min-height: 200px; }
.popup__body.is-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.popup__wait { margin: 0; padding: 0 24px; font-size: 15px; text-align: center; color: var(--ink-2); }
.popup__body.is-loading::after {
	order: -1;
	content: "";
	width: 42px; height: 42px;
	border-radius: 50%;
	border: 3px solid var(--paper-2);
	border-top-color: var(--cta);
	animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.popup__close {
	position: absolute;
	top: 14px; right: 14px;
	z-index: 5;
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .95);
	color: var(--ink);
	box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5);
	transition: transform .35s var(--ease-out), background-color .2s;
}
.popup__close .icon { width: 20px; height: 20px; }
.popup__close:hover { transform: rotate(90deg); background: var(--cream); }

.popup__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px 20px;
	padding: 16px 26px;
	border-top: 1px solid var(--line);
	background: var(--paper);
}
.popup__foot[hidden] { display: none; }
.popup__when { font-size: 15px; color: var(--ink-2); }
.popup__when strong { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; color: var(--forest-800); }

.popup__error { margin: 0; padding: 60px 30px; text-align: center; font-family: var(--font-display); font-size: 20px; color: var(--forest-800); }

/* At a glance */

.glance { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }

.glance__media { min-height: 420px; }
.glance__media::after { background: linear-gradient(180deg, rgba(8, 18, 3, .25) 0%, rgba(8, 18, 3, 0) 30%, rgba(8, 18, 3, 0) 75%, rgba(8, 18, 3, .3) 100%); }
.glance__media .offer__nav { opacity: 1; transform: none; }

.glance__body { padding: 32px 30px 30px; }

.glance__park { display: flex; align-items: center; gap: 7px; margin: 0; padding-right: 40px; font-size: 14px; font-weight: 700; color: var(--gold-700); }
.glance__park .icon { width: 16px; height: 16px; flex: none; }

.glance__name { margin-top: 6px; padding-right: 40px; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.1; color: var(--forest-800); }

.glance__chips { margin-top: 14px; }

.glance__desc { margin: 16px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }

.glance__title { margin-top: 20px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-700); }

.glance__list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 16px; margin-top: 10px; }
.glance__list li { display: flex; align-items: flex-start; gap: 8px; font-size: 14.5px; line-height: 1.4; }
.glance__list .icon { width: 17px; height: 17px; margin-top: 1px; flex: none; color: var(--forest-600); }

/* All dates (calendar) */

.dates { padding: 30px; }

.dates__pick { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.dates__field { display: grid; gap: 5px; flex: 1 1 260px; }
.dates__field--nights { flex: 0 1 160px; }
.dates__field span { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-700); }
.dates__field select {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 48px;
	padding: 0 40px 0 16px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23856b2c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 14px;
	font: 600 15px var(--font-body);
	color: var(--ink);
	cursor: pointer;
}
.dates__field select:focus-visible { outline: 2.5px solid var(--orange); outline-offset: 2px; }

.cal { margin-top: 22px; }

.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cal__month { font-family: var(--font-display); font-size: 1.5rem; color: var(--forest-800); }

.cal__nav {
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: #fff;
	color: var(--forest-800);
	transition: background-color .2s, color .2s, transform .35s var(--ease-out);
}
.cal__nav .icon { width: 19px; height: 19px; }
.cal__nav:hover:not(:disabled) { background: var(--forest-700); color: #fff; transform: translateY(-2px); }
.cal__nav:disabled { opacity: .35; cursor: default; }
.cal__prev { transform: rotate(180deg); }

.cal__week, .cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal__week { margin-bottom: 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-align: center; color: var(--gold-700); }

.cal__day {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	min-height: 66px;
	padding: 6px 2px;
	border-radius: 12px;
	background: var(--paper-2);
	font-size: 13.5px;
	color: #59614f;
}
.cal__day--blank { background: none; }
.cal__day--past { color: #7d8473; background: var(--paper); }
.cal__num { font-weight: 700; }

.cal__day--open {
	background: #fff;
	border: 1px solid rgba(45, 108, 1, .28);
	color: var(--ink);
	transition: transform .3s var(--ease-out), box-shadow .3s, background-color .2s, border-color .2s;
}
.cal__day--open .cal__num { position: absolute; top: 5px; left: 8px; font-size: 12px; color: var(--ink-2); }
.cal__day--open s { margin-top: 10px; font-size: 11.5px; color: var(--ink-2); text-decoration-color: var(--deal); }
.cal__day--open strong { font-size: 15px; color: var(--forest-800); }
.cal__day--open s + strong { margin-top: 0; }
.cal__day--open:not(:has(s)) strong { margin-top: 12px; }
.cal__day--open:hover { transform: translateY(-2px); border-color: var(--forest-600); box-shadow: 0 12px 22px -14px rgba(20, 35, 10, .6); }

.cal__day.is-cheapest { background: #eef6e6; border-color: var(--forest-600); }
.cal__day.is-cheapest::after {
	content: "Best";
	position: absolute;
	top: 5px; right: 6px;
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--forest-600);
}
.cal__day.is-picked { box-shadow: 0 0 0 2.5px var(--orange); }

/* The chosen break: the arrival day and each night of the stay in orange (as before) */
.cal__day.is-stay { background: var(--cta-hover); border-color: var(--cta-hover); color: #fff; }
.cal__day.is-stay .cal__num,
.cal__day.is-stay strong,
.cal__day.is-stay s,
.cal__day.is-stay.is-cheapest::after { color: #fff; }
.cal__day.is-stay s { text-decoration-color: #fff; }
.cal__day.is-stay.is-picked { box-shadow: 0 0 0 2.5px var(--forest-800), 0 10px 22px -12px rgba(217, 90, 8, .9); }

.dates__summary { margin: 18px 0 0; font-size: 16px; color: var(--ink); }
.dates__summary strong { color: var(--forest-800); }

.dates__note { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.dates__note .icon { width: 17px; height: 17px; margin-top: 1px; flex: none; color: var(--gold-700); }

/* Phones: pop-ups slide up from the bottom */

@media (max-width: 760px) {

	.popup {
		width: 100vw;
		max-height: 92vh;
		margin: auto 0 0;
		border-radius: 24px 24px 0 0;
	}
	.popup[open] { animation: popupUp .45s var(--ease-out); }

	.glance { grid-template-columns: 1fr; }
	.glance__media { min-height: 0; aspect-ratio: 4 / 3; }
	.glance__body { padding: 22px 20px 24px; }
	.glance__list { grid-template-columns: 1fr; }

	.dates { padding: 22px 16px 24px; }
	.cal__week, .cal__grid { gap: 4px; }
	.cal__day { min-height: 56px; border-radius: 10px; }
	.cal__day--open .cal__num { top: 3px; left: 5px; font-size: 11px; }
	.cal__day--open strong { font-size: 13px; }
	.cal__day--open s { display: none; }
	.cal__day.is-cheapest::after { display: none; }

	.popup__foot { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); }
	.popup__foot .btn { flex: 1 1 100%; }

}

@keyframes popupUp { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
	.popup[open], .break.is-new, .searchSummary { animation: none; }
}

/* Calendar prices: the exact price, or rounded up to the pound on phones (it has to fit the day) */
.cal__short { display: none; }

@media (max-width: 560px) {
	.cal__full { display: none; }
	.cal__short { display: inline; }
	.cal__day--open strong { font-size: 12.5px; letter-spacing: -.01em; }
}

@media (max-width: 360px) {
	.cal__day--open strong { font-size: 11.5px; }
}
