/**
 * Página única de imóvel (templates/single-imovel.php).
 *
 * Depende dos tokens definidos em :root por frontend.css (cores, radius,
 * shadow, fontes) — este arquivo é enfileirado com frontend.css como
 * dependência (ver TemplateLoader::enqueue_assets()), então nunca duplica
 * os tokens, apenas os consome via var(--agencia-*).
 *
 * Layout inspirado em fichas de acomodação de referência (galeria em
 * grade, cartão de reserva fixo na lateral), mas com a paleta bordô/dourado
 * e tipografia Poppins/Inter/Lora já usadas no restante do site.
 */

/* Container e cabeçalho */

.agencia-imovel-single__container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 2rem 1.5rem 4.5rem;
}

.agencia-imovel-single__topo {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: 1.25rem;
}

.agencia-imovel-single__titulo {
	font-family: var(--agencia-font-heading);
	color: var(--agencia-text);
	font-size: clamp(1.6rem, 3vw, 2.15rem);
	line-height: 1.2;
	margin: 0;
}

.agencia-imovel-single__topo-acoes {
	display: flex;
	gap: 0.5rem;
	flex-shrink: 0;
}

.agencia-imovel-single__acao {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: none;
	border: none;
	padding: 0.5rem 0.7rem;
	border-radius: var(--agencia-radius-pill);
	font-family: var(--agencia-font-body);
	font-weight: 600;
	font-size: 0.85rem;
	color: var(--agencia-text);
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.agencia-imovel-single__acao:hover {
	background: var(--agencia-bg-soft);
	color: var(--agencia-primary);
}

.agencia-imovel-single__acao svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.agencia-imovel-single__acao[aria-pressed="true"] {
	color: var(--agencia-primary);
}

.agencia-imovel-single__acao[aria-pressed="true"] svg {
	fill: var(--agencia-primary);
	stroke: var(--agencia-primary);
}

/* Galeria */

.agencia-imovel-galeria {
	position: relative;
	margin-bottom: 2.5rem;
}

.agencia-imovel-galeria__grid {
	display: grid;
	gap: 4px;
	border-radius: var(--agencia-radius-large);
	overflow: hidden;
}

.agencia-imovel-galeria__item {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	background: var(--agencia-bg-soft);
	overflow: hidden;
}

.agencia-imovel-galeria__item-foto {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
	border: none;
	border-radius: 0;
	background: none;
	cursor: pointer;
	overflow: hidden;
	appearance: none;
	-webkit-appearance: none;
}

.agencia-imovel-galeria__item-foto img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.agencia-imovel-galeria__item-foto:hover img {
	transform: scale(1.04);
}

.agencia-imovel-galeria__grid--total-5 {
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: repeat(2, 220px);
}

.agencia-imovel-galeria__grid--total-5 .agencia-imovel-galeria__item--principal {
	grid-column: 1 / 3;
	grid-row: 1 / 3;
}

.agencia-imovel-galeria__grid--total-4 {
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: 260px;
}

.agencia-imovel-galeria__grid--total-3 {
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: 280px;
}

.agencia-imovel-galeria__grid--total-2 {
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: 340px;
}

.agencia-imovel-galeria__grid--total-1 {
	grid-template-columns: 1fr;
	grid-template-rows: 420px;
}

/*
 * Estilo inspirado em fichas de acomodação de referência (Airbnb): o botão
 * "Mostrar todas as fotos" não escurece a última miniatura — a foto segue
 * com o brilho normal e apenas uma pílula branca fica ancorada no canto
 * inferior direito dela, sinalizando que ali existem mais fotos. O botão
 * em si cobre a miniatura inteira (área de clique maior), mas fica
 * transparente; só a pílula é visível.
 */
.agencia-imovel-galeria__todas {
	position: absolute;
	inset: 0;
	display: block;
	padding: 0;
	margin: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.agencia-imovel-galeria__todas-pill {
	position: absolute;
	right: 0.85rem;
	bottom: 0.85rem;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	background: #fff;
	color: var(--agencia-text, #241a18);
	font-family: var(--agencia-font-body);
	font-size: 0.82rem;
	font-weight: 600;
	padding: 0.55rem 1rem;
	border-radius: 999px;
	box-shadow: 0 1px 3px rgba(20, 14, 13, 0.28), 0 1px 2px rgba(20, 14, 13, 0.14);
	white-space: nowrap;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.agencia-imovel-galeria__todas:hover .agencia-imovel-galeria__todas-pill {
	box-shadow: 0 3px 8px rgba(20, 14, 13, 0.32), 0 1px 3px rgba(20, 14, 13, 0.18);
	transform: translateY(-1px);
}

.agencia-imovel-galeria__todas-pill svg {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
}

/*
 * "Tour por fotos": overlay em tela cheia, estilo Airbnb. Uma grade de
 * categorias (uma por ambiente) no topo, e abaixo uma seção por ambiente
 * com a coluna de informações fixa (sticky) enquanto as fotos daquele
 * ambiente rolam ao lado.
 */

.agencia-tour-fotos {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: #fff;
	display: flex;
	flex-direction: column;
}

.agencia-tour-fotos[hidden] {
	display: none;
}

.agencia-tour-fotos__topo {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.5rem;
	border-bottom: 1px solid var(--agencia-border);
	background: #fff;
	z-index: 2;
}

.agencia-tour-fotos__voltar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: none;
	border: none;
	color: var(--agencia-text);
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.agencia-tour-fotos__voltar:hover {
	background: var(--agencia-bg-soft);
}

.agencia-tour-fotos__voltar svg {
	width: 22px;
	height: 22px;
}

.agencia-tour-fotos__topo-acoes {
	display: flex;
	gap: 0.5rem;
}

.agencia-tour-fotos__corpo {
	flex: 1;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.agencia-tour-fotos__categorias {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 1rem;
	max-width: 1000px;
	margin: 0 auto;
	padding: 2rem 1.5rem;
}

.agencia-tour-fotos__categoria {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.6rem;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
}

.agencia-tour-fotos__categoria-foto {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: var(--agencia-radius);
	overflow: hidden;
	background: var(--agencia-bg-soft);
}

.agencia-tour-fotos__categoria-foto img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.agencia-tour-fotos__categoria:hover .agencia-tour-fotos__categoria-foto img {
	transform: scale(1.05);
}

.agencia-tour-fotos__categoria-nome {
	font-family: var(--agencia-font-body);
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--agencia-text);
}

.agencia-tour-fotos__secao {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 2.5rem;
	max-width: 1000px;
	margin: 0 auto;
	padding: 1.5rem 1.5rem 3rem;
	border-top: 1px solid var(--agencia-border);
	align-items: start;
}

.agencia-tour-fotos__secao-info {
	position: sticky;
	top: 1.5rem;
	align-self: start;
}

.agencia-tour-fotos__secao-nome {
	font-family: var(--agencia-font-heading);
	color: var(--agencia-text);
	font-size: 1.3rem;
	margin: 0 0 0.5rem;
}

.agencia-tour-fotos__secao-itens {
	font-family: var(--agencia-font-body);
	color: var(--agencia-text);
	opacity: 0.75;
	font-size: 0.9rem;
	line-height: 1.5;
	margin: 0;
}

.agencia-tour-fotos__secao-fotos {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
}

.agencia-tour-fotos__foto {
	border-radius: var(--agencia-radius);
	overflow: hidden;
	background: var(--agencia-bg-soft);
}

.agencia-tour-fotos__foto img {
	width: 100%;
	height: auto;
	display: block;
}

@media (max-width: 720px) {
	.agencia-tour-fotos__secao {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.agencia-tour-fotos__secao-info {
		position: static;
	}

	.agencia-tour-fotos__secao-fotos {
		grid-template-columns: 1fr;
	}
}

/* Layout de duas colunas: conteúdo principal + cartão de reserva fixo */

.agencia-imovel-single__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 4rem;
	align-items: start;
}

.agencia-imovel-single__principal {
	min-width: 0;
}

.agencia-imovel-single__lateral {
	position: sticky;
	top: 6rem;
}

/*
 * `position: sticky` sempre cria um novo contexto de empilhamento (mesmo
 * sem z-index explícito), então os popovers/overlay fixos aninhados aqui
 * dentro (datas, hóspedes, checkout — todos com z-index 900/1000) ficam
 * "presos" nesse contexto local e são pintados abaixo do cabeçalho do
 * site (z-index 40), que vive num contexto irmão — mesmo o overlay tendo
 * z-index maior. Sem isto, o modal "Confirmar e pagar" aparece com o
 * topo (título/fechar) coberto pelo header. Eleva o próprio contexto da
 * lateral só enquanto um desses popovers estiver aberto, sem afetar o
 * empilhamento normal durante a rolagem da página.
 */
.agencia-imovel-single__lateral:has(> .agencia-imovel-reserva [data-agencia-datas-popover]:not([hidden])),
.agencia-imovel-single__lateral:has(> .agencia-imovel-reserva [data-agencia-hospedes-popover]:not([hidden])),
.agencia-imovel-single__lateral:has(> .agencia-imovel-reserva [data-agencia-checkout-overlay]:not([hidden])) {
	z-index: 950;
}

.agencia-imovel-single__divisor {
	border: none;
	border-top: 1px solid var(--agencia-border);
	margin: 2rem 0;
}

.agencia-imovel-single__secao h2 {
	font-family: var(--agencia-font-heading);
	color: var(--agencia-text);
	font-size: 1.4rem;
	margin: 0 0 1.25rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.agencia-imovel-single__secao h2 svg {
	width: 20px;
	height: 20px;
	fill: var(--agencia-accent);
}

/* Resumo (hóspedes/quartos/camas/banheiros + link de avaliação) */

.agencia-imovel-single__resumo {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.agencia-imovel-single__stats {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0 1.1rem;
	margin: 0;
	padding: 0;
	font-family: var(--agencia-font-body);
	font-size: 1rem;
	color: var(--agencia-text);
}

.agencia-imovel-single__stats li {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding-right: 1.1rem;
}

.agencia-imovel-single__stats li svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	color: var(--agencia-muted);
}

.agencia-imovel-single__stats li:not(:last-child)::after {
	content: '·';
	position: absolute;
	right: 0.35rem;
	color: var(--agencia-muted);
}

.agencia-imovel-single__avaliacao-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--agencia-text);
	text-decoration: none;
	font-size: 0.95rem;
}

.agencia-imovel-single__avaliacao-link svg {
	width: 16px;
	height: 16px;
	fill: var(--agencia-accent);
}

.agencia-imovel-single__avaliacao-link:hover strong {
	color: var(--agencia-primary);
}

.agencia-imovel-single__avaliacao-link span {
	color: var(--agencia-muted);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Destaques (piscina, check-in facilitado, localização, wifi...) */

.agencia-imovel-single__destaques {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
	margin: 1.75rem 0;
}

.agencia-imovel-single__destaque {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}

.agencia-imovel-single__destaque svg {
	width: 26px;
	height: 26px;
	flex-shrink: 0;
	color: var(--agencia-primary);
	margin-top: 0.1rem;
}

.agencia-imovel-single__destaque p {
	margin: 0;
	font-size: 0.95rem;
	color: var(--agencia-text);
	line-height: 1.5;
}

/* Anfitrião (linha resumida acima da descrição) */

.agencia-imovel-single__anfitriao-linha {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.agencia-imovel-single__anfitriao-avatar {
	border-radius: 50%;
	flex-shrink: 0;
}

.agencia-imovel-single__anfitriao-nome {
	margin: 0 0 0.15rem;
	font-family: var(--agencia-font-heading);
	font-weight: 600;
	color: var(--agencia-text);
}

.agencia-imovel-single__anfitriao-desde {
	margin: 0;
	font-size: 0.85rem;
	color: var(--agencia-muted);
}

/* Descrição */

.agencia-imovel-single__descricao-wrap {
	position: relative;
}

.agencia-imovel-single__descricao {
	font-size: 1rem;
	line-height: 1.75;
	color: var(--agencia-text);
	overflow: hidden;
	max-height: 12.25rem; /* ~7 linhas antes de truncar */
	transition: max-height 0.3s ease;
}

.agencia-imovel-single__descricao-wrap.is-truncado .agencia-imovel-single__descricao {
	-webkit-mask-image: linear-gradient(to bottom, #000 75%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 75%, transparent 100%);
}

.agencia-imovel-single__descricao-wrap.is-expandido .agencia-imovel-single__descricao {
	max-height: none;
}

.agencia-imovel-single__descricao p:last-child {
	margin-bottom: 0;
}

.agencia-imovel-single__descricao-mais {
	margin-top: 1rem;
}

.agencia-imovel-avaliacoes__mostrar-mais {
	margin-top: 1.5rem;
}

/* Cômodos / camas — slider estilo Airbnb */

.agencia-imovel-comodos-slider__cabecalho {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.agencia-imovel-comodos-slider__cabecalho h2 {
	margin: 0;
}

.agencia-imovel-comodos-slider__nav {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-shrink: 0;
}

.agencia-imovel-comodos-slider--sem-nav .agencia-imovel-comodos-slider__nav {
	display: none;
}

.agencia-imovel-comodos-slider__contador {
	font-size: 0.85rem;
	color: var(--agencia-muted);
	min-width: 2.2rem;
	text-align: center;
}

.agencia-imovel-comodos-slider__seta {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	border-radius: 50%;
	border: 1px solid var(--agencia-border);
	background: #fff;
	color: var(--agencia-text);
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.agencia-imovel-comodos-slider__seta:hover:not(:disabled) {
	background: #F7F1F0;
	border-color: var(--agencia-text);
}

.agencia-imovel-comodos-slider__seta:disabled {
	opacity: 0.35;
	cursor: default;
}

.agencia-imovel-comodos-slider__seta svg {
	width: 16px;
	height: 16px;
}

.agencia-imovel-comodos-slider__viewport {
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.agencia-imovel-comodos-slider__viewport::-webkit-scrollbar {
	display: none;
}

.agencia-imovel-comodos {
	display: flex;
	gap: 1.25rem;
}

.agencia-imovel-comodos__card {
	flex: 0 0 auto;
	width: 260px;
	scroll-snap-align: start;
	border: 1px solid var(--agencia-border);
	border-radius: var(--agencia-radius);
	padding: 1.5rem 1.25rem;
}

.agencia-imovel-comodos__card svg {
	width: 28px;
	height: 28px;
	color: var(--agencia-primary);
	margin-bottom: 0.9rem;
}

.agencia-imovel-comodos__card h3 {
	margin: 0 0 0.5rem;
	font-family: var(--agencia-font-heading);
	font-size: 1rem;
	color: var(--agencia-text);
}

.agencia-imovel-comodos__card ul {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.9rem;
	color: var(--agencia-muted);
}

.agencia-imovel-comodos__card ul li {
	margin-bottom: 0.2rem;
}

.agencia-imovel-comodos__itens {
	margin: 0.5rem 0 0;
	font-size: 0.85rem;
	color: var(--agencia-muted);
}

.agencia-imovel-comodos__fotos {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: 10px;
	overflow: hidden;
	margin: 0.75rem 0;
	background: var(--agencia-bg-soft);
}

.agencia-imovel-comodos__foto {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	border: none;
	padding: 0;
	cursor: pointer;
	background: none;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.agencia-imovel-comodos__foto.is-active {
	opacity: 1;
	pointer-events: auto;
}

button.agencia-imovel-comodos__foto:hover,
button.agencia-imovel-comodos__foto:focus-visible {
	opacity: 1;
}

span.agencia-imovel-comodos__foto {
	cursor: default;
}

.agencia-imovel-comodos__foto img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.agencia-imovel-comodos__foto-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.9);
	color: var(--agencia-ink, #24201f);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.15s ease, background 0.15s ease;
	z-index: 2;
}

.agencia-imovel-comodos__fotos:hover .agencia-imovel-comodos__foto-nav {
	opacity: 1;
}

.agencia-imovel-comodos__foto-nav:hover {
	background: #fff;
}

.agencia-imovel-comodos__foto-nav--anterior {
	left: 8px;
}

.agencia-imovel-comodos__foto-nav--proxima {
	right: 8px;
}

.agencia-imovel-comodos__foto-nav svg {
	width: 15px;
	height: 15px;
}

.agencia-imovel-comodos__foto-dots {
	position: absolute;
	left: 50%;
	bottom: 8px;
	transform: translateX(-50%);
	display: flex;
	gap: 4px;
	z-index: 2;
}

.agencia-imovel-comodos__foto-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.65);
	transition: background 0.15s ease, transform 0.15s ease;
}

.agencia-imovel-comodos__foto-dot.is-active {
	background: #fff;
	transform: scale(1.3);
}

/* Comodidades (grade estilo Airbnb: prévia sempre visível + "mostrar todas") */

.agencia-imovel-comodidades {
	margin-top: 1.5rem;
}

.agencia-imovel-comodidades__toggle {
	list-style: none;
	cursor: pointer;
}

.agencia-imovel-comodidades__toggle::-webkit-details-marker {
	display: none;
}

.agencia-imovel-comodidades__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	column-gap: 2rem;
	row-gap: 1.4rem;
	margin-top: 1.5rem;
}

.agencia-imovel-comodidades__grid--extra {
	margin-top: 1.5rem;
}

.agencia-imovel-comodidades__item {
	display: flex;
	align-items: center;
	gap: 0.9rem;
}

.agencia-imovel-comodidades__item svg {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	color: var(--agencia-text);
}

.agencia-imovel-comodidades__item span {
	font-size: 0.92rem;
	color: var(--agencia-text);
	line-height: 1.4;
}

/* Avaliações */

.agencia-imovel-avaliacoes {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem 2.5rem;
}

.agencia-imovel-avaliacoes__card {
	min-width: 0;
}

.agencia-imovel-avaliacoes__cabecalho {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.6rem;
}

.agencia-imovel-avaliacoes__avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.agencia-imovel-avaliacoes__avatar--placeholder {
	display: block;
	background: var(--agencia-bg-soft);
}

.agencia-imovel-avaliacoes__nome {
	margin: 0;
	font-family: var(--agencia-font-heading);
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--agencia-text);
}

.agencia-imovel-avaliacoes__data {
	margin: 0;
	font-size: 0.8rem;
	color: var(--agencia-muted);
}

.agencia-imovel-avaliacoes__estrelas {
	color: var(--agencia-accent);
	letter-spacing: 0.1em;
	font-size: 0.9rem;
	margin-bottom: 0.4rem;
}

.agencia-imovel-avaliacoes__texto {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.6;
	color: var(--agencia-text);
}

/* Resumo de avaliações (estilo Airbnb: histograma + categorias + tags) */

.agencia-imovel-avaliacoes-resumo {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.5rem 3rem;
	padding-bottom: 2.5rem;
	margin-bottom: 2.5rem;
	border-bottom: 1px solid var(--agencia-border);
}

.agencia-imovel-avaliacoes-resumo__bloco--tags {
	grid-column: 1 / -1;
}

.agencia-imovel-avaliacoes-resumo h3 {
	margin: 0 0 1.1rem;
	font-family: var(--agencia-font-heading);
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--agencia-text);
}

.agencia-imovel-avaliacoes-resumo__histograma {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.agencia-imovel-avaliacoes-resumo__linha {
	display: grid;
	grid-template-columns: 0.9rem 1fr;
	align-items: center;
	gap: 0.7rem;
}

.agencia-imovel-avaliacoes-resumo__linha-numero {
	font-size: 0.8rem;
	color: var(--agencia-muted);
	text-align: right;
}

.agencia-imovel-avaliacoes-resumo__linha-barra {
	position: relative;
	display: block;
	height: 5px;
	border-radius: 999px;
	background: var(--agencia-bg-soft);
	overflow: hidden;
}

.agencia-imovel-avaliacoes-resumo__linha-preenchida {
	position: absolute;
	inset: 0;
	width: 0;
	border-radius: 999px;
	background: var(--agencia-accent);
}

.agencia-imovel-avaliacoes-resumo__categorias {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.1rem 1.5rem;
}

.agencia-imovel-avaliacoes-resumo__categoria {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.agencia-imovel-avaliacoes-resumo__categoria-icone {
	display: inline-flex;
	flex-shrink: 0;
	color: var(--agencia-muted);
}

.agencia-imovel-avaliacoes-resumo__categoria-icone svg {
	width: 18px;
	height: 18px;
}

.agencia-imovel-avaliacoes-resumo__categoria-rotulo {
	flex: 1;
	font-size: 0.88rem;
	color: var(--agencia-text);
}

.agencia-imovel-avaliacoes-resumo__categoria-nota {
	font-family: var(--agencia-font-heading);
	font-weight: 600;
	font-size: 0.88rem;
	color: var(--agencia-text);
}

.agencia-imovel-avaliacoes-resumo__tags-slider {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.agencia-imovel-avaliacoes-resumo__tags {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.75rem;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.agencia-imovel-avaliacoes-resumo__tags::-webkit-scrollbar {
	display: none;
}

.agencia-imovel-avaliacoes-resumo__tags-nav {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid var(--agencia-border);
	background: #fff;
	color: var(--agencia-text);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.agencia-imovel-avaliacoes-resumo__tags-nav:hover {
	background: var(--agencia-bg-soft);
	border-color: var(--agencia-primary);
}

.agencia-imovel-avaliacoes-resumo__tags-nav svg {
	width: 15px;
	height: 15px;
}

.agencia-imovel-avaliacoes-resumo__tags-nav[hidden] {
	display: none;
}

.agencia-imovel-avaliacoes-resumo__tag {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	flex-shrink: 0;
	padding: 0.55rem 0.9rem;
	border: 1px solid var(--agencia-border);
	border-radius: 999px;
	font-size: 0.85rem;
	font-family: inherit;
	color: var(--agencia-text);
	white-space: nowrap;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.agencia-imovel-avaliacoes-resumo__tag:hover {
	border-color: var(--agencia-text);
	background: var(--agencia-bg-soft);
}

.agencia-imovel-avaliacoes-resumo__tag svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	color: var(--agencia-muted);
}

.agencia-imovel-avaliacoes-resumo__tag-contagem {
	color: var(--agencia-muted);
}

/* Modal de avaliações por destaque (estilo Airbnb: abas + lista filtrada) */

.agencia-imovel-avaliacoes-modal {
	position: fixed;
	inset: 0;
	z-index: 900;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 2.5rem 1.5rem;
	overflow-y: auto;
	overflow-anchor: none;
}

.agencia-imovel-avaliacoes-modal[hidden] {
	display: none;
}

.agencia-imovel-avaliacoes-modal__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(36, 26, 24, 0.6);
}

.agencia-imovel-avaliacoes-modal__painel {
	position: relative;
	background: #fff;
	border-radius: var(--agencia-radius-large);
	box-shadow: var(--agencia-shadow-xl);
	width: 100%;
	max-width: 640px;
	max-height: calc(100vh - 5rem);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.agencia-imovel-avaliacoes-modal__fechar {
	position: absolute;
	right: 1.25rem;
	top: 1.25rem;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: none;
	background: none;
	color: var(--agencia-text);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
	transition: background-color 0.15s ease;
}

.agencia-imovel-avaliacoes-modal__fechar:hover {
	background: var(--agencia-bg-soft);
}

.agencia-imovel-avaliacoes-modal__fechar svg {
	width: 18px;
	height: 18px;
}

.agencia-imovel-avaliacoes-modal__abas-slider {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding: 1.5rem 3.5rem 1rem 1.75rem;
	flex-shrink: 0;
	border-bottom: 1px solid var(--agencia-border);
}

.agencia-imovel-avaliacoes-modal__abas-nav {
	margin: 0;
}

.agencia-imovel-avaliacoes-modal__abas {
	display: flex;
	gap: 0.6rem;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	flex: 1;
	min-width: 0;
}

.agencia-imovel-avaliacoes-modal__abas::-webkit-scrollbar {
	display: none;
}

.agencia-imovel-avaliacoes-modal__aba {
	flex-shrink: 0;
	padding: 0.5rem 1rem;
	border: 1px solid var(--agencia-border);
	border-radius: 999px;
	background: #fff;
	color: var(--agencia-text);
	font-family: inherit;
	font-size: 0.85rem;
	white-space: nowrap;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.agencia-imovel-avaliacoes-modal__aba:hover {
	border-color: var(--agencia-text);
}

.agencia-imovel-avaliacoes-modal__aba.is-ativa {
	border-color: var(--agencia-text);
	border-width: 2px;
	font-weight: 600;
}

.agencia-imovel-avaliacoes-modal__conteudo[hidden] {
	display: none;
}

.agencia-imovel-avaliacoes-modal__cabecalho {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.5rem;
	padding: 1.75rem 1.75rem 1.25rem;
}

.agencia-imovel-avaliacoes-modal__icone {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--agencia-bg-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--agencia-primary);
}

.agencia-imovel-avaliacoes-modal__icone svg {
	width: 28px;
	height: 28px;
}

.agencia-imovel-avaliacoes-modal__cabecalho h3 {
	margin: 0;
	font-family: var(--agencia-font-heading);
	font-size: 1.3rem;
	color: var(--agencia-text);
}

.agencia-imovel-avaliacoes-modal__cabecalho p {
	margin: 0;
	font-size: 0.9rem;
	color: var(--agencia-muted);
}

.agencia-imovel-avaliacoes-modal__lista {
	padding: 0 1.75rem 1.75rem;
	overflow-y: auto;
	overflow-anchor: none;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.agencia-imovel-avaliacoes-modal__card {
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--agencia-border);
}

.agencia-imovel-avaliacoes-modal__card:last-child {
	padding-bottom: 0;
	border-bottom: none;
}

/* Mapa */

.agencia-imovel-single__mapa-local {
	margin: -0.75rem 0 1rem;
	font-size: 0.9rem;
	color: var(--agencia-muted);
}

.agencia-imovel-single__mapa {
	border-radius: var(--agencia-radius-large);
	overflow: hidden;
	box-shadow: var(--agencia-shadow);
}

.agencia-imovel-single__mapa iframe {
	width: 100%;
	height: 380px;
	border: 0;
	display: block;
}

/* Anfitrião (perfil completo + formulário de contato) */

/* O que você deve saber (regras, segurança, cancelamento) */

.agencia-imovel-saiba__intro {
	font-size: 0.95rem;
	color: var(--agencia-muted);
	margin: -0.75rem 0 1.75rem;
	max-width: 640px;
}

.agencia-imovel-saiba {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.agencia-imovel-saiba__coluna {
	background: #fff;
	border: 1px solid var(--agencia-border);
	border-radius: var(--agencia-radius);
	box-shadow: var(--agencia-shadow-medium);
	padding: 1.5rem;
}

.agencia-imovel-saiba__coluna h3 {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-family: var(--agencia-font-heading);
	font-size: 1rem;
	color: var(--agencia-text);
	margin: 0 0 1rem;
	padding-bottom: 0.9rem;
	border-bottom: 1px solid var(--agencia-border);
}

.agencia-imovel-saiba__icone {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--agencia-bg-soft);
	color: var(--agencia-primary);
}

.agencia-imovel-saiba__icone svg {
	width: 18px;
	height: 18px;
}

.agencia-imovel-saiba__coluna ul {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.9rem;
	color: var(--agencia-muted);
}

.agencia-imovel-saiba__coluna ul li {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	margin-bottom: 0.65rem;
	line-height: 1.5;
}

.agencia-imovel-saiba__coluna ul li:last-child {
	margin-bottom: 0;
}

.agencia-imovel-saiba__item-icone {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin-top: 0.1rem;
	color: var(--agencia-primary);
	opacity: 0.85;
}

.agencia-imovel-saiba__item-icone svg {
	width: 15px;
	height: 15px;
	stroke-width: 1.5;
}

/* Colunas "Segurança e propriedade" e "Política de cancelamento" quebram o
   texto corrido em itens de lista com divisor fino entre eles, no lugar de
   um parágrafo único — mesmo tratamento visual da coluna "Regras da casa". */
.agencia-imovel-saiba__lista-dividida li {
	padding-bottom: 0.65rem;
	margin-bottom: 0.65rem;
	border-bottom: 1px solid var(--agencia-border);
}

.agencia-imovel-saiba__lista-dividida li:last-child {
	padding-bottom: 0;
	margin-bottom: 0;
	border-bottom: none;
}

.agencia-imovel-saiba__coluna p {
	font-size: 0.9rem;
	color: var(--agencia-muted);
	line-height: 1.6;
	margin: 0;
}

.agencia-imovel-saiba__banner {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1.25rem;
	margin-top: 1.5rem;
	padding: 1.5rem 1.75rem;
	background: var(--agencia-bg-light);
	border: 1px solid var(--agencia-border);
	border-radius: var(--agencia-radius-large);
	overflow: hidden;
}

.agencia-imovel-saiba__banner-icone {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #fff;
	color: var(--agencia-primary);
	box-shadow: var(--agencia-shadow-small);
	position: relative;
	z-index: 1;
}

.agencia-imovel-saiba__banner-icone svg {
	width: 26px;
	height: 26px;
}

.agencia-imovel-saiba__banner-texto {
	position: relative;
	z-index: 1;
}

.agencia-imovel-saiba__banner-texto strong {
	display: block;
	font-family: var(--agencia-font-heading);
	font-size: 1.05rem;
	color: var(--agencia-text);
	margin-bottom: 0.3rem;
}

.agencia-imovel-saiba__banner-texto p {
	font-size: 0.88rem;
	color: var(--agencia-muted);
	margin: 0;
	max-width: 480px;
}

.agencia-imovel-saiba__banner-ilustracao {
	position: absolute;
	right: 1.5rem;
	bottom: -0.5rem;
	width: 150px;
	height: auto;
	color: var(--agencia-primary);
	opacity: 0.12;
	pointer-events: none;
}

@media (max-width: 640px) {
	.agencia-imovel-saiba__banner {
		flex-wrap: wrap;
	}

	.agencia-imovel-saiba__banner-ilustracao {
		display: none;
	}
}

/* Cartão de reserva (lateral fixa) */

.agencia-imovel-reserva {
	border: 1px solid var(--agencia-border);
	border-radius: var(--agencia-radius-large);
	box-shadow: var(--agencia-shadow-large);
	padding: 1.75rem;
	background: #fff;
}

.agencia-imovel-reserva__preco {
	margin: 0 0 1.25rem;
	font-family: var(--agencia-font-heading);
}

.agencia-imovel-reserva__preco strong {
	font-size: 1.5rem;
	color: var(--agencia-text);
}

.agencia-imovel-reserva__preco span {
	font-family: var(--agencia-font-body);
	font-weight: 400;
	font-size: 0.95rem;
	color: var(--agencia-muted);
}

.agencia-imovel-reserva__form .agencia-imovel-single__divisor {
	margin: 1.25rem 0;
}

.agencia-imovel-reserva__datas {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border: 1px solid var(--agencia-border);
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 1rem;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.agencia-imovel-reserva__datas:hover,
.agencia-imovel-reserva__datas:focus-visible,
.agencia-imovel-reserva__datas.is-aberto {
	border-color: var(--agencia-primary);
	box-shadow: 0 0 0 1px var(--agencia-primary);
	outline: none;
}

.agencia-imovel-reserva__datas > div {
	padding: 0.6rem 0.85rem;
}

.agencia-imovel-reserva__datas > div:first-child {
	border-right: 1px solid var(--agencia-border);
}

.agencia-imovel-reserva__datas-label {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--agencia-muted);
	margin-bottom: 0.2rem;
}

.agencia-imovel-reserva__datas-label svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.agencia-imovel-reserva__datas-valor {
	display: block;
	width: 100%;
	font-family: var(--agencia-font-body);
	font-size: 0.9rem;
	color: var(--agencia-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Popover de seleção de datas (dois meses) */

.agencia-imovel-datas-popover {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

.agencia-imovel-datas-popover[hidden] {
	display: none;
}

.agencia-imovel-datas-popover__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(36, 26, 24, 0.55);
}

.agencia-imovel-datas-popover__painel {
	position: relative;
	background: #fff;
	border-radius: var(--agencia-radius-large);
	box-shadow: var(--agencia-shadow-xl);
	padding: 1.75rem;
	max-width: 680px;
	width: 100%;
	max-height: calc(100vh - 3rem);
	overflow-y: auto;
}

.agencia-imovel-datas-popover__topo {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.25rem;
	margin-bottom: 1.5rem;
}

.agencia-imovel-datas-popover__resumo h3 {
	font-family: var(--agencia-font-heading);
	font-size: 1.2rem;
	color: var(--agencia-text);
	margin: 0 0 0.25rem;
}

.agencia-imovel-datas-popover__resumo p {
	margin: 0;
	font-size: 0.9rem;
	color: var(--agencia-muted);
}

.agencia-imovel-datas-popover__campos {
	display: flex;
	border: 1px solid var(--agencia-border);
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
}

.agencia-imovel-datas-popover__campo {
	position: relative;
	padding: 0.6rem 1.9rem 0.6rem 0.9rem;
	min-width: 140px;
}

.agencia-imovel-datas-popover__campo:first-child {
	border-right: 1px solid var(--agencia-border);
}

.agencia-imovel-datas-popover__campo span {
	display: block;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--agencia-muted);
	margin-bottom: 0.2rem;
}

.agencia-imovel-datas-popover__campo strong {
	display: block;
	font-family: var(--agencia-font-body);
	font-weight: 400;
	font-size: 0.9rem;
	color: var(--agencia-text);
}

.agencia-imovel-datas-popover__limpar-campo {
	position: absolute;
	top: 50%;
	right: 0.6rem;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: none;
	background: var(--agencia-bg-soft);
	color: var(--agencia-muted);
	font-size: 0.85rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.agencia-imovel-datas-popover__limpar-campo:hover {
	background: var(--agencia-bg-light);
	color: var(--agencia-primary);
}

.agencia-imovel-datas-popover__calendario {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}

.agencia-imovel-datas-popover__nav {
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid var(--agencia-border);
	background: #fff;
	color: var(--agencia-text);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	margin-top: 0.4rem;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.agencia-imovel-datas-popover__nav:hover {
	background: var(--agencia-bg-soft);
	border-color: var(--agencia-primary);
}

.agencia-imovel-datas-popover__nav svg {
	width: 16px;
	height: 16px;
}

.agencia-imovel-datas-popover__meses {
	flex: 1;
	display: flex;
	gap: 2rem;
	min-width: 0;
}

.agencia-imovel-datas-popover__rodape {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--agencia-border);
}

.agencia-imovel-datas-popover__limpar {
	background: none;
	border: none;
	padding: 0;
	font-family: var(--agencia-font-body);
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--agencia-text);
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.agencia-imovel-datas-popover__limpar:hover {
	color: var(--agencia-primary);
}

/* Mês individual (gerado via JS) */

.agencia-imovel-datas-mes {
	flex: 1;
	min-width: 0;
}

.agencia-imovel-datas-mes__titulo {
	font-family: var(--agencia-font-heading);
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--agencia-text);
	text-align: center;
	margin: 0 0 0.9rem;
}

.agencia-imovel-datas-mes__semana {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	margin-bottom: 0.3rem;
}

.agencia-imovel-datas-mes__semana span {
	text-align: center;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--agencia-muted);
}

.agencia-imovel-datas-mes__grade {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	row-gap: 2px;
}

.agencia-imovel-datas-mes__dia {
	position: relative;
	aspect-ratio: 1 / 1;
	border: none;
	background: none;
	border-radius: 50%;
	font-family: var(--agencia-font-body);
	font-size: 0.85rem;
	color: var(--agencia-text);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.agencia-imovel-datas-mes__dia:hover:not(:disabled) {
	background: var(--agencia-bg-soft);
}

.agencia-imovel-datas-mes__dia--vazio {
	cursor: default;
	pointer-events: none;
}

.agencia-imovel-datas-mes__dia--passado {
	color: var(--agencia-border);
	cursor: not-allowed;
}

.agencia-imovel-datas-mes__dia--passado:hover {
	background: none;
}

.agencia-imovel-datas-mes__dia--intervalo {
	background: var(--agencia-bg-light);
	border-radius: 0;
}

.agencia-imovel-datas-mes__dia--selecionado {
	background: var(--agencia-primary);
	color: #fff;
	font-weight: 600;
}

.agencia-imovel-datas-mes__dia--selecionado:hover {
	background: var(--agencia-primary);
}

.agencia-imovel-datas-mes__dia--indisponivel {
	color: var(--agencia-border);
	cursor: not-allowed;
	text-decoration: line-through;
	text-decoration-color: var(--agencia-border);
}

.agencia-imovel-datas-mes__dia--indisponivel:hover {
	background: none;
}

.agencia-imovel-datas-mes__dia--fora-da-janela {
	color: var(--agencia-border);
	cursor: not-allowed;
	opacity: 0.6;
}

.agencia-imovel-datas-mes__dia--fora-da-janela:hover {
	background: none;
}

.agencia-imovel-datas-mes__dia--estadia-minima {
	color: var(--agencia-border);
	cursor: not-allowed;
	opacity: 0.6;
}

.agencia-imovel-datas-mes__dia--estadia-minima:hover {
	background: none;
}

/* Seção "Disponibilidade": calendário sempre visível mais abaixo na página,
   sincronizado com o popover do cartão de reserva (mesmo estado/JS). */

.agencia-imovel-calendario__resumo {
	margin-bottom: 1.5rem;
}

.agencia-imovel-calendario__resumo h3 {
	font-family: var(--agencia-font-heading);
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--agencia-text);
	margin: 0 0 0.25rem;
}

.agencia-imovel-calendario__resumo p {
	font-size: 0.9rem;
	color: var(--agencia-muted);
	margin: 0;
}

.agencia-imovel-calendario__grade {
	position: static;
	max-width: 640px;
	padding: 0;
	background: none;
	box-shadow: none;
}

.agencia-imovel-calendario__legenda {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin-top: 1.5rem;
}

.agencia-imovel-calendario__legenda span {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.85rem;
	color: var(--agencia-muted);
}

.agencia-imovel-calendario__legenda-cor {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	display: inline-block;
}

.agencia-imovel-calendario__legenda-cor--selecionado {
	background: var(--agencia-primary);
}

.agencia-imovel-calendario__legenda-cor--indisponivel {
	background: var(--agencia-bg-soft);
	border: 1px solid var(--agencia-border);
}

/* Bloco de preço (noite / total + parcelas, alternados via JS) */

.agencia-imovel-reserva__preco-linha {
	margin: 0;
	display: flex;
	align-items: baseline;
	gap: 0.4rem;
	flex-wrap: wrap;
}

.agencia-imovel-reserva__preco-linha + .agencia-imovel-reserva__preco-linha {
	margin-top: 0.35rem;
}

.agencia-imovel-reserva__preco-linha[hidden] {
	display: none;
}

.agencia-imovel-reserva__preco-linha--total {
	justify-content: space-between;
	padding-top: 0.6rem;
	border-top: 1px solid var(--agencia-border);
}

.agencia-imovel-reserva__preco-total-rotulo {
	font-family: var(--agencia-font-body);
	font-size: 0.9rem;
	color: var(--agencia-muted);
}

.agencia-imovel-reserva__preco-linha--total strong {
	font-size: 1.15rem;
}

.agencia-imovel-reserva__parcelas {
	margin: 0.35rem 0 0;
	font-family: var(--agencia-font-body);
	font-size: 0.8rem;
	color: var(--agencia-muted);
}

.agencia-imovel-reserva__parcelas[hidden] {
	display: none;
}

/* Seletor de hóspedes (Adultos/Crianças/Bebês/Pets) */

.agencia-imovel-hospedes {
	position: relative;
}

.agencia-imovel-hospedes__gatilho {
	display: block;
	width: 100%;
	text-align: left;
	background: none;
	border: 1px solid var(--agencia-border);
	border-radius: 8px;
	padding: 0.6rem 2.3rem 0.6rem 0.85rem;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.agencia-imovel-hospedes__gatilho:hover,
.agencia-imovel-hospedes__gatilho:focus-visible,
.agencia-imovel-hospedes__gatilho[aria-expanded="true"] {
	border-color: var(--agencia-primary);
	box-shadow: 0 0 0 1px var(--agencia-primary);
	outline: none;
}

.agencia-imovel-hospedes__valor {
	display: block;
	font-family: var(--agencia-font-body);
	font-size: 0.9rem;
	color: var(--agencia-text);
}

.agencia-imovel-hospedes__seta {
	position: absolute;
	top: 50%;
	right: 0.85rem;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	color: var(--agencia-muted);
	pointer-events: none;
}

.agencia-imovel-hospedes-popover {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

.agencia-imovel-hospedes-popover[hidden] {
	display: none;
}

.agencia-imovel-hospedes-popover__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(36, 26, 24, 0.55);
}

.agencia-imovel-hospedes-popover__painel {
	position: relative;
	background: #fff;
	border-radius: var(--agencia-radius-large);
	box-shadow: var(--agencia-shadow-xl);
	padding: 1.5rem 1.75rem;
	max-width: 400px;
	width: 100%;
	max-height: calc(100vh - 3rem);
	overflow-y: auto;
}

.agencia-imovel-hospedes-popover__linha {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 0;
	border-bottom: 1px solid var(--agencia-border);
}

.agencia-imovel-hospedes-popover__linha:first-child {
	padding-top: 0;
}

.agencia-imovel-hospedes-popover__linha:last-of-type {
	border-bottom: none;
}

.agencia-imovel-hospedes-popover__titulo {
	margin: 0;
	font-family: var(--agencia-font-body);
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--agencia-text);
}

.agencia-imovel-hospedes-popover__subtitulo {
	margin: 0.15rem 0 0;
	font-size: 0.8rem;
	color: var(--agencia-muted);
}

.agencia-imovel-hospedes-popover__contador {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	flex-shrink: 0;
}

.agencia-imovel-hospedes-popover__botao {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 1px solid var(--agencia-border);
	background: #fff;
	color: var(--agencia-primary);
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.agencia-imovel-hospedes-popover__botao:hover:not(:disabled) {
	border-color: var(--agencia-primary);
	background: var(--agencia-bg-soft);
}

.agencia-imovel-hospedes-popover__botao:disabled {
	color: var(--agencia-border);
	cursor: not-allowed;
}

.agencia-imovel-hospedes-popover__contador span {
	min-width: 1.2rem;
	text-align: center;
	font-family: var(--agencia-font-body);
	font-size: 0.95rem;
	color: var(--agencia-text);
}

.agencia-imovel-hospedes-popover__nota {
	margin: 0.5rem 0 0;
	font-size: 0.8rem;
	color: var(--agencia-muted);
	line-height: 1.5;
}

.agencia-imovel-hospedes-popover__rodape {
	display: flex;
	justify-content: flex-end;
	margin-top: 1.25rem;
	padding-top: 1.1rem;
	border-top: 1px solid var(--agencia-border);
}

.agencia-imovel-reserva__campo {
	margin-bottom: 1rem;
}

.agencia-imovel-reserva__campo label {
	display: block;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--agencia-muted);
	margin-bottom: 0.3rem;
}

.agencia-imovel-reserva__campo input {
	width: 100%;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--agencia-border);
	border-radius: 8px;
	font-family: var(--agencia-font-body);
	font-size: 0.9rem;
	background: #fff;
}

.agencia-imovel-reserva__botao {
	width: 100%;
	margin-top: 0.5rem;
}

.agencia-imovel-reserva__aviso {
	margin: 0.85rem 0 0;
	font-size: 0.78rem;
	color: var(--agencia-muted);
	text-align: center;
	line-height: 1.5;
}

.agencia-imovel-reserva__denunciar {
	display: block;
	margin-top: 1.25rem;
	text-align: center;
	font-size: 0.8rem;
	color: var(--agencia-muted);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.agencia-imovel-reserva__denunciar:hover {
	color: var(--agencia-primary);
}

.agencia-imovel-single__whatsapp {
	width: 100%;
	margin-top: 1rem;
}

/* Overlay "Confirmar e pagar" (checkout) */

.agencia-imovel-checkout-overlay {
	position: fixed;
	inset: 0;
	z-index: 900;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 2.5rem 1.5rem;
	overflow-y: auto;
	/* Evita que o navegador "ancore" a rolagem deste contêiner quando o
	   conteúdo do acordeão muda de altura, o que deslocava o painel para
	   cima e escondia o cabeçalho "Confirmar e pagar" ao abrir. */
	overflow-anchor: none;
}

.agencia-imovel-checkout-overlay[hidden] {
	display: none;
}

.agencia-imovel-checkout-overlay__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(36, 26, 24, 0.6);
}

.agencia-imovel-checkout-overlay__painel {
	position: relative;
	background: #fff;
	border-radius: var(--agencia-radius-large);
	box-shadow: var(--agencia-shadow-xl);
	width: 100%;
	max-width: 920px;
	overflow: hidden;
}

.agencia-imovel-checkout__cabecalho {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem 3rem;
	border-bottom: 1px solid var(--agencia-border);
}

.agencia-imovel-checkout__cabecalho h2 {
	margin: 0;
	font-family: var(--agencia-font-heading);
	font-size: 1.15rem;
	color: var(--agencia-text);
}

.agencia-imovel-checkout__fechar {
	position: absolute;
	left: 1.25rem;
	top: 50%;
	transform: translateY(-50%);
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: none;
	background: none;
	color: var(--agencia-text);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.15s ease;
}

.agencia-imovel-checkout__fechar:hover {
	background: var(--agencia-bg-soft);
}

.agencia-imovel-checkout__fechar svg {
	width: 20px;
	height: 20px;
}

.agencia-imovel-checkout__corpo {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	max-height: calc(100vh - 12rem);
	overflow-y: auto;
	overflow-anchor: none;
}

.agencia-imovel-checkout__coluna-principal {
	padding: 1.75rem 2.25rem;
	border-right: 1px solid var(--agencia-border);
}

.agencia-imovel-checkout__resumo {
	padding: 1.75rem;
	background: var(--agencia-bg-light);
}

/* Passos em acordeão (Entrar / Pagamento / Revisão) */

.agencia-imovel-checkout-passo {
	border-bottom: 1px solid var(--agencia-border);
	padding: 1.5rem 0;
}

.agencia-imovel-checkout-passo:first-child {
	padding-top: 0;
}

.agencia-imovel-checkout-passo:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.agencia-imovel-checkout-passo__cabecalho {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	width: 100%;
	background: none;
	border: none;
	padding: 0;
	text-align: left;
	cursor: pointer;
}

.agencia-imovel-checkout-passo--desabilitado .agencia-imovel-checkout-passo__cabecalho {
	cursor: default;
}

.agencia-imovel-checkout-passo__numero {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--agencia-text);
	color: #fff;
	font-family: var(--agencia-font-heading);
	font-size: 0.85rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
}

.agencia-imovel-checkout-passo--desabilitado .agencia-imovel-checkout-passo__numero {
	background: var(--agencia-border);
	color: var(--agencia-muted);
}

.agencia-imovel-checkout-passo.is-concluido .agencia-imovel-checkout-passo__numero {
	background: var(--agencia-primary);
}

.agencia-imovel-checkout-passo__titulo {
	flex: 1;
	font-family: var(--agencia-font-heading);
	font-size: 1rem;
	font-weight: 600;
	color: var(--agencia-text);
}

.agencia-imovel-checkout-passo--desabilitado .agencia-imovel-checkout-passo__titulo {
	color: var(--agencia-muted);
}

.agencia-imovel-checkout-passo__status {
	font-family: var(--agencia-font-body);
	font-size: 0.85rem;
	color: var(--agencia-muted);
}

.agencia-imovel-checkout-passo__conteudo {
	margin: 1.25rem 0 0 2.65rem;
}

.agencia-imovel-checkout-passo__conteudo[hidden] {
	display: none;
}

/* Formulário de login/cadastro embutido no passo 1 */

.agencia-imovel-checkout-login__campo {
	margin-bottom: 1rem;
}

.agencia-imovel-checkout-login__campo label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--agencia-text);
	margin-bottom: 0.35rem;
}

.agencia-imovel-checkout-login__campo input {
	width: 100%;
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--agencia-border);
	border-radius: 8px;
	font-family: var(--agencia-font-body);
	font-size: 0.9rem;
	background: #fff;
}

.agencia-imovel-checkout-login__erro {
	margin: -0.4rem 0 1rem;
	font-size: 0.82rem;
	color: #b3261e;
}

.agencia-imovel-checkout-login__erro[hidden] {
	display: none;
}

.agencia-imovel-checkout-login__continuar {
	width: 100%;
}

.agencia-imovel-checkout-login__aviso {
	margin: 0.75rem 0 0;
	font-size: 0.78rem;
	color: var(--agencia-muted);
	line-height: 1.5;
}

.agencia-imovel-checkout-login__divisor {
	position: relative;
	text-align: center;
	margin: 1.5rem 0;
}

.agencia-imovel-checkout-login__divisor::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	border-top: 1px solid var(--agencia-border);
}

.agencia-imovel-checkout-login__divisor span {
	position: relative;
	background: #fff;
	padding: 0 0.75rem;
	font-size: 0.78rem;
	color: var(--agencia-muted);
}

.agencia-imovel-checkout-login__social {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.agencia-imovel-checkout-login__social-botao {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	width: 100%;
	padding: 0.7rem 1rem;
	border: 1px solid var(--agencia-border);
	border-radius: var(--agencia-radius-pill);
	background: #fff;
	font-family: var(--agencia-font-body);
	font-weight: 600;
	font-size: 0.88rem;
	color: var(--agencia-text);
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.agencia-imovel-checkout-login__social-botao:hover {
	border-color: var(--agencia-primary);
	background: var(--agencia-bg-soft);
}

.agencia-imovel-checkout-login__social-botao svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.agencia-imovel-checkout-login__oauth-nota {
	margin: 0.85rem 0 0;
	padding: 0.65rem 0.85rem;
	border-radius: 8px;
	background: var(--agencia-accent-soft);
	font-size: 0.8rem;
	color: var(--agencia-text);
	line-height: 1.5;
}

.agencia-imovel-checkout-login__oauth-nota[hidden] {
	display: none;
}

.agencia-imovel-checkout-conta[hidden] {
	display: none;
}

.agencia-imovel-checkout-conta p {
	margin: 0;
	font-size: 0.92rem;
	color: var(--agencia-text);
}

/* Passo 2 — forma de pagamento (visual, sem processamento real) */

.agencia-imovel-checkout-pagamento {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}

.agencia-imovel-checkout-pagamento__opcao {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.85rem 1rem;
	border: 1px solid var(--agencia-border);
	border-radius: 8px;
	cursor: pointer;
	font-family: var(--agencia-font-body);
	font-size: 0.92rem;
	color: var(--agencia-text);
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.agencia-imovel-checkout-pagamento__opcao:has(input:checked) {
	border-color: var(--agencia-primary);
	background: var(--agencia-bg-soft);
}

.agencia-imovel-checkout-pagamento__opcao input {
	accent-color: var(--agencia-primary);
}

.agencia-imovel-checkout-pagamento__aviso {
	margin: 0 0 1.25rem;
	font-size: 0.82rem;
	color: var(--agencia-muted);
	line-height: 1.5;
}

/* Cartão-resumo do pedido (coluna direita do overlay) */

.agencia-imovel-checkout-resumo-card {
	background: #fff;
	border: 1px solid var(--agencia-border);
	border-radius: var(--agencia-radius);
	padding: 1.5rem;
	position: sticky;
	top: 1.75rem;
}

.agencia-imovel-checkout-resumo-card__topo {
	display: flex;
	gap: 0.85rem;
	align-items: flex-start;
}

.agencia-imovel-checkout-resumo-card__topo img {
	width: 64px;
	height: 64px;
	border-radius: var(--agencia-radius);
	object-fit: cover;
	flex-shrink: 0;
}

.agencia-imovel-checkout-resumo-card__titulo {
	margin: 0 0 0.3rem;
	font-family: var(--agencia-font-heading);
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--agencia-text);
	line-height: 1.35;
}

.agencia-imovel-checkout-resumo-card__avaliacao {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	margin: 0;
	font-size: 0.82rem;
	color: var(--agencia-muted);
}

.agencia-imovel-checkout-resumo-card__avaliacao svg {
	width: 13px;
	height: 13px;
	color: var(--agencia-accent);
}

.agencia-imovel-checkout-resumo-card__politica {
	margin: 0;
	font-size: 0.82rem;
	line-height: 1.55;
	color: var(--agencia-muted);
}

.agencia-imovel-checkout-resumo-card__linha {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.6rem 0;
}

.agencia-imovel-checkout-resumo-card__linha[hidden] {
	display: none;
}

.agencia-imovel-checkout-resumo-card__rotulo {
	margin: 0 0 0.2rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--agencia-muted);
}

.agencia-imovel-checkout-resumo-card__linha > div p[data-agencia-checkout-resumo] {
	margin: 0;
	font-size: 0.9rem;
	color: var(--agencia-text);
}

.agencia-imovel-checkout-resumo-card__alterar {
	flex-shrink: 0;
	background: none;
	border: none;
	padding: 0;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--agencia-text);
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.agencia-imovel-checkout-resumo-card__alterar:hover {
	color: var(--agencia-primary);
}

.agencia-imovel-checkout-resumo-card__linha--total {
	font-family: var(--agencia-font-heading);
	color: var(--agencia-text);
}

.agencia-imovel-checkout-resumo-card__linha--total p {
	margin: 0;
}

.agencia-imovel-checkout-resumo-card__linha--total p[data-agencia-checkout-resumo] {
	font-size: 1rem;
	font-weight: 700;
	color: var(--agencia-text);
}

/* Imóveis próximos */

.agencia-imovel-single__proximos {
	margin-top: 3.5rem;
}

.agencia-imovel-single__proximos h2 {
	font-family: var(--agencia-font-heading);
	color: var(--agencia-text);
	font-size: 1.4rem;
	margin: 0;
}

/* "Mais acomodações nas proximidades" — carrossel paginado estilo Airbnb   */
/* (reaproveita o cabeçalho/contador/setas do slider de Ambientes acima).  */

.agencia-imovel-single__proximos .agencia-imovel-comodos-slider__cabecalho {
	margin-bottom: 1.25rem;
}

.agencia-proximos-slider__viewport {
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.agencia-proximos-slider__viewport::-webkit-scrollbar {
	display: none;
}

.agencia-proximos-slider__trilha {
	display: flex;
	flex-wrap: nowrap;
	gap: 1.5rem;
}

.agencia-proximos-slider__trilha .agencia-destaque-card {
	flex: 0 0 260px;
	width: 260px;
	scroll-snap-align: start;
}

/*
 * Variante "simples" pedida pelo usuário para o card de "Mais acomodações
 * nas proximidades": foto + título + preço + nota, sem badge, divisor,
 * lista de tags ou botão "Ver detalhes". Usa classes próprias (__preco,
 * __nota, __linha-preco) em vez de mexer no .agencia-destaque-card base,
 * que também é usado no card "Destinos" da home — não tocar nele aqui.
 */

.agencia-destaque-card--simples {
	/*
	 * A base .agencia-destaque-card usa height:100%, o que trava o stretch
	 * automático do flex (.agencia-proximos-slider__trilha): com uma altura
	 * explícita, cada card fica só do tamanho do próprio conteúdo em vez de
	 * igualar aos vizinhos. Aqui volta para "auto" para os cards ficarem
	 * todos com a mesma altura (a do maior da fileira).
	 */
	height: auto;
	box-shadow: none;
	border: 1px solid var(--agencia-border);
}

.agencia-destaque-card--simples:hover {
	transform: none;
	box-shadow: var(--agencia-shadow-medium);
}

.agencia-destaque-card--simples .agencia-destaque-card__media {
	aspect-ratio: 1 / 1;
	flex-shrink: 0;
}

.agencia-destaque-card--simples .agencia-destaque-card__media::after {
	content: none;
}

.agencia-destaque-card--simples .agencia-destaque-card__body {
	padding: 0.85rem 0.9rem 1rem;
}

.agencia-destaque-card--simples .agencia-destaque-card__title {
	font-size: 0.95rem;
	line-height: 1.3;
	margin: 0 0 0.4rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	/* Reserva sempre a altura de 2 linhas, mesmo em títulos de 1 linha só,
	   para os cards não ficarem com alturas diferentes entre si. */
	min-height: 2.6em;
}

.agencia-destaque-card__linha-preco {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem;
	margin-top: auto;
}

.agencia-destaque-card__preco {
	font-family: var(--agencia-font-heading);
	font-weight: 700;
	font-size: 0.92rem;
	color: var(--agencia-text);
}

.agencia-destaque-card__nota {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--agencia-text);
	flex-shrink: 0;
}

.agencia-destaque-card__nota svg {
	width: 13px;
	height: 13px;
	color: var(--agencia-text);
}

/* Banner de sucesso genérico (usado nos formulários de reserva e contato) */

.agencia-form-sucesso {
	background: #eaf6ec;
	border: 1px solid #bfe3c4;
	border-radius: var(--agencia-radius);
	padding: 0.9rem 1.2rem;
	margin-bottom: 1.5rem;
	color: #256b32;
}

.agencia-form-sucesso p,
.agencia-form-erro p {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.5;
}

/* Responsivo */

@media (max-width: 960px) {
	.agencia-imovel-single__layout {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}

	.agencia-imovel-single__lateral {
		position: static;
	}

	.agencia-imovel-avaliacoes {
		grid-template-columns: 1fr;
	}

	.agencia-imovel-avaliacoes-resumo {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.agencia-imovel-avaliacoes-resumo__categorias {
		grid-template-columns: 1fr;
	}

	.agencia-imovel-avaliacoes-modal {
		padding: 0;
	}

	.agencia-imovel-avaliacoes-modal__painel {
		max-width: 100%;
		max-height: 100vh;
		border-radius: 0;
	}

	.agencia-imovel-saiba {
		grid-template-columns: 1fr;
		gap: 2.25rem;
	}

	.agencia-imovel-checkout__corpo {
		grid-template-columns: 1fr;
		max-height: calc(100vh - 9rem);
	}

	.agencia-imovel-checkout__coluna-principal {
		border-right: none;
		border-bottom: 1px solid var(--agencia-border);
	}

	.agencia-imovel-checkout-resumo-card {
		position: static;
	}
}

@media (max-width: 700px) {
	.agencia-imovel-galeria__grid--total-5,
	.agencia-imovel-galeria__grid--total-4,
	.agencia-imovel-galeria__grid--total-3 {
		grid-template-columns: repeat(2, 1fr);
		grid-template-rows: repeat(2, 180px);
	}

	.agencia-imovel-galeria__grid--total-5 .agencia-imovel-galeria__item--principal {
		grid-column: 1 / 3;
		grid-row: 1 / 2;
	}

	/*
	 * O botão "Mostrar todas as fotos" vive dentro do último item (5º) para
	 * ficar sobreposto à última miniatura. No mobile só cabem 3 fotos no
	 * grid 2x2 (principal + 2), então em vez de esconder os dois últimos
	 * itens (o que apagaria o botão junto), posicionamos o 2º e o último
	 * item nas duas células restantes e escondemos os do meio.
	 */
	.agencia-imovel-galeria__grid--total-5 .agencia-imovel-galeria__item--secundaria:nth-child(2) {
		grid-column: 1 / 2;
		grid-row: 2 / 3;
	}

	.agencia-imovel-galeria__grid--total-5 .agencia-imovel-galeria__item--secundaria:last-child {
		grid-column: 2 / 3;
		grid-row: 2 / 3;
	}

	.agencia-imovel-galeria__grid--total-5 .agencia-imovel-galeria__item--secundaria:nth-child(3),
	.agencia-imovel-galeria__grid--total-5 .agencia-imovel-galeria__item--secundaria:nth-child(4) {
		display: none;
	}

	.agencia-imovel-single__topo {
		flex-direction: column;
		gap: 0.75rem;
	}

	.agencia-imovel-single__topo-acoes {
		align-self: flex-end;
	}

	.agencia-imovel-datas-popover__painel {
		padding: 1.25rem;
	}

	.agencia-imovel-datas-popover__topo {
		flex-direction: column;
	}

	.agencia-imovel-datas-popover__campos {
		width: 100%;
	}

	.agencia-imovel-datas-popover__campo {
		flex: 1;
		min-width: 0;
	}

	.agencia-imovel-datas-popover__meses {
		gap: 0;
	}

	.agencia-imovel-datas-popover__meses .agencia-imovel-datas-mes:last-child {
		display: none;
	}

	.agencia-imovel-hospedes-popover__painel {
		padding: 1.25rem;
	}

	.agencia-imovel-checkout-overlay {
		padding: 0;
		align-items: stretch;
	}

	.agencia-imovel-checkout-overlay__painel {
		border-radius: 0;
		max-width: 100%;
		min-height: 100vh;
	}

	.agencia-imovel-checkout__corpo {
		max-height: none;
	}

	.agencia-imovel-checkout__cabecalho {
		padding: 1.1rem 2.75rem;
	}

	.agencia-imovel-checkout__coluna-principal,
	.agencia-imovel-checkout__resumo {
		padding: 1.25rem;
	}

	.agencia-imovel-checkout-passo__conteudo {
		margin-left: 0;
	}
}

@media (max-width: 600px) {
	.agencia-imovel-single__container {
		padding: 1.5rem 1.1rem 3rem;
	}

	.agencia-imovel-comodidades__grid {
		grid-template-columns: 1fr;
	}

	.agencia-imovel-comodos__card {
		width: 220px;
	}

	.agencia-proximos-slider__trilha .agencia-destaque-card {
		flex: 0 0 200px;
		width: 200px;
	}

	.agencia-imovel-reserva {
		padding: 1.25rem;
	}
}

/* ------------------------------------------------------------------ */
/* Assistente Inteligente (widget de chat flutuante em single-imovel) */
/* ------------------------------------------------------------------ */

/*
 * Segue a mesma convenção documentada acima (avaliações-modal, checkout
 * overlay, popovers de datas/hóspedes): qualquer elemento flutuante
 * position:fixed precisa de z-index >= 900 para renderizar por cima do
 * cabeçalho do site, que vive num contexto de empilhamento irmão.
 */

.agencia-assistente-toggle {
	position: fixed;
	right: 1.5rem;
	bottom: 1.5rem;
	z-index: 950;
	width: 58px;
	height: 58px;
	border: none;
	border-radius: 50%;
	background: var(--agencia-primary);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: var(--agencia-shadow-floating);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.agencia-assistente-toggle:hover {
	transform: translateY(-2px);
	box-shadow: var(--agencia-shadow-xl);
}

.agencia-assistente-toggle svg {
	width: 26px;
	height: 26px;
}

.agencia-assistente {
	position: fixed;
	right: 1.5rem;
	bottom: 6rem;
	z-index: 950;
	width: 380px;
	max-width: calc(100vw - 2rem);
	max-height: min(600px, calc(100vh - 8rem));
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: var(--agencia-radius-large);
	box-shadow: var(--agencia-shadow-xl);
	overflow: hidden;
}

.agencia-assistente[hidden] {
	display: none;
}

.agencia-assistente__header {
	flex-shrink: 0;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem 1.5rem;
	background: var(--agencia-primary);
	color: #fff;
}

.agencia-assistente__titulo {
	margin: 0;
	font-family: var(--agencia-font-heading);
	font-size: 1.05rem;
	font-weight: 600;
}

.agencia-assistente__subtitulo {
	margin: 0.25rem 0 0;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.85);
}

.agencia-assistente__fechar {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	border: none;
	border-radius: 50%;
	background: none;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.agencia-assistente__fechar:hover {
	background: rgba(255, 255, 255, 0.2);
}

.agencia-assistente__fechar svg {
	width: 18px;
	height: 18px;
}

.agencia-assistente__corpo {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.agencia-assistente__view {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.agencia-assistente__view[hidden] {
	display: none;
}

/* View: chat */

.agencia-assistente__mensagens {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overflow-anchor: none;
	padding: 1.25rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.agencia-assistente__mensagem {
	max-width: 85%;
	padding: 0.65rem 0.9rem;
	border-radius: var(--agencia-radius-medium);
	font-size: 0.88rem;
	line-height: 1.5;
	white-space: pre-line;
	animation: agenciaAssistenteMensagemEntrada 0.28s ease both;
}

.agencia-assistente__mensagem--bot {
	align-self: flex-start;
	background: var(--agencia-bg-soft);
	color: var(--agencia-text);
	border-bottom-left-radius: 4px;
}

.agencia-assistente__mensagem--usuario {
	align-self: flex-end;
	background: var(--agencia-primary);
	color: #fff;
	border-bottom-right-radius: 4px;
}

@keyframes agenciaAssistenteMensagemEntrada {
	from {
		opacity: 0;
		transform: translateY(8px) scale(0.98);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.agencia-assistente__mensagem,
	.agencia-assistente__digitando {
		animation: none;
	}
}

/* Indicador "digitando…" — três pontinhos que aparecem no lugar do bot
   por um instante antes da resposta real, dando a sensação de que alguém
   está respondendo em tempo real (ao invés da mensagem só "aparecer"). */

.agencia-assistente__digitando {
	align-self: flex-start;
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 0.7rem 0.9rem;
	border-radius: var(--agencia-radius-medium);
	border-bottom-left-radius: 4px;
	background: var(--agencia-bg-soft);
}

.agencia-assistente__digitando span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--agencia-muted);
	animation: agenciaAssistenteDigitandoPulso 1.1s ease-in-out infinite;
}

.agencia-assistente__digitando span:nth-child(2) {
	animation-delay: 0.15s;
}

.agencia-assistente__digitando span:nth-child(3) {
	animation-delay: 0.3s;
}

@keyframes agenciaAssistenteDigitandoPulso {
	0%,
	60%,
	100% {
		opacity: 0.35;
		transform: translateY(0);
	}

	30% {
		opacity: 1;
		transform: translateY(-3px);
	}
}

/* "Você quis perguntar?" — sugestões da busca por palavras-chave quando
   nenhuma FAQ bate com pontuação suficiente. Fica dentro do fluxo de
   mensagens (não na barra fixa de ações rápidas), então usa um espaçamento
   próprio e largura total ao invés de max-width: 85% das bolhas de chat. */

.agencia-assistente__sugestoes {
	align-self: flex-start;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.agencia-assistente__sugestoes-titulo {
	margin: 0;
	font-size: 0.78rem;
	color: var(--agencia-muted);
}

.agencia-assistente__sugestao-lista {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.agencia-assistente__sugestao {
	padding: 0.45rem 0.8rem;
	border: 1px solid var(--agencia-border);
	border-radius: 999px;
	background: #fff;
	color: var(--agencia-primary);
	font-family: inherit;
	font-size: 0.8rem;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.agencia-assistente__sugestao:hover {
	border-color: var(--agencia-primary);
	background: var(--agencia-bg-soft);
}

/* Confirmação de destino — primeira interação na página do imóvel, antes
   de qualquer outra pergunta ficar disponível. Reaproveita o visual dos
   botões de ação rápida (pill, borda), mas fica dentro do fluxo de
   mensagens, junto da bolha que pergunta o destino. */

.agencia-assistente__confirmar-destino {
	align-self: flex-start;
	max-width: 100%;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.agencia-assistente__confirmar-destino .agencia-assistente__acao-rapida {
	flex: none;
	min-width: 0;
}

/* Cards de imóveis sugeridos após uma busca por cidade — versão leve
   pensada para caber dentro da bolha de chat, diferente do card completo
   (.agencia-browse-card) usado na home e nos "próximos" do imóvel. */

.agencia-assistente__imovel-lista {
	align-self: flex-start;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.agencia-assistente__imovel-card {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem;
	border: 1px solid var(--agencia-border);
	border-radius: var(--agencia-radius-medium);
	background: #fff;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.agencia-assistente__imovel-card:hover {
	border-color: var(--agencia-primary);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.agencia-assistente__imovel-card-foto {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: calc(var(--agencia-radius-medium) - 4px);
	object-fit: cover;
}

.agencia-assistente__imovel-card-info {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.agencia-assistente__imovel-card-titulo {
	margin: 0;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--agencia-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.agencia-assistente__imovel-card-cidade {
	margin: 0;
	font-size: 0.78rem;
	color: var(--agencia-muted);
}

.agencia-assistente__imovel-card-preco {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--agencia-primary);
}

.agencia-assistente__acoes-rapidas {
	flex-shrink: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 0 1.5rem 1rem;
}

.agencia-assistente__acao-rapida {
	flex: 1;
	min-width: 140px;
	padding: 0.55rem 0.9rem;
	border: 1px solid var(--agencia-border);
	border-radius: 999px;
	background: #fff;
	color: var(--agencia-text);
	font-family: inherit;
	font-size: 0.8rem;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.agencia-assistente__acao-rapida:hover {
	border-color: var(--agencia-primary);
	background: var(--agencia-bg-soft);
}

.agencia-assistente__form {
	flex-shrink: 0;
	display: flex;
	gap: 0.5rem;
	padding: 1rem 1.5rem;
	border-top: 1px solid var(--agencia-border);
}

.agencia-assistente__form input {
	flex: 1;
	min-width: 0;
	padding: 0.65rem 0.9rem;
	border: 1px solid var(--agencia-border);
	border-radius: 999px;
	font-family: inherit;
	font-size: 0.88rem;
	background: #fff;
}

.agencia-assistente__form input:focus {
	outline: none;
	border-color: var(--agencia-primary);
	box-shadow: 0 0 0 1px var(--agencia-primary);
}

.agencia-assistente__enviar {
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	border: none;
	border-radius: 50%;
	background: var(--agencia-primary);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.agencia-assistente__enviar:disabled {
	opacity: 0.6;
	cursor: default;
}

.agencia-assistente__enviar svg {
	width: 18px;
	height: 18px;
}

/* Views: reserva / ticket (formulários dedicados) */

.agencia-assistente__view-corpo {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overflow-anchor: none;
	padding: 1.25rem 1.5rem 1.5rem;
}

.agencia-assistente__voltar {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin: 1rem 1.5rem 0;
	padding: 0;
	border: none;
	background: none;
	color: var(--agencia-muted);
	font-family: inherit;
	font-size: 0.82rem;
	cursor: pointer;
	align-self: flex-start;
}

.agencia-assistente__voltar:hover {
	color: var(--agencia-text);
}

.agencia-assistente__voltar svg {
	width: 14px;
	height: 14px;
}

.agencia-assistente__view-titulo {
	margin: 0.75rem 1.5rem 0;
	font-family: var(--agencia-font-heading);
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--agencia-text);
}

.agencia-assistente__form-bloco {
	margin: 0 1.5rem 1.25rem;
}

.agencia-assistente__form-bloco label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--agencia-text);
	margin-bottom: 0.35rem;
}

.agencia-assistente__form-bloco input,
.agencia-assistente__form-bloco textarea {
	width: 100%;
	padding: 0.65rem 0.9rem;
	border: 1px solid var(--agencia-border);
	border-radius: 8px;
	font-family: inherit;
	font-size: 0.88rem;
	background: #fff;
	resize: vertical;
}

.agencia-assistente__form-bloco input:focus,
.agencia-assistente__form-bloco textarea:focus {
	outline: none;
	border-color: var(--agencia-primary);
	box-shadow: 0 0 0 1px var(--agencia-primary);
}

.agencia-assistente__form-submit {
	width: calc(100% - 3rem);
	margin: 0 1.5rem;
	padding: 0.75rem 1rem;
	border: none;
	border-radius: 999px;
	background: var(--agencia-primary);
	color: #fff;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.agencia-assistente__form-submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.agencia-assistente__resultado {
	margin: 1rem 1.5rem 0;
}

.agencia-assistente__resultado p {
	margin: 0 0 0.4rem;
	font-size: 0.88rem;
	color: var(--agencia-text);
	line-height: 1.5;
}

.agencia-assistente__resultado p:last-child {
	margin-bottom: 0;
}

.agencia-assistente__erro {
	color: #b3261e;
}

.agencia-assistente__sucesso {
	color: var(--agencia-primary);
}

@media (max-width: 600px) {
	.agencia-assistente {
		right: 0.75rem;
		left: 0.75rem;
		bottom: 5.5rem;
		width: auto;
		max-width: none;
		max-height: calc(100vh - 7rem);
	}

	.agencia-assistente-toggle {
		right: 1rem;
		bottom: 1rem;
	}
}
