/* ==========================================================================
   Cottage With a Hot Tub - 2026 design
   Region / county / filter listing pages (availability/show-region-or-county.php)
   Loads after home.css and uses its tokens, header, footer and search fields
   ========================================================================== */

.listingPage {
	background: var(--cream);
}

/* ---------- Hero band ---------- */

.listingHero {
	position: relative;
	padding: clamp(28px, 4vw, 52px) 0 clamp(92px, 9vw, 116px);
	color: var(--white);
	background: var(--slate);
	overflow: hidden;
	isolation: isolate;
}

.listingHeroImage {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.listingHeroImage img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 60%;
	transform: scale(1.06);
	animation: heroDrift 18s var(--ease) forwards;
}

@keyframes heroDrift {
	to { transform: scale(1); }
}

.listingHero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(38,40,50,.92) 0%, rgba(38,40,50,.78) 45%, rgba(38,40,50,.55) 100%),
		linear-gradient(180deg, rgba(38,40,50,.3), rgba(38,40,50,.85));
}

.listingHeroInner {
	max-width: var(--maxW);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.crumbs li {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--aqua);
}

.crumbs li + li::before {
	content: '';
	width: 5px;
	height: 5px;
	border-top: 1.5px solid rgba(255,255,255,.5);
	border-right: 1.5px solid rgba(255,255,255,.5);
	transform: rotate(45deg);
}

.crumbs a {
	color: rgba(255,255,255,.78);
	transition: color .45s var(--easeHover);
}

.crumbs a:hover {
	color: var(--white);
}

.listingTitle {
	max-width: 900px;
	margin: 0;
	font-family: var(--serif);
	font-size: clamp(36px, 4.6vw, 62px);
	font-weight: 500;
	line-height: 1.04;
	letter-spacing: -.01em;
	color: var(--white);
	text-wrap: balance;
}

.listingTitle strong {
	font-weight: 500;
	font-style: italic;
	color: var(--aqua);
}

.listingIntro {
	max-width: 640px;
	margin: 16px 0 0;
	font-size: 16.5px;
	font-weight: 300;
	line-height: 1.65;
	color: rgba(255,255,255,.82);
}

/* ---------- Search bar (overlaps the hero) ---------- */

.listingSearchWrap {
	position: relative;
	z-index: 5;
	max-width: var(--maxW);
	margin: -66px auto 0;
	padding: 0 var(--gutter);
}

.listingSearch {
	color: var(--ink);
	background: var(--white);
	border-radius: 6px;
	box-shadow: 0 24px 50px -24px rgba(20,22,30,.45), 0 0 0 1px rgba(0,0,0,.03);
}

.listingSearch .searchFields {
	padding: 8px;
}

.listingSearch .searchField {
	padding: 8px 18px;
}

.listingSearch .searchGo {
	min-height: 58px;
}

.searchSummary {
	display: none;
}

/* ---------- Layout ---------- */

.listingLayout {
	display: grid;
	grid-template-columns: 286px minmax(0, 1fr);
	gap: clamp(28px, 3vw, 44px);
	align-items: start;
	max-width: var(--maxW);
	margin: 0 auto;
	padding: clamp(30px, 3.5vw, 48px) var(--gutter) clamp(56px, 6vw, 90px);
}

/* ---------- Filters ---------- */

.filterPanel {
	position: relative;
}

.filterHead,
.filterFoot {
	display: none;
}

.filterGroup {
	border-top: 1px solid var(--line);
}

.filterGroup:last-of-type {
	border-bottom: 1px solid var(--line);
}

.filterGroupHead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 18px 0;
	border: 0;
	background: none;
	color: var(--ink);
	font-family: var(--sans);
	font-size: 15px;
	font-weight: 500;
	text-align: left;
	cursor: pointer;
}

.filterGroupHead i {
	font-size: 12px;
	color: var(--teal);
	transition: transform .45s var(--ease);
}

