/* Home: carrossel «Municípios em destaque» (após seção de empresas) */

.home-municipios-destaque {
    margin: 56px 0;
    width: 100%;
}

.home-municipios-destaque__head {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 0 2px;
}

.home-municipios-destaque__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    /* Cor por fase do céu: ver home-clouds-bg.css (como empresas em destaque) */
    transition:
        color var(--home-sky-tx, 5.8s) ease,
        text-shadow var(--home-sky-tx, 5.8s) ease;
}

.home-municipios-destaque__subtitle {
    font-size: 0.88rem;
    font-weight: 400;
    margin: 0;
    /* Base alinhada ao subtítulo do hero; dia / entardecer / noite em home-clouds-bg.css */
    color: color-mix(in srgb, var(--muted) 90%, #051008 10%);
    transition:
        color var(--home-sky-tx, 5.8s) ease,
        text-shadow var(--home-sky-tx, 5.8s) ease,
        -webkit-text-fill-color var(--home-sky-tx, 5.8s) ease;
}

.home-municipios-destaque__shell {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
}

.home-municipios-destaque__caret {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--ink);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.home-municipios-destaque__caret:hover {
    background: var(--surface-hover);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.home-municipios-destaque__caret:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .home-municipios-destaque__caret {
        display: none;
    }
}

.home-municipios-destaque__mask {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    border-radius: 16px;
    /* Painel leve: base ~20% do cartão + refinamentos por fase em home-clouds-bg.css */
    border: 1px solid color-mix(in srgb, var(--border) 45%, transparent);
    background: color-mix(in srgb, var(--card) 20%, transparent);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition:
        background var(--home-sky-tx, 5.8s) ease,
        border-color var(--home-sky-tx, 5.8s) ease,
        box-shadow var(--home-sky-tx, 5.8s) ease;
}

.home-municipios-destaque__viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    padding: 10px 12px 12px;
    outline: none;
}

.home-municipios-destaque__viewport::-webkit-scrollbar {
    display: none;
}

.home-municipios-destaque__track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: max-content;
    gap: 0;
    align-items: stretch;
}

.home-municipios-destaque__row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    padding-right: 10px;
    flex-shrink: 0;
    align-items: stretch;
}

.home-municipio-card {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 160px;
    min-height: 92px;
    padding: 14px 12px 12px;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
    background: var(--paper);
    text-decoration: none;
    color: var(--ink);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition:
        opacity 0.45s ease,
        box-shadow 0.22s ease,
        transform 0.2s ease,
        border-color 0.2s ease;
}

.home-municipios-destaque:not(.home-municipios-destaque--ready) .home-municipio-card {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
}

.home-municipios-destaque.home-municipios-destaque--ready .home-municipio-card {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.home-municipio-card:hover,
.home-municipio-card:focus-visible {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translate3d(0, -2px, 0);
    border-color: var(--primary);
}

.home-municipio-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.home-municipio-card__icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(118%) contrast(119%);
}

.home-municipio-card__name {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
    flex: 1 1 auto;
}

.home-municipio-card__vagas {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--muted);
    line-height: 1.2;
}

.home-municipio-card__vagas--highlight {
    color: var(--primary);
    font-weight: 600;
}

@media (min-width: 720px) {
    .home-municipio-card {
        width: 180px;
        min-height: 96px;
    }
}
