/* ===================== */
/* BRANCHES SECTION      */
/* ===================== */

.vacancy-branches__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vacancy-branches__layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
}

.map__block {
    position: relative;
    border-radius: 50px;
    overflow: hidden;
    min-height: 360px;
    order: 0;
}

.map__block::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    pointer-events: none;
}

.vacancy-branches__wrapper {
    position: relative;
}

.vacancy-branches__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 440px;
    overflow-y: auto;
    padding-bottom: 40px;
    scrollbar-width: none;
}

.vacancy-branches__wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, #FEF0EA00 0%, #FEF0EA 100%);
    pointer-events: none;
}

.vacancy-branches__item {
    padding: 20px 24px;
    border-bottom: 1px solid #F0E8E4;
    cursor: pointer;
    border-radius: 24px;
    background: #fff;
    transition: background-color 0.2s, color 0.2s;
}

.vacancy-branches__item:hover {
    color: #F4662A;
}

.vacancy-branches__item--active {
    background-color: var(--main-color);
    color: white;
}

.vacancy-branches__item--active .vacancy-branches__item-badge,
.vacancy-branches__item--active .vacancy-branches__item-address {
    color: #ffffff;
}

.vacancy-branches__item-badge,
.vacancy-branches__item-name {
    font-family: var(--bold-font);
    font-size: 16px;
    margin-bottom: 4px;
}

.vacancy-branches__item-address {
    font-size: 12px;
    color: #909EAA;
    margin: 0;
}

#mainPage .vacancy-dropdown-container,
#mainPage .vacancy-branches {
  display: none;
}

#mainPage .vacancy-branches__item {
  border: 1px solid #F0E8E4;
}

@media (max-width: 991px) {
    #mainPage .vacancy-branches {
        display: block;
    }

    .vacancy-branches__layout {
        grid-template-columns: 1fr;
    }

    .vacancy-branches__list {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 94vw;
        padding-bottom: 0;
    }

    .vacancy-branches__list::-webkit-scrollbar {
        display: none;
    }

    .vacancy-branches__item {
        flex: 0 0 220px;
        width: 220px;
        height: 148px;
        padding: 16px;
    }

    .vacancy-branches__wrapper::after {
        display: none;
    }
}
