/* Hero das listagens (v2/components/layouts/hero.blade.php). Fora do blade
   porque dentro do root Vue das páginas <style> é engolido. */

/* Breadcrumb sempre em 1 linha: o último item (página atual) corta com reticências. */
.hero .hero-breadcrumb {
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
    min-width: 0;
}

.hero .hero-breadcrumb > * {
    flex-shrink: 0;
}

/* Separador mais colado nos itens (era mx8). */
.hero .hero-breadcrumb .separator {
    margin-left: 2px !important;
    margin-right: 2px !important;
}

.hero .hero-breadcrumb > [aria-current] {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile: busca recolhida na lupa ao lado do título (+ botão Filtros). */
.hero-filter-toggle {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: 12px;
    border: 1px solid #e6e6e8;
    border-radius: 50%;
    background: #fff;
    color: #52525c;
    font-size: 22px;
    cursor: pointer;
}

.hero-filter-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #b3261e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.hero-filter-badge[hidden] {
    display: none;
}

.hero-search-toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: 12px;
    border: 0;
    border-radius: 50%;
    background: #b3261e;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

@media (max-width: 767.98px) {
    .hero.hero--search-collapsible .hero-search-mobile {
        display: none;
    }

    .hero.hero--search-collapsible.hero--search-open .hero-search-mobile {
        display: block;
    }

    .hero.hero--search-open .hero-search-toggle {
        background: #f3e3e1;
        color: #b3261e;
    }
}

/* Título em 1 linha: a fonte encolhe (hero.js) e, no limite, corta com reticências. */
.hero .hero-title-box {
    flex: 1 1 auto;
    min-width: 0;
}

.hero .hero-title-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
