/**
 * Card Gallery Hover Effect
 * גלריית תמונות אינטראקטיבית בכרטיסיות החדרים
 */

/* Room Card Image Gallery Container */
.room-card-image-wrapper {
    position: relative;
    overflow: hidden;
}

.room-card-image {
    transition: opacity 0.4s ease;
}

/* Gallery Navigation Dots */
.gallery-hover-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.room-card:hover .gallery-hover-dots {
    opacity: 1;
}

.gallery-hover-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.gallery-hover-dot.active {
    width: 20px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.95);
}

/* Gallery Navigation Arrows (Optional) */
.gallery-hover-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 11;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.room-card:hover .gallery-hover-nav {
    opacity: 1;
}

.gallery-hover-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.gallery-hover-nav-prev {
    left: 8px;
}

.gallery-hover-nav-next {
    right: 8px;
}

[dir="rtl"] .gallery-hover-nav-prev {
    left: auto;
    right: 8px;
}

[dir="rtl"] .gallery-hover-nav-next {
    right: auto;
    left: 8px;
}

.gallery-hover-nav i {
    color: #333;
    font-size: 14px;
}

/* Image Counter */
.gallery-hover-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

[dir="rtl"] .gallery-hover-counter {
    right: auto;
    left: 12px;
}

.room-card:hover .gallery-hover-counter {
    opacity: 1;
}

/* Smooth Image Transition */
.room-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Loading State */
.room-card-image-wrapper.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-hover-nav {
        width: 28px;
        height: 28px;
    }
    
    .gallery-hover-nav i {
        font-size: 12px;
    }
    
    .gallery-hover-dots {
        bottom: 8px;
        gap: 4px;
    }
    
    .gallery-hover-dot {
        width: 5px;
        height: 5px;
    }
    
    .gallery-hover-dot.active {
        width: 16px;
    }
}

