/*
 * Livest — listas e páginas singulares.
 *
 * Cobre: arquivo de imóveis (/imoveis/), arquivo por concelho, ficha de imóvel,
 * listagem de artigos e artigo individual.
 *
 * Complementa assets/css/livest.css — que continua a ser o dono dos tokens e
 * dos componentes de base (botões, sobrancelha, régua, título). Aqui não se
 * declara nenhum token novo: tudo sai de var(--livest-*).
 *
 * Organização: base partilhada → cabeçalho de lista → filtros → cartão de
 * imóvel → cartão de artigo → estado vazio → paginação → ficha de imóvel →
 * artigo individual → responsivo.
 */

/* --------------------------------------------------------------- base */

/*
 * O WordPress imprime rótulos para leitores de ecrã com esta classe na
 * paginação e na navegação entre artigos. O tema tem a sua
 * (.livest-visualmente-oculto), mas a do core também precisa de existir, ou o
 * texto aparece à vista.
 */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.livest-pagina--lista {
	background-color: var(--livest-creme);
}

/* Contentor das listagens. */
.livest-lista {
	max-width: var(--livest-largura);
	margin: 0 auto;
	padding: 0 var(--livest-goteira) var(--livest-ritmo);
}

/* ------------------------------------------------ cabeçalho de listagem */

.livest-cabecalho-lista {
	padding: var(--livest-ritmo) var(--livest-goteira) clamp(1.75rem, 3vw, 2.5rem);
}

.livest-cabecalho-lista__interior {
	max-width: 44rem;
	margin: 0 auto;
	text-align: center;
}

.livest-cabecalho-lista .livest-regua {
	margin-inline: auto;
}

.livest-cabecalho-lista__intro {
	margin: 0 auto;
	max-width: 56ch;
	font-size: 1.02rem;
}

.livest-cabecalho-lista__intro p:last-child {
	margin-bottom: 0;
}

/* ------------------------------------------------------------- filtros */

.livest-filtros {
	max-width: var(--livest-largura);
	margin: 0 auto;
	padding: 0 var(--livest-goteira) clamp(2rem, 3.5vw, 3rem);
}

.livest-filtros__lista {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .5rem .35rem;
	margin: 0;
	padding: clamp(1.25rem, 2.5vw, 1.75rem) 0 0;
	list-style: none;
	border-top: 1px solid var(--livest-linha);
}

.livest-filtros__link {
	display: inline-flex;
	align-items: baseline;
	gap: .45rem;
	padding: .55rem .95rem;
	border: 1px solid transparent;
	border-radius: var(--livest-raio);
	color: var(--livest-corpo);
	font-size: .82rem;
	font-weight: 400;
	letter-spacing: .11em;
	line-height: 1.2;
	text-transform: uppercase;
	text-decoration: none;
	transition: color var(--livest-transicao), border-color var(--livest-transicao), background-color var(--livest-transicao);
}

.livest-filtros__link:hover {
	color: var(--livest-ouro-texto);
	border-color: var(--livest-linha);
}

.livest-filtros__link.is-ativo {
	background-color: var(--livest-creme-claro);
	border-color: var(--livest-ouro);
	color: var(--livest-ouro-texto);
}

.livest-filtros__contagem {
	font-size: .68rem;
	letter-spacing: .06em;
	opacity: .6;
}

/* --------------------------------------------------- cartão de imóvel */

.livest-imoveis {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.5rem, 2.6vw, 2.25rem);
}

.livest-imovel {
	background-color: var(--livest-branco);
	border: 1px solid var(--livest-linha);
	border-radius: var(--livest-raio);
	overflow: hidden;
	transition: border-color var(--livest-transicao), box-shadow var(--livest-transicao);
}

.livest-imovel:hover {
	border-color: var(--livest-ouro);
	box-shadow: 0 2px 22px rgb(9 58 85 / 7%);
}

.livest-imovel__ligacao {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.livest-imovel__figura {
	position: relative;
	aspect-ratio: 4 / 3;
	background-color: var(--livest-areia);
	overflow: hidden;
}

.livest-imovel__figura img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s ease;
}

.livest-imovel__ligacao:hover .livest-imovel__figura img {
	transform: scale(1.035);
}

