/* Hotel Gallery — PhotoSwipe v5
 * Hero image + thumbnail strip. Mobile = scroll-snap orizontal; desktop = grid sub hero.
 */

.hotel-gallery {
    position: relative;
    width: 100%;
}

/* HERO */
.hotel-gallery__hero {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

.hotel-gallery__link {
    display: block;
    position: relative;
    cursor: zoom-in;
    line-height: 0;
}

.hotel-gallery__hero-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.hotel-gallery__hero:hover .hotel-gallery__hero-img {
    transform: scale(1.02);
}

/* COUNTER overlay pe hero ("X foto") */
.hotel-gallery__count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
}

.hotel-gallery__count svg {
    flex-shrink: 0;
}

/* THUMB STRIP — flex orizontal, scroll-snap (mobil + desktop) */
.hotel-gallery__strip {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
    padding-bottom: 4px;
}

.hotel-gallery__strip::-webkit-scrollbar {
    height: 6px;
}

.hotel-gallery__strip::-webkit-scrollbar-track {
    background: transparent;
}

.hotel-gallery__strip::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.hotel-gallery__thumb {
    display: block;
    flex: 0 0 auto;
    width: 110px;
    height: 110px;
    line-height: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
    cursor: pointer;
    scroll-snap-align: start;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.hotel-gallery__thumb:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.hotel-gallery__thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* MOBIL: thumbs mai mici, hero ratio 16:10, fara scrollbar vizibil */
@media (max-width: 768px) {
    .hotel-gallery__strip {
        gap: 4px;
        scrollbar-width: none;
    }

    .hotel-gallery__strip::-webkit-scrollbar {
        display: none;
    }

    .hotel-gallery__thumb {
        width: 80px;
        height: 80px;
    }

    .hotel-gallery__thumb:hover {
        transform: none;
    }

    .hotel-gallery__hero-img {
        aspect-ratio: 16 / 10;
    }

    .hotel-gallery__count {
        bottom: 10px;
        right: 10px;
        font-size: 12px;
        padding: 5px 10px;
    }
}

/* PhotoSwipe theme overrides — buton X mai mare pe touch */
.pswp__button--close {
    width: 60px !important;
    height: 60px !important;
}

@media (hover: none) and (pointer: coarse) {
    .pswp__button {
        width: 50px !important;
        height: 50px !important;
    }
}

/* Counter PhotoSwipe — vizibil pe orice background */
.pswp__counter {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    padding: 4px 12px;
    margin: 8px;
    font-size: 14px;
    font-weight: 500;
}
