/**
 * Properties Slider Styles
 *
 * @package TamarackProperties
 */

/* =============================================================================
   SLIDER VIEW STYLES
   ============================================================================= */

.tamarack-properties-slider {
	position: relative;
	max-width: 1804px; /* 408px × 4 + 20px gaps × 3 = 1632 + 60 = 1692px */
	margin: 0 auto;
	padding:0 56px;
}

.tamarack-properties-slider .swiper-slide {
	width: 408px;
}

/* Slide Card */
.property-slide-card {
	background: transparent;
	display: flex;
	flex-direction: column;
	height: 100%;
	max-width: 408px;
	width: 100%;
	margin: 0 auto;
}

/* Slide Image */
.property-slide-image {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	height: auto;
	background: #f0f0f0;
	overflow: hidden;
}

.property-slide-image a {
	display: block;
	width: 100%;
	height: 100%;
}

/* Property Info Row */
.property-info-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 10px;
	background: white;
	gap: 15px;
	width: 100%;
	box-sizing: border-box;
	border-bottom: 1px solid #bdc4c2;
}

.property-info-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 17px;
	color: #070D0A;
}

.property-info-item img {
	width: 29px;
	height: 27px;
	flex-shrink: 0;
}

.tamarack-properties-slider .property-slide-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.property-slide-card:hover .property-slide-image img {
	transform: scale(1.05);
}

.property-slide-status {
	position: absolute;
	top: 15px;
	right: 15px;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	z-index: 10;
}

.property-slide-status.status-for_sale {
	background: #1B6551;
	color: white;
}

.property-slide-status.status-sold {
	background: #A08355;
	color: white;
}

/* Slide Content */
.property-slide-content {
	padding: 20px 0;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.property-slide-header {
	display: flex;
	flex-direction: column;
	gap: 15px;
	width: 100%;
}

.property-slide-title-row {
	display: flex;
	gap: 20px;
	align-items: center;
	justify-content: space-between;
}

.property-slide-title-price {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.property-slide-title {
	margin: 0;
	font-size: 26px;
	font-weight: 500;
}

.property-slide-title a {
	color: #1B6551;
	text-decoration: none;
	transition: color 0.3s ease;
}

.property-slide-title a:hover {
	color: #145241;
}

.property-slide-row {
	display: flex;
	gap: 20px;
	align-items: center; /* vertically center the action column relative to details */
}

.property-slide-details {
	flex: 1;
	margin-bottom: 0;
}

.property-slide-address-row {
	width: 100%;
}

.property-slide-detail {
	margin-bottom: 10px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.property-slide-detail .detail-label {
	font-size: 12px;
	font-weight: 600;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.property-slide-detail .detail-value {
	font-size: 17px;
	color: #0D0708;
}

.property-slide-title-price .property-slide-price {
	margin-bottom: 0;
}

.property-slide-price .detail-value {
	font-size: 17px;
	font-weight: 700;
	color: #0D0708
}

.property-slide-title-row .property-slide-actions {
	flex-shrink: 0;
}

.property-slide-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 140px;
}

.property-slide-header .property-slide-description {
	width: 100%;
	margin-bottom: 0;
	display: block;
}

.property-slide-description .detail-value {
	display: block;
	width: 100%;
}

.property-slide-card .learn-more-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	padding: 19px 44px 19px 16px; /* right padding to make room for arrow */
	background: #1B6551;
	color: white;
	text-align: center;
	text-decoration: none;
	font-weight: 400;
	font-size:17px;
	transition: background 0.3s ease;
	background-image: url('../images/full-arrow-white.svg');
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 21px 18px;
	border-radius:0;
}

/* Swiper Navigation Buttons */
.tamarack-properties-slider .swiper-button-next,
.tamarack-properties-slider .swiper-button-prev {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 30px;
	height: 20px;
	border-radius: 0;
	box-shadow: none;
	z-index: 5;
	transition: opacity 0.2s ease;
}

.tamarack-properties-slider .swiper-button-next:after,
.tamarack-properties-slider .swiper-button-prev:after {
	content: '';
	display: none;
}

.tamarack-properties-slider .swiper-button-next:hover,
.tamarack-properties-slider .swiper-button-prev:hover {
	opacity: 0.85;
}

.tamarack-properties-slider .swiper-nav-buttons {
	/* default desktop styles not needed; exists for mobile layout */
}

.tamarack-properties-slider .swiper-button-next.swiper-button-disabled,
.tamarack-properties-slider .swiper-button-prev.swiper-button-disabled {
	opacity: 1;
	cursor: not-allowed;
}

.tamarack-properties-tiles .filter-group:has(.select-decor) { width:100%; max-width:295px; }
.tamarack-properties-tiles .filters-grid { column-gap:10px; max-width:unset; }

.tamarack-properties-slider .swiper-button-next {
	right: 0px;
	left: unset;
	background-image: url('../images/dark-green-arrow.svg');
	background-repeat: no-repeat;
	background-size: 100%;
	background-position: center center;
}

.tamarack-properties-slider .swiper-button-prev {
	left: 0px;
	right: unset;
	background-image: url('../images/dark-green-arrow.svg');
	background-repeat: no-repeat;
	background-size: 100%;
	background-position: center center;
	transform: translateY(-50%) rotate(180deg);
}

/* Swiper Pagination */
.tamarack-properties-slider .swiper-pagination {
	bottom: 10px;
}

.tamarack-properties-slider .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background: #1B6551;
	opacity: 0.3;
	transition: all 0.3s ease;
}

.tamarack-properties-slider .swiper-pagination-bullet-active {
	opacity: 1;
	width: 24px;
	border-radius: 5px;
}

/* No Properties Message */
.tamarack-properties-slider .no-properties {
	text-align: center;
	padding: 60px 20px;
	color: #666;
}

.tamarack-properties-slider .no-properties p {
	font-size: 18px;
	margin: 0;
}

/* =============================================================================
   RESPONSIVE STYLES
   ============================================================================= */

@media (max-width: 768px) {
	.tamarack-properties-slider {
		padding: 10px;
	}

	#home-type-slider .elementor-widget-heading { padding:0 10px !important; }
	
	.property-slide-image {
		aspect-ratio: 1 / 1;
		height: auto;
	}
	
	.tamarack-properties-slider .swiper-button-next,
	.tamarack-properties-slider .swiper-button-prev {
		width: 30px;
		height: 20px;
	}
	
	.tamarack-properties-slider .swiper-button-next:after,
	.tamarack-properties-slider .swiper-button-prev:after {
		content: '';
		display: none;
	}
	
	/* Place arrows together below the slides on mobile */
	.tamarack-properties-slider .swiper-nav-buttons {
		display: flex;
		justify-content: center;
		gap: 12px;
		margin: 20px 0;
	}
	
	.tamarack-properties-slider .swiper-button-next,
	.tamarack-properties-slider .swiper-button-prev {
		position: static;
		left: auto;
		right: auto;
		transform: none;
	}
	
	.tamarack-properties-slider .swiper-button-prev {
		transform: rotate(180deg);
	}
}

@media (max-width: 480px) {
	.property-slide-content {
		padding: 15px 0;
	}
	
	.property-slide-row {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}
	
	.property-slide-actions {
		min-width: 0;
	}
	
	.property-slide-card .learn-more-btn {
		width: 100%;
	}
	
	.property-slide-detail {
		margin-bottom: 8px;
	}
}