.livest-imovel__corpo {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: clamp(1.15rem, 1.8vw, 1.6rem) clamp(1.15rem, 1.8vw, 1.6rem) clamp(1.35rem, 2vw, 1.75rem);
}

.livest-imovel__localidade {
	margin: 0 0 .55rem;
	color: var(--livest-ouro-texto);
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .17em;
	line-height: 1.4;
	text-transform: uppercase;
}

.livest-imovel__titulo {
	margin: 0 0 .6rem;
	color: var(--livest-navy-fundo);
	font-family: var(--livest-fonte-display);
	font-size: 1.35rem;
	font-weight: 400;
	line-height: 1.28;
}

.livest-imovel__preco {
	margin: 0 0 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--livest-linha);
	color: var(--livest-navy-fundo);
	font-family: var(--livest-fonte-display);
	font-size: 1.22rem;
	line-height: 1.3;
}

.livest-imovel__resumo {
	margin: 0 0 1.15rem;
	font-size: .93rem;
	line-height: 1.7;
}

.livest-imovel__selos {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	margin: 0 0 1.35rem;
	padding: 0;
	list-style: none;
}

.livest-imovel__selos li {
	padding: .22rem .6rem;
	border: 1px solid var(--livest-linha);
	border-radius: var(--livest-raio);
	color: var(--livest-corpo);
	font-size: .72rem;
	letter-spacing: .08em;
	line-height: 1.5;
	text-transform: uppercase;
	white-space: nowrap;
}

.livest-imovel__acao {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	margin-top: auto;
	color: var(--livest-ouro-texto);
	font-size: .8rem;
	letter-spacing: .12em;
	line-height: 1.2;
	text-transform: uppercase;
}

.livest-imovel__acao .livest-icone {
	transition: transform var(--livest-transicao);
}

.livest-imovel__ligacao:hover .livest-imovel__acao .livest-icone {
	transform: translateX(4px);
}

/* Estado sem fotografia — a marca da casa, discreta, sobre areia. ------- */

.livest-imovel__espera,
.livest-artigo-cartao__espera,
.livest-ficha__espera {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--livest-areia);
}

.livest-imovel__espera img,
.livest-artigo-cartao__espera img,
.livest-ficha__espera img {
	width: 64px;
	height: auto;
	opacity: .3;
}

.livest-ficha__espera img {
	width: 110px;
}

/*
 * O ficheiro da marca é azul-marinho. Onde houver suporte a máscaras — todos
 * os motores atuais — pintamo-lo com o dourado da marca em vez de o mostrar
 * como está. Sem suporte, fica o PNG original em opacidade baixa.
 */
@supports (mask-image: url("../img/livest-mark.png")) or (-webkit-mask-image: url("../img/livest-mark.png")) {

	.livest-imovel__espera img,
	.livest-artigo-cartao__espera img,
	.livest-ficha__espera img {
		display: none;
	}

	.livest-imovel__espera::before,
	.livest-artigo-cartao__espera::before,
	.livest-ficha__espera::before {
		content: "";
		width: 64px;
		aspect-ratio: 341 / 236;
		background-color: var(--livest-ouro);
		opacity: .4;
		-webkit-mask: url("../img/livest-mark.png") center / contain no-repeat;
		mask: url("../img/livest-mark.png") center / contain no-repeat;
	}

	.livest-ficha__espera::before {
		width: 110px;
	}
}

/* -------------------------------------------------- cartão de artigo */

.livest-artigos {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.75rem, 3vw, 2.75rem);
}

.livest-artigo-cartao {
	border-top: 1px solid var(--livest-linha);
	padding-top: 1.5rem;
}

.livest-artigo-cartao__ligacao {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.livest-artigo-cartao__figura {
	position: relative;
	aspect-ratio: 3 / 2;
	margin-bottom: 1.35rem;
	background-color: var(--livest-areia);
	border-radius: var(--livest-raio);
	overflow: hidden;
}

.livest-artigo-cartao__figura img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s ease;
}

.livest-artigo-cartao__ligacao:hover .livest-artigo-cartao__figura img {
	transform: scale(1.035);
}

.livest-artigo-cartao__corpo {
	display: flex;
	flex: 1;
	flex-direction: column;
}

