/* ==========================================================================
   HOTEL LIST SLIDER - Bloque de listado de hoteles con slider
   ========================================================================== */

/* ----------------------------------------------------------------------------
   Base Styles (Desktop First)
   ---------------------------------------------------------------------------- */

/* Sección principal */
#hotelListSec {
	background-color: var(--color-base-blue);
	padding: var(--space-between-sections-small) 0;
	width: 100%;
	position: relative;
}

/* ----------------------------------------------------------------------------
   Header del Bloque (Nuevo)
   ---------------------------------------------------------------------------- */

.hotel-list-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 80px;
}

.hotel-list-header__left {
	display: flex;
	flex-direction: column;
	width: var(--two-col-left-width);
}

.hotel-list-header__title {
	font-family: "ArgestaHeadline", serif;
	font-size: var(--title-size);
	line-height: var(--title-line-height);
	font-weight: 400;
	color: var(--color-base-beige);
	margin: 0;
	text-wrap: balance;
	display: flex;
	flex-direction: column;
}

.hotel-list-header__title span {
	font-family: "Playfield Display";
	font-style: normal;
	display: block;
	font-weight: 500;
}

.hotel-list-header__title em {
	font-style: italic;
	font-weight: 400;
	display: block;
}

.hotel-list-header__right {
	display: flex;
	flex-direction: column;
	gap: 32px;
	width: var(--two-col-right-width);
	padding-left: var(--two-col-right-padding);
}

.hotel-list-header__right .bubbleButtonLink,
.hotel-list-header__right .bubbleButtonLink:focus,
.hotel-list-header__right .bubbleButtonLink:hover {
	color: var(--text-white);
}

.hotel-list-header__description {
	font-size: 1rem;
	line-height: 1.75;
	color: var(--color-base-beige);
	margin: 0;
	max-width: 520px;
}

/* ----------------------------------------------------------------------------
   Slider Swiper
   ---------------------------------------------------------------------------- */

#hotelListSec .hotel-list-slider {
	/* El slider se extiende desde el contenido del container hasta el borde derecho del viewport */
	/* --container-margin calcula el espacio entre el viewport y el container centrado */
	--container-margin: max(0px, (100vw - var(--container-width, 1546px)) / 2);
	width: calc(100% + var(--container-margin));
	margin-right: calc(-1 * var(--container-margin));
	overflow: visible;
}

#hotelListSec .swiper-wrapper {
	display: flex;
	align-items: stretch;
}

#hotelListSec .swiper-slide {
	height: auto;
	display: flex;
}

/* ----------------------------------------------------------------------------
   Hotel Card
   ---------------------------------------------------------------------------- */

.hotel-card {
	width: 100%;
	background: transparent;
	border: none;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.hotel-card__image {
	position: relative;
	width: 100%;
	overflow: hidden;
	margin-bottom: 24px;
	display: block;
	text-decoration: none;
	color: inherit;
}

.hotel-card__image picture {
	display: block;
	width: 100%;
}

.hotel-card__image picture img {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 4 / 2.3;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
	position: relative;
}

.hotel-card .hotel-card__image picture::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	transition: all 0.3s ease;
}

.hotel-card:hover .hotel-card__image picture::after {
	background-color: var(--color-light-blue-32);
}

.hotel-card__destination {
	position: absolute;
	top: 20px;
	right: 20px;
	background: var(--color-base-blue-40);
	color: var(--text-white);
	font-size: 0.75rem;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	padding: 8px 20px;
	border-radius: 50px;
	z-index: 2;
	backdrop-filter: blur(8px);
	transition: all 0.3s ease;
}

.hotel-card:hover .hotel-card__destination {
	background: var(--color-base-blue);
}

.hotel-card__content {
	padding-top: 8px;
	flex: 1;
	display: flex;
	flex-direction: column;
	padding-left: 40px
}

.hotel-card__name {
	font-family: "ArgestaHeadline", serif;
	font-size: var(--title-size-item);
	line-height: var(--title-item-line-height);
	font-weight: 400;
	color: var(--text-white);
	margin: 0 0 32px 0;
	text-wrap: balance;
	flex: 1;
}

.hotel-card__buttons {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: auto;
}

