/**
 * SeaSky villa showcase slider — [seasky_villas].
 */

.ssv-villas,
.ssv-villas *,
.ssv-villas *::before,
.ssv-villas *::after {
	box-sizing: border-box;
}

.ssv-villas {
	--ssv-teal: #26A5B8;
	--ssv-teal-dark: #00657F;
	--ssv-ink: #021432;
	--ssv-coral: #F2705D;
	--ssv-mist: #E2F7F9;
	font-family: "Mulish", sans-serif;
}

/* Track: centred scroll-snap carousel with peeking, faded neighbours. */
.ssv-villas__track {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	padding: 8px calc((100vw - min(880px, 94vw)) / 2) 24px;
	scrollbar-width: none;
	outline: none;
}

.ssv-villas__track::-webkit-scrollbar {
	display: none;
}

/* Card */
.ssv-villa {
	flex: 0 0 min(880px, 94%);
	scroll-snap-align: center;
	display: grid;
	grid-template-columns: minmax(0, 47%) 1fr;
	gap: 32px;
	padding: 24px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 28px rgba(2, 20, 50, 0.08);
	opacity: 0.45;
	transition: opacity 0.35s ease;
}

.ssv-villa.is-active {
	opacity: 1;
}

/* Media */
.ssv-villa__media {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	min-height: 300px;
}

.ssv-villa__images {
	position: absolute;
	inset: 0;
}

.ssv-villa__images img.ssv-villa__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.ssv-villa__images img.ssv-villa__image.is-current {
	opacity: 1;
}

.ssv-villa__location {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border-radius: 1440px;
	background: rgba(242, 112, 93, 0.85);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #fff;
	font-family: "Mulish", sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	white-space: nowrap;
}

.ssv-villa__dots {
	position: absolute;
	bottom: 14px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	display: flex;
	gap: 8px;
}

.ssv-villa__dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	transition: background 0.2s ease;
}

.ssv-villa__dot.is-current,
.ssv-villa__dot:hover {
	background: #fff;
}

/* Body */
.ssv-villa__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: 16px 8px 16px 0;
}

.ssv-villa__title {
	margin: 0 0 14px;
	color: var(--ssv-teal);
	font-family: "Mulish", sans-serif;
	font-size: 24px;
	font-weight: 600;
	line-height: 28px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.ssv-villa__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.ssv-villa__fact {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 12px 4px 8px;
	border-radius: 1000px;
	background: var(--ssv-mist);
	color: var(--ssv-ink);
	font-family: "Mulish", sans-serif;
	font-size: 12px;
	font-weight: 400;
	white-space: nowrap;
}

.ssv-villa__fact svg {
	color: var(--ssv-teal-dark);
	flex: 0 0 auto;
}

.ssv-villa__excerpt {
	margin: 0 0 20px;
	color: var(--ssv-teal-dark);
	font-family: "Mulish", sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 18px;
	letter-spacing: -0.3px;
}

.ssv-villa__features-label {
	margin: 0 0 12px;
	color: var(--ssv-ink);
	font-family: "Mulish", sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.ssv-villa__features {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px 16px;
	width: 100%;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.ssv-villa__feature {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.ssv-villa__feature svg {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	color: var(--ssv-teal);
	stroke: var(--ssv-teal);
}

.ssv-villa__feature span {
	color: var(--ssv-ink);
	font-family: "Mulish", sans-serif;
	font-size: 10px;
	font-weight: 400;
	line-height: 12px;
	letter-spacing: -0.3px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ssv-villa__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 28px;
	border-radius: 100px;
	background: var(--ssv-teal);
	color: #fff !important;
	font-family: "Mulish", sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.2s ease;
}

.ssv-villa__cta:hover,
.ssv-villa__cta:focus {
	background: var(--ssv-teal-dark);
	color: #fff;
}

/* Controls */
.ssv-villas__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 28px;
	margin-top: 8px;
}

.ssv-villas__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 50px;
	height: 50px;
	padding: 0;
	border: 1px solid var(--ssv-teal-dark);
	border-radius: 50%;
	background: transparent;
	color: var(--ssv-teal-dark);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.ssv-villas__arrow:hover,
.ssv-villas__arrow:focus {
	background: var(--ssv-teal);
	border-color: var(--ssv-teal);
	color: #fff;
}

.ssv-villas__meter {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	flex: 0 1 520px;
	min-width: 0;
}

.ssv-villas__counter {
	color: var(--ssv-teal-dark);
	font-family: "Lora", serif;
	font-size: 20px;
	line-height: 1;
}

.ssv-villas__progress {
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: var(--ssv-mist);
	overflow: hidden;
}

.ssv-villas__progress-bar {
	display: block;
	height: 100%;
	background: var(--ssv-teal);
	transition: width 0.3s ease;
}

/* Responsive */
@media (max-width: 860px) {
	.ssv-villa {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.ssv-villa__media {
		min-height: 240px;
	}

	.ssv-villa__body {
		padding: 0 4px 8px;
	}

	.ssv-villa__features {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ssv-villas__controls {
		gap: 16px;
	}

	.ssv-villas__arrow {
		width: 44px;
		height: 44px;
	}
}

@media (max-width: 480px) {
	.ssv-villa {
		padding: 16px;
	}

	.ssv-villa__title {
		font-size: 21px;
		line-height: 25px;
	}

	.ssv-villa__features {
		gap: 10px 12px;
	}
}
