/* Hotéis FAEX — Título > Carrossel > Descrição */

.hfx-widget {
	width: 100%;
}

.hfx-title {
	margin: 0 0 20px;
}

.hfx-carousel {
	--hfx-slides-per-view: 1;
	--hfx-gap: 12px;
	--hfx-speed: 500ms;
	position: relative;
	width: 100%;
}

.hfx-track-viewport {
	overflow: hidden;
	width: 100%;
}

.hfx-track {
	display: flex;
	will-change: transform, opacity;
	transition: transform var(--hfx-speed) ease;
}

.hfx-slide {
	flex: 0 0 auto;
	margin-right: var(--hfx-gap);
	box-sizing: border-box;
}

.hfx-slide:last-child {
	margin-right: 0;
}

.hfx-slide-media {
	position: relative;
	width: 100%;
	height: 320px;
	border-radius: 12px;
	overflow: hidden;
	background: #f0f0f0;
}

.hfx-slide-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hfx-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 10px 14px;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-size: 0.9em;
	line-height: 1.4;
}

.hfx-description {
	margin-top: 20px;
	color: #4a4a4a;
	line-height: 1.6;
}

.hfx-description p:last-child {
	margin-bottom: 0;
}

/* ---- Navegação: setas ---- */
.hfx-arrow {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #1a1a1a;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	padding: 0;
	line-height: 0;
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.hfx-arrow svg {
	width: 40%;
	height: 40%;
	display: block;
	pointer-events: none;
}

.hfx-arrow:hover {
	transform: translateY(-50%) scale(1.08);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.hfx-arrow:active {
	transform: translateY(-50%) scale(0.96);
}

.hfx-arrow:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.hfx-arrow:disabled,
.hfx-arrow.is-disabled {
	opacity: 0.35;
	cursor: default;
	box-shadow: none;
}

.hfx-arrow:disabled:hover,
.hfx-arrow.is-disabled:hover {
	transform: translateY(-50%);
}

.hfx-arrow-prev {
	left: 10px;
}

.hfx-arrow-next {
	right: 10px;
}

/* ---- Navegação: dots ---- */
.hfx-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
}

.hfx-dot {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 8px;
	height: 8px;
	margin: 0;
	border-radius: 999px;
	border: 0;
	background: #d9d9d9;
	cursor: pointer;
	padding: 0;
	display: block;
	transition: background-color 0.25s ease, width 0.25s ease;
}

.hfx-dot:hover {
	background: #bdbdbd;
}

.hfx-dot:focus-visible {
	outline: 2px solid #8a8a8a;
	outline-offset: 3px;
}

.hfx-dot.is-active {
	width: 24px;
	background: #f7931e;
}

/* ---- Estilos de transição ---- */
.hfx-carousel[data-transition="fade"] .hfx-track {
	transition: none;
}

.hfx-carousel[data-transition="fade"] .hfx-slide {
	opacity: 0;
	position: absolute;
	inset: 0;
	pointer-events: none;
	transition: opacity var(--hfx-speed) ease;
}

.hfx-carousel[data-transition="fade"] .hfx-slide.is-active {
	opacity: 1;
	position: relative;
	pointer-events: auto;
}

.hfx-carousel[data-transition="fade"] .hfx-track-viewport {
	position: relative;
}

.hfx-carousel[data-transition="slide-fade"] .hfx-track.is-animating {
	opacity: 0.4;
}

.hfx-carousel[data-transition="zoom"] .hfx-slide-media {
	transition: transform var(--hfx-speed) ease, opacity var(--hfx-speed) ease;
}

.hfx-carousel[data-transition="zoom"] .hfx-track.is-animating .hfx-slide-media {
	transform: scale(0.94);
	opacity: 0.7;
}

/* ---- Responsivo (fallback) ---- */
@media (max-width: 767px) {
	.hfx-slide-media {
		height: 200px;
	}

	.hfx-arrow {
		width: 34px;
		height: 34px;
	}
}
