.nav-tabs {
    border: 1px solid var(--bs-primary);
}

.btn-tab {
    color: var(--bs-primary);
}

.btn-tab.active {
    background-color: var(--bs-primary);
    color: white;
}

.fw-500 {
    font-weight: 500;
}

.bg-icon {
    background-color: var(--bs-gray-200);
    /* Цвет фона */
    border-radius: 50%;
    /* Круглая форма */
    padding: 11px;
    /* Отступы вокруг иконки */
    display: inline-flex;
    /* Для центрирования содержимого */
    align-items: center;
    /* Вертикальное центрирование */
    justify-content: center;
    /* Горизонтальное центрирование */
}

.bg-icon-mini {
    padding: 3px;
}

.product-block .bg-white {
    min-height: 400px;
}

.product-block .premium_product .bg-white {
    min-height: 520px;
}


@media (min-width: 768px) {
    .premium_product {
        z-index: 2;
    }
}

.premium_product {
    position: relative;
}

.premium_product:before,
.premium_product:after {
    border-radius: .5rem !important;
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background: linear-gradient(45deg, var(--bs-primary-light), var(--bs-primary), var(--bs-primary-dark), var(--bs-white), var(--bs-primary-light), var(--bs-primary-light), var(--bs-primary), var(--bs-primary-dark), var(--bs-white), var(--bs-primary-light));
    background-size: 400%;
    opacity: .4;
    z-index: -1;
    animation: animate 70s linear infinite;
}

@keyframes animate {
    0% {
        background-position: 0 0;
    }

    50% {
        background-position: 300% 0;
    }

    100% {
        background-position: 0 0;
    }
}

.premium_product:after {
    filter: blur(0px);
}

.product-block img {
    max-height: 34px;
}

.real-estate-label {
    position: relative;
    display: flex;
    flex-direction: row;
}

.modal-image-icon img {
    max-height: 34px;
}

.real_estate_for {}

.real_estate_content {}



/* === Анимации поворота === */
@keyframes flippercback {
    from {
        transform: rotateY(0);
    }

    to {
        transform: rotateY(90deg);
    }
}

@keyframes flippercfront {
    from {
        transform: rotateY(90deg);
    }

    to {
        transform: rotateY(0);
    }
}

.flip-trigger {
    cursor: pointer;
}


/* .flipperc */
.flipperc {
    position: relative;
    width: 100%;
    /* Ширина под контент */
    height: auto;
    /* Или фиксируйте высоту, если нужно */
    transition: transform 0.3s;
    /* У вас могут быть ещё box-shadow, border-radius и т.д. */
}

/* Передняя сторона */
.flipperc-front {
    width: 100%;
    height: auto;
    backface-visibility: hidden;
}

/* Задняя сторона */
.flipperc-back {
    width: 100%;
    height: auto;
    display: none;
    /* скрыта по умолчанию */
    backface-visibility: hidden;
    z-index: 2;
}

/* Класс, когда "фронт" уходит */
.flipperc-back-animate {
    animation: flippercback 0.15s forwards;
    /* 0.15s поворот */
}

/* Класс, когда "бэк" приезжает */
.flipperc-front-animate {
    animation: flippercfront 0.3s forwards;
}

/* Общий класс переворота */
.flipperc-turning {}


.flip-trigger {
    display: inline-block;
    transform: scale(1);
  }
  
  /* Сильная пульсация (однократная анимация при входе в зону видимости) */
  @keyframes strongPulse {
    0% {
      transform: scale(1) translate(0, 0);
    }
    10% {
      transform: scale(1.2) translate(1px, -1px);
    }
    20% {
      transform: scale(1.05) translate(-0.5px, 0.5px);
    }
    30% {
      transform: scale(1.1) translate(1px, -1px);
    }
    40% {
      transform: scale(1.07) translate(-1px, 1px);
    }
    100% {
      transform: scale(1) translate(0, 0);
    }
  }
  
  .flip-trigger.strong-pulse {
    animation: strongPulse 1s ease forwards;
  }
  
  /* Едва заметное сердцебиение (непрерывное) */
  @keyframes subtlePulse {
    0%, 100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.03);
    }
  }
  
  .flip-trigger.subtle-pulse {
    animation: subtlePulse 3s ease-in-out infinite;
  }
  
  .flip-trigger:hover {
    animation-play-state: paused !important;
  }