/* Botones de las Cards */
.hotel-card__buttons .btn {
	display: inline-block;
	padding: 12px 28px;
	font-size: 0.875rem;
	font-weight: 800;
	line-height: 1.125rem;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 40px;
	transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
	cursor: pointer;
	text-align: center;
}

.hotel-card__buttons .btn--primary {
	background-color: var(--color-base-beige);
	color: var(--color-base-blue);
}

.hotel-card__buttons .btn--primary:hover {
	background-color: var(--text-white);
}

.hotel-card__buttons .bubbleButtonLink,
.hotel-card__buttons .bubbleButtonLink:focus,
.hotel-card__buttons .bubbleButtonLink:hover {
	color: var(--text-white);
}

/* ----------------------------------------------------------------------------
	Footer del Bloque (Nuevo)
   ---------------------------------------------------------------------------- */

.hotel-list-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-block: 32px 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--color-light-blue-16);
	gap: 32px;
}

.hotel-list-footer__left {
	flex-shrink: 0;
}

.hotel-list-footer__right {
	display: flex;
	justify-content: flex-end;
}

/* Botón "View in Map" outline claro */
.btn--outline-light {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 28px;
	font-size: 0.875rem;
	line-height: 1.125rem;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--text-white);
	background-color: var(--color-light-blue-32);
	border-radius: 40px;
	transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
	cursor: pointer;
	text-align: center;
}

.btn.btn--outline-light:focus,
.btn.btn--outline-light:active,
.btn.btn--outline-light:hover {
	color: var(--text-white);
	background-color: var(--color-light-blue-48);
}

.btn--outline-light .arrowMovement {
	width: 16px;
	height: 16px;
	position: relative;
	overflow: hidden;
}

.btn--outline-light .arrow1,
.btn--outline-light .arrow2 {
	position: absolute;
	top: 0;
	left: 0;
	filter: brightness(0) invert(1);
	transition: transform 0.3s ease;
	transform: rotate(-45deg);
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.btn--outline-light .arrow2 {
	transform: translateX(-130%) translateY(130%) rotate(-45deg);
}

.btn--outline-light:hover .arrow2 {
	transform: rotate(-45deg);
}

.btn--outline-light:hover .arrow1 {
	transform: rotate(-45deg) translateX(130%);
}

/* ----------------------------------------------------------------------------
	Navegación del Slider
   ---------------------------------------------------------------------------- */

#hotelListSec .swiperNav {
	display: flex;
	gap: 16px;
	position: static;
	transform: none;
}

#hotelListSec [class*=swiper-button-] {
	position: static;
	width: 40px;
	height: 40px;
	margin: 0;
	border: 1px solid var(--text-white);
	border-radius: 50%;
	transition: all 0.3s ease;
	cursor: pointer;
}

#hotelListSec [class*=swiper-button-] img {
	filter: brightness(0) invert(1);
}

#hotelListSec [class*=swiper-button-]:hover {
	background-color: var(--text-white);
}

#hotelListSec [class*=swiper-button-]:hover img {
	filter: none;
}

#hotelListSec .swiper-button-disabled {
	cursor: not-allowed;
	border-color: #fff;
	opacity: 0.4;
}

#hotelListSec .swiper-button-disabled img {
	filter: var(--color-light-blue-filter);
}

/* ----------------------------------------------------------------------------
   Desktop Pequeño (992px - 1920px)
   ---------------------------------------------------------------------------- */

@media (min-width: 992px) and (max-width: 1920px) {
	/* Header */
	.hotel-list-header {
		margin-bottom: 60px;
	}

	/* .hotel-list-header__title font-size controlado por variable --title-size */

	.hotel-list-header__description {
		font-size: 0.9375rem;
		max-width: 480px;
	}

	/* Cards */
	/* .hotel-card__name font-size controlado por variable --title-size-item */
	.hotel-card__name {
		margin-bottom: 28px;
	}

	.hotel-card__buttons .btn {
		padding: 10px 24px;
		font-size: 0.8125rem;
	}

	/* Footer */
	.hotel-list-footer {
		margin-top: 32px;
	}

	.btn--outline-light {
		padding: 10px 24px;
		font-size: 0.8125rem;
	}
}

