/* Carrossel de banners da home (FaixasDestaque), no padrão do theme_slider do rth-site. */
.rth-home-banners {
    position: relative;
    aspect-ratio: 1080 / 1350;
    overflow: hidden;
    background: var(--rth-home-deep);
}

.rth-home-banner {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease, visibility .6s;
}

.rth-home-banner.is-active {
    opacity: 1;
    visibility: visible;
}

.rth-home-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rth-home-banner-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.rth-home-banner-info {
    max-width: 520px;
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 40px;
    z-index: 2;
    padding: 14px 18px;
    border-radius:0;
    background: #fff;
    color: var(--rth-home-ink);
    font-weight: 500;
    box-shadow: 0 2px 11px rgba(255,81,70, .1);
    pointer-events: none;
}

.rth-home-banner-info small {
    display: block;
    margin-top: 2px;
    color: var(--rth-home-muted);
}

.rth-home-banner-info__desc {
    max-width: 460px;
    margin: 8px 0 0;
    color: var(--rth-home-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rth-home-banner-info__price {
    margin-top: 12px;
    color: var(--rth-home-accent);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.rth-home-banner-info__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    color: var(--rth-home-ink);
    font-size: 13px;
    font-weight: 500;
}

.rth-home-banner-info__facts li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rth-home-banner-info__facts i {
    color: var(--rth-home-accent);
    font-size: 13px;
}

.rth-home-banner-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    border: 0;
    background: transparent;
    color: #fff;
    line-height: 1;
    cursor: pointer;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}

.rth-home-banner-control i {
    font-size: 32px;
}

.rth-home-banner-control:hover,
.rth-home-banner-control:focus-visible {
    color: var(--rth-home-accent);
}

.rth-home-banner-control--prev {
    left: 4px;
}

.rth-home-banner-control--next {
    right: 4px;
}

.rth-home-banner-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.rth-home-banner-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .6);
    cursor: pointer;
}

.rth-home-banner-dot.is-active {
    background: var(--rth-home-accent);
}

/* Banner sem imagem desktop só aparece no celular; sem nenhum banner desktop, o desktop usa o hero padrão. */
@media (min-width: 769px) {
    .rth-home-banners .banner-somente-celular,
    .rth-home-banners--somente-celular {
        display: none;
    }
}

@media (min-width: 769px) {
    .rth-home-banners { aspect-ratio: 1920 / 800; }
    .rth-home-banner-info { left: 24px; right: auto; bottom: 64px; }
    .rth-home-banner-dots { bottom: 52px; }
    .rth-home-banner-control i { font-size: 40px; }
    .rth-home-banner-control--prev { left: 16px; }
    .rth-home-banner-control--next { right: 16px; }
}

/* Celular: o card do imóvel não deve cobrir metade do banner */
@media (max-width: 767px) {
    .rth-home-banner-info__desc { -webkit-line-clamp: 2; line-clamp: 2; }
    .rth-home-banner-info__facts li:nth-child(n+5) { display: none; }
}
