/* Движение на снимките: плавно приближаване и отдалечаване (Ken Burns).
   Работи само с transform (GPU), без да мести текста и бутоните върху снимките. */
@keyframes kbIn{from{transform:scale(1) translate3d(0,0,0)}to{transform:scale(1.28) translate3d(-2.5%,-2%,0)}}
@keyframes kbOut{from{transform:scale(1.28) translate3d(2.5%,2%,0)}to{transform:scale(1) translate3d(0,0,0)}}

/* 1) Карти с обяви: вътрешен слой със снимката */
.prop .img{overflow:hidden;isolation:isolate}
.prop .img .kb{position:absolute;inset:0;z-index:-1;background-size:cover;background-position:center;background-repeat:no-repeat;
 animation:kbIn 8s ease-in-out infinite alternate;will-change:transform}
.prop:nth-child(2n) .img .kb{animation-name:kbOut;animation-duration:9s}
.prop:nth-child(3n) .img .kb{animation-delay:-4s}
.prop:nth-child(5n) .img .kb{animation-delay:-8s}
.prop:hover .img .kb{animation-duration:4s}

/* 2) Снимки, които са фон на самия елемент (герой, градове, AI карти, секции):
      копираме фона в псевдо-елемент зад съдържанието и движим него */
.hv2hero,.hv2promo .pic,.hv2cities.four a.ph,.nxc .ph{position:relative;overflow:hidden;isolation:isolate}
.hv2hero::before,.hv2promo .pic::before,.hv2cities.four a.ph::before,.nxc .ph::before{content:"";position:absolute;inset:0;z-index:-1;
 background:inherit;animation:kbIn 10s ease-in-out infinite alternate;will-change:transform;pointer-events:none}
.hv2hero::before{animation-duration:14s}
.hv2promo.rev .pic::before,.hv2cities.four a:nth-child(2n).ph::before{animation-name:kbOut}
.hv2cities.four a:nth-child(3n).ph::before{animation-delay:-5s}
.hv2cities.four a.ph:hover::before{animation-duration:5s}
.nxc:nth-child(2n) .ph::before{animation-name:kbOut}
.nxc .ph::before{animation-duration:8s}

/* 3) Водачи (.gi е самата снимка) */
.hv2guides a{overflow:hidden}
.hv2guides .gi{overflow:hidden;position:relative;isolation:isolate}
.hv2guides .gi::before{content:"";position:absolute;inset:0;z-index:-1;background:inherit;animation:kbIn 9s ease-in-out infinite alternate;will-change:transform}
.hv2guides a:nth-child(2n) .gi::before{animation-name:kbOut}

/* 4) Голяма снимка в страницата на имота */
#gmainl{display:block;overflow:hidden}
#gmain.kbi{animation:kbIn 9s ease-in-out infinite alternate;will-change:transform}

