/* Mousemove Preview Slider Styles */
.hp-listing__image--mousemove-preview {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.hp-listing__image-link {
    display: block;
    position: relative;
    text-decoration: none;
}

/* Image wrapper */
.hp-listing__image-wrapper {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

/* Зоны для hover на десктопе */
.hp-listing__slider-zones {
    position: absolute;
    inset: 0;
    display: flex;
    z-index: 20;
}

.hp-listing__slider-zone {
    flex: 1;
}

/* Контейнер для всех изображений */
.hp-listing__slider-images {
    position: absolute;
    inset: 0;
}

/* Основные изображения */
.hp-listing__slider-images .hp-listing__image-main {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 2;
}

.hp-listing__slider-images .hp-listing__image-main.is-active {
    opacity: 1;
}

/* Фоновые изображения (backdrop) */
.hp-listing__slider-images .hp-listing__image-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    background: white;
}

.hp-listing__slider-images .hp-listing__image-bg.is-active {
    opacity: 0.5;
}

/* Pagination indicators */
.hp-listing__image-pagination {
    position: absolute;
    bottom: 6px;
    left: 0;
    width: 100%;
    display: flex;
    gap: 3px;
    padding: 0 4px;
    box-sizing: border-box;
    z-index: 30;
}

.hp-listing__image-pagination-item {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    transition: background 0.3s ease;
}

.hp-listing__image-pagination-item.is-active {
    background: rgba(255, 255, 255, 1);
}

/* Overlay for "more photos" indicator */
.hp-listing__image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.hp-listing__image-overlay-text {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Show overlay only when it's the active slide (5th slide, index 4) */
.hp-listing__image-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}
