/* Popular Brand Cruise - More Button Functionality */

/* Ẩn các item có class hidden-item ngay từ đầu - rule quan trọng nhất */
.popular_tax__item.hidden-item {
    display: none !important;
    visibility: hidden !important;
}

/* Khi hiển thị item thì override lại */
.popular_tax__item.hidden-item.show-item {
    display: block !important;
    visibility: visible !important;
}

/* Animation khi hiển thị item */
.popular_tax__item.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Container cho button More */
.popular_tax__more-container {
    text-align: center;
    margin-top: 30px;
}

/* Style cho button More/Show Less */
.popular_tax__more-btn {
    color: #334862;
    border: none;
    padding: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 25px;
    text-transform: capitalize;
    letter-spacing: 1px;
    outline: none;
}

.popular_tax__more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: #2e5a91;
}

.popular_tax__more-btn:active {
    transform: translateY(0);
}

.popular_tax__more-btn:focus {
    outline: 2px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

/* Responsive styles cho button */
@media (max-width: 768px) {
    .popular_tax__more-btn {
        padding: 10px 25px;
        font-size: 14px;
    }
}

/* Animation nâng cao cho items khi được hiển thị */
.popular_tax__item.fade-in {
    animation: slideInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
