/**
 * Stadium Point Slider - Siema Styles
 * 
 * @package MorrisProperty
 */

.sp-slider-block {
	width: 100%;
	max-width: 1920px;
	margin-left: auto;
	margin-right: auto;
}

.sp-slider-block__inner {
	width: 100%;
}

.sp-slider-container {
	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 0;
}

.sp-slider-container--single-slide .sp-slider-nav {
	display: none;
}

.sp-slider-header {
	margin-bottom: 2rem;
}

.sp-slider-title {
	text-align: center;
	margin: 0;
}

.sp-slider-wrapper {
	position: relative;
	overflow: hidden;
	width: 100%;
}

.sp-slide {
	position: relative;
	box-sizing: border-box;
	display: block;
}

.is-style-property-slider,
.is-style-news-slider {

	.sp-siema > div {
		display: flex;
		align-items: stretch;
	}

	.sp-siema > div > div {
		display: flex;
		align-items: stretch;
	}

	.sp-siema .sp-slide .slider-item {
		height: 100%;
	}
}

.sp-slide__content {
	position: absolute;
	top: 50%;
	left: 25%;
	transform: translate(-25%, -50%);
	max-width: 650px;
	background: rgba(216, 223, 216, 0.5);
	padding: clamp(10px, 4.5vw, 80px);
	z-index: 1;
}

.sp-slide__heading {
	font-family: aviano-sans, sans-serif;
	font-size: 69px;
	font-weight: bold;
	color: white !important;
	margin: 0 0 1rem 0;
}

.sp-slide__text,
.sp-slide__text p {
	color: white !important;
	margin: 0;
}

.sp-slide__text a {
	color: #B71D1D !important;
}

/* Navigation Buttons */
.sp-slider-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	padding: 10px;
	cursor: pointer;
	z-index: 10;
	color: white;
}

.sp-slider-nav--prev {
	left: 0;
}

.sp-slider-nav--next {
	right: 0;
}

.sp-slider-nav svg {
	width: 40px;
	height: 40px;
	fill: white;
}

.sp-slider-dots {
	display: none;
}

.sp-slide__image,
.sp-slide__video {
	display: block;
	object-fit: cover;
	width: 100%;
	height: auto;
	max-width: 100%;
}

@media (max-width: 768px) {


	.sp-slider-nav svg {
		width: 25px;
		height: 25px;
	}

	.sp-slide__content {
		left: 50%;
		transform: translate(-50%, -50%);
		text-align: center;
		max-width: 80%;
	}

	.sp-slide__heading {
		font-size: 36px;
	}

	.sp-slide__image,
	.sp-slide__video {
		height: 75vh;
	}
}

@media (max-width: 480px) {
	.sp-slide__heading {
		font-size: 24px;
	}
}

/* Tab slider variant – no images, content-only slides need explicit height */
.sp-slider--tabs {
	max-width: 1920px;
	margin-left: auto;
	margin-right: auto;
}

.sp-slider--tabs .sp-slider-wrapper {
	min-height: 200px;
}

.sp-slider--tabs .sp-slide {
	min-height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sp-slider--tabs .sp-slide__content {
	position: static;
	transform: none;
	left: auto;
	top: auto;
}

/* sp-tab-detail: reuse content-block styles from tab-sliders.php */
.sp-slider--tabs .sp-tab-detail.content-block {
	margin: auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 50px;
}

.sp-slider--tabs .sp-tab-detail.content-block p {
	max-width: 550px;
	margin-top: 1.5rem !important;
	margin-bottom: 1.5rem !important;
}

.sp-slider--tabs .sp-tab-detail.content-block p:first-of-type {
	margin-top: 0;
}

.sp-slider--tabs .sp-tab-detail.content-block p:last-of-type {
	margin-bottom: 0;
}

.sp-slider--tabs .sp-tab-detail.content-block .rhs {
	width: 100%;
	height: 500px;
	object-fit: cover;
}

.sp-slider--tabs .sp-tab-detail.content-block .btn.btn-red {
	margin-top: 4rem !important;
}

.sp-slider--tabs .sp-slide__thumbnail {
	cursor: pointer;
}

.sp-slider--tabs .sp-slider-nav svg {
	fill: #B71D1D;
}

@media (max-width: 1200px) {
	.sp-slider--tabs .sp-tab-detail.content-block {
		grid-template-columns: 1fr !important;
		gap: 2rem !important;
	}

	.sp-slider--tabs .sp-tab-detail.content-block .rhs {
		height: 400px !important;
	}
}

/* Live projects / developments slider only */
.live-projects .sp-siema {
	margin-left: 80px;
	margin-right: 80px;
}

.live-projects .sp-siema > div {
	display: flex;
	align-items: stretch;
}

.live-projects .sp-siema > div > div {
	display: flex;
	align-items: stretch;
}

.live-projects .sp-siema .sp-slide {
	margin-left: 25px;
	margin-right: 25px;
	box-sizing: border-box;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.live-projects .sp-siema .sp-slide > * {
	flex: 1;
	min-height: 0;
}

.live-projects .sp-slider-nav svg {
	fill: #B71D1D;
}

.live-projects .sp-slider-nav:hover svg {
	fill: rgba(183, 29, 29, 0.8);
}

.live-projects .sp-slider-nav--prev {
	left: -30px;
}

.live-projects .sp-slider-nav--next {
	right: -30px;
}

.live-projects .sp-slider-counter {
	display: block;
	width: fit-content;
	margin-top: 20px;
	margin-left: auto;
	margin-right: auto;
	padding: 0.5rem 1rem;
	background: #fff;
	font-size: 1.5rem;
	font-weight: bold;
}

.icon-grid-wrapper .icon-grid-slider {
	position: relative;
	padding: 2rem 0;
}

.icon-grid-wrapper .icon-grid-slider .sp-slide .icon-grid-item {
	align-items: center;
	text-align: center;
}

.icon-grid-wrapper .sp-slider-container {
	position: relative;
}

.icon-grid-wrapper .sp-slider-nav--prev {
	left: -30px;
}

.icon-grid-wrapper .sp-slider-nav--next {
	right: -30px;
}

.partial-details .sp-slider-nav--prev {
	left: -10px !important;
}

.partial-details .sp-slider-nav--next {
	right: -10px !important;
}

.icon-grid-wrapper .sp-slider-nav svg {
	fill: #B71D1D;
}

.icon-grid-wrapper .sp-slider-nav:hover svg {
	fill: rgba(183, 29, 29, 0.8);
}

.icon-grid-wrapper .icon-grid-slider__counter {
	display: block;
	width: fit-content;
	margin-top: 20px;
	margin-left: auto;
	margin-right: auto;
}
