/* Property Listing Page Step 5: editorial PropertyHive result cards. */

.swre-property-archive .swre-property-card {
	background: #fffdf9;
	border: 1px solid #e2dbce;
	border-radius: 5px;
	box-shadow: 0 6px 18px rgba(36, 32, 29, 0.045);
	min-height: 0;
	overflow: hidden;
	position: relative;
	transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.swre-property-archive .swre-property-card:hover {
	border-color: rgba(217, 174, 43, 0.72);
	box-shadow: 0 14px 30px rgba(36, 32, 29, 0.12);
	transform: translateY(-3px);
}

.swre-property-archive .swre-property-results--grid .swre-property-card {
	display: flex;
	flex-direction: column;
}

.swre-property-archive .swre-property-results--list .swre-property-card {
	display: grid;
	grid-template-columns: minmax(300px, 42%) minmax(0, 1fr);
}

.swre-property-archive .swre-property-card__media {
	background: #ede7da;
	height: auto;
	min-height: 0;
	overflow: hidden;
	position: relative;
}

.swre-property-archive .swre-property-results--grid .swre-property-card__media {
	aspect-ratio: 16 / 10;
}

.swre-property-archive .swre-property-results--list .swre-property-card__media {
	min-height: 290px;
}

.swre-property-archive .swre-property-card__image-link {
	display: block;
	height: 100%;
	inset: 0;
	overflow: hidden;
	position: absolute;
	width: 100%;
}

.swre-property-archive .swre-property-card__image {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
	width: 100%;
}

.swre-property-archive .swre-property-card:hover .swre-property-card__image.is-active {
	transform: scale(1.035);
}

.swre-property-archive .swre-property-card__image--placeholder {
	align-items: center;
	background:
		linear-gradient(135deg, rgba(217, 174, 43, 0.08), rgba(11, 11, 13, 0.05)),
		#f7f3e9;
	color: #8a6810;
	display: flex;
	font-family: var(--swrep-font, Manrope, Arial, sans-serif);
	font-size: 0.78rem;
	font-weight: 800;
	justify-content: center;
	letter-spacing: 0.08em;
	padding: 28px;
	text-align: center;
	text-transform: uppercase;
}

.swre-property-archive .swre-property-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	left: 12px;
	max-width: calc(100% - 72px);
	position: absolute;
	top: 12px;
	z-index: 3;
}

.swre-property-archive .swre-property-badge {
	background: rgba(255, 253, 249, 0.94);
	border-radius: 2px;
	color: #24201d;
	font-size: 0.57rem;
	font-weight: 850;
	letter-spacing: 0.055em;
	line-height: 1;
	padding: 7px 8px;
	text-transform: uppercase;
}

.swre-property-archive .swre-property-badge--primary {
	background: #0b0b0d;
	color: #fff;
}

.swre-property-archive .swre-property-card__save {
	align-items: center;
	background: rgba(255, 253, 249, 0.93);
	border: 1px solid rgba(11, 11, 13, 0.16);
	border-radius: 50%;
	color: #24201d;
	display: inline-flex;
	height: 40px;
	justify-content: center;
	right: 10px;
	top: 10px;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
	width: 40px;
	z-index: 4;
}

.swre-property-archive .swre-property-card__save:hover {
	background: #fff;
	border-color: #ee1c00;
	color: #ee1c00;
	transform: scale(1.04);
}

.swre-property-archive .swre-property-card__save[aria-pressed="true"] {
	background: #d9ae2b;
	border-color: #d9ae2b;
	color: #0b0b0d;
}

.swre-property-archive .swre-property-card__save[aria-pressed="true"] .swre-property-icon {
	fill: currentColor;
}

.swre-property-archive .swre-property-card__save .swre-property-icon {
	height: 19px;
	width: 19px;
}

.swre-property-archive .swre-property-card__gallery-control {
	align-items: center;
	background: rgba(11, 11, 13, 0.7);
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	color: #fff;
	display: flex;
	font-size: 1.45rem;
	height: 38px;
	justify-content: center;
	opacity: 0;
	top: calc(50% - 19px);
	transition: background-color 180ms ease, opacity 180ms ease, transform 180ms ease;
	width: 38px;
	z-index: 4;
}

.swre-property-archive .swre-property-card__gallery-control--previous {
	left: 10px;
	transform: translateX(-6px);
}

.swre-property-archive .swre-property-card__gallery-control--next {
	right: 10px;
	transform: translateX(6px);
}

