/* Mini carrousel photo réutilisable pour les cartes logement (style Airbnb/Booking) */

.card-photo {
    position: relative;
    overflow: hidden;
    background: #eee;
}

.card-photo .cp-track {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease;
}

.card-photo .cp-track img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.card-photo .cp-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: #222;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 2;
    padding: 0;
}

.card-photo:hover .cp-arrow {
    opacity: 1;
}

.card-photo .cp-prev {
    left: 8px;
}

.card-photo .cp-next {
    right: 8px;
}

.card-photo .cp-dots {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
    z-index: 2;
}

.card-photo .cp-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    padding: 0;
    border: none;
}

.card-photo .cp-dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* Sur écran tactile (mobile/tablette) : pas de hover, on garde les flèches visibles */
@media (hover: none) {
    .card-photo .cp-arrow {
        opacity: 0.85;
    }
}