.filterGroupHead[aria-expanded='true'] i {
	transform: rotate(180deg);
}

.filterGroupBody {
	display: grid;
	grid-template-rows: 1fr;
	transition: grid-template-rows .5s var(--ease);
}

.filterGroupHead[aria-expanded='false'] + .filterGroupBody {
	grid-template-rows: 0fr;
}

.filterGroupInner {
	min-height: 0;
	overflow: hidden;
}

.filterGroupInner > :last-child {
	margin-bottom: 18px;
}

.filterCheck {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 7px 0;
	color: var(--text);
	font-size: 15px;
	cursor: pointer;
	transition: color .45s var(--easeHover);
}

.filterCheck:hover {
	color: var(--ink);
}

.filterCheck input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.checkBox {
	position: relative;
	flex: none;
	width: 22px;
	height: 22px;
	border: 1.5px solid #c9c4b8;
	border-radius: 4px;
	background: var(--white);
	transition: background-color .45s var(--easeHover), border-color .45s var(--easeHover);
}

.filterCheck input[type='radio'] + .checkBox {
	border-radius: 50%;
}

.checkBox::after {
	content: '';
	position: absolute;
	left: 6.5px;
	top: 2.5px;
	width: 6px;
	height: 11px;
	border: solid var(--white);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) scale(0);
	transition: transform .3s var(--ease);
}

.filterCheck input[type='radio'] + .checkBox::after {
	left: 5px;
	top: 5px;
	width: 9px;
	height: 9px;
	border: 0;
	border-radius: 50%;
	background: var(--white);
	transform: scale(0);
}

.filterCheck:hover .checkBox {
	border-color: var(--teal);
}

.filterCheck input:checked + .checkBox {
	background: var(--teal);
	border-color: var(--teal);
}

.filterCheck input:checked + .checkBox::after {
	transform: rotate(45deg) scale(1);
}

.filterCheck input[type='radio']:checked + .checkBox::after {
	transform: scale(1);
}

.filterCheck input:focus-visible + .checkBox {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.filterCheck i {
	width: 16px;
	color: var(--muted);
	font-size: 13px;
	text-align: center;
}

.filterLabel {
	flex: 1;
}

.filterCount {
	min-width: 34px;
	padding: 2px 8px;
	border-radius: 20px;
	background: #ece8df;
	color: var(--muted);
	font-size: 12px;
	text-align: center;
	transition: opacity .3s;
}

.filterCount:empty {
	display: none;
}

.filterCheck.isEmpty {
	opacity: .45;
}

/* destinations + you may like */

.filterLinks {
	margin: 0;
	padding: 0;
	list-style: none;
}

.filterLinks a {
	display: block;
	padding: 6px 0;
	color: var(--text);
	font-size: 14.5px;
	transition: color .45s var(--easeHover), transform .6s var(--easeHover);
}

.filterLinks a:hover {
	color: var(--teal);
	transform: translateX(3px);
}

.filterLinks .isCurrent > a {
	color: var(--teal);
	font-weight: 500;
}

.filterRegion > a {
	color: var(--ink);
	font-weight: 500;
}

.filterRegion ul {
	margin: 0 0 6px;
	padding: 0 0 0 14px;
	list-style: none;
	border-left: 1px solid var(--line);
}

.filterRegion ul a {
	font-size: 14px;
}

.filterHelp {
	margin-top: 26px;
	padding: 22px;
	border-radius: 6px;
	background: var(--slate);
	color: rgba(255,255,255,.8);
	font-size: 14px;
	line-height: 1.6;
}

.filterHelp strong {
	display: block;
	margin-bottom: 6px;
	font-family: var(--serif);
	font-size: 22px;
	font-weight: 500;
	color: var(--white);
}

.filterHelp a {
	color: var(--aqua);
	word-break: break-word;
}

/* ---------- Results toolbar ---------- */

.resultsToolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}

