﻿/* =========================
   Header (título + filtro + ver todas)
========================= */

#secao-unidades .u-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

#secao-unidades .u-title {
    margin: 0;
    font-weight: 800;
    letter-spacing: -.02em;
}

#secao-unidades .u-subtitle {
    margin: .25rem 0 0;
    color: #6b7280;
}

#secao-unidades .u-header__right {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 420px;
    justify-content: flex-end;
}

/* ✅ select do filtro */
#secao-unidades .u-select {
    min-width: 320px;
    height: 42px;
    border-radius: 8px;
}


/* (opcional) se quiser o "Ver todas" um pouco mais “cheio” */
#secao-unidades .u-header__right .btn-sesc {
    padding: 8px 18px;
}

/* =========================
   Slider wrapper
========================= */

.unidades-slider-wrap {
    position: relative;
    padding: 10px 56px 0; /* espaço pras setas fora */
}

.unidades-slider .slide {
    padding: 10px;
}

/* =========================
   Card (padrão do print)
========================= */

.u-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(2,6,23,.08);
    box-shadow: 0 14px 34px rgba(2,6,23,.08);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.u-card__media {
    display: block;
    height: 190px;
    background: #f3f5f8;
}

    .u-card__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.u-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.u-card__title {
    font-weight: 800;
    font-size: 18px;
    line-height: 1.15;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.3em;
}

.u-card__row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-size: 14px;
}

    .u-card__row i {
        font-size: 16px;
        color: var(--azul-sesc);
    }


.u-card__btn {
    margin-top: auto;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}




@media (hover:hover) and (pointer:fine) {
    .u-card__btn.btn-sesc:hover {
        transform: translateY(-1px);
    }
}



.unidades-slider-wrap .tns-controls {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 5;
}

    .unidades-slider-wrap .tns-controls button {
        pointer-events: all;
        width: 44px;
        height: 44px;
        border-radius:11px;
        border: 0;
        background: var(--azul-sesc);
        color: #fff;
        box-shadow: 0 12px 26px rgba(2,6,23,.18);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
    }

        .unidades-slider-wrap .tns-controls button:disabled {
            opacity: .35;
        }



.unidades-slider-wrap .tns-nav {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 0 0 10px;
}

    .unidades-slider-wrap .tns-nav button {
        width: 8px;
        height: 8px;
        border-radius: 999px;
        border: 0;
        background: rgba(2,6,23,.20);
    }

        .unidades-slider-wrap .tns-nav button.tns-nav-active {
            width: 26px;
            background: var(--azul-sesc);
        }


@media (max-width: 767px) {

    #secao-unidades .u-header__right {
        min-width: 0;
        width: 100%;
        justify-content: stretch;
        flex-wrap: wrap;
    }

    #secao-unidades .u-select {
        min-width: 0;
        flex: 1;
    }

    
    #secao-unidades .u-header__right .btn-sesc {
        width: 100%;
        justify-content: center;
    }

    .unidades-slider-wrap {
        padding: 10px 46px 0;
    }

    .u-card__media {
        height: 170px;
    }
}



#secao-unidades .unidades-slider-wrap {
    position: relative;
    overflow: hidden;
}

