/* Иконка "i" — точная копия лупы */
.info-icon {
    opacity: 0;
    position: absolute;
    top: 65%;
    left: 85%;
    transform: translate(-50%, -50%);
    z-index: 11;
    cursor: pointer;
    width: clamp(25px, 15%, 50px);
    aspect-ratio: 1 / 1;
    background-color: rgba(30, 30, 30, 0.5);
    border-radius: 8%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.2s ease-in-out;
    border: none;
    box-shadow: none;
    
    
    
}

/* На десктопе показываем при наведении на карточку */
@media (hover: hover) and (pointer: fine) {
    .bccgc-item:hover .info-icon {
        opacity: 1 !important;
    }
}

/* На мобильных всегда показываем */
@media (hover: none), (pointer: coarse) {
    .info-icon {
        opacity: 1 !important;
    }
}

/* SVG внутри иконки — оранжевый */
.info-icon svg {
    width: 40px !important;
    height: 40px !important;
    stroke: #fbd38d;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.info-icon:hover svg {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Всплывающее окно */
.bip-info-popup {
    position: fixed;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    max-width: none;
    max-height: none;
}

/* На мобильных включаем скролл при переполнении */
@media (max-width: 768px) {
    .bip-info-popup {
        overflow-y: auto;
        max-height: 80vh;
        pointer-events: auto;
    }
}

.bip-info-popup.active {
    opacity: 1;
}

.bip-info-popup img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
    border-radius: 8px;
}

/* Кнопка закрытия для мобильных */
.bip-popup-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100000;
    border: 1px solid rgba(255,255,255,0.3);
}

.bip-popup-close svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
    stroke-width: 2;
}

@media (hover: none), (pointer: coarse) {
    .bip-popup-close {
        display: flex;
    }
    .bip-info-popup {
        pointer-events: auto;
    }
}

.bip-popup-html-content {
    background: transparent;
    pointer-events: none;
}
.bip-popup-html-content * {
    pointer-events: none;
}