

/* Start:/local/components/prodvigaeff/offices/templates/.default/style.css?17712300754708*/
/* ===== Fixed layout 1200px ===== */
.bes-offices-layout{
    display: grid;
    grid-template-columns: 1fr 2fr; /* слева 1/3, справа 2/3 */
    gap: 15px;
    align-items: stretch;
}

/* фиксированная высота всего блока */
.bes-offices-layout--fixed{
    height: 1200px;
    max-height: 1200px;
}

/* left column */
.bes-offices-sidebar{
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

/* right column */
.bes-offices-map{
    height: 100%;
    min-height: 0;
}

/* map wrapper */
.bes-offices-panel{
    position: relative;
    height: 100%;
    min-height: 0;
}

#ymap{
    width: 100%;
    height: 100%;
    min-height: 100%;
    border-radius: 10px;
    overflow: hidden;
}

/* scroll only list */
.bes-offices-list-scroll{
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding-right: 8px;
}

/* ===== Filters ===== */
.bes-select-panel{
    width: 100%;
    padding: 15px;
    background: #FFFFFF;
    border: 2px solid rgba(0, 0, 0, 0.07);
    border-radius: 8px;
    margin-bottom: 15px;
}

.bes-filters{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.bes-filter{
    flex: 1 1 180px;
    min-width: 180px;
}

.bes-filter__label{
    font-size: 13px;
    color: #8f8f8f;
    margin-bottom: 6px;
}

.bes-filter__control{
    width: 100%;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
}

/* ===== Office card (simplified) ===== */
.bes-offices-list-item{
    background: #FAFAFA;
    border: 1px solid rgba(224, 224, 224, 0.48);
    margin-bottom: 12px;
    padding: 14px;
    font-size: 14px;
    color: #1a1a1a;
    border-radius: 10px;
}

.bes-office-card__title{
    display:block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #005086;
    text-decoration: none;
}

.bes-office-card__title:hover{
    text-decoration: underline;
}

.bes-office-card__row{
    display: flex;
    gap: 8px;
    margin: 6px 0;
    line-height: 1.35;
}

.bes-office-card__label{
    min-width: 54px;
    color: #8f8f8f;
}

.bes-office-card__value{
    flex: 1;
    color: #1a1a1a;
}

/* ===== Balloon (как было) ===== */
.bes-balloon{
    position:absolute;
    z-index: 2;
    left: 15px;
    top: 15px;
    background: #fff;
    width: 380px;
    border-top: 13px solid #219653;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 1px 12px rgba(0,0,0,.12);
}
.bes-balloon > div{
    padding-left: 40px;
    margin: 15px 0px;
}
.bes-balloon-email{
    background:url(/local/components/prodvigaeff/offices/templates/.default/images/email.png) no-repeat left top;
}
.bes-balloon-phone{
    background:url(/local/components/prodvigaeff/offices/templates/.default/images/phones.png) no-repeat left top;
}
.bes-balloon-address{
    background:url(/local/components/prodvigaeff/offices/templates/.default/images/home.png) no-repeat left top;
}
.bes-balloon-schedule{
    background:url(/local/components/prodvigaeff/offices/templates/.default/images/calendar.png) no-repeat left top;
}
.bes-balloon-name{
    font-size: 20px;
    min-height: 40px;
    background:url(/local/components/prodvigaeff/offices/templates/.default/images/big_marker.png) no-repeat left top;
}
.bes-ballon-close{
    padding:0!important;
    margin:0;
    width: 20px;
    height: 20px;
    background: url(/local/components/prodvigaeff/offices/templates/.default/images/close.png) no-repeat center;
    position:absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
}

/* ===== Mobile =====
   На мобилке фикс 1200px делать нельзя — будет неудобно.
   Поэтому: убираем fixed высоту, делаем карту фиксированной, список скроллимым.
*/
@media (max-width: 992px) {
    .bes-offices-layout{
        grid-template-columns: 1fr;
    }

    .bes-offices-layout--fixed{
        height: auto;
        max-height: none;
    }

    /* карта сверху */
    .bes-offices-map{
        order: 1;
        height: auto;
    }
    .bes-offices-sidebar{
        order: 2;
        height: auto;
    }

    #ymap{
        height: 360px;
        min-height: 360px;
    }

    /* список скроллим, но не бесконечно */
    .bes-offices-list-scroll{
        max-height: 70vh;
    }

    .bes-balloon{
        width: 280px;
    }
}

@media (max-width: 767px) {
    .bes-filter{
        min-width: 100%;
    }

    .bes-balloon{
        width: 260px;
        left: 10px;
        top: 10px;
        padding: 12px 18px;
    }

    .bes-balloon > div{
        margin: 8px 0px;
    }

    .bes-balloon-name{
        font-size: 16px;
    }
}

/* End */
/* /local/components/prodvigaeff/offices/templates/.default/style.css?17712300754708 */
