/* Imóveis em destaque da página inicial: coverflow de 5 (3 no telemóvel). Tudo dentro de .core-dest. */
body:has(.core-dest) { overflow-x: clip; }
.core-dest { --w: clamp(300px, 30vw, 460px); width: 100%; max-width: 1160px; margin: 0 auto; padding: 56px 16px 40px; font-family: 'Inter', -apple-system, sans-serif; color: #041456; box-sizing: border-box; line-height: 1.5; }
.core-dest * { box-sizing: border-box; }
.core-dest-cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin: 0 0 30px; }
.core-dest-ey { font: 700 11px 'Inter', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #041456; margin: 0 0 12px; }
.core-dest-t { font: 400 clamp(32px, 4.4vw, 50px)/1.08 'Lora', Georgia, serif; margin: 0 0 8px; letter-spacing: -.01em; color: #041456; }
.core-dest-t em { font-style: italic; }
.core-dest-sub { margin: 0; color: #4a5580; font-size: 15px; }
.core-dest-btn { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid #041456; color: #041456; background: transparent; border-radius: 6px; padding: 11px 22px; font: 600 14px 'Inter', sans-serif; text-decoration: none; transition: background .15s, color .15s; }
.core-dest-btn:hover { background: #041456; color: #fff; }

/* O carrossel vai de borda a borda do ecrã (fora da coluna do texto): as fotos dos lados chegam aos extremos */
.core-dest-lf { position: relative; height: calc(var(--w) * .82); overflow: hidden; margin-inline: calc(50% - 50vw); }
.core-dest-card { position: absolute; top: 0; left: 50%; width: var(--w); height: 100%; margin-left: calc(var(--w) / -2); border-radius: 20px; overflow: hidden; background: #f2ecd9; cursor: pointer; transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .5s; opacity: 0; transform: scale(.5); pointer-events: none; box-shadow: 0 10px 28px rgba(20, 20, 40, .16); display: block; text-decoration: none; }
.core-dest .core-dest-card img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover !important; display: block; }
.core-dest-ty { position: absolute; top: 12px; left: 12px; background: #fbf9f2; color: #041456; font: 700 11.5px 'Inter', sans-serif; letter-spacing: .05em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; }
.core-dest-pt { position: absolute; left: 12px; bottom: 12px; background: #fbf9f2; color: #041456; font: 500 17px 'Lora', serif; padding: 5px 11px; border-radius: 6px; }
.core-dest-card[data-r="0"] { opacity: 1; transform: none; z-index: 5; pointer-events: auto; cursor: default; }
/* Posições calculadas sobre a largura do bloco (centro 38%): vizinhos a 79% e 116% da largura da carta, de modo a verem-se cinco */
.core-dest-card[data-r="1"] { opacity: .97; transform: translateX(79%) scale(.86); z-index: 4; pointer-events: auto; }
.core-dest-card[data-r="-1"] { opacity: .97; transform: translateX(-79%) scale(.86); z-index: 4; pointer-events: auto; }
.core-dest-card[data-r="2"] { opacity: .9; transform: translateX(120%) scale(.72); z-index: 3; pointer-events: auto; }
.core-dest-card[data-r="-2"] { opacity: .9; transform: translateX(-120%) scale(.72); z-index: 3; pointer-events: auto; }
/* as etiquetas das cartas menores ficam maiores para continuarem legíveis depois de reduzidas */
.core-dest-card[data-r="1"] .core-dest-ty, .core-dest-card[data-r="-1"] .core-dest-ty { font-size: 15px; }
.core-dest-card[data-r="1"] .core-dest-pt, .core-dest-card[data-r="-1"] .core-dest-pt { font-size: 21px; }
.core-dest-card[data-r="2"] .core-dest-ty, .core-dest-card[data-r="-2"] .core-dest-ty { font-size: 16px; top: 14px; left: 14px; }
.core-dest-card[data-r="2"] .core-dest-pt, .core-dest-card[data-r="-2"] .core-dest-pt { font-size: 23px; left: 14px; bottom: 14px; }

/* Textos por baixo: o do central ao meio e, mais pequenos, os dos dois vizinhos por baixo das suas fotos */
.core-dest-cp { position: relative; margin: 18px calc(50% - 50vw) 0; height: 250px; }
.core-dest-cap { position: absolute; top: 0; display: grid; gap: 3px; justify-items: center; text-align: center; align-content: start; }
.core-dest-cap--c { left: calc(50% - .46 * var(--w)); width: calc(.92 * var(--w)); }
.core-dest-cap--l, .core-dest-cap--r { width: calc(.62 * var(--w)); cursor: pointer; opacity: .92; transition: opacity .2s; }
.core-dest-cap--l:hover, .core-dest-cap--r:hover { opacity: 1; }
.core-dest-cap--l { left: calc(50% - .79 * var(--w) - .31 * var(--w)); }
.core-dest-cap--r { left: calc(50% + .79 * var(--w) - .31 * var(--w)); }
.core-dest-cap--l .core-dest-l1, .core-dest-cap--r .core-dest-l1 { font-size: 10px; }
.core-dest-cap--l .core-dest-pr, .core-dest-cap--r .core-dest-pr { font-size: 21px; }
.core-dest-cap--l .core-dest-pq, .core-dest-cap--r .core-dest-pq { font-size: 12.5px; text-align: left; }
.core-dest-cap--l .core-dest-l3, .core-dest-cap--r .core-dest-l3 { font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.core-dest-l1 { font: 700 11px 'Inter', sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #6b5228; }
.core-dest-pr { font: 500 30px/1.1 'Lora', serif; }
.core-dest-l3 { color: #4a5580; font-size: 14.5px; }
.core-dest-vf { margin-top: 8px; background: #041456; color: #fff; font: 700 13px 'Inter', sans-serif; padding: 10px 18px; border-radius: 6px; text-decoration: none; transition: background .15s, color .15s; }
.core-dest-vf:hover { background: #d9c48f; color: #041456; }
.core-dest-ctr { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }
.core-dest-seta { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #041456; background: #fff; color: #041456; font-size: 18px; cursor: pointer; line-height: 1; padding: 0; }
.core-dest-seta:hover { background: #041456; color: #fff; }

/* Poucos imóveis (menos de 3): cartões lado a lado, sem carrossel */
.core-dest--poucos .core-dest-lf { margin-inline: 0; display: flex; gap: 16px; height: auto; overflow: visible; justify-content: center; }
.core-dest--poucos .core-dest-card { position: relative; left: auto; margin: 0; width: 44%; height: 380px; opacity: 1; transform: none; pointer-events: auto; }
.core-dest--poucos .core-dest-cp { display: none; }

@media (max-width: 900px) {
	.core-dest { --w: clamp(280px, 44vw, 520px); }
	.core-dest-lf { height: 380px; }
	.core-dest-ty { font-size: 10.5px; padding: 4px 8px; top: 10px; left: 10px; }
	.core-dest-pt { font-size: 15px; left: 10px; bottom: 10px; padding: 4px 9px; }
	.core-dest-card[data-r="1"] .core-dest-ty, .core-dest-card[data-r="-1"] .core-dest-ty { font-size: 12px; }
	.core-dest-card[data-r="1"] .core-dest-pt, .core-dest-card[data-r="-1"] .core-dest-pt { font-size: 17px; }
	.core-dest-card[data-r="2"] .core-dest-ty, .core-dest-card[data-r="-2"] .core-dest-ty { font-size: 14px; }
	.core-dest-card[data-r="2"] .core-dest-pt, .core-dest-card[data-r="-2"] .core-dest-pt { font-size: 20px; }
}
@media (max-width: 640px) {
	.core-dest { padding-top: 40px; --w: 62vw; }
	.core-dest-lf { height: 320px; }
	.core-dest-card[data-r="1"] { transform: translateX(66%) scale(.86); }
	.core-dest-card[data-r="-1"] { transform: translateX(-66%) scale(.86); }
	.core-dest-card[data-r="1"] .core-dest-ty, .core-dest-card[data-r="-1"] .core-dest-ty { font-size: 11px; }
	.core-dest-card[data-r="1"] .core-dest-pt, .core-dest-card[data-r="-1"] .core-dest-pt { font-size: 15px; }
	.core-dest-card[data-r="2"], .core-dest-card[data-r="-2"] { opacity: 0; pointer-events: none; }
	.core-dest-btn { width: 100%; justify-content: center; }
	.core-dest-pr { font-size: 26px; }
	.core-dest--poucos .core-dest-lf { flex-direction: column; }
	.core-dest--poucos .core-dest-card { width: 100%; height: 280px; }
}
@media (prefers-reduced-motion: reduce) { .core-dest-card { transition: none; } }

/* "Porquê": uma linha com o que torna o imóvel uma oportunidade */
.core-dest-pq { font: 600 14px 'Inter', sans-serif; color: #6b5228; display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 2px; }
.core-dest-pq::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #d9c48f; flex: 0 0 auto; }


/* Nas cartas da direita, o tipo e o preço passam para o lado direito (o esquerdo fica tapado pela carta central) */
.core-dest-card[data-r="1"] .core-dest-ty, .core-dest-card[data-r="2"] .core-dest-ty, .core-dest-card[data-r="1"] .core-dest-pt, .core-dest-card[data-r="2"] .core-dest-pt { left: auto; right: 12px; }
.core-dest-card[data-r="2"] .core-dest-ty, .core-dest-card[data-r="2"] .core-dest-pt { right: 14px; }
@media (max-width: 900px) {
	.core-dest-cp { margin-inline: 0; height: auto; }
	.core-dest-cap--c { position: static; width: auto; }
	.core-dest-cap--l, .core-dest-cap--r { display: none; }
}
@media (max-width: 640px) {
	.core-dest-card[data-r="1"] .core-dest-ty, .core-dest-card[data-r="1"] .core-dest-pt { right: auto; left: 38%; }
}

/* v1.33.8: título único en cursiva, etiquetas discretas, solo el central lleva texto, flechas junto al botón */
.core-dest-t { margin: 0; max-width: 18ch; font-size: clamp(28px, 3.6vw, 44px); }
.core-dest-cab { align-items: flex-end; margin-bottom: 26px; }
.core-dest-ty { font-size: 10px; letter-spacing: .07em; padding: 3px 8px; top: 10px; left: 10px; background: rgba(251, 249, 242, .82); font-weight: 600; }
.core-dest-pt { font-size: 14px; padding: 3px 9px; left: 10px; bottom: 10px; background: rgba(251, 249, 242, .86); }
.core-dest .core-dest-card[data-r] .core-dest-ty { font-size: 10.5px; top: 10px; left: 10px; }
.core-dest .core-dest-card[data-r] .core-dest-pt { font-size: 15px; left: 10px; bottom: 10px; }
.core-dest .core-dest-card[data-r="1"] .core-dest-ty, .core-dest .core-dest-card[data-r="2"] .core-dest-ty,
.core-dest .core-dest-card[data-r="1"] .core-dest-pt, .core-dest .core-dest-card[data-r="2"] .core-dest-pt { left: auto; right: 10px; }
.core-dest-cp { height: auto; margin-top: 16px; }
.core-dest-cap--l, .core-dest-cap--r { display: none; }
.core-dest-cap--c { position: static; width: auto; margin: 0 auto; max-width: 560px; }
.core-dest-act { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 8px; }
.core-dest-act .core-dest-vf { margin-top: 0; }
.core-dest-act .core-dest-seta { width: 38px; height: 38px; font-size: 16px; }
@media (max-width: 640px) {
	.core-dest-card[data-r="1"] .core-dest-ty, .core-dest-card[data-r="1"] .core-dest-pt { right: auto; left: 38%; }
	.core-dest .core-dest-card[data-r="1"] .core-dest-ty, .core-dest .core-dest-card[data-r="1"] .core-dest-pt { right: auto; left: 38%; }
}

/* v1.33.9: etiqueta dourada com círculo e título a duas cores */
.core-dest-ey { display: inline-flex; align-items: center; gap: 9px; color: #d9c48f; }
.core-dest-ey::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #d9c48f; flex: 0 0 auto; }
.core-dest-t { max-width: 22ch; }
.core-dest-t em { color: #d9c48f; font-style: italic; }

/* fondo crema a todo el ancho del ecrã */
.core-dest { background: #fbf9f2; box-shadow: 0 0 0 100vmax #fbf9f2; clip-path: inset(0 -100vmax); }

/* o azul numa só linha e "pensados para si." na segunda */
.core-dest-t { max-width: none; }
.core-dest-t em { display: block; }
@media (min-width: 641px) { .core-dest-t { white-space: nowrap; } }

/* CTA: flechas discretas, "Ver ficha" como único elemento forte */
.core-dest-act { gap: 18px; }
.core-dest-act .core-dest-seta { width: 36px; height: 36px; border: 0; background: transparent; font-size: 30px; font-weight: 300; color: #041456; padding: 0 0 4px; }
.core-dest-act .core-dest-seta:hover { background: transparent; color: #6b5228; }
.core-dest-act .core-dest-vf { padding: 9px 18px; font-size: 12.5px; }

/* Home: fundo creme em todos os blocos (os cartões brancos destacam-se); sem transição para não "piscar" ao carregar */
body.home, body.home .elementor-10 > .e-con { background-color: #fbf9f2 !important; transition: none !important; }

/* Telemóvel: o botão "Ver todos" passa para o fim do bloco */
.core-dest-btn--fim { display: none; }
@media (max-width: 640px) {
	.core-dest-cab .core-dest-btn { display: none; }
	.core-dest .core-dest-btn--fim { display: flex; width: 100%; justify-content: center; margin-top: 22px; }
}
