﻿/* *********************************** Fragmento */

.bv-header-establishment-fotos-fragment {
    min-width: 0;
}

.bv-header-no-scroll {
    overflow: hidden;
}

/* *********************************** Barra de filtros */

.bv-header-establishment-fotos-filterbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 2px;
}

.bv-header-establishment-fotos-filterbar__copy {
    min-width: 0;
}

    .bv-header-establishment-fotos-filterbar__copy strong {
        display: block;
        color: var(--bv-header-text);
        font-size: .94rem;
        font-weight: 950;
    }

    .bv-header-establishment-fotos-filterbar__copy span {
        display: block;
        margin-top: 3px;
        color: var(--bv-header-muted);
        font-size: .72rem;
        font-weight: 720;
    }

.bv-header-establishment-fotos-filterbar__button {
    position: relative;
    min-height: 42px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid var(--bv-header-border);
    border-radius: 999px;
    background: var(--bv-header-surface);
    color: var(--bv-header-text);
    font-size: .76rem;
    font-weight: 900;
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

    .bv-header-establishment-fotos-filterbar__button:hover,
    .bv-header-establishment-fotos-filterbar__button:focus-visible,
    .bv-header-establishment-fotos-filterbar__button.is-active {
        border-color: rgba(255, 46, 147, .34);
        background: var(--bv-header-primary-soft);
        color: var(--bv-header-primary-dark);
    }

    .bv-header-establishment-fotos-filterbar__button:active {
        transform: scale(.97);
    }

    .bv-header-establishment-fotos-filterbar__button small {
        min-width: 20px;
        min-height: 20px;
        display: inline-grid;
        place-items: center;
        border-radius: 999px;
        background: var(--bv-header-primary);
        color: #fff;
        font-size: .61rem;
        font-weight: 950;
    }

/* *********************************** Chips */

.bv-header-establishment-fotos-filterchips {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: -3px 0 16px;
    overflow-x: auto;
    padding: 2px 1px 4px;
    scrollbar-width: none;
}

    .bv-header-establishment-fotos-filterchips::-webkit-scrollbar {
        display: none;
    }

    .bv-header-establishment-fotos-filterchips > span,
    .bv-header-establishment-fotos-filterchips > button {
        min-height: 32px;
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 0 10px;
        border: 1px solid rgba(255, 46, 147, .20);
        border-radius: 999px;
        background: var(--bv-header-primary-softer);
        color: var(--bv-header-primary-dark);
        font-size: .68rem;
        font-weight: 850;
    }

    .bv-header-establishment-fotos-filterchips > button {
        border-color: var(--bv-header-border);
        background: var(--bv-header-surface);
        color: var(--bv-header-muted);
    }

/* *********************************** Seções */

.bv-header-establishment-fotos__secao +
.bv-header-establishment-fotos__secao {
    margin-top: 22px;
}

.bv-header-establishment-fotos__cabecalho {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 11px;
}

.bv-header-establishment-fotos__icone {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--bv-header-primary-soft);
    color: var(--bv-header-primary-dark);
}

.bv-header-establishment-fotos__secao.is-destaques
.bv-header-establishment-fotos__icone {
    background: rgba(245, 158, 11, .14);
    color: #b45309;
}

.bv-header-establishment-fotos__secao.is-oficiais
.bv-header-establishment-fotos__icone {
    background: rgba(59, 130, 246, .12);
    color: #1d4ed8;
}

.bv-header-establishment-fotos__cabecalho h3 {
    margin: 0;
    color: var(--bv-header-text);
    font-size: .94rem;
    font-weight: 950;
}

.bv-header-establishment-fotos__cabecalho p {
    margin: 3px 0 0;
    color: var(--bv-header-muted);
    font-size: .71rem;
    line-height: 1.4;
    font-weight: 720;
}

/* *********************************** Grade */

.bv-header-establishment-fotos__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.bv-header-establishment-fotos__item {
    min-width: 0;
}

.bv-header-establishment-fotos__card {
    min-width: 0;
    display: block;
    color: inherit;
    text-decoration: none;
}

    .bv-header-establishment-fotos__card:link,
    .bv-header-establishment-fotos__card:visited,
    .bv-header-establishment-fotos__card:hover,
    .bv-header-establishment-fotos__card:focus {
        color: inherit;
        text-decoration: none;
    }