.livest-artigo-cartao__data {
	margin: 0 0 .6rem;
	color: var(--livest-ouro-texto);
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .16em;
	line-height: 1.4;
	text-transform: uppercase;
}

.livest-artigo-cartao__titulo {
	margin: 0 0 .75rem;
	color: var(--livest-navy-fundo);
	font-family: var(--livest-fonte-display);
	font-size: 1.42rem;
	font-weight: 400;
	line-height: 1.26;
	transition: color var(--livest-transicao);
}

.livest-artigo-cartao__ligacao:hover .livest-artigo-cartao__titulo {
	color: var(--livest-ouro-texto);
}

.livest-artigo-cartao__resumo {
	margin: 0 0 1.25rem;
	font-size: .95rem;
	line-height: 1.75;
}

.livest-artigo-cartao__acao {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	margin-top: auto;
	color: var(--livest-ouro-texto);
	font-size: .8rem;
	letter-spacing: .12em;
	line-height: 1.2;
	text-transform: uppercase;
}

.livest-artigo-cartao__acao .livest-icone {
	transition: transform var(--livest-transicao);
}

.livest-artigo-cartao__ligacao:hover .livest-artigo-cartao__acao .livest-icone {
	transform: translateX(4px);
}

/* -------------------------------------------------------- estado vazio */

.livest-vazio {
	max-width: 46rem;
	margin: 0 auto;
	padding: clamp(2.5rem, 5vw, 4rem) 0;
	border-top: 1px solid var(--livest-linha);
	text-align: center;
}

.livest-vazio__titulo {
	margin: 0 0 1rem;
	color: var(--livest-navy-fundo);
	font-family: var(--livest-fonte-display);
	font-size: clamp(1.45rem, 2.4vw, 1.85rem);
	font-weight: 400;
	line-height: 1.3;
}

.livest-vazio__texto {
	margin: 0 auto;
	max-width: 52ch;
	font-size: 1rem;
}

.livest-vazio__acoes {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	margin-top: 2.25rem;
}

/* ---------------------------------------------------------- paginação */

.livest-paginacao {
	margin-top: clamp(2.75rem, 5vw, 4rem);
	padding-top: clamp(1.75rem, 3vw, 2.5rem);
	border-top: 1px solid var(--livest-linha);
}

.livest-paginacao .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: .4rem;
}

.livest-paginacao .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.6rem;
	padding: .6rem .8rem;
	border: 1px solid var(--livest-linha);
	border-radius: var(--livest-raio);
	color: var(--livest-corpo);
	font-size: .85rem;
	letter-spacing: .06em;
	line-height: 1;
	text-decoration: none;
	transition: color var(--livest-transicao), border-color var(--livest-transicao), background-color var(--livest-transicao);
}

.livest-paginacao a.page-numbers:hover {
	border-color: var(--livest-ouro);
	color: var(--livest-ouro-texto);
}

.livest-paginacao .page-numbers.current {
	background-color: var(--livest-navy-fundo);
	border-color: var(--livest-navy-fundo);
	color: var(--livest-branco);
}

.livest-paginacao .page-numbers.dots {
	border-color: transparent;
	min-width: 1.5rem;
	padding-inline: .25rem;
}

.livest-paginacao .prev,
.livest-paginacao .next {
	letter-spacing: .1em;
	text-transform: uppercase;
	font-size: .78rem;
}

/* -------------------------------------------------- ficha de imóvel */

.livest-ficha {
	background-color: var(--livest-creme);
}

.livest-ficha__figura {
	position: relative;
	margin: 0;
	min-height: clamp(280px, 46vw, 620px);
	background-color: var(--livest-areia);
	overflow: hidden;
}

.livest-ficha__figura img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.livest-ficha__interior {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 21rem);
	gap: clamp(2.5rem, 5vw, 4.5rem);
	align-items: start;
	max-width: var(--livest-largura);
	margin: 0 auto;
	padding: var(--livest-ritmo) var(--livest-goteira) clamp(2rem, 3.5vw, 3rem);
}

.livest-ficha__localidade {
	margin: 0 0 .9rem;
	color: var(--livest-ouro-texto);
	font-size: .78rem;
	font-weight: 500;
	letter-spacing: .2em;
	line-height: 1.4;
	text-transform: uppercase;
}

