/*
 * Página do quarto (woocommerce/hotel/content-room.php).
 * Hero, barra de datas, botões e preço vêm de hw-base.css.
 */

.hw-room {
	background: #fff;
}

/* Bloco de cima (hero até comodidades) sobre o fundo cinza, com a base arredondada. */
.hw-room .hw-room__top {
	padding-bottom: 96px;
	border-radius: 0 0 150px 150px;
	background: var(--hw-ground);
}

/* ---------- Hero ---------- */

.hw-room .hw-room__hero {
	padding-top: 320px;
	padding-bottom: 210px;
}

.hw-room .hw-hero__overlay {
	background: rgba(10, 10, 10, 0.5);
}

.hw-room .hw-hero__title {
	max-width: 760px;
}

.hw-room .hw-hero__lead p {
	margin: 0 0 10px;
	color: #fff;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.3;
}

.hw-room .hw-hero__lead p:last-child {
	margin-bottom: 0;
}

.hw-room .hw-room__facts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 0;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	text-transform: uppercase;
}

.hw-room .hw-room__facts li + li {
	margin-left: 22px;
	padding-left: 22px;
	border-left: 1px solid var(--hw-lime);
	line-height: 1.1;
}

/* ---------- Barra de reserva e avisos ---------- */

.hw-room #reserva {
	scroll-margin-top: 120px;
}

.hw-room .hw-room__notices {
	margin-top: 16px;
}

.hw-room .hw-room__notices .woocommerce-notices-wrapper:empty {
	display: none;
}

.hw-room .hw-room__notices .woocommerce-error,
.hw-room .hw-room__notices .woocommerce-message,
.hw-room .hw-room__notices .woocommerce-info {
	margin: 0;
	padding: 16px 20px;
	border: 0;
	border-left: 4px solid #B3261E;
	border-radius: 12px;
	background: #fff;
	color: var(--hw-ink);
	font-size: 15px;
	list-style: none;
}

.hw-room .hw-room__notices .woocommerce-error::before,
.hw-room .hw-room__notices .woocommerce-message::before,
.hw-room .hw-room__notices .woocommerce-info::before {
	display: none;
}

.hw-room .hw-room__notices .woocommerce-message,
.hw-room .hw-room__notices .woocommerce-info {
	border-left-color: var(--hw-olive);
}

/* ---------- Card de preço ---------- */

.hw-room .hw-room__offer {
	margin-top: 56px;
}

.hw-room .hw-offer {
	display: flex;
	flex-wrap: wrap;
	overflow: hidden;
	border-radius: 64px;
	background: var(--hw-black);
}

.hw-room .hw-offer__info {
	display: flex;
	flex: 1 1 320px;
	flex-direction: column;
	justify-content: center;
	gap: 18px;
	padding: 64px 56px;
	color: #fff;
}

.hw-room .hw-offer__title {
	margin: 0;
	color: #fff;
	font-size: clamp(28px, 2.8vw, 36px);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.hw-room .hw-offer__tag {
	margin: 0;
}

.hw-room .hw-offer__tag .hw-pill {
	padding: 6px 16px;
	font-size: 16px;
}

.hw-room .hw-price--stacked {
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
}

.hw-room .hw-offer .hw-price__currency {
	font-size: 24px;
}

.hw-room .hw-offer .hw-price__value {
	font-size: clamp(72px, 8vw, 108px);
	line-height: 0.85;
}

.hw-room .hw-offer .hw-price__unit {
	padding-left: 48px;
	font-size: clamp(28px, 3vw, 40px);
	line-height: 1;
}

.hw-room .hw-offer__text {
	max-width: 300px;
	margin: 10px 0 0;
	color: var(--hw-soft);
	font-size: 16px;
	font-weight: 300;
	line-height: 1.3;
}

.hw-room .hw-offer__photo {
	flex: 2 1 440px;
	min-width: 0;
	min-height: 380px;
}

.hw-room .hw-offer__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---------- Carrosséis (Owl Carousel, iniciado em room.js) ---------- */

.hw-room .hw-carousel:not(.owl-loaded) {
	display: flex;
	gap: 28px;
	overflow: hidden;
}

.hw-room .hw-carousel:not(.owl-loaded) > .hw-carousel__item {
	flex: 0 0 calc((100% - 56px) / 3);
	min-width: 0;
}

.hw-room .hw-carousel .owl-dots {
	display: flex;
	justify-content: center;
	gap: 4px;
	margin-top: 16px;
}

.hw-room .hw-carousel .owl-dots.disabled {
	display: none;
}

.hw-room .hw-carousel .owl-dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
}