.swre-property-archive .swre-property-card__media:hover .swre-property-card__gallery-control,
.swre-property-archive .swre-property-card__media:focus-within .swre-property-card__gallery-control {
	opacity: 1;
	transform: translateX(0);
}

.swre-property-archive .swre-property-card__gallery-control:hover {
	background: #ee1c00;
}

.swre-property-archive .swre-property-card__image-count {
	align-items: center;
	background: rgba(11, 11, 13, 0.82);
	border-radius: 2px;
	bottom: 10px;
	color: #fff;
	display: inline-flex;
	font-size: 0.64rem;
	font-weight: 800;
	gap: 5px;
	line-height: 1;
	padding: 6px 7px;
	position: absolute;
	right: 10px;
	z-index: 3;
}

.swre-property-archive .swre-property-card__image-count .swre-property-icon {
	height: 13px;
	width: 13px;
}

.swre-property-archive .swre-property-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	padding: 17px 17px 15px;
}

.swre-property-archive .swre-property-card__heading-row {
	display: block;
	padding: 0;
}

.swre-property-archive .swre-property-card__price {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 7px;
}

.swre-property-archive .swre-property-card__price > span {
	color: #b88708;
	font-family: var(--swrep-font, Manrope, Arial, sans-serif);
	font-size: clamp(1.22rem, 1.75vw, 1.5rem);
	font-weight: 780;
	letter-spacing: -0.025em;
	line-height: 1.12;
}

.swre-property-archive .swre-property-card__price small {
	color: #6e655b;
	display: inline;
	font-size: 0.62rem;
	font-weight: 650;
	letter-spacing: 0;
	text-transform: none;
}

.swre-property-archive .swre-property-card__title {
	font-family: var(--swrep-font, Manrope, Arial, sans-serif);
	font-size: clamp(1rem, 1.25vw, 1.18rem);
	font-weight: 780;
	letter-spacing: -0.025em;
	line-height: 1.25;
	margin: 0;
}

.swre-property-archive .swre-property-card__title a {
	color: #24201d;
	text-decoration: none;
}

.swre-property-archive .swre-property-card__title a:hover {
	color: #b88708;
}

.swre-property-archive .swre-property-card__location {
	align-items: flex-start;
	color: #6e655b;
	display: flex;
	font-size: 0.68rem;
	gap: 5px;
	line-height: 1.45;
	margin: 5px 0 0;
}

.swre-property-archive .swre-property-card__location .swre-property-icon {
	color: #8a6810;
	display: block;
	flex: 0 0 auto;
	height: 13px;
	margin-top: 1px;
	width: 13px;
}

.swre-property-archive .swre-property-card__facts {
	border-bottom: 1px solid #ebe5da;
	border-top: 1px solid #ebe5da;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	list-style: none;
	margin: 13px 0 0;
	padding: 10px 0;
}

.swre-property-archive .swre-property-card__facts li {
	align-items: center;
	color: #3c3732;
	display: inline-flex;
	font-size: 0.66rem;
	font-weight: 720;
	gap: 5px;
	line-height: 1.25;
}

.swre-property-archive .swre-property-card__facts .swre-property-icon {
	color: #7d756d;
	height: 14px;
	width: 14px;
}

.swre-property-archive .swre-property-card__highlights {
	display: none;
}

.swre-property-archive .swre-property-card__excerpt {
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	color: #6e655b;
	display: -webkit-box;
	font-size: 0.7rem;
	line-height: 1.55;
	margin: 11px 0 0;
	overflow: hidden;
}

.swre-property-archive .swre-property-card__footer {
	align-items: center;
	border: 0;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 14px;
}

.swre-property-archive .swre-property-card__compare {
	align-items: center;
	color: #625b53;
	cursor: pointer;
	display: inline-flex;
	font-size: 0.67rem;
	font-weight: 650;
	gap: 7px;
	min-height: 40px;
}

.swre-property-archive .swre-property-card__compare input {
	accent-color: #d9ae2b;
	height: 16px;
	width: 16px;
}

