.derra-property-grid {
	display: grid;
	gap: 20px;
}

.derra-property-card {
	background: var(--derra-white);
	border: 1px solid var(--derra-gray-200);
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(17, 17, 17, 0.06);
	color: var(--derra-black);
	overflow: hidden;
	position: relative;
	transition: box-shadow 180ms ease, transform 180ms ease;
}

.derra-property-card:hover,
.derra-property-card:focus-within {
	box-shadow: 0 16px 36px rgba(17, 17, 17, 0.14);
	transform: translateY(-4px);
}

.derra-property-card__media {
	background: var(--derra-gray-50);
	display: block;
	text-decoration: none;
}

.derra-property-card__image,
.derra-property-card__image-placeholder {
	aspect-ratio: 16 / 10;
	display: block;
	object-fit: cover;
	width: 100%;
}

.derra-property-card__image-placeholder {
	align-items: center;
	color: var(--derra-gray-600);
	display: flex;
	justify-content: center;
	padding: 24px;
	text-align: center;
}

.derra-property-card__badge {
	background: var(--derra-red);
	border-radius: 999px;
	color: var(--derra-white);
	font-size: 12px;
	font-weight: 800;
	left: 14px;
	letter-spacing: 0.04em;
	padding: 5px 10px;
	position: absolute;
	text-transform: uppercase;
	top: 14px;
}

.derra-property-card__body {
	padding: 20px;
}

.derra-property-card__price {
	color: var(--derra-red);
	font-size: 22px;
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 8px;
}

.derra-property-card__title {
	font-size: 21px;
	line-height: 1.25;
	margin: 0;
}

.derra-property-card__title a {
	color: var(--derra-black);
	text-decoration: none;
}

.derra-property-card__title a:hover,
.derra-property-card__title a:focus {
	color: var(--derra-red);
}

.derra-property-card__locality {
	color: var(--derra-gray-600);
	margin: 6px 0 0;
}

.derra-property-card__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 18px 0;
	padding: 0;
}

.derra-property-card__facts li {
	background: var(--derra-gray-50);
	border-radius: 6px;
	font-size: 13px;
	padding: 6px 9px;
}

.derra-property-card__taxonomies {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 20px;
}

.derra-property-card__taxonomies span {
	border-left: 3px solid var(--derra-red);
	font-size: 13px;
	font-weight: 700;
	padding-left: 8px;
}

.derra-property-card__actions {
	display: grid;
	gap: 8px;
}

.derra-property-card__button {
	background: var(--derra-red);
	border: 2px solid var(--derra-red);
	border-radius: 7px;
	color: var(--derra-white);
	font-weight: 700;
	padding: 9px 14px;
	text-align: center;
	text-decoration: none;
}

.derra-property-card__button:hover,
.derra-property-card__button:focus {
	background: var(--derra-black);
	border-color: var(--derra-black);
	color: var(--derra-white);
}

.derra-property-card__button--secondary {
	background: var(--derra-white);
	color: var(--derra-red);
}

.derra-property-fallback {
	background: var(--derra-gray-50);
	border-left: 4px solid var(--derra-red);
	margin: 0;
	padding: 18px 20px;
}

@media (min-width: 600px) {
	.derra-property-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.derra-property-card__actions {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 960px) {
	.derra-property-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