.hw-room .hw-carousel .owl-dot span {
	display: block;
	width: 12px;
	height: 12px;
	margin: 0;
	border: 1px solid #55554F;
	border-radius: 50%;
	background: transparent;
}

.hw-room .hw-carousel .owl-dot.active span {
	background: #55554F;
}

/* ---------- Galeria (carrossel dentro do card de preço) ---------- */

.hw-room .hw-offer__photo {
	position: relative;
}

/* A foto ocupa a área inteira do card, qualquer que seja a altura do texto ao lado. */
.hw-room .hw-carousel--offer,
.hw-room .hw-carousel--offer .owl-stage-outer,
.hw-room .hw-carousel--offer .owl-stage,
.hw-room .hw-carousel--offer .owl-item,
.hw-room .hw-carousel--offer .hw-gallery__link {
	height: 100%;
}

.hw-room .hw-carousel--offer.owl-carousel {
	position: absolute;
	inset: 0;
}

.hw-room .hw-carousel--offer .owl-stage {
	display: flex;
}

.hw-room .hw-carousel--offer:not(.owl-loaded) > .hw-carousel__item {
	flex-basis: 100%;
}

.hw-room .hw-carousel--offer .hw-carousel__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hw-room .hw-gallery__link {
	display: block;
	cursor: zoom-in;
}

.hw-room .hw-carousel--offer .owl-dots {
	position: absolute;
	right: 0;
	bottom: 8px;
	left: 0;
	margin: 0;
}

.hw-room .hw-carousel--offer .owl-dot span {
	border-color: #fff;
	box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
}

.hw-room .hw-carousel--offer .owl-dot.active span {
	background: #fff;
}

/* Mais de 5 fotos: janela de 5 pontinhos, ativo no centro, pontas menores (room.js define --hw-dots-shift e data-dist). */
.hw-room .hw-carousel--offer .owl-dots.hw-dots--dynamic {
	--hw-dot-size: 22px;
	right: auto;
	left: 50%;
	justify-content: flex-start;
	gap: 0;
	width: calc(var(--hw-dot-size) * 5);
	overflow: hidden;
	transform: translateX(-50%);
}

.hw-room .hw-carousel--offer .hw-dots--dynamic .owl-dot {
	flex: none;
	width: var(--hw-dot-size);
	transform: translateX(calc(var(--hw-dots-shift, 0) * var(--hw-dot-size)));
	transition: transform 0.3s ease;
}