.livest-ficha__titulo {
	margin: 0 0 1.35rem;
	max-width: 22ch;
}

.livest-ficha__preco {
	margin: 0;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--livest-linha);
	color: var(--livest-navy-fundo);
	font-family: var(--livest-fonte-display);
	font-size: clamp(1.75rem, 3vw, 2.35rem);
	line-height: 1.15;
}

.livest-ficha__selos {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}

.livest-ficha__selos li {
	padding: .4rem .85rem;
	border: 1px solid var(--livest-linha);
	border-radius: var(--livest-raio);
	color: var(--livest-corpo);
	font-size: .78rem;
	letter-spacing: .1em;
	line-height: 1.5;
	text-transform: uppercase;
}

.livest-ficha__concelhos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem .9rem;
	margin: 2.5rem 0 0;
	padding-top: 1.5rem;
	border-top: 1px solid var(--livest-linha);
	font-size: .85rem;
}

.livest-ficha__concelhos-rotulo {
	color: var(--livest-ouro-texto);
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .17em;
	text-transform: uppercase;
}

.livest-ficha__concelhos a {
	color: var(--livest-navy-fundo);
	text-decoration: none;
	border-bottom: 1px solid var(--livest-linha);
	padding-bottom: .15rem;
	transition: border-color var(--livest-transicao), color var(--livest-transicao);
}

.livest-ficha__concelhos a:hover {
	color: var(--livest-ouro-texto);
	border-bottom-color: var(--livest-ouro);
}

/* Barra lateral de contacto ------------------------------------------- */

.livest-ficha__lateral {
	position: sticky;
	top: calc(var(--livest-altura-topo, 76px) + 1.5rem);
}

.livest-contacto-caixa {
	padding: clamp(1.5rem, 2.5vw, 2.15rem);
	background-color: var(--livest-creme-claro);
	border: 1px solid var(--livest-linha);
	border-top: 2px solid var(--livest-ouro);
	border-radius: var(--livest-raio);
}

.livest-contacto-caixa .livest-sobrancelha {
	margin-bottom: .85rem;
}

.livest-contacto-caixa__titulo {
	margin: 0 0 .9rem;
	color: var(--livest-navy-fundo);
	font-family: var(--livest-fonte-display);
	font-size: 1.45rem;
	font-weight: 400;
	line-height: 1.25;
}

.livest-contacto-caixa__texto {
	margin: 0 0 1.5rem;
	font-size: .95rem;
	line-height: 1.75;
}

.livest-contacto-caixa__lista {
	display: grid;
	gap: .9rem;
	margin: 0 0 1.75rem;
	padding: 1.35rem 0 0;
	list-style: none;
	border-top: 1px solid var(--livest-linha);
}

.livest-contacto-caixa__rotulo {
	display: block;
	color: var(--livest-ouro-texto);
	font-size: .68rem;
	font-weight: 500;
	letter-spacing: .17em;
	line-height: 1.5;
	text-transform: uppercase;
}

.livest-contacto-caixa__lista a {
	color: var(--livest-navy-fundo);
	font-size: 1rem;
	text-decoration: none;
	transition: color var(--livest-transicao);
}

.livest-contacto-caixa__lista a:hover {
	color: var(--livest-ouro-texto);
}

.livest-contacto-caixa__acoes .livest-botao {
	width: 100%;
}

/* Rodapé da ficha ------------------------------------------------------ */

.livest-ficha__rodape {
	max-width: var(--livest-largura);
	margin: 0 auto;
	padding: 0 var(--livest-goteira) var(--livest-ritmo);
}

.livest-voltar {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	padding-top: clamp(1.75rem, 3vw, 2.5rem);
	border-top: 1px solid var(--livest-linha);
	width: 100%;
	color: var(--livest-ouro-texto);
	font-size: .82rem;
	letter-spacing: .12em;
	line-height: 1.2;
	text-transform: uppercase;
	text-decoration: none;
	transition: color var(--livest-transicao);
}

.livest-voltar:hover {
	color: var(--livest-navy-fundo);
}

.livest-voltar__seta {
	transition: transform var(--livest-transicao);
}

.livest-voltar:hover .livest-voltar__seta {
	transform: translateX(-4px);
}

