/* Базовые стили */


.icms2_tiles_board_1 .text-black{
    color:#000;
}

.switch-images {
    display: flex;
    margin: 0 auto;
    overflow: hidden;
    transition: all 0.1s ease-in-out;
    position: relative
}

.image-switch {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    transition: all 0.1s ease-in-out
}

.switch-images img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.image-switch-item {
    width: 100%;
    transition: all 0.1s ease-in-out;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 5px
}

.image-switch.2images.image-switch-item {
    width: 50%
}

.image-switch.3images.image-switch-item {
    width: 33.33%
}

.image-switch.4images.image-switch-item {
    width: 25%
}

.image-switch.5images.image-switch-item {
    width: 20%
}

.image-switch .image-switch-item.hidden {
    display: none
}

.image-switch-item::after {
    content: "";
    width: 90%;
    margin: 0 auto;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    z-index: 2;
    position: relative;
    transition: all 0.1s ease-in-out
}

.switched-image {
    position: absolute;
    left: 50%;
    top: 0;
    opacity: 0;
    z-index: 2;
    transition: all 0.1s ease-in-out;
    width: 100%;
    height: 100%;
    transform: translateX(-50%);
    pointer-events: none
}

.switch-images:not(:hover) .first .switched-image {
    opacity: 1
}

.card-image .switched-image {
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    transform: unset;
    z-index: 1
}

.switch-images:hover .image-switch {
    opacity: 1;
    transition: all 0.1s ease-in-out
}

.image-switch-item:hover .switched-image {
    transition: all 0.1s ease-in-out;
    opacity: 1;
    z-index: -1
}

.image-switch-item:hover::after {
    background-color: var(--primary);
    opacity: 0.9;
    transition: all 0.1s ease-in-out
}


.card-image .images_count {
    position: absolute;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.3);
    line-height: 1;
    font-size: 0.9rem;
    padding: 5px 6px;
    border-radius: 0.25rem;
    color: #fff
}

.card-image .images_count small {
    font-weight: 300;
    font-size: 0.7rem
}



.card-image,
.card-image-img,
.compact-image,
.compact-image-img {
    display: block;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center center !important;
    border-radius: 0.25rem;
    overflow: hidden;
    position: relative
}

.card-image-img{
    transition: 0.8s;
    transform: scale(1.01)
}

div.card-image-img,
span.card-image-img,
a.card-image-img,
.card-image .switch-images,
.card-image .switched-image {
    height: var(--card-image-height);
    width:100%;
}




/* Стили */



.icms2_tiles_board_1 .content_list_item{
    position: relative;
}

.icms2_tiles_board_1.content_list.is_item_panel .content_list_item .f_title{
   padding-right: 50px;
}

.icms2_tiles_board_1 .item_panel{
    position: absolute;
    right:0;
    top:0;
}

.icms2_tiles_board_1 .info_bar{
   position: relative;
}

.icms2_tiles_board_1 .icms2_favorites_btn a[href^="/favorites/delete/"] .on{
   display: none !important;
}

.icms2_tiles_board_1 .icms2_favorites_btn a[href^="/favorites/delete/"] .off{
   display: block !important;
}

.icms2_tiles_board_1 .f_price{
  font-weight: 600;  
  margin-bottom: 1rem !important;
}

.icms2_tiles_board_1 .field .f_cats{
  margin-bottom: -1rem;
}

.icms2_tiles_board_1 .info_bar .bi_date_pub svg{
    display: none;
}

.icms2_tiles_board_1 .content_list_item .icms2_list__btn_more{
    position: absolute;
    right:0;
    bottom:0;
    z-index: 2;
}


    .icms2_tiles_board_1 .content_list_item{
      margin-left: 0;
    }
    .icms2_tiles_board_1 .content_list_item .card_image_col{
      padding-left: 0;
    }



/* Tiles */


    .card_image_col{
        margin-bottom:1rem;
    }


    .icms2_tiles_board_1 .content_list_item .card_image_col{
      padding: 0;
    }

    .icms2_tiles_board_1 .content_list_item .card_content_col{
      padding: 0;
    }
    .icms2_tiles_board_1 .content_list_item.is_vip .card_content_col{
      padding-left: 5px;
      padding-right: 5px;
      padding-bottom: 5px;
    }

    .icms2_tiles_board_1 .content_list_item{
      width:100% !important;
    }

    .icms2_tiles_board_1 .content_list_item .icms2_list__btn_more{
        position: static;
        margin-top:15px;
    }




/* Адаптивность */


@media (max-width:600px) {

    div.card-image-img,
    span.card-image-img,
    a.card-image-img,
    .card-image .switch-images,
    .card-image .switched-image {
        height: var(--card-image-height-mob);
        width:100%;
    }


}





