﻿/* *********************************** Página */

.bv-header-establishment-page {
    min-height: 100vh;
    background: #f4f6f9;
}

.bv-header-establishment {
    --est-primary: #ff2e93;
    --est-primary-dark: #d91f78;
    --est-primary-soft: rgba(255, 46, 147, .11);
    --est-primary-softer: rgba(255, 46, 147, .065);
    --est-surface: #fff;
    --est-surface-soft: #f8f9fb;
    --est-border: #e5e8ee;
    --est-text: #202124;
    --est-muted: #737b88;
    --est-green: #168a4d;
    --est-red: #c72d2d;
    --est-warning: #9a6400;
    --est-shadow: 0 8px 24px rgba(22, 30, 48, .07);
    min-height: 100vh;
    padding-bottom: 110px;
}

    .bv-header-establishment,
    .bv-header-establishment * {
        box-sizing: border-box;
    }

.bv-header-establishment__shell {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 12px;
}

/* *********************************** Hero */

.bv-header-establishment-hero {
    overflow: hidden;
}

.bv-header-establishment-cover {
    position: relative;
    height: 155px;
    overflow: hidden;
    background: linear-gradient( 135deg, rgba(255, 46, 147, .24), rgba(36, 25, 76, .22) ), #dfe3ea;
}

    .bv-header-establishment-cover > img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

.bv-header-establishment-cover__shade {
    position: absolute;
    inset: 0;
    background: radial-gradient( circle at 20% 18%, rgba(255, 255, 255, .22), transparent 30% ), linear-gradient( to bottom, transparent 38%, rgba(10, 15, 28, .34) );
}

.bv-header-establishment-cover__edit {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(17, 24, 39, .38);
    color: #fff;
    font-size: .76rem;
    font-weight: 850;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.bv-header-establishment-main {
    position: relative;
    padding: 0 14px 16px;
}

.bv-header-establishment-avatar-row {
    min-height: 60px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.bv-header-establishment-avatar-button {
    position: relative;
    z-index: 3;
    width: 112px;
    height: 112px;
    flex: 0 0 auto;
    margin-top: -56px;
    padding: 0;
    border: 0;
    border-radius: 34px;
    background: transparent;
}

.bv-header-establishment-avatar {
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 5px solid #fff;
    border-radius: 34px;
    background: var(--est-surface-soft);
    color: var(--est-primary-dark);
    box-shadow: 0 16px 38px rgba(22, 30, 48, .18);
    font-size: 1.8rem;
}

    .bv-header-establishment-avatar img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

.bv-header-establishment-premium {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 50%;
    background: linear-gradient( 135deg, var(--est-primary), #a5248e );
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 46, 147, .28);
    font-size: .76rem;
}

.bv-header-establishment-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bv-header-establishment-copy {
    margin-top: 10px;
}

.bv-header-establishment-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

    .bv-header-establishment-name-row h1 {
        margin: 0;
        color: var(--est-text);
        font-size: 1.28rem;
        line-height: 1.14;
        letter-spacing: -.03em;
        font-weight: 950;
    }

.bv-header-establishment-category {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--est-primary-soft);
    color: var(--est-primary-dark);
    font-size: .68rem;
    font-weight: 900;
}

    .bv-header-establishment-category.is-cashback {
        background: #edf9f2;
        color: var(--est-green);
    }

.bv-header-establishment-meta {
    margin-top: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: var(--est-muted);
    font-size: .78rem;
    font-weight: 760;
}

    .bv-header-establishment-meta a,
    .bv-header-establishment-meta > span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .bv-header-establishment-meta a {
        color: inherit;
        text-decoration: none;
    }

.bv-header-establishment-opening.is-open {
    color: var(--est-green);
    font-weight: 900;
}

.bv-header-establishment-opening.is-closed {
    color: var(--est-red);
    font-weight: 900;
}

.bv-header-establishment-opening.is-unknown {
    color: var(--est-muted);
}

.bv-header-establishment-description {
    max-width: 790px;
    margin: 10px 0 0;
    color: #454b56;
    font-size: .9rem;
    line-height: 1.55;
}

    .bv-header-establishment-description.is-clamped {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

.bv-header-establishment-description-toggle {
    margin-top: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--est-primary-dark);
    font-size: .77rem;
    font-weight: 900;
}

/* *********************************** Quantificadores */

.bv-header-establishment-stats {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(125px, 1fr);
    overflow-x: auto;
    border-top: 1px solid var(--est-border);
    border-bottom: 1px solid var(--est-border);
    scrollbar-width: none;
}

    .bv-header-establishment-stats::-webkit-scrollbar {
        display: none;
    }

.bv-header-establishment-stat {
    min-height: 68px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    padding: 9px 12px;
    border: 0;
    border-right: 1px solid var(--est-border);
    background: transparent;
}

    .bv-header-establishment-stat:last-child {
        border-right: 0;
    }

    .bv-header-establishment-stat strong {
        color: var(--est-text);
        font-size: .97rem;
        line-height: 1;
        font-weight: 950;
    }

    .bv-header-establishment-stat span {
        color: var(--est-muted);
        font-size: .7rem;
        font-weight: 800;
        white-space: nowrap;
    }

    .bv-header-establishment-stat.is-clickable:hover {
        background: var(--est-primary-softer);
    }

/* *********************************** Abas */

.bv-header-establishment-tabs-shell {
    position: sticky;
    z-index: 40;
    top: 62px;
    margin-top: 12px;
    padding: 7px;
    border: 1px solid rgba(229, 232, 238, .92);
    border-radius: 22px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 10px 30px rgba(22, 30, 48, .08);
    backdrop-filter: blur(14px);
}

.bv-header-establishment-tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(110px, 1fr);
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

    .bv-header-establishment-tabs::-webkit-scrollbar {
        display: none;
    }

.bv-header-establishment-tab {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 10px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: var(--est-muted);
    font-size: .73rem;
    font-weight: 900;
    white-space: nowrap;
}

    .bv-header-establishment-tab.is-active {
        background: var(--est-primary);
        color: #fff;
        box-shadow: 0 8px 20px rgba(255, 46, 147, .2);
    }

/* *********************************** Conteúdo */

.bv-header-establishment-content {
    margin-top: 12px;
    padding: 12px;
}

.bv-header-establishment-content__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

    .bv-header-establishment-content__header h2,
    .bv-header-establishment-content__header p {
        margin: 0;
    }

    .bv-header-establishment-content__header h2 {
        color: var(--est-text);
        font-size: .96rem;
        font-weight: 950;
    }

    .bv-header-establishment-content__header p {
        margin-top: 3px;
        color: var(--est-muted);
        font-size: .72rem;
    }

.bv-header-establishment-content__viewport {
    min-height: 330px;
}

.bv-header-establishment-placeholder {
    min-height: 330px;
    display: grid;
    justify-items: center;
    align-content: center;
    padding: 30px;
    text-align: center;
}

.bv-header-establishment-placeholder__icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 26px;
    background: var(--est-primary-soft);
    color: var(--est-primary-dark);
    font-size: 1.55rem;
}