/* --------------------------------------------------- artigo individual */

.livest-post {
	background-color: var(--livest-creme);
}

.livest-post__cabecalho {
	max-width: 46rem;
	margin: 0 auto;
	padding: var(--livest-ritmo) var(--livest-goteira) clamp(1.75rem, 3vw, 2.5rem);
	text-align: center;
}

.livest-post__data {
	margin: 0 0 1.15rem;
	color: var(--livest-ouro-texto);
	font-size: .76rem;
	font-weight: 500;
	letter-spacing: .2em;
	line-height: 1.4;
	text-transform: uppercase;
}

.livest-post__titulo {
	margin: 0;
	text-wrap: balance;
}

.livest-post__figura {
	position: relative;
	margin: 0 0 clamp(2.25rem, 4vw, 3.25rem);
	min-height: clamp(240px, 38vw, 520px);
	background-color: var(--livest-areia);
	overflow: hidden;
}

.livest-post__figura img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Coluna de leitura — a medida é a mesma de .livest-prosa. */
.livest-post__corpo,
.livest-ficha__corpo {
	max-width: 46rem;
	font-size: 1.04rem;
	line-height: 1.85;
}

.livest-post__corpo {
	margin: 0 auto;
	padding: 0 var(--livest-goteira);
}

.livest-ficha__corpo {
	margin-top: 2.25rem;
}

.livest-post__corpo > :first-child,
.livest-ficha__corpo > :first-child {
	margin-top: 0;
}

.livest-post__corpo h2,
.livest-post__corpo h3,
.livest-post__corpo h4,
.livest-ficha__corpo h2,
.livest-ficha__corpo h3,
.livest-ficha__corpo h4 {
	margin: 2.5rem 0 .9rem;
	color: var(--livest-navy-fundo);
	font-family: var(--livest-fonte-display);
	font-weight: 400;
	line-height: 1.25;
}

.livest-post__corpo h2,
.livest-ficha__corpo h2 { font-size: 1.7rem; }

.livest-post__corpo h3,
.livest-ficha__corpo h3 { font-size: 1.38rem; }

.livest-post__corpo h4,
.livest-ficha__corpo h4 { font-size: 1.15rem; }

.livest-post__corpo ul,
.livest-post__corpo ol,
.livest-ficha__corpo ul,
.livest-ficha__corpo ol {
	margin: 0 0 1.15em;
	padding-left: 1.35rem;
}

.livest-post__corpo li,
.livest-ficha__corpo li { margin-bottom: .4em; }

.livest-post__corpo img,
.livest-ficha__corpo img {
	border-radius: var(--livest-raio);
}

.livest-post__corpo figure,
.livest-ficha__corpo figure { margin: 2.25rem 0; }

.livest-post__corpo figcaption,
.livest-ficha__corpo figcaption {
	margin-top: .7rem;
	font-size: .85rem;
	line-height: 1.6;
	opacity: .85;
}

.livest-post__corpo blockquote,
.livest-ficha__corpo blockquote {
	margin: 2.25rem 0;
	padding: .25rem 0 .25rem 1.6rem;
	border-left: 1px solid var(--livest-ouro);
	color: var(--livest-navy-fundo);
	font-family: var(--livest-fonte-display);
	font-size: 1.25rem;
	line-height: 1.55;
}

.livest-post__corpo a,
.livest-ficha__corpo a {
	color: var(--livest-navy-fundo);
	text-decoration-color: var(--livest-ouro);
}

.livest-post__corpo table,
.livest-ficha__corpo table {
	width: 100%;
	border-collapse: collapse;
	font-size: .95rem;
}

.livest-post__corpo th,
.livest-post__corpo td,
.livest-ficha__corpo th,
.livest-ficha__corpo td {
	padding: .7rem .5rem;
	border-bottom: 1px solid var(--livest-linha);
	text-align: left;
}

.livest-post__paginas {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .6rem;
	margin-top: 2.5rem;
	font-size: .85rem;
	letter-spacing: .06em;
}

.livest-post__paginas > span:first-child {
	color: var(--livest-ouro-texto);
	font-size: .72rem;
	letter-spacing: .17em;
	text-transform: uppercase;
}

/* Anterior / seguinte -------------------------------------------------- */

