/**
 * Premium homepage property listing cards.
 */

:root {
	--ppp-card-radius: 18px;
	--ppp-card-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
	--ppp-card-shadow-hover: 0 28px 60px rgba(15, 23, 42, 0.22);
	--ppp-gold: #ffc400;
	--ppp-navy: #0b1f3a;
}

.elementor-widget-luxus-property-grid .ppp-premium-card,
.elementor-widget-luxus-property-caousel-featured .ppp-premium-card,
.elementor-widget-luxus-property-grid-featured .ppp-premium-card {
	position: relative;
	border: 0;
	background: transparent;
	box-shadow: none;
	overflow: visible;
}

.elementor-widget-luxus-property-grid .ppp-premium-card .property-info,
.elementor-widget-luxus-property-grid .ppp-premium-card .image-top,
.elementor-widget-luxus-property-grid .ppp-premium-card .image-bottom,
.elementor-widget-luxus-property-grid .ppp-premium-card .view-detail,
.elementor-widget-luxus-property-caousel-featured .ppp-premium-card .top,
.elementor-widget-luxus-property-caousel-featured .ppp-premium-card .bottom,
.elementor-widget-luxus-property-grid-featured .ppp-premium-card .top,
.elementor-widget-luxus-property-grid-featured .ppp-premium-card .bottom {
	display: none !important;
}

.elementor-widget-luxus-property-grid .ppp-premium-card .image,
.elementor-widget-luxus-property-caousel-featured .ppp-premium-card.featured-property,
.elementor-widget-luxus-property-grid-featured .ppp-premium-card.featured-property,
.elementor-widget-luxus-property-caousel-featured .ppp-premium-card .featured-property,
.elementor-widget-luxus-property-grid-featured .ppp-premium-card .featured-property {
	position: relative;
	display: block;
	min-height: 420px;
	border-radius: var(--ppp-card-radius);
	overflow: hidden;
	box-shadow: var(--ppp-card-shadow);
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.elementor-widget-luxus-property-grid .ppp-premium-card .image img {
	width: 100%;
	height: 420px;
	object-fit: cover;
	display: block;
	transform: scale(1.01);
	transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.elementor-widget-luxus-property-caousel-featured .ppp-premium-card .featured-property,
.elementor-widget-luxus-property-grid-featured .ppp-premium-card .featured-property {
	background-size: cover !important;
	background-position: center !important;
}

.ppp-premium-card__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 28px 26px;
	text-decoration: none;
	color: #fff;
	background:
		linear-gradient(180deg, rgba(8, 18, 36, 0.08) 20%, rgba(8, 18, 36, 0.55) 62%, rgba(8, 18, 36, 0.88) 100%);
	transition: background 0.35s ease;
}

.ppp-premium-card__overlay::before {
	content: "";
	position: absolute;
	left: 26px;
	bottom: 78px;
	width: 54px;
	height: 3px;
	border-radius: 999px;
	background: var(--ppp-gold);
	transform: scaleX(0.35);
	transform-origin: left center;
	transition: transform 0.35s ease;
}

.ppp-premium-card__title {
	position: relative;
	margin: 0;
	font-size: clamp(1.35rem, 2vw, 1.85rem);
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #fff;
	text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.ppp-premium-card__cta {
	position: relative;
	margin-top: 10px;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ppp-gold);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.ppp-premium-card:hover .image,
.ppp-premium-card:hover .featured-property,
.ppp-premium-card:focus-within .image,
.ppp-premium-card:focus-within .featured-property {
	transform: translateY(-6px);
	box-shadow: var(--ppp-card-shadow-hover);
}

.ppp-premium-card:hover .image img,
.ppp-premium-card:focus-within .image img {
	transform: scale(1.06);
}

.ppp-premium-card:hover .ppp-premium-card__overlay,
.ppp-premium-card:focus-within .ppp-premium-card__overlay {
	background:
		linear-gradient(180deg, rgba(8, 18, 36, 0.12) 10%, rgba(8, 18, 36, 0.62) 58%, rgba(8, 18, 36, 0.94) 100%);
}

.ppp-premium-card:hover .ppp-premium-card__overlay::before,
.ppp-premium-card:focus-within .ppp-premium-card__overlay::before {
	transform: scaleX(1);
}

.ppp-premium-card:hover .ppp-premium-card__cta,
.ppp-premium-card:focus-within .ppp-premium-card__cta {
	opacity: 1;
	transform: translateY(0);
}

.elementor-widget-luxus-property-caousel-featured .sl-item,
.elementor-widget-luxus-property-grid .property-item {
	padding: 8px;
}

.elementor-widget-luxus-property-caousel-featured .sl-property-carousel {
	padding-bottom: 28px;
}

.elementor-widget-luxus-property-caousel-featured .ppp-carousel-left-aligned .slick-list {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.elementor-widget-luxus-property-caousel-featured .ppp-carousel-left-aligned .slick-track {
	margin-left: 0 !important;
}

.elementor-widget-luxus-property-caousel-featured .ppp-carousel-left-aligned .sl-item {
	padding-left: 0;
}

.elementor-widget-luxus-property-caousel-featured .slick-dots li button:before {
	color: var(--ppp-navy);
	opacity: 0.35;
}

.elementor-widget-luxus-property-caousel-featured .slick-dots li.slick-active button:before {
	color: var(--ppp-gold);
	opacity: 1;
}

@media (max-width: 767px) {
	.elementor-widget-luxus-property-grid .ppp-premium-card .image,
	.elementor-widget-luxus-property-caousel-featured .ppp-premium-card .featured-property,
	.elementor-widget-luxus-property-grid-featured .ppp-premium-card .featured-property {
		min-height: 320px;
	}

	.elementor-widget-luxus-property-grid .ppp-premium-card .image img {
		height: 320px;
	}

	.ppp-premium-card__overlay {
		padding: 22px 20px;
	}

	.ppp-premium-card__cta {
		opacity: 1;
		transform: none;
	}
}
