/* ==========================================================================
   Lodges With Hot Tubs - 2026 special offers page
   Deal types and filters. The page header, cards and pagination are in
   cards.css; tokens and components in site.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Filters
   -------------------------------------------------------------------------- */

.offersTool { position: relative; padding-bottom: clamp(70px, 8vw, 120px); }

.offersFilters {
	position: relative;
	z-index: 5;
	margin-top: -84px;
	padding: 12px;
	border-radius: 26px;
	background: rgba(251, 248, 241, .97);
	box-shadow: var(--shadow-lg);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	animation: fadeUp 1.1s .55s var(--ease-out) both;
}

.dealTypes {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin: 0 0 12px;
	padding: 0;
	border: 0;
	min-width: 0;
}

.dealType {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	border-radius: 18px;
	background: #fff;
	border: 1px solid var(--line);
	cursor: pointer;
	transition: background-color .3s, border-color .3s, box-shadow .3s, transform .4s var(--ease-out);
}
.dealType:hover { border-color: rgba(36, 89, 0, .35); transform: translateY(-2px); }
.dealType input { position: absolute; opacity: 0; pointer-events: none; }

.dealType__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 46px; height: 46px;
	border-radius: 14px;
	background: var(--cream);
	color: var(--forest-700);
	transition: background-color .3s, color .3s;
}
.dealType__icon .icon { width: 22px; height: 22px; }

.dealType__text { display: flex; flex-direction: column; line-height: 1.25; }
.dealType__text strong { font-family: var(--font-display); font-weight: 500; font-size: 21px; color: var(--forest-800); transition: color .3s; }
.dealType__text small { margin-top: 3px; font-size: 13.5px; color: var(--ink-2); transition: color .3s; }

.dealType:has(input:checked) {
	background: var(--forest-800);
	border-color: var(--forest-800);
	box-shadow: 0 14px 30px -16px rgba(22, 51, 10, .8);
}
.dealType:has(input:checked) .dealType__icon { background: var(--orange); color: #fff; }
.dealType:has(input:checked) .dealType__text strong { color: #fff; }
.dealType:has(input:checked) .dealType__text small { color: rgba(255, 255, 255, .72); }
.dealType:has(input:focus-visible) { outline: 2.5px solid var(--orange); outline-offset: 3px; }

/* Fallback for browsers without :has() */
.dealType.is-checked { background: var(--forest-800); border-color: var(--forest-800); }
.dealType.is-checked .dealType__icon { background: var(--orange); color: #fff; }
.dealType.is-checked .dealType__text strong { color: #fff; }
.dealType.is-checked .dealType__text small { color: rgba(255, 255, 255, .72); }

.offersFields {
	display: grid;
	grid-template-columns: repeat(3, 1fr) auto;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 18px;
}
.offersFields .field:first-child { border-radius: 18px 0 0 18px; }
.offersFields .field:nth-child(3) { border-right: 0; }
.offersFields select:disabled { opacity: .45; cursor: not-allowed; }
.offersGo { margin: 7px; border-radius: 14px; height: auto; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 760px) {
	.offersFilters { margin-top: -76px; padding: 8px; border-radius: 22px; }

	.dealTypes { gap: 6px; margin-bottom: 8px; }
	.dealType { flex-direction: column; justify-content: center; gap: 8px; padding: 12px 6px; border-radius: 16px; text-align: center; }
	.dealType__icon { width: 38px; height: 38px; border-radius: 12px; }
	.dealType__icon .icon { width: 19px; height: 19px; }
	.dealType__text strong { font-size: 16.5px; }
	.dealType__text small { display: none; }

	.offersFields { grid-template-columns: 1fr 1fr; border-radius: 16px; }
	.offersFields .field { padding: 11px 14px; }
	.offersFields .field--region { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); border-radius: 16px 16px 0 0; }
	.offersFields .field--date { border-right: 1px solid var(--line); border-radius: 0 0 0 16px; }
	.offersFields .field--sleeps { border-radius: 0 0 16px 0; }
	.offersGo { grid-column: 1 / -1; min-height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
	.offersFilters { animation-name: fadeIn; }
}