.livest-post__rodape {
	max-width: 46rem;
	margin: clamp(2.75rem, 5vw, 4rem) auto 0;
	padding: 0 var(--livest-goteira) var(--livest-ritmo);
}

.livest-post-nav {
	padding-top: clamp(1.75rem, 3vw, 2.5rem);
	border-top: 1px solid var(--livest-linha);
}

.livest-post-nav .nav-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem clamp(1.5rem, 3vw, 2.5rem);
}

.livest-post-nav .nav-previous { grid-column: 1; }
.livest-post-nav .nav-next { grid-column: 2; text-align: right; }

.livest-post-nav a {
	display: inline-flex;
	flex-direction: column;
	gap: .45rem;
	color: inherit;
	text-decoration: none;
}

.livest-post-nav__rotulo {
	color: var(--livest-ouro-texto);
	font-size: .7rem;
	font-weight: 500;
	letter-spacing: .17em;
	line-height: 1.4;
	text-transform: uppercase;
}

.livest-post-nav__titulo {
	color: var(--livest-navy-fundo);
	font-family: var(--livest-fonte-display);
	font-size: 1.15rem;
	line-height: 1.35;
	transition: color var(--livest-transicao);
}

.livest-post-nav a:hover .livest-post-nav__titulo {
	color: var(--livest-ouro-texto);
}

/* ------------------------------------------------------------ responsivo */

