﻿.lazy-row {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    align-items: center;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* For iOS smooth scroll */
}

    .lazy-row > * {
        flex-shrink: 0;
    }

    .lazy-row::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }

.lazy-item {
    flex: 0 0 auto; /* Prevent shrinking */
    height: 100%;
    padding: 0;
    justify-content: center;
}

.dynamic-card-color {
    background-color: #faecd0;
}
/* For 24rem height cards */
.lazy-item-24 {
    height: 24rem;
    background-color: #faecd0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

/* For 22rem height cards */
.lazy-item-22 {
    height: 22rem;
    background-color: #faecd0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

/* Icon styling, same for both */
.lazy-item-icon {
    cursor: pointer;
    font-size: 2rem; /* adjust size if needed */
}



.lazy-row-hga-banner-container {
    height: 24rem;
    max-width: 24rem;
    background-color: white;
    color: white;
    display: flex;
    justify-content: end;
    align-items: start;
    background-color: transparent;
}

.lazy-row-hga-banner-container-users {
    height: 22rem;
    max-width: 22rem;
    background-color: white;
    color: white;
    display: flex;
    justify-content: end;
    align-items: start;
    background-color: transparent;
}

.lazy-row-hga-banner {
    width: 100%;
    height: 100%;
    background-color: transparent;
}


.img-button {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}



.image-card {
    flex: 0 0 auto;
    width: 100px;
    height: 100px;
    position: relative;
    border-radius: 10px;
    border-color: aqua;
    border-width: 13px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

    .image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-text {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 6px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
    font-size: 1rem;
    direction: rtl;
}

.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    gap: 1px;
    padding: 1px;
}

.scroll-item {
    flex: 0 0 auto;
    min-width: 150px;
    height: 100px;
    background-color: #f0f0f0;
    text-align: center;
    line-height: 10px;
    border: 1px solid #ccc;
}

.carousel-container {
    overflow: hidden;
    width: 100%;
    padding: 1rem 0;
    background: #f8f9fa;
}

.carousel-track {
    display: flex;
    gap: 1rem;
    animation: slide-left 20s linear infinite;
}

.carousel-card {
    min-width: 200px;
    flex: 0 0 auto;
    background: white;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
    font-weight: bold;
}

@keyframes slide-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


.card-zero-z {
    z-index: 0;
    position: relative;
}

.thumbs {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 10px;
    padding: 0px 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

    .thumbs::-webkit-scrollbar {
        display: none;
    }

    .thumbs .thumb {
        flex: 0 0 auto;
        width: 100px;
        height: 100px;
        border: none;
        border-radius: 1px;
        overflow: hidden;
        cursor: pointer;
        box-shadow: 0 1px 4px rgba(0,0,0,.15);
    }

        .thumbs .thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .thumbs .thumb img {
            transition: transform 0.2s ease, filter 0.2s ease;
        }

        .thumbs .thumb:hover img {
            transform: scale(1.05);
            filter: brightness(1.1);
        }

        .thumbs .thumb.active {
            outline-offset: 1px;
        }


.results-container {
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .results-container::-webkit-scrollbar {
        display: none;
    }

.load-more-container {
    width: 18rem;
    cursor: pointer;
    padding: 2rem;
}

.load-more-button {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.rtl-container {
    flex: 2;
    overflow-y: auto;
    padding-bottom: 50px;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}

.search-results-container {
    min-height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    scrollbar-width: none;
}

    .search-results-container::-webkit-scrollbar {
        display: none;
    }


.search-result-card-wrapper {
    position: relative;
}

.search-result-card-index {
    position: absolute;
    bottom: 5px;
    left: 5px;
    color: rgba(0, 0, 0, .5);
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    z-index: 10;
}







.images-carousel-container {
    display: flex;
    flex-direction: row;
    width: 100vw;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling:  auto; /* For a smoother scrolling experience on iOS */
    scroll-snap-type: x mandatory;
    scroll-snap-align: center;
    align-items: center;
    padding: 0;
    margin: 0;
    gap: 0rem;
}

.carousel-image {
    flex: 0 0 auto; /* prevent shrinking */
    height: 100%;
    width: auto; /* full width of container */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem;
}

    .carousel-image img {
        display: block; /* removes inline spacing */
        height: 100%;
        width: 100%;
        object-fit: contain; /* This is the key property */
        margin: 0;
        padding: 0;
    }