.swre-property-archive .swre-property-card__details {
	align-items: center;
	background: transparent;
	border: 1px solid #d9ae2b;
	color: #8a6810;
	display: inline-flex;
	font-size: 0.68rem;
	font-weight: 800;
	gap: 14px;
	justify-content: space-between;
	min-height: 40px;
	min-width: 132px;
	padding: 8px 11px;
	text-decoration: none;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.swre-property-archive .swre-property-card__details .swre-property-icon {
	height: 14px;
	transition: transform 180ms ease;
	width: 14px;
}

.swre-property-archive .swre-property-card__details:hover {
	background: #d9ae2b;
	border-color: #d9ae2b;
	color: #0b0b0d;
}

.swre-property-archive .swre-property-card__details:hover .swre-property-icon {
	transform: translateX(3px);
}

.swre-property-archive .swre-property-results--list .swre-property-card__body {
	padding: 24px;
}

.swre-property-archive .swre-property-results--list .swre-property-card__excerpt {
	-webkit-line-clamp: 3;
}

.swre-property-archive .swre-property-results--map .swre-property-card {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr);
	min-height: 132px;
}

.swre-property-archive .swre-property-results--map .swre-property-card__media {
	aspect-ratio: auto;
	min-height: 132px;
}

.swre-property-archive .swre-property-results--map .swre-property-card__body {
	padding: 12px;
}

.swre-property-archive .swre-property-results--map :where(.swre-property-card__excerpt, .swre-property-card__footer, .swre-property-card__gallery-control, .swre-property-card__image-count) {
	display: none;
}

@media (hover: none) {
	.swre-property-archive .swre-property-card__gallery-control {
		opacity: 1;
		transform: translateX(0);
	}
}

@media (max-width: 1024px) {
	.swre-property-archive .swre-property-results--list .swre-property-card {
		grid-template-columns: minmax(250px, 40%) minmax(0, 1fr);
	}
}

@media (max-width: 767px) {
	.swre-property-archive .swre-property-card,
	.swre-property-archive .swre-property-results--grid .swre-property-card,
	.swre-property-archive .swre-property-results--list .swre-property-card,
	.swre-property-archive .swre-property-results--map .swre-property-card {
		display: block;
	}

	.swre-property-archive .swre-property-card__media,
	.swre-property-archive .swre-property-results--list .swre-property-card__media,
	.swre-property-archive .swre-property-results--map .swre-property-card__media {
		aspect-ratio: 16 / 10;
		min-height: 0;
	}

	.swre-property-archive .swre-property-card__body,
	.swre-property-archive .swre-property-results--list .swre-property-card__body,
	.swre-property-archive .swre-property-results--map .swre-property-card__body {
		padding: 16px;
	}

	.swre-property-archive .swre-property-card__price > span,
	.swre-property-archive .swre-property-results--map .swre-property-card__price > span {
		font-size: 1.28rem;
	}

	.swre-property-archive .swre-property-card__title,
	.swre-property-archive .swre-property-results--map .swre-property-card__title {
		font-size: 1rem;
	}

	.swre-property-archive .swre-property-card__facts {
		display: grid;
		gap: 8px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.swre-property-archive .swre-property-card__facts li:nth-child(n) {
		display: inline-flex;
	}

	.swre-property-archive .swre-property-card__excerpt,
	.swre-property-archive .swre-property-results--map .swre-property-card__excerpt {
		-webkit-line-clamp: 2;
		display: -webkit-box;
	}

	.swre-property-archive .swre-property-card__footer {
		align-items: center;
		flex-direction: row;
	}

	.swre-property-archive .swre-property-card__compare {
		display: inline-flex;
	}

	.swre-property-archive .swre-property-card__details {
		width: auto;
	}

	.swre-property-compare-tray {
		bottom: calc(64px + env(safe-area-inset-bottom, 0));
		display: flex !important;
	}

	.swre-property-compare-tray[hidden] {
		display: none !important;
	}
}

@media (max-width: 359px) {
	.swre-property-archive .swre-property-card__footer {
		align-items: stretch;
		flex-direction: column-reverse;
	}

	.swre-property-archive .swre-property-card__details {
		justify-content: center;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.swre-property-archive .swre-property-card,
	.swre-property-archive .swre-property-card__image,
	.swre-property-archive .swre-property-card__save,
	.swre-property-archive .swre-property-card__gallery-control,
	.swre-property-archive .swre-property-card__details,
	.swre-property-archive .swre-property-card__details .swre-property-icon {
		transition: none;
	}
}

@media (forced-colors: active) {
	.swre-property-archive .swre-property-card,
	.swre-property-archive .swre-property-card__details,
	.swre-property-archive .swre-property-card__save,
	.swre-property-archive .swre-property-badge {
		forced-color-adjust: auto;
	}
}
