/** START PROPERTY CARD **/

.se-property-card {
	container-type: inline-size;
}

.se-property-card__inner {
	display: block;
	color: inherit;
}

.se-property-card__inner:hover {
	opacity: 1;
}

/* Image */

.se-property-card__image {
	position: relative;
	aspect-ratio: 700 / 460;
	overflow: hidden;
	margin: 0;
}

/* Absoluta + inset para que rellene siempre la figure, aunque Elementor
   u otro reset le meta height:auto a las img */
.se-property-card__image img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover !important;
	object-position: center;
	transition: transform var(--transition-slow);
}

.se-property-card__inner:hover .se-property-card__image img {
	transform: scale(1.04);
}

/* Sale-status ribbon */

.se-property-card__ribbon {
	position: absolute;
	top: 18px;
	left: -42px;
	width: 170px;
	padding: 6px 0;
	text-align: center;
	transform: rotate(-45deg);
	font-family: var(--font-primary);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #fff;
	z-index: 2;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.se-property-card__ribbon--reserved {
	background: var(--color-sand-400);
}

.se-property-card__ribbon--sold {
	background: var(--color-secondary);
}

/* Featured badge */

/* Estrella sutil, casi imperceptible, arriba a la derecha de la imagen */
.se-property-card__badge {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.55);
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
	z-index: 2;
}

/* Body */

.se-property-card__body {
	padding: 16px 0 0;
	text-align: center;
}

/* Zone */

.se-property-card__zone {
	display: block;
	font-family: var(--font-primary);
	font-size: clamp(11px, 4cqi, 24px);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: center;
	font-weight: 600;
	color: var(--color-text);
	margin-bottom: 2px;
}

/* Type */

.se-property-card__type {
	font-family: var(--font-primary);
	font-size: 32px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--color-text);
	margin: 0 0 16px;
}

/* Stats */

.se-property-card__stats {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	font-family: var(--font-primary);
	font-size: 24px;
	font-weight: 400;
	color: var(--color-text);
	margin-bottom: 4px;
}

.se-property-card__stat + .se-property-card__stat::before {
	content: '|';
	margin-inline: 8px;
	color: var(--color-text);
}

/* Price */

.se-property-card__price {
	font-family: var(--font-primary);
	font-size: 32px;
	font-weight: 500;
	letter-spacing: -0.02em;
	color: var(--color-text);
}

/* Responsive */

@media (max-width: 1024px) {
	.se-property-card__type {
		font-size: 28px;
		margin-bottom: 12px;
	}

	.se-property-card__stats {
		font-size: 16px;
	}

	.se-property-card__price {
		font-size: 28px;
	}
}

/* iPad only (portrait/landscape tablet range) */
@media (min-width: 768px) and (max-width: 1024px) {
	.se-property-card__type {
		font-size: 22px;
	}

	.se-property-card__price {
		font-size: 22px;
	}
}

@media (max-width: 640px) {
	.se-property-card__type {
		font-size: 24px;
		margin-bottom: 10px;
	}

	.se-property-card__stats {
		font-size: 15px;
	}

	.se-property-card__price {
		font-size: 24px;
	}
}

/** END PROPERTY CARD **/
