@font-face {
    font-family: 'Roboto';
    src: local('Roboto-Medium'),
        url("./assets/fonts/Roboto-Medium.woff") format("woff"), url("./assets/fonts/Roboto-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: local('Roboto-Regular'),
        url("./assets/fonts/Roboto-Regular.woff") format("woff"), url("./assets/fonts/Roboto-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.map-plugin{
    width: 100%;
}

.map-plugin__panel{
    display: flex;
    align-items: center;
    gap: 20px;
    
    margin: 0 0 20px 0;
}

.map-plugin__panel-wrapper{
    position: relative;
    flex: 1;
}

.map-plugin__panel-field{
    height: 45px;
    width: 100% !important;
    
    border: 2px solid #D9D9D9 !important;
    background: #fff !important;
    outline: none !important;
    margin: 0 !important;
    padding: 0 20px 0 42px !important;
    border-radius: 5px !important;
    
    font-family: 'Roboto' !important;
    font-style: normal !important;
    font-weight: 400 !important;
    font-size: 12px !important;
    line-height: 1 !important;
    color: #232323 !important;
}

.map-plugin__panel-decor{
    display: inline-block;
    padding: 5px 7px 5px 0;
    border-right: 2px solid #D9D9D9;
    
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 6px;
    
    z-index: 2;
    
    cursor: pointer;
}

.map-plugin__panel-icon{
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-plugin__panel-buttons{
    max-width: 370px;
    width: 100%;
    
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px;
}

.map-plugin__button{
    width: 100% !important;
    height: 40px !important;
    
    background: #F3181B !important;
    padding: 0 10px !important;
    margin: 0 !important;
    
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    
    outline: none !important;
    cursor: pointer !important;
    
    border: 2px solid #F3181B !important;
    border-radius: 5px !important;
}

.map-plugin__button:hover{
    background: #F3181B !important;
}

.map-plugin__button--reset.map-plugin__button:hover {
    background: #fff !important;
}

.map-plugin__button--reset{
    background: #fff !important;
}

.map-plugin__button-icon{
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-plugin__button-text{
    font-family: 'Roboto' !important;
    font-style: normal !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    line-height: 1 !important;
    color: #FFFFFF !important;
}

.map-plugin__button--reset .map-plugin__button-text{
    color: #232323 !important;
}

.map-plugin__categories{
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 16px 20px;

    padding: 20px;
    background: #F1F1F1;
    border-radius: 5px;
    
    margin: 0 0 20px 0;
}

.yl-category{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    
    max-width: 62px;
}

.yl-category__decor{
    width: 50px;
    height: 50px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    border-radius: 50%;
}

.yl-category__decor-image{
    width: 20px;
    height: 20px;
    
    display: flex;
    align-items: center;
    justify-content: center;
}

.yl-category__decor-image img{
    width: 100%;
    height: 100%;
}

.yl-category__text{
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-size: 11px;
    line-height: 1;
    color: #000000;
    text-align: center;
    
    margin: 0;
}

.map-plugin__map{
    width: 100%;
    height: 480px;
    
    border-radius: 5px; 
    overflow: hidden; 
}

.balloon-inner{
    display: flex !important;
    align-items: center !important;
    
    border: 1px solid #F3181B !important;
    padding: 2px !important;
    border-radius: 10px !important;
    
    position: relative !important;
}

.balloon-image{
    position: relative !important;
    flex-shrink: 0 !important;
}

.balloon-image__picture{
    width: 125px !important;
    height: 132px !important;
}

.balloon-image__picture img{
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 8px !important;
}

.balloon-image__resize{
    width: 27px !important;
    height: 27px !important;
    
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    padding: 6px !important;
    
    background: rgba(256, 256, 256, 0.8) !important;
    
    border: none !important;
    outline: none !important;
    cursor: pointer !important;
    border-radius: 5px !important;
    
    position: absolute !important;
    bottom: 4px !important;
    right: 4px !important;
    z-index: 1 !important;
}

.balloon-content{
    padding: 0 12px !important;
    flex: 1 !important;
}

.balloon-content.-js-expanded{
    padding: 24px 12px !important;
}

.balloon-title{
    font-family: 'Roboto' !important;
    font-style: normal !important;
    font-weight: 500 !important;
    font-size: 0.8rem !important;
    line-height: 13px !important;
    color: #232323 !important;
    
    margin: 0 0 6px 0 !important;
    max-width: 140px !important;
}

.balloon-content.-js-expanded .balloon-title{
    max-width: 250px !important;
}

.balloon-desc{
    font-family: 'Roboto' !important;
    font-style: normal !important;
    font-weight: 400 !important;
    font-size: 0.5rem !important;
    line-height: 1 !important;
    color: #232323 !important;
    
    margin: 0 0 5px 0 !important;
    padding-bottom: 6px !important;
    
    border-bottom: 1px solid #F1F1F1 !important;
}

.balloon-details p{
    font-family: 'Roboto' !important;
    font-style: normal !important;
    font-weight: 400 !important;
    font-size: 0.6rem !important;
    line-height: 1.2 !important;
    color: #232323 !important;
    
    margin: 0 !important;
    
    position: relative !important;
    padding-left: 12px !important;
}

.balloon-details p::before{
    content: '';
    position: absolute;
    top: 1px;
    left: 0;
    
    width: 8px;
    height: 8px;
    
    background-repeat: no-repeat;
    -webkit-background-size: contain;
    background-position: center center;
    background-size: contain;
    background-position: center center;
}

.balloon-address::before{
    background-image: url('./assets/icons/location.svg');
}

.balloon-phone::before{
    background-image: url('./assets/icons/phone.svg');
}

.balloon-schedule::before{
    background-image: url('./assets/icons/schedule.svg');
}

.balloon-site::before{
    background-image: url('./assets/icons/site.svg');
}

.balloon-details p a{
    font-family: 'Roboto' !important;
    font-style: normal !important;
    font-weight: 400 !important;
    font-size: 0.6rem !important;
    line-height: 1.2 !important;
    color: #232323 !important;
    transition: color .4s ease !important;
}

.balloon-details p a:hover{
    color: #F3181B !important;
    transition: color .4s ease !important;
}

.balloon-schedule{
    max-width: 120px !important;
}

.balloon-details p:not(:last-child) {
    margin: 0 0 5px 0 !important;
}

.balloon-rating{
    position: absolute !important;
    top: 4px !important;
    right: 12px !important;
    z-index: 1 !important;
}

.balloon-rating__decor {
    width: 24px !important;
    height: 24px !important;
    background: rgba(255, 191, 0, 0.13)!important;
    border-radius: 5px !important;
    
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.balloon-rating__decor-icon{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.balloon-rating__value{
    font-family: 'Roboto' !important;
    font-style: normal !important;
    font-weight: 500 !important;
    font-size: 9px !important;
    line-height: 1 !important;
    color: #232323 !important;
    
    position: absolute !important;
    top: 52% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.balloon-direct{
    background: #F3181B !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    outline: none !important;
    cursor: pointer !important;
    border-radius: 5px !important;
    
    width: 21px !important;
    height: 21px !important;
    
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    position: absolute !important;
    bottom: 12px !important;
    right: 12px !important;
    z-index: 2;
}

.balloon-direct svg{
    width: 15px !important;
    height: 14px !important;
}

#yandex-locations-map .ymaps-2-1-79-balloon__content{
    padding: 0 !important;
}

#yandex-locations-map .ymaps-2-1-79-balloon,
#yandex-locations-map .ymaps-2-1-79-balloon__layout{
    border-radius: 10px !important;
}

#yandex-locations-map .yl-balloon{
    width: 330px !important;
}

#yandex-locations-map .ymaps-2-1-79-balloon__tail:after {
    border: 1px solid #F3181B;
    background: #F3181B;
}

.ui-autocomplete {
    background: #fff;
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    font-family: Roboto, sans-serif;
    font-size: 14px;
    z-index: 10000 !important;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ui-menu-item {
    padding: 10px 15px;
    cursor: pointer;
    font-weight: 400 !important;
}

.ui-menu-item:hover,
.ui-state-focus {
    background: #fff;
    color: #F3181B;
    font-weight: 400 !important;
}

.ui-menu-item-wrapper{
    background: transparent !important;
    border-color: transparent !important;
    color: #F3181B !important;
    font-weight: 400 !important;
}

.ui-state-active {
    color: #F3181B;
    font-weight: 400 !important;
}

.map-plugin__map a{
    font-size: 9px !important;
}

@media screen and (max-width: 1024px) {
    .map-plugin__categories{
        grid-template-columns: repeat(8, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .map-plugin__panel{
        flex-direction: column;
    }
    
    .map-plugin__panel-buttons{
        max-width: 100%;
    }
    
    .map-plugin__panel-wrapper{
        width: 100%;
    }
    
    .map-plugin__categories{
        grid-template-columns: repeat(6, 1fr);
    }
}

@media(max-width: 576px) {
	.map-plugin__categories{
        grid-template-columns: repeat(5, 1fr);
    }
}

@media screen and (max-width: 475px) {
    .map-plugin__panel{
        gap: 15px;
    }
    
    .map-plugin__panel{
        margin: 0 0 15px 0;
    }
    
    .map-plugin__categories{
        padding: 15px;
        margin: 0 0 15px 0;
        
        grid-template-columns: repeat(4, 1fr);
        grid-gap: 11px 20px;
    }

    .balloon-inner{
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .balloon-image{
        width: 100% !important;
    }
    
    .balloon-image__picture{
        width: 100% !important;
        height: 112px !important;
    }
    
    .balloon-rating{
        right: 4px !important;
    }
    
    .balloon-content{
        width: 100% !important;
        padding: 0 6px 6px 6px !important;
    }
    
    #yandex-locations-map .yl-balloon{
        width: 220px !important;
    }
}

@media screen and (max-width: 360px) {
	.map-plugin__categories{
        grid-template-columns: repeat(3, 1fr);
    }
}