.bv-header-establishment-fotos__media {
    position: relative;
    aspect-ratio: 1 / 1;
    display: block;
    overflow: hidden;
    border: 1px solid var(--bv-header-border);
    border-radius: 17px;
    background: var(--bv-header-surface-2);
    box-shadow: 0 8px 22px rgba(22, 30, 48, .06);
}

    .bv-header-establishment-fotos__media img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform 260ms ease, filter 260ms ease;
    }

.bv-header-establishment-fotos__card:hover
.bv-header-establishment-fotos__media img {
    transform: scale(1.035);
    filter: saturate(1.04);
}

.bv-header-establishment-fotos__card:focus-visible {
    outline: none;
}

    .bv-header-establishment-fotos__card:focus-visible
    .bv-header-establishment-fotos__media {
        outline: 3px solid rgba(255, 46, 147, .28);
        outline-offset: 3px;
    }

/* *********************************** Imagem vazia */

.bv-header-establishment-fotos__placeholder {
    position: absolute;
    inset: 0;
    display: none;
    place-items: center;
    background: linear-gradient( 135deg, var(--bv-header-primary-softer), var(--bv-header-surface-2) );
    color: var(--bv-header-primary);
    font-size: 1.8rem;
}

.bv-header-establishment-fotos__media.is-empty
.bv-header-establishment-fotos__placeholder,
.bv-header-establishment-fotos__media.has-image-error
.bv-header-establishment-fotos__placeholder {
    display: grid;
}

.bv-header-establishment-fotos__media.has-image-error img {
    display: none;
}

/* *********************************** Destaque */

.bv-header-establishment-fotos__destaque {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 29px;
    height: 29px;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, .88);
    border-radius: 50%;
    background: #f59e0b;
    color: #fff;
    box-shadow: 0 7px 18px rgba(120, 53, 15, .26);
    font-size: .68rem;
}

/* *********************************** Origem */