@media (max-width: 1080px) {

	/* Tablet — duas colunas. */
	.livest-imoveis,
	.livest-artigos {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.livest-ficha__interior {
		grid-template-columns: minmax(0, 1fr);
	}

	.livest-ficha__lateral {
		position: static;
		max-width: 32rem;
	}
}

@media (max-width: 600px) {

	/* Telemóvel — uma coluna. */
	.livest-imoveis,
	.livest-artigos {
		grid-template-columns: minmax(0, 1fr);
	}

	.livest-filtros__lista {
		justify-content: flex-start;
	}

	.livest-vazio__acoes .livest-botao {
		flex: 1 1 100%;
	}

	.livest-paginacao .nav-links {
		gap: .35rem;
	}

	.livest-post-nav .nav-links {
		grid-template-columns: minmax(0, 1fr);
	}

	.livest-post-nav .nav-previous,
	.livest-post-nav .nav-next {
		grid-column: 1;
		text-align: left;
	}
}

@media (prefers-reduced-motion: reduce) {

	.livest-imovel__figura img,
	.livest-artigo-cartao__figura img,
	.livest-imovel__acao .livest-icone,
	.livest-artigo-cartao__acao .livest-icone,
	.livest-voltar__seta {
		transition: none;
	}

	.livest-imovel__ligacao:hover .livest-imovel__figura img,
	.livest-artigo-cartao__ligacao:hover .livest-artigo-cartao__figura img,
	.livest-imovel__ligacao:hover .livest-imovel__acao .livest-icone,
	.livest-artigo-cartao__ligacao:hover .livest-artigo-cartao__acao .livest-icone,
	.livest-voltar:hover .livest-voltar__seta {
		transform: none;
	}
}

/* ==================================== galeria do imóvel (ficha) ========== */

.livest-carrossel-ficha {
	position: relative;
	min-height: clamp(280px, 46vw, 620px);
	background-color: var(--livest-areia);
	overflow: hidden;
}

.livest-carrossel-ficha__pista {
	display: flex;
	height: 100%;
	min-height: clamp(280px, 46vw, 620px);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}
.livest-carrossel-ficha__pista::-webkit-scrollbar { display: none; }

.livest-carrossel-ficha__slide {
	position: relative;
	flex: 0 0 100%;
	margin: 0;
	scroll-snap-align: start;
}

.livest-carrossel-ficha__slide img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.livest-carrossel-ficha__seta {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-top: -24px;
	padding: 0;
	background-color: rgb(245 243 240 / 88%);
	border: 0;
	border-radius: 50%;
	color: var(--livest-navy-fundo);
	cursor: pointer;
	transition: background-color var(--livest-transicao), color var(--livest-transicao);
}
.livest-carrossel-ficha__seta:hover,
.livest-carrossel-ficha__seta:focus-visible {
	background-color: var(--livest-navy-fundo);
	color: var(--livest-branco);
}
.livest-carrossel-ficha__seta[hidden] { display: none; }

.livest-carrossel-ficha__seta--anterior { left: clamp(.75rem, 2vw, 1.75rem); transform: rotate(180deg); }
.livest-carrossel-ficha__seta--seguinte { right: clamp(.75rem, 2vw, 1.75rem); }

.livest-carrossel-ficha__contador {
	position: absolute;
	right: clamp(.75rem, 2vw, 1.75rem);
	bottom: clamp(.75rem, 2vw, 1.5rem);
	z-index: 2;
	margin: 0;
	padding: .35rem .85rem;
	background-color: rgb(7 38 58 / 78%);
	border-radius: var(--livest-raio);
	color: var(--livest-branco);
	font-size: .78rem;
	letter-spacing: .1em;
}

/* Miniaturas, acima do cartão de visitas e informações. */

.livest-miniaturas {
	max-width: var(--livest-largura);
	margin: 0 auto;
	padding: clamp(.85rem, 1.6vw, 1.3rem) var(--livest-goteira) 0;
}

.livest-miniaturas .livest-sobrancelha { margin-bottom: .6rem; }

/*
 * Fila única, sempre. Nunca passa para a linha de baixo: o que não couber no
 * ecrã alcança-se deslizando na horizontal — com o dedo, arrastando com o rato
 * ou clicando nas fotografias seguintes, que trazem a fila atrás delas.
 */
.livest-miniaturas__lista {
	display: flex;
	flex-wrap: nowrap;
	gap: .45rem;
	margin: 0;
	padding: 0 0 .35rem;
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x proximity;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	cursor: grab;
}
.livest-miniaturas__lista::-webkit-scrollbar { display: none; }

/* Enquanto se arrasta, o salto suave atrapalharia o acompanhamento do dedo. */
.livest-miniaturas__lista.is-arrastar { cursor: grabbing; scroll-behavior: auto; }

.livest-miniaturas__lista > li {
	flex: 0 0 auto;
	margin: 0;
	scroll-snap-align: center;
}

.livest-miniaturas__botao {
	/*
	 * `position: relative` não é decoração: dentro do botão há um rótulo
	 * `.livest-visualmente-oculto`, que é `position: absolute`. Sem um
	 * ancestral posicionado, esse rótulo ancora-se ao documento e fica na sua
	 * posição estática — a 5700 px à direita, no fim da fila. O documento
	 * passava a ter essa largura e a página ganhava scroll horizontal, mesmo
	 * com a fila a recortar corretamente.
	 */
	position: relative;
	display: block;
	width: 84px;
	aspect-ratio: 4 / 3;
	padding: 0;
	background: var(--livest-areia);
	border: 1px solid transparent;
	border-radius: var(--livest-raio);
	overflow: hidden;
	cursor: pointer;
	opacity: .62;
	transition: opacity var(--livest-transicao), border-color var(--livest-transicao);
}

.livest-miniaturas__botao img { width: 100%; height: 100%; object-fit: cover; display: block; }

.livest-miniaturas__botao:hover { opacity: 1; }

.livest-miniaturas__botao.is-ativa {
	opacity: 1;
	border-color: var(--livest-ouro);
}

@media (prefers-reduced-motion: reduce) {
	.livest-carrossel-ficha__pista,
	.livest-miniaturas__lista { scroll-behavior: auto; }
}

@media (max-width: 900px) {
	.livest-miniaturas__botao { width: 76px; }
}

@media (max-width: 600px) {
	.livest-miniaturas__botao { width: 66px; }
	.livest-carrossel-ficha__seta { width: 40px; height: 40px; margin-top: -20px; }
}

/* ============================================ características do imóvel === */

.livest-ficha__caracteristicas {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	gap: 1.25rem clamp(1.5rem, 3vw, 2.5rem);
	margin: 1.75rem 0 0;
	padding-top: 1.75rem;
	border-top: 1px solid var(--livest-linha);
}

.livest-ficha__caracteristica dt {
	margin-bottom: .35rem;
	color: var(--livest-ouro-texto);
	font-size: .7rem;
	font-weight: 500;
	letter-spacing: .17em;
	line-height: 1.4;
	text-transform: uppercase;
}

.livest-ficha__caracteristica dd {
	margin: 0;
	color: var(--livest-navy-fundo);
	font-family: var(--livest-fonte-display);
	font-size: 1.15rem;
	line-height: 1.35;
}

/* ==================================== vídeo do imóvel (fachada YouTube) === */

.livest-carrossel-ficha__slide--video {
	background-color: var(--livest-navy-fundo);
}

.livest-video-imovel {
	position: absolute;
	inset: 0;
}

.livest-video-imovel img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Sem imagem destacada, fica a marca sobre o azul — nunca um buraco preto. */
.livest-video-imovel__espera {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.livest-video-imovel__espera img {
	position: static;
	width: clamp(120px, 22%, 220px);
	height: auto;
	object-fit: contain;
	opacity: .5;
}

.livest-video-imovel__play {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	width: 100%;
	padding: 0;
	background-color: rgb(7 38 58 / 30%);
	border: 0;
	color: var(--livest-branco);
	cursor: pointer;
	transition: background-color var(--livest-transicao);
}

.livest-video-imovel__play:hover,
.livest-video-imovel__play:focus-visible {
	background-color: rgb(7 38 58 / 48%);
}

.livest-video-imovel__disco {
	display: flex;
	align-items: center;
	justify-content: center;
	width: clamp(60px, 9vw, 84px);
	height: clamp(60px, 9vw, 84px);
	padding-left: .2em;
	background-color: rgb(245 243 240 / 92%);
	border: 1px solid var(--livest-ouro);
	border-radius: 50%;
	color: var(--livest-navy-fundo);
	transition: background-color var(--livest-transicao), color var(--livest-transicao);
}

.livest-video-imovel__disco .livest-icone {
	width: 42%;
	height: 42%;
}

.livest-video-imovel__play:hover .livest-video-imovel__disco,
.livest-video-imovel__play:focus-visible .livest-video-imovel__disco {
	background-color: var(--livest-ouro);
	color: var(--livest-branco);
}

.livest-video-imovel__rotulo {
	font-family: var(--livest-fonte-sans);
	font-size: .78rem;
	font-weight: 500;
	letter-spacing: .2em;
	line-height: 1.4;
	text-transform: uppercase;
	text-shadow: 0 1px 8px rgb(4 27 43 / 55%);
}

.livest-video-imovel__iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Miniatura do vídeo: a capa do imóvel com o play por cima. */

.livest-miniaturas__botao--video {
	position: relative;
}

.livest-miniaturas__botao--video::after {
	content: "";
	position: absolute;
	inset: 0;
	background-color: rgb(7 38 58 / 28%);
}

.livest-miniaturas__play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	margin: -13px 0 0 -13px;
	padding-left: .12em;
	background-color: rgb(245 243 240 / 92%);
	border-radius: 50%;
	color: var(--livest-navy-fundo);
}

.livest-miniaturas__play .livest-icone { width: 11px; height: 11px; }

/* ================================================= mapa da localização === */

.livest-mapa {
	background-color: var(--livest-creme-claro);
	border-top: 1px solid var(--livest-linha);
}

.livest-mapa__interior {
	max-width: var(--livest-largura);
	margin: 0 auto;
	padding: var(--livest-ritmo) var(--livest-goteira);
}

.livest-mapa__titulo {
	margin: .5rem 0 0;
}

.livest-mapa__nota {
	max-width: 46ch;
	margin: .9rem 0 0;
	color: var(--livest-corpo);
	font-size: .92rem;
	line-height: 1.6;
}

.livest-mapa__moldura {
	position: relative;
	margin-top: clamp(1.75rem, 3vw, 2.5rem);
	aspect-ratio: 16 / 7;
	min-height: 300px;
	background-color: var(--livest-areia);
	border: 1px solid var(--livest-ouro);
	border-radius: var(--livest-raio);
	overflow: hidden;
}

.livest-mapa__moldura iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (max-width: 600px) {
	.livest-mapa__moldura { aspect-ratio: 4 / 3; }
	.livest-video-imovel__rotulo { font-size: .7rem; letter-spacing: .15em; }
}

@media (prefers-reduced-motion: reduce) {
	.livest-video-imovel__play,
	.livest-video-imovel__disco { transition: none; }
}
