/**
 * Featured Properties Luxury Carousel
 *
 * Luxury Simplified inspired property carousel with center mode,
 * scaling effect, and premium design.
 *
 * @package Haven_Theme
 * @since 2.0.0
 */

/* ============================================
   SECTION WRAPPER
   ============================================ */

.haven-featured-properties-luxury {
	background: #f5f5f5;
	padding: 100px 0 150px;
}

@media (max-width: 992px) {
	.haven-featured-properties-luxury {
		padding: 80px 0 120px;
	}
}

@media (max-width: 768px) {
	.haven-featured-properties-luxury {
		padding: 60px 0 80px;
	}
}

/* ============================================
   CAROUSEL CONTAINER
   ============================================ */

.haven-properties-carousel-luxury {
	position: relative;
	margin-top: 60px;
}

/* Slick Carousel Track */
.haven-properties-carousel__track {
	position: relative;
}

/* Slick Carousel (when initialized) */
.haven-properties-carousel-luxury .slick-list {
	overflow: visible;
	margin: 0 -25%; /* Center mode padding */
	padding: 40px 0;
}

.haven-properties-carousel-luxury .slick-track {
	display: flex;
	align-items: center;
}

.haven-properties-carousel-luxury .slick-slide {
	opacity: 0.6;
	transform: scale(0.9);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	margin: 0 15px;
}

/* Center/Active Slide */
.haven-properties-carousel-luxury .slick-slide.slick-center {
	opacity: 1;
	transform: scale(1.12);
	z-index: 10;
}

/* Mobile: Disable scaling */
@media (max-width: 768px) {
	.haven-properties-carousel-luxury .slick-list {
		margin: 0;
		padding: 20px 0;
	}

	.haven-properties-carousel-luxury .slick-slide {
		opacity: 1;
		transform: scale(1);
	}

	.haven-properties-carousel-luxury .slick-slide.slick-center {
		transform: scale(1);
	}
}

/* ============================================
   PROPERTY CARD
   ============================================ */

.haven-property-card-luxury {
	position: relative;
	width: 100%;
	height: 420px;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	transition: box-shadow 0.3s ease;
}

.haven-property-card-luxury:hover {
	box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.haven-property-card-luxury__link {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

/* ============================================
   IMAGE CONTAINER
   ============================================ */

.haven-property-card-luxury__image-container {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.haven-property-card-luxury__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effect: Scale image */
.haven-property-card-luxury:hover .haven-property-card-luxury__image {
	transform: scale(1.1);
}

/* Placeholder */
.haven-property-card-luxury__image--placeholder {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ============================================
   GRADIENT OVERLAY
   ============================================ */

.haven-property-card-luxury__overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 50%;
	background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 100%);
	pointer-events: none;
	z-index: 1;
}

/* ============================================
   PROPERTY INFO OVERLAY
   ============================================ */

.haven-property-card-luxury__info {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 30px;
	z-index: 2;
	color: #ffffff;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, visibility 0.4s;
}

/* Show on center slide */
.slick-center .haven-property-card-luxury__info {
	opacity: 1;
	visibility: visible;
}

/* Mobile: Always show */
@media (max-width: 768px) {
	.haven-property-card-luxury__info {
		opacity: 1;
		visibility: visible;
	}
}

/* Location Label */
.haven-property-card-luxury__location {
	font-size: 14px;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 8px;
	opacity: 0.9;
}

/* Property Title */
.haven-property-card-luxury__title {
	font-size: 24px;
	font-weight: 400;
	font-style: italic;
	line-height: 1.3;
	margin: 0 0 12px;
	color: #ffffff;
}

/* Amenities */
.haven-property-card-luxury__amenities {
	font-size: 14px;
	font-weight: 400;
	line-height: 1.6;
	margin-bottom: 16px;
	opacity: 0.9;
}

.haven-property-card-luxury__amenities span {
	white-space: nowrap;
}

/* ============================================
   PRICE BLOCK (Only on center slide)
   ============================================ */

.haven-property-card-luxury__price {
	background: rgba(7, 8, 8, 0.8);
	border: 2px solid #ffffff;
	border-radius: 6px;
	padding: 12px 20px;
	max-width: 310px;
	margin-top: 16px;
	text-align: center;
}

.haven-property-card-luxury__price-label {
	font-size: 14px;
	font-weight: 400;
	font-style: italic;
	margin-bottom: 4px;
	opacity: 0.9;
}

.haven-property-card-luxury__price-amount {
	font-size: 32px;
	font-weight: 600;
	line-height: 1.2;
}

.haven-property-card-luxury__price-period {
	font-size: 18px;
	font-weight: 400;
}

/* ============================================
   NAVIGATION ARROWS
   ============================================ */

.haven-properties-carousel__navigation {
	position: absolute;
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 20;
	display: flex;
	gap: 10px;
}

.haven-carousel-arrow {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,0.9);
	border: 2px solid #e0e0e0;
	border-radius: 50%;
	color: #292929;
	cursor: pointer;
	transition: all 0.3s ease;
}

.haven-carousel-arrow:hover {
	background: #ff6501;
	border-color: #ff6501;
	color: #ffffff;
	transform: scale(1.1);
}

.haven-carousel-arrow svg {
	width: 24px;
	height: 24px;
}

/* Mobile: Smaller arrows */
@media (max-width: 768px) {
	.haven-properties-carousel__navigation {
		bottom: 0;
	}

	.haven-carousel-arrow {
		width: 40px;
		height: 40px;
	}

	.haven-carousel-arrow svg {
		width: 20px;
		height: 20px;
	}
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInScale {
	from {
		opacity: 0;
		transform: scale(0.95);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.haven-property-card-luxury {
	animation: fadeInScale 0.6s ease-out;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
	.haven-property-card-luxury__image,
	.haven-property-card-luxury,
	.haven-carousel-arrow {
		transition: none;
		animation: none;
	}

	.haven-properties-carousel-luxury .slick-slide {
		transition: none;
	}
}

.haven-carousel-arrow:focus {
	outline: 3px solid #667eea;
	outline-offset: 4px;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 992px) {
	.haven-property-card-luxury {
		height: 380px;
	}

	.haven-property-card-luxury__title {
		font-size: 20px;
	}

	.haven-property-card-luxury__price-amount {
		font-size: 28px;
	}
}

@media (max-width: 768px) {
	.haven-property-card-luxury {
		height: 320px;
	}

	.haven-property-card-luxury__info {
		padding: 20px;
	}

	.haven-property-card-luxury__title {
		font-size: 18px;
		margin-bottom: 8px;
	}

	.haven-property-card-luxury__amenities {
		font-size: 12px;
		margin-bottom: 12px;
	}

	.haven-property-card-luxury__price {
		padding: 10px 16px;
		max-width: 100%;
	}

	.haven-property-card-luxury__price-amount {
		font-size: 24px;
	}

	.haven-property-card-luxury__price-period {
		font-size: 16px;
	}
}