.hw-room .hw-carousel--offer .hw-dots--dynamic .owl-dot span {
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.hw-room .hw-carousel--offer .hw-dots--dynamic .owl-dot[data-dist="1"] span {
	transform: scale(0.75);
}

.hw-room .hw-carousel--offer .hw-dots--dynamic .owl-dot[data-dist="2"] span {
	opacity: 0.6;
	transform: scale(0.5);
}

.hw-room .hw-carousel--offer .hw-dots--dynamic .owl-dot[data-dist="3"] {
	pointer-events: none;
}

.hw-room .hw-carousel--offer .hw-dots--dynamic .owl-dot[data-dist="3"] span {
	opacity: 0;
	transform: scale(0.3);
}

.hw-room .hw-carousel--offer .owl-nav button.owl-prev,
.hw-room .hw-carousel--offer .owl-nav button.owl-next {
	position: absolute;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	transform: translateY(-50%);
	transition: background-color 0.2s;
}

.hw-room .hw-carousel--offer .owl-nav button.owl-prev {
	left: 20px;
}

.hw-room .hw-carousel--offer .owl-nav button.owl-next {
	right: 20px;
}

.hw-room .hw-carousel--offer .owl-nav button:hover,
.hw-room .hw-carousel--offer .owl-nav button:focus-visible {
	background: rgba(0, 0, 0, 0.7);
}

.hw-room .hw-carousel--offer .owl-nav svg {
	width: 22px;
	height: 22px;
}

/* ---------- Foto ampliada (dialog criado em room.js, fora de .hw) ---------- */

.hw-lightbox {
	width: 100vw;
	max-width: 100vw;
	height: 100vh;
	max-height: 100vh;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-family: 'Montserrat', sans-serif;
}

.hw-lightbox::backdrop {
	background: rgba(10, 10, 10, 0.92);
}

.hw-lightbox__stage {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 64px 72px;
	box-sizing: border-box;
}

/*
 * Tamanho pela proporção da foto (--hw-ar, definida em room.js), não pelo arquivo carregado: a miniatura e a
 * original ocupam o mesmo espaço, e o zoom de abertura sabe o tamanho final antes de a original chegar.
 * O raio vem do clip-path da animação/estado final; aqui fica igual para quem não anima.
 */
.hw-lightbox__img {
	--hw-lightbox-pad-y: 128px;
	width: min(100%, calc((100vh - var(--hw-lightbox-pad-y)) * var(--hw-ar, 1.5)));
	height: auto;
	max-height: 100%;
	aspect-ratio: var(--hw-ar, 1.5);
	border-radius: 12px;
	object-fit: cover;
	will-change: transform;
}

dialog.hw-lightbox .hw-lightbox__btn {
	position: absolute;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid #fff;
	border-radius: 50%;
	background: rgba(10, 10, 10, 0.6);
	color: #fff;
	cursor: pointer;
}

dialog.hw-lightbox .hw-lightbox__btn:hover,
dialog.hw-lightbox .hw-lightbox__btn:focus-visible {
	background: #B0C90F;
	border-color: #B0C90F;
	color: #111;
}

dialog.hw-lightbox .hw-lightbox__btn:focus-visible {
	outline: 3px solid #B0C90F;
	outline-offset: 3px;
}

.hw-lightbox__btn svg {
	width: 22px;
	height: 22px;
}

.hw-lightbox__close {
	top: 16px;
	right: 16px;
}

.hw-lightbox__prev,
.hw-lightbox__next {
	top: 50%;
	transform: translateY(-50%);
}

.hw-lightbox__prev {
	left: 16px;
}

.hw-lightbox__next {
	right: 16px;
}

.hw-lightbox__counter {
	position: absolute;
	bottom: 18px;
	left: 0;
	width: 100%;
	margin: 0;
	color: #fff;
	font-size: 14px;
	text-align: center;
	/* Ocupa a largura toda: sem isso cobre as setas, que no celular ficam na mesma faixa de baixo. */
	pointer-events: none;
}

@media (max-width: 767px) {
	.hw-lightbox__stage {
		padding: 72px 12px;
	}

	.hw-lightbox__img {
		--hw-lightbox-pad-y: 144px;
	}

	.hw-lightbox__prev,
	.hw-lightbox__next {
		top: auto;
		bottom: 12px;
		transform: none;
	}
}

/* ---------- Comodidades ---------- */

.hw-room .hw-room__amenities {
	margin-top: 64px;
	text-align: center;
}

.hw-room .hw-room__amenities .hw-heading {
	margin-bottom: 40px;
}

.hw-room .hw-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	max-width: 920px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.hw-room .hw-chips li {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px;
	border-radius: 10px;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.2;
	text-align: left;
}

.hw-room .hw-chips i {
	flex: none;
	width: 22px;
	font-size: 18px;
	text-align: center;
}

/* Ícones que a Font Awesome do tema (5.3) não tem: use "hw-ico hw-ico--hairdryer", "--fridge" ou "--robe" no campo de ícone da comodidade. */
.hw-room .hw-chips i.hw-ico {
	display: inline-block;
	height: 18px;
	background: currentColor;
	-webkit-mask: var(--hw-ico) center / contain no-repeat;
	mask: var(--hw-ico) center / contain no-repeat;
}

.hw-room .hw-chips i.hw-ico--hairdryer {
	--hw-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M5 3h9.5A5.5 5.5 0 0 1 20 8.5V9h2v4h-2v.5a5.5 5.5 0 0 1-5.5 5.5h-.8l-.9 3.2a1.5 1.5 0 0 1-1.4 1.1H9.6a1.4 1.4 0 0 1-1.4-1.7L9.2 19H5a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3zm1.5 4.2a1.3 1.3 0 1 0 0 2.6 1.3 1.3 0 0 0 0-2.6z'/%3E%3C/svg%3E");
}

.hw-room .hw-chips i.hw-ico--robe {
	--hw-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M8.5 2.5 12 7l3.5-4.5 4.2 2 2.3 8.2-3 1V22H7v-8.8l-3-1 2.3-8.2zM7 12.7v1.6h10v-1.6zm4.4-4.2v4.2h1.2V8.5zm0 5.8V22h1.2v-7.7z'/%3E%3C/svg%3E");
}

.hw-room .hw-chips i.hw-ico--fridge {
	--hw-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M7 2h10a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm-.5 6.2v1.6h11V8.2zM8.2 4.5v2.2h1.5V4.5zm0 8v4h1.5v-4z'/%3E%3C/svg%3E");
}

.hw-room .hw-chips--light {
	padding-bottom: 24px;
	border-bottom: 1px solid #fff;
}

.hw-room .hw-chips--light li {
	background: #fff;
	color: var(--hw-ink);
}

.hw-room .hw-chips--light i {
	color: var(--hw-olive);
}

.hw-room .hw-chips--dark {
	margin-top: 24px;
}

.hw-room .hw-chips--dark li {
	background: var(--hw-black);
	color: #fff;
}

.hw-room .hw-chips--dark i {
	color: var(--hw-lime);
}

/* ---------- Botão central ---------- */

.hw-room .hw-room__cta {
	position: relative;
	display: flex;
	justify-content: center;
	/* Fica metade sobre a borda arredondada do bloco de cima, qualquer que seja a altura do botão. */
	transform: translateY(-50%);
	padding: 0 24px;
}

/* ---------- Outros quartos ---------- */

.hw-room .hw-room__others {
	padding-top: 36px;
	padding-bottom: 80px;
}

.hw-room .hw-room__others .hw-heading {
	max-width: 680px;
	margin: 0 auto 44px;
	text-align: center;
}

.hw-room .hw-room__others .hw-heading strong {
	font-weight: 600;
}

.hw-room .hw-other-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 540px;
	overflow: hidden;
	border-radius: 20px;
	background: var(--hw-black);
	color: #fff;
	text-decoration: none;
}