.bv-header-establishment-placeholder h3 {
    margin: 14px 0 0;
    font-size: 1.03rem;
}

.bv-header-establishment-placeholder p {
    max-width: 480px;
    margin: 7px 0 0;
    color: var(--est-muted);
    font-size: .84rem;
    line-height: 1.5;
}

.bv-header-establishment-placeholder small {
    max-width: 470px;
    margin-top: 8px;
    color: #9399a5;
    font-size: .7rem;
}

/* *********************************** Pessoas */

.bv-header-establishment-search {
    min-height: 44px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
    padding: 0 12px;
    border: 1px solid var(--est-border);
    border-radius: 16px;
    background: #fff;
    color: var(--est-muted);
}

    .bv-header-establishment-search input {
        width: 100%;
        border: 0;
        outline: 0;
        background: transparent;
        color: var(--est-text);
        font-size: .82rem;
    }

.bv-header-establishment-people {
    display: grid;
    gap: 8px;
}

.bv-header-establishment-person {
    min-height: 64px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--est-border);
    border-radius: 18px;
    background: #fff;
}

    .bv-header-establishment-person img,
    .bv-header-establishment-person__avatar {
        width: 45px;
        height: 45px;
        display: grid;
        place-items: center;
        border-radius: 16px;
        background: var(--est-surface-soft);
        color: var(--est-primary-dark);
        object-fit: cover;
    }

    .bv-header-establishment-person strong,
    .bv-header-establishment-person small {
        display: block;
    }

    .bv-header-establishment-person strong {
        font-size: .82rem;
    }

    .bv-header-establishment-person small {
        margin-top: 2px;
        color: var(--est-muted);
        font-size: .7rem;
    }

.bv-header-establishment-overlay-footer {
    display: grid;
    place-items: center;
    padding-top: 12px;
}

/* *********************************** Salvar */

.bv-header-establishment-save-options {
    display: grid;
    gap: 8px;
}

    .bv-header-establishment-save-options > button {
        width: 100%;
        min-height: 62px;
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        padding: 9px 11px;
        border: 1px solid var(--est-border);
        border-radius: 18px;
        background: var(--est-surface-soft);
        color: var(--est-text);
        text-align: left;
    }

        .bv-header-establishment-save-options > button > i {
            width: 40px;
            height: 40px;
            display: grid;
            place-items: center;
            border-radius: 14px;
            background: #fff;
            color: var(--est-primary-dark);
        }

    .bv-header-establishment-save-options strong,
    .bv-header-establishment-save-options small {
        display: block;
    }

    .bv-header-establishment-save-options strong {
        font-size: .82rem;
    }

    .bv-header-establishment-save-options small {
        margin-top: 2px;
        color: var(--est-muted);
        font-size: .7rem;
    }