.bv-header-establishment-fotos__origem {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    max-width: calc(100% - 53px);
    min-height: 27px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    background: rgba(17, 24, 39, .62);
    color: #fff;
    font-size: .59rem;
    font-weight: 900;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

    .bv-header-establishment-fotos__origem span {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .bv-header-establishment-fotos__origem.is-estabelecimento {
        background: rgba(190, 24, 93, .82);
    }

    .bv-header-establishment-fotos__origem.is-cidade {
        background: rgba(29, 78, 216, .80);
    }

/* *********************************** Múltiplas imagens */

.bv-header-establishment-fotos__multipla {
    position: absolute;
    right: 8px;
    bottom: 39px;
    z-index: 3;
    min-height: 27px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(17, 24, 39, .62);
    color: #fff;
    font-size: .62rem;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

/* *********************************** Engajamento */

.bv-header-establishment-fotos__sobreposicao {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    min-height: 45px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 20px 10px 9px;
    background: linear-gradient( to bottom, transparent, rgba(8, 12, 22, .76) );
    color: #fff;
}

    .bv-header-establishment-fotos__sobreposicao > span {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: .64rem;
        font-weight: 900;
    }

/* *********************************** Título */

.bv-header-establishment-fotos__titulo {
    display: -webkit-box;
    margin-top: 7px;
    overflow: hidden;
    color: var(--bv-header-text-soft);
    font-size: .72rem;
    line-height: 1.35;
    font-weight: 820;
    overflow-wrap: anywhere;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* *********************************** Modal de filtro */

.bv-header-establishment-fotos-filter {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    align-items: end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

    .bv-header-establishment-fotos-filter[hidden] {
        display: none !important;
    }

    .bv-header-establishment-fotos-filter.is-open {
        opacity: 1;
        pointer-events: auto;
    }

.bv-header-establishment-fotos-filter__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .66);
    backdrop-filter: blur(4px);
}

.bv-header-establishment-fotos-filter__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: min(88dvh, 820px);
    overflow-y: auto;
    padding: 18px;
    border-radius: 28px 28px 0 0;
    background: var(--bv-header-surface);
    box-shadow: 0 -18px 54px rgba(15, 23, 42, .24);
    transform: translateY(18px);
    transition: transform 180ms ease;
}

.bv-header-establishment-fotos-filter.is-open
.bv-header-establishment-fotos-filter__panel {
    transform: translateY(0);
}

.bv-header-establishment-fotos-filter__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}

    .bv-header-establishment-fotos-filter__header h3 {
        margin: 0;
        color: var(--bv-header-text);
        font-size: 1.08rem;
        font-weight: 950;
    }

    .bv-header-establishment-fotos-filter__header p {
        margin: 4px 0 0;
        color: var(--bv-header-muted);
        font-size: .74rem;
        line-height: 1.45;
        font-weight: 720;
    }

    .bv-header-establishment-fotos-filter__header button {
        width: 40px;
        height: 40px;
        flex: 0 0 auto;
        display: grid;
        place-items: center;
        padding: 0;
        border: 1px solid var(--bv-header-border);
        border-radius: 50%;
        background: var(--bv-header-surface-2);
        color: var(--bv-header-text);
    }

/* *********************************** Grupos do filtro */

.bv-header-establishment-fotos-filter__group {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

    .bv-header-establishment-fotos-filter__group +
    .bv-header-establishment-fotos-filter__group {
        margin-top: 21px;
        padding-top: 19px;
        border-top: 1px solid var(--bv-header-border);
    }

    .bv-header-establishment-fotos-filter__group legend {
        margin-bottom: 10px;
        color: var(--bv-header-text);
        font-size: .81rem;
        font-weight: 950;
    }

    .bv-header-establishment-fotos-filter__group label {
        display: block;
        cursor: pointer;
    }

        .bv-header-establishment-fotos-filter__group label +
        label {
            margin-top: 7px;
        }

    .bv-header-establishment-fotos-filter__group input {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
    }

    .bv-header-establishment-fotos-filter__group label > span {
        min-height: 52px;
        display: flex;
        align-items: center;
        gap: 11px;
        padding: 9px 11px;
        border: 1px solid var(--bv-header-border);
        border-radius: 16px;
        background: var(--bv-header-surface);
        transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
    }

    .bv-header-establishment-fotos-filter__group
    input:checked + span {
        border-color: rgba(255, 46, 147, .42);
        background: var(--bv-header-primary-softer);
        box-shadow: 0 0 0 3px rgba(255, 46, 147, .06);
    }

    .bv-header-establishment-fotos-filter__group
    label > span > i {
        width: 34px;
        height: 34px;
        flex: 0 0 auto;
        display: grid;
        place-items: center;
        border-radius: 12px;
        background: var(--bv-header-surface-2);
        color: var(--bv-header-primary-dark);
    }

    .bv-header-establishment-fotos-filter__group
    label > span > span {
        min-width: 0;
    }

    .bv-header-establishment-fotos-filter__group strong {
        display: block;
        color: var(--bv-header-text);
        font-size: .77rem;
        font-weight: 900;
    }

    .bv-header-establishment-fotos-filter__group small {
        display: block;
        margin-top: 2px;
        color: var(--bv-header-muted);
        font-size: .66rem;
        line-height: 1.35;
        font-weight: 680;
    }

/* *********************************** Rodapé do filtro */

.bv-header-establishment-fotos-filter__footer {
    position: sticky;
    bottom: -18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin: 24px -18px -18px;
    padding: 13px 18px calc(13px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--bv-header-border);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
}

/* *********************************** Responsividade */

@media (min-width: 650px) {
    .bv-header-establishment-fotos__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .bv-header-establishment-fotos__media {
        border-radius: 20px;
    }

    .bv-header-establishment-fotos-filter {
        place-items: center;
        padding: 24px;
    }

    .bv-header-establishment-fotos-filter__panel {
        width: min(620px, 100%);
        max-height: min(88dvh, 820px);
        border-radius: 28px;
    }
}

@media (min-width: 1020px) {
    .bv-header-establishment-fotos__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 430px) {
    .bv-header-establishment-fotos__grid {
        gap: 7px;
    }

    .bv-header-establishment-fotos__media {
        border-radius: 14px;
    }

    .bv-header-establishment-fotos__origem span {
        display: none;
    }

    .bv-header-establishment-fotos__origem {
        width: 28px;
        padding: 0;
        justify-content: center;
    }

    .bv-header-establishment-fotos-filterbar__copy span {
        max-width: 205px;
    }
}

/* *********************************** Movimento reduzido */

@media (prefers-reduced-motion: reduce) {
    .bv-header-establishment-fotos__media img,
    .bv-header-establishment-fotos-filter,
    .bv-header-establishment-fotos-filter__panel,
    .bv-header-establishment-fotos-filterbar__button {
        transition: none;
    }
}
