/* === ESTRUCTURA GENERAL === */
.list-slider {
	margin-bottom: var(--space-between-sections);
	background-color: #fff;
}

.list-slider__carousel {
	margin-top: var(--space-between-sections);
	position: relative;
}

/* === SWIPER === */
.list-slider .swiper {
	overflow: hidden;
	/* Evita que se vea el siguiente slide en escritorio */
}

.list-slider .swiper-wrapper {
	display: flex;
	align-items: stretch;
	overflow: visible;
	padding-bottom: 2px;
}

.list-slider .swiper-slide {
	display: flex;
	justify-content: center;
	flex-shrink: 0;
	height: auto;
}

/* === ITEM (CARD) === */
.list-slider__item {
	width: 100%;
	text-align: center;
	padding: 0;
	margin: 0 16px;
}

.list-slider__item:hover {
	height: max-content;
	box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
	z-index: 4;
	transform: scale(1);
	transition: all 0.3s ease;
	cursor: pointer;
}

.list-slider__item a {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.list-slider__item .list-slider__carousel__buttons {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
}

.list-slider__item .list-slider__carousel__buttons a {
	height: auto;
	padding: 8px 16px;
	margin-bottom: 24px;
}

.list-slider__item img {
	width: 100%;
	aspect-ratio: 4/5;
	object-fit: cover;
}

.list-slider__item-title {
	padding: 24px 24px 24px 24px;
	font-weight: 700;
	color: #333;
	font-size: 16px;
	font-family: Poppins;
	margin: 0;
	text-transform: uppercase;
	border-left: 1px solid #aaa;
	border-bottom: 1px solid #aaa;
	border-right: 1px solid #aaa;
	transition: border 0.3s;
}

.list-slider-moreinfo-pop-up {
	margin-inline: auto;
	width: max-content;
}

/* === CONTROLES DE NAVEGACIÓN === */
.list-slider__controls {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 24px;
	font-family: Poppins;
}

.list-slider__controls:has(.swiper-pagination-lock) {
	display: none;
}

.list-slider .swiper-button-prev,
.list-slider .swiper-button-next {
	position: relative;
	top: 0;
	left: 0;
	width: 16px;
	margin-top: 0;
	padding: 10px;
	color: #000;
	cursor: pointer;
	border-radius: 50%;
	transition: all 0.3s ease;
}

.list-slider .swiper-button-prev::after,
.list-slider .swiper-button-next::after {
	width: 16px;
	height: 14px;
	background-size: contain;
	font-size: 18px;
}

/* === PAGINACIÓN === */
.list-slider__pagination {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: auto;
	font-weight: 400;
	font-size: 20px;
	text-align: center;
	margin-top: 3px;
}

.list-slider__pagination span {
	margin-inline: 10px;
	font-size: 16px;
}

@media (min-width: 1024px) {
	.list-slider__item-pop-up:hover {
		height: max-content;
		box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
		z-index: 4;
		transform: scale(1);
		transition: all 0.3s ease;
		cursor: pointer;
	}
}

@media (max-width: 767px) {
	.list-slider {
		margin-bottom: 23px;
	}

	.list-slider__item {
		margin-right: 0;
	}

	.list-slider__item .list-slider__carousel__buttons a {
		padding: 4px 18px;
	}

	.list-slider--apartments .list-slider__carousel__buttons {
		gap: 9px;
	}

	.list-slider--apartments .list-slider__item__description {
		border-inline: 1px solid #aaa;
		border-bottom: 1px solid #aaa;
		transition: border 0.3s;
	}

	.list-slider--apartments .list-slider__item-title {
		border: unset;
		padding-bottom: unset;
		padding-inline: unset;
	}

	.list-slider--apartments .details-btn {
		border-color: #727176;
		color: #727176;
		padding-inline: 27px !important;
	}

	.list-slider--apartments .list-slider__carousel__buttons a.cta {
		width: 40%;
	}

	.list-slider__pagination span {
		margin-inline: 10px;
		font-size: 19px;
	}

	.list-slider .swiper-button-prev,
	.list-slider .swiper-button-next {
		top: -3px;
	}

	.list-slider .swiper-button-prev::after,
	.list-slider .swiper-button-next::after {
		font-size: 25px;
	}
}