/* *********************************** Avatar */

.bv-header-establishment-avatar-overlay {
    z-index: 2147483000;
}

.bv-header-establishment-avatar-modal {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    height: min(86dvh, 900px);
    display: grid;
    place-items: center;
}

    .bv-header-establishment-avatar-modal img {
        max-width: 100%;
        max-height: 100%;
        border-radius: 22px;
        object-fit: contain;
    }

    .bv-header-establishment-avatar-modal > button {
        position: fixed;
        z-index: 2;
        top: max(12px, env(safe-area-inset-top));
        right: max(12px, env(safe-area-inset-right));
        width: 40px;
        height: 40px;
        display: grid;
        place-items: center;
        border: 1px solid rgba(255, 255, 255, .2);
        border-radius: 50%;
        background: rgba(17, 24, 39, .55);
        color: #fff;
    }

/* *********************************** Flutuantes */

.bv-header-establishment-floating {
    position: fixed;
    z-index: 45;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px));
    display: grid;
    justify-items: end;
    gap: 8px;
}

.bv-header-establishment-floating__button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--est-primary);
    color: #fff;
    font-size: .8rem;
    font-weight: 950;
    text-decoration: none;
    box-shadow: 0 16px 36px rgba(255, 46, 147, .35);
}

    .bv-header-establishment-floating__button.is-secondary {
        background: #fff;
        color: var(--est-primary-dark);
        box-shadow: var(--est-shadow);
    }

/* *********************************** Responsivo */

@media (min-width: 760px) {
    .bv-header-establishment__shell {
        padding: 18px;
    }

    .bv-header-establishment-cover {
        height: 225px;
    }

    .bv-header-establishment-main {
        padding: 0 24px 22px;
    }

    .bv-header-establishment-avatar-button,
    .bv-header-establishment-avatar {
        width: 142px;
        height: 142px;
        border-radius: 42px;
    }

    .bv-header-establishment-avatar-button {
        margin-top: -71px;
    }

    .bv-header-establishment-name-row h1 {
        font-size: 1.66rem;
    }

    .bv-header-establishment-stats {
        grid-auto-flow: unset;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow: visible;
    }

    .bv-header-establishment-floating {
        right: calc( (100vw - min(1180px, 100vw)) / 2 + 28px );
        bottom: 24px;
    }
}

@media (max-width: 759px) {
    .bv-header-establishment__shell {
        padding: 8px;
    }

    .bv-header-establishment-actions .bv-header-button span {
        display: none;
    }

    .bv-header-establishment-actions .bv-header-button {
        width: 42px;
        min-width: 42px;
        padding: 0;
    }

    .bv-header-establishment-actions
    .bv-header-button--primary span {
        display: inline;
    }

    .bv-header-establishment-actions
    .bv-header-button--primary {
        width: auto;
        padding: 0 14px;
    }

    .bv-header-establishment-tabs-shell {
        top: 60px;
    }

    .bv-header-establishment-content {
        padding: 8px;
    }
}

@media (max-width: 430px) {
    .bv-header-establishment-avatar-button,
    .bv-header-establishment-avatar {
        width: 100px;
        height: 100px;
        border-radius: 31px;
    }

    .bv-header-establishment-avatar-button {
        margin-top: -50px;
    }

    .bv-header-establishment-name-row h1 {
        font-size: 1.17rem;
    }

    .bv-header-establishment-meta {
        font-size: .73rem;
    }

    .bv-header-establishment-tab {
        gap: 5px;
        padding-inline: 7px;
        font-size: .69rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bv-header-establishment *,
    .bv-header-establishment *::before,
    .bv-header-establishment *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}



/* *********************************** Ação pública de avaliação */

.bv-header-establishment-floating__button,
.bv-header-establishment-floating__button:link,
.bv-header-establishment-floating__button:visited,
.bv-header-establishment-floating__button:hover,
.bv-header-establishment-floating__button:focus {
    color: #fff !important;
    text-decoration: none;
}

    .bv-header-establishment-floating__button i,
    .bv-header-establishment-floating__button span {
        color: inherit;
    }




/* *********************************** Estabelecimento contratando */

.bv-header-establishment-hiring-badge {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 9px;
    border: 1px solid rgba(22, 138, 77, .18);
    border-radius: 999px;
    background: rgba(22, 138, 77, .09);
    color: #168a4d;
    font-size: .67rem;
    font-weight: 900;
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

    .bv-header-establishment-hiring-badge:hover {
        border-color: rgba(22, 138, 77, .3);
        background: rgba(22, 138, 77, .14);
        color: #126f3f;
        transform: translateY(-1px);
    }

    .bv-header-establishment-hiring-badge i {
        font-size: .66rem;
    }

@media (max-width: 430px) {
    .bv-header-establishment-hiring-badge span {
        display: none;
    }

    .bv-header-establishment-hiring-badge {
        width: 28px;
        padding: 0;
        justify-content: center;
    }
}




