.tile-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 1rem 0;
}

.category-tile {
    width: 240px;
    height: 240px;
    border-radius: 12px;
    border: 0.5px solid rgba(0,0,0,0.12);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: transform 0.18s;
}

    .category-tile:hover {
        transform: scale(1.05);
    }

    .category-tile img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .category-tile .label {
        position: relative;
        z-index: 1;
        width: 100%;
        text-align: center;
        padding: 6px 4px;
        font-size: 18px;
        font-weight: 600;
        color: #fff;
        background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    }

@media (max-width: 480px) {
    .category-tile {
        width: 90px;
        height: 90px;
    }

        .category-tile .label {
            font-size: 10px;
        }
}
/* Smaller devices — shrink tiles slightly */
@media (max-width: 480px) {
    .category-tile {
        width: 90px;
        height: 90px;
    }

        .category-tile span {
            font-size: 11px;
        }
}

.filter-total {
    color: #9e9e9e;
    margin-left: 5px;
}

.primary-color {
    color: var(--bs-primary);
}

.ad-date {
    font-size: 14px;
    font-weight: normal;
    white-space: nowrap;
    margin-left: 16px;
}

.ml-badge {
    font-size: 14px;
    font-weight: 400 !important;
    border: 1px solid var(--bs-primary);
    background-color: transparent !important;
    color: var(--bs-primary);
}