.hw-room .hw-other-card__img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s;
}

.hw-room .hw-other-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to bottom, rgba(11, 11, 11, 0) 38%, rgba(11, 11, 11, 0.45) 56%, rgba(11, 11, 11, 0.8) 76%, rgba(11, 11, 11, 0.9) 100%);
}

.hw-room .hw-other-card:hover .hw-other-card__img,
.hw-room .hw-other-card:focus-visible .hw-other-card__img {
	transform: scale(1.04);
}

.hw-room .hw-other-card__body {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 0 32px 36px;
}

.hw-room .hw-other-card__title {
	color: #fff;
	font-size: 28px;
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	/* Com a sombra mais leve, o título pode cair sobre uma parte clara da foto. */
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.hw-room .hw-other-card .hw-pill {
	padding: 4px 14px;
	font-size: 14px;
}

.hw-room .hw-other-card .hw-price {
	margin-top: 10px;
}

.hw-room .hw-other-card .hw-price__currency {
	font-size: 22px;
}

.hw-room .hw-other-card .hw-price__value {
	font-size: clamp(64px, 6.4vw, 92px);
	line-height: 0.85;
}

.hw-room .hw-other-card .hw-price__unit {
	padding-left: 44px;
	font-size: 34px;
	line-height: 1;
}

/* ---------- Bloco final ---------- */

.hw-room .hw-room__closing {
	position: relative;
	overflow: hidden;
	background: var(--hw-ink);
	color: #fff;
}

.hw-room .hw-room__closing-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, rgba(10, 10, 10, 0.72), rgba(10, 10, 10, 0.25));
}