/* ----------------------------------------------------------------------------
   Desktop Grande (>1920px)
   ---------------------------------------------------------------------------- */

@media (min-width: 1921px) {
	/* Header */
	.hotel-list-header {
		margin-bottom: 100px;
	}

	/* .hotel-list-header__title font-size controlado por variable --title-size */

	.hotel-list-header__description {
		font-size: 1.125rem;
		max-width: 560px;
	}

	/* Cards */
	/* .hotel-card__name font-size controlado por variable --title-size-item */
	.hotel-card__name {
		margin-bottom: 32px;
	}

	.hotel-card__buttons .btn {
		padding: 14px 32px;
		font-size: 0.9375rem;
	}

	/* Footer */
	.hotel-list-footer {
		margin-top: 48px;
	}

	.btn--outline-light {
		padding: 14px 32px;
		font-size: 0.9375rem;
	}
}

/* ----------------------------------------------------------------------------
   Tablet y Móvil (<992px)
   ---------------------------------------------------------------------------- */

@media (max-width: 992px) {
	/* Header - Layout en columna */
	.hotel-list-header {
		flex-direction: column;
		gap: 46px;
		margin-bottom: 60px;
	}

	.hotel-list-header__right {
		gap: 24px;
	}

	/* .hotel-list-header__title font-size controlado por variable --title-size */

	.hotel-list-header__description {
		font-size: 0.9375rem;
		max-width: 100%;
	}

	/* Cards */
	.hotel-card__image {
		margin-bottom: 20px;
	}

	.hotel-card__destination {
		top: 16px;
		right: 16px;
		font-size: 0.6875rem;
		padding: 6px 16px;
		letter-spacing: 1.2px;
	}

	/* .hotel-card__name font-size controlado por variable --title-size-item */
	.hotel-card__name {
		margin-bottom: 24px;
	}

	.hotel-card__buttons {
		flex-direction: column;
		gap: 12px;
	}

	.hotel-card__buttons .btn {
		width: 100%;
		padding: 12px 24px;
	}

	/* Footer */
	.hotel-list-footer {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
		margin-top: 32px;
	}

	.hotel-list-footer__left {
		width: 100%;
	}

	.hotel-list-footer__right {
		width: 100%;
		justify-content: center;
	}

	.btn--outline-light {
		width: 100%;
		justify-content: center;
		padding: 12px 24px;
	}

	/* Navegación */
	#hotelListSec .swiper-button-prev,
	#hotelListSec .swiper-button-next {
		width: 44px;
		height: 44px;
	}

	#hotelListSec .swiper-button-prev:hover,
	#hotelListSec .swiper-button-next:hover {
		width: 44px;
		height: 44px;
	}
}

/* ----------------------------------------------------------------------------
   Móvil Específico (<576px)
   ---------------------------------------------------------------------------- */

@media (max-width: 576px) {
	/* Header */
	.hotel-list-header {
		margin-bottom: 48px;
	}

	/* .hotel-list-header__title font-size controlado por variable --title-size */

	.hotel-list-header__right {
		gap: 20px;
	}

	.hotel-list-header__description {
		font-size: 0.875rem;
	}

	.hotel-card__image picture img {
		aspect-ratio: 4 / 3.3;
	}
	/* Cards */
	.hotel-card__image {
		margin-bottom: 16px;
	}

	.hotel-card__destination {
		top: 12px;
		right: 12px;
		font-size: 0.625rem;
		padding: 6px 14px;
		letter-spacing: 1px;
	}

	/* .hotel-card__name font-size controlado por variable --title-size-item */
	.hotel-card__name {
		margin-bottom: 20px;
	}

	.hotel-card__buttons .btn {
		padding: 10px 20px;
		font-size: 0.8125rem;
	}

	/* Footer */
	.hotel-list-footer {
		gap: 20px;
		margin-top: 24px;
	}

	.btn--outline-light {
		padding: 10px 20px;
		font-size: 0.8125rem;
	}

	/* Navegación */
	#hotelListSec .swiperNav {
		gap: 12px;
	}

	#hotelListSec .swiper-button-prev,
	#hotelListSec .swiper-button-next {
		width: 40px;
		height: 40px;
	}
}