.resultsCount {
	margin: 0;
	font-family: var(--sans);
	font-size: 20px;
	font-weight: 400;
	color: var(--ink);
}

.resultsCount strong {
	font-weight: 600;
}

.resultsTools {
	display: flex;
	align-items: center;
	gap: 10px;
}

.sortBox {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 0 14px;
	height: 46px;
	border: 1px solid var(--line);
	border-radius: 4px;
	background: var(--white);
	color: var(--teal);
	transition: border-color .45s var(--easeHover);
}

.sortBox:hover {
	border-color: var(--teal);
}

.sortBox select {
	padding: 0 22px 0 0;
	border: 0;
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2332759A' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right center;
	color: var(--ink);
	font-family: var(--sans);
	font-size: 15px;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.filtersOpen {
	display: none;
	align-items: center;
	gap: 10px;
	height: 46px;
	padding: 0 16px;
	border: 1px solid var(--teal);
	border-radius: 4px;
	background: var(--white);
	color: var(--teal);
	font-family: var(--sans);
	font-size: 15px;
	cursor: pointer;
}

.filtersBadge {
	display: inline-grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 11px;
	background: var(--accent);
	color: var(--white);
	font-size: 12px;
	font-weight: 600;
}

.filtersBadge:empty {
	display: none;
}

/* active filter chips */

.activeChips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: -8px 0 22px;
}

.activeChips:empty {
	display: none;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px 7px 14px;
	border: 1px solid #cfe3e6;
	border-radius: 30px;
	background: var(--aquaPale);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 13.5px;
	cursor: pointer;
	transition: background-color .45s var(--easeHover), border-color .45s var(--easeHover);
}

.chip:hover {
	background: var(--white);
	border-color: var(--teal);
}

.chip i {
	font-size: 11px;
	color: var(--teal);
}

.chipClear {
	border-color: transparent;
	background: none;
	color: var(--teal);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Results ---------- */

#theResults {
	position: relative;
	transition: opacity .3s;
}

#theResults.isLoading {
	opacity: .45;
	pointer-events: none;
}

.resultsLoader {
	position: fixed;
	left: 50%;
	top: 50%;
	z-index: 50;
	width: 46px;
	height: 46px;
	margin: -23px 0 0 -23px;
	border: 3px solid rgba(50,117,154,.2);
	border-top-color: var(--teal);
	border-radius: 50%;
	opacity: 0;
	visibility: hidden;
	animation: spin .8s linear infinite;
	transition: opacity .2s, visibility .2s;
}

.resultsLoader.isVisible {
	opacity: 1;
	visibility: visible;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

.listingMain {
	min-width: 0;
}

.resultsList {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
}

/* ---------- Cottage card ---------- */

.cottageCard {
	display: grid;
	grid-template-columns: minmax(0, 38%) minmax(0, 1fr) 232px;
	min-height: 262px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--white);
	overflow: hidden;
	box-shadow: 0 26px 50px -28px rgba(30,32,44,0);
	transition: box-shadow .6s var(--easeHover), border-color .6s var(--easeHover);
	animation: cardIn .7s var(--ease) both;
	animation-delay: calc(var(--i, 0) * 60ms);
}

@keyframes cardIn {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: none; }
}

/* cards don't move on hover - the shadow and border just fade in */
@media (hover: hover) {
	.cottageCard:hover {
		border-color: #ddd6c8;
		box-shadow: 0 26px 50px -28px rgba(30,32,44,.38);
	}
}

/* gallery */

.cardGallery {
	position: relative;
	min-height: 240px;
	background: #e9e5dc;
}

.galleryTrack {
	position: absolute;
	inset: 0;
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
}

.galleryTrack::-webkit-scrollbar {
	display: none;
}

