/* Infinite Scroll Banner - اسکرول افقی بی‌نهایت */

.profiles-hero-banner {
    padding: 60px 0;
    background: linear-gradient(135deg, #7c3aed 0%, #6b21a8 100%);
    overflow: hidden;
    position: relative;
    border-top: 25px solid white;
    border-bottom: 25px solid white;
}

.profiles-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(124, 58, 237, 0.9) 0%, 
        transparent 10%, 
        transparent 90%, 
        rgba(124, 58, 237, 0.9) 100%);
    pointer-events: none;
    z-index: 1;
}

.banner-title {
    text-align: center;
    color: #FFFFFF !important;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.banner-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #FFFFFF !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3) !important;
    box-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    opacity: 1 !important;
    transform: none !important;
    text-rendering: auto;
    background: none !important;
    -webkit-text-fill-color: #FFFFFF !important;
}

/* Force white color in all themes */
.dark .banner-title,
.dark .banner-title h1,
.banner-title *,
[data-i18n="propertyTypes.featuredTitle"] {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
}

.banner-title p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Scroll Container */
.infinite-scroll-container {
    position: relative;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    user-select: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    scroll-behavior: auto; /* Smooth scroll disabled for better drag */
}

.infinite-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.infinite-scroll-container:active {
    cursor: grabbing;
}

.scroll-track {
    display: flex;
    gap: 1.5rem;
    width: fit-content;
    padding: 0.5rem 0;
    /* حذف انیمیشن CSS - کنترل از JS */
}

.infinite-scroll-container.dragging {
    cursor: grabbing;
}

/* حذف کامل rule برای pointer-events که کلیک را مسدود می‌کرد */

/* Banner Card - 500px × 450px */
.banner-card {
    min-width: 500px;
    width: 500px;
    height: 450px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(63, 46, 36, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.banner-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(63, 46, 36, 0.4);
    background: white;
}

.banner-card__image {
    width: 100%;
    height: 300px; /* Match image height */
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f3f0ff 0%, #e5e0ff 100%);
}

.banner-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-card__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: right;
    direction: rtl;
}

.banner-card__title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    line-height: 1.4;
    text-align: right;
}

.banner-card__location {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    direction: rtl;
    text-align: right;
}

.banner-card__location i {
    color: #7c3aed;
    flex-shrink: 0;
    margin-top: 0.25rem;
    order: 2;
}

.banner-card__location span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    line-height: 1.5;
    order: 1;
}

.banner-card__price {
    font-size: 12px;
    font-weight: 700;
    color: #7c3aed;
    margin: 0;
    text-align: right;
}

/* Animation Keyframes */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .banner-title h1 {
        font-size: 1.8rem;
    }
    
    .banner-title p {
        font-size: 0.95rem;
    }
    
    .banner-card {
        min-width: 500px;
        width: 500px;
        height: 450px;
    }
    
    .banner-card__image {
        width: 100%;
        height: 300px;
    }
    
    .banner-card__title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .profiles-hero-banner {
        padding: 40px 0;
    }
    
    .banner-title h1 {
        font-size: 1.5rem;
    }
    
    .banner-card {
        min-width: 350px;
        width: 350px;
        height: 380px;
        padding: 1rem;
    }
    
    .banner-card__image {
        width: 100%;
        height: 200px;
    }
    
    .banner-card__title {
        font-size: 16px;
    }
    
    .banner-card__location {
        font-size: 12px;
    }
}
