/*
 * visual10: card de imóvel (.ltn__product-item-4 do Quarter), listagem com barra lateral e paginação.
 * O card tem um único CSS; Home, /imoveis, Favoritos e o detalhe só incluem o partial.
 */
.qtr-card { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--qtr-white); border: 1px solid var(--qtr-line); box-shadow: var(--qtr-shadow); transition: box-shadow .3s, transform .3s; }
.qtr-card:hover { box-shadow: var(--qtr-shadow-lg); transform: translateY(-4px); }
.qtr-card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--qtr-soft); }
.qtr-card__media > a { display: block; height: 100%; }
.qtr-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.qtr-card:hover .qtr-card__media img { transform: scale(1.06); }
.qtr-card__badges { position: absolute; top: 14px; left: 14px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.qtr-badge { display: inline-block; padding: 3px 15px 0; font-family: var(--qtr-font-body); font-size: 13px; font-weight: 700; line-height: 25px; text-transform: uppercase; color: var(--qtr-white); background: var(--qtr-accent-fill); }
.qtr-badge--rent { background: var(--qtr-topbar); }
/* Localização sobre a foto (.product-img-location-gallery): gradiente escuro, não captura cliques */
.qtr-card__place { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 44px 16px 12px; font-size: 14px; color: var(--qtr-white); background: linear-gradient(to bottom, rgba(7, 28, 31, 0), rgba(7, 28, 31, .88)); pointer-events: none; }
.qtr-card__place > span:first-child { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qtr-card__place i { margin-right: 4px; color: var(--qtr-accent); }
.qtr-card__info { flex: 1; padding: 22px 24px 8px; }
.qtr-card__prices { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-bottom: 6px; }
.qtr-card__price { font-family: var(--qtr-font-head); font-size: 22px; font-weight: 600; color: var(--qtr-accent-text); }
.qtr-card__price label { margin-left: 2px; font-family: var(--qtr-font-body); font-size: 14px; font-weight: 600; color: var(--qtr-text); }
.qtr-card__title { margin: 0 0 8px; font-size: 19px; line-height: 1.35; }
.qtr-card__title a { color: var(--qtr-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qtr-card__title a:hover { color: var(--qtr-accent-text); }
.qtr-card__desc { margin-bottom: 14px; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qtr-card__facts { display: flex; flex-wrap: wrap; margin: 0 -8px 14px; padding: 12px 0 0; border-top: 1px dashed var(--qtr-line); }
.qtr-card__facts li { flex: 1 0 auto; padding: 0 8px; font-size: 13px; line-height: 1.5; text-align: center; }
.qtr-card__facts li span { display: block; font-family: var(--qtr-font-head); font-size: 15px; font-weight: 600; color: var(--qtr-ink); }
.qtr-card__facts li i { margin-left: 4px; color: var(--qtr-accent); }
.qtr-card__bottom { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; border-top: 1px solid var(--qtr-line); }
.qtr-card__ref { font-size: 14px; font-weight: 700; color: var(--qtr-text); }
.qtr-card__actions { display: flex; gap: 8px; }
.qtr-card__actions a, .qtr-fav { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; font-size: 15px; color: var(--qtr-ink); background: var(--qtr-white); border: 1px solid var(--qtr-line); border-radius: 50%; cursor: pointer; transition: all .25s; }
.qtr-card__actions a:hover, .qtr-fav:hover { color: var(--qtr-white); background: var(--qtr-accent-fill); border-color: var(--qtr-accent-fill); }
.qtr-fav.active { color: var(--qtr-white); background: var(--qtr-accent-fill); border-color: var(--qtr-accent-fill); }

/* ---------- listagem ---------- */
.qtr-listing { padding-bottom: 80px; }
.qtr-sidebar { position: sticky; top: calc(var(--qtr-header-h) + 60px); }
.qtr-widget { margin-bottom: 30px; padding: 30px 28px; background: var(--qtr-white); border: 1px solid var(--qtr-line); box-shadow: var(--qtr-shadow); }
.qtr-widget__title { position: relative; margin: 0 0 24px; padding-bottom: 14px; font-family: var(--qtr-font-head); font-size: 22px; font-weight: 600; line-height: 1.3; color: var(--qtr-ink); }
.qtr-widget__title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 46px; height: 3px; background: var(--qtr-accent); }
.qtr-widget__text { margin-bottom: 18px; }
.qtr-widget__field { margin-bottom: 16px; }
.qtr-widget__submit { margin-top: 20px; }
.qtr-shop-options { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--qtr-line); }
.qtr-results-count { margin: 0; color: var(--qtr-text); }
.qtr-results-count strong { color: var(--qtr-ink); }
.qtr-sort-form { margin: 0; }
.qtr-pagination { margin-top: 44px; }
.qtr-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.qtr-pagination a { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; padding: 0 12px; font-family: var(--qtr-font-head); font-weight: 500; color: var(--qtr-ink); border: 1px solid var(--qtr-line); }
.qtr-pagination a:hover, .qtr-pagination .active a { color: var(--qtr-white); background: var(--qtr-accent-fill); border-color: var(--qtr-accent-fill); }
/* Filtro recolhível: no celular começa fechado (script em Imoveis/Index); no desktop o título não é clicável */
.qtr-filter > summary { list-style: none; cursor: default; pointer-events: none; }
.qtr-filter > summary::-webkit-details-marker { display: none; }
.qtr-filter__chev { display: none; }
@media (max-width: 991.98px) {
    .qtr-sidebar { position: static; }
    .qtr-filter > summary { cursor: pointer; pointer-events: auto; display: flex; align-items: center; justify-content: space-between; }
    .qtr-filter__chev { display: inline-block; font-size: 14px; transition: transform .25s; }
    .qtr-filter[open] > summary .qtr-filter__chev { transform: rotate(180deg); }
    .qtr-filter:not([open]) > summary { margin-bottom: 0; }
}