.galleryTrack img {
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	object-fit: cover;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.galleryBtn {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	margin-top: -18px;
	border: 0;
	border-radius: 50%;
	background: rgba(255,255,255,.92);
	color: var(--ink);
	font-size: 13px;
	box-shadow: 0 6px 16px -6px rgba(0,0,0,.4);
	cursor: pointer;
	opacity: 0;
	transition: opacity .45s var(--easeHover), transform .6s var(--easeHover), background-color .45s var(--easeHover);
}

.galleryPrev {
	left: 12px;
	transform: translateX(-6px);
}

.galleryNext {
	right: 12px;
	transform: translateX(6px);
}

.cottageCard:hover .galleryBtn,
.galleryBtn:focus-visible {
	opacity: 1;
	transform: none;
}

.galleryBtn:hover {
	background: var(--white);
}

.galleryBtn[disabled] {
	visibility: hidden;
}

.galleryCount {
	position: absolute;
	left: 12px;
	bottom: 12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 10px;
	border-radius: 3px;
	background: rgba(255,255,255,.94);
	color: var(--ink);
	font-size: 13px;
	pointer-events: none;
}

.galleryCount i {
	color: var(--muted);
}

.favBtn {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba(255,255,255,.94);
	color: var(--ink);
	font-size: 17px;
	box-shadow: 0 6px 16px -8px rgba(0,0,0,.45);
	cursor: pointer;
	transition: transform .6s var(--easeHover), color .45s var(--easeHover);
}

.favBtn:hover {
	transform: scale(1.08);
	color: #e0475b;
}

.favBtn .fa-solid {
	display: none;
}

.favBtn.isSaved {
	color: #e0475b;
}

.favBtn.isSaved .fa-regular {
	display: none;
}

.favBtn.isSaved .fa-solid {
	display: inline-block;
	animation: favPop .5s var(--ease);
}

@keyframes favPop {
	0% { transform: scale(.4); }
	60% { transform: scale(1.25); }
	100% { transform: scale(1); }
}

.cardTag {
	position: absolute;
	top: 14px;
	left: 0;
	z-index: 2;
	padding: 6px 12px 6px 12px;
	border-radius: 0 3px 3px 0;
	background: var(--accent);
	color: var(--white);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	pointer-events: none;
}

/* body */

.cardMain {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 22px 24px;
}

.cardTitle {
	margin: 0;
	font-family: var(--serif);
	font-size: 26px;
	font-weight: 600;
	line-height: 1.12;
	color: var(--ink);
}

.cardTitle a {
	color: inherit;
	background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
	transition: background-size .6s var(--easeHover), color .45s var(--easeHover);
}

.cardTitle a:hover {
	color: var(--teal);
	background-size: 100% 1px;
}

.formerlyText {
	display: block;
	margin-top: 2px;
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 400;
	color: var(--muted);
}

.cardLocation {
	margin-top: 6px;
	color: var(--muted);
	font-size: 14.5px;
}

.cardLocation a {
	color: var(--muted);
	transition: color .45s var(--easeHover);
}

.cardLocation a:hover {
	color: var(--teal);
}

.cardLocation i {
	margin-right: 6px;
	color: var(--teal);
	font-size: 12px;
}

.milesAway {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	align-self: flex-start;
	margin-top: 8px;
	padding: 3px 10px;
	border-radius: 20px;
	background: var(--aquaPale);
	color: var(--teal);
	font-size: 12.5px;
}

.cardRating {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
}

.ratingBadge {
	display: inline-grid;
	place-items: center;
	min-width: 42px;
	height: 32px;
	padding: 0 8px;
	border-radius: 6px 6px 6px 0;
	background: var(--slate);
	color: var(--white);
	font-size: 15px;
	font-weight: 600;
}

.ratingText {
	font-size: 13px;
	line-height: 1.3;
	color: var(--muted);
}

.ratingText strong {
	display: block;
	font-size: 14.5px;
	font-weight: 500;
	color: var(--ink);
}

.cardDesc {
	display: -webkit-box;
	margin: 14px 0 0;
	overflow: hidden;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--text);
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.cardFacts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: auto 0 0;
	padding: 16px 0 0;
	list-style: none;
	font-size: 14px;
	color: var(--ink);
}