.hw-room .hw-room__closing-content {
	position: relative;
	padding-top: 150px;
	padding-bottom: 96px;
}

.hw-room .hw-room__closing-title strong {
	display: block;
}

.hw-room .hw-room__closing-title {
	max-width: 480px;
	margin: 0;
	color: #fff;
	font-size: clamp(30px, 4vw, 48px);
	font-weight: 300;
	line-height: 1.02;
	text-transform: none;
}

.hw-room .hw-room__closing-text {
	max-width: 380px;
	margin: 28px 0 0;
	color: #fff;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.3;
}

.hw-room .hw-room__closing-brand {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px 44px;
	margin: 44px 0 52px;
}

.hw-room .hw-room__closing-logo {
	width: 250px;
	max-width: 70%;
	height: auto;
}

.hw-room .hw-room__closing-brand p {
	margin: 0;
	color: #fff;
	font-size: 26px;
	font-weight: 500;
	line-height: 1.05;
}

/* ---------- Responsivo ---------- */

@media (max-width: 991px) {
	.hw-room .hw-carousel:not(.owl-loaded) > .hw-carousel__item {
		flex-basis: calc((100% - 28px) / 2);
	}
}

@media (max-width: 767px) {
	.hw-room .hw-room__top {
		padding-bottom: 72px;
		border-radius: 0 0 40px 40px;
	}

	.hw-room .hw-room__hero {
		padding-top: 230px;
		padding-bottom: 150px;
	}

	.hw-room .hw-room__facts {
		font-size: 13px;
	}

	.hw-room .hw-room__facts li + li {
		margin-left: 12px;
		padding-left: 12px;
	}

	.hw-room .hw-room__offer {
		margin-top: 36px;
	}

	.hw-room .hw-offer {
		border-radius: 32px;
	}

	.hw-room .hw-offer__info {
		padding: 40px 28px;
	}

	.hw-room .hw-offer__photo {
		flex-basis: 100%;
		min-height: 240px;
		aspect-ratio: 4 / 3;
	}

	.hw-room .hw-room__amenities {
		margin-top: 48px;
	}

	.hw-room .hw-room__amenities .hw-heading {
		margin-bottom: 28px;
	}

	.hw-room .hw-carousel:not(.owl-loaded) > .hw-carousel__item {
		flex-basis: 100%;
	}

	/* No celular a galeria do card troca de foto pelo arrasto e pelos pontinhos. */
	.hw-room .hw-carousel--offer .owl-nav {
		display: none;
	}

	.hw-room .hw-chips {
		gap: 8px;
	}

	.hw-room .hw-chips li {
		padding: 9px 12px;
		font-size: 15px;
	}

	.hw-room .hw-room__cta .hw-btn {
		width: 100%;
	}

	.hw-room .hw-room__others {
		padding-top: 20px;
		padding-bottom: 56px;
	}

	.hw-room .hw-other-card {
		min-height: 440px;
	}

	.hw-room .hw-room__closing-content {
		padding-top: 96px;
		padding-bottom: 64px;
	}

	.hw-room .hw-room__closing-brand {
		margin: 32px 0 36px;
	}

	.hw-room .hw-room__closing-brand p {
		font-size: 22px;
	}

	.hw-room .hw-room__closing-content .hw-btn {
		width: 100%;
	}
}
