/* E4.003 - Card fiel a referencia visual do Marketplace: cinco unidades por faixa.
   Escopo estrito para nao alterar os cards da busca, o header e o banner. */
.section-properties.featured-mode {
    padding-top: 66px;
    padding-bottom: 66px;
}
.section-properties .featured-subtitle {
    margin: 6px 0 0;
    font-size: .92rem;
    color: #5e6b7b;
}
.section-properties.featured-mode .heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}
.section-properties.featured-mode .heading-row h2 {
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    margin: 8px 0 4px;
}
.featured-arrows { display: flex; align-items: center; gap: 6px; }
.featured-arrow { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #dfe7f0; background: #fff; color: #073c78; display: grid; place-items: center; font: 700 1.5rem/1 Georgia,serif; cursor: pointer; }
.featured-arrow:not(:disabled):hover { border-color: #0b579e; background: #edf5fd; }
.featured-arrow:disabled { opacity: .35; cursor: default; }
.featured-arrow[hidden], .featured-photo img[hidden] { display: none; }
/* Navegacao sob a galeria, centralizada e visivel somente quando ha mais de uma pagina. */
.featured-pagination { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 18px; }
.featured-pagination[hidden] { display: none; }
.featured-page-status { color: #415670; font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums; }
/* Acesso ao catalogo sob a paginacao, sem competir com as fotos e seus dados. */
.featured-catalog-cta { display: flex; align-items: center; justify-content: center; margin-top: 20px; }
.featured-catalog-cta__link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; box-sizing: border-box; padding: 12px 24px; border-radius: 9px; background: #0b57aa; border: 1px solid #0b57aa; color: #fff; font-size: .9rem; font-weight: 800; line-height: 1.25; text-decoration: none; text-align: center; transition: background-color .18s ease,border-color .18s ease; }
.featured-catalog-cta__link:hover { background: #084783; border-color: #084783; color: #fff; }
.featured-catalog-cta__link:focus-visible { outline: 3px solid #92c1ff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .featured-catalog-cta__link { transition: none; } }
.featured-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; scroll-margin-top: 82px; }
.featured-card[hidden] { display: none; }
.featured-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid #e3eaf2; border-radius: 9px; box-shadow: 0 8px 25px rgba(20,51,87,.055); display: flex; flex-direction: column; }
.featured-photo { position: relative; width: 100%; aspect-ratio: 1.52; background: #dbe5ee; overflow: hidden; }
.featured-photo img { display: block; position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.featured-photo-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #54718c; font-size: .82rem; }
/* Rodape do anunciante, seguindo o padrao dos cards de resultados de imoveis.
   A largura e compacta para comportar cinco cards por pagina no desktop. */
.featured-advertiser { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 55px; box-sizing: border-box; margin: 0 9px 9px; padding-top: 9px; border-top: 1px solid #e8eef5; }
.featured-advertiser--empty { border-top-color: transparent; }
.featured-advertiser-logo { box-sizing: border-box; flex: 0 0 68px; width: 68px; height: 44px; padding: 4px; border: 1px solid #e0e7ef; border-radius: 7px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.featured-advertiser-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.featured-advertiser-info { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; gap: 2px; overflow-wrap: anywhere; line-height: 1.25; }
.featured-advertiser-info > small, .featured-advertiser-creci small { color: #798b9c; font-size: .59rem; font-weight: 700; }
.featured-advertiser-info > strong { color: #314c67; font-size: .7rem; font-weight: 800; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.featured-advertiser-creci { color: #314c67; font-size: .65rem; font-weight: 750; overflow-wrap: anywhere; }
/* Tarja promocional opcional: canto inferior esquerdo, com espaco reservado ao favorito. */
.featured-promo-ribbon { position: absolute; z-index: 2; bottom: 8px; left: 8px; box-sizing: border-box; max-width: calc(100% - 61px); padding: 4px 7px; background: #b77e29; color: #fff; border-radius: 4px; font-size: .62rem; font-weight: 800; line-height: 1.2; text-align: left; overflow-wrap: anywhere; box-shadow: 0 2px 7px rgba(0,0,0,.18); pointer-events: none; }
/* Vitrine da Home: Venda no azul Imobee, Locação em negativo do mesmo azul. */
.featured-badge { position: absolute; z-index: 2; top: 7px; left: 7px; padding: 4px 10px; background: #0a57a8; color: #fff; border-radius: 999px; font-size: .68rem; line-height: 1.2; font-weight: 800; box-shadow: 0 2px 7px rgba(0,0,0,.18); }
.featured-badge-rent { background: #fff; color: #0a57a8; border: 1px solid #0a57a8; padding: 3px 9px; }
.featured-badge-mixed { background: #0b607b; max-width: calc(100% - 48px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.featured-favorite-form { position: absolute; z-index: 3; bottom: 8px; right: 8px; margin: 0; }
.featured-favorite { position: absolute; z-index: 3; bottom: 8px; right: 8px; border-radius: 50%; display: grid; place-items: center; width: 29px; height: 29px; padding: 0; color: #fff; background: rgba(13,29,47,.48); border: 1px solid rgba(255,255,255,.7); cursor: pointer; text-decoration: none; }
.featured-favorite-form .featured-favorite { position: static; }
.featured-favorite.is-active { background: #fff; color: #c6254b; border-color: #fff; }
.featured-favorite.is-active svg { fill: currentColor; }
.featured-favorite:focus-visible { outline: 3px solid #09539e; outline-offset: 3px; }
.featured-favorite:disabled, .featured-favorite[aria-busy="true"] { opacity: .65; cursor: wait; }
.featured-favorite-status { margin: 0 0 12px; padding: 9px 12px; border-radius: 6px; background: #f0f5fc; color: #123d68; font-size: .84rem; }
.featured-favorite-status[hidden] { display: none; }
.featured-favorite svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linejoin: round; }
.featured-favorite:hover { background: #0a4e92; }
/* Grade vertical fixa para que informacoes opcionais (video/bairro) nao desloquem os campos vizinhos.
   A linha reservada ao video fica vazia quando nao ha video cadastrado. */
.featured-content {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 24px 20px 20px 22px 52px 40px 32px;
    align-content: start;
    padding: 10px 9px 9px;
    min-width: 0;
}
.featured-content > .featured-identity { grid-row: 1; min-height: 0; align-self: center; }
.featured-content > .featured-video-inline { grid-row: 2; align-self: center; }
.featured-content > .featured-neighborhood { grid-row: 3; align-self: center; }
.featured-content > .featured-location { grid-row: 4; align-self: center; }
.featured-content > .featured-price,
.featured-content > .featured-prices-mixed { grid-row: 5; align-self: center; margin: 0; min-width: 0; }
.featured-content > .featured-facts { grid-row: 6; align-self: center; margin: 0; min-height: 0; max-height: 40px; overflow: hidden; }
.featured-content > .featured-details { grid-row: 7; align-self: stretch; margin-top: 0; min-height: 0; }

.featured-content h3 { margin: 0 0 3px; color: #091e39; font-size: clamp(.78rem, 1.2vw, .95rem); line-height: 1.28; font-weight: 760; min-height: 2.5em; }
.featured-content h3 a { text-decoration: none; }
.featured-content h3 a:hover { text-decoration: underline; }
.featured-identity { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; min-width: 0; margin-bottom: 3px; }
.featured-identity h3 { margin: 0; min-height: 0; flex: 0 0 auto; }
.featured-property-type { min-width: 0; max-width: 61%; color: #435972; font-size: clamp(.66rem, .94vw, .77rem); font-weight: 700; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.featured-video-inline { display: inline-flex; align-items: center; gap: 5px; margin: 0 0 4px; color: #0b579e; font-size: .67rem; font-weight: 800; line-height: 1.3; }
.featured-video-inline svg { flex: 0 0 14px; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.featured-neighborhood { margin: 0; min-height: 1.45em; color: #314e6b; font-size: .72rem; font-weight: 700; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.featured-neighborhood-empty { visibility: hidden; }
/* Mesmos simbolos de localizacao e valor usados nos cards dos resultados. */
.featured-location { display: flex; align-items: center; gap: 4px; min-width: 0; margin: 0; color: #51667a; line-height: 1.35; font-size: .71rem; min-height: 1.5em; }
.featured-location span { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.featured-location svg, .featured-price svg, .featured-price-row svg { flex: 0 0 13px; width: 13px; height: 13px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.featured-price { display: flex; align-items: center; gap: 5px; min-width: 0; margin: 5px 0; font-size: clamp(.89rem, 1.37vw, 1.05rem); color: #07407e; line-height: 1.3; white-space: nowrap; font-weight: 850; }
.featured-price > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.featured-price small { font-size: .72em; font-weight: 600; }
/* Duas modalidades sem estourar os cinco cards por faixa nem expor valores privados. */
.featured-prices-mixed { display: grid; gap: 3px; margin: 5px 0; min-width: 0; }
.featured-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 5px; min-width: 0; line-height: 1.35; }
.featured-price-row > span { font-size: .69rem; color: #526980; font-weight: 700; flex: 0 0 auto; }
.featured-price-row strong { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; font-size: clamp(.78rem, 1.11vw, .91rem); font-weight: 850; color: #07407e; text-align: right; overflow-wrap: anywhere; }
.featured-price-row small { font-size: .75em; font-weight: 600; white-space: nowrap; }

.featured-facts { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; font-size: .72rem; font-weight: 650; color: #415670; min-height: 27px; margin: 0 0 8px; }
.featured-facts span { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.featured-facts svg { width: 13px; height: 13px; stroke: #395b83; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.featured-details { margin-top: auto; min-height: 31px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid #d7e2ee; border-radius: 5px; color: #0b2f58; font-size: .76rem; font-weight: 800; text-decoration: none; }
.featured-details:hover { background: #eef6fd; border-color: #a3c5e2; }
.featured-empty { padding: 30px; border: 1px dashed #b9cde0; border-radius: 12px; color: #53677a; background: #f8fbff; }
.featured-empty a { color: #07519b; font-weight: 700; }
@media (max-width: 1100px) {
    .featured-grid { gap: 9px; }
    .featured-content { padding: 8px; }
    .featured-advertiser { gap: 6px; margin: 0 8px 8px; }
    .featured-advertiser-logo { flex-basis: 60px; width: 60px; height: 40px; }
    .featured-facts { gap: 5px; }
    .featured-facts svg { width: 12px; }
}
@media (max-width: 840px) {
    .featured-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(225px,38vw); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; scroll-padding-inline: 2px; padding-bottom: 12px; }
    .featured-card { scroll-snap-align: start; }
    .featured-content h3 { font-size: .87rem; }
    .featured-photo { aspect-ratio: 1.5; }
    .featured-promo-ribbon { max-width: min(74%, calc(100% - 61px)); }
}
@media (max-width: 520px) {
    .section-properties.featured-mode .heading-row { align-items: flex-start; flex-wrap: wrap; }
    .featured-grid { grid-auto-columns: minmax(245px, 83vw); }
}
@media (prefers-reduced-motion: reduce) {
    .featured-grid { scroll-behavior: auto; }
}