.cardFacts li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.cardFacts i {
	color: var(--teal);
	font-size: 14px;
}

/* side column: price, features, button */

.cardSide {
	display: flex;
	flex-direction: column;
	padding: 22px 22px 22px 22px;
	border-left: 1px solid var(--line);
}

.priceLabel {
	font-size: 13.5px;
	color: var(--muted);
}

.priceValue {
	display: block;
	font-family: var(--sans);
	font-size: 30px;
	font-weight: 600;
	line-height: 1.1;
	color: var(--ink);
}

.priceValue.isCheck {
	font-family: var(--serif);
	font-size: 23px;
	font-weight: 600;
}

.petPrice {
	margin-top: 4px;
	font-size: 12.5px;
	color: var(--muted);
}

.cardFeatures {
	display: grid;
	gap: 9px;
	margin: 18px 0 20px;
	padding: 0;
	list-style: none;
	font-size: 14px;
	color: var(--ink);
}

.cardFeatures li {
	display: flex;
	align-items: center;
	gap: 9px;
}

.cardFeatures i {
	color: #2f9d6a;
	font-size: 16px;
}

.cardCta {
	width: 100%;
	box-shadow: 0 14px 30px -14px rgba(50,117,154,0);
	margin-top: auto;
	padding: 15px 16px;
	font-size: 12px;
}

/* the card's button fades to teal but doesn't lift */
.cardCta:hover {
	transform: none;
}

/* ---------- No results ---------- */

.noResults {
	padding: clamp(32px, 5vw, 56px);
	border: 1px dashed #d6cfbf;
	border-radius: 6px;
	background: var(--white);
	text-align: center;
}

.noResults i {
	font-size: 34px;
	color: var(--teal);
}

.noResults h2 {
	margin: 14px 0 8px;
	font-family: var(--serif);
	font-size: 32px;
	font-weight: 500;
	color: var(--ink);
}

.noResults p {
	max-width: 520px;
	margin: 0 auto 22px;
}

/* ---------- Pagination ---------- */

.pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 40px;
}

.pager a,
.pager span {
	display: inline-grid;
	place-items: center;
	min-width: 46px;
	height: 46px;
	padding: 0 12px;
	border-radius: 50%;
	color: var(--ink);
	font-size: 15px;
	transition: background-color .45s var(--easeHover), color .45s var(--easeHover);
}

.pager a:hover {
	background: var(--white);
	color: var(--teal);
}

.pager .isCurrent {
	background: var(--slate);
	color: var(--white);
}

.pager .pagerGap {
	min-width: 20px;
	padding: 0;
	color: var(--muted);
}

.pager .pagerStep {
	gap: 10px;
	display: inline-flex;
	padding: 0 20px;
	border: 1px solid var(--line);
	border-radius: 30px;
	background: var(--white);
	font-size: 13px;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.pager .pagerStep:hover {
	border-color: var(--teal);
}

.pagerInfo {
	margin-top: 14px;
	text-align: center;
	color: var(--muted);
	font-size: 13.5px;
}

/* ---------- Guide article under the results ---------- */

.listingArticle {
	padding: clamp(56px, 7vw, 100px) var(--gutter);
	background: var(--white);
	border-top: 1px solid var(--line);
}

.listingArticleInner {
	max-width: 820px;
	margin: 0 auto;
	font-size: 17px;
	line-height: 1.8;
	color: var(--text);
}

.listingArticleInner h2,
.listingArticleInner h3,
.listingArticleInner h4 {
	font-family: var(--serif);
	font-weight: 500;
	line-height: 1.15;
	color: var(--ink);
	text-wrap: balance;
}

.listingArticleInner h2 {
	margin: 1.9em 0 .55em;
	font-size: clamp(30px, 3.2vw, 42px);
}

.listingArticleInner h2:first-child {
	margin-top: 0;
}

.listingArticleInner h3 {
	margin: 1.6em 0 .45em;
	font-size: clamp(24px, 2.4vw, 30px);
}

.listingArticleInner h4 {
	margin: 1.4em 0 .4em;
	font-size: 22px;
}

.listingArticleInner p {
	margin: 0 0 1.15em;
}

.listingArticleInner a {
	color: var(--teal);
	text-decoration: underline;
	text-decoration-color: rgba(50,117,154,.35);
	text-underline-offset: 3px;
	transition: text-decoration-color .45s var(--easeHover);
}

.listingArticleInner a:hover {
	text-decoration-color: currentColor;
}

.listingArticleInner img {
	width: 100%;
	height: auto;
	margin: 1.6em 0 .6em;
	border-radius: 6px;
}

.listingArticleInner figure {
	margin: 1.6em 0;
}

.listingArticleInner figcaption,
.listingArticleInner .picCaption {
	margin-bottom: 1.4em;
	font-size: 14px;
	color: var(--muted);
	text-align: center;
}

.listingArticleInner ul,
.listingArticleInner ol {
	margin: 0 0 1.3em;
	padding-left: 1.3em;
}

.listingArticleInner li {
	margin-bottom: .45em;
}

.listingArticleInner li::marker {
	color: var(--teal);
}

.listingArticleInner hr {
	margin: 2.6em auto;
	width: 90px;
	border: 0;
	border-top: 1px solid var(--teal);
}

.listingArticleInner table {
	width: 100%;
	margin: 1.6em 0;
	border-collapse: collapse;
	font-size: 15px;
	display: block;
	overflow-x: auto;
}

.listingArticleInner th,
.listingArticleInner td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.listingArticleInner th {
	background: var(--cream);
	color: var(--ink);
	font-weight: 500;
}

.listingArticleInner blockquote {
	margin: 1.6em 0;
	padding: 6px 0 6px 24px;
	border-left: 2px solid var(--accent);
	font-family: var(--serif);
	font-size: 23px;
	font-style: italic;
	color: var(--ink);
}

/* ---------- Mobile filter drawer shade ---------- */

.filterShade {
	position: fixed;
	inset: 0;
	z-index: 390;
	background: rgba(22,24,31,.5);
	opacity: 0;
	visibility: hidden;
	transition: opacity .4s, visibility .4s;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {

	.cottageCard {
		grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
	}

	.cardSide {
		grid-column: 2;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 12px 20px;
		padding: 0 24px 22px;
		border-left: 0;
	}

	.cardMain {
		padding-bottom: 16px;
	}

	.cardPrice {
		margin-right: auto;
	}

	.cardFeatures {
		display: none;
	}

	.cardCta {
		width: auto;
		margin-top: 0;
		padding: 15px 24px;
	}
}

@media (max-width: 1024px) {

	.listingLayout {
		grid-template-columns: minmax(0, 1fr);
	}

	/* filters become an off-canvas drawer */

	.filterPanel {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 400;
		display: flex;
		flex-direction: column;
		width: min(400px, 90vw);
		max-height: none;
		padding: 0;
		background: var(--white);
		box-shadow: 30px 0 60px -30px rgba(0,0,0,.4);
		transform: translateX(-104%);
		transition: transform .5s var(--ease);
		overflow: hidden;
	}

	.filtersOpenState .filterPanel {
		transform: none;
	}

	.filtersOpenState .filterShade {
		opacity: 1;
		visibility: visible;
	}

	.filtersOpenState {
		overflow: hidden;
	}

	.filterHead {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: calc(16px + env(safe-area-inset-top, 0px)) 22px 16px;
		border-bottom: 1px solid var(--line);
		font-family: var(--serif);
		font-size: 26px;
		font-weight: 500;
		color: var(--ink);
	}

	.filterClose {
		display: grid;
		place-items: center;
		width: 42px;
		height: 42px;
		border: 0;
		border-radius: 50%;
		background: var(--cream);
		color: var(--ink);
		font-size: 18px;
		cursor: pointer;
	}

	.filterScroll {
		flex: 1;
		overflow-y: auto;
		padding: 0 22px 20px;
		overscroll-behavior: contain;
	}

	.filterGroup:first-child {
		border-top: 0;
	}

	.filterFoot {
		display: flex;
		gap: 10px;
		padding: 14px 22px calc(14px + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid var(--line);
		background: var(--white);
	}

	.filterFoot .btn {
		flex: 1;
		padding: 16px 12px;
	}

	.filterReset {
		flex: none !important;
		background: none;
		color: var(--teal);
		border: 1px solid var(--line) !important;
	}

	.filtersOpen {
		display: inline-flex;
	}

	.filterHelp {
		display: none;
	}
}

@media (max-width: 760px) {

	.listingHero {
		padding: 20px 0 30px;
	}

	.crumbs {
		margin-bottom: 12px;
		font-size: 11px;
	}

	.listingTitle {
		font-size: 34px;
	}

	.listingIntro {
		display: none;
	}

	/* search collapses behind a summary button */

	.listingSearchWrap {
		margin-top: 0;
		padding: 0;
	}

	.listingSearch {
		border-radius: 0;
		box-shadow: 0 10px 24px -18px rgba(0,0,0,.4);
	}

	.searchSummary {
		display: flex;
		align-items: center;
		gap: 12px;
		width: 100%;
		padding: 14px var(--gutter);
		border: 0;
		background: var(--white);
		color: var(--ink);
		font-family: var(--sans);
		font-size: 15px;
		text-align: left;
		cursor: pointer;
	}

	.searchSummary > i:first-child {
		color: var(--teal);
	}

	.searchSummaryText {
		flex: 1;
		min-width: 0;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	.searchSummaryText small {
		display: block;
		color: var(--muted);
		font-size: 12.5px;
	}

	.searchSummaryEdit {
		color: var(--teal);
		font-size: 12px;
		font-weight: 500;
		letter-spacing: .14em;
		text-transform: uppercase;
	}

	.listingSearch form {
		display: none;
		border-top: 1px solid var(--line);
	}

	.listingSearch.isOpen form {
		display: block;
		animation: panelIn .45s var(--ease);
	}

	.listingLayout {
		padding-top: 22px;
	}

	.resultsToolbar {
		flex-wrap: wrap;
		gap: 12px;
		margin-bottom: 16px;
	}

	.resultsCount {
		width: 100%;
		font-size: 17px;
	}

	.resultsTools {
		width: 100%;
	}

	.resultsTools > * {
		flex: 1 1 0;
		min-width: 0;
		justify-content: center;
	}

	.sortBox select {
		width: 100%;
		font-size: 14.5px;
	}

	.activeChips {
		margin-top: -4px;
	}

	/* card stacks: photo on top */

	.cottageCard {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}

	.cardGallery {
		aspect-ratio: 4 / 3;
		min-height: 0;
	}

	.galleryBtn {
		display: none;
	}

	.cardMain {
		padding: 18px 18px 12px;
	}

	.cardTitle {
		font-size: 24px;
	}

	.cardDesc {
		-webkit-line-clamp: 2;
	}

	.cardSide {
		grid-column: auto;
		padding: 14px 18px 18px;
		border-top: 1px solid var(--line);
	}

	.priceValue {
		font-size: 25px;
	}

	.priceValue.isCheck {
		font-size: 20px;
	}

	.cardCta {
		padding: 14px 18px;
	}

	.pager a,
	.pager span {
		min-width: 40px;
		height: 40px;
	}

	.pager .pagerStep {
		padding: 0 14px;
	}

	.pager .pagerStepText {
		display: none;
	}

	.listingArticleInner {
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {

	.cottageCard,
	.listingHeroImage img {
		animation: none;
	}

	.galleryTrack {
		scroll-behavior: auto;
	